code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /bin/bash # # original from: # @(#) corename.ksh 1.0 93/04/01 # 92/11/11 john h. dubois iii (john@armory.com) # 92/02/16 Added help option. # 92/02/22 Added cd to origdir to fix prob w/multiple relative paths. # 93/04/01 Added check for whether file exists. # # conversion to bash v2 syntax done by Chet Rame...
Shell
#! /bin/bash # # pmtop - poor man's `top' for SunOS 4.x # CLEAR=clear # could also be 'tput clear' HEADER="USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND" if [ -n "$LINES" ]; then SS=$(( $LINES - 2 )) else SS=20 fi while : do $CLEAR echo "$HEADER" ps -aux | sort -nr -k 3 | sed ...
Shell
#! /bin/bash # # original from: # # @(#) frcp.ksh 2.2 93/11/14 # 92/06/29 john h. dubois iii (john@armory.com) # 92/10/14 Cleaned up, improved, added -d and -r options # 92/11/11 Made work with a dest of '.' # 93/07/09 Added -l and -n options, & login as anonymous if no .netrc entry # 93/11/14 Use either passw...
Shell
#From: "Grigoriy Strokin" <grg@philol.msu.ru> #Newsgroups: comp.unix.shell #Subject: BASH: getopt function that parses long-named options #Date: Mon, 22 Dec 1997 20:35:18 +0300 #Hi, I have written a BASH function named getoptex, that is like bash builtin #"getopts", but does parse long-named options and optional...
Shell
#! /bin/bash # Format: array_to_string vname_of_array vname_of_string separator array_to_string() { (( ($# < 2) || ($# > 3) )) && { "$FUNCNAME: usage: $FUNCNAME arrayname stringname [separator]" return 2 } local array=$1 string=$2 ((3==$#)) && [[ $3 = ? ]] && local IFS="${3}${IFS}" eval $string=...
Shell
#! /bin/bash # #Derived from: # #From: damercer@mmm.com (Dan Mercer) #Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.programmer,comp.sys.sun.admin #Subject: Re: Command to find out if a directory is empty #Date: 17 Aug 2000 14:35:56 GMT #Message-ID: <8ngt8c$fmr$1@magnum.mmm.com> # usage: emptydir [dir...
Shell
#! /bin/bash # # original from # @(#) lowercase.ksh 1.0 92/10/08 # 92/10/08 john h. dubois iii (john@armory.com) # # conversion to bash v2 syntax done by Chet Ramey lowercase() { for file; do [ -f "$file" ] || continue filename=${file##*/} case "$file" in */*) dirname=${file%/*} ;; *) dirn...
Shell
# replace the `login' and `newgrp' builtins in old bourne shells login() { exec login "$@" } newgrp() { exec newgrp "$@" }
Shell
# coprocess.bash # # vi:set sts=2 sw=2 ai: # coprocess_pid= # # coprocess - Start, control, and end coprocesses. # function coprocess () { while (( $# > 0 )) ; do case "$1" in # # coprocess close # c|cl|clo|clos|close) shift exec 61>&- 62<&- coprocess_pid= if [ "...
Shell
# xalias - convert csh alias commands to bash functions # from Mohit Aron <aron@cs.rice.edu> # posted to usenet as <4i5p17$bnu@larry.rice.edu> function xalias () { if [ "x$2" = "x" ] then declare -f $1 else case $2 in *[#\!]*) comm=$(echo $2 | sed 's/\\!\*/\"$\@\"/g s/\\!:\([1-9]\)...
Shell
#! /bin/bash # #Derived from: # #From: damercer@mmm.com (Dan Mercer) #Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.programmer,comp.sys.sun.admin #Subject: Re: Command to find out if a directory is empty #Date: 17 Aug 2000 14:35:56 GMT #Message-ID: <8ngt8c$fmr$1@magnum.mmm.com> # usage: emptydir [dir...
Shell
#!/bin/bash #From: kaz@ashi.footprints.net (Kaz Kylheku) #Newsgroups: comp.os.linux.misc #Subject: Re: bash question: subdirectories #Message-ID: <slrn8a0gu9.v5n.kaz@ashi.FootPrints.net> #Date: Tue, 08 Feb 2000 16:24:35 GMT #Actually it can be made to. That is to say, it is possible to code a recursive #desc...
Shell
#! /bin/bash # # original from # @(#) lowercase.ksh 1.0 92/10/08 # 92/10/08 john h. dubois iii (john@armory.com) # # conversion to bash v2 syntax done by Chet Ramey lowercase() { for file; do [ -f "$file" ] || continue filename=${file##*/} case "$file" in */*) dirname=${file%/*} ;; *) dirn...
Shell
#! /bin/bash # Format: array_to_string vname_of_array vname_of_string separator array_to_string() { (( ($# < 2) || ($# > 3) )) && { "$FUNCNAME: usage: $FUNCNAME arrayname stringname [separator]" return 2 } local array=$1 string=$2 ((3==$#)) && [[ $3 = ? ]] && local IFS="${3}${IFS}" eval $string=...
Shell
#! /bin/bash #From: kaz@cafe.net (Kaz Kylheku) #Newsgroups: comp.unix.shell #Subject: Why not roll your own @#$% find! (was: splitting directory off from filename) #Message-ID: <6n1117$tp1@espresso.cafe.net> #Date: Fri, 26 Jun 1998 20:47:34 GMT # $1 = dirname, $2 = pattern, optional $3 = action xfind() { lo...
Shell
trap _notify CHLD NOTIFY_ALL=false unset NOTIFY_LIST unalias false false() { return 1 } _notify () { local i j local newlist= if $NOTIFY_ALL then return # let bash take care of this itself elif [ -z "$NOTIFY_LIST" ]; then return else set -- $NOTIFY_LIST for i in "$@" do j...
Shell
#From: jrmartin@rainey.blueneptune.com (James R. Martin) #Newsgroups: comp.unix.shell #Subject: Re: testing user input on numeric or character value #Date: 26 Nov 1997 01:28:43 GMT # isnum returns True if its argument is a valid number, # and False (retval=1) if it is any other string. # The first pattern requi...
Shell
jj () { p=$(jobs $1); echo $p case "$p" in [*) echo matches '[*' ;; *) echo not a match\? ;; esac }
Shell
#!/bin/bash #From: kaz@ashi.footprints.net (Kaz Kylheku) #Newsgroups: comp.os.linux.misc #Subject: Re: bash question: subdirectories #Message-ID: <slrn8a0gu9.v5n.kaz@ashi.FootPrints.net> #Date: Tue, 08 Feb 2000 16:24:35 GMT #Actually it can be made to. That is to say, it is possible to code a recursive #desc...
Shell
#! /bin/bash #From: kaz@cafe.net (Kaz Kylheku) #Newsgroups: comp.unix.shell #Subject: Why not roll your own @#$% find! (was: splitting directory off from filename) #Message-ID: <6n1117$tp1@espresso.cafe.net> #Date: Fri, 26 Jun 1998 20:47:34 GMT # $1 = dirname, $2 = pattern, optional $3 = action xfind() { lo...
Shell
# vi:set sts=2 sw=2 ai: # # coshell.bash - Control shell coprocesses (see coprocess.bash). # function coshell () { while (( $# > 0 )) ; do case "$1" in # # coshell open # o|op|ope|open) shift coprocess open "$@" local ret=$? # This should eat any ssh error messages o...
Shell
#From: damatex@CAM.ORG (Mario Boudreault) #Newsgroups: comp.unix.shell #Subject: JULIAN DATE CONVERSION SUB #Date: 4 Aug 1995 10:23:28 -0400 #Message-ID: <3vtah0$jb3@ocean.CAM.ORG> #For those using shells and who want to convert dates to a julian number #here is a shell script (wihtout validation) that can be u...
Shell
#! /bin/sh # # bison -- just call yacc # # Copyright (C) 1996-2002 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 Foundation, either version 3 of the Licens...
Shell
#! /bin/sh # # bison -- just call yacc # # Copyright (C) 1996-2002 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 Foundation, either version 3 of the Licens...
Shell
#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2009 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 Founda...
Shell
#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2009 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 Founda...
Shell
#!/bin/bash # Build config for build.sh APP_NAME=webtalk CHROME_PROVIDERS="content" CLEAN_UP=1 ROOT_FILES= ROOT_DIRS= 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=webtalk CHROME_PROVIDERS="content" CLEAN_UP=1 ROOT_FILES= ROOT_DIRS= 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
/Applications/Firefox.app/Contents/MacOS/firefox-bin -P $*
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 file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
# Copyright 2013 Google Inc. All Rights Reserved. # # # This script sets up all build/test dependencies including Google App Engine, # WebTest, Selenium, Chromedriver, etc. All other scripts will include this # script to setup these dependencies. # # Force shell to fail on any errors. set -e shopt -s nullglob # Se...
Shell
#!/bin/bash # Copyright 2014 Google Inc. All Rights Reserved. # # Wrapper script for modules.py that sets up paths correctly. Usage from your # coursebuilder/ folder: # # sh scripts/modules.sh [args] set -e . "$(dirname "$0")/common.sh" python "$COURSEBUILDER_HOME/scripts/modules.py" "$@"
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # author: sll@google.com (Sean Lip) # Run this script from the Course Builder folder as follows: # sh ./scripts/test.sh --test_class <dotted test name> # E.g., # Run all tests in a module: # sh ./scripts/test.sh tests.unit.common_safe_dom # # ...
Shell
#! /bin/sh # Copyright 2012 Google Inc. All Rights Reserved. # # author: psimakov@google.com (Pavel Simakov) # # This script starts local developer Google AppEngine server for integration # tests and initializes it with a default data set. # # Run this script from the coursebuilder/ folder: # sh ./scripts/start_i...
Shell
#!/bin/bash # Copyright 2014 Google Inc. All Rights Reserved. # # Usage: # # Run this script from the Course Builder folder. It can be run with the # following arguments: # # Deploy Course Builder to the App Engine app named in app.yaml: # sh ./scripts/deploy.sh # # Deploy Course Builder to the given App Engine ap...
Shell
# Copyright 2012 Google Inc. All Rights Reserved. # # author: psimakov@google.com (Pavel Simakov) # # This script starts local developer Google AppEngine server and initializes it # with the default data set. # # Run this script from the coursebuilder/ folder: # sh ./scripts/start.sh # usage () { echo "Options: -...
Shell
#! /bin/bash # Copyright 2014 Google Inc. All Rights Reserved. # # Wrapper script to launch PyLint ( http://www.pylint.org/ ) against # CourseBuilder sources. This script is automatically run as part of # run_all_tests.py, and can be used on individual files; run with -h # option to get the "help" text on options and...
Shell
# Copyright 2014 Google Inc. All Rights Reserved. # # Set common config variables for developer runtime environment scripts. # NOTE: This file is also evaluated by Python scripts to get configurations # from environment variables. Do not add any non-idempotent side-effects # to this script. export SOURCE_DIR="$( cd "...
Shell
#!/bin/bash # Copyright 2014 Google Inc. All Rights Reserved. # # Wrapper script for tools/etl/etl.py that sets up the environment correctly. # # Run this script as follows: # sh ./scripts/etl.sh <arguments> # # ETL's arguments are involved; pass --help for details. You will need to # provide credentials when usin...
Shell
#!/bin/sh export VER='1.1.12' export FULLVER='1.1.12' export REV=91 export FEATURES='增加对天猫链接的屏蔽;增加对2014世界杯国旗标识的屏蔽' while getopts ":nd" optname do case "$optname" in "n") COMPRESS=' --nocompress';; "d") COMPRESS=' --nocompress'; PARAMS=' --flag=DEBUG';; "?") echo "Unknown option -$OPTARG"; exit 1;; ":") echo ...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked immediately after a Subversion txn is # created and populated with initial revprops 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 fi...
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 # 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-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-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-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-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 # 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-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 # START-COMMIT HOOK # # The start-commit hook is invoked immediately after a Subversion txn is # created and populated with initial revprops 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 fi...
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 # 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 # 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 # 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/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 # # 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/bash make clean for g in *; do # make all characters lowercase mv $g `echo $g | tr A-Z a-z` done rm *.0 rm *.1 rm *.2 rm *.3 rm *.4 rm *.ali rm *.bak rm *.o rm *.exe rm *.ago rm *.dll rm mprogram rm adag* rm sim* rm io_* rm swin* sed -i "s/.*\-\-\*/\-\- &/g" *.* cp -p ../../Given/* . sed -i "s/your_pr...
Shell
#!/bin/bash make clean for g in *; do # make all characters lowercase mv $g `echo $g | tr A-Z a-z` done rm *.0 rm *.1 rm *.2 rm *.3 rm *.4 rm *.ali rm *.bak rm *.o rm *.exe rm *.ago rm *.dll rm mprogram rm adag* rm sim* rm io_* rm swin* sed -i "s/.*\-\-\*/\-\- &/g" *.* cp -p ../../Given/* . sed -i "s/your_pr...
Shell
java -jar -Xmx256m -Xms256m -Xmn96m -XX:PermSize=32m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+UseCMSInitiatingOccupancyOnly WeiboAutoman.jar
Shell
CLASSPATH=WeiboAutoman.jar:$CLASSPATH java -Xmn16m -Xms64m -Xmx128m weiboautoman.timer.spilder.SaveContent cookie.txt
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 ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2011, Cake Software Foundation, Inc. # # Licensed under The MIT License # R...
Shell
#!/bin/bash # # Author: scottakirkwood@gmail.com (Scott Kirkwood) # cd to the scripts folder cd "$(dirname $0)" # Output the app version number echo -n 'App version is: ' grep '^version: .*' app.yaml read -p "Is this correct? (enter to continue, ctrl-c to quit)" # Upload everything ~/bin/google_appengine/appcfg.py ...
Shell
#!/bin/bash # # Author: scottakirkwood@gmail.com (Scott Kirkwood) # Upload everything ~/bin/google_appengine/dev_appserver.py .
Shell
#!/bin/bash # # ** Simple script to compile the code MC-GPU v1.2 ** # # The installations paths to the CUDA toolkit and SDK (http://www.nvidia.com/cuda) and the MPI # library path have to be adapted before runing the script! # # Default paths: # /usr/local/cuda # /opt/cuda_SDK_4....
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