code
stringlengths
1
1.96M
language
stringclasses
1 value
for f in $@ do echo $f ssh www@jztzp.com "cat ~/www/$f" | diff - $f done
Shell
#!/bin/bash Dirlist=$(ls ../test/enzymeAnnt/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do echo ${array[$i]} ${array[$j]} ../annsim ../test/enzyme/e_simmat_target .....
Shell
#!/bin/bash Dirlist=$(ls ../test/gpcrAnnt/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do ../annsim ../test/gpcr/gpcr_simmat_target ../test/gpcr/gpcr_desc_term ../tes...
Shell
#!/bin/bash Dirlist=$(ls ../test/nrAnnt/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do ../annsim ../test/nr/nr_simmat_target ../test/nr/nr_desc_term ../test/nrAnnt/$...
Shell
#!/bin/bash Dirlist=$(ls ../test/ionAnnt/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do #echo ${array[$i]} ${array[$j]} ../annsim ../test/ion/ic_simmat_target ../tes...
Shell
#!/bin/bash Dirlist=$(ls ../test/drugs_t_annts/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do echo ${array[$i]} ${array[$j]} ../annsim ../test/sim_matrix_drug_target...
Shell
#!/bin/bash Dirlist=$(ls ../test/drugs_t_annts/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do echo ${array[$i]} ${array[$j]} ../annsim ../test/sim_matrix_drug_target...
Shell
#!/bin/bash Dirlist=$(ls ../test/drugs_t_annts/) index=0 for direc in $Dirlist ; do array[$index]=$direc index=$index+1 done rm results.txt for (( i = 0 ; i < ${#array[@]}-1 ; i++ )) do for (( j = $i+1 ; j < ${#array[@]} ; j++ )) do echo ${array[$i]} ${array[$j]} ../annsim ../test/sim_matrix_drug_target...
Shell
../../../annsim goProtein/goGraphProtein.txt goProtein/go-term-desc-protein.txt cellular_annt/Q9JKJ9 cellular_annt/Q9NYL5 >> Cellular.out ../../../annsim goProtein/goGraphProtein.txt goProtein/go-term-desc-protein.txt cellular_annt/Q9JKJ9 cellular_annt/Q60991 >> Cellular.out ../../../annsim goProtein/goGraphProtein.t...
Shell
../../../annsim goProtein/goGraphProtein.txt goProtein/go-term-desc-protein.txt process_annt/Q9JKJ9 process_annt/Q9NYL5 >> BiologicalProcess.out ../../../annsim goProtein/goGraphProtein.txt goProtein/go-term-desc-protein.txt process_annt/Q9JKJ9 process_annt/Q60991 >> BiologicalProcess.out ../../../annsim goProtein/go...
Shell
#!/bin/sh if [ "$0" == "-h" ]; then echo ok the fi CC_PROGRAM=gcc echo '####################################' printf '##### Operating System: ' if [ `uname | grep -i Linux` ]; then #Test system echo "Linux ####" CC_ARGS="$CC_ARGS -DLINUX -D__LINUX__" LINK_ARGS="$LINK_ARGS -export-dynamic " elif [ `un...
Shell
#!/bin/sh if [ "$0" == "-h" ]; then echo ok the fi CC_PROGRAM=gcc echo '####################################' printf '##### Operating System: ' if [ `uname | grep -i Linux` ]; then #Test system echo "Linux ####" CC_ARGS="$CC_ARGS -DLINUX -D__LINUX__" LINK_ARGS="$LINK_ARGS -export-dynamic " elif [ `un...
Shell
#!/usr/bin/env sh # maps/cell_maze/cell_maze_p02_06.map # maps/example/tutorial1.map ./playgame.py --player_seed=42 --end_wait=0.25 --verbose --log_dir=game_logs --turns=500 --map_file=maps/random_walk/random_walk_02p_02.map "$@" \ "python sample_bots/python/LeftyBot.py" \ "./AntCommander" "python sample_bots/pyt...
Shell
./playgame.py --engine_seed 42 --player_seed 42 --food none --end_wait=0.25 --verbose --log_dir game_logs --turns 30 --map_file submission_test/test.map "$1" "python submission_test/TestBot.py" --nolaunch -e --strict --capture_errors
Shell
#!/usr/bin/env sh ./playgame.py -So --player_seed 42 --end_wait=0.25 --verbose --log_dir game_logs --turns 1000 --map_file maps/maze/maze_04p_01.map "$@" \ "python sample_bots/python/HunterBot.py" \ "python sample_bots/python/LeftyBot.py" \ "python sample_bots/python/HunterBot.py" \ "python sample_bots/python/Lefty...
Shell
#!/usr/bin/env sh # maps/cell_maze/cell_maze_p02_06.map # maps/example/tutorial1.map ./playgame.py --player_seed=42 --end_wait=0.25 --verbose --log_dir=game_logs --turns=500 --map_file=maps/random_walk/random_walk_02p_02.map "$@" \ "python sample_bots/python/LeftyBot.py" \ "./AntCommander" "python sample_bots/pyt...
Shell
SRC=../../starter_bots/csharp gmcs /debug -out:GreedyBot.exe -pkg:dotnet $SRC/Ants.cs $SRC/GameState.cs $SRC/Location.cs $SRC/Tile.cs $SRC/Bot.cs GreedyBot.cs
Shell
#!/usr/bin/env sh ./playgame.py -So --player_seed 42 --end_wait=0.25 --verbose --log_dir game_logs --turns 1000 --map_file maps/maze/maze_04p_01.map "$@" \ "python sample_bots/python/HunterBot.py" \ "python sample_bots/python/LeftyBot.py" \ "python sample_bots/python/HunterBot.py" \ "python sample_bots/python/Lefty...
Shell
#!/bin/bash # Build config for build.sh APP_NAME=fireeditor CHROME_PROVIDERS="content locale skin" CLEAN_UP=1 ROOT_FILES= ROOT_DIRS="defaults" BEFORE_BUILD= AFTER_BUILD=
Shell
#!/bin/bash # build.sh -- builds JAR and XPI files for mozilla extensions # by Nickolay Ponomarev <asqueella@gmail.com> # (original version based on Nathan Yergler's build script) # Most recent version is at <http://kb.mozillazine.org/Bash_build_script> # This script assumes the following directory structure: # ./...
Shell
#!/bin/bash # Build config for build.sh APP_NAME=fireeditor CHROME_PROVIDERS="content locale skin" CLEAN_UP=1 ROOT_FILES= ROOT_DIRS="defaults" BEFORE_BUILD= AFTER_BUILD=
Shell
#!/bin/bash # build.sh -- builds JAR and XPI files for mozilla extensions # by Nickolay Ponomarev <asqueella@gmail.com> # (original version based on Nathan Yergler's build script) # Most recent version is at <http://kb.mozillazine.org/Bash_build_script> # This script assumes the following directory structure: # ./...
Shell
#!/bin/sh if [ `uname` = "Darwin" ]; then rm -rf flowabs.app flowabs.dmg qmake -spec macx-g++ -config release make macdeployqt flowabs.app -dmg else qmake -config release make fi
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 adb shell pm clear 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_BitmapCache VERBOSE
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
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#!/bin/sh arch=x86 archdir=Win32 clean_build=true for opt in "$@" do case "$opt" in x86) ;; x64 | amd64) arch=x86_64 archdir=x64 ;; quick) clean_build=false ;; *) echo "Unknown Option $opt" exit 1 e...
Shell
#!/bin/sh arch=x86 archdir=Win32 clean_build=true for opt in "$@" do case "$opt" in x86) ;; x64 | amd64) arch=x86_64 archdir=x64 ;; quick) clean_build=false ;; *) echo "Unknown Option $opt" exit 1 e...
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 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
#!/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
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
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
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloBoost.jar
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloBoost
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloCMake.jar
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
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
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloEigen
Shell
#this generates an ant based cli build of the android-jni project android update project --name HelloGL2 \ --path .
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-android-cmake \ --path .
Shell
#!/bin/sh # Copyright 2011 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e gcc $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c go build main.go LD_LIBRARY_PATH=. ./main rm -f libcgosotest.so main
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e go build hello.go go build fib.go go build chain.go echo '*' hello >run.out ./hello >>run.out echo '*' fib >>run.out ./fib >>run.out echo '*' ch...
Shell
#!/bin/sh # Copyright 2010 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e go build -o life main.go echo '*' life >run.out ./life >>run.out diff run.out golden.out rm -f life
Shell
#!/usr/bin/env bash # Copyright 2010 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This is a small script for executing go binaries on the android platform. # # example: # ./a 5.out foo bar baz # # The script exports the l...
Shell
#!/bin/bash GOROOT=/usr/local/go echo "Fixing permissions" cd $GOROOT find . -exec chmod ugo+r \{\} \; find bin -exec chmod ugo+rx \{\} \; find . -type d -exec chmod ugo+rx \{\} \; chmod o-w . echo "Fixing debuggers via sudo.bash" # setgrp procmod the debuggers (sudo.bash) cd $GOROOT/src ./sudo.bash echo "Installin...
Shell
#!/bin/bash # Copyright 2011 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e if ! test -f ../../src/all.bash; then echo >&2 "package.bash must be run from $GOROOT/misc/osx" exit 1 fi echo >&2 "Locating PackageMaker......
Shell
#!/bin/sh # Copyright 2011 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. case "$1" in -*) echo 'usage: benchcmp old.txt new.txt' >&2 echo >&2 echo 'Each input file should be go test -test.run=NONE -test.bench=. > [old,new...
Shell
#!/usr/bin/env bash # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Illustrates how a Go language specification can be installed for Xcode 4.x., # to enable syntax coloring, by adding an entry to a plugindata...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e case "`uname`" in Darwin) ;; *) exit 0 esac if [[ ! -d /usr/local/bin ]]; then echo 1>&2 'sudo.bash: problem with /usr/local/bin; c...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e if [ ! -f make.bash ]; then echo 'all.bash must be run from $GOROOT/src' 1>&2 exit 1 fi . ./make.bash --no-banner bash run.bash --no-r...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Environment variables that control make.bash: # # GOROOT_FINAL: The expected final Go root, baked into binaries. # The default is the locatio...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. trap "rm -f arch_GOARCH.h defs_GOOS_GOARCH.h os_GOOS.h signals_GOOS.h" EXIT INT TERM set -e SYS=$1 export GOOS=$(echo $SYS | sed 's/_.*//') export GOARC...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions....
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions....
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e eval $(go env) unset CDPATH # in case user has it set unset GOPATH # we disallow local import for non-local packages, if $GOROOT ha...
Shell
#!/usr/bin/env bash # Copyright 2011 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This script creates the .zip, index, and configuration files for running # godoc on app-engine. # # If an argument is provided it is assumed...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Generate builtin.c from $* (runtime.go and unsafe.go). # Run this after changing runtime.go and unsafe.go # or after changing the export metadata forma...
Shell
#!/bin/sh # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. go help documentation > doc.go gofmt -w doc.go
Shell
#!/bin/bash # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e go build -o testgo ok=true unset GOPATH unset GOBIN # Test that error messages have file:line information # at beginning of line. for i in t...
Shell
#!/bin/sh x() { echo '--- ' "$@" "$@" echo '---' echo } x go help x go help build x go help clean x go help install x go help fix x go help fmt x go help get x go help list x go help test x go help version x go help vet x go help gopath x go help importpath x go help remote
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e eval $(go tool dist env) if [ ! -x $GOTOOLDIR/dist ]; then echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2 exit 1 fi "$GOB...
Shell
#!/usr/bin/env bash # Copyright 2010 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e wiki_pid= cleanup() { kill $wiki_pid rm -f test_*.out Test.txt final-test.bin final-test.go } trap cleanup 0 INT go build -o get.bin ...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e goos=$(go env GOOS) defer_panic_recover=" defer defer2 " effective_go=" eff_bytesize eff_qr eff_sequence " error_handling=" er...
Shell
#!/bin/sh # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This script rebuilds the time zone files using files # downloaded from the ICANN/IANA distribution. # Versions to use. CODE=2011i DATA=2011n set -e ...
Shell
#!/bin/bash # Copyright 2011 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Test the code review plugin. # Assumes a local Rietveld is running using the App Engine SDK # at http://localhost:7777/ # # dev_appserver.py -p 7777...
Shell
#!/usr/bin/env bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. eval $(go tool dist env) export GOARCH GOOS GOROOT export E= case X"$GOARCH" in Xamd64) export A=6 ;; X386) export A=8 ;; Xarm) export A=...
Shell
#!/bin/bash # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates various components of GLSL ES preprocessor. run_flex() { input_file=$script_dir/$1 output_source=$script_dir/$2 flex --noli...
Shell
#!/bin/bash # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates various components of GLSL ES preprocessor. run_flex() { input_file=$script_dir/$1 output_source=$script_dir/$2 flex --noli...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES parser - glslang_lex.cpp, glslang_tab.h, and glslang_tab.cpp run_flex() { input_file=$script_dir/$1.l output_source...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES parser - glslang_lex.cpp, glslang_tab.h, and glslang_tab.cpp run_flex() { input_file=$script_dir/$1.l output_source...
Shell
#!/bin/bash function dumplib() { LIB=$1 for arch in armeabi-v7a armeabi; do VER=$(dump_syms obj/local/$arch/$LIB |grep MODULE | cut -d " " -f 4) mkdir -p symbols/$LIB/$VER dump_syms obj/local/armeabi-v7a/$LIB > symbols/$LIB/$VER/$LIB.sym done } dumplib libopenvpn.so
Shell
#!/bin/bash #NDK_DEBUG=1 ndk-build -j8 # Quick and dirty from ndk-gdb . ${ANDROID_NDK_HOME}/build/tools/ndk-common.sh ANDROID_NDK_ROOT=${ANDROID_NDK_HOME} PROJECT=. APP_ABI=armeabi-v7a AWK_SCRIPTS=${ANDROID_NDK_ROOT}/build/awk PACKAGE_NAME=de.blinkt.openvpn DEBUG_PORT=5039 JDB_PORT=65534 ADB_CMD=adb AWK_CMD=awk ge...
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_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # Copyright (C) 2014 Steffan Karger # # 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;...
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 # # 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 # # 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 # 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 sets the proper /etc/resolv.conf entries # as pulled down from an OpenVPN server....
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 #################################### # 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 ################################# # 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 route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
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 # 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