code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
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 # Adjust these to reflect the location of NUnit in your system, # and how you want NUnit to run NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe NUNIT_OPTIONS=-noshadow # The rest should be okay. SRC=../src LIB=../lib KEYFILE=../keys/Google.ProtocolBuffers.snk rm -rf bin mkdir bin # Runn...
Shell
#!/bin/bash echo Compiling protobufs rm -rf tmp mkdir tmp PROTOS_DIR=../protos ./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \ $PROTOS_DIR/google/protobuf/descriptor.proto \ $PROTOS_DIR/google/protobuf/csharp_options.proto \ $PROTOS_DIR/google/protobuf/unittest.proto \ $PROTOS_DIR/goo...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
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 # Shell options: -o = on, +o = off set -o errexit # exit on first error set -o nounset # report unset variables set +o xtrace # show commands PACKAGE="tufte-latex" CLS_FILES="tufte-handout.cls tufte-book.cls" DEF_FILES="tufte-common.def" BST_FILES="tufte.bst" SOURCE_FILES="sample-handout.pdf sample-ha...
Shell
#!/bin/sh version=${1:?"no version number provided"} windows_version="$(printf -- '%s' "$version" | sed -e 's/[.]/,/g'),0" set -e set -x dch -m -v "$version" -u low -c doc/changelog sed -i -r -e "s/(AC_INIT[(]\[pdf2djvu\],) \[[0-9.]+\]/\1 [$version]/" configure.ac sed -i -r -e "s/(VERSION) [0-9,]+/\1 $windows_version/"...
Shell
#!/bin/sh # Copyright © 2009, 2010, 2011, 2012, 2013 Jakub Wilk # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. set -e set -x pwd="$PWD" buildroot=$(mktemp -dt p...
Shell
#!/bin/sh set -e -u set -x [ -e configure.ac ] for file in install-sh config.sub config.guess do rm -f tools/$file cp /usr/share/libtool/config/$file tools/ done rm -f tools/config.rpath cp /usr/share/gettext/config.rpath tools/ mkdir -p m4 ${ACLOCAL:-aclocal} -I m4 --install ${AUTOCONF:-autoconf} ${AUTOHEADER:...
Shell
#!/bin/sh # Copyright © 2009, 2013 Jakub Wilk # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. exec sed -e ' /<!--# *\(.*[^ ]\) *#-->/ { s//\1/ b } /<!--.*-->/...
Shell
#!/bin/sh # Copyright © 2009, 2011, 2014 Jakub Wilk # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. : "${CXX:=g++}" "$CXX" -MM *.cc \ | while read line do targe...
Shell
#!/bin/sh # Copyright © 2009, 2010, 2011 Jakub Wilk # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. if ! command -v "$1" >/dev/null then printf 'Usage: %s xgett...
Shell
#!/bin/sh if [ $# -ne 1 ] then printf 'Usage: %s <poppler-source-directory>\n' "$0" >&2 exit 1 fi source_dir=$1 include_dir=$(pkg-config --cflags-only-I poppler-splash | sed -n -e '/^-I/ { s/^-I//; s/ .*//; p; q;}') if [ "x$include_dir" = "x" ] then printf 'Unable to determine destination directory\n' >&2 exit ...
Shell
#!/bin/sh case "$1" in --cflags) printf '%s\n' "-I$(dirname "$0")/include/freetype2/";; --libs) printf '%s\n' "-lfreetype";; esac # vim:ts=4 sts=4 sw=4 et
Shell
#!/bin/sh # This formats all the SQL files in the specified directory so that # they can be executed by psql. There are two modes -- a 'testing' # mode (the default mode -- this strips out all the "commit" statements) # and a commit mode for deployment. You need to pipe the output of this # script into sqlplus, for ex...
Shell
cd /cygdrive/c/workspace/AndEnginePhysicsBox2DExtension/ /cygdrive/c/workspace/sdk/android-ndk-r6/ndk-build
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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
#!/usr/bin/bash set -o errexit if [ $# -lt 1 ]; then echo "Usage: $0 <version>" exit 1 fi ver=$1 dir=AdWhirlSDK_iPhone_$ver rm -rf $dir mkdir -p $dir cp -r iphone/AdWhirl $dir/ cp -r iphone/AdWhirlSDK2_Sample $dir/ cp -r iphone/TouchJSON $dir/ cp iphone/Changelog.txt $dir/ cp iphone/README $dir/ zip -r $dir.zip...
Shell
#!/bin/bash # Adjust these to reflect the location of NUnit in your system, # and how you want NUnit to run NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe NUNIT_OPTIONS=-noshadow # The rest should be okay. SRC=../src LIB=../lib rm -rf bin mkdir bin # Running the unit tests requires the dependencie...
Shell
#!/bin/bash echo Compiling protobufs rm -rf tmp mkdir tmp PROTOS_DIR=../protos ./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \ $PROTOS_DIR/google/protobuf/descriptor.proto \ $PROTOS_DIR/google/protobuf/csharp_options.proto \ $PROTOS_DIR/google/protobuf/unittest.proto \ $PROTOS_DIR/goo...
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 # 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/bash # libtoolT - Provide generalized library-building support services. # Generated automatically by (GNU lzo 2.03) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # ...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public ...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2008 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This file is fre...
Shell
# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # Th...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby ...
Shell
#!/bin/sh # Get modification time of a file or directory and pretty-print it. scriptversion=2007-03-30.02 # Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007 Free Software # Foundation, Inc. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 # # This program is free software; you can redistribute it...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redi...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2006-05-11.19 # Original author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>...
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
Shell
#!/bin/sh # py-compile - Compile a Python program scriptversion=2005-05-14.22 # Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
Shell
#! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2007-11-22.22 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, # 2007 Free Software Foundation, Inc. # # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it ...
Shell
#! /bin/sh set -e # # usage: util/overlap.sh [directory] # # This script runs the overlap example program on a complete directory tree. # # Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer # OVERLAP="overlap" test -x ./examples/overlap && OVERLAP="./examples/overlap" test -x ./overlap.exe && OVERLAP="./o...
Shell
#! /bin/sh set -e # # usage: util/check.sh [directory] # # This script runs lzotest with all algorithms on a complete directory tree. # It is not suitable for accurate timings. # # Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer # LZOTEST="lzotest" test -x ./lzotest/lzotest && LZOTEST="./lzotest/lzotest...
Shell
#! /bin/sh set -e # # usage: util/checkasm.sh [directory] # # This script runs lzotest with all assembler decompressors # on a complete directory tree. # It is not suitable for accurate timings. # # Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer # LZOTEST="lzotest" test -x ./lzotest/lzotest && LZOTEST=...
Shell
#! /bin/sh # vi:ts=4:et # Copyright (C) 1996-2008 Markus F.X.J. Oberhumer rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out true
Shell
#! /bin/sh # vi:ts=4:et test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. LZO_CFG_FREESTANDING=1 . $top_srcdir/B/generic/build.sh
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Copyright (C) 1996-2008 Markus F.X.J. Oberhumer" echo "//" echo "// Generic Posix/Unix system" echo "// Generic C compiler" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. test "X${AR}" = X && AR="ar" test "X${CC}" = X && CC="cc" test "X${CFLAGS+...
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Using GNU C compiler." echo "//" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. UNAME_MACHINE=unknown CC="gcc -fPIC" CC="gcc -static" CC="gcc" CFLAGS="-Wall -Wno-uninitialized -O2 -fomit-frame-pointer" # delete the next line to disable assembler su...
Shell
#!/bin/bash # # Copyright (C) 2010 The Android Open Source Project # # 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 a...
Shell
#!/bin/sh # # CA - wrapper around ca to make it easier to use ... basically ca requires # some setup stuff to be done before you can use it and this makes # things easier between now and when Eric is convinced to fix it :-) # # CA -newca ... will setup the right stuff # CA -newreq ... will generate a certific...
Shell
#!/bin/bash # # Copyright (C) 2009 The Android Open Source Project # # 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 a...
Shell
#!/bin/sh # # build using pthreads where it's already built into the system # /bin/rm -f mttest gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
Shell
#!/bin/sh # # build using pthreads # # http://www.mit.edu:8001/people/proven/pthreads.html # /bin/rm -f mttest pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
Shell
#!/bin/sh /bin/rm -f mttest cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/sh /bin/rm -f mttest cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/sh /bin/rm -f mttest purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/bash # # Copyright (C) 2010 The Android Open Source Project # # 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 a...
Shell
#!/bin/sh if [ "$1" = "" ]; then key=../apps/server.pem else key="$1" fi if [ "$2" = "" ]; then cert=../apps/server.pem else cert="$2" fi ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert" if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key...
Shell
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
Shell
#!@SHELL@ # # run OpenVPN client against ``test reference'' server # - check that ping, http, ... via tunnel works # - check that interface config / routes are properly cleaned after test end # # prerequisites: # - openvpn binary in current directory # - writable current directory to create subdir for logs # - t_client...
Shell
#! /bin/sh # # t_cltsrv.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005, 2006, 2008 Matthias Andree # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of th...
Shell
#! /bin/sh echo "${role}:${signal}" >&3
Shell
#! /bin/sh # # t_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, o...
Shell
#!/bin/sh # Sample script to perform OCSP queries with OpenSSL # given a certificate serial number. # If you run your own CA, you can set up a very simple # OCSP server using the -port option to "openssl ocsp". # Full documentation and examples: # http://www.openssl.org/docs/apps/ocsp.html # Edit the following val...
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically removes the /etc/resolv.conf entries previously # set by the companion script "cl...
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically sets the proper /etc/resolv.conf entries # as pulled down from an OpenVPN server....
Shell
#!/bin/sh # # Bring down vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # clear routing via VPN ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out ip route del table vpnonly.out via "$5" iptabl...
Shell
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # add the stuff that doesn't change if it's not already there grep -q '^202 ' /etc/iproute2/rt_tables if [ "$?" -ne 0 ] then echo 202 vpn.out >> /e...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # # openvpn This shell script takes care of starting and stopping # openvpn on RedHat or other chkconfig-based system. # # chkconfig: 345 24 76 # # description: OpenVPN is a robust and highly flexible tunneling application \ # that uses all of the encryption, authentication, a...
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: openvpn # Required-Start: $network # Required-Stop: $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: This shell script takes care of starting and stopping OpenVP...
Shell
#!/bin/sh ################################# # Set up Ethernet bridge on Linux # Requires: bridge-utils ################################# # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged, # for example tap="tap0 tap1 tap2". tap="tap0" # Define physical ethernet interface to be bridged...
Shell
#!/bin/sh #################################### # Tear Down Ethernet bridge on Linux #################################### # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged together tap="tap0" ifconfig $br down brctl delbr $br for t in $tap; do openvpn --rmtun --dev $t done
Shell
#!/bin/sh # A Sample OpenVPN-aware firewall. # eth0 is connected to the internet. # eth1 is connected to a private subnet. # Change this subnet to correspond to your private # ethernet subnet. Home will use HOME_NET/24 and # Office will use OFFICE_NET/24. PRIVATE=10.0.0.0/24 # Loopback address LOOP=127.0.0.1 # De...
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
Shell
#!/bin/sh route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # A sample OpenVPN startup script # for Linux. # openvpn config file directory dir=/etc/openvpn # load the firewall $dir/firewall.sh # load TUN/TAP kernel module modprobe tun # enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # Invoke openvpn for each VPN tunnel # in daemon mode. Alternative...
Shell
#!/bin/sh route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
time ahkab --t-max-nr 100 -o diffamp_tran diffamp_tran.spc time ahkab --t-max-nr 100 -o diffamp_shooting diffamp_shooting.spc time ahkab --t-max-nr 100 -o diffamp_bruteforce diffamp_bruteforce.spc gnuplot diffamp.plot
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/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 source _locals.sh javadoc -linkoffline http://developer.android.com/reference ${ANDROID_SDK}/docs/reference \ -sourcepath ../src \ -classpath ${ANDROID_SDK}/platforms/android-17/android.jar:${ANDROID_SDK}/tools/support/annotations.jar \ -d ../../out/javadoc/ \ -notree -nonavbar...
Shell
#!/bin/sh rm -f local.properties android update project -p . echo "adb.device.arg=-e" >> local.properties # if there isn't an AVD running, make sure there is if [ ! -e ~/.android/avd/${BAMBOO_AVD}.avd/cache.img.lock ]; then echo "Starting AVD ${BAMBOO_AVD}..." emulator -avd ${BAMBOO_AVD} & ...
Shell
#!/bin/sh rm -f local.properties android update project -p . echo "adb.device.arg=-e" >> local.properties # if there isn't an AVD running, make sure there is if [ ! -e ~/.android/avd/${BAMBOO_AVD}.avd/cache.img.lock ]; then echo "Starting AVD ${BAMBOO_AVD}..." emulator -avd ${BAMBOO_AVD} & ...
Shell
################################################################## # Copyright 2005 Spike^ekipS <spikeekips@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ver...
Shell
#!/bin/sh INIT_SCRIPT="`pwd`/__mysql.init" DB_SERVERS="main entry django" for i in ${DB_SERVERS} do [ $1 == "start" ] && [ -S $i/data/mysql.sock ] || (cd $i; ${INIT_SCRIPT} $1) [ $1 == "stop" ] && [ -S $i/data/mysql.sock ] && (cd $i; ${INIT_SCRIPT} $1) done exit 0
Shell
#!/bin/sh basedir=`pwd` datadir= # The following variables are only set for letting mysql.server find things. # Set some defaults pid_file= server_pid_file= use_mysqld_safe=1 user=mysql if test -z "$basedir" then basedir=/usr/local/mysql bindir=./bin if test -z "$datadir" then datadir=/usr/local/mysql/dat...
Shell