code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
## Script to create spatially enabled databases for aas database project ### psql -U postgres createdb aas_base psql -U postgres -d aas_base -f /usr/share/postgresql/9.1/contrib/postgis-2.0/postgis.sql psql -U postgres -d aas_base -f /usr/share/postgresql/9.1/contrib/postgis-2.0/spatial_ref_sys.sql psql -U postgres -...
Shell
## File to create permissions and roles on aas_gis database ## File to create permissions and roles on aas_gis database psql -U postgres -d aas_base -c "CREATE ROLE guest WITH PASSWORD 'sculpin';" psql -U postgres -d aas_base -c "GRANT ALL PRIVILEGES ON DATABASE aas_base to guest;" psql -U postgres -d aas_base -c "GR...
Shell
psql -U postgres -c "CREATE SCHEMA global; CREATE SCHEMA cambodia; CREATE SCHEMA zambia;CREATE SCHEMA bangladesh;CREATE SCHEMA solomons; CREATE SCHEMA vietnam; CREATE SCHEMA timorleste;CREATE SCHEMA philippines; CREATE SCHEMA malaysia; CREATE SCHEMA tanzania; CREATE SCHEMA indonesia; CREATE SCHEMA fiji; CREATE SCHEM...
Shell
###### Script to build postgresql and postgis databases ##### ####### Set up repositories ################################ sudo apt-get install python-software-properties sudo apt-add-repository ppa:sharpie/for-science sudo apt-add-repository ppa:sharpie/postgis-stable sudo apt-add-repository ppa:ubuntugis/ubuntugis...
Shell
DIR="/srv/public/Marine_Impacts/model" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR ## Import raster file hdr.adf ## raster2pgsql -s 4326 -d -I -C -M hdr.adf -F -t 200x200 ${SCHEMA}.socioecon_marine_impact > socioecon_marine_impact.sql ## Upload the sql file to database: ## psql -d aas_base -f soci...
Shell
DIR="/srv/public/input_data_files/EastTimorFadLocationsFromDaveMills" SCHEMA="timorleste" DB="aas_base" USER_NAME="postgres" cd $DIR ## Script written by Doug Beare to import shapefiles to a postgis server. # Atauro # psql -d ${DB} -U postgres -c "DROP TABLE ${SCHEMA}.atauro_stns;" shp2pgsql -s 4326 -g the_geom_432...
Shell
psql -h 50.18.115.108 -d aas -U postgres -c "CREATE SCHEMA global"; ## Load shapefiles into grouper ## DIR="/srv/public/input_data_files/AAS-Hubs" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR for f in *.shp do psql -d ${DB} -U postgres -c "DROP TABLE ${SCHEMA}.${f%.*};" shp2pgsql -s 4326 -g the_geom_...
Shell
TMPDIR="/srv/public/input_data_files/World-EEZ" DIR="/srv/public/input_data_files/World-EEZ" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR ### World maritime boundaries ### ## DROP TABLE if it exists psql -d aas_base -U postgres -c "DROP TABLE ${SCHEMA}.geo_worldeez;" ## Geography type #shp2pgsql -G -...
Shell
DIR="/srv/public/input_data_files/Cambodia-CLEAR" SCHEMA="cambodia" DB="aas_base" USER_NAME="postgres" cd $DIR ## Base Data ## cd CLEAR\ Base\ Data/ cd Data for f in *.shp do psql -d ${DB} -U postgres -c "DROP TABLE ${SCHEMA}.${f%.*};" shp2pgsql -s 4326 -g the_geom_4326 -I -c -W "latin1" $f ${SCHEMA}.${f%.*} | psql...
Shell
TMPDIR="/srv/public/input_data_files/Landscan2011_Global/ArcGIS/Population/lspop2011" DIR="/srv/public/input_data_files/Landscan2011_Global/ArcGIS/Population/lspop2011" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR ## Import raster file hdr.adf ## raster2pgsql -s 4326 -d -I -C -M hdr.adf -F -t 200x200 $...
Shell
TMPDIR="/srv/public/input_data_files/" DIR="/srv/public/input_data_files/NetherlandsLandingsVMSdata" SCHEMA="netherlands" DB="aas_base" USER_NAME="postgres" cd $DIR ## Script written by Doug Beare to import sql files for tacsat (VMS) and landings (eflalo format) for the Netherlands 1990-2011. Data originally obtained ...
Shell
TMPDIR="/srv/public/input_data_files/WorldMap" DIR="/srv/public/input_data_files/WorldMap" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR ### World Country boundaries ### ## DROP TABLE if it exists psql -d aas_base -U postgres -c "DROP TABLE ${SCHEMA}.geo_worldmap;" ## prepare the tables don't load data...
Shell
TMPDIR="/srv/public/input_data_files/WorldSpatial" DIR="/srv/public/input_data_files/WorldSpatialData" SCHEMA="global" DB="aas_base" USER_NAME="postgres" cd $DIR ## DROP TABLE if it exists # WorldOceans #psql -d ${DB} -U postgres -c "DROP TABLE ${SCHEMA}.geo_worldocean;" shp2pgsql -s 4326 -g the_geom_4326 -I -c -W ...
Shell
TMPDIR="/srv/public/input_data_files/Zambia_GPS_Camps" DIR="/srv/public/input_data_files/Zambia_GPS_Camps" SCHEMA="zambia" DB="aas_base" USER_NAME="postgres" cd $DIR ### Hello world ### ## DROP TABLE if it exists # Zambian Fishing Camps psql -d ${DB} -U postgres -c "DROP TABLE ${SCHEMA}.geo_zambia_gps_camps;" # Bu...
Shell
### Prepare data in R first Ring### #getwd() #setwd("/srv/public/input_data_files/BangladeshFishRings") #library(gdata) #LatsLongs <- read.xls("RingsLocations.xlsx",sheet=1) #LatsLongs <- LatsLongs[,1:13] #write.table(LatsLongs,file='BangladeshFishRingLocations.csv', sep="|",row.names=FALSE) ## Shell scrip...
Shell
TMPDIR="/srv/public/input_data_files/SolomonIslandMalaitaShapefiles" DIR="/srv/public/input_data_files/SolomonIslandsMalaitaShapefiles" SCHEMA="solomons" DB="aas_base" USER_NAME="postgres" cd $DIR ## Script written by Doug Beare to import shapefiles to a postgis server. Data originally prepared by SJ Teoh for Simon At...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash cd empty/ ./generate.sh cd ../file_header/ ./generate.sh cd ../single_delta_encoding/ ./generate.sh cd ../double_delta_encoding/ ./generate.sh cd ../with_data/ ./generate.sh
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0,0,0.08,0.08 debug-file=true
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0.1,0.2,0.3,0.4 map-start-position=0.15,0.25 map-start-zoom=16 preferred-language=en comment=testcomment
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=single
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=double
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0.99,0.99,1.01,1.01
Shell
# This script transcodes a given video file to different GOP and QSCALES (2 for loops) and saves a log file. The logfile is used by gop_vs_fsize.py plotting script. # If videos should be saved replace ffmpeg line with this: # ffmpeg -i "$INPUTFILE" -y -qscale "$QSCALE" -an -g "$GOPSIZE" "$INPUTFILE""GOP$GOPSIZE-qscale...
Shell
# One script to rule them all # ... Uncomment as neccesary ... ###### Gop vs file size ##### # Remove audio from orignal videos (Ideally without transcoding) # It is neccessary to transcode some of the videos in order to extract framestatistics - unfortunate. # When transcoding, the target bitrate is matched to the...
Shell
# This script should save a logfile with frame_stats for given input video. The logfile will be read by dist_frames.py INPUTFILE="$1" # identify inputfile LOGFILE="$2" # name logfile ffprobe -show_frames "$INPUTFILE" |grep 'pict_type\|pkt_pos\|[FRAME]\|[/FRAME]' > "$LOGFILE"
Shell
# Remove audio from orignal videos (Ideally without transcoding) # It is neccessary to transcode some of the videos in order to extract framestatistics - unfortunate. # When transcoding, the target bitrate is matched to the original video with audio removed. ffmpeg -i vids/sintel_1.mp4 -y -an -vcodec mpeg4 -vb 723k vi...
Shell
#!/bin/bash #build-latex script v. 1.05 (NO OPEN IN MAC OS X) #To use the build LaTeX script, under Linux, type in the following into Texmakers settings under "PdfLaTeX": #/home/USER/Scripts/build-latex-cross.sh '%.tex' #Replace USER with your user name #To use the build LaTeX script, under Mac OS X, type in the follo...
Shell
#!/bin/bash #build-latex script v. 1.05 (NO OPEN IN MAC OS X) #To use the build LaTeX script, under Linux, type in the following into Texmakers settings under "PdfLaTeX": #/home/USER/Scripts/build-latex-cross.sh '%.tex' #Replace USER with your user name #To use the build LaTeX script, under Mac OS X, type in the follo...
Shell
#!/bin/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.SlaveApiTestNode $@
Shell
#!/bin/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@
Shell
#!/bin/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.PassthroughTestNode $@
Shell
#!/bin/bash if [ "$HEIDELTIME_HOME" = "" ] ; then echo "please set \$HEIDELTIME_HOME" exit -1 fi PWD=$(pwd) cd $HEIDELTIME_HOME/resources echo "Writing used_resources.txt" find ./ -name "*.txt" > used_resources.txt echo "Copying resources..." cp -r $HEIDELTIME_HOME/resources/* $HEIDELTIME_HOME/class/ echo "don...
Shell
#!/bin/bash # author: Jannik Stroetgen # email: stroetgen@uni-hd.de # date: April 23, 2011 # About this script: #################### # This script adapts the descriptor files of the DKPro components. # The type system information has to be adapted: # * in DKPRO_HOME/desc/annotator/SentenceSplitter.xml change...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. RED="0.5 0.5 0.5 0 0 0 0 0 0" GREEN="0 0 0 0.5 0.5 0.5 0 0 0" for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do conv...
Shell
#!/bin/sh # make sure ndk-build is in path SCRIPTDIR=`dirname $0` MUPDF_FILE=mupdf-snapshot-20111207.tar.gz MUPDF=mupdf #MUPDF_FILE=mupdf-0.9-source.tar.gz #MUPDF=mupdf-0.9 FREETYPE=freetype-2.4.6 OPENJPEG=openjpeg_v1_4_sources_r697 JBIG2DEC=jbig2dec-0.11 JPEGSRC=jpegsrc.v8a.tar.gz JPEGDIR=jpeg-8a cd $SCRIPTDIR/../de...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png done
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi if [ $(uname -s) == "Darwin" ] then open=open else open=xdg-open fi $open http://localhost:$port/templat...
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/sh var clasejava = java.lang.Math(); var uno=-1; uno=abs(uno); print(uno);
Shell
#!/bin/sh var clasejava = java.lang.Math(); var uno=-1; uno=abs(uno); print(uno);
Shell
#!/bin/bash jscal -s 8,1,0,128,128,16320,16448,1,0,-129,-129,16449,16320,1,0,0,0,2147483647,2147483647,1,0,128,128,16320,16448,1,0,-129,-129,16449,16320,1,0,0,0,2147483647,2147483647,1,0,0,0,2147483647,2147483647,1,0,0,0,2147483647,2147483647 /dev/input/js0
Shell
#!/bin/bash jscal -s 8,1,0,128,128,16320,16448,1,0,-129,-129,16449,16320,1,0,0,0,2147483647,2147483647,1,0,128,128,16320,16448,1,0,-129,-129,16449,16320,1,0,0,0,2147483647,2147483647,1,0,0,0,2147483647,2147483647,1,0,0,0,2147483647,2147483647 /dev/input/js0
Shell
#!/bin/bash echo pause | mplayer -nolirc -noaspect -vo x11 -slave "$@" &
Shell
#!/bin/sh vlc --input-record-path=$HOME/.cam_tracker_capture/ http://192.168.0.8:8080/video
Shell
#!/bin/sh vlc --sub-source "logo{file=bullseye.png,transparency=0,x=-1,y=-1,position=0}" http://192.168.0.8:8080/video
Shell
#!/bin/sh vlc --input-record-path=$HOME/.cam_tracker_capture/ http://192.168.0.8:8080/video
Shell
#!/bin/sh vlc --sub-source "logo{file=bullseye.png,transparency=0,x=-1,y=-1,position=0}" http://192.168.0.8:8080/video
Shell
#!/bin/sh v4l2-ctl -d /dev/video1 -c exposure_auto_priority=0 v4l2-ctl -d /dev/video1 -c exposure_auto=1 v4l2-ctl -d /dev/video1 -c exposure_absolute=200
Shell
#!/bin/bash echo pause | mplayer -nolirc -noaspect -vo x11 -slave "$@" &
Shell
#!/bin/bash if [[ $# -ne 2 || $1 != "using" ]]; then cat > /dev/stderr <<USAGE Usage: capture_experiment_video using URL URL must be an MJPEG stream. USAGE exit 1 fi exec vlc --input-record-path experiment_video "$2"
Shell
#!/bin/bash if [[ $# -ne 2 || $1 != "using" ]]; then cat > /dev/stderr <<USAGE Usage: capture_experiment_video using URL URL must be an MJPEG stream. USAGE exit 1 fi exec vlc --input-record-path experiment_video "$2"
Shell
#!/bin/sh v4l2-ctl -d /dev/video1 -c exposure_auto_priority=0 v4l2-ctl -d /dev/video1 -c exposure_auto=1 v4l2-ctl -d /dev/video1 -c exposure_absolute=200
Shell
#!/bin/sh touch src/p2t.pyx python setup.py build_ext -i
Shell
#!/bin/bash for test_file in $(ls *_test.py ../nonstandard/*_test.py) do echo -e "========== Running $test_file" ./$test_file if [ "$?" -ne "0" ]; then echo "Died in $test_file" exit 1 fi done
Shell
#!/bin/sh # for this to work you need to have the following installed: # - Xcode 3.1.3 or higher: http://developer.apple.com/ # - git: http://help.github.com/mac-git-installation/ # - mercurial / hg: http://mercurial.berkwood.com/ # pull three20 cd .. git clone git://github.com/facebook/three20.git # pull mailcore hg...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash # Build config for the build script, build.sh. Look there for more info. APP_NAME=helloworld CHROME_PROVIDERS="content locale skin" CLEAN_UP=1 ROOT_FILES="readme.txt" ROOT_DIRS= BEFORE_BUILD= AFTER_BUILD=
Shell
#!/bin/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
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/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
g++ run_program.cpp -o abacus
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/bash # $Id$ base=`dirname $0`/.. cd $base VERSION=`grep 'VERSION =' setup.py | cut -d "'" -f2` # Source dists python setup.py sdist --formats=gztar,zip # Eggs python2.4 setup.py bdist_egg --exclude-source-files python2.5 setup.py bdist_egg --exclude-source-files python2.6 setup.py bdist_egg --exclude-source-...
Shell
#!/bin/bash # $Id:$ TOOLS=`dirname $0` BASE=$TOOLS/.. EPYDOC=$TOOLS/epydoc PYTHONPATH=$EPYDOC:$BASE:$PYTHONPATH export PYTHONPATH DOC=$BASE/doc DOC_HTML=$DOC/html DOC_HTML_API=$DOC_HTML/api DOC_HTML_GUIDE=$DOC_HTML/programming_guide DOC_HTML_TUTORIAL=$DOC_HTML/tutorial DOC_PDF=$DOC/pdf function clean() { # Clean...
Shell
#!/bin/bash # $Id:$ ROOT=`dirname $0`/../.. RES=`dirname $0`/res VERSION=`grep 'VERSION =' $ROOT/setup.py | cut -d "'" -f2` rm -rf $ROOT/build # Create AVbin files mkdir -p $ROOT/build/avbin rsync -a /usr/local/lib/libavbin.dylib $ROOT/build/avbin/ cp /usr/local/lib/`ls -l /usr/local/lib/libavbin.dylib | \ sed '...
Shell
#!/bin/bash # $Id:$ PYGLET_ORG=66.35.48.21 PYGLET_DIR=/home/pyglet/www rsync -rv website/dist/* $PYGLET_ORG:$PYGLET_DIR/ #rsync -rv doc/html/* $PYGLET_ORG:$PYGLET_DIR/doc/ #rsync -rv doc/pdf/* $PYGLET_ORG:$PYGLET_DIR/doc/
Shell
#!/bin/sh gcc -o mandelbrot mandelbrot_locality.c -Wall -O3 -lpthread || exit 1 time ./mandelbrot maps/firestrm.map test0.bmp 1024 1024 time ./mandelbrot maps/blues.map test1.bmp 1280 1280 -1.5 -0.1 0.5 1024 time ./mandelbrot maps/volcano.map test2.bmp 1280 1280 -1.5 -0.125 0.25 1024 time ./mandelbrot maps/royal.map ...
Shell
#!/bin/sh gcc -o mandelbrot mandelbrot_locality.c -Wall -O3 -lpthread || exit 1 time ./mandelbrot maps/firestrm.map test0.bmp 1024 1024 time ./mandelbrot maps/blues.map test1.bmp 1280 1280 -1.5 -0.1 0.5 1024 time ./mandelbrot maps/volcano.map test2.bmp 1280 1280 -1.5 -0.125 0.25 1024 time ./mandelbrot maps/royal.map ...
Shell
#! /bin/sh python wmac.py
Shell
#!/bin/sh KEY="$HOME/.ssh/id_dsa.pub" if [ ! -f ~/.ssh/id_dsa.pub ];then echo "private key not found at $KEY" echo "* please create it with "ssh-keygen -t dsa" *" echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *" exit fi if [ -z $1 ];...
Shell
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa ./ssh-copy-id-script.sh $1@$2
Shell