code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash -x
if [ "$1" = "" ]; then
echo Give a mechanism name
exit
fi
if [ "$2" = "" ]; then
echo enter number of trials
exit
fi
A=`pwd`
mkdir $1
cd $1
if [ -f mechanism_info.pkl ]
then
echo You have already entered mechanism details for $1
else
python $A/initialise_experiment.py
fi
NME... | Shell |
#!/bin/bash -x
ARGC=$#
if [ $ARGC = 0 ]; then
echo "Usage: ./aggregate_checker_fail.sh <mechanism 1 directory> <directory 2> ..."
exit
fi
mkdir aggregated_checker_fail
for d in $@
do
for f in `ls $d/*/ -d`
do
python log_images.py -d $f -b
cp $f/checker_fail/* aggregated_checker_fail
... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/sh
echo "Creating zip for upload to the Google Extension Gallery"
zip -r YouTubeHTML5.zip . -x "*.svn*" -x ".*" -x "package.sh"
| Shell |
#!/bin/sh
echo "Creating zip for upload to the Google Extension Gallery"
zip -r YouTubeHTML5.zip . -x "*.svn*" -x ".*" -x "package.sh"
| Shell |
#!/bin/sh
echo "Creating zip for upload to the Google Extension Gallery"
zip -r YouTubeHTML5.zip . -x "*.svn*" -x ".*" -x "package.sh"
| Shell |
#!/bin/sh
echo "Creating zip for upload to the Google Extension Gallery"
zip -r YouTubeHTML5.zip . -x "*.svn*" -x ".*" -x "package.sh"
| Shell |
#!/bin/sh
cp mockdom.js node.js ../../lib
cp node-tests.cfg ../../build
cd ../../build
python build.py -c none node-tests
cd ../tests/node.js/
node run-test.js
rm ../../lib/mockdom.js
rm ../../lib/node.js
| Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
# Get current 'Last Changed Rev'
GITREV=`svn info https://github.com/openlayers/openlayers/ | grep 'Revision' | awk '{print $2}'`
SVNREV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_git_rev
touc... | Shell |
#!/bin/sh
VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip compiler-latest.zip
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure ful... | Shell |
#!/bin/sh
# http://themarinaatroweswharf.com/assets/img/markers/
# http://www.gulfshoresal.gov/gis/markers/
# Blue
wget "http://themarinaatroweswharf.com/assets/img/markers/blue_MarkerA.png" -O blueA.png
wget "http://themarinaatroweswharf.com/assets/img/markers/blue_MarkerB.png" -O blueB.png
wget "http://themarinaatr... | Shell |
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo -e "\e[31mERROR : The url to the youtube video is required"
exit 1
fi
i=0
downloadtoken=0
IFS_BAK=$IFS
IFS=$'\n'
tarray=$(youtube-dl -F $1 |grep "audio only" | cut -c1-3,12-18,45-50)
for line in $tarray; do
i=$((i+1))
if [ $(( $i % 2 )) -eq 0 ]; then
echo -e "\e[0m$... | Shell |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/bin/sh
#
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | Shell |
#!/bin/sh
export JETTY_HOST=127.0.0.1
export JETTY_PORT=8081
export JETTY_USER=gerrit2
export JETTY_PID=/var/run/jetty$JETTY_PORT.pid
export JETTY_HOME=/home/$JETTY_USER/jetty
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre
JAVA_OPTIONS=""
JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST"
export JAVA_OPTION... | Shell |
#!/bin/sh
include_docs=-Dgerrit.include-documentation=1
while [ $# -gt 0 ]
do
case "$1" in
--no-documentation|--without-documentation)
include_docs=
shift
;;
*)
echo >&2 "usage: $0 [--without-documentation]"
exit 1
esac
done
git update-index -q --refresh
if test -n "$(git diff-index --name-only HEAD -... | Shell |
#!/bin/sh
# Update all pom.xml with new build number
#
# TODO(sop) This should be converted to some sort of
# Java based Maven plugin so its fully portable.
#
POM_FILES=$(git ls-files | grep pom.xml)
case "$1" in
--snapshot=*)
V=$(echo "$1" | perl -pe 's/^--snapshot=//')
if [ -z "$V" ]
then
echo >&2 "usage: $0 ... | Shell |
#!/bin/sh
#
# Launch Gerrit Code Review as a daemon process.
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Gerrit Code Review
# processname: gerrit
# ========================
# Configuration files:
#
# /etc/default/gerrit... | Shell |
#!/bin/sh
V=$(git describe HEAD)
case "$V" in
'')
echo >&2 "fatal: no annotated tags, cannot determine version"
exit 1
;;
*-g*)
echo >&2 "fatal: snapshot $V, cannot determine version"
exit 1
;;
v*)
echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/'
;;
esac
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/bin/sh
mkdir /data/local/qt/include/QtLocation/
cp *.h QGeo* QNmea* /data/local/qt/include/QtLocation/
| Shell |
#!/bin/sh
rm -fr al
mkdir al
cp -a lib*.so* al/
/usr/local/android-ndk-r5/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-strip --strip-unneeded al/* || echo "Can't find strip for android - pushing unstripped libs to device"
adb push al /data/local/qt/lib
| Shell |
#!/usr/bin/env bash
shopt -s -o nounset
#
# HonSSH management script.
#
# Date: 2014, March 1
# Version: 1.2.2
# Plattform: n/a
#
# Copyright (c) 2014, Black September - Honeypot Development
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without mod... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
# Get current 'Last Changed Rev'
REV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_svn_rev
OLD_REV="o`cat /tmp/ol_svn_rev`"
# If they're not equal, do some work.
if [ ! o$REV = $OLD_REV ]; then
... | Shell |
#!/bin/sh
RELEASE=$1
RC=$2
svn co http://svn.openlayers.org/branches/openlayers/$RELEASE
cd $RELEASE
sed -i -e "s/OpenLayers.VERSION_NUMBER=.*/OpenLayers.VERSION_NUMBER=\"Release $1-$2\";/" lib/OpenLayers.js
sed -i -e "s/VERSION_NUMBER: .*,/VERSION_NUMBER: \"Release $1-$2\",/" lib/OpenLayers/SingleFile.js
svn diff;
... | Shell |
#!/bin/sh
RELEASE=$1
svn copy -m "Branching for the $RELEASE release" http://svn.openlayers.org/trunk/openlayers http://svn.openlayers.org/branches/openlayers/$RELEASE
| Shell |
#!/bin/sh -x
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py
mkdir /osgeo/openlayers/docs/api/$VERSION
cd ..
cp build/OpenLayers.js /osgeo/openlayers/docs/api/$VERSION
cp -a img/ /osgeo/openlayers/docs/api/$VERSION
cp -a theme/ /osgeo/op... | Shell |
#!/bin/sh
VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip compiler-latest.zip
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure ful... | Shell |
#!/bin/bash
#[ $# = 0 ] && TARGET_MP=dopp_angles_tauv_psi0.mp || TARGET_MP=$1
declare input=( "$@" )
for TARGET_MP in ${input[@]}
do
tmp_mp=tmp.mp
tmp_tex=tmp.tex
XAXIS="误差"
XAXIS_UNIT="米"
YAXIS="概率"
CDF="误差累积分布函数"
#preamble
grep -v ^% $TARGET_MP |sed 's/\(.*\\documentclass.*\)/\1\n\\usepackage{CJKutf8}/' > $t... | Shell |
#!/bin/bash
#usage: basename [OPTION], use '-h/--help' for more info.
VER=0.1
# Default init
aio=0
start_spid=1
stop_spid=1
runtimes=60
fakegps=0
makepyc=0
nstop=0
stabtest=0
stabtest_times=50
log_analysis=0
pathout=log/out
patherr=log/err
online="python online.py"
offline="python offline.py"
Version ()
{
cat <... | Shell |
#!/bin/bash
# connect remote bluetooth serial port device.
bt_dev_name=yxt-e71
btinit=/etc/init.d/bluetooth
btkeyword=bluetooth
btcomportid=0
btcomport=rfcomm$btcomportid
btcomdev=/dev/$btcomport
if [ "`which pskill`" = "" ]; then
haspskill=0
btprocess=`ps aux|grep $btkeyword |grep -v 'grep' |awk '{print $N... | Shell |
#!/bin/bash
sqlterm=psql
SHP2SQL=shp2pgsql # shape file to sql converter
opt_srs="-s 4326" # spatial reference system, default: EPSG 4326(i.e. WGS84)
SCHEMA=gis_schema # gis schema for gistemplate in postgis
dbhost=localhost
dbname=gisdb
dbuser=gis
pathout=log/out
patherr=log/err
#flow control args
fc_shp2sql=0
f... | Shell |
#!/bin/bash
[ $# == 0 ] && input="$HOME/findroad/dat/blk/blk_*" || input=$1
table_format="(id mediumint not null, fnode mediumint, tnode mediumint, len float, district varchar(18), rname varchar(34), lon decimal(9,6), lat decimal(9,6), isnode tinyint , mblkid mediumint, index mblkid (mblkid), index lon_lat (lon,lat))"
... | Shell |
#! /bin/bash
python ../count_cfg_freq.py ../parse_train.dat > cfg.count
python data_rep.py cfg.count ../parse_train.dat rep.dat
python ../count_cfg_freq.py rep.dat > cfg_rep.count | Shell |
#! /bin/bash
python ../count_cfg_freq.py ../parse_train_vert.dat > cfg.count
python data_rep.py cfg.count ../parse_train_vert.dat rep.dat
python ../count_cfg_freq.py rep.dat > cfg_rep.count
python com_rp.py cfg_rep.count un.count bi.count
python cky.py un.count bi.count ../parse_dev.dat output.key
python ../eval_parse... | Shell |
#! /bin/bash
python ../count_cfg_freq.py ../parse_train.dat > cfg.count
python data_rep.py cfg.count ../parse_train.dat rep.dat
python ../count_cfg_freq.py rep.dat > cfg_rep.count
python com_rp.py cfg_rep.count un.count bi.count
python cky.py un.count bi.count ../parse_dev.dat output.key
python ../eval_parser.py ../pa... | Shell |
#!/bin/bash
#
# Upload videos to youtube using youtube-upload and curl.
#
# $ youtube-upload --get-upload-form-info ... | upload_with_curl.sh [CURL_OPTIONS]
#
set -e
debug() { echo "$@" >&2; }
while { read FILE; read TOKEN; read POST_URL; }; do
URL="$POST_URL?nexturl=http://code.google.com/p/youtube-upload"
VID... | Shell |
#!/bin/bash
#
# Upload videos to youtube using youtube-upload and curl.
#
# $ youtube-upload --get-upload-form-info ... | upload_with_curl.sh [CURL_OPTIONS]
#
set -e
debug() { echo "$@" >&2; }
while { read FILE; read TOKEN; read POST_URL; }; do
URL="$POST_URL?nexturl=http://code.google.com/p/youtube-upload"
VID... | Shell |
#!/bin/bash
#
# Split a video file (to MKV format) suitable for standard users in Youtube (<15')
#
# $ bash split_video_for_youtube.sh video.avi
# video.part1.mkv
# video.part2.mkv
#
# $ youtube-upload [OPTIONS] video.part*.mkv
#
# Echo to standard error
debug() {
echo "$@" >&2
}
# Returns duration (in se... | Shell |
#!/bin/bash
#
# Split a video file (to MKV format) suitable for standard users in Youtube (<15')
#
# $ bash split_video_for_youtube.sh video.avi
# video.part1.mkv
# video.part2.mkv
#
# $ youtube-upload [OPTIONS] video.part*.mkv
#
# Echo to standard error
debug() {
echo "$@" >&2
}
# Returns duration (in se... | Shell |
#!/bin/bash
#
# Upload videos to youtube using youtube-upload and curl.
#
# $ youtube-upload --get-upload-form-info ... | upload_with_curl.sh [CURL_OPTIONS]
#
set -e
debug() { echo "$@" >&2; }
while { read FILE; read TOKEN; read POST_URL; }; do
URL="$POST_URL?nexturl=http://code.google.com/p/youtube-upload"
VID... | Shell |
#!/bin/bash
#
# Upload videos to youtube using youtube-upload and curl.
#
# $ youtube-upload --get-upload-form-info ... | upload_with_curl.sh [CURL_OPTIONS]
#
set -e
debug() { echo "$@" >&2; }
while { read FILE; read TOKEN; read POST_URL; }; do
URL="$POST_URL?nexturl=http://code.google.com/p/youtube-upload"
VID... | Shell |
#!/bin/bash
#
# Split a video file (to MKV format) suitable for standard users in Youtube (<15')
#
# $ bash split_video_for_youtube.sh video.avi
# video.part1.mkv
# video.part2.mkv
#
# $ youtube-upload [OPTIONS] video.part*.mkv
#
# Echo to standard error
debug() {
echo "$@" >&2
}
# Returns duration (in se... | Shell |
#!/bin/bash
#
# Split a video file (to MKV format) suitable for standard users in Youtube (<15')
#
# $ bash split_video_for_youtube.sh video.avi
# video.part1.mkv
# video.part2.mkv
#
# $ youtube-upload [OPTIONS] video.part*.mkv
#
# Echo to standard error
debug() {
echo "$@" >&2
}
# Returns duration (in se... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
# Clean the package a bit
UNWANTED_FILES="sqlite3.dll win-tools sqlite-3.6.12.so StartDuplicati.sh"
#Validate input
SHOW_USAGE_ERROR=
if [ "$#" -lt "1" ]; then
SHOW_USAGE_ERROR="No input file given"
fi
if [ "$#" -gt "2" ]; then
SHOW_USAGE_ERROR="Too many arguments"
fi
if [ -n "$SHOW_USAGE_ERROR" ]; ... | Shell |
#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/duplicati${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export MONO_PATH=$MONO_PATH:/usr/lib/duplicati
EXE_FILE=/usr/lib/duplicati/Duplicati.exe
APP_NAME=Duplicati
exec -a "$APP_NAME" mono "$EXE_FILE" "$@"
| Shell |
#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/duplicati${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export MONO_PATH=$MONO_PATH:/usr/lib/duplicati
EXE_FILE=/usr/lib/duplicati/Duplicati.CommandLine.exe
APP_NAME=Duplicati.CommandLine
exec -a "$APP_NAME" mono "$EXE_FILE" "$@"
| Shell |
#!/bin/sh
set -e
| Shell |
#!/bin/sh
set -e
| Shell |
#!/bin/sh
#
# This is a stub script that allows .apps to be relocatable on OSX but still
# find the managed assembly.
#
# This is copied from the Mono macpack tool and modified to fit Duplicati
#
# The Mono Version Check is from here:
# http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app
#... | Shell |
#!/bin/sh
#
# DMG building script adopted from:
# http://el-tramo.be/git/fancy-dmg/plain/Makefile
#
WC_DMG=wc.dmg
WC_DIR=wc
TEMPLATE_DMG=template.dmg
SOURCE_FILES=Duplicati.app
OUTPUT=Duplicati.dmg
UNWANTED_FILES="sqlite-3.6.12.so sqlite3.dll linux-sqlite-readme.txt win-tools"
SHOW_USAGE_ERROR=
if [ "$#" -lt "1" ]... | Shell |
#!/bin/sh
# Usage: ./duplicati-make-git-snapshot.sh [COMMIT] [DATE]
#
# to make a snapshot of the given tag/branch. Defaults to HEAD.
# Point env var REF to a local duplicati repo to reduce clone time.
if [ -z $2 ]; then
DATE=`date +%Y%m%d`
else
DATE=$2
fi
DIRNAME="duplicati-$DATE"
echo REF ${REF:+--reference ... | Shell |
#!/bin/bash
###############################################################################
# How to run scripts before or after backups
###############################################################################
# Duplicati is able to run scripts before and after backups. This
# functionality is available in th... | Shell |
#!/bin/bash
# This script returns the device on which the volume is mounted
#
# Input is always:
# $1 = name of the folder to locate the LVM device for
#
# The script MUST output a line with device="<path>", where path is the lvm id.
# The script MUST output a line with mountpoint="<path>", where path is the device ... | Shell |
#!/bin/bash
# This script removes a lvm snapshot, modify as required
#
# Input is always:
# $1 = name of the snapshot, a random name, same as given to create-lvm-snapshot, usually something like "duplicati-0102030011234567"
# $2 = name of the device for which the snapshot was created, same as given to create-lvm-sn... | Shell |
#!/bin/bash
# This script creates a lvm snapshot, modify as required
#
# Input is always:
# $1 = name of the snapshot, a random name with no spaces or non-printable chars, usually something like "duplicati-0102030011234567"
# $2 = name of the device to create the snapshot for, this is the output of find-volume.sh, ... | Shell |
svn checkout -r 50 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r50
svn checkout -r 100 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r100
svn checkout -r 150 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r150
svn checkout -r 200 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE... | Shell |
cd Installer/Makefile
make $@
| Shell |
echo "Checking for STOPSHIP in source."
grep -ri stopship src
if [ $? -eq 0 ]; then
echo "Files found with STOPSHIP. Aborting release."
exit 1
fi
echo "Checking for files without a license header."
grep -Lr "OpenPnP is free software: you can redistribute it and/or modify" --include='*.java' .
javadoc -sourcepath src/... | Shell |
#!/bin/bash
platform='unknown'
unamestr=`uname`
case "$unamestr" in
Linux)
platform='linux'
rootdir="$(dirname $(readlink -f $0))"
;;
Darwin)
platform='mac'
rootdir="$(cd $(dirname $0); pwd -P)"
;;
esac
case "$platform" in
mac)
java -Xdock:name=OpenPnP -Djava.library.path=$rootdir/lib/native/mac-univer... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
# Get current 'Last Changed Rev'
REV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_svn_rev
OLD_REV="o`cat /tmp/ol_svn_rev`"
# If they're not equal, do some work.
if [ ! o$REV = $OLD_REV ]; then
... | Shell |
#!/bin/sh
RELEASE=$1
RC=$2
svn co http://svn.openlayers.org/branches/openlayers/$RELEASE
cd $RELEASE
sed -i -e "s/OpenLayers.VERSION_NUMBER=.*/OpenLayers.VERSION_NUMBER=\"Release $1-$2\";/" lib/OpenLayers.js
sed -i -e "s/VERSION_NUMBER: .*,/VERSION_NUMBER: \"Release $1-$2\",/" lib/OpenLayers/SingleFile.js
svn diff;
... | Shell |
#!/bin/sh
RELEASE=$1
svn copy -m "Branching for the $RELEASE release" http://svn.openlayers.org/trunk/openlayers http://svn.openlayers.org/branches/openlayers/$RELEASE
| Shell |
#!/bin/sh -x
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py
mkdir /osgeo/openlayers/docs/api/$VERSION
cd ..
cp build/OpenLayers.js /osgeo/openlayers/docs/api/$VERSION
cp -a img/ /osgeo/openlayers/docs/api/$VERSION
cp -a theme/ /osgeo/op... | Shell |
#!/bin/sh
VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip compiler-latest.zip
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure ful... | Shell |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/bin/bash
absolute_dir="$( cd "$( dirname "$0" )" && pwd )"
export LD_LIBRARY_PATH=$absolute_dir/lib/linux-`uname -m`
jarpath="$absolute_dir/jar/wookieerunner.jar"
android_framework_dir=`grep framework $absolute_dir/../*.properties | cut -d '=' -f 2`
framework=$absolute_dir/jar:$android_framework_dir
exec java -Xm... | Shell |
#!/bin/bash
absolute_dir="$( cd "$( dirname "$0" )" && pwd )"
export LD_LIBRARY_PATH=$absolute_dir/lib/linux-`uname -m`
jarpath="$absolute_dir/jar/aster.jar"
android_framework_dir=`grep framework $absolute_dir/../*.properties | cut -d '=' -f 2`
framework=$absolute_dir/jar:$android_framework_dir
debug_parameters=""
... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/sh
/usr/local/appengine-java-sdk/bin/appcfg.sh update web-app
| Shell |
#!/bin/sh
# To use this script install the Google App Engine SDK for Java in the directory
# /usr/local/appengine-java-sdk
/usr/local/appengine-java-sdk/bin/dev_appserver.sh --address=0.0.0.0 web-app
| Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/bash
# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt
while :; do
java -cp lib/*:l1jserver.jar net.l1j.gui.ServerConfig &
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
| Shell |
#!/bin/bash
# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt
while :; do
java -cp lib/*:l1jserver.jar net.l1j.gui.ServerConfig &
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
| Shell |
#!/bin/bash
# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt
while :; do
java -Djava.util.logging.manager=net.l1j.L1LogManager -Xms1024m -Xmx1024m -cp ./lib/*:l1jserver.jar net.l1j.server.GameServer &
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
| Shell |
#!/bin/bash
# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt
while :; do
java -Djava.util.logging.manager=net.l1j.L1LogManager -Xms1024m -Xmx1024m -cp ./lib/*:l1jserver.jar net.l1j.server.GameServer &
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
| Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
mvn clean checkstyle:checkstyle test jacoco:report findbugs:findbugs pmd:pmd pmd:cpd site
open target/site/jacoco/index.html
open target/site/checkstyle.html
open target/cpd.xml
open target/pmd.xml
open target/findbugsXml.xml
| Shell |
#!/bin/bash
mvn clean checkstyle:checkstyle test jacoco:report findbugs:findbugs pmd:pmd pmd:cpd site
open target/site/jacoco/index.html
open target/site/checkstyle.html
open target/cpd.xml
open target/pmd.xml
open target/findbugsXml.xml
| Shell |
#!/bin/bash
mvn clean checkstyle:checkstyle test jacoco:report findbugs:findbugs pmd:pmd pmd:cpd site
open target/site/jacoco/index.html
open target/site/checkstyle.html
open target/cpd.xml
open target/pmd.xml
open target/findbugsXml.xml
| Shell |
#!/bin/bash
mvn clean checkstyle:checkstyle test jacoco:report findbugs:findbugs pmd:pmd pmd:cpd site
open target/site/jacoco/index.html
open target/site/checkstyle.html
open target/cpd.xml
open target/pmd.xml
open target/findbugsXml.xml
| Shell |
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-u...@uunet.uu.net if you want tha... | Shell |
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-u...@uunet.uu.net if you want tha... | Shell |
#!/bin/sh
while [ 1 ]
do
svn update && python fetcher.py && python voter.py
echo Next update in 5 minutes
sleep 300
done
| Shell |
#!/bin/sh
#
# dex2jar - Tools to work with android .dex and java .class files
# Copyright (c) 2009-2012 Panxiaobo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache... | Shell |
find . -name "*.cpp"|xargs etags -a
find . -name "*.h"|xargs etags -a
find . -name "*.proto"|xargs etags -a
| Shell |
#!/bin/sh
#
# Install the tintin++ executable and help file.
#
#strip tt++
case "$1" in
.|./) ;;
*) echo Moving tt++ to $1/ ...; mv tt++ $1/;;
esac
echo Copying the help file to $2/ ...
cp support/.tt_help.txt.Z ~
cat <<EOF
In this version of tintin++, you need to have certain
#pathdir commands in your .tintinr... | Shell |
#!/bin/sh
#
# Send email to the tintin++ development team: use this for
# bug reports, questions, pleas for help, or anything, really.
#
# Our email address -- hopefully this won't change too soon.
DEVTEAM=ranger_space@hotmail.com
# Warnings about non-distribution versions.
WARNING='NOTE!! This is a *development* ve... | Shell |
#!/bin/sh
#
# Install the tintin++ executable and help file.
#
#strip tt++
case "$1" in
.|./) ;;
*) echo Moving tt++ to $1/ ...; mv tt++ $1/;;
esac
echo Copying the help file to $2/ ...
cp support/.tt_help.txt.Z ~
cat <<EOF
In this version of tintin++, you need to have certain
#pathdir commands in your .tintinr... | Shell |
echo Converting CR-LF to LF ...
for file in `find . -type f -print`; do
perl -i -pe 's:\r$::g' $file
done
cd readline
perl -e "s/\r$//g" -p -i *
cd ../protos
perl -e "s/\r$//g" -p -i *
cd ..
echo Done!
| Shell |
echo "Please Note: Readline wasn't found in either of the normal spots.";
echo "(/usr/include or /usr/local/include)";
echo "See readline.txt for detailed instruction"
sleep 5
| Shell |
#!/bin/sh
#
# Send email to the tintin++ development team: use this for
# bug reports, questions, pleas for help, or anything, really.
#
# Our email address -- hopefully this won't change too soon.
DEVTEAM=ranger_space@hotmail.com
# Warnings about non-distribution versions.
WARNING='NOTE!! This is a *development* ve... | Shell |
#!/bin/bash
set -e
echo -n "Enter the version for this release: "
read ver
if [ ! $ver ]; then
echo "Invalid version."
exit
fi
name="select2"
js="$name.js"
mini="$name.min.js"
css="$name.css"
release="$name-$ver"
tag="$ver"
branch="build-$ver"
curbranch=`git branch | grep "*" | sed "s/* //"`
timestamp=$(date)
tok... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.