code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
##
## sname(name)
##
sname() {
echo $1@`hostname`
}
##
## start(name, daemon)
##
start() {
SNAME=$(sname $1)
DAEMON=""
if [ $2 -eq 1 ]
then
DAEMON='-sasl sasl_error_logger {file,"/tmp/sasl-'$SNAME'.log"} -detached -noshell'
fi
$ERL \
-boot start_sasl \
-sname $... | Shell |
#!/bin/sh
##
## Packages
##
ROOT_PACKAGE=emc
PACKAGES="$ROOT_PACKAGE \
$ROOT_PACKAGE/util"
##
##
##
build_emakefile () {
src=$1; ebin=$2;
(
cd $src
for f in *.erl ; do
if [ $f != "*.erl" ]; then
L=`echo $f|wc -c`
/bin/echo -e "{'$src/\c";
B=`echo $f|cut -c1-$(($L-5))`
e... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
sudo launchctl stop com.fsb.logKext
sudo launchctl unload /Library/LaunchDaemons/logKext.plist
sudo /Library/Application\ Support/logKext/logKextKeyGen remove
sudo rm -f /Library/LaunchDaemons/logKext.plist
sudo rm -rf /System/Library/Extensions/logKext.kext
sudo rm -rf /Library/Application\ Support/logKext
... | Shell |
#!/bin/sh
/usr/bin/find /System/Library/Extensions/logKext.kext -exec /bin/chmod -R g-w {} \;
/sbin/kextunload -b com.fsb.kext.logKext
/sbin/kextload /System/Library/Extensions/logKext.kext
/Library/Application\ Support/logKext/logKextKeyGen
/bin/launchctl load /Library/LaunchDaemons/logKext.plist
/usr/bin/open /LogKe... | Shell |
#!/bin/bash -
# Contributor: Victor Mishel Vera Sanchez (mishudark) <moonsadly@gmail.com>
[ -x /usr/bin/apt-get ] && {
INSTALL_LAYOUT='--install-layout deb'
python -c 'import webkit, keybinder, pynotify, DistUtilsExtra.command' \
|| sudo apt-get install python-webkit python-notify python-keybinder python-d... | Shell |
#!/bin/sh
#
# Copyright (c) 2012-2014 Andrea Selva
#
echo " "
echo " ___ ___ _ _ ___ ________ _____ _____ "
echo " | \/ | | | | | | \/ | _ |_ _|_ _| "
echo " | . . | ___ ... | Shell |
#!/bin/sh
cd $(dirname "$0")
premake4 --file=../../premake4.lua --os=windows --platform=mingw32 --with-static-freetype gmake
cd ../../make/mingw32/
time make $@
cd ../../libs/mingw32/
mv eepp.dll ../../
mv eepp-debug.dll ../../
| Shell |
#!/bin/sh
rm -rf bin libs obj gen
| Shell |
#!/bin/sh
cd $(dirname "$0")
export NDK_PROJECT_PATH=$(dirname "$0")
ndk-build NDK_LOG=1 NDK_DEBUG=1 -j4
rm -rf ./bin
rm -rf ./gen
ant debug
adb install -r bin/eepp-app-debug.apk
ndk-gdb --force --start --verbose
| Shell |
#!/bin/sh
#adb push ../../assets /sdcard/assets
ln -s ../../assets ./assets
| Shell |
#!/bin/sh
cd $(dirname "$0")/../../
rm ./libs/ios/debug/libeepp-armv7.a
rm ./libs/ios/debug/libeepp-i386.a
rm ./libs/ios/debug/libeepp.a
if [ -z $1 ]; then
if [ "$1" == 'GLES2' ]; then
BACKEND="GLES2=yes"
else
if [ "$1" == 'GLES2' ]; then
BACKEND="GLES1=yes"
else
BACKEND="GLES1=yes GLES2=yes"
fi
fi
... | Shell |
#!/bin/sh
cd $(dirname "$0")
export TOOLCHAINPATH=/home/apps/ios/bin/
export SYSROOTPATH=/home/apps/ios/Platforms/iPhoneOS5.0.sdk
export IOSVERSION=5.0
premake4 --file=../../premake4.lua --platform=ios-cross-arm7 --with-static-freetype --with-static-eepp --with-gles1 --with-gles2 --with-static-backend gmake
cd ../.... | Shell |
#!/bin/sh
cd $(dirname "$0")/../../
rm ./libs/ios/release/libeepp-armv7.a
rm ./libs/ios/release/libeepp-i386.a
rm ./libs/ios/release/libeepp.a
if [ -z $1 ]; then
if [ "$1" == 'GLES2' ]; then
BACKEND="GLES2=yes"
else
if [ "$1" == 'GLES2' ]; then
BACKEND="GLES1=yes"
else
BACKEND="GLES1=yes GLES2=yes"
f... | Shell |
#!/bin/sh
# Copyright 2014 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 applica... | 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
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 |
#!/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/HelloCMake.jar
| Shell |
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
| Shell |
#!/bin/sh
if [ "${1}" == "x64" ]; then
arch=x86_64
archdir=x64
else
arch=x86
archdir=Win32
fi
make_dirs() (
if [ ! -d bin_${archdir}/lib ]; then
mkdir -p bin_${archdir}/lib
fi
if [ ! -d bin_${archdir}d/lib ]; then
mkdir -p bin_${archdir}d/lib
fi
)
copy_libs() (
cp lib*/*-lav-*.dll ../bin_$... | Shell |
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment
export NDK=/cygdrive/d/Code/android/android-ndk-r3
HOST_TYPE=windows
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib
export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/build/preb... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
. $SCRIPTDIR/android-gcc-setup.sh
cd $SCRIPTDIR/..
if [ ! -d "deps" ]
then
mkdir -p deps
fi
cd deps
DEPSDIR=$PWD
JNIDIR=$DEPSDIR/../jni
if [ ! -d "$JNIDIR/pdfview2/lib" ]
then
mkdir -p $JNIDIR/pdfview2/lib
fi
if [ ! -d "$JNIDIR/pdfview2/include" ]
then
mkdir -p $JNIDIR/pd... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
DATE=`date +%Y-%m-%d`
# 按日期归档stat库
mongodump -d stat -o /data/stat_archive/$DATE
# 重建mongo数据库
mongo 127.0.0.1:27017/stat --eval "db.dropDatabase();db.pageViews.ensureIndex({visitTime:-1, projectId:1});"
| Shell |
#!/bin/bash
DATE=`date +%Y-%m-%d`
# 按日期归档stat库
mongodump -d stat -o /data/stat_archive/$DATE
# 重建mongo数据库
mongo 127.0.0.1:27017/stat --eval "db.dropDatabase();db.pageViews.ensureIndex({visitTime:-1, projectId:1});"
| Shell |
#/bin/sh
echo "### ====================== ###"
echo " kill jboss "
echo "### ===================== ###"
#kill `ps aux|grep jboss|awk '{print $2}'`
ps aux | grep jboss | awk '{print $2}' | xargs kill -9
| Shell |
#!/bin/sh
### ====================================================================== ###
## ##
##deploy vasms.war to jboss ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
##undeploy vasms.war to jboss ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## vasms 2.0 start ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
##undeploy vasms.war to jboss ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
##deploy vasms.war to jboss ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## vasms 2.0 start ##
## ... | 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
# Change the config.properties file to point to TWS location.
# in TWS setup API settings to incudle the IP address of the pc that you
# are running this app on also select a client id other than zero unless
# this is the only application connecting to TWS.
# *****************************************... | Shell |
#!/bin/sh
# ***************************************************
# Change this dir to be the location for J2SE edition
# ***************************************************
PATH="$JAVA_HOME/bin:$PATH"
# tools.jar is needed for the javac compiler
LOCALCLASSPATH="$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.... | Shell |
#!/bin/sh
############################################################
#brief A auto-poster used to post posts to a Discuz bbs
#author zeshengwu <wuzesheng86@gmail.com>
#since 2011-03-04
#version 1.0.0
############################################################
if [ $# -ne 3 ]
then
echo "usage: $0 board_id sub... | Shell |
#!/bin/sh
############################################################
#brief A auto-poster used to post posts to a Discuz bbs
#author zeshengwu <wuzesheng86@gmail.com>
#since 2011-03-04
#version 1.0.0
############################################################
if [ $# -ne 3 ]
then
echo "usage: $0 board_id sub... | Shell |
#!/bin/sh
if [ $# -ne 2 ]
then
echo "usage: $0 input output"
exit 1
fi
input=$1
output=$2
sed 's/<\/a>/<\/a>\n/g' $input |\
sed 's/.*\(<a href=.*>.*<\/a>\).*/\1/g' |\
grep -E "<a.*<\/a>" | \
sed s/"<a.*href="/''/g |\
sed s/"<\/a>.*"/''/g |\
sed s/">.*"/''/g |\
grep -E "http://" |\
... | Shell |
#!/bin/sh
if [ $# -ne 2 ]
then
echo "usage: $0 input output"
exit 1
fi
input=$1
output=$2
sed 's/<\/a>/<\/a>\n/g' $input |\
sed 's/.*\(<a href=.*>.*<\/a>\).*/\1/g' |\
grep -E "<a.*<\/a>" | \
sed s/"<a.*href="/''/g |\
sed s/"<\/a>.*"/''/g |\
sed s/">.*"/''/g |\
grep -E "http://" |\
... | Shell |
#!/bin/sh
mvn clean
mvn eclipse:clean
| Shell |
#!/bin/sh
mvn jetty:run
| Shell |
#!/bin/sh
mvn jetty:run
| Shell |
#!/bin/sh
mvn eclipse:clean
mvn eclipse:eclipse
| Shell |
#!/bin/sh
mvn clean
mvn install
| Shell |
#!/bin/sh
mvn clean
mvn eclipse:clean
| Shell |
#!/bin/sh
mvn eclipse:clean
mvn eclipse:eclipse
| Shell |
#!/bin/sh
mvn clean
mvn install
| Shell |
#!/bin/bash
deletefile()
{
rm /var/www/myweb/html -rf
rm /var/www/myweb/html.tar.gz -rf
echo "File delete done.."
}
cpfile(){
mkdir /var/www/myweb/html/skis/templates/include -p
mkdir /var/www/myweb/html/ueditor/php/upload/ -p
cp /var/www/myweb/ueditor/php/upload/* /var/www/myweb/html/ueditor/php/upload/... | Shell |
#!/bin/bash
deletefile()
{
rm /var/www/myweb/html -rf
rm /var/www/myweb/html.tar.gz -rf
echo "File delete done.."
}
cpfile(){
mkdir /var/www/myweb/html/skis/templates/include -p
mkdir /var/www/myweb/html/ueditor/php/upload/ -p
cp /var/www/myweb/ueditor/php/upload/* /var/www/myweb/html/ueditor/php/upload/... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/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/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 |
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
CALSSPATH="$PRGDIR"/xmltool.jar
i... | Shell |
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
CALSSPATH=$PRGDIR/WEB-INF/lib/xian... | Shell |
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
CALSSPATH=$PRGDIR/WEB-INF/lib/xian... | 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
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| 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/sh
echo "Content-Type: text/plain"
echo
echo "This is shell script CGI."
| Shell |
#!/bin/sh
echo "echoing bad headers: server must report status 500"
exec 1>&2
echo shit!!!
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| Shell |
# /bin/bash
D=$PWD
pushd ../..
./waf-light configure build --tools=$D/bbdlib.py --prelude=$'\tfrom waflib.extras import bbdlib\n\tbbdlib.start(cwd, VERSION, wafdir)\n\tsys.exit(0)'
popd
cp ../../waf bbd
| Shell |
# /bin/bash
D=$PWD
pushd ../..
./waf-light configure build --tools=$D/ebdlib.py --prelude=$'\tfrom waflib.extras import ebdlib\n\tebdlib.start(cwd, VERSION, wafdir)\n\tsys.exit(0)'
popd
cp ../../waf ebd
| Shell |
# /bin/bash
D=$PWD
pushd ../..
./waf-light configure build --tools=$D/cbdlib.py --prelude=$'\tfrom waflib.extras import cbdlib\n\tcbdlib.start(cwd, VERSION, wafdir)\n\tsys.exit(0)'
popd
cp ../../waf cbd
| Shell |
# /bin/bash
D=$PWD
pushd ../..
./waf-light configure build --tools=$D/dbdlib.py --prelude=$'\tfrom waflib.extras import dbdlib\n\tdbdlib.start(cwd, VERSION, wafdir)\n\tsys.exit(0)'
popd
cp ../../waf dbd
| Shell |
#! /bin/bash
# make a copy of a waf directory with the same name
#
# the tool 'relocation' (waflib/extras) adds some information
# so that a full rebuild is not performed when the dir changes
rm -rf tmp
mkdir tmp
pushd c
waf configure build
popd
cp -R c tmp/c
cd tmp/c
waf configure build
| Shell |
#!/bin/sh
# for this to work you need to have the following installed:
# - Xcode 3.1.3 or higher: http://developer.apple.com/
# - git: http://help.github.com/mac-git-installation/
# - mercurial / hg: http://mercurial.berkwood.com/
# pull three20
cd ..
git clone git://github.com/facebook/three20.git
# pull mailcore
hg... | Shell |
#!/bin/bash
ANGLES=`seq 15 15 180`
SOURCE=graf/img1.pgm
OUT_DIR=rotated
for a in ${ANGLES}; do
./transform_image -i ${SOURCE} -o ${OUT_DIR}/rot${a}.pgm -t ${OUT_DIR}/rot${a}.xfm -a ${a}
done
| Shell |
#!/bin/bash
DETECT="./willow_detect"
OPTIONS="-thres 0 -p 500"
SCALES=`seq 3 2 21`
IMG_1=graf/img1.pgm
IMG_2=graf/img2.pgm
XFM=graf/H1to2p
OUT_DIR=scale_data
for s in ${SCALES}; do
KEY_1=${OUT_DIR}/img1-2.willow-${s}s.key
KEY_2=${OUT_DIR}/img2.willow-${s}s.key
${DETECT} ${OPTIONS} -i ${IMG_1} -o ${KEY_1} ... | Shell |
#!/bin/bash
OPTIONS="-thres 0 -p 75"
LETTERS="a b c d e f g h i j k l m n o p"
SIDES="L R"
DETECT=./willow_detect
SRC_DIR=party_set
OUT_DIR=data
for l in ${LETTERS}; do
for s in ${SIDES}; do
${DETECT} ${OPTIONS} -i ${SRC_DIR}/3${l}-${s}.bmp -o ${OUT_DIR}/ps3${l}-${s}.key
done
done
| Shell |
#!/bin/bash
#DETECTORS="willow willow9 sift surf"
#DETECTORS="willow willow9"
DETECTORS=willow_mod2
SCALES=`seq 0.5 0.1 2.0`
SOURCE=graf/img1.pgm
OUT_DIR=scaled
OPTIONS="-thres 0 -p 500"
#OPTIONS="-thres 0 -line 8 -p 500"
for d in ${DETECTORS}; do
DETECT=./${d}_detect
for s in ${SCALES}; do
XFM=${OUT_DIR}/sc... | Shell |
#!/bin/bash
#DETECTORS="willow willow9 sift surf"
#DETECTORS="willow willow9"
DETECTORS=willow_mod2
NUMPTS=800
INDICES=`seq 2 6`
#NUMPTS="`seq 10 10 50` `seq 100 50 500` `seq 600 100 800`"
#INDICES=2
SRC_DIR=graf
OUT_DIR=data
IMG_1=${SRC_DIR}/img1.pgm
for d in ${DETECTORS}; do
DETECT=./${d}_detect
for i in ... | Shell |
#!/bin/bash
#DETECTORS="willow willow9 sift surf"
#DETECTORS="willow willow9"
DETECTORS=willow_mod2
ANGLES=`seq 15 15 180`
SOURCE=graf/img1.pgm
ROT_DIR=rotated
OPTIONS="-thres 0 -p 500"
#OPTIONS="-thres 0 -line 8 -p 500"
for d in ${DETECTORS}; do
DETECT=./${d}_detect
for a in ${ANGLES}; do
SRC_KEY=${ROT_DIR}... | Shell |
#!/bin/bash
set +e
set -o errexit
if [ $# -ne 4 ]
then
echo "Syntax: $0 IPSW RAMDISK KEY IV"
echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters"
exit
fi
IPSW=$1
RAMDISK=$2
KEY=$3
IV=$4
CUSTOMRAMDISK="myramdisk.dmg"
IMG3FS="./img3fs/img3fs"
IMG3MNT="/tmp/img3"
... | Shell |
#/bin/sh
python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.