code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh echo echo "JDOM Build System" echo "-------------------" echo if [ "$JAVA_HOME" = "" ] ; then echo "ERROR: JAVA_HOME not found in your environment." echo echo "Please, set the JAVA_HOME variable in your environment to match the" echo "location of the Java Virtual Machine you want to use." exit 1 f...
Shell
#!/bin/sh echo echo "JDOM Build System" echo "-------------------" echo if [ "$JAVA_HOME" = "" ] ; then echo "ERROR: JAVA_HOME not found in your environment." echo echo "Please, set the JAVA_HOME variable in your environment to match the" echo "location of the Java Virtual Machine you want to use." exit 1 f...
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 # 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 # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local /usr/sbin/crond
Shell
#! /bin/sh while [ 2 -le 3 ] do date > /tmp/i3_periodic_status echo "Starting Periodic Update" >> /tmp/i3_periodic_status #cd ~i3/dilip_i3server/i3_server_scripts 2>&1>>/tmp/i3_periodic_status rm -f i3_status.html i3_status.txt ./update_i3_server_web_status.pl -f i3_servers_planetlab/_i3news.conf -o i3_stat...
Shell
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local /usr/sbin/crond
Shell
#! /bin/sh while [ 2 -le 3 ] do date > /tmp/i3_periodic_status echo "Starting Periodic Update" >> /tmp/i3_periodic_status #cd ~i3/dilip_i3server/i3_server_scripts 2>&1>>/tmp/i3_periodic_status rm -f i3_status.html i3_status.txt ./update_i3_server_web_status.pl -f i3_servers_planetlab/_i3news.conf -o i3_stat...
Shell
#!/bin/sh # Do a little magic to run perl from anywhere in your path. lines=`cat $0 | wc -l` lines=`expr $lines - 16` if (test -z "$TMPDIR") then TMPDIR=$HOME fi tail -$lines $0 1> $TMPDIR/visitfelperl$$ 2>/dev/null if (test $? -ne 0) then tail --lines=$lines $0 1>> $TMPDIR/visitfelperl$$ fi echo "__END__" >> ...
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 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/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 # # Copyright 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_BitmapCache VERBOSE
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
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 ./bin/debug/Process1 Yehuda Roth& ./bin/debug/Process2& ./bin/debug/Process3
Shell
#!/bin/bash ./bin/debug/Process1 Yehuda Roth& ./bin/debug/Process2& ./bin/debug/Process3
Shell
#!/bin/bash ./bin/debug/Process1 Yehuda Roth& ./bin/debug/Process2& ./bin/debug/Process3
Shell
#!/bin/bash ./bin/debug/Process1 Yehuda Roth& ./bin/debug/Process2& ./bin/debug/Process3
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/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-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-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-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 # 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-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 # 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 # 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-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 # 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 # 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-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-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-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 # 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
#!/usr/bin/env sh # # Copyright 2010 TimeZlicer # # 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 agr...
Shell
#!/bin/bash if [ $# != 1 ] then echo "Usage: $0 emailAddress" exit 1 fi read -s -p "Password: " mypassword echo "" curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
Shell
#!/bin/sh # Create a backup tar gzip file of the cwd with the date appended # located in the parent directory. FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz echo Will create $FILENAME tar cfz $FILENAME . echo Done.
Shell
#!/bin/sh # Need to run a full clean install when changing the request factory interfaces # Doing so deletes the local debug app engine database # This script backs that up first SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated DEST=../db_backup rm -r $DEST mkdir $DEST cp -...
Shell
#!/bin/sh # # $1=$device [$2=keyfile|none [$3=keyslot|any [$4=size]]] # [ -d /sys/module/dm_crypt ] || modprobe dm_crypt [ -d /sys/module/loop ] || modprobe loop [ -f /tmp/reencrypted ] && exit 0 . /lib/dracut-lib.sh # if device name is /dev/dm-X, convert to /dev/mapper/name if [ "${1##/dev/dm-}" != "$1" ]; then ...
Shell
#!/bin/bash which cryptsetup-reencrypt >/dev/null 2>&1 || exit 1 exit 0
Shell
#!/bin/bash inst cryptsetup-reencrypt inst_hook cmdline 30 "$moddir/parse-reencrypt.sh" inst "$moddir"/reencrypt.sh /sbin/reencrypt
Shell
#!/bin/bash check() { [ -x /sbin/cryptsetup-reencrypt ] || return 1 return 255 } depends() { echo dm rootfs-block } installkernel() { # requires hostonly='' override so that loop module is pulled in initramfs # even if not loaded in actual kernel. dracut bug? hostonly='' instmods dm_crypt =cr...
Shell
#!/bin/sh REENC=$(getargs rd.luks.reencrypt=) REENC_DEV=$(echo $REENC | sed 's/:.*//') REENC_SIZE=$(echo $REENC | sed -n 's/.*://p') REENC_KEY=$(getargs rd.luks.reencrypt_key=) if [ -z "$REENC_KEY" ] ; then REENC_KEY=none fi REENC_SLOT=$(getargs rd.luks.reencrypt_keyslot=) if [ -z "$REENC_SLOT" ] ; then REEN...
Shell
#!/bin/bash # Try to get LUKS info and master key from active mapping and prepare parameters for cryptsetup. # # Copyright (C) 2010,2011,2012 Milan Broz <gmazyland@gmail.com> # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions...
Shell
#!/bin/sh SUP="--suppressions=./cryptsetup-valg-supps" CHILD="--trace-children=no --child-silent-after-fork=yes" MALLOC="--malloc-fill=aa" FREE="--free-fill=21" STACK="--max-stackframe=300000" EXTRAS="--read-var-info=yes --show-reachable=yes" LOGFILE="--log-file=./valglog.$(date +%s)_${INFOSTRING}" LEAKCHECK="--leak-ch...
Shell
#!/bin/bash # # Test mode compatibility, check input + kernel and cryptsetup cipher status # CRYPTSETUP=../src/cryptsetup DEV_NAME=dmc_test HEADER_IMG=mode-test.img PASSWORD=3xrododenron # cipher-chainmode-ivopts:ivmode CIPHERS="aes twofish serpent" MODES="cbc lrw xts" IVMODES="null benbi plain plain64 essiv:sha256" ...
Shell
#!/bin/bash # check tcrypt images parsing CRYPTSETUP=../src/cryptsetup TST_DIR=tcrypt-images MAP=tctst PASSWORD="aaaaaaaaaaaa" PASSWORD_HIDDEN="bbbbbbbbbbbb" function remove_mapping() { [ -b /dev/mapper/$MAP ] && dmsetup remove $MAP [ -b /dev/mapper/"$MAP"_1 ] && dmsetup remove "$MAP"_1 [ -b /dev/mapper/"$MAP"_2 ...
Shell
#!/bin/bash # check luks1 images parsing # NOTE: if image with whirlpool hash fails, check # that you are not using old gcrypt with flawed whirlpool # (see cryptsetup debug output) CRYPTSETUP=../src/cryptsetup TST_DIR=luks1-images MAP=luks1tst KEYFILE=keyfile1 function remove_mapping() { [ -b /dev/mapper/$MAP ] &&...
Shell
#!/bin/bash # check hash processing in create command CRYPTSETUP=../src/cryptsetup DEV_NAME=dmc_test KEY_FILE=keyfile DEV2=$DEV_NAME"_x" dmremove() { # device udevadm settle >/dev/null 2>&1 dmsetup remove $1 >/dev/null 2>&1 } cleanup() { [ -b /dev/mapper/$DEV2 ] && dmremove $DEV2 [ -b /dev/mapper/$DEV_NAME ] &...
Shell
#!/bin/bash CRYPTSETUP="../src/cryptsetup" DEV="" DEV_STACKED="luks0xbabe" MNT_DIR="./mnt_luks" PWD1="93R4P4pIqAH8" PWD2="mymJeD8ivEhE" cleanup() { udevadm settle >/dev/null 2>&1 if [ -d "$MNT_DIR" ] ; then umount -f $MNT_DIR 2>/dev/null rmdir $MNT_DIR 2>/dev/null fi [ -b /dev/mapper/$DEV_STACKED ] && d...
Shell
#!/bin/bash CRYPTSETUP=../src/cryptsetup REENC=../src/cryptsetup-reencrypt DEV_NAME=reenc9768 DEV_NAME2=reenc1273 IMG=reenc-data ORIG_IMG=reenc-data-orig KEY1=key1 PWD1="93R4P4pIqAH8" PWD2="1cND4319812f" PWD3="1-9Qu5Ejfnqv" MNT_DIR=./mnt_luks START_DIR=$(pwd) function del_scsi_device() { rmmod scsi_debug 2>/dev/nu...
Shell
#!/bin/bash CRYPTSETUP="../src/cryptsetup" MNT_DIR="./mnt_luks" PWD1="93R4P4pIqAH8" PWD2="mymJeD8ivEhE" cleanup() { udevadm settle >/dev/null 2>&1 if [ -d "$MNT_DIR" ] ; then umount -f $MNT_DIR 2>/dev/null rmdir $MNT_DIR 2>/dev/null fi sleep 2 } fail() { if [ -n "$1" ] ; then echo "FAIL $1" ; else ech...
Shell
#!/bin/bash CRYPTSETUP=../src/cryptsetup # try to validate using loop-AES losetup/kernel if available LOSETUP_AES=/losetup-aes.old LOOP_DD_PARAM="bs=1k count=10000" DEV_NAME=dummy IMG=loopaes.img KEYv1=key_v1 KEYv2=key_v2 KEYv3=key_v3 LOOPDEV=$(losetup -f 2>/dev/null) function dmremove() { # device udevadm settle ...
Shell
#!/bin/sh SUP="--suppressions=./cryptsetup-valg-supps" CHILD="--trace-children=yes --child-silent-after-fork=yes" MALLOC="--malloc-fill=aa" FREE="--free-fill=21" STACK="--max-stackframe=300000" EXTRAS="--read-var-info=yes --show-reachable=yes" LOGFILE="--log-file=./valglog.$(date +%s)_${INFOSTRING}" LEAKCHECK="--leak-c...
Shell
#!/bin/bash PS4='$LINENO:' CRYPTSETUP=../src/cryptsetup CRYPTSETUP_VALGRIND=../src/.libs/cryptsetup CRYPTSETUP_LIB_VALGRIND=../lib/.libs DEV_NAME=dummy DEV_NAME2=dummy2 DEV_NAME3=dummy3 ORIG_IMG=luks-test-orig IMG=luks-test IMG10=luks-test-v10 HEADER_IMG=luks-header KEY1=key1 KEY2=key2 KEY5=key5 KEYE=keye PWD0="comp...
Shell
#!/bin/bash VERITYSETUP=../src/veritysetup DEV_NAME=verity3273 DEV_OUT="$DEV_NAME.out" IMG=verity-data IMG_HASH=verity-hash function remove_mapping() { [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME [ ! -z "$LOOPDEV1" ] && losetup -d $LOOPDEV1 >/dev/null 2>&1 rm -f $IMG $IMG_HASH $DEV_OUT >/dev/null 2>&...
Shell
#!/bin/bash CRYPTSETUP="../src/cryptsetup" DEV_NAME="discard-t3st" DEV="" PWD1="93R4P4pIqAH8" cleanup() { [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME udevadm settle >/dev/null 2>&1 rmmod scsi_debug 2>/dev/null sleep 2 } fail() { echo "FAILED" cleanup exit 100 } add_device() { modprobe scsi_debu...
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` PKG_NAME="cryptsetup" DIE=0 (autopoint --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have autopoint installed." echo "Download the appropriate package for your distribution," echo "or see http:/...
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/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/sh echo "Content-Type: text/plain" echo echo "This is shell script CGI."
Shell
#!/bin/bash #------------------------------------------------------------------------# MIRRORS_LIST=$HOME/.proxy/ubuntu_mirrors.list # mirrors list MIRRORS_SCORED=$HOME/.proxy/ubuntu_mirrors # top scored mirrors VERSION="dapper" # default version ARCHITECTURE="i386" TI...
Shell
#!/usr/bin/env bash #===============================================================================# # DESCRIPTION: lstjobs.sh # # OPTIONS: --- # REQUIREMENTS: --- # NOTES: --- # AUTHOR: Wenping Guo (ybyygu) # EMAIL: win.png@gmail.com # VERSION: 0.5 # CREATED: 2006-...
Shell
#!/bin/bash #------------------------------------------------------------------------# MIRRORS_LIST=$HOME/.proxy/ubuntu_mirrors.list # mirrors list MIRRORS_SCORED=$HOME/.proxy/ubuntu_mirrors # top scored mirrors VERSION="dapper" # default version ARCHITECTURE="i386" TI...
Shell
#!/bin/bash # This script would help you finding literature_proxy in proxylist # What you need: curl(>7.12.3), bash # Written by ybyygu_at_yahoo.com.cn # Created at 2005/7/6 # Last updated at 2006-3-26 #------------------------------------------------------------------------# TIMEOUT=20 # check ti...
Shell
#!/usr/bin/env bash #===============================================================================# # DESCRIPTION: qsubmit_gauss.sh # # OPTIONS: --- # REQUIREMENTS: screen, rsync, passwordless ssh connectoin to remote server( # Remote queue and remote archive) # NOTES: --- # ...
Shell
#!/usr/bin/env bash #===============================================================================# # DESCRIPTION: lstjobs.sh # # OPTIONS: --- # REQUIREMENTS: --- # NOTES: --- # AUTHOR: Wenping Guo (ybyygu) # EMAIL: win.png@gmail.com # VERSION: 0.5 # CREATED: 2006-...
Shell
#!/bin/bash #=============================================================================== # # FILE: getproxy.sh # # USAGE: ./getproxy.sh # # DESCRIPTION: download proxylist from web # OPTIONS: ---none # REQUIREMENTS: ---curl, w3m # NOTES: ---add this command to cron job list # ...
Shell
#!/usr/bin/env bash #===============================================================================# # DESCRIPTION: qsubmit_gauss.sh # # OPTIONS: --- # REQUIREMENTS: screen, rsync, passwordless ssh connectoin to remote server( # Remote queue and remote archive) # NOTES: --- # ...
Shell
#!/bin/bash #=============================================================================== # # FILE: getproxy.sh # # USAGE: ./getproxy.sh # # DESCRIPTION: download proxylist from web # OPTIONS: ---none # REQUIREMENTS: ---curl, w3m # NOTES: ---add this command to cron job list # ...
Shell
#!/bin/bash # This script would help you finding literature_proxy in proxylist # What you need: curl(>7.12.3), bash # Written by ybyygu_at_yahoo.com.cn # Created at 2005/7/6 # Last updated at 2006-3-26 #------------------------------------------------------------------------# TIMEOUT=20 # check ti...
Shell
#!/bin/bash # (C) Copyright 2014, 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 to in wr...
Shell
#!/bin/bash if [ $# -ne 1 ] then echo "Usage:$0 scantype" echo "UNLV data comes in several scan types:" echo "3B=300 dpi binary" echo "3A=adaptive thresholded 300 dpi" echo "3G=300 dpi grey" echo "4B=400dpi binary" echo "2B=200dpi binary" echo "For now we only use 3B" exit 1 fi ext=...
Shell
#!/bin/bash # File: runalltests.sh # Description: Script to run a set of UNLV test sets. # Author: Ray Smith # Created: Thu Jun 14 08:21:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
Shell