code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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/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 # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash if [ "$1" != "--yes" ] then echo '==============================================' echo 'this command will connect to upload.ala.org.au' echo 'and download the contents of ./exporter/' echo 'it will overwrite any local copies of files' echo '' echo 'to prove you are serious, the comman...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash if [ "$1" != "--yes" ] then echo '==============================================' echo 'this command will connect to upload.ala.org.au' echo 'and download the contents of ./exporter/' echo 'it will overwrite any local copies of files' echo '' echo 'to prove you are serious, the comman...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash if [ "$1" != "--yes" ] then echo '==============================================' echo 'this command will connect to upload.ala.org.au' echo 'and download the contents of ./exporter/' echo 'it will overwrite any local copies of files' echo '' echo 'to prove you are serious, the comman...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash if [ "$1" != "--yes" ] then echo '==============================================' echo 'this command will connect to upload.ala.org.au' echo 'and download the contents of ./exporter/' echo 'it will overwrite any local copies of files' echo '' echo 'to prove you are serious, the comman...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#!/bin/bash # /*************************************************************************** # Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in com...
Shell
#!/bin/bash #/************************************************************************** # * Copyright (C) 2011 Atlas of Living Australia # * All Rights Reserved. # * # * The contents of this file are subject to the Mozilla Public # * License Version 1.1 (the "License"); you may not use this file # * except in co...
Shell
#! /bin/bash # Shell script to automatically create a simple shell script # and submit it to sge using qsub. To use this, just type # ezsub followed by the name and options for your job. I.e., # # ezsub paup -n batchfile.nex # ezsub ./configure --disable-shared # ezsub mb adh.nex # ezsub tar -xvf gsl-1.8.tar # # The o...
Shell
#! /bin/bash # Shell script to automatically create a simple shell script # and submit it to sge using qsub. To use this, just type # ezsub followed by the name and options for your job. I.e., # # nicesub paup -n batchfile.nex # nicesub ./configure --disable-shared # nicesub mb adh.nex # nicesub tar -xvf gsl-1.8.tar #...
Shell
#!/bin/bash #This just returns qstat's normal output, omitting jobs held in individual user queues # Brian O'Meara # http://www.brianomeara.info/SGEscripts.html # Nov. 16, 2006 # Released under GNU Public Licence v 2 qstat | grep -v "hqw"
Shell
#! /bin/bash # Shell script to automatically create a simple shell script # and submit it to sge using qsub. To use this, just type # ezsub followed by the name and options for your job. I.e., # # ezsub paup -n batchfile.nex # ezsub ./configure --disable-shared # ezsub mb adh.nex # ezsub tar -xvf gsl-1.8.tar # # The o...
Shell
#! /bin/bash # Shell script to automatically create a simple shell script # and submit it to sge using qsub. To use this, just type # ezsub followed by the name and options for your job. I.e., # # nicesub paup -n batchfile.nex # nicesub ./configure --disable-shared # nicesub mb adh.nex # nicesub tar -xvf gsl-1.8.tar #...
Shell
#!/bin/bash #This just returns qstat's normal output, omitting jobs held in individual user queues # Brian O'Meara # http://www.brianomeara.info/SGEscripts.html # Nov. 16, 2006 # Released under GNU Public Licence v 2 qstat | grep -v "hqw"
Shell
#! /bin/bash LIB_PATH=/opt/akimimi_common/ PHP_SCRIPT_PATH=/opt/akimimi_common/tempphp/ PHP_FILE=$PHP_SCRIPT_PATH$2 PHP=/usr/local/php/bin/php LOG_FILE=/opt/akimimi_common/phplog if [ -x PHP_SCRIPT_PATH ]; then mkdir -p $PHP_SCRIPT_PATH fi echo "<?php" > $PHP_FILE echo "\$LIB_PATH='$LIB_PATH';" >> $PHP_FILE echo "r...
Shell
#! /bin/bash LIB_PATH=/opt/akimimi_common/ PHP_SCRIPT_PATH=/opt/akimimi_common/tempphp/ PHP_FILE=$PHP_SCRIPT_PATH$2 PHP=/usr/local/php/bin/php LOG_FILE=/opt/akimimi_common/phplog if [ -x PHP_SCRIPT_PATH ]; then mkdir -p $PHP_SCRIPT_PATH fi echo "<?php" > $PHP_FILE echo "\$LIB_PATH='$LIB_PATH';" >> $PHP_FILE echo "r...
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash javac com/darshancomputing/BatteryIndicatorPro/Test.java && java com.darshancomputing.BatteryIndicatorPro.Test
Shell
#!/bin/sh # After initial checkout from svn, you'll want to run this as your first step. android update project --path . --name "BatteryBot" --target "android-18"
Shell
#!/bin/sh scp -q res/values/strings.xml linode:ath/incoming/en.xml wget --quiet -O /dev/null --ignore-length --post-data="" http://ath.darshancomputing.com/bi/load_new_en if [ "$?" -ne "0" ]; then echo "Sorry, something didn't work!" exit 1 fi
Shell
#!/bin/bash #ruby generate_images.rb #for i in res/drawable/b[0-9]*.png; do mogrify -resize 25x25 $i; done #gimp res/drawable/b100.png #for i in res/drawable/*.png; do mogrify -sharpen 25x25 $i; done # shift ("roll") images 1px to the right # for i in numbers/*.png; do convert $i -roll +1+0 $i; done d=`dirname $(rea...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" ...
Shell
#! /bin/sh # # link.sh -- try linking Vim with different sets of libraries, finding the # minimal set for fastest startup. The problem is that configure adds a few # libraries when they exist, but this doesn't mean they are needed for Vim. # # Author: Bram Moolenaar # Last change: 2010 Nov 03 # License: Publi...
Shell
#! /bin/sh # Start Vim on a copy of the tutor file. # Usage: vimtutor [-g] [xx] # Where optional argument -g starts vimtutor in gvim (GUI) instead of vim. # and xx is a language code like "es" or "nl". # When an argument is given, it tries loading that tutor. # When this fails or no argument was given, it tries using...
Shell
#! /bin/sh # installman.sh --- install or uninstall manpages for Vim # # arguments: # 1 what: "install", "uninstall" or "xxd" # 2 target directory e.g., "/usr/local/man/it/man1" # 3 language addition e.g., "" or "-it" # 4 vim location as used in manual pages e.g., "/usr/local/share/vim" # 5 runtime dir ...
Shell
#!/bin/sh # Start GUI Vim on a copy of the tutor file. # Usage: gvimtutor [xx] # See vimtutor for usage. exec `dirname $0`/vimtutor -g "$@"
Shell
#! /bin/sh # installml.sh --- install or uninstall manpage links for Vim # # arguments: # 1 what: "install" or "uninstall" # 2 also do GUI pages: "yes" or "" # 3 target directory e.g., "/usr/local/man/it/man1" # 4 vim exe name e.g., "vim" # 5 vimdiff exe name e.g., "vimdiff" # 6 evim exe name ...
Shell
#!/bin/sh # toolcheck -- check for tools that have severe bugs. Good that all the buggy # tools identify by version numbers. This is the spirit of GNU :-) # # 24.7.95 jw. retval=0 reply="`sh -version -c exit 2>&1 < /dev/null`" case "$reply" in GNU*1.14.3*) echo "- sh is '$reply'"; echo " CAUTION: This she...
Shell
#! /bin/sh # # pathdef.sh: adjust pathdef.c for auto/link.sed, if it exists # if test -s auto/link.sed; then cp auto/pathdef.c auto/pathdef.tmp sed -f auto/link.sed <auto/pathdef.tmp >auto/pathdef.c rm -f auto/pathdef.tmp fi # vim:set sw=2 et:
Shell
#! /bin/sh # # osdef.sh -- copy osdef.h.in to osdef.h while removing declarations # found in the system header files. Caution: weird sed magic going on here. # Warnings are printed if sed did not survive. # # (C) Michael Schroeder, Juergen Weigert # # osdef.h.in has been split into osdef1.h.in and osdef2.h.in, because ...
Shell
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done
Shell
#!/bin/sh # # ref - Check spelling of the arguments # # Usage: ref word .. # # can be used for the K command of Vim # spell <<EOF $* EOF
Shell
#!/bin/sh # enable DEC locator input model on remote terminal printf "\033[1;2'z\033[1;3'{\c" vim "$@" # disable DEC locator input model on remote terminal printf "\033[2;4'{\033[0'z\c"
Shell
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given. if test -t 1; then if test $# = 0; then vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a term...
Shell
#! /bin/sh prefix=stock_ list= for file in "$@" do name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'` list="$list $prefix$name $file" done gdk-pixbuf-csource --raw --static --build-list $list
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: # PLATFORM_LDFLAGS Linker flags # PLATFORM_CCFLAGS C compiler flags # PLATFORM_CXXFLAGS C++ compiler...
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 adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
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 adb shell pm clear 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 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_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
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 # # 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: # PLATFORM_LDFLAGS Linker flags # PLATFORM_CCFLAGS C compiler flags # PLATFORM_CXXFLAGS C++ compiler...
Shell
#!/bin/bash cat $1 | sed s/^\\\([0-9_\\.a-zA-Z]\\+\\\)\\s\*=\\s\*/\\1\ =\ / | sed s/\\\\u\\\([0-9a-f]\\{4\\}\\\)/\\\\u\\U\\1\\E/g > $2
Shell
#!/bin/bash SCRIPT_PATH=$0 RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"` while [ ! "$RESOLVED_PATH" = "$SCRIPT_PATH" ]; do SCRIPT_PATH=$RESOLVED_PATH RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"` done GP_HOME=`dirname "$SCRIPT_PATH"` GP_LOG_DIR="$HOME/.ganttproject.d" # Check if log dir is present (or create it) if [ ...
Shell
#!/bin/sh REV=`hg log -l 1 | grep changeset | cut -d: -f 2 | tr -d ' '` echo $(($REV+1))
Shell
#! /bin/bash # Location where to install GanttProject INSTALL_PATH=/usr/local/share/ganttproject/ # Location of executable of GanttProject GP_EXECUTABLE=/usr/local/bin/ganttproject # Assuming that writing at INSTALL_PATH and GP_EXECUTABLE needs root rights: if [ "$(id -u)" != "0" ]; then echo "This script must be...
Shell
#!/bin/sh set -e if [ -e /usr/bin/ganttproject ]; then rm -f /usr/bin/ganttproject; fi if [ -x "$(which update-mime >/dev/null 2>&1)" ]; then update-mime; fi if [ -x "$(which update-menus 2>/dev/null)" ]; then update-menus; fi
Shell
#!/bin/sh set -e if [ "$1" = "configure" ]; then if [ -e /usr/bin/ganttproject ]; then rm -f /usr/bin/ganttproject; fi ln -s /usr/share/ganttproject/ganttproject /usr/bin/ganttproject if [ -x "$(which update-menus 2>/dev/null)" ]; then update-menus; fi if [ -x "$(which update-mime 2>/dev/null)" ]; then update...
Shell
#!/bin/bash SCRIPT_PATH=$0 GP_HOME=`dirname "$SCRIPT_PATH"` GP_LOG_DIR="$HOME/.ganttproject.d" # Check if log dir is present (or create it) if [ ! -d $GP_LOG_DIR ]; then if [ -e $GP_LOG_DIR ]; then echo "file $GP_LOG_DIR exists and is not a directory" >&2 exit 1 fi if ! mkdir $GP_LOG_DIR ; then ec...
Shell
#! /bin/sh java -cp bin/:lib/jargs.jar com.google.code.alasc.Alasc $1 $2 $3 $4
Shell
#! /bin/sh java -cp bin/:lib/jargs.jar com.google.code.alasc.Alasc $1 $2 $3 $4
Shell
#! /bin/sh java -cp bin/:lib/jargs.jar:lib/swing-layout-1.0.jar com.google.code.alasc.AlascGui
Shell
#! /bin/sh java -cp bin/:lib/jargs.jar:lib/swing-layout-1.0.jar com.google.code.alasc.AlascGui
Shell
# Copyright 2009 Google Inc. All Rights Reserved. # # 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 a...
Shell
#!/bin/sh # Copyright 2011 Google Inc. All Rights Reserved. # # 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 applicab...
Shell
#!/bin/bash . serial.sh function send { echo -ne "$*\r" > $SERIAL_DEVICE } send A=1000000 send VM=70000 send E # end any running program send DE=1 # enable drive while true; do send MR 10000 sleep 0.1 done
Shell
#!/bin/bash . serial.sh echo -ne "DE=0\r" > $SERIAL_DEVICE sleep 0.1 echo -ne "E\r" > $SERIAL_DEVICE
Shell
#!/bin/bash . serial.sh echo -ne "DE=1\r" > $SERIAL_DEVICE sleep 0.1 echo -ne "EX SU\r" > $SERIAL_DEVICE sleep 0.1 echo -ne "RS\r" > $SERIAL_DEVICE
Shell
if [ `uname` = "Linux" ]; then SERIAL_DEVICE=/dev/ttyUSB0 stty -F $SERIAL_DEVICE 9600 else SERIAL_DEVICE=/dev/cu.usbserial-FTC8534M fi
Shell
#!/bin/bash . serial.sh function send { echo -ne "$*\r" > $SERIAL_DEVICE } send A=1000000 send VM=70000 send E # end any running program send DE=1 # enable drive while true; do send MR -10000 sleep 0.1 done
Shell
#!/bin/bash . serial.sh echo -ne "PS\r" > $SERIAL_DEVICE sleep 0.1 echo -ne "E\r" > $SERIAL_DEVICE sleep 0.1 echo -ne "CP\r" > $SERIAL_DEVICE sleep 0.5 cat scan.mxt > $SERIAL_DEVICE #cat sensors.mxt > $SERIAL_DEVICE
Shell
#!/bin/bash # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 applic...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh android update project --name Pano --path .
Shell
#!/bin/sh android update project --name Pano --path .
Shell
#!/bin/bash # # Copyright 2007 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
export PYTHONPATH=`pwd`:${PYTHONPATH}
Shell
#!/bin/bash openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \ -keyout privatekey.pem -out publickey.pem \ -subj "/CN=unit-tests" openssl pkcs12 -export -out privatekey.p12 \ -inkey privatekey.pem -in publickey.pem \ -name "key" -passout pass:notasecret
Shell
#!/bin/bash # # Copyright 2012, Google Inc # # Generates a zip of the google api python client and dependencies. # # Author: afshar@google.com (Ali Afshar) # Exit on failure. set -e # Where to build the zip. ROOT_PATH=$(pwd)/build/gae BUILD_PATH=${ROOT_PATH}/build LIB_PATH=${ROOT_PATH}/lib ENV_PATH=${ROOT_PATH}/ve LO...
Shell