code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh ./configure \ CFLAGS="" \ FCFLAGS="" \ LDFLAGS="-bind_at_load" \ FC=mpif90 \ CC=mpicc \ --enable-enzo \ --enable-double \ --enable-onedim \ --with-hdf=/usr/local/hdf5/1.8.3p
Shell
#!/bin/sh FFTW_DIR=/home/jwise/local ./configure \ CFLAGS="-I ${FFTW_DIR}/include" \ FCFLAGS="-I ${FFTW_DIR}/include" \ LDFLAGS="-L ${FFTW_DIR}/lib -lgpfs" \ LD=/home/jwise/local/hdf5/1.8.2p/bin/h5pfc \ FC=mpif90 \ CC=mpicc \ --enable-enzo \ --enable-double \ --with-hdf=/home/jwise/l...
Shell
#!/bin/sh first=200902121 nn=10 for i in `seq 0 $nn`; do seed=`expr $i + $first` python make_ic.py $seed done
Shell
#!/bin/sh # # ------------------------------------------------------ # Squirrel - a script for finding and caching batch output. # # How to use squirrel: Squirrel should be started in your # batch file after changing to the appropriate directory # but before running the job itself. Use the following command: # # ...
Shell
#!/bin/ksh #@ job_type = parallel #@ environment = COPY_ALL; \ MP_CSS_INTERRUPT=yes; \ MP_INTRDELAY=100; \ MP_PULSE=0; \ MP_SHARED_MEMORY=yes; \ MP_LABELIO=yes; \ MP_EUILIB=ip; \ MP_EAGER_LIMIT=...
Shell
#!/bin/ksh # @ job_type = parallel # @ environment = COPY_ALL; \ MP_EUILIB=us; \ MP_CPU_USAGE=unique; \ MP_CSS_INTERRUPT=yes; \ MP_INTRDELAY=100; \ MP_PULSE=0; \ MP_ADAPTER_USE=dedicated; \ MP_S...
Shell
#!/bin/bash INSTALL_DIR="`pwd`/jni/libraw" SRC_DIR="`pwd`/../LibRaw-0.14.7" cd $SRC_DIR export TOOLCHAIN="$HOME/NVPACK/toolchain-14" export NDK="$HOME/NVPACK/android-ndk-r8b" export SYSROOT="$TOOLCHAIN/sysroot" export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH" export ARCH="armv7-a" export SYS_ROOT="$NDK_ROOT...
Shell
#!/bin/bash INSTALL_DIR="`pwd`/jni/exiv2" SRC_DIR="`pwd`/../exiv2-0.22" cd $SRC_DIR export TOOLCHAIN="$HOME/NVPACK/toolchain-14" export NDK="$HOME/NVPACK/android-ndk-r8b" export SYSROOT="$TOOLCHAIN/sysroot" export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH" export ARCH="armv7-a" export SYS_ROOT="$NDK_ROOT/pla...
Shell
#!/bin/bash # Repast Simphony Model Starter # By Michael J. North and Jonathan Ozik # 11/12/2007 # Note the Repast Simphony Directories. PWD="${0%/*}" cd $PWD REPAST_SIMPHONY_ROOT=$PWD/repast.simphony/repast.simphony.runtime_$REPAST_VERSION REPAST_SIMPHONY_LIB=$REPAST_SIMPHONY_ROOT/lib # Define the Core Repast Simph...
Shell
#!/bin/sh $JAVA_HOME/bin/java -jar openatna-1.2-SNAPSHOT.jar > /dev/null 2>&1 &
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/ INCLUDE=$PREFIX/include BIN=$PREFIX/bin LIB=$PREFIX/lib $scriptResources/downloadF...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/ INCLUDE=$PREFIX/include BIN=$PREFIX/bin LIB=$PREFIX/lib SSLVERSION=0.9.8h-1 $scrip...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/hunspell-1.3.1 BUILD=/tmp/build_hunspell $scriptResources/downloadFilesIfNeeded.sh $downloadFolder http://down...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads/pthread PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/ INCLUDE=$PREFIX/include BIN=$PREFIX/bin LIB=$PREFIX/lib mkdir -p $downloa...
Shell
#!/bin/sh ./install_FreeType.sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then AGG_VERSION=2.4 else AGG_VERSION=$1 fi PREFIX=/Developer/Cocotron/1.0/Windows/i386/agg-$AGG_VERSION BUILD...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then targetPlatform="Windows" else targetPlatform=$1 fi if [ ""$2"" = "" ];then targetArchitecture="i386" else targetArchitectu...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/ $scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://cocotron.googlec...
Shell
#!/bin/sh #Copyright (c) 2006 Christopher J. W. Lloyd # #Permission is hereby granted, free of charge, to any person obtaining a copy of this #software and associated documentation files (the "Software"), to deal in the Software #without restriction, including without limitation the rights to use, copy, modify, #merge,...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/ $scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://www.opengl.org/r...
Shell
#!/bin/sh ./install_zlib.sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/freetype-2.3.5 $scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://downloads....
Shell
#!/bin/sh echo "Installing zlib" installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/ # We need the headers/libraries, zlib.net only provides a dll or source which is more...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then targetPlatform="Windows" else targetPlatform=$1 fi if [ ""$2"" = "" ];then targetArchitecture="i386" else targetArchitectu...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then targetPlatform="Windows" else targetPlatform=$1 fi if [ ""$2"" = "" ];then targetArchitecture="i386" else targetArchitectu...
Shell
#!/bin/sh #Copyright (c) 2006 Christopher J. W. Lloyd # #Permission is hereby granted, free of charge, to any person obtaining a copy of this #software and associated documentation files (the "Software"), to deal in the Software #without restriction, including without limitation the rights to use, copy, modify, #merge,...
Shell
#/bin/sh #Copyright (c) 2006 Christopher J. W. Lloyd # #Permission is hereby granted, free of charge, to any person obtaining a copy of this #software and associated documentation files (the "Software"), to deal in the Software #without restriction, including without limitation the rights to use, copy, modify, #merge, ...
Shell
#!/bin/sh #Copyright (c) 2006 Christopher J. W. Lloyd # #Permission is hereby granted, free of charge, to any person obtaining a copy of this #software and associated documentation files (the "Software"), to deal in the Software #without restriction, including without limitation the rights to use, copy, modify, #merge,...
Shell
#!/bin/sh echo "Installing libxml2" ./install_zlib.sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads PREFIX=/Developer/Cocotron/1.0/Windows/i386/ $scriptResources/downloadFilesIfNeeded.sh $downloadFolder "https...
Shell
#!/bin/bash # the name of the server on which we test export TESTING_SERVER=192.168.2.102 # the directory under which our build directory is available on the _server_ export TESTING_DIR=/Tests # specifies if files should be linked or copied to the test harness folder export TESTING_LINK_FILES=YES
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then targetPlatform="Windows" else targetPlatform=$1 fi if [ ""$2"" = "" ];then targetArchitecture="i386" else targetArchitectu...
Shell
#!/bin/sh installResources=`pwd`/Resources scriptResources=$installResources/scripts productFolder=/Developer/Cocotron/1.0 downloadFolder=$productFolder/Downloads if [ ""$1"" = "" ];then targetPlatform="Windows" else targetPlatform=$1 fi if [ ""$2"" = "" ];then targetArchitecture="i386" else targetArchitectu...
Shell
#!/bin/bash # Copyright 2009 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...
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 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/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/sh for i in *.php do echo -e "\n\t\$lang['list_view'] = 'View';" >> $i done
Shell
#!/bin/sh for i in *.php do echo -e "\n\t\$lang['list_view'] = 'View';" >> $i done
Shell
#!/bin/sh $JAVA_HOME/bin/java -jar openatna-1.2-SNAPSHOT.jar > /dev/null 2>&1 &
Shell
#!/bin/sh DIR="$( cd "$( dirname "$0" )" && pwd )" javac -target 1.5 -source 1.5 $DIR/testlibs/*.java if [ -n "$JYTHON_HOME" ] then javac -cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 $DIR/listeners/*.java else echo set JYTHON_HOME to compile listeners fi
Shell
#!/bin/bash testdir=`dirname $0` pybot --loglevel DEBUG --log none --report none --outputdir $testdir $testdir/example.txt python $testdir/../statuschecker.py $testdir/output.xml rebot $testdir/output.xml echo "$? tests failed, 5 should have failed." echo "Check that tests starting with 'FAILURE:' have failed and other...
Shell
#!/bin/bash dirname=robotframework-c-example zipname=$dirname-$(date +%Y%m%d).zip files="README.txt login.c LoginLibrary.py LoginTests.tsv Makefile" rm -rf $dirname $zipname mkdir $dirname echo Copying... for file in $files; do cp -v $file $dirname done echo Zipping... zip -r $zipname $dirname rm -rf $dirname ech...
Shell
#!/bin/bash base=`dirname $0` ROBOT_SYSLOG_FILE=$base/tmp/syslog.txt python $base/src/robot/run.py -P $base/atest/testresources/testlibs -P $base/tmp -L debug -d $base/tmp "$@"
Shell
#!/bin/bash pybot --outputdir results --exclude parallel atest/
Shell
#!/bin/bash python src/robot/rebot.py $1 >/dev/null & #/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024m -Xss1024k -classpath /home/jth/opt/jython2.5.1/jython.jar: -Dpython.home=/home/jth/opt/jython2.5.1 -Dpython.executable=/home/jth/opt/jython2.5.1/jython org.python.util.jython src/robot/rebot.py $1 >/dev/null & rebotpid...
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 -x PROJECT="gmail-delay-send" USER="blairkutz@gmail.com" ENV=dev FILE_NAME="output/${PROJECT}.${ENV}" echo "Combining and uploading files for $ENV" rm -f ${FILE_NAME} touch ${FILE_NAME} for FILE in ../src/* do cat $FILE >> ${FILE_NAME} done python utils/googlecode_upload.py -s "Uploading for $ENV" -p ...
Shell
#!/bin/sh VERSION=BETA_0.7.3 git tag -f ${VERSION} mkdir -f output FILE_NAME=output/${VERSION}.combined for FILE in ../src/downloaded/* do cat $FILE >> ${FILE_NAME} done
Shell
#!/bin/bash if [[ $1 ]]; then target=$1 else target="./data" fi read -p "Lowercase all files in $target directory? [y/N] " confirm if [[ `echo $confirm | tr '[:upper:]' '[:lower:]'` == 'y' ]]; then for f in $target/*; do g=`basename "$f" | tr '[:upper:]' '[:lower:]'` mv -fv "$f" "$target/$g" 2> /dev/null don...
Shell
mvn install:install-file -DpomFile=_parent_butfly.pom -Dfile=_parent_butfly.pom mvn install:install-file -DpomFile=_parent_albacore.pom -Dfile=_parent_albacore.pom
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
#!/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 # 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
#!/bin/sh function usage { echo "$0 <image> <file>" echo "$0 <image>" exit -1 } function needed { echo "You need encrypt installed, and valid defaults set in ~/.encryptrc" exit -1 } test $# -ne 1 -a $# -ne 2 && usage test -f $HOME/.encryptrc || needed tmp=$(mktemp) image=$1 if test $# -eq 2 then file=$2 enc...
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 t...
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 # # 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
#!/bin/bash LOG_FILE=/var/log/calefa.log is_alive_ping() { ping -c 1 $1 > /dev/null if [ $? -eq 0 ] ; then echo "there are internt conection.."| tee -a ${LOG_FILE} return else echo "No ay internet probamos otra vez en 60 seg"| tee -a ${LOG_FILE} sleep 60 ping -c 1 $1 > /dev/null ...
Shell
#!/bin/bash _wifi() { local cur opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts=$( COMP_CWORD=$COMP_CWORD \ COMP_WORDS="${COMP_WORDS[*]}" \ WIFI_AUTOCOMPLETE=1 \ $1 ) COMPREPLY=($(compgen -W "$opts" -- ${cur})) return 0 } complete -F _wifi wifi
Shell
#!/bin/bash _wifi() { local cur opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts=$( COMP_CWORD=$COMP_CWORD \ COMP_WORDS="${COMP_WORDS[*]}" \ WIFI_AUTOCOMPLETE=1 \ $1 ) COMPREPLY=($(compgen -W "$opts" -- ${cur})) return 0 } complete -F _wifi wifi
Shell
#!/bin/bash echo -e "\tIniciar start_connect_wifi.sh" count=1 while [ $count -le 15 ] do python connect_wifi.py x=$(( $x + 1 )) sleep 30 echo $(date +"%F_%T")";4;connect_wifi.sh;salida inesperada de read_temp.py KO">>/var/utemp/logs.log done echo $(date +"%F_%T")";5;connect_wifi.sh;max errores KO">>/var/u...
Shell
#!/bin/bash echo -e "\tIniciar start_connect_wifi.sh" count=1 while [ $count -le 15 ] do python connect_wifi.py x=$(( $x + 1 )) sleep 30 echo $(date +"%F_%T")";4;connect_wifi.sh;salida inesperada de read_temp.py KO">>/var/utemp/logs.log done echo $(date +"%F_%T")";5;connect_wifi.sh;max errores KO">>/var/u...
Shell
#!/bin/bash echo -e "\tIniciar start_read_ldr.sh" count=1 while [ 1 ] do # si el programa esta arrancado lo cerramos. killall read_ldr.py 2>/dev/null python read_ldr.py #x=$(( $x + 1 )) # NUNCA TERMINA!!!!! sleep 30 echo $(date +"%F_%T")";4;start_read_ldr.sh;salida inesperada de read_ldr.py KO">>/va...
Shell
#!/bin/bash echo -e "\tIniciar start_atchdog.sh" count=1 while [ $count -le 15 ] do sleep 180 # si el programa esta arrancado lo cerramos. if [ ! -f /tmp/file_watchdog.txt ]; then echo $(date +"%F_%T")";5;ERROR /tmp/file_watchdog.txt no existe Reboot! KO" echo $(date +"%F_%T")";5;ERROR /tmp/file_wat...
Shell
#!/bin/bash echo "Iniciar Utemper" # opcion de luz de la pantalla. echo 252 > /sys/class/gpio/export sudo sh -c "echo 'out' > /sys/class/gpio/gpio252/direction" sudo sh -c "echo '1' > /sys/class/gpio/gpio252/value" #apagamos rele: echo "3" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio3/direction echo "0...
Shell
#!/bin/bash echo -e "\tIniciar start_rele.sh" count=1 while [ $count -le 15 ] do # si el programa esta arrancado lo cerramos. killall rele 2>/dev/null /home/pi/utemper/rele x=$(( $x + 1 )) sleep 30 echo $(date +"%F_%T")";4;start_rele.sh;salida inesperada de rele KO">>/var/utemp/logs.log done echo $(d...
Shell
#!/bin/bash echo -e "\tIniciar start_atchdog.sh" count=1 while [ $count -le 15 ] do sleep 180 # si el programa esta arrancado lo cerramos. if [ ! -f /tmp/file_watchdog.txt ]; then echo $(date +"%F_%T")";5;ERROR /tmp/file_watchdog.txt no existe Reboot! KO" echo $(date +"%F_%T")";5;ERROR /tmp/file_wat...
Shell
#!/bin/bash echo -e "\tIniciar start_rele.sh" count=1 while [ $count -le 15 ] do # si el programa esta arrancado lo cerramos. killall rele 2>/dev/null /home/pi/utemper/rele x=$(( $x + 1 )) sleep 30 echo $(date +"%F_%T")";4;start_rele.sh;salida inesperada de rele KO">>/var/utemp/logs.log done echo $(d...
Shell
#!/bin/bash echo -e "\tIniciar start_read_ldr.sh" count=1 while [ 1 ] do # si el programa esta arrancado lo cerramos. killall read_ldr.py 2>/dev/null python read_ldr.py #x=$(( $x + 1 )) # NUNCA TERMINA!!!!! sleep 30 echo $(date +"%F_%T")";4;start_read_ldr.sh;salida inesperada de read_ldr.py KO">>/va...
Shell
fping -g ${1}.0 ${1}.255 >/dev/null 2>/dev/null arp -an >/dev/null 2>/dev/null cat /proc/net/arp |\ # remove space from column headers sed 's/\([^ ]\)[ ]\([^ ]\)/\1_\2/g' |\ # find HW_address column number and/or print that column awk '{ if ( !column ) { for (i = 1; i <= NF; i++ ) { ...
Shell
#!/bin/bash echo "Iniciar Utemper" # opcion de luz de la pantalla. echo 252 > /sys/class/gpio/export sudo sh -c "echo 'out' > /sys/class/gpio/gpio252/direction" sudo sh -c "echo '1' > /sys/class/gpio/gpio252/value" #apagamos rele: echo "3" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio3/direction echo "0...
Shell
#!/bin/bash LOG_FILE=/var/log/calefa.log is_alive_ping() { ping -c 1 $1 > /dev/null if [ $? -eq 0 ] ; then echo "there are internt conection.."| tee -a ${LOG_FILE} return else echo "No ay internet probamos otra vez en 60 seg"| tee -a ${LOG_FILE} sleep 60 ping -c 1 $1 > /dev/null ...
Shell
#!/bin/sh sleep 40 ifconfig eth0 192.168.0.222 netmask 255.255.255.0 broadcast 192.168.0.1 2>/dev/null if ping -c 1 8.8.8.8 then echo "Hay Conexion a internet" else echo "No hay conexion a internet:" killall wpa_supplicant ifconfig wlan0 down ifconfig wlan0 up # configurar wpa_supplicant con aplicacion ...
Shell
#!/bin/sh sleep 40 ifconfig eth0 192.168.0.222 netmask 255.255.255.0 broadcast 192.168.0.1 2>/dev/null if ping -c 1 8.8.8.8 then echo "Hay Conexion a internet" else echo "No hay conexion a internet:" killall wpa_supplicant ifconfig wlan0 down ifconfig wlan0 up # configurar wpa_supplicant con aplicacion ...
Shell
# libtool (GNU libtool) 2.4 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even f...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free softw...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is (in principle) common to ALL GNU software. # The presence o...
Shell