code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
#
# Build a fat binary on Mac OS X, thanks Ryan!
# Number of CPUs (for make -j)
NCPU=`sysctl -n hw.ncpu`
if test x$NJOB = x; then
NJOB=$NCPU
fi
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS="-O3 -g -pipe"
# PowerPC 32-bit configure flags (10.4 runtime compatibility)
# We dynamically ... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case "${1}" in
-h | ... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# w... | Shell |
#!/bin/sh
#
# Generate a header file with the current source revision
cd `dirname $0`
srcdir=..
header=$srcdir/include/SDL_revision.h
rev=`sh showrev.sh`
if [ "$rev" != "" ]; then
echo "#define SDL_REVISION $rev" >$header.new
if diff $header $header.new >/dev/null 2>&1; then
rm $header.new
else
... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case "${1}" in
-h | ... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-10-07'
# This file is (in principle) common to ALL GNU software.
# The presence o... | Shell |
#!/bin/sh
#
# Print the current source revision, if available
srcdir=`dirname $0`/..
if [ -d $srcdir/.svn ]; then
cd $srcdir
(svnversion -c 2>/dev/null || svnversion .) | \
sed -e 's,\([0-9]*\)[A-Z]*,\1,' \
-e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
else
cd $srcdir
git svn info | grep Re... | Shell |
#!/bin/sh
#
# Build a fat binary on Mac OS X, thanks Ryan!
# Number of CPUs (for make -j)
NCPU=`sysctl -n hw.ncpu`
if test x$NJOB = x; then
NJOB=$NCPU
fi
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS="-O3 -g -pipe"
# PowerPC 32-bit configure flags (10.4 runtime compatibility)
# We dynamically ... | Shell |
#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
-fno-common)
# Ignore -fPIC and -DPIC o... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-09-18'
# This file is free software; you can redistribute it and/or modify it
# und... | Shell |
#!/bin/sh
#
# Generate a current snapshot from source control
echo "Checking out source"
svn co -q http://svn.libsdl.org/trunk/SDL
(cd SDL && ./autogen.sh && rm -rf autom4te.cache)
sh SDL/build-scripts/updaterev.sh
cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h
major=`fgrep "#define SDL_MAJOR_VERSION" S... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2005-02-02.21
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby ... | Shell |
#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
-fno-common)
# Ignore -fPIC and -DPIC o... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2005-02-02.21
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby ... | Shell |
#!/bin/sh
#
# Generate a header file with the current source revision
cd `dirname $0`
srcdir=..
header=$srcdir/include/SDL_revision.h
rev=`sh showrev.sh`
if [ "$rev" != "" ]; then
echo "#define SDL_REVISION $rev" >$header.new
if diff $header $header.new >/dev/null 2>&1; then
rm $header.new
else
... | Shell |
#!/bin/sh
#
# Print the current source revision, if available
srcdir=`dirname $0`/..
if [ -d $srcdir/.svn ]; then
cd $srcdir
(svnversion -c 2>/dev/null || svnversion .) | \
sed -e 's,\([0-9]*\)[A-Z]*,\1,' \
-e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
else
cd $srcdir
git svn info | grep Re... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
timestamp='2003-02-22'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that S... | Shell |
#!/bin/sh
# Generic script to create a package with Project Builder in mind
# There should only be one version of this script for all projects!
FRAMEWORK="$1"
VARIANT="$2"
PACKAGE="$FRAMEWORK"
PACKAGE_RESOURCES="pkg-support/resources"
echo "Building package for $FRAMEWORK.framework"
echo "Will fetch resources from ... | Shell |
#!/bin/sh
# Generic script to create a package with Project Builder in mind
# There should only be one version of this script for all projects!
FRAMEWORK="$1"
VARIANT="$2"
PACKAGE="$FRAMEWORK"
PACKAGE_RESOURCES="pkg-support/resources"
echo "Building package for $FRAMEWORK.framework"
echo "Will fetch resources from ... | Shell |
#!/bin/bash
IP1=$1
IP2=$2
IP3=$3
IP4=$4
IP5=$5
openvpn --remote $IP1 --port 1200 --dev tap0 --ifconfig 10.134.5.140 255.255.255.240 201.158.15.2 &
openvpn --remote $IP1 --port 1201 --dev tap1 --ifconfig 10.134.5.140 255.255.255.240 20.86.15.129 &
openvpn --remote $IP1 --port 1202 --dev tap2 --ifconfig 10.134.5.140 25... | Shell |
#!/bin/bash
killall openvpn
openvpn --rmtun --dev tap0
openvpn --rmtun --dev tap1
openvpn --rmtun --dev tap2
openvpn --rmtun --dev tap3
openvpn --rmtun --dev tap4
openvpn --rmtun --dev tap5
openvpn --rmtun --dev tap6
openvpn --rmtun --dev tap7
openvpn --rmtun --dev tap8
openvpn --rmtun --dev tap9
| Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1206 --dev tap6 --ifconfig 201.158.15.1 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 20.86.15.0 netmask 255.255.255.224 gw 201.158.15.6 metric 1
route add -net 10.31.25.128 netmask 255.255.255.240 gw 201.158.15.6 metric 1
route add -net 20.... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1203 --dev tap3 --ifconfig 20.64.73.3 255.255.255.0 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 20.64.73.5 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 20.64.73.5 metric 1
route add -net 10.31.25.1... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1200 --dev tap0 --ifconfig 201.158.15.2 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 20.86.15.0 netmask 255.255.255.224 gw 201.158.15.6 metric 1
route add -net 10.31.25.128 netmask 255.255.255.240 gw 201.158.15.6 metric 1
route add -net 20.... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1205 --dev tap5 --ifconfig 10.31.25.194 255.255.255.224 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 10.31.25.193 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 10.31.25.193 metric 1
route add -net 10... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1201 --dev tap1 --ifconfig 20.86.15.129 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 20.86.15.132 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 20.86.15.132 metric 1
route add -net 10... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1202 --dev tap2 --ifconfig 20.86.15.34 255.255.255.224 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 20.86.15.34 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 20.86.15.34 metric 1
route add -net 10.31... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1204 --dev tap4 --ifconfig 10.31.25.3 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 10.31.25.2 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 10.31.25.2 metric 1
route add -net 10.31.25... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1207 --dev tap7 --ifconfig 10.31.25.1 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 10.31.25.2 metric 1
route add -net 20.86.15.0 netmask 255.255.255.224 gw 10.31.25.2 metric 1
route add -net 10.31.25... | Shell |
#!/bin/bash
./finalizarVPNs.sh
IP=$1
openvpn --remote $IP --port 1208 --dev tap8 --ifconfig 20.26.29.129 255.255.255.0 10.134.5.140 &
openvpn --remote $IP --port 1209 --dev tap9 --ifconfig 20.86.15.130 255.255.255.128 10.134.5.140 &
sleep 25
route add -net 201.158.15.0 netmask 255.255.255.128 gw 20.26.29.2 metric... | Shell |
#!/bin/bash
killall openvpn
openvpn --rmtun --dev tap0
openvpn --rmtun --dev tap1
openvpn --rmtun --dev tap2
openvpn --rmtun --dev tap3
openvpn --rmtun --dev tap4
openvpn --rmtun --dev tap5
openvpn --rmtun --dev tap6
openvpn --rmtun --dev tap7
openvpn --rmtun --dev tap8
openvpn --rmtun --dev tap9
| Shell |
#!/bin/bash
DEV=$1
ping -I $DEV 201.158.15.3
ping -I $DEV 201.158.15.4
ping -I $DEV 201.158.15.5
ping -I $DEV 201.158.15.6
ping -I $DEV 201.158.15.7
ping -I $DEV 20.86.15.1
ping -I $DEV 20.86.15.2
ping -I $DEV 10.31.25.129
ping -I $DEV 10.31.25.130
ping -I $DEV 20.64.73.1
ping -I $DEV 20.64.73.2
ping -I $DEV 20.64.73... | Shell |
#!/bin/bash
sudo rndc-confgen -a -c /etc/bind/rndc.key
sudo chmod a+r /etc/bind/rndc.key
exit 0 ;
| Shell |
#!/bin/bash
if [ $# -ne 1 ]
then
echo "uso: ${0} <nombre_dns>"
exit 1
fi
DNS_NAME=${1}
if [ "$DNS_NAME" == "dns1" ]
then
HOST_IP="10.31.25.3"
elif [ "$DNS_NAME" == "dns2" ]
then
HOST_IP="10.31.25.194"
elif [ "$DNS_NAME" == "root" ]
then
HOST_IP="20.64.73.3"
else
echo "Debe ser uno de: 'dns1', 'dns2' o 'dnsr... | Shell |
#!/bin/bash
#export http_proxy="http://157.92.49.223:8080"
case "$1" in
#Web Server
web)
echo "Web Server"
apt-get install apache2
echo ""
echo ""
ps -ef | grep "apache2" | grep -v "grep" > /dev/null
if [ "$?" -eq "0" ]
then
echo "Servidor Web apache 2 está corriendo."
else
echo "Servidor Web apache 2... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The ... | Shell |
rm dce *.out *.3addr *.pre.c test my_test2 test-pre my_test2-pre
| Shell |
#!/usr/bin/env bash
make
# A script that builds your compiler.
| Shell |
#!/usr/bin/env bash
# A script that invokes your compiler.
# check number of parameters
if [ $# -eq 0 ]
then
echo "$0: need at least one parameter"
exit 1
fi
if [ $1 == "-backend=c" ]
then
python ./convert.py
exit 0
fi
if [ $1 == "-backend=cfg" ]
then
./dce -opt=none -backend=cfg
exit 0
fi
if [ $1 == "-... | Shell |
#!/usr/bin/env bash
# A script that invokes your compiler.
# check number of parameters
if [ $# -eq 0 ]
then
echo "$0: need at least one parameter"
exit 1
fi
if [ $1 == "-backend=c" ]
then
python ./convert.py
exit 0
fi
if [ $1 == "-backend=cfg" ]
then
./dce -opt=none -backend=cfg
exit 0
fi
if [ $1 == "-... | Shell |
make
gcc test.c -o test
gcc my_test2.c -o my_test2
./csc test.c > test.3addr
./dce -opt=pre -backend=3addr <test.3addr> test.pre.3addr
./csc my_test2.c > my_test2.3addr
./dce -opt=pre -backend=3addr <my_test2.3addr> my_test2.pre.3addr
python convert.py <test.pre.3addr > test.pre.c
python convert.py <my_test2.pre.3addr ... | Shell |
#!/usr/bin/env bash
make
# A script that builds your compiler.
| Shell |
#! /bin/sh
echo "making"
make
echo "mounting mmc1"
mount /mnt/mmc1
cp kernel/kernel.bin /mnt/mmc1
cp tasks/bin/*.bin /mnt/mmc1
umount /mnt/mmc1
echo "done mounting"
| Shell |
#! /bin/sh
echo "making"
make
echo "mounting mmc1"
mount /mnt/mmc1
cp kernel/kernel.bin /mnt/mmc1
cp tasks/bin/*.bin /mnt/mmc1
umount /mnt/mmc1
echo "done mounting"
| Shell |
#! /bin/sh
echo "making"
make
echo "mounting mmc1"
mount /mnt/mmc1
cp kernel/kernel.bin /mnt/mmc1
cp tasks/bin/*.bin /mnt/mmc1
umount /mnt/mmc1
echo "done mounting"
| Shell |
#! /bin/sh
echo "making"
make
echo "mounting mmc1"
mount /mnt/mmc1
cp kernel/kernel.bin /mnt/mmc1
cp tasks/bin/*.bin /mnt/mmc1
umount /mnt/mmc1
echo "done mounting"
| Shell |
#!/bin/sh
# This is for working around Android.mk's incapability to handle $* in CFLAGS,
# even with SECONDEXPNASION.
# LOCAL_CFLAGS:=-D_INIT=$*_init
f=${1##*/}
f=${f%%.*}
sed "s/\([ ]*\)\(_init\)\(([ ]*void\)/\1${f}_init\3/" $1
| Shell |
#!/bin/bash
#
# iptables-apply -- a safer way to update iptables remotely
#
# Copyright © Martin F. Krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
set -eu
PROGNAME="${0##*/}";
VERSION=1.0
TIMEOUT=10
DEFAULT_FILE=/etc/network/iptables
function blurb()
{
cat <<-_eof
$PROGNAME $... | Shell |
#! /bin/sh
#
set -e
VERSION=1.4.7
PREV_VERSION=1.4.6
TMPDIR=/tmp/ipt-release
IPTDIR="$TMPDIR/iptables-$VERSION"
PATCH="patch-iptables-$PREV_VERSION-$VERSION.bz2";
TARBALL="iptables-$VERSION.tar.bz2";
CHANGELOG="changes-iptables-$PREV_VERSION-$VERSION.txt";
mkdir -p "$TMPDIR"
git shortlog "v$PREV_VERSION..v$VERSION" ... | Shell |
#!/bin/bash
autoreconf -fi;
rm -Rf autom4te*.cache;
| 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 -x
tools_dir=$(dirname $0)
if [ "$tools_dir" == "." ]; then
tools_dir=$PWD
fi
cd ${tools_dir}/../docs
for file in *.{1,3}
do
rman -f html -r '%s.%s.html' $file > html/$file.html
done
cd -
| Shell |
#!/bin/bash -e
USAGE="
Usage: $0 [-n] [-v version]\n
-n : Create a new release. Tag the current repository revision as version\n
-v version: Specify the version. If not specified, the latest hg tag is used. \n
This option is required for a new release.\n
"
while getopts "nv:" flag
do
if [ "$flag"... | Shell |
#!/bin/sh -e
#
# This script creates a Mac package, that can be directly installed by
# Installer on Mac.
ver=$1
[ -z $ver ] && echo "Please specify package version." && exit
# $stage_dir is where we'll install our package files.
stage_dir=/tmp/pacparser_$RANDOM
sudo rm -rf /tmp/pacparser*
mkdir -p $stage_dir
if [ !... | Shell |
#!/bin/bash -ex
#
# $Id$
# Copyright 2009 Google Inc. All Rights Reserved.
# Author: manugarg@google.com (Manu Garg)
ARCH=$(uname)
if [ "$ARCH" == "Linux" ]; then
DL_EXT="so"
fi
if [ "$ARCH" == "Darwin" ]; then
DL_EXT="dylib"
fi
function install_stuff
{
if [ $(id -u) == 0 ]; then
set -e
find . -name "li... | Shell |
#!/bin/bash
pushd $(dirname $0) > /dev/null; script_dir=$PWD; popd > /dev/null
pactester=$script_dir/../src/pactester
pacfile=$script_dir/proxy.pac
testdata=$script_dir/testdata
library_path=$script_dir/../src
export DYLD_LIBRARY_PATH=$library_path
export LD_LIBRARY_PATH=$library_path
lib=$library_path/libpacparser.... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/bash
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell |
#!/bin/bash
echo "Generating ORMlite resources"
java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt
echo "done."
| Shell |
#!/bin/bash
clean_tempdir()
{
if [[ ! -z "$TEMPDIR" && -e "$TEMPDIR" ]]
then rm -rf "$TEMPDIR"
fi
}
crash()
{
echo "$1" 1>&2
clean_tempdir
exit 1
}
validFormat()
{
if [[ "$1" == "tar" || "$1" == "tar.bz2" || "$1" == "tar.gz" || "$1" == "zip" ]]
then return 0
fi
re... | Shell |
ls examples/good.*.bali | awk '{print "java -cp .:SaM-2.6.2.jar BaliCompiler ./" $1 " " $1 ".sam; echo " $1 "; echo "}' | sh
ls tests/*.bali | awk '{print "java -cp .:SaM-2.6.2.jar BaliCompiler ./" $1 " " $1 ".sam; echo " $1 "; echo "}' | sh
#ls examples/good.*.bali | awk '{print "java -jar BaliCompiler.jar ./" $1 " " ... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N parallel_sort #Replace with your job name
#$ -j y
#$ -o output.$JOB_NAME.$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N parallel_sort #Replace with your job name
#$ -j y
#$ -o output.$JOB_NAME.$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job... | Shell |
#!/usr/bin/sh
# for this to work you need to have the following installed:
# - Xcode: http://developer.apple.com/
# - git: http://help.github.com/mac-git-installation/
# - mercurial / hg: http://mercurial.berkwood.com/
# pull three20
cd ..
git clone git://github.com/facebook/three20.git
# pull mailcore
hg clone http:... | Shell |
cd /cygdrive/c/workspace/AndEnginePhysicsBox2DExtension/
/cygdrive/c/workspace/sdk/android-ndk-r6/ndk-build | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N mult #Replace with your job name
#$ -j y
#$ -o output.$JOB_NAME.$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run ... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N mult #Replace with your job name
#$ -j y
#$ -o output.$JOB_NAME.$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run ... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N mm #Replace with your job name
#$ -j y
#$ -o $JOB_NAME.o$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run
#$ -M t... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N mm #Replace with your job name
#$ -j y
#$ -o $JOB_NAME.o$JOB_ID
#$ -pe 12way 12 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:30:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run
#$ -M t... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#/bin/sh
#Hi my naem is Kirt and I liek anime
ulimit -Sc unlimited
while [ 1 ] ; do
if [ -f .stopserver ] ; then
echo server marked down >> servlog.txt
else
echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt
./map-server
fi
sleep 5
done
| Shell |
#/bin/sh
#Hi my naem is Kirt and I liek anime
ulimit -Sc unlimited
while [ 3 ] ; do
if [ -f .stopserver3 ] ; then
echo server marked down >> servlog.txt
else
echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt
./char-server
fi
sleep 5
done
| Shell |
#!/bin/bash
case "$1" in
map|char|login)
# Check for SQL postfix
if [ "$2" = "sql" ]; then
SERVER="$1-server_sql"
else
SERVER="$1-server"
fi
;;
*|""|help)
echo "Usage 1: ${0##*/} [server-type] [txt/sql]"
echo Server type can be map, login, or char. Examples:
echo "$ ./${0##*/} map"
echo "$ .... | Shell |
#!/bin/bash
case "$1" in
map|char|login)
# Check for SQL postfix
if [ "$2" = "sql" ]; then
SERVER="$1-server_sql"
else
SERVER="$1-server"
fi
;;
*|""|help)
echo "Usage 1: ${0##*/} [server-type] [txt/sql]"
echo Server type can be map, login, or char. Examples:
echo "$ ./${0##*/} map"
echo "$ .... | Shell |
#!/bin/sh
# athena starting script by rowla
# modified by shazeya@syafi.com (NL101541)
PATH=./:$PATH
L_SRV=login-server_sql
C_SRV=char-server_sql
M_SRV=map-server_sql
print_start() {
# more << EOF
echo "Athena Starting..."
echo " (c) 2003 Athena Project"
echo " modified by shazeya@syafi.co... | Shell |
#!/bin/bash
# modified by shazeya@syafi.com (NL130240)
./athena-start start
sleep 30
while [ true ]; do
if [ " 0" = "$(ps | grep -e log | wc -l)" ] ||
# if [ " 0" = "$(ps | grep -e login | wc -l)" ] ||
[ " 0" = "$(ps | grep -e char | wc -l)" ] ||
[ " 0" = "$(ps | grep -e map ... | Shell |
#/bin/sh
#Hi my naem is Kirt and I liek anime
ulimit -Sc unlimited
while [ 2 ] ; do
if [ -f .stopserver2 ] ; then
echo server marked down >> servlog.txt
else
echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt
./login-server
fi
sleep 5
done
| Shell |
#!/bin/bash
# modified by shazeya@syafi.com (NL130240)
./athena-start start
sleep 30
while [ true ]; do
if [ " 0" = "$(ps | grep -e log | wc -l)" ] ||
# if [ " 0" = "$(ps | grep -e login | wc -l)" ] ||
[ " 0" = "$(ps | grep -e char | wc -l)" ] ||
[ " 0" = "$(ps | grep -e map ... | Shell |
#!/bin/sh
# athena starting script by rowla
# modified by shazeya@syafi.com (NL101541)
PATH=./:$PATH
L_SRV=login-server_sql
C_SRV=char-server_sql
M_SRV=map-server_sql
print_start() {
# more << EOF
echo "Athena Starting..."
echo " (c) 2003 Athena Project"
echo " modified by shazeya@syafi.co... | Shell |
#!/system/bin/sh
DIR=/data/data/org.sshtunnel
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
" >$DIR/redsocks.conf
echo "
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = socks5;... | Shell |
#!/system/bin/sh
DIR=/data/data/org.sshtunnel
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
" >$DIR/redsocks.conf
echo "
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-re... | Shell |
#!/usr/bin/env bash
echo ../src/csc simple.c > simple.3addr
../src/csc simple.c > simple.3addr
echo python PA2.py < simple.3addr > simple.3addr.c
python PA2.py < simple.3addr > simple.3addr.c
echo gcc simple.3addr.c -o simple
gcc simple.3addr.c -o simple
echo ./simple
./simple
| Shell |
#!/usr/bin/env bash
echo ../src/csc simple.c > simple.3addr
../src/csc simple.c > simple.3addr
echo python PA2.py < simple.3addr > simple.3addr.c
python PA2.py < simple.3addr > simple.3addr.c
echo gcc simple.3addr.c -o simple
gcc simple.3addr.c -o simple
echo ./simple
./simple
| Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N jobname #Replace with your job name
#$ -j y
#$ -o $JOB_NAME.o$JOB_ID
#$ -pe 1way 96 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:03:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run
#$ ... | Shell |
#!/bin/bash
#$ -V
#$ -cwd
#$ -N jobname #Replace with your job name
#$ -j y
#$ -o $JOB_NAME.o$JOB_ID
#$ -pe 1way 96 #read explanation below
#$ -q development #queue name - do not change this
#$ -l h_rt=00:03:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run
#$ ... | Shell |
#!/bin/bash -x
python setup.py build_i18n -m
python setup.py build
[ -a /usr/bin/dpkg ] && INSTALL_LAYOUT='--install-layout deb'
sudo python setup.py install $INSTALL_LAYOUT --record record.log
| Shell |
#!/bin/sh
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# FFDec requires Oracle Java 7
# Look for java in these directories
LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
#Created by Petris 2009 -> Many thanks!
# Required version
REQ_JVER1=1
REQ_JVER2=7
REQ_JVER3=0
REQ_JVER4=0
JAR_FILE=ffdec.jar
MEMORY=1024m
check_java_version () {
JVER1=`echo $JAVA_VERSI... | 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
#######################################################
curdir=`pwd`
workdir="/tmp/regtest"
copydir="/usr/src/linux/drivers/firmware/"
mkfs_vfat="/usr/sbin/mkfs.vfat"
efsdir="/home/len/prg/efsl/efsl-0.2/"
conffile=$efsdir/conf/config.h
RANDMAX=32767
sizestart=10
sizestepmax=1500
sizestop=5000
... | Shell |
#!/bin/sh
#######################################################
curdir=`pwd`
workdir="/tmp/regtest"
copydir="/usr/src/linux/drivers/firmware/"
mkfs_vfat="/usr/sbin/mkfs.vfat"
efsdir="/home/len/prg/efsl/efsl-0.2/"
conffile=$efsdir/conf/config.h
RANDMAX=32767
sizestart=10
sizestepmax=1500
sizestop=5000
... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.