code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # # openvpn This shell script takes care of starting and stopping # openvpn on RedHat or other chkconfig-based system. # # chkconfig: 345 24 76 # # description: OpenVPN is a robust and highly flexible tunneling application \ # that uses all of the encryption, authentication, a...
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: openvpn # Required-Start: $network # Required-Stop: $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: This shell script takes care of starting and stopping OpenVP...
Shell
#!/bin/sh ################################# # Set up Ethernet bridge on Linux # Requires: bridge-utils ################################# # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged, # for example tap="tap0 tap1 tap2". tap="tap0" # Define physical ethernet interface to be bridged...
Shell
#!/bin/sh #################################### # Tear Down Ethernet bridge on Linux #################################### # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged together tap="tap0" ifconfig $br down brctl delbr $br for t in $tap; do openvpn --rmtun --dev $t done
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
Shell
#!/bin/sh # A Sample OpenVPN-aware firewall. # eth0 is connected to the internet. # eth1 is connected to a private subnet. # Change this subnet to correspond to your private # ethernet subnet. Home will use HOME_NET/24 and # Office will use OFFICE_NET/24. PRIVATE=10.0.0.0/24 # Loopback address LOOP=127.0.0.1 # De...
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
Shell
#!/bin/sh route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # A sample OpenVPN startup script # for Linux. # openvpn config file directory dir=/etc/openvpn # load the firewall $dir/firewall.sh # load TUN/TAP kernel module modprobe tun # enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # Invoke openvpn for each VPN tunnel # in daemon mode. Alternative...
Shell
#!/bin/sh route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2006-10-15.18 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot #echo "set terminal x11 enhanced" > $GNUPLOTFILE echo "set terminal post color eps enhanced font \"Helvetica,18\"" > $GNUPLOTFILE echo "set output 'bi1D-width-various-nu.eps'" >> $GNUPLOTFILE echo "set xlabel 't'" >> $GNUPLOTFILE echo "set ylab...
Shell
#!/bin/sh # expecting cord is in the PATH if [ $# -lt 1 ]; then echo usage: echo $(echo $0|sed 's/.*\///g') datafile1.h5 \[ datafile2.h5 ... \] exit -1 fi while [ $# -gt 0 ]; do f=$1 shift if [ ! \( -f ${f%.hdf}.gp -a \( ${f%.hdf}.gp -nt $f \) \) ]; then cord --h5togp -i "$f"; ...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helvetica,18\"" > $GNUPLOTFILE echo "set output 'bi1D-2frac-various-nu.eps'" >> $GNUPLOTFILE echo "...
Shell
#!/bin/sh # expecting cord is in the PATH if [ $# -lt 1 ]; then echo usage: echo $(echo $0|sed 's/.*\///g') datafile1.h5 \[ datafile2.h5 ... \] exit -1 fi while [ $# -gt 0 ]; do f=$1 shift if [ ! \( -f ${f%.hdf}.dx -a \( ${f%.hdf}.dx -nt $f \) \) ]; then cord --h5todx -i "$f"; ...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot #echo "set terminal x11 enhanced" > $GNUPLOTFILE echo "set terminal post color eps enhanced font \"Helvetica,18\"" > $GNUPLOTFILE echo "set output 'bi1D-width-various-k.eps'" >> $GNUPLOTFILE echo "set xlabel 't'" >> $GNUPLOTFILE echo "set ylabe...
Shell
#!/bin/sh FILE=$1 OUT=${FILE%.gp}.eps TIME=$(head -1 ${FILE}|tail -1|LC_ALL=C awk '{print $2}'|\ perl -e 'while(<>){printf("%g\n",$_);}'); TITLE="t=$TIME" gnuplot - << END set output '$OUT' set terminal post landscape color size 16cm, 9cm font 10 set palette rgbformulae 30,31,32 negative unset title unset key set ...
Shell
#!/bin/sh PLOTTER=gri MODE=mono TITLE=no export PLOTHEIGHT=10 export PLOTWIDTH=10 function usage { echo usage: echo $(echo $0|sed 's/.*\///g') \[-gri\|-gnuplot\] \[-mono\|-color\] \[-withtitle\] \[-xrange xmin:xmax\] \[-yrange ymin:ymax\] datafile1.gp \[ datafile2.gp ... \] exit -1 } if [ $# -lt 1 ]; then us...
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points sizefile=/tmp/size_infty [ -f $sizefile ] && rm $sizefile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal x11 enhanced" > $GNUPLO...
Shell
#!/bin/sh FILE=$1 OUT=${FILE}.m12.eps OUT2=${FILE}.mth.eps OUT3=${FILE}.2frac.eps TMP=/tmp/$1.data grep M_1 ${FILE} | sed 's/^t=//;' | awk '{print $1, $4, $6, $8;}' > ${TMP} gnuplot - << END set output '$OUT' set terminal post color unset title set key top left set border 3 set xtics nomirror set ytics nomirror set ...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helv...
Shell
#!/bin/sh FILE=$1 PPM=${FILE%.gp}.ppm RGB=${FILE%.gp}.rgb OUT=${FILE%.gp}.eps ./gp2ppm ${FILE} > ${PPM} && cat ${PPM} | sed '1d' > ${RGB} || exit -1 gnuplot - << END set output '$OUT' set terminal post color set multiplot unset title unset key set surface unset contour unset colorbox set view map splot [0:1][0:0.5] ...
Shell
#!/bin/sh if [ $# -le 1 ]; then echo usage: echo crop_eps2jpg image1.eps \[ image2.eps ... \] exit -1 fi while [ $# -gt 0 ]; do f=$1 ; convert -quality 90 -density 128 "$f" "${f%.eps}.jpg" ; shift ; done
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points massfile=/tmp/mass_infty [ -f $massfile ] && rm $massfile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced...
Shell
#!/bin/sh # expects cord_plots.rb to be in $PATH if [ $# -lt 1 ]; then echo usage: echo $(echo $0|sed 's/.*\///g') datafile1.gp \[ datafile2.gp ... \] exit -1 fi while [ $# -gt 0 ]; do f=$1 shift cord_plots.rb "$f" && \ rm -f figures_out/*.{aux,tex,log,txt} figures_out/*_figure.pdf; done
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points sizefile=/tmp/size_infty [ -f $sizefile ] && rm $sizefile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal x11 enhanced" > $GNUPLO...
Shell
#!/bin/sh PLOTTER=gri MODE=mono TITLE=no PLOTHEIGHT=10 PLOTWIDTH=10 function usage { echo usage: echo $(echo $0|sed 's/.*\///g') \[-gri\|-gnuplot\] \[-mono\|-color\] \[-withtitle\] \[-xrange xmin:xmax\] \[-yrange ymin:ymax\] datafile1.gp \[ datafile2.gp ... \] exit -1 } if [ $# -lt 1 ]; then usage fi functi...
Shell
#!/bin/sh NAVG1=1 NAVG2=5 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot #echo "set terminal x11 enhanced" > $GNUPLOTFILE echo "set terminal post color eps enhanced font \"Helvetica,18\"" > $GNUPLOTFILE echo "set output 'width-k.eps'" >> $GNUPLOTFILE echo "set size 1,2; set lmargin 9; set rmargin 9;" >> $GNUPLOTFILE...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helv...
Shell
#!/bin/sh FILE=$1 OUT=${FILE}.size.eps TMP=/tmp/$1.$! grep xsize ${FILE} | sed 's/=/= /g;' | awk '{print $2, $5, $7, $9, $11;}' > ${TMP} gnuplot - << END set output '$OUT' set terminal post color unset title set border 3 set xtics nomirror set ytics nomirror set key top left set xlabel 't' plot [][0:1] '$TMP' u 1:2 ...
Shell
#!/bin/sh NAVG1=1 NAVG2=1 TAVGSWITCH=200 GNUPLOTFILE=/tmp/width.gnuplot #echo "set terminal x11 enhanced" > $GNUPLOTFILE echo "set terminal post color eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post color eps enhanced font \"Helvetica,18\"" > $GNUPLOTFILE echo "set output 'b...
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points massfile=/tmp/mass_infty [ -f $massfile ] && rm $massfile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post eps enhanced font ...
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points sizefile=/tmp/size_infty [ -f $sizefile ] && rm $sizefile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal x11 enhanced" > $GNUPLO...
Shell
#!/bin/sh if [ $# -le 1 ]; then echo usage: echo crop_pdf2jpg image1.pdf \[ image2.pdf ... \] exit -1 fi while [ $# -gt 0 ]; do f=$1 ; convert -quality 90 -density 128 \ -crop 640x480+0+80 "$f" "${f%.pdf}.jpg" ; shift ; done
Shell
#!/bin/sh TINFTY=400 #### cleanup file with data points massfile=/tmp/mass_infty [ -f $massfile ] && rm $massfile ; #### prepare a gnuplot script GNUPLOTFILE=/tmp/width.gnuplot echo "set terminal post mono eps enhanced font \"Helvetica,10\" size 6cm, 4cm" > $GNUPLOTFILE #echo "set terminal post eps enhanced font ...
Shell
#!/bin/bash if [ $# -le 1 ]; then echo usage: echo gen-video.sh frames-per-second frame1.img \[frame2.img ... \] exit -1 fi fps=$1 frame=0; shift while [ $# -gt 0 ]; do timestamp="" printf -v timestamp "%08d" $frame framename="frame.$timestamp.jpg" convert -quality 95 "$1" "$framename" echo $framename: $1 s...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-10-14.15 # 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 # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redi...
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/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
spawn-fcgi -u www-data -g www-data -d /var/www/simplecd/ -f /var/www/simplecd/code.py -a 127.0.0.1 -p 9001 -F 2
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
ant build
Shell
#!/bin/sh pdflatex xwikiconcerto-l4 pdflatex xwikiconcerto-l4
Shell
#!/bin/sh pdflatex xwikiconcerto-l4 pdflatex xwikiconcerto-l4
Shell
#!/bin/sh pdflatex xwikiconcerto-l6 pdflatex xwikiconcerto-l6
Shell
#!/bin/sh pdflatex xwikiconcerto-l6 pdflatex xwikiconcerto-l6
Shell
#!/bin/sh pdflatex xwikiconcerto-l5 bibtex xwikiconcerto-l5 pdflatex xwikiconcerto-l5 pdflatex xwikiconcerto-l5
Shell
#!/bin/sh pdflatex xwikiconcerto-l5 bibtex xwikiconcerto-l5 pdflatex xwikiconcerto-l5 pdflatex xwikiconcerto-l5
Shell
#!/bin/bash # # runtests.sh # # Invoke selected or all unit tests under the tests/ subdir structure. # run with "-h" for help. # # Author: John Randolph (jrand@google.com) # TESTSDIR="tests" PYTHON="" TOPDIR="" VERBOSE="" declare -a TESTS function die() { echo error: "$@" >&2 exit 1 } function printVerbose()...
Shell
#!/bin/sh # this script simply sleeps a random number of seconds # up to MAX_DELAY_MINUTES, then runs managedsoftwareupdate --auto. # It's meant to spread the load on the munki server # so all clients don't hit it simultaneously. # If launchd had a way to randomize the StartInterval, # we wouldn't need to do this. # ...
Shell
#!/bin/bash # # Check out Munki from git and build an mpkg distribution package. # Defaults. PKGTYPE="bundle" PKGID="com.googlecode.munki" OUTPUTDIR=`pwd` CONFPKG="" CHECKOUTREV="HEAD" BRANCH="master" usage() { cat <<EOF Usage: `basename $0` [-f] [-i id] [-o dir] [-c package] [-r revision]" -f Bui...
Shell
#!/bin/bash # # Merciless uninstall of munki. if [ `id -u` -ne 0 ]; then echo "Munki uninstallation must be run by root" exit 1 fi launchctl unload /Library/LaunchDaemons/com.googlecode.munki.* rm -rf "/Applications/Utilities/Managed Software Update.app" rm -f /Library/LaunchDaemons/com.googlecode.munki.* rm...
Shell
#!/bin/bash # # Build script for munki tools, builds an mpkg distribution package. # Defaults. PKGTYPE="bundle" PKGID="com.googlecode.munki" MUNKIROOT="." # Convert to absolute path. MUNKIROOT=`cd "$MUNKIROOT"; pwd` OUTPUTDIR="." # Convert to absolute path. OUTPUTDIR=`cd "$OUTPUTDIR"; pwd` CONFPKG="" # add this numbe...
Shell
#!/bin/sh echo This script takes a minute to run. Be patient. 1>&2 LC_CTYPE=C export LC_CTYPE # pad stdin to multiple of 120 lines pad() { awk '{print} END{for(; NR%120!=0; NR++) print ""}' } # create formatted (numbered) files mkdir -p fmt rm -f fmt/* cp README fmt files=`grep -v '^#' runoff.list | awk '{print $...
Shell
#!/bin/sh echo This script takes a minute to run. Be patient. 1>&2 LC_CTYPE=C export LC_CTYPE # pad stdin to multiple of 120 lines pad() { awk '{print} END{for(; NR%120!=0; NR++) print ""}' } # create formatted (numbered) files mkdir -p fmt rm -f fmt/* cp README fmt files=`grep -v '^#' runoff.list | awk '{print $...
Shell
#!/bin/sh # To use this script you should only need a Java Runtime installed ./gradlew gaeUpload
Shell
#!/bin/sh # To use this script you should only need a Java Runtime installed ./gradlew gaeRun
Shell
#!/bin/bash cd /usr/share/pyshared/deluge/ui/gtkui sudo cp addtorrentdialog.py addtorrentdialog.py.bak sudo wget http://goo.gl/QIKJg -O deluge_download_location.patch sudo patch addtorrentdialog.py deluge_download_location.patch
Shell
#!/bin/bash cd /usr/share/pyshared/deluge/ui/gtkui sudo cp addtorrentdialog.py addtorrentdialog.py.bak sudo wget http://goo.gl/QIKJg -O deluge_download_location.patch sudo patch addtorrentdialog.py deluge_download_location.patch
Shell
#!/bin/sh # Always run Google Earth from this shell script and not # Google Earth directly! This script makes sure the app looks # in the right place for libraries that might also be installed # elsewhere on your system. # # Ryan C. Gordon, Thu Jul 20 14:32:33 PDT 2006 # Function to find the real directory a program ...
Shell
#!/bin/sh # Always run Google Earth from this shell script and not # Google Earth directly! This script makes sure the app looks # in the right place for libraries that might also be installed # elsewhere on your system. # # Ryan C. Gordon, Thu Jul 20 14:32:33 PDT 2006 # Function to find the real directory a program ...
Shell
#!/bin/bash # # Description: Downgrade Abiword to version 2.8.6 # Author: Wilson Santos sudo apt-get purge abiword libabiword-2.9 -y --force-yes # Find machine architecture if [ `uname -m` == "x86_64" ]; then arch="amd64" else arch="i386" fi abiword_common_deb="abiword-common_2.8.6-0.3ubuntu2_all.deb" abiword_p...
Shell
#!/bin/bash # # Description: Downgrade Abiword to version 2.8.6 # Author: Wilson Santos sudo apt-get purge abiword libabiword-2.9 -y --force-yes # Find machine architecture if [ `uname -m` == "x86_64" ]; then arch="amd64" else arch="i386" fi abiword_common_deb="abiword-common_2.8.6-0.3ubuntu2_all.deb" abiword_p...
Shell
#!/bin/bash # # Description: Workaround for vlc 2.0.1 (<=) subtitle autodetection problem. # # Info: http://xubuntugeek.blogspot.com/2012/05/fix-vlc-20-subtitle-autodetection.html # # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 subpath="$(dirname "$1")/Subtitles,$(dirname "$1")/subtitles" echo...
Shell
#!/bin/bash # # Description: Workaround for vlc 2.0.1 (<=) subtitle autodetection problem. # # Info: http://xubuntugeek.blogspot.com/2012/05/fix-vlc-20-subtitle-autodetection.html # # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 subpath="$(dirname "$1")/Subtitles,$(dirname "$1")/subtitles" echo...
Shell
#!/bin/bash # # Description: uninstall the gmusicbrowser-mmkeys.sh script. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 # Remove the...
Shell
#!/bin/bash # # Description: install the gmusicbrowser-mmkeys.sh script. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 # Use xfconf-q...
Shell
#!/bin/bash # # Description: uninstall the gmusicbrowser-mmkeys.sh script. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 # Remove the...
Shell
#!/bin/bash # # Description: send 'Play/Pause/Stop/NextSong/PreviousSong' commands to gmusicbrowser music player. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # # Author: Wilson Santos (wilson.bl.santos@...
Shell
#!/bin/bash # # Description: install the gmusicbrowser-mmkeys.sh script. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # Author: Wilson Santos (wilson.bl.santos@gmail.com) # # Version: 1.0 # Use xfconf-q...
Shell
#!/bin/bash # # Description: send 'Play/Pause/Stop/NextSong/PreviousSong' commands to gmusicbrowser music player. # Please visit http://xubuntugeek.blogspot.com/2011/11/use-multimedia-keys-with-gmusicbrowser.html to learn how to use this script with keyboard multimedia keys. # # Author: Wilson Santos (wilson.bl.santos@...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
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 # use the image builder to make X-Wrt images. echo "Making firmware images ..." rm -rf imgbuild mkdir -p ./imgbuild cd imgbuild tar -xjf ../bin/OpenWrt-ImageBuilder-Linux-i686.tar.bz2 cd OpenWrt-ImageBuilder-Linux-i686 make cd ../..
Shell
#!/bin/sh rm -rf build_mipsel/webif* rm -rf build_mipsel/base-files*
Shell
#!/bin/sh # compress all images into a single small archive. # requires tar before compress so all data is in single stream. CompressDir() { odir=$(pwd) cd "$1" rm -f xwrt*.tar rm -f xwrt*.rar.tar tar -cvf xwrt-squashfs-images.tar *squashfs*.bin *squashfs*.trx #tar -cvf xwrt-jffs-images.tar *jffs*.bin *jffs*.trx 7z a ...
Shell
#!/bin/sh NAME=fakeidentd case "$1" in start) iptables -A input_rule -p tcp --dport 113 -j ACCEPT [ -e $DEFAULT ] && $NAME $DEFAULT ;; stop) killall $NAME ;; restart) killall $NAME $NAME ;; *) echo "Usage: $NAME (start|stop|restart)" > 2& exit 1 ;; esac
Shell
#!/bin/sh NAME=fakeidentd case "$1" in start) iptables -A input_rule -p tcp --dport 113 -j ACCEPT [ -e $DEFAULT ] && $NAME $DEFAULT ;; stop) killall $NAME ;; restart) killall $NAME $NAME ;; *) echo "Usage: $NAME (start|stop|restart)" > 2& exit 1 ;; esac
Shell
#!/bin/sh # restore busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../.....
Shell
#!/bin/sh # restore busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../.....
Shell
#!/bin/sh # backup busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../...
Shell
#!/bin/sh # backup busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../...
Shell
#!/bin/sh # backup busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../...
Shell
#!/bin/sh # restore busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../.....
Shell
#!/bin/sh # restore busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../.....
Shell
#!/bin/sh # backup busybox's imperfection rm -f $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null rm -f $IPKG_INSTROOT/usr/bin/wget 2>/dev/null if [ -n "$IPKG_INSTROOT" ]; then ln -sf ../../bin/busybox $IPKG_INSTROOT/usr/bin/wget.bb 2>/dev/null else /bin/busybox --help 2>/dev/null | grep -q "[[:space:]]wget\>" && ln -sf ../...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2007 X-Wrt.org START=98 NAME=gmediaserver DAEMON="/usr/sbin/$NAME" RUN_D=/var/run PID_F=$RUN_D/$NAME.pid append_bool() { local section="$1" local option="$2" local value="$3" local _loctmp config_get_bool _loctmp "$section" "$option" [ "$_loctmp" -gt 0 ] && append args ...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2007 X-Wrt.org START=98 NAME=gmediaserver DAEMON="/usr/sbin/$NAME" RUN_D=/var/run PID_F=$RUN_D/$NAME.pid append_bool() { local section="$1" local option="$2" local value="$3" local _loctmp config_get_bool _loctmp "$section" "$option" [ "$_loctmp" -gt 0 ] && append args ...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 start() { echo 1 > /proc/sys/net/ipv6/conf/all/forwarding mkdir -p /var/log mkdir -p /var/run /usr/sbin/radvd } stop() { killall radvd echo 0 > /proc/sys/net/ipv6/conf/all/forwarding }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 start() { echo 1 > /proc/sys/net/ipv6/conf/all/forwarding mkdir -p /var/log mkdir -p /var/run /usr/sbin/radvd } stop() { killall radvd echo 0 > /proc/sys/net/ipv6/conf/all/forwarding }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2007 X-Wrt.org START=98 NAME=ushare DAEMON="/usr/sbin/$NAME" append_bool() { local section="$1" local option="$2" local value="$3" local _loctmp config_get_bool _loctmp "$section" "$option" [ "$_loctmp" -gt 0 ] && append args "$3" } append_parm() { local section="$1" ...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2007 X-Wrt.org START=98 NAME=ushare DAEMON="/usr/sbin/$NAME" append_bool() { local section="$1" local option="$2" local value="$3" local _loctmp config_get_bool _loctmp "$section" "$option" [ "$_loctmp" -gt 0 ] && append args "$3" } append_parm() { local section="$1" ...
Shell
#!/bin/sh case "$1" in start) aiccu start ;; stop) aiccu stop aiccu stop ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
Shell
#!/bin/sh case "$1" in start) aiccu start ;; stop) aiccu stop aiccu stop ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
Shell
#!/bin/sh DEFAULT=/etc/default/nifd RUN_D=/var/run PID_F=$RUN_D/nifd.pid [ -f $DEFAULT ] && . $DEFAULT case $1 in start) [ -d $RUN_D ] || mkdir -p $RUN_D nifd $OPTIONS ;; stop) [ -f $PID_F ] && kill $(cat $PID_F) ;; *) echo "usage: $0 (start|stop)" exit 1 esac exit $?
Shell
#!/bin/sh DEFAULT=/etc/default/mDNSResponder RUN_D=/var/run PID_F=$RUN_D/mDNSResponder.pid [ -f $DEFAULT ] && . $DEFAULT case $1 in start) [ -d $RUN_D ] || mkdir -p $RUN_D mDNSResponder $OPTIONS ;; stop) [ -f $PID_F ] && kill $(cat $PID_F) ;; *) echo "usage: $0 (start|stop)" exit 1 esac exit $?
Shell
#!/bin/sh DEFAULT=/etc/default/nifd RUN_D=/var/run PID_F=$RUN_D/nifd.pid [ -f $DEFAULT ] && . $DEFAULT case $1 in start) [ -d $RUN_D ] || mkdir -p $RUN_D nifd $OPTIONS ;; stop) [ -f $PID_F ] && kill $(cat $PID_F) ;; *) echo "usage: $0 (start|stop)" exit 1 esac exit $?
Shell