code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # # Common set of functions used by modules # Copyright (c) 2010-2012 Plowshare team # # This file is part of Plowshare. # # Plowshare is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version...
Shell
#!/bin/bash -e # # Delete a file from file sharing servers # Copyright (c) 2010-2011 Plowshare team # # This file is part of Plowshare. # # Plowshare is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either vers...
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 # # 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 open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
Shell
#!/usr/bin/env bash . $(dirname $0)/sbt-launch-lib.bash declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy" declare -r sbt_opts_file=".sbtopts" declare -r etc_sbt_opts_file="/etc/sbt/sbtopts" usage() { cat <<EOM Usage: $script_name [options] ...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz tar -zxvf tesseract-ocr-3.02.eng.tar.gz rm -f tesseract-ocr-3.02.eng.tar.gz mkdir data mv tesseract-ocr data/tesseract adb push data/ /sdcard/ adb shell sync
Shell
#!/bin/bash curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz tar -zxvf tesseract-ocr-3.02.02.tar.gz tar -zxvf leptonica-1.69.tar.gz rm -f tesseract-ocr-3.02.02.tar.gz rm -f leptonica-1.69.tar.gz mv tesseract-ocr jni/com_g...
Shell
java -Djava.rmi.server.codebase="file://localhost/f:/modules/slfp/slfp-1.0-SNAPSHOT.jar file://localhost/f:/modules/slfp/slfp_interface-1.0-SNAPSHOT.jar" -Djava.security.policy=module.policy -DmoduleName=slfp -cp .:f:/modules/slfp/slfp-1.0-SNAPSHOT.jar lfp.service.impl.RemoteSuperShortTermLoadForecast
Shell
java -cp .:slfp-1.0-SNAPSHOT.jar lfp.domain.utils.PersistenceUtil
Shell
java -cp ".:*" com.ht.psplan.PlanServerMain
Shell
java -cp .:voltagePlan_monitor-1.0-SNAPSHOT.jar com.ht.psplan.VoltagePlanMain
Shell
java -cp ".:*" com.ht.aems.fesservice.FesServerMain
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 ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) # Copyright 2005-2007, Cake Software Foundation, Inc. # # Licensed under ...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) # Copyright 2005-2007, Cake Software Foundation, Inc. # # Licensed under ...
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 # 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 # Detects OS we're compiling on and generates build_config.mk, # which in turn gets read while processing Makefile. # build_config.mk will set the following variables: # - PORT_CFLAGS will either set: # -DLEVELDB_PLATFORM_POSIX if cstatomic is present # -DLEVELDB_PLATFORM_NOATOMI...
Shell
#!/bin/bash curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz tar -zxvf tesseract-ocr-3.02.eng.tar.gz rm -f tesseract-ocr-3.02.eng.tar.gz mkdir data mv tesseract-ocr data/tesseract adb push data/ /sdcard/ adb shell sync
Shell
#!/bin/bash curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz tar -zxvf tesseract-ocr-3.02.02.tar.gz tar -zxvf leptonica-1.69.tar.gz rm -f tesseract-ocr-3.02.02.tar.gz rm -f leptonica-1.69.tar.gz mv tesseract-ocr jni/com_g...
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 # # Copyright 2013 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
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
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 # 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_BitmapCache VERBOSE
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
#!/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 # # 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 # ### $Id: run.sh abhayani@redhat.com $ ### # # Mobicents Media Server Control Script # # To use this script run it as root - it will switch to the specified user # # Here is a little (and extremely primitive) startup/shutdown script # for RedHat systems. It assumes that Mobicents Media Server lives in /usr/l...
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents Media Server Bootstrap Script ## ## ...
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents SS7 CLI Bootstrap Script ## ## ##...
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy | tee 2>&1 deploy.out
Shell
#!/bin/bash mvn install site | tee 2>&1 build.out
Shell
#!/bin/bash mvn deploy site-deploy | tee 2>&1 deploy.out
Shell
#!/bin/bash mvn install site | tee 2>&1 build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
Shell
#!/bin/bash mvn deploy site-deploy 2>&1 | tee deploy.out
Shell
#!/bin/bash mvn clean install site 2>&1 | tee build.out
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
export RUBYLIB=../ext/metasm:../src/metasm/ export LD_LIBRARY_PATH=/usr/local/lib
Shell
#!/bin/sh for i in "$@"; do echo $i NAME=$(echo $i | sed "s/[\/\.]/_/g;s/^/HEADER_GALAPIX_/" | tr [a-z] [A-Z]) sed -i "s/^\(#[a-z]*\) *HEADER_.*/\1 $NAME/" $i; done
Shell
#!/bin/bash ################################# # $1 = boost library directory # # $2 = output directory # ################################# echo "Copying dependencies to output directory..." cp "$1/"*.so "$2/"
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/../../../../java/target/"jace-examples-peer-example1*.jar "$2/peer_example1.jar" cp "$1/"jace-core-runtim...
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/"jace-core-runtime-*.jar "$2/jace-runtime.jar"
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/"jace-core-runtime-*.jar "$2/jace-runtime.jar"
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/"jace-core-runtime-*.jar "$2/jace-runtime.jar"
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/../../../../java/target/"jace-examples-singleton*.jar "$2/singleton.jar" cp "$1/"jace-core-runtime-*.jar ...
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/"jace-core-runtime-*.jar "$2/jace-runtime.jar"
Shell
#!/bin/bash ############################# # $1 = jace home directory # # $2 = output directory # ############################# echo "Copying dependencies to output directory..." cp "$1/lib/"*.so "$2/" cp "$1/"jace-core-runtime-*.jar "$2/jace-runtime.jar"
Shell
#!/bin/bash # take number of snaps, volid, as parms # schedule runs from cron (pass snaps and volid/ fs1 nightly, all others monthly) # logging # alerting and paralysis # @TODO Jeff Masiello Notes: See NS-440. See fssnap_prep_cron.sh lot of stuff in here that doesn;t work or never will due to changes in # AWS elements...
Shell
#!/bin/bash # /opt/amisnaps/fssnap.sh 7 vol-35da9515 10 x novalid # this file generates the commands needed to run the fssnap.sh backup script. It dynamically gathers all # the instances and builds the command strings. Many of the paramters are not used because the Amisnap # script was never finished and validation doe...
Shell
#!/bin/sh echo This script takes a minute to run. Be patient. 1>&2 LC_CTYPE=C export LC_CTYPE # pad stdin to multiple of 120 lines pad() { awk '{print} END{for(; NR%120!=0; NR++) print ""}' } # create formatted (numbered) files mkdir -p fmt rm -f fmt/* cp README fmt files=`grep -v '^#' runoff.list | awk '{print $...
Shell
#!/bin/sh echo This script takes a minute to run. Be patient. 1>&2 LC_CTYPE=C export LC_CTYPE # pad stdin to multiple of 120 lines pad() { awk '{print} END{for(; NR%120!=0; NR++) print ""}' } # create formatted (numbered) files mkdir -p fmt rm -f fmt/* cp README fmt files=`grep -v '^#' runoff.list | awk '{print $...
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
Shell
#!/bin/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/bash MEMORY=512m java -Xmx$MEMORY -cp "../lib/*" -javaagent:../lib/sizeofag-1.0.0.jar moa.gui.GUI
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
Shell
#!/bin/sh cd `dirname $0` ../src/ami -n .:../src $* # for shared lib, use: opp_run -l ../src/ami -n .:../src $*
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/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.SlaveApiTestNode $@
Shell