code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v1.5 by Ferry Hendrikx, (c) 2008-2009
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# Pr... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v1.5 by Ferry Hendrikx, (c) 2008-2009
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# Pr... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v2.0.0 by Ferry Hendrikx, (c) 2008-2011
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# ... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v2.0.0 by Ferry Hendrikx, (c) 2008-2011
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# ... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v2.0.1 by Ferry Hendrikx, (c) 2008-2013
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# ... | Shell |
#!/bin/sh
######################################################################
#
# WANsim v2.0.1 by Ferry Hendrikx, (c) 2008-2013
#
# chkconfig: 2345 10 60
# description: WANsim provides an emulated WAN on your Linux server
######################################################################
### BEGIN INIT INFO
# ... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/bash
######################################################################
#
# WANsim install script v1.1 by Ferry Hendrikx, (c) 2009
#
# An install script for non-Debian or source code users of WANsim.
#
# This script is based on the Debian install script, however it has
# not been extensively tested.
#
#####... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008
# postrm script
######################################################################
set -e
# remove WANsim init.d script
update-rc.d -f wansim remove >/dev/null || exit $?
# remove WANsim user f... | Shell |
#!/bin/sh
######################################################################
# WANsim by Ferry Hendrikx, (c) 2008-2009
# postinst script
######################################################################
set -e
# add WANsim user
adduser --system --group --shell /usr/sbin/wansimsetup --home /var/lib/wansim wa... | Shell |
#!/bin/sh
javac -target 1.5 -source 1.5 testlibs/*.java
javac -cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 listeners/*.java | Shell |
#!/bin/bash
basedir=$PWD/test
pybot --loglevel DEBUG --log none --report none --outputdir $basedir $basedir/example.html
python $basedir/../statuschecker.py $basedir/output.xml
rebot $basedir/output.xml
| Shell |
#!/bin/bash
dirname=robotframework-c-example
zipname=$dirname-$(date +%Y%m%d).zip
files="README.txt login.c LoginLibrary.py LoginTests.tsv Makefile"
rm -rf $dirname $zipname
mkdir $dirname
echo Copying...
for file in $files; do
cp -v $file $dirname
done
echo Zipping...
zip -r $zipname $dirname
rm -rf $dirname
ech... | Shell |
#!/bin/bash
ROBOT_SYSLOG_FILE=tmp/syslog.txt python src/robot/runner.py -P atest/testresources/testlibs -P tmp -L debug -d tmp $*
| Shell |
#!/bin/bash
OUTPUTDIR=/opt/cruisecontrol/logs/robot-core
BACKUPDIR=$OUTPUTDIR/old/$(date +%Y%m%d-%H%M%S)
OUT=$OUTPUTDIR/output.txt
cd /opt/cruisecontrol/projects/robot-core
rm -rf atest/results
echo 'Running Robot Acceptance Tests' >$OUT
echo -n 'Date: ' >>$OUT
date -R >>$OUT
echo >>$OUT
echo '1) svn update' >>$OUT... | Shell |
#!/bin/bash
pybot --outputdir results --exclude parallel atest/ | Shell |
#!/bin/bash
python src/robot/rebot.py $1 >/dev/null &
#/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024m -Xss1024k -classpath /home/jth/opt/jython2.5.1/jython.jar: -Dpython.home=/home/jth/opt/jython2.5.1 -Dpython.executable=/home/jth/opt/jython2.5.1/jython org.python.util.jython src/robot/rebot.py $1 >/dev/null &
rebotpid... | Shell |
#!/bin/bash
cd $1
rm *.xml *html
unzip outputs.zip
command="rebot --name Robot_Framework_Acceptance_Tests --splitoutputs 1 output.xml"
echo "Executing command: " $command
$command
exit $?
| Shell |
ROOTDIR=`dirname $0`/..
LIBPATH=$ROOTDIR/lib
SRCPATH=$ROOTDIR/src
TESTDATA=$ROOTDIR/atest/vacalc
CP=$LIBPATH/robotframework-2.5.4.1.jar:$LIBPATH/swinglibrary-1.1.1.jar:$ROOTDIR/bin/
CLASSPATH=$CP java org.robotframework.RobotFramework -P $SRCPATH -P $ROOTDIR/atest/libraries $* --outputdir $ROOTDIR/results --critical re... | Shell |
#!/bin/bash
#downloads the project dependencies to lib directory
wget -P lib http://robotframework.googlecode.com/files/robotframework-2.5.4.1.jar
wget -P lib http://robotframework-swinglibrary.googlecode.com/files/swinglibrary-1.1.1.jar
| Shell |
java -cp lib/robotframework-2.5.4.1.jar:bin/ -Dpython.path=src org.robotframework.vacalc.VacalcRunner
| Shell |
CLASSPATH=lib/robotframework-2.5.3.jar javac -d bin src/org/robotframework/vacalc/*java
| Shell |
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment
export NDK=/cygdrive/d/Code/android/android-ndk-r3
HOST_TYPE=windows
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib
export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/build/preb... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
. $SCRIPTDIR/android-gcc-setup.sh
cd $SCRIPTDIR/..
if [ ! -d "deps" ]
then
mkdir -p deps
fi
cd deps
DEPSDIR=$PWD
JNIDIR=$DEPSDIR/../jni
if [ ! -d "$JNIDIR/pdfview2/lib" ]
then
mkdir -p $JNIDIR/pdfview2/lib
fi
if [ ! -d "$JNIDIR/pdfview2/include" ]
then
mkdir -p $JNIDIR/pd... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-snapshot-20111207.tar.gz
MUPDF=mupdf
#MUPDF_FILE=mupdf-0.9-source.tar.gz
#MUPDF=mupdf-0.9
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../de... | Shell |
SQLDB=game.sqlite;
rm -f $SQLDB
cat sqllib/install.sql | sqlite3 $SQLDB
cat sqllib/test.sql | sqlite3 $SQLDB
| Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/bin/bash
recode latin1..utf-8 </usr/share/i2e/i2e.dict >i2e.dict.utf
gcc -g `pkg-config --cflags --libs glib-2.0` i2e2dict.c -o i2e2dict
./i2e2dict
rm i2e.dict.utf
echo "Restart StarDict now!"
| Shell |
#!/bin/sh
# Create images for StarDict, like application icon, tray icons, Acrobat plugin icons
# StarDict icons may be created from a single multilayer image.
# Most layers are used only for specific icon types, but images of two books are present
# on all icons. This script deletes layers, resize image and change co... | Shell |
#!/bin/bash
gcc `pkg-config --cflags --libs glib-2.0` ooo2dict.c -o ooo2dict
echo |./ooo2dict 2>/dev/null
recode latin1..utf-8 </usr/share/myspell/dicts/th_de_DE_v2.dat >th_de_DE_v2.dat.utf
echo "OpenThesaurus.de_German" |./ooo2dict th_de_DE_v2.dat.utf 2>/dev/null
recode latin1..utf-8 </usr/share/myspell/dicts/th_it_... | Shell |
#!/bin/bash
# dictd2dic conversion script
#
# Usage: dictd2dic.sh mueller7
#
cd /usr/share/dictd
if test -e $1.dict.dz; then dictunzip $1.dict.dz; fi
if test -e $1.dict; then
echo "Please wait..."
touch $1.idxhead
echo "StarDict's dict ifo file" >dictd_www.mova.org_$1.ifo
echo version=2.4.2 >>dictd_www.mova.org_$1.ifo... | Shell |
#!/bin/bash
gcc exc2i2e.c -o exc2i2e
rename /usr/share/stardict/dic/i2e /usr/share/stardict/dic/temp /usr/share/stardict/dic/i2e.* 2>/dev/null
rename /usr/share/stardict/dic/e2i /usr/share/stardict/dic/temp2 /usr/share/stardict/dic/e2i.* 2>/dev/null
./exc2i2e >t
/usr/lib/stardict/i2e2dict t
rm t
rename /usr/share/sta... | Shell |
#!/bin/bash
gcc `pkg-config --cflags --libs glib-2.0` myspell2dic.c -o myspell2dic
echo "Please wait..."
recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.dic >es_ES.dic.utf
recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.aff >es_ES.aff.utf
echo |./myspell2dic es_ES.dic.utf es_ES.aff.utf 2>/dev/null
recode ko... | Shell |
#!/bin/sh
echo "Boostrapping StarDict tools..."
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have libtool installed to compile Stardict";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile Stardict";
ech... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/bin/sh
# postrm script for stardict
set -e
case "$1" in
remove)
# if [ -x /usr/bin/scrollkeeper-update ]; then
# /usr/bin/scrollkeeper-update -q
# fi
;;
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'"... | Shell |
#!/bin/sh
# postinst script for stardict
set -e
case "$1" in
configure)
# if [ -e /etc/gconf/schemas/stardict.schemas ]; then
# HOME=/root \
# GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
# /usr/bin/gconftool-2 \
# --makefile-install-rule /etc/gconf/schemas/stardict.schemas ... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
echo "Boostrapping StarDict dictionary..."
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="stardict"
REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.ac \
&& test -f $srcdir/ChangeLog \
&& test -d $srcdir/src) || {
echo -n ... | Shell |
#!/bin/sh
echo "Bootstrapping StarDict root..."
# (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
# echo;
# echo "You must have libtool installed to compile StarDict";
# echo;
# exit;
# }
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile Sta... | Shell |
#!/bin/sh
echo "Boostrapping common lib..."
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have libtool installed to compile common lib";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile common lib";
ech... | Shell |
#!/bin/sh
# Copyright 2014 Google Inc. All rights reserved.
#
# 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 applica... | Shell |
#!/usr/bin/bash
#This batch file changes CR/LF line endings to pure LF line endings to be Unix-compliant.
#It relies on crlf.py, taken from the Windows Python 2.5 distribution.
python crlf.py *.c *.h *.py Makefile README common/*.c
python crlf.py include/*.h include/devices/*.h include/devices/*.pl
python crlf.py unit... | 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/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
exec_prefix_set=no
usage="\
Usage: libmpq-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test "$#" -eq "0"; then
echo "${usage}" 1>&2
exit 1
fi
while test "$#" -gt "0"; do
case "$1" in
-*=*) optarg=`echo "$1" ... | Shell |
#!/bin/sh
#
echo "Generating build information using aclocal, autoheader, automake and autoconf"
echo "This may take a while ..."
# Touch the timestamps on all the files since CVS messes them up
directory=`dirname $0`
touch $directory/configure.ac
# Regenerate configuration files
libtoolize --copy
aclocal
autoheader
... | Shell |
#! /bin/bash
while true
do
PID1=$(pidof oregon-core)
if (( PID1 < 1 ))
then
/etc/init.d/oregon start-core
fi
PID2=$(pidof oregon-realm)
if (( PID2 < 1 ))
then
/etc/init.d/oregon start-realm
fi
sleep 10
done
| Shell |
#! /bin/bash
OREGON_DIR='/opt/oregon/';
RETVAL=0;
start(){
screen -AmdS oregon_restarter ${OREGON_DIR}restarter
}
stop(){
screen -dr oregon_restarter -X "quit"
}
start-realm(){
screen -AmdS oregon_realm ${OREGON_DIR}bin/oregon-realm -c ${OREGON_DIR}etc/oregonrealm.conf
}
stop-realm(){
screen -dr oregon_realm -X... | Shell |
chmod +x oregon restarter
cp oregon /etc/init.d/
cp restarter /opt/oregon/
| Shell |
#!/bin/bash
# Trinity Server
# autorestart Script
while :
do
echo "TrinityCore daemon restarted"
echo `date` >> crash.log &
./mangosd | tail -n 20 >> crash.log
echo " " >> crash.log &
pid=`ps ax | awk '($5 ~ /trinitycore/) { print $1 }'`
wait $pid
echo `date` ", TrinityCore daemon crashed and restarted.... | Shell |
#!/bin/bash
# Massive Network Game Object Server
# Monitoring Script
pid=`ps ax | awk '($5 ~ /mangos-worldd/) { print $1 }'`
cpu=`top -b -n 1 -p $pid | awk '($12 ~ /mangos-worldd/) { print $9 }'`
#echo $pid
#echo $cpu
intcpu=${cpu%.*}
#echo $intcpu
if [ "$intcpu" -gt "95" ]
then
kill -9 $pid
echo "Killed MaNGOS for ... | Shell |
#!/bin/bash
adb shell am instrument -w cz.romario.opensudoku.test/android.test.InstrumentationTestRunner
# run single test:
# adb shell am instrument -w -e class cz.romario.opensudoku.game.CellNoteTest cz.romario.opensudoku/android.test.InstrumentationTestRunner
exit 0
| Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | 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 |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | 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/sh
echo "============================================"
echo "= map server status checker... ="
echo "============================================"
./map-server.exe &
sleep 40
while [ 0 ]
do
pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' `
if [ "$pcp... | Shell |
#!/bin/bash
athena_dir="/home/athena/658/"
while [ true ] ; do
if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then
#echo `date` " -- map-server crashed - restarting"
echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log
killall -9 map-ser... | 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
athena_dir="/home/athena/658/"
while [ true ] ; do
if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then
#echo `date` " -- map-server crashed - restarting"
echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log
killall -9 map-ser... | 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
echo "============================================"
echo "= map server status checker... ="
echo "============================================"
./map-server.exe &
sleep 40
while [ 0 ]
do
pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' `
if [ "$pcp... | 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 |
#!/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/sh
# Start GUI Vim on a copy of the tutor file.
# Usage: gvimtutor [xx]
# See vimtutor for usage.
exec `dirname $0`/vimtutor -g "$@"
| Shell |
#! /bin/sh
# Start Vim on a copy of the tutor file.
# Usage: vimtutor [-g] [xx]
# Where optional argument -g starts vimtutor in gvim (GUI) instead of vim.
# and xx is a language code like "es" or "nl".
# When an argument is given, it tries loading that tutor.
# When this fails or no argument was given, it tries using... | Shell |
#! /bin/sh
# installman.sh --- install or uninstall manpages for Vim
#
# arguments:
# 1 what: "install", "uninstall" or "xxd"
# 2 target directory e.g., "/usr/local/man/it/man1"
# 3 language addition e.g., "" or "-it"
# 4 vim location as used in manual pages e.g., "/usr/local/share/vim"
# 5 runtime dir ... | Shell |
#! /bin/sh
#
# which.sh -- find where an executable is located. It's here because the
# "which" command is not supported everywhere. Used by Makefile.
IFS=":"
for ac_dir in $PATH; do
if test -f "$ac_dir/$1"; then
echo "$ac_dir/$1"
break
fi
done
| Shell |
#! /bin/sh
#
# link.sh -- try linking Vim with different sets of libraries, finding the
# minimal set for fastest startup. The problem is that configure adds a few
# libraries when they exist, but this doesn't mean they are needed for Vim.
#
# Author: Bram Moolenaar
# Last change: 2010 Nov 03
# License: Publi... | Shell |
#! /bin/sh
#
# osdef.sh -- copy osdef.h.in to osdef.h while removing declarations
# found in the system header files. Caution: weird sed magic going on here.
# Warnings are printed if sed did not survive.
#
# (C) Michael Schroeder, Juergen Weigert
#
# osdef.h.in has been split into osdef1.h.in and osdef2.h.in, because ... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
... | Shell |
#! /bin/sh
#
# pathdef.sh: adjust pathdef.c for auto/link.sed, if it exists
#
if test -s auto/link.sed; then
cp auto/pathdef.c auto/pathdef.tmp
sed -f auto/link.sed <auto/pathdef.tmp >auto/pathdef.c
rm -f auto/pathdef.tmp
fi
# vim:set sw=2 et:
| Shell |
#!/bin/sh
# toolcheck -- check for tools that have severe bugs. Good that all the buggy
# tools identify by version numbers. This is the spirit of GNU :-)
#
# 24.7.95 jw.
retval=0
reply="`sh -version -c exit 2>&1 < /dev/null`"
case "$reply" in
GNU*1.14.3*)
echo "- sh is '$reply'";
echo " CAUTION: This she... | Shell |
#! /bin/sh
# installml.sh --- install or uninstall manpage links for Vim
#
# arguments:
# 1 what: "install" or "uninstall"
# 2 also do GUI pages: "yes" or ""
# 3 target directory e.g., "/usr/local/man/it/man1"
# 4 vim exe name e.g., "vim"
# 5 vimdiff exe name e.g., "vimdiff"
# 6 evim exe name ... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.