code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year: $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in
... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year: $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in
... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year: $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in
... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year: $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in
... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year: $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in
... | Shell |
#!/bin/sh
# variable d'environnement EXPAT
export XPDIR="/home/uu/app/expat/expat-2.0.1" | Shell |
#!/bin/sh
# variable d'environnement EXPAT
XPDIR="/home/uu/app/expat/expat-2.0.1"
export XPDIR
| Shell |
#!/bin/sh
# variable d'environnement EXPAT
export XPDIR="/home/uu/app/expat/expat-2.0.1" | Shell |
#!/bin/sh
# variable d'environnement EXPAT
export XPDIR="/home/uu/app/expat/expat-2.0.1"export XPDIR="/home/uu/app/expat/expat-2.0.1" | Shell |
#!/bin/sh
# variable d'environnement EXPAT
export XPDIR="/home/uu/app/expat/expat-2.0.1"export XPDIR="/home/uu/app/expat/expat-2.0.1" | Shell |
#!/bin/sh
# variable d'environnement EXPAT
XPDIR="/home/uu/app/expat/expat-2.0.1"
export XPDIR
| Shell |
#!/bin/sh
rosrun ocl deployer-gnulinux -s deploy.ops -linfo
| Shell |
#!/bin/sh
rosrun ocl deployer-gnulinux -s deploy.ops -linfo
| Shell |
echo "This script will:
1) Install modules needed to run web2py on Fedora and CentOS/RHEL
2) Install Python 2.6 to /opt and recompile wsgi if not provided
2) Install web2py in /opt/web-apps/
3) Configure SELinux and iptables
5) Create a self signed ssl certificate
6) Setup web2py with mod_wsgi
7) Create virtualhost ent... | Shell |
# install virtualenv
easy_install virtualenv
python virtualenv.py w2env
# install missing modules
w2env/bin/easy_install -U pysqlite hashlib
# donwload web2py and unpack
wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
cd web2py
# start web2py using command-l... | Shell |
#
# Author: Christopher Steel
# Organization: Voice of Access
# Date: 2010-11-24
# License: Same as Web2py, MIT / GNU
# Email: Christopher DOT Steel AT Voice of Access DOT org
#
# This script will :
# download and install virtualenv
# start a virtual environment
# move into the virtual environment
# download a... | Shell |
#!/bin/bash
# the script should be run
# from WEB2PY root directory
prog=`basename $0`
cd `pwd`
chmod +x $prog
function web2py_start {
nohup ./$prog -a "<recycle>" 2>/dev/null &
pid=`pgrep $prog | tail -1`
if [ $pid -ne $$ ]
then
echo "WEB2PY has been started."
fi
}
function web2py_stop {
kill -15 ... | Shell |
chown -R nobody:nobody *.py
chown -R nobody:nobody gluon
chown -R nobody:nobody scripts
chown -R nobody:nobody applications/*/modules/
chown -R nobody:nobody applications/*/models/
chown -R nobody:nobody applications/*/controllers/
chown -R nobody:nobody applications/*/views/
chown -R nobody:nobody applications/*/stati... | Shell |
#!/bin/bash
#
# /etc/rc.d/init.d/web2pyd
#
# Starts the Web2py Daemon on Fedora (Red Hat Linux)
#
# To execute automatically at startup
#
# sudo chkconfig --add web2pyd
#
# chkconfig: 2345 90 10
# description: Web2py Daemon
# processname: web2pyd
# pidfile: /var/lock/subsys/web2pyd
source /etc/rc.d/init.d/fun... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# startup script for Ubuntu and Debian Linux servers
#
# To use this file
# cp ubuntu.sh /etc/init.d/web2py
#
# To automatitcally start at reboot
# sudo update-rc.d web2py defaults
#
# Provides: web2py
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remo... | Shell |
echo "This script will:
1) install all modules need to run web2py on Ubuntu/Debian
2) install web2py in /home/www-data/
3) create a self signed sll certificate
4) setup web2py with mod_wsgi
5) overwrite /etc/apache2/sites-available/default
6) restart apache.
You may want to read this cript before running it.
Press a ... | Shell |
#!/bin/bash
#
# update-web2py.sh
# 2009-12-16
#
# install in web2py/.. or web2py/ or web2py/scripts as update-web2py.sh
# make executable: chmod +x web2py.sh
#
# save a snapshot of current web2py/ as web2py/../web2py-version.zip
# download the current stable version of web2py
# unzip downloaded version over web... | Shell |
#!/bin/sh
OS='windows'
ANDROIDSDK='android-8'
#PROGDIR=`dirname $0`
PROGDIR=`pwd`
echo $PROGDIR
# PATH=/cygdrive/c/developer/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/:$PATH
# mount -o remount,rw -t vfat /dev/block//vold/179:0 /sdcard
#ARMEABIGCC=$PROGDIR/toolchains/arm-linux-androide... | Shell |
#!/bin/sh
#OS='windows'
#ANDROIDSDK='android-8'
#PROGDIR=`dirname $0`
#PROGDIR=`pwd`
#echo $PROGDIR
# PATH=/cygdrive/c/developer/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/:$PATH
# mount -o remount,rw -t vfat /dev/block//vold/179:0 /sdcard
#ARMEABIGCC=$PROGDIR/toolchains/arm-linux-andr... | Shell |
#!/bin/sh
# This script is used by the MAINTAINER to generate composite stylesheets for
# the base Zen theme from the stylesheets in the STARTERKIT.
FIXED=( \
html-reset \
wireframes \
layout-fixed \
page-backgrounds \
tabs \
messages \
pages \
block-editing \
blocks \
navigation \
views-styles ... | Shell |
#!/bin/sh
# This script is used by the MAINTAINER to generate composite stylesheets for
# the base Zen theme from the stylesheets in the STARTERKIT.
FIXED=( \
html-reset \
wireframes \
layout-fixed \
page-backgrounds \
tabs \
messages \
pages \
block-editing \
blocks \
navigation \
views-styles ... | 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
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
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
# Copyright 2005-2010, Cake Software Foundation, Inc.
#
# Licensed under ... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
# Copyright 2005-2010, Cake Software Foundation, Inc.
#
# Licensed under ... | Shell |
#!/dis/sh
pctl forkns
builtin cd $"1
args:=`{ls -drp [0-9]*}
*=$args
diff index.txt $1/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1current:\2:/g'
while {! ~ $#args 0 1} {
*=$args
diff $1/index.txt $2/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1:\2:/g'
args=${tl $args}
}
| Shell |
#!/dis/sh
load std
if{~ $#* 0}(
{pattern=.}
{pattern=$1}
)
for i in /mnt/acme/[0-9]* {
if{ftest -d $i}{
(file tagline)=`{cat $i/tag}
# must match our pattern if given, must be a clean window,
# and must not be an Errors window, mail, or win.
if {and (
{echo $file | grep $pattern >/dev/null >[2=1]}
{... | Shell |
#!/dis/sh
cwd = `pwd
cd /mnt/acme/$acmewin
{
echo -n 'addr=dot' >ctl
(a b) := `cat
echo -n '/^[^\-<>].*\n/' > addr
echo -n 'dot=addr' > ctl
echo -n show > ctl
(f1 cmd f2) := `{getline data}
(f1 l1) = ${split ':' $f1}
(f2 l2) = ${split ':' $f2}
f1 = `{cleanname -d $cwd $f1}
f2 = `{cleanname -d $cwd $f2}
if ... | Shell |
#!/dis/sh
if {~ $#* 0} {
echo usage: findwin filename
exit
}
file = $1
< /mnt/acme/index getlines {
(w x y z zz f rest) := ${split ' ' $line }
if {~ $f $file} {echo $w; exit}
}
| Shell |
#!/dis/sh
page=`{pwd}^/$1
>/mnt/acme/$acmewin/ctl {
echo name $page
echo clean
echo get
}
| Shell |
#!/dis/sh
cwd = `pwd
cd /mnt/acme/$acmewin
{
echo -n 'addr=dot' >ctl
(a b) := `cat
echo -n '-/^[^\-<>].*\n/' > addr
echo -n 'dot=addr' > ctl
echo -n show > ctl
(f1 cmd f2) := `{getline data}
(f1 l1) = ${split ':' $f1}
(f2 l2) = ${split ':' $f2}
f1 = `{cleanname -d $cwd $f1}
f2 = `{cleanname -d $cwd $f2}
if... | Shell |
#!/dis/sh
load std
id := `{cat /mnt/acme/new/ctl}
wdir := /mnt/acme/^${hd $id}
cmd := $*
if {~ $#cmd 0} {
cmd = cat
}
echo 'name '^`{pwd}^/-^`{basename ${hd $cmd}} >$wdir/ctl
$cmd >$wdir/body >[2=1]
echo clean >$wdir/ctl
| Shell |
#!/dis/sh
cwd = `pwd
cd /mnt/acme/$acmewin
{
echo -n 'addr=dot' > ctl
(f1 cmd f2) := `{getline data}
(f1 l1) = ${split ':' $f1}
(f2 l2) = ${split ':' $f2}
f1 = `{cleanname -d $cwd $f1}
f2 = `{cleanname -d $cwd $f2}
a := `{findwin $f1}
if {~ $#a 0} {exit}
b := `{findwin $f2}
if {~ $#b 0} {exit}
cp /mnt/acme/... | Shell |
#!/dis/sh
Feedkey
# could do secstore
(a b) := `{getkey 'proto=pass service=logon'}
crypt -d -k $b < /usr/$a/keyring/factotum.cr | getlines {echo $line} > /mnt/factotum/ctl
| Shell |
#!/dis/sh
# http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/play/blackbox.el?view=markup
load std
load expr
fn msg{
echo blackbox: $*
}
# rand(mod): a random number between 0 and mod-1
subfn rand{
mod := $1
r := `{read 1 </dev/random | sum /fd/0}
result = ${expr 16r${hd $r} $mod %}
}
# a random point within ... | Shell |
#!/dis/sh
load expr
name=$%
current=`{basename $name}
currentx=`{grep -n '^'$current'([ ]|$)' index | sed 's/:.*//'}
pagex=${expr $currentx 1 +}
page=`{sed -n $pagex^p index}
if{~ $#page 0}{
echo no such page
exit 0
}
Slide $page
| Shell |
#!/dis/sh
# http://groups.google.com/group/comp.os.plan9/msg/06552626b83aad08
load std
args := $*
id := `{findwin '*' ^ ${hd $args} ^ '*' }
if {~ $#id 0} {raise 'no match for pattern'}
if {! ~ $#id 1} {raise 'ambiguous pattern'}
if {~ `{wc -w /mnt/acme/$id/rdsel} 0} {raise 'no selection'}
sh /mnt/acme/$id/rdsel... | Shell |
#!/dis/sh
os $emuroot ^ /Acme.exe -c0 '-pheap=128M' '-pmain=128M' /dis/sh.dis -l -c 'run /lib/sh/profile; styxlisten -A ''tcp!*!6666'' export /prog; run $home/lib/profile' &
echo Local mount -A tcp!localhost!6666 /prog
echo adeb
| Shell |
#!/dis/sh
if {! ~ $#* 2} {
echo usage: highlight filename lineno
exit
}
file = $1
lineno = $2
a := `{findwin $file}
if {! ~ $#a 0} {
cd /mnt/acme/$a
<> addr {
echo -n $lineno > addr
echo 'dot=addr' > ctl
echo show > ctl
}
}{
plumb $file:$lineno
}
exit
| Shell |
#!/dis/sh
load expr
name=$%
current=`{basename $name}
currentx=`{grep -n '^'$current'([ ]|$)' index | sed 's/:.*//'}
pagex=${expr $currentx 1 -}
if{~ $pagex 0}{
echo no such page
exit 0
}
page=`{sed -n $pagex^p index}
Slide $page
| Shell |
#!/dis/sh.dis -n
load std
or {ftest -e /net/dns} {ftest -e /env/emuhost} {ndb/dns}
or {ftest -e /net/cs} {ndb/cs}
or {ftest -f /keydb/signerkey} {echo 'auth: need to use createsignerkey(8)' >[1=2]; exit nosignerkey}
or {ftest -f /keydb/keys} {echo 'auth: need to create /keydb/keys' >[1=2]; exit nokeys}
and {auth/keyfs}... | Shell |
#!/dis/sh.dis -n
load std
or {ftest -e /net/dns} {ftest -e /env/emuhost} {ndb/dns}
or {ftest -e /net/cs} {ndb/cs}
svc/registry
svc/styx
| Shell |
#!/dis/sh.dis -n
load std
listen -v 'tcp!*!styx' {export /&} # -n?
#and {ftest -d /net/il} {listen -v 'il!*!styx' {export /&}} # -n?
| Shell |
#!/dis/sh.dis -n
load std
listen 'tcp!*!rstyx' {runas $user auxi/rstyxd&}
#and {ftest -d /net/il} {listen 'il!*!rstyx' {runas $user auxi/rstyxd&}}
| Shell |
#!/dis/sh.dis -n
load std
or {ftest -f /mnt/registry/new} {
db=()
and {ftest -f /lib/ndb/registry} {db=(-f /lib/ndb/registry)}
mount -A -c {ndb/registry $db} /mnt/registry
}
listen -v 'tcp!*!registry' {export /mnt/registry&} # -n?
| Shell |
#!/dis/sh
pctl forkns
builtin cd $"1
args:=`{ls -drp [0-9]*}
*=$args
diff index.txt $1/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1current:\2:/g'
while {! ~ $#args 0 1} {
*=$args
diff $1/index.txt $2/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1:\2:/g'
args=${tl $args}
}
| Shell |
adict [-d dictionary] [pattern]
adict with no arguments opens a window that displays all the currently
available dictionaries. To select a dictionary, click the right mouse button on
its name.
-d dictionary Opens a window that interfaces to the specified dictionary. To
look up a word, enter it in the window, and ... | Shell |
#!/dis/sh
load std
# codepage generators
GENERATORS=(
gencp932
genbig5
gengb2312
genjisx0201kana
genjisx0208-1997
genjisx0212
ibm437
ibm850
ibm866
iso8859-1
iso8859-10
iso8859-2
iso8859-3
iso8859-4
iso8859-5
iso8859-6
iso8859-7
iso8859-8
iso8859-9
koi8-r
windows-1250
windows-1251
windows-1252
)
... | Shell |
.TH MAN 1
.SH NAME
man, wm/man, man2html, man2txt, lookman \-
print or find manual pages
.SH SYNOPSIS
.B man
[
.B -b
] [
.B -n
] [
.B -p
] [
.B -S
] [
.B -w
]
[
.I section ...
]
.I title ...
.br
.B man -f
.I file ...
.br
.B wm/man
[
.I section ...
]
.I title ...
.br
.B wm/man -f
.I file ...
.br
.B man2html
.I file
[
.I... | Shell |
#!/dis/sh
os -t 8l $* | tr -d '
'
| Shell |
#!/dis/sh
load std
os -t 8g $* | tr -d '
'
| Shell |
#!/dis/sh
load std echo
echo '<html>
<head><title>hello world</title></head>
<body>'
echo hello world doodah
echo '</body>
</html>'
| Shell |
#!/dis/sh
os -t gofmt $* | tr -d '
'
| Shell |
#!/dis/sh
os -t 6g $*
| Shell |
#!/dis/sh
os -t 6l $*
| Shell |
#!/dis/sh
ls -p $* | mc
| Shell |
#!/dis/sh
load std expr string
pctl forkns
args := $*
s := sh -c ${quote $"args}
mkdir -p /tmp/lpipe
bind '#|' /tmp/lpipe
{
echo ${expr ${len $"s} 1 + } >/fd/0;
echo $s >/fd/0;
export / /fd/0
} <>/tmp/lpipe/data &
os -d $emuroot Acme -c0 sh -c '
mkdir -p /tmp/pipes;
mkdir -p /n/client;
bind ''#|'' /tmp/pipe... | Shell |
#!/dis/sh
now="{cat /dev/time}
os -t pandoc *.txt -o go-kernel-^$"now^.epub --smart --toc '--epub-cover-image=cover.png' | tr -d '
'
# os -t pandoc $1^.txt -o $1^.epub --smart | tr -d '
' | Shell |
#!/dis/sh
load std
if {~ $emuhost 'Nt'}{
os -t 8g $* | tr -d '
'
} {~ $emuhost 'MacOSX'} {
os -t 6g $*
} { raise 'unknown host '^$emuhost }
| Shell |
#!/dis/sh
sed -n '/broke/s/^ +([0-9][0-9]*) +(.*)/echo kill >\/prog\/\1\/ctl # \2/p' /prog/*/status
| Shell |
#!/dis/sh
args := $*
c=`{hp $args}
os cmd /c start '"\DummyTitle\"' $"c
| Shell |
#!/dis/sh
now="{cat /dev/time}
os -t pandoc $1^.txt -o $1^.epub --smart | tr -d '
' | Shell |
#!/dis/sh
file := $1
if {ftest -e $file} {
mdb $file '$s'
} {ftest -e $file.dis} {
mdb $file.dis '$s'
} {ftest -e /dis/$file} {
s := `{mdb /dis/$file '$s'}
if {~ $#s 0} {
echo /dis/$file
} {echo $s}
} {ftest -e /dis/$file.dis} {
mdb /dis/$file.dis '$s'
}
| Shell |
#!/dis/sh
os -t goinstall $*
| Shell |
#!/dis/sh.dis
# Plan 9 man script adaptation for Inferno
# for more details see the real man(1)
load std
fils=()
cmd=n
sec=()
S=/man
d=0
x=$* # see sh(1) for details about s/$*/$x/.
x=`{echo $x|tr A-Z a-z|tr -dc 'a-z0-9_ \012-/'} # fold case, delete funny chars
search=yes
while {~ $d 0}{
#echo d$d search$search cmd... | Shell |
#!/dis/sh
load std
wdir=`{hp `{pwd}}
if {~ $emuhost Nt}{
os -d $wdir svn $* | tr -d '
'
}{
os -d $wdir svn $*
}
| Shell |
#!/dis/sh
os -t gotest
| Shell |
#!/dis/sh
load std
if {~ $#* 0}{
os godoc '-http=:6060'
}{
os godoc $*
}
| Shell |
#!/dis/sh
load std
fn cmdform {
sed 's;/man/;;
s;(.*)/(0intro);man \1 \2 # intro(\1);
s;(.*)/(.*);man \1 \2 # \2(\1);'
}
post=cmdform
x=$*
~ $1 -f && {
post=cat
x=${tl $x}
}
x=`{echo $x|tr A-Z a-z|tr -dc 'a-z0-9_ \012'} # fold case, delete funny chars
~ $#x 0 && {echo Usage: lookman key ... >[1=2]; exit usage}
... | Shell |
#!/dis/sh
os -T hg $*
| Shell |
#!/dis/sh.dis
load std
autoload=std
bind -c /dis /dis
bind -a '#w' /dev
bind -c '#splumber' /chan
bind -a '#^' /chan
if {ftest -d '#A'}{
bind -a '#A' /dev
}
run $home/lib/functions
if {! ftest -f /net/dns}{
ndb/dns -r
}
if {! ftest -f /net/cs}{
ndb/cs
}
if {! ftest -f /mnt/factotum/proto}{
auth/factotum
}
acme-f... | Shell |
#!/dis/sh.dis
# emu sh initialisation here
load std
# create mounting points as hg cannot take empty dirs
mkdir /n /mnt /tmp /me >[2] /dev/null
mkdir /mnt/acme /mnt/arch /mnt/factotum /mnt/registry /mnt/schedule /mnt/wiki >[2] /dev/null
user="{cat /dev/user}
home=/usr/^$"user
mount -ac {mntgen} /n
ftrans=()
if {~ $e... | Shell |
#!/bin/bash
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$HOME/go/bin
export acmedir=`dirname "$0"`/../Resources
$acmedir/MacOSX/386/bin/emu -r $acmedir -g800x600 > $acmedir/acme.log 2>&1
| Shell |
#!/usr/bin/env bash
echo $1
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
case $1 in
start) JRUBY_OPTS='' jruby --ng-server & ;;
stop) ps axww | grep '[c]om.martiansoftware.nailgun.NGServer' | grep -Po '^\s*(\d+)' | xargs kill ;;
esac
| Shell |
#!/usr/bin/env bash
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
RAKE_SCRIPT=$(which rake)
ruby --debug -S rdebug $RAKE_SCRIPT $@ | Shell |
#!/usr/bin/env bash
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
jruby --debug -S rdebug $@
| 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
# 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
#
# 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
# 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
# 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
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
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.