code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# ./bin/test/noc_test <nb_input> <nb_output> <arbiter_mode> <execution_time_ns> <stream_period>
source_dir=$PWD
if [ ! -e data ]
then
mkdir -p data
fi
cd data
for ((k=2; k<33; k=2*k));
do
for ((j=2; j<65; j=2*j));
do
for ((i=0; i<5;i++));
do
echo "fifo depth: $k";
echo "arbi... | Shell |
#!/bin/bash
cd jni
swig -I/home/andrew/Documents/fieldml.api/core/src -package fieldml.jni -outdir ./fieldml/jni -c++ -java fieldml_api.i
javac ./fieldml/jni/*.java
jar -cf fieldml.jar ./fieldml/jni/*.class
cd ..
g++ -ggdb -O0 -shared -o libfieldml.so ./core/src/*.cpp -I/usr/lib/jvm/java-6-openjdk-amd64/include/ -Icore... | Shell |
#!/bin/bash
ln -s $HOME/www/berkeley/wp-content/themes/a2f-berkeley-2011/plugins/shortcodes.php $HOME/www/berkeley/wp-content/plugins/shortcodes.php
ln -s $HOME/www/berkeley/wp-content/themes/a2f-berkeley-2011/plugins/gpphoto $HOME/www/berkeley/wp-content/plugins/gpphoto
ln -s $HOME/www/berkeley/wp-content/themes/a2f-... | Shell |
#!/bin/bash
ln -s $HOME/www/berkeley/wp-content/themes/a2f-berkeley-2011/plugins/shortcodes.php $HOME/www/berkeley/wp-content/plugins/shortcodes.php
ln -s $HOME/www/berkeley/wp-content/themes/a2f-berkeley-2011/plugins/gpphoto $HOME/www/berkeley/wp-content/plugins/gpphoto
ln -s $HOME/www/berkeley/wp-content/themes/a2f-... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#! /bin/bash
cake -app /data/www/Taiwan-tales-admin/ block | Shell |
#! /bin/bash
cake -app /data/www/Taiwan-tales-admin/ block | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | 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
# 0 1 2 3 4 5 6 7 8 9
databases=( AHA ESTTDB LTSTDB MITBIH-AR MITBIH-AR-DS2 MITBIH-SUP MITBIH-ST INCART Biosigna MITBIH-LT)
db_fmt=( AHA MIT MIT MIT MIT MIT MIT MIT HES ... | Shell |
#!/bin/sh
#
# Filename: matlab.sh
#
# ./matlab.sh "simplesleep(10,2,'output.txt')"
#
on_die()
{
#Some error happened.
echo "Some error happened in $HOSTNAME. Error log should be above this." >/dev/fd/2
exit 1
}
# Execute function on_die() receiving TERM signal
#
trap 'on_die' TERM INT
# run matlab in text mode ... | Shell |
#!/bin/bash
# 0 1 2 3 4 5 6 7 8 9
databases=( AHA ESTTDB LTSTDB MITBIH-AR MITBIH-AR-DS2 MITBIH-SUP MITBIH-ST INCART Biosigna MITBIH-LT)
db_fmt=( AHA MIT MIT MIT MIT MIT MIT MIT HES ... | Shell |
#!/bin/bash
all_err_files=( $(find $1 -name "*.err" -print) )
jj=0
for filename in "${all_err_files[@]}"
do
if [ -s $filename ]
then
echo
echo
echo
echo "$filename"
cat "$filename" | head -n 30
# xbase=${filename##*/}
# filename_only=${xbase%.*}
# full_path="${filename:0:${#filename} - ${#xbase}}" # Subs... | Shell |
#!/bin/sh
#
# Filename: matlab.sh
#
# ./matlab.sh "simplesleep(10,2,'output.txt')"
#
on_die()
{
#Some error happened.
echo "Some error happened in $HOSTNAME. Error log should be above this." >/dev/fd/2
exit 1
}
# Execute function on_die() receiving TERM signal
#
trap 'on_die' TERM INT
# run matlab in text mode ... | Shell |
#!/bin/bash
all_err_files=( $(find $1 -name "*.err" -print) )
jj=0
for filename in "${all_err_files[@]}"
do
if [ -s $filename ]
then
echo
echo
echo
echo "$filename"
cat "$filename" | head -n 30
# xbase=${filename##*/}
# filename_only=${xbase%.*}
# full_path="${filename:0:${#filename} - ${#xbase}}" # Subs... | 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/bash
INSTALL_DIR="`pwd`/jni/libraw"
SRC_DIR="`pwd`/../LibRaw-0.14.7"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT... | Shell |
#!/bin/bash
INSTALL_DIR="`pwd`/jni/exiv2"
SRC_DIR="`pwd`/../exiv2-0.22"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT/pla... | Shell |
#!/bin/sh
(cd $HOME ; [ ! -d env ] && virtualenv env)
. $HOME/env/bin/activate
pip install -r requirements.txt
cp -Rf * $HOME/
| Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
cd /cygdrive/e/android/AndEngineModPlayerExtension/
/cygdrive/e/sdk/android-ndk-r4/ndk-build | Shell |
#!/bin/bash
MAIN=com.trydofor.id.xnet.NetServer
EXLD=lib/server-lib-exclude.txt
cd `dirname $0`
#set class path
CP=cnf:ext
for f in `ls a9id-net-*.jar`;do CP=$CP:$f; done
for f in `ls lib/*.jar`;do
inc=yes
if [ -f "$EXLD" ];then
for j in `cat "$EXLD"`;do
if [ -n "`echo $f|grep $j`" ];then
... | Shell |
#!/bin/bash
MAIN=com.trydofor.id.xnet.GuiShell
EXLD=lib/client-lib-exclude.txt
cd `dirname $0`
#set class path
CP=cnf:ext
for f in `ls a9id-net-*.jar`;do CP=$CP:$f; done
for f in `ls lib/*.jar`;do
inc=yes
if [ -f "$EXLD" ];then
for j in `cat "$EXLD"`;do
if [ -n "`echo $f|grep $j`" ];then
... | Shell |
#!/bin/bash
# An utitlity to create a virutal host for apache
# Author: "A. K. M. Mokaddim"<shiplu@mokadd.im>
#
# Administrator email address
ADMIN_MAIL=admin@domain.com
# Directory where all the virtual hosts are kept
VHOST_DIR=/srv/sites
# Error log directory
ERR_LOG_DIR=/var/log/apache2
# Custom log directory
C... | Shell |
#!/bin/bash
# An utitlity to create a virutal host for apache
# Author: "A. K. M. Mokaddim"<shiplu@mokadd.im>
#
# Administrator email address
ADMIN_MAIL=admin@domain.com
# Directory where all the virtual hosts are kept
VHOST_DIR=/srv/sites
# Error log directory
ERR_LOG_DIR=/var/log/apache2
# Custom log directory
C... | 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 |
#!/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 |
#!/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/bash
qmake -project -r "CONFIG(debug, debug|release) {
DESTDIR=bin/debug
OBJECTS_DIR=obj/debug
} else {
DESTDIR=bin/release
OBJECTS_DIR=obj/release
}" UI_DIR=temp RCC_DIR=temp MOC_DIR=temp QMAKE_CXXFLAGS+=-std=c++0x QT+=opengl LIBS+=-lGLU
qmake *.pro
| 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.website.project.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src/org/websi... | Shell |
#!/bin/bash
#
# Copyright (c) 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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
<?php
/**
* @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 and get overrides.
list($args, $count) = simpletest_script_par... | Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
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" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t... | Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/usr/bin/env sh
# This script will run phpunit-based test classes using Drush's
# test framework. First, the Drush executable is located, and
# then phpunit is invoked, passing in drush_testcase.inc as
# the bootstrap file.
#
# Any parameters that may be passed to phpunit may also be used
# with runtests.sh.
DRUSH... | Shell |
#!/bin/bash
# Run this from the terminal inside a drupal root folder
# i.e. DRUPAL_ROOT_DIR/sites/all/modules/contrib/ctools/tests/ctools.drush.sh
function stamp {
echo ==============
echo timestamp : `date`
echo ==============
}
DRUPAL_ROOT=`drush dd`
MODULE_DIR="$DRUPAL_ROOT/sites/all/modules"
MODULE_NAME="c... | Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2013, 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
# 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
/bin/chmod -R o+w admin/bin/xlsdata
| Shell |
tstamp=`date +"%H%M-%d%m%Y"`
cd CentralOffice
tar cv --exclude='.*' --gzip --file ../CentralOffice.${tstamp}.tgz *
cd ..
scp CentralOffice.${tstamp}.tgz atlantaa@paat.pair.com:deploy/CentralOffice.${tstamp}.tgz
| Shell |
#!/bin/bash
BASE=$HOME
if [[ ( -z $1 ) || ( ! -f $1 ) ]] ; then
echo "usage: deploydev.sh filename";
exit -1;
fi
dname=$BASE"/sites/dev.aaatlanta.org/"`basename $1 .tgz`
echo "deploying to $dname"
if [[ -d $dname ]] ; then
rm -rf $dname
fi
mkdir $dname
tar xzf $1 -C $dname
lname=$BASE"/public_html/dev.aa... | 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/bash
pkill -f powerDown.py &>/dev/null
#cd $(dirname $0)
cd /home/neuron/Documents/gCode/powerDown
exec ./powerDown.py &>/tmp/powerdown.log &
| Shell |
#!/bin/bash
pkill -f powerDown.py &>/dev/null
#cd $(dirname $0)
cd /home/neuron/Documents/gCode/powerDown
exec ./powerDown.py &>/tmp/powerdown.log &
| 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 |
#!/bin/bash
COMPILER="/Applications/Developer Tools/compiler.jar"
SOURCE=./src/jquery.autocomplete.js
TARGET=./src/jquery.autocomplete.min.js
echo "Minifying ${SOURCE} to ${TARGET} ... "
if `java -jar "${COMPILER}" "${SOURCE}" > "${TARGET}"`
then
echo "Minify succeeded."
else
echo "Minify failed."
rm "${... | Shell |
#!/bin/bash
# all.sh
echo shell_all
echo run pydicom test suite on all supported python versions
echo ------- python 2.6 ------------
python2.6 run_tests.py
echo ------- python 2.7 ------------
python2.7 run_tests.py
# Check location for each version -- to make sure are not running old pydicom versions
echo -
echo ---... | Shell |
cd /cygdrive/c/workspace/AndEnginePhysicsBox2DExtension/
/cygdrive/c/workspace/sdk/android-ndk-r6/ndk-build | Shell |
#!/bin/bash
set -e # fail early
VERS="$1"
[ -n "$VERS" ] && VERS="${VERS}_"
function die() {
echo "Error: " $*
echo
echo "USage: $0 <version>"
echo "Automatically sign [A-Z].apk"
exit 1
}
[ -z "$1" ] && die
shopt -s extglob # extended glob pattern
function process() {
SRC="$1"
BASE="${SRC/.apk/}"
... | 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 |
APPNAME="ZombieSmasher"
# options
buildexternalsfromsource=
usage(){
cat << EOF
usage: $0 [options]
Build C/C++ code for $APPNAME using Android NDK
OPTIONS:
-s Build externals from source
-h this help
EOF
}
while getopts "sh" OPTION; do
case "$OPTION" in
s)
buildexternalsfromsource=1
;;
h)
usage
exit 0
;;
esac
do... | Shell |
#!/bin/sh
# BuildAllSDKs.sh
#
# This script builds both the Tiger and Leopard versions of the requested
# target in the current basic config (debug, release, debug-gcov). This script
# should be run from the same directory as the GTM Xcode project file.
#
# Copyright 2006-2008 Google Inc.
#
# Licensed under the Apache ... | Shell |
#!/bin/bash
#
# RunMacOSUnitTests.sh
# Copyright 2008 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 require... | Shell |
#!/bin/bash
# RunIPhoneUnitTest.sh
# Copyright 2008 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 ... | Shell |
#!/bin/bash
mkdir -p Library/SDKs/CorePlotSDK
mkdir -p Library/Frameworks
mkdir -p Library/Developer/Shared/Documentation/DocSets
mkdir -p CorePlot/Binaries/iOS/CorePlot
unzip CorePlot/Binaries/iOS/CorePlot.zip -d CorePlot/Binaries/iOS/CorePlot
cp -r CorePlot/Binaries/iOS/CorePlot/CorePlotSDK/* Library/SDKs/CorePlotS... | 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
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.