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
#!/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
#!/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
#!/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/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 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
#!/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 # 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-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 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-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 bash # Copyright (c) 2003-2010, 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
#!/usr/bin/env bash # Copyright (c) 2003-2010, 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
<?php // $Id: run-tests.sh,v 1.43 2010/11/13 13:54:58 dries Exp $ /** * @file * This script runs Drupal tests from command line. */ define('SIMPLETEST_SCRIPT_COLOR_PASS', 32); // Green. define('SIMPLETEST_SCRIPT_COLOR_FAIL', 31); // Red. define('SIMPLETEST_SCRIPT_COLOR_EXCEPTION', 33); // Brown. // Set defaults an...
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.10 2009/03/09 20:46:37 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gr...
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.10 2009/03/09 20:46:37 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gr...
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
cpan LWP::UserAgent cpan LWP::ConnCache cpan HTTP::Request cpan HTTP::Response cpan Getopt::Long cpan Socket
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
#!/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
#!/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/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" CMD=`basename $0` if [ $# -ge 3 ]; then id="$1" file="$2" dest="$3" elif [ $# -ge 2 ];then id="$1" file="$2" dest="/tmp/" else echo "$CMD server_id file [dest_path]" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*...
Shell
#! /bin/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" if [ $# -ge 2 ]; then id="$1" cmds="$2" elif [ $# -ge 1 ];then id="$1" else echo "go server_id [\"cmds\"]" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$" ]]; then user=${BASH_REMATCH[2]} ...
Shell
#! /bin/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" CMD=`basename $0` if [ $# -ge 3 ]; then id="$1" remote_file="$2" local_file="$3" else echo "$CMD server_id remote_file local_file" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$" ]]; then us...
Shell
#! /bin/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" CMD=`basename $0` if [ $# -ge 3 ]; then id="$1" file="$2" dest="$3" elif [ $# -ge 2 ];then id="$1" file="$2" dest="/tmp/" else echo "$CMD server_id file [dest_path]" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*...
Shell
#! /bin/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" CMD=`basename $0` if [ $# -ge 3 ]; then id="$1" remote_file="$2" local_file="$3" else echo "$CMD server_id remote_file local_file" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$" ]]; then us...
Shell
#! /bin/sh CWD=`cd $(dirname $0);pwd;` HOSTFILE="$CWD/hosts.txt" if [ $# -ge 2 ]; then id="$1" cmds="$2" elif [ $# -ge 1 ];then id="$1" else echo "go server_id [\"cmds\"]" exit fi line=`grep "^$id:" $HOSTFILE` if [[ $line =~ "^([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$" ]]; then user=${BASH_REMATCH[2]} ...
Shell
#! /bin/sh # print all days in a year # run as: sh get_year_days.sh [YEAR] # if $1 provided, set year to $1, or set year to 2008 year=${1:-2008} first_second=`date -d "$year-01-01" +%s` last_second=`date -d "$year-12-31" +%s` days=$(( ($last_second-$first_second)/86400 + 1 )) echo "Year $year has $days days:"; # p...
Shell
#!/bin/sh CWD=`cd $(dirname $0); pwd` chmod u+x $CWD/go chmod u+x $CWD/xcp chmod u+x $CWD/xmon chmod u+x $CWD/xrun chmod 600 $CWD/xtools.ini [ -f ~/.profile ] && echo "PATH=\$PATH:$CWD" >> ~/.profile [ -f ~/.bashrc ] && echo "PATH=\$PATH:$CWD" >> ~/.bashrc [ -f ~/.bash_profile ] && echo "PATH=\$PATH:$CWD" >> ~/.bash...
Shell
#!/bin/sh CWD=`cd $(dirname $0); pwd` chmod u+x $CWD/go chmod u+x $CWD/xcp chmod u+x $CWD/xmon chmod u+x $CWD/xrun chmod 600 $CWD/xtools.ini [ -f ~/.profile ] && echo "PATH=\$PATH:$CWD" >> ~/.profile [ -f ~/.bashrc ] && echo "PATH=\$PATH:$CWD" >> ~/.bashrc [ -f ~/.bash_profile ] && echo "PATH=\$PATH:$CWD" >> ~/.bash...
Shell
#! /bin/sh export PATH=/usr/local/bin:/usr/bin:/bin:. cwd="`dirname $0`" cwd="`cd $cwd;pwd;`" cd $cwd; usage () { echo "./exec.sh [-l \"h1 h2 h3\"] [-c \"cmd1;cmd2\"]" echo -e "\t-c your commands here." echo -e "\t-l your host_id list." echo -e "\t-h this help\n" } hostconf="/data/home/peterwang/bin/hosts.t...
Shell
#! /bin/sh export PATH=/usr/local/bin:/usr/bin:/bin:. cwd="`dirname $0`" cwd="`cd $cwd;pwd;`" cd $cwd; usage () { echo "./rsync.sh [-l \"h1 h2 h3\"] [-s "filelist"] [-f \"/from/dir/\"] [-t \"/to/dir/\"] [-m send|recv] [-n]" echo -e "\t-l send to or recv from these nodes." echo -e "\t-f from this dir (must be a...
Shell
#! /bin/sh export PATH=/usr/local/bin:/usr/bin:/bin:. cwd="`dirname $0`" cwd="`cd $cwd;pwd;`" cd $cwd; usage () { echo "./exec.sh [-l \"h1 h2 h3\"] [-c \"cmd1;cmd2\"]" echo -e "\t-c your commands here." echo -e "\t-l your host_id list." echo -e "\t-h this help\n" } hostconf="/data/home/peterwang/bin/hosts.t...
Shell
#! /bin/sh export PATH=/usr/local/bin:/usr/bin:/bin:. cwd="`dirname $0`" cwd="`cd $cwd;pwd;`" cd $cwd; usage () { echo "./rsync.sh [-l \"h1 h2 h3\"] [-s "filelist"] [-f \"/from/dir/\"] [-t \"/to/dir/\"] [-m send|recv] [-n]" echo -e "\t-l send to or recv from these nodes." echo -e "\t-f from this dir (must be a...
Shell
#! /bin/sh # print all days in a year # run as: sh get_year_days.sh [YEAR] # if $1 provided, set year to $1, or set year to 2008 year=${1:-2008} first_second=`date -d "$year-01-01" +%s` last_second=`date -d "$year-12-31" +%s` days=$(( ($last_second-$first_second)/86400 + 1 )) echo "Year $year has $days days:"; # p...
Shell
#! /bin/sh # sum up file size ls -l | awk '{sum+=$5} END{ print sum}'
Shell
#!/bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 port_number1 port_number2" echo "Ext: $0 80 8080" echo "Note: sometime you must run as root to found more port" exit 1 fi PORT="" for p in $@ do is_number=`echo $p | egrep "\<[0-9]+\>"` [ $is_number ] || continue; if [ $PORT ]; then ...
Shell
#! /bin/sh tcpdump -l -i5 -s256 -n -A "dst port 80 and tcp[tcpflags]&(tcp-push)!=0"|grep -o -E "(GET|HEAD|POST) [^ ]+ HTTP[^ ]+"
Shell
#! /bin/sh # sum up file size ls -l | awk '{sum+=$5} END{ print sum}'
Shell
#!/bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 port_number1 port_number2" echo "Ext: $0 80 8080" echo "Note: sometime you must run as root to found more port" exit 1 fi PORT="" for p in $@ do is_number=`echo $p | egrep "\<[0-9]+\>"` [ $is_number ] || continue; if [ $PORT ]; then ...
Shell
#! /bin/sh tcpdump -l -i5 -s256 -n -A "dst port 80 and tcp[tcpflags]&(tcp-push)!=0"|grep -o -E "(GET|HEAD|POST) [^ ]+ HTTP[^ ]+"
Shell
#!/bin/bash CWD=`cd $(dirname $0); pwd` DSTDIR=$HOME echo 'backup old vim configuration' [ -f $DSTDIR/.vimrc ] && mv $DSTDIR/.vimrc $DSTDIR/.vimrc.orig [ -d $DSTDIR/.vim ] && mv $DSTDIR/.vim $DSTDIR/.vim.orig echo 'copy new configuration' cp -rf $CWD/vimrc $DSTDIR/.vimrc cp -rr $CWD/vim $DSTDIR/.vim echo 'DONE'
Shell
#!/bin/bash CWD=`cd $(dirname $0); pwd` DSTDIR=$HOME echo 'backup old vim configuration' [ -f $DSTDIR/.vimrc ] && mv $DSTDIR/.vimrc $DSTDIR/.vimrc.orig [ -d $DSTDIR/.vim ] && mv $DSTDIR/.vim $DSTDIR/.vim.orig echo 'copy new configuration' cp -rf $CWD/vimrc $DSTDIR/.vimrc cp -rr $CWD/vim $DSTDIR/.vim echo 'DONE'
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` VARNISH_NAME=$ROOT_DIR/bin date -u ulimit -SHn 51200 varnishd \ -a 172.24.19.207:80 \ -i image_xml_cache \ -n $VARNISH_NAME \ -P $ROOT_DIR/bin/varnishd.pid \ -s file,$R...
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` EXEFILE=`which varnishd` PIDFILE=$ROOT_DIR/bin/varnishd.pid if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if [ /proc/$PID/exe -ef $EXEFILE ]; then echo 'kill varnishd...
Shell
#!/bin/sh # This file run at 00:00 export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` # stop logger EXEFILE=`which varnishncsa` PIDFILE=$ROOT_DIR/bin/varnishncsa.pid if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if [ /proc/$PID/e...
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` VARNISH_NAME=$ROOT_DIR/bin date -u ulimit -SHn 51200 varnishd \ -a 172.24.19.207:80 \ -i image_xml_cache \ -n $VARNISH_NAME \ -P $ROOT_DIR/bin/varnishd.pid \ -s file,$R...
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` sh $ROOT_DIR/bin/stop.sh sh $ROOT_DIR/bin/start.sh
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` EXEFILE=`which varnishd` PIDFILE=$ROOT_DIR/bin/varnishd.pid if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if [ /proc/$PID/exe -ef $EXEFILE ]; then echo 'kill varnishd...
Shell
#!/bin/sh export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` sh $ROOT_DIR/bin/stop.sh sh $ROOT_DIR/bin/start.sh
Shell
#!/bin/sh # This file run at 00:00 export PATH=/usr/local/bin:/usr/local/sbin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ROOT_DIR=`cd $(dirname $0)/..; pwd` # stop logger EXEFILE=`which varnishncsa` PIDFILE=$ROOT_DIR/bin/varnishncsa.pid if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if [ /proc/$PID/e...
Shell
#!/bin/bash CWD=`cd $(dirname $0); pwd` DSTDIR=$HOME echo 'backup old emacs.d configuration' [ -f $DSTDIR/.emacs ] && mv $DSTDIR/.emacs $DSTDIR/.emacs.orig [ -d $DSTDIR/.emacs.d ] && mv $DSTDIR/.emacs.d $DSTDIR/.emacs.d.orig echo 'copy new configuration' cp -rf $CWD/emacs $DSTDIR/.emacs cp -rr $CWD/emacs.d $DSTDIR/...
Shell
#! /bin/sh ############################################################################### # # File: cscope-indexer # RCS: $Header: /cvsroot/cscope/cscope/contrib/xcscope/cscope-indexer,v 1.2 2001/06/28 04:39:47 darrylo Exp $ # Description: Script to index files for cscope # # This script generates a...
Shell
#! /bin/sh ############################################################################### # # File: cscope-indexer # RCS: $Header: /cvsroot/cscope/cscope/contrib/xcscope/cscope-indexer,v 1.2 2001/06/28 04:39:47 darrylo Exp $ # Description: Script to index files for cscope # # This script generates a...
Shell
#!/bin/sh EMACS=${EMACS:-emacs}; rm -r /tmp/CEDET_INTEG* $EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
Shell
#!/bin/sh EMACS=${EMACS:-emacs}; rm -r /tmp/CEDET_INTEG* $EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
Shell
#!/bin/sh # semanticdb.sh --- Build a semantic cache for input arguments # # Copyright (C) 2002, 2004 Eric M. Ludlam # # Author: Eric M. Ludlam <zappo@gnu.org> # Keywords: tags # X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $ # # This file is not part of GNU Emacs. # # Semanticdb is free software; you ...
Shell
#!/bin/sh # semanticdb.sh --- Build a semantic cache for input arguments # # Copyright (C) 2002, 2004 Eric M. Ludlam # # Author: Eric M. Ludlam <zappo@gnu.org> # Keywords: tags # X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $ # # This file is not part of GNU Emacs. # # Semanticdb is free software; you ...
Shell
#!/bin/bash CWD=`cd $(dirname $0); pwd` DSTDIR=$HOME echo 'backup old emacs.d configuration' [ -f $DSTDIR/.emacs ] && mv $DSTDIR/.emacs $DSTDIR/.emacs.orig [ -d $DSTDIR/.emacs.d ] && mv $DSTDIR/.emacs.d $DSTDIR/.emacs.d.orig echo 'copy new configuration' cp -rf $CWD/emacs $DSTDIR/.emacs cp -rr $CWD/emacs.d $DSTDIR/...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2012, 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
#!/usr/bin/env bash # Copyright (c) 2003-2012, 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/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell