code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash /usr/bin/killall fbi /usr/bin/fbi /root/akilliev/resim/orj/reboot.jpg -a -noverbose -T 4 /usr/bin/python /root/akilliev/lcd/lcdreboot.py
Shell
#!/bin/bash # IO stat iost=`/usr/bin/iostat -dm 5 2 | grep sda | /usr/bin/tail -1 | /usr/bin/awk '{print $3}{print $4}'` # eth trafik anlik, son 5 saniyelik ortalama antr=`/usr/bin/vnstat -tr | /bin/grep rx | /usr/bin/awk -F ' ' '{print $2}{print $3}'` /bin/echo $antr > /root/akilliev/log/antr.log datetime=`/bin/d...
Shell
#!/bin/bash h=`/usr/bin/iostat -dm 5 2 | grep sda | /usr/bin/tail -1 | /usr/bin/awk '{print $3}{print $4}'` echo $h
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Hexley DarwinOS Mascot Copyright 2000 by Jon Hooper. All Rights Reserved. # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
Shell
#!/bin/bash # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the abo...
Shell
#!/bin/sh # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Hexley DarwinOS Mascot Copyright 2000 by Jon Hooper. All Rights Reserved. # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
Shell
#!/bin/sh # # Copyright (c) 2005, Apple Computer, Inc. All rights reserved. # Modifications (c) 2008 PureDarwin # # @APPLE_BSD_LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistribution...
Shell
#!/bin/bash -e # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the ...
Shell
#!/bin/sh # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/bash # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the ab...
Shell
#!/bin/sh # OpenDarwin install script # $Id: rc.cdrom,v 1.30 2005/04/28 20:06:46 kevin Exp $ # # Hacked into the "PureDarwin Boot" installer by Stuart Crook # v1.0 31/3/09 Initial release # PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/etc:/private/etc ; export PATH ARCH=i386 #`arch` FILESYSTEMTYPE="hfs" # set this...
Shell
#!/bin/sh # # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Tiny startx preliminaries script # sudo /sbin/kextload /System/Library/Extensions/IOGraphicsFamily.kext sudo /sbin/kextload /System/Library/Extensions/VMwareIOFramebuffer.kext # Below not needed with voodooPS2Controller #sudo /sbin/kextload /System/Library/Extensions/ApplePS2Controller.kext/Contents/Pl...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
#!/bin/sh # # Hexley DarwinOS Mascot Copyright 2000 by Jon Hooper. All Rights Reserved. # Copyright (c) 2007-2008 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
Shell
#!/bin/sh # # Copyright (c) 2007-2009 The PureDarwin Project. # All rights reserved. # # @LICENSE_HEADER_START@ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above...
Shell
# login: auth account password session auth required pam_nologin.so auth sufficient pam_securityserver.so auth sufficient pam_unix.so auth required pam_deny.so account required pam_permit.so password required pam_deny.so # Temporary workaround (small PAM modu...
Shell
# System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi
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 # After initial checkout from svn, you'll want to run this as your first step. android update project --path . --target "android-14"
Shell
rm -f datalog_*.txt rm -f properties*.txt rm -f screenshot_*.bmp rm -f extract.dat* rm -f *.eps rm -f genomes*.log rm -f organism-sizes*.log rm -f organisms*.log rm -f output*.log rm -f location*.log
Shell
cp manyruns_traceDistance_template.gp tmp.many.d.gp cat $1 | grep monitorDistance | sed 's/monitorDistance:\ //' | sort -n -t, -k3,3n -k4,4n > tmp.many.rawdata python manyruns_aggregateValues.py >> tmp.many.d.gp gnuplot tmp.many.d.gp rm -f tmp.many.rawdata rm -f tmp.many.d.gp epspdf plot.manyruns.d.eps
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for i in "$DIR"/datalog*.txt do echo $i #cat $i | grep monitorOrientation | sed 's/monitorOrientation:\ //' | sort -n -t, -k3,3n -k4,4n | tail -n$ARRAYSIZE done for it in {0..99} do echo $it cat $DIR/datalog_*.txt | grep monitorOrientat...
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for it in {0..99} do #echo $it cat $DIR/datalog_*.txt | grep monitorOrientation | sed 's/monitorOrientation:\ //' | egrep [[:digit:]]\{1,3\}\\,[[:digit:]]\{1,3\}\\,$GEN\\,$it\\,[[:digit:]]\{1,3\} done
Shell
./monorun_traceDistance.sh $1 ./monorun_traceOrientation.sh $1
Shell
cp monorun_traceOrientation_template.gp tmp.o.gp cat $1 | grep monitorOrientation | sed 's/monitorOrientation:\ //' >> tmp.o.gp gnuplot tmp.o.gp rm -f tmp.o.gp epspdf plot.monorun.o.eps
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for it in {0..99} do #echo $it cat $DIR/datalog_*.txt | grep monitorDistance | sed 's/monitorDistance:\ //' | egrep [[:digit:]]\{1,3\}\\,[[:digit:]]\{1,3\}\\,$GEN\\,$it\\,[[:digit:]]\{1,3\} done
Shell
cp monorun_traceDistance_template.gp tmp.d.gp cat $1 | grep monitorDistance | sed 's/monitorDistance:\ //' >> tmp.d.gp gnuplot tmp.d.gp rm -f tmp.d.gp epspdf plot.monorun.d.pdf
Shell
cp manyruns_traceOrientation_template.gp tmp.many.o.gp cat $1 | grep monitorOrientation | sed 's/monitorOrientation:\ //' | sort -n -t, -k3,3n -k4,4n > tmp.many.rawdata python manyruns_aggregateValues.py >> tmp.many.o.gp gnuplot tmp.many.o.gp rm -f tmp.many.rawdata rm -f tmp.many.o.gp epspdf plot.manyruns.o.eps
Shell
./roborobo -l config/config_10_16.properties mkdir logs/exp_10_16 mv logs/datalog* logs/exp_10_16/ mv logs/properties* logs/exp_10_16/ mv logs/screenshot* logs/exp_10_16/ ./roborobo -l config/config_10_32.properties mkdir logs/exp_10_32 mv logs/datalog* logs/exp_10_32/ mv logs/properties* logs/exp_10_32/ mv logs/screen...
Shell
./manyruns_traceDistance.sh $1 ./manyruns_traceOrientation.sh $1
Shell
#!/bin/bash float_scale=2 function float_eval() { local stat=0 local result=0.0 if [[ $# -gt 0 ]]; then result=$(echo "scale=$float_scale; $*" | bc -q 2>/dev/null) stat=$? if [[ $stat -eq 0 && -z "$result" ]]; then stat=1; fi fi echo $result return $stat } cd Roborobo11 mkdir resu...
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_0_p TESTNAME=symbrion_0_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '30' 'The number of times the si...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ CONFNAME=ahhs_p TESTNAME=ahhs_p FULLCOMMAND="$0 $@" . ${BASEDIR}shflags #define the flags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run'; DEFINE_string 'robots' '10' 'The number of robots in t...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/Users/$LOGNAME/Roborobo/ CONFNAME=newscast_p TESTNAME=newscast_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash # run_egg.sh # roborobo # # Created by Berend Weel on 10/16/12. # FULLCOMMAND="$0 $@" # Parse the flags FLAGS "$@" || exit 1 eval set -- "${FlAGS_ARGV}" RID=$RANDOM ### copy the template configuration to the config dir, making the neccesary adjustments # Determine some properties of the test ROBOTCO...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bwl400/scratch/RoboRobo/trunk/ CONFNAME=scalepower_simple_p TESTNAME=scalepower_simple_p ### Run the simulation cd $BASEDIR . ${BASEDIR}run_scale.sh
Shell
#!/bin/bash TIMESTAMP=`date "+%Y%m%d.%Hh%Mm%Ss"` BASEDIR=../ RESULTDIR=${BASEDIR}results/v8/$TIMESTAMP mkdir $RESULTDIR mkdir $RESULTDIR/config mkdir $RESULTDIR/logs mkdir $RESULTDIR/fitness mkdir $RESULTDIR/organisms mkdir $RESULTDIR/organismsizes mkdir $RESULTDIR/output mkdir $RESULTDIR/genomes mv ${BASEDIR}output....
Shell
#!/bin/bash ### MAKE SURE TO INCLUDE THIS FILE FROM ANOTHER WHERE YOU SET THE SIMULATION-SPECIFIC PARAMETERS ### Source shflags FULLCOMMAND="$0 $@" . ${BASEDIR}shflags RID=$RANDOM # Define the flags DEFINE_string 'robots' '4' 'The number of robots in the simulation' 'n'; DEFINE_string 'seed' '-1' 'Seed' 'x'; DEFINE_...
Shell
#!/bin/bash # THIS SCRIPT REQUIRES IMAGEMAGICK ### Source shflags #BASEDIR=/Users/$LOGNAME/Roborobo/ . ${BASEDIR}shflags # Define the flags DEFINE_string 'name' 'box4' 'The name of the basic arena image' 'n'; DEFINE_string 'x' '2' 'Horizontal repeats' 'x' DEFINE_string 'y' '2' 'Vertical repeats' 'y' # Parse the flag...
Shell
#!/bin/bash # run_parcours.sh # roborobo # # Created by B.P.M. Weel on 3/20/12. # Copyright 2012 VU. All rights reserved. ### Set the simulation-specific parameters BASEDIR=/Users/bwl400/workspace/ahhs/ TEMPLATEDIR=scripts/templates/ CONFNAME=parcours_p TESTNAME=parcours_p FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shf...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ TEMPLATEDIR=scripts/templates/ CONFNAME=riverbed_p TESTNAME=riverbed_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run'; DEFINE...
Shell
#!/bin/bash FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation' 'n'; DEFINE_integer 'seed' '-1' 'Seed' 'x'; DEFINE_string 'mu' '5' 'Mu' 'm' DEFINE_string 'stepsPerCandidate' '500' 'Steps per candidate' 't' DEFINE_string 'reEvaluationRa...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/experiments/scalepower/ TEMPLATEDIR=scripts/templates/ CONFNAME=scalepower_p TESTNAME=scalepower_p . ${BASEDIR}scripts/shflags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run' 'X'; DEFINE_string 'robots' '10' '...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/RoboRobo/ CONFNAME=mpo_p TESTNAME=mpo_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ CONFNAME=ahhs_p TESTNAME=ahhs_p FULLCOMMAND="$0 $@" . ${BASEDIR}shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation' 'n'; DEFINE_integer 'seed' '-1' 'Seed' 'x'; DEFINE_string 'mu' '5' ...
Shell
# $Id: shflags 133 2009-05-10 18:04:51Z kate.ward@forestent.com $ # vim:et:ft=sh:sts=2:sw=2 # # Copyright 2008 Kate Ward. All Rights Reserved. # Released under the LGPL (GNU Lesser General Public License) # # shFlags -- Advanced command-line flag library for Unix shell scripts. # http://code.google.com/p/shflags/ # # A...
Shell
#!/bin/bash if [ -z "$1" ] then echo "Please provide the number of lines in the file to digest" exit fi if [ -z "$2" ] then echo "Please provide the number of samples per setting to include (0 for all)" exit fi if [ -z "$3" ] then echo "Please provide the filename of the file to digest" exit fi if [ ! -f "$3"...
Shell
#!/bin/bash if [ -z "$1" ] then echo "Please provide the number of lines in the file to digest" exit fi if [ -z "$2" ] then echo "Please provide the filename of the file to digest" exit fi if [ ! -f "$2" ] then echo "File to digest does not exist" exit fi head -n $1 $2 | sort -n | tail -n 20
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_7_p TESTNAME=symbrion_7_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '30' 'The number of times the si...
Shell
#!/bin/bash # run_dynamic.sh # roborobo # # Created by B.P.M. Weel on 3/20/12. # Copyright 2012 VU. All rights reserved. ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=changingworld_p FULLCOMMAND="$0 $@" . ${BASEDIR}sc...
Shell
BASEDIR=.. cd $BASEDIR valgrind --leak-check=full --track-origins=yes ./roborobo -l config/ahhsscalepower.properties
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(dirname $(readlink -f $0)) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=dynamic_p TESTNAME=dynamic_p FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation...
Shell
#Run script for Bonesa on the Lisa system #TO RUN: 1. Create a distributed package with Bonesa. Set the host # name to any string (it will not be used). # 2. Copy the "dist" directory created by Bonesa to Lisa # 3. Edit the directory/file settings below # 4. Copy the "autoru...
Shell
#!/bin/sh # run_changing.sh # roborobo # # Created by Berend Weel on 10/24/12. # #!/bin/bash echo "starting job submissions" scaleFactors=( "0,2,0,-2,0" "0,10,0,-10,0" "0,5,10,5,0,-5,-10,-5,0" "0,5,0,5,0,10,0,10,0" ) repeats=40 REPEATREP=s/--REPEATS/${repeats}/g for sf in "${scaleFactors[@]}" do : SCALEREP=...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/Users/$LOGNAME/Roborobo/ CONFNAME=hivemind_p TESTNAME=hivemind_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_p TESTNAME=symbrion_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '40' 'The number of times the simula...
Shell
#!/bin/bash # # Copyright (c) 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/bash dpkg-depcheck -m dpkg-buildpackage -rfakeroot -b
Shell
#!/bin/bash # Test a device with snmpwalk -v1 -c public x.x.x.x SECS=5 # I don't have the MIB database on latest Ubuntu (argh!) ifInOctets="iso.3.6.1.2.1.2.2.1.10" ifOutOctets="iso.3.6.1.2.1.2.2.1.16" sysName="iso.3.6.1.2.1.1.5.0" upTime="iso.3.6.1.2.1.1.3.0" SECRET=$1 if [ -z $SECRET ]; then . ~/.sprouters 2>/...
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 gcc -c vector.c -lm #gcc -c point.c gcc -c ray.c -lm gcc -c sphere.c -lm gcc -c main.c -lm gcc -o main *.o -lm rm *.o
Shell
#!/bin/bash # Android Screenshot Library # ############################## # Startup script # echo "Android Screenshot Library -- initializing..." # if [ -z $ANDROID ]; then echo "*** Android SDK not found ***" echo "Make sure the ANDROID variable is pointing to Android SDK root directory" else adb="$AN...
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 # # 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 #set +e #set -o errexit if [ $# -lt 4 ] then echo "Syntax: $0 IPSW RAMDISK KEY IV CUSTOMRAMDISK" echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters" exit fi if [ ! -f ramdisk_tools/restored_external ] then echo "ramdisk_tools/restored_external n...
Shell
#/bin/sh python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
Shell
#!/bin/bash if [ ! $(uname) == "Darwin" ] then echo "Script for Mac OS X only" exit fi if [ $# -lt 1 ] then echo "Syntax: $0 DECRYPTED_RAMDISK_DMG" exit fi if [ ! -f ssh.tar.gz ] then echo "Downloading ssh.tar.gz from googlecode" curl -O http://iphone-dataprotection.googlecode.com/files/ssh.t...
Shell
#!/bin/bash if [ ! $(uname) == "Darwin" ] then echo "Script for Mac OS X only" exit fi for VER in 5.0 5.1 6.0 6.1 7.0 do if [ -d "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$VER.sdk/" ]; then SDKVER=$VER SDKPATH="/Applications/Xcode.ap...
Shell
#!/bin/sh SSHOPTS="-p 2222 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null" UDID=`ssh $SSHOPTS root@localhost "./device_infos udid"` if [ "$UDID" == "" ]; then exit fi echo "Device UDID : $UDID" mkdir -p $UDID DATE=`date +"%Y%m%d-%H%M"` OUT=$UDID/data_$DATE.dmg echo "Dumping data partition in $OUT ....
Shell
#!/bin/sh if [ -a /dev/disk0s1s2 ]; then # test for iOS 5 data partition mount_hfs /dev/disk0s1s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s1s2 /mnt2 2>/dev/null elif [ -a /dev/disk0s2s1 ]; then # test for iOS 4 data partition mount_hfs /dev/disk0s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s2s1 /mnt2 2>/dev/...
Shell
#!/bin/sh cat /dev/rdisk0s2s1 | netcat -l -p 1234
Shell
#!/bin/bash console_user="your_user_id" if [ -z "$HAL_PROP_USB_BUS_NUMBER" -o -z "$HAL_PROP_USB_LINUX_DEVICE_NUMBER" ] ; then exit 2 fi if [ $HAL_PROP_USB_BUS_NUMBER -lt 0 -o $HAL_PROP_USB_LINUX_DEVICE_NUMBER -lt 0 ] ; then exit 3 fi bus_num=`printf %.3u $HAL_PROP_USB_BUS_NUMBER` dev_num=`printf %.3u $HAL_PR...
Shell
#!/bin/sh rm *.pyc rm UI/*.pyc rm ak/*.pyc rm utils/*.pyc rm *.log rm *.bak rm .*.swp rm ak.py.prof
Shell
PYTHONPATH=HelloWorld /opt/google_appengine/appcfg.py upload_data --config_file=HelloWorld/loaders/artist_loader.py --filename=HelloWorld/loaders/artist_data.csv --kind=Album --url=http://localhost HelloWorld /opt/google_appengine/appcfg.py upload_data --config_file=HelloWorld/loaders/song_loader.py --filename=HelloWor...
Shell
python build.py build_ext -f --inplace
Shell
cd feature_server python run.py
Shell
#!/bin/bash if [ ! -e eigen-android ]; then hg clone https://bitbucket.org/eigen/eigen eigen-android else cd eigen-android && hg pull && hg update fi
Shell
#!/bin/sh current_dir=`pwd` mkdir -p download cd download if [ ! -e boost_1_45_0.tar.gz ] then echo "wget'ing boost'" #this url is for convenience, consider it a mirror and you may replace it #with any existing boost_1_45_0.tar.gz url boost_download=http://vault.willowgarage.com/wgdata1/vol1/android_bo...
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < android.patch
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < filesystem.patch patch $1/boost/detail/endian.hpp < endian.patch
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk to." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0b7...
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk into." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0...
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-android-cmake \ --path .
Shell
#this generates an ant based cli build of the android-jni project android update project --name HelloGL2 \ --path .
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloBoost.jar
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloBoost
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-eigen \ --path .
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloEigen.jar
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloEigen
Shell