code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh nohup php /home/yuecl/www/smartchem/library/Common/Command/tools/mkindex/mkindex.php >/dev/null
Shell
#!/bin/sh nohup php /home/yuecl/www/smartchem/library/Common/Command/tools/mkindex/mkindex.php >/dev/null
Shell
dbuser=root dbpasswd=soooner.com dbserver=127.0.0.1 port=3306 dbopt=--opt dbname=minicms dumpfilename=`date +%F`.sql tarfile=/mnt/disk-2/minicms$fileprefix-`date +%F`.tar.gz mysqldump -u $dbuser -p$dbpasswd -h $dbserver -P$port $dbopt $dbname >$dbname$dumpfilename tar -czvf $tarfile $dbname$dumpfilename rm -f $dbname$d...
Shell
#!/bin/sh size=32 margin=2 format=png # atoms indigo-depict - "*" $format/atom/anyatom.$format -query -w $size -h $size -margins $margin $margin -bond 75 indigo-depict - "[H]" $format/atom/h.$format -hydro off -w $size -h $size -margins $margin $margin -bond 75 indigo-depict - "C" $format/atom/c.$format -hydro off -w...
Shell
#!/bin/sh name=$1 if [ -z $name ]; then echo "specify name"; exit; fi rm -rf ./$name mkdir $name cp -r LICENSE.GPL LICENSE.GPL base64.js chem/ favicon.ico ketcher.py ketcher.css ketcher.html demo.html ketcher.js loading.gif png/ prototype-min.js raphael-min.js raphael.js rnd/ ui/ util/ reaxys/ $name/ zip -r -...
Shell
#!/bin/sh size=32 format=mol # patterns indigo-depict - "C1=CC=CC=C1" $format/pattern/hexa1.$format indigo-depict - "C1CCCCC1" $format/pattern/hexa2.$format indigo-depict - "c1ccccc1" $format/pattern/hexaa.$format indigo-depict - "C1CCCC1" $format/pattern/penta.$format indigo-depict - "C1=CC2=C(C=C1)C=CC=C2" $format/...
Shell
#!/bin/sh name=$1 if [ -z $name ]; then echo "specify name"; exit; fi rm -rf ./$name mkdir $name cp -r LICENSE.GPL LICENSE.GPL base64.js chem/ favicon.ico ketcher.py ketcher.css ketcher.html demo.html ketcher.js loading.gif png/ prototype-min.js raphael-min.js raphael.js rnd/ ui/ util/ reaxys/ $name/ zip -r -...
Shell
#!/bin/sh size=32 format=mol # patterns indigo-depict - "C1=CC=CC=C1" $format/pattern/hexa1.$format indigo-depict - "C1CCCCC1" $format/pattern/hexa2.$format indigo-depict - "c1ccccc1" $format/pattern/hexaa.$format indigo-depict - "C1CCCC1" $format/pattern/penta.$format indigo-depict - "C1=CC2=C(C=C1)C=CC=C2" $format/...
Shell
#!/bin/sh size=32 margin=2 format=png # atoms indigo-depict - "*" $format/atom/anyatom.$format -query -w $size -h $size -margins $margin $margin -bond 75 indigo-depict - "[H]" $format/atom/h.$format -hydro off -w $size -h $size -margins $margin $margin -bond 75 indigo-depict - "C" $format/atom/c.$format -hydro off -w...
Shell
tar -czf ketcher$1.tar.gz LICENSE.GPL base64.js chem/ favicon.ico ketcher.py ketcher.css ketcher.html ketcher.js loading.gif png/ prototype-min.js raphael-min.js raphael.js rnd/ ui/ util/ reaxys/
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # 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 ap...
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # 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 ap...
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
#!/bin/sh # # ref - Check spelling of the arguments # # Usage: ref word .. # # can be used for the K command of Vim # spell <<EOF $* EOF
Shell
#!/bin/sh # enable DEC locator input model on remote terminal printf "\033[1;2'z\033[1;3'{\c" vim "$@" # disable DEC locator input model on remote terminal printf "\033[2;4'{\033[0'z\c"
Shell
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given. if test -t 1; then if test $# = 0; then vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a term...
Shell
#! /bin/sh prefix=stock_ list= for file in "$@" do name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'` list="$list $prefix$name $file" done gdk-pixbuf-csource --raw --static --build-list $list
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/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 # 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/bash SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../" RELDIR="$SRCDIR/tools/visualizer" COMPRESS="java -jar $SRCDIR/tools/yuicompressor-2.4.6.jar" mkdir -p $RELDIR/{css,js} mkdir -p $SRCDIR/builds cat $SRCDIR/js/modernizr.js $SRCDIR/js/jquery/{jquery,jquery.event.drag,jquery.mousewheel,jquery.s...
Shell
#!/bin/sh # TODO: FIXME: Get rid of this and hook it into Dojo's general build script # You must have mtasc to run this mtasc -trace DojoExternalInterface.trace -main -cp ../flash -swf Storage.swf -version 8 -header 215:138:10 Storage.as
Shell
#!/bin/bash # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/sh ruby webrick.rb
Shell
#!/bin/sh ruby webrick.rb
Shell
#!/bin/sh ENABLE=$1 echo "" echo " DataTables unit tests" echo "" if [ ! "$ENABLE" = "Enable" -a ! "$ENABLE" = "Disable" -o "ENABLE" = "-h" ]; then echo " Enable or Disable must be given as the first argument." echo " Optionally the second argument can be given as an integer to enable/disable a certain " echo ...
Shell
#!/bin/sh cd ../media/src # DEFAULTS CLOSURE="/usr/local/closure_compiler/compiler.jar" JSDOC="/usr/local/jsdoc/jsdoc" CMD=$1 MAIN_FILE="../js/jquery.dataTables.js" MIN_FILE="../js/jquery.dataTables.min.js" VERSION=$(grep " * @version " DataTables.js | awk -F" " '{ print $3 }') echo "" echo " DataTables build ...
Shell
#!/bin/sh ENABLE=$1 echo "" echo " DataTables unit tests" echo "" if [ ! "$ENABLE" = "Enable" -a ! "$ENABLE" = "Disable" -o "ENABLE" = "-h" ]; then echo " Enable or Disable must be given as the first argument." echo " Optionally the second argument can be given as an integer to enable/disable a certain " echo ...
Shell
#!/bin/sh cd ../media/src # DEFAULTS CLOSURE="/usr/local/closure_compiler/compiler.jar" JSDOC="/usr/local/jsdoc/jsdoc" CMD=$1 MAIN_FILE="../js/jquery.dataTables.js" MIN_FILE="../js/jquery.dataTables.min.js" VERSION=$(grep " * @version " DataTables.js | awk -F" " '{ print $3 }') echo "" echo " DataTables build ...
Shell
xcodebuild -sdk iphoneos -parallelizeTargets xcodebuild -sdk iphoneos -configuration Debug -parallelizeTargets xcodebuild -sdk iphonesimulator -parallelizeTargets xcodebuild -sdk iphonesimulator -configuration Debug -parallelizeTargets
Shell
#!/bin/sh cp syntax.txt syntax.html sam -d syntax.html <<'!' ,s/\&/\&amp;/g ,s/</\&lt;/g ,s/>/\&gt;/g ,s!== (([^()]|\([^()]*\))*)!≡ <code>\1</code>!g ,s!«!<code>!g ,s!»!</code>!g ,s! vim$! <font size=-2>VIM</font>!g ,s! pcre$! <font size=-2>PCRE</font>!g ,s! perl$! <font size=-2>PERL</font>!g ,x g/NOT SUPPORTED/ s!^[^...
Shell
#!/bin/sh cp syntax.txt syntax.wiki sam -d syntax.wiki <<'!' ,s!`!`````!g ,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g ,s!«!`!g ,s!»!`!g ,s! vim$! <font size="1">VIM</font>!g ,s! pcre$! <font size="1">PCRE</font>!g ,s! perl$! <font size="1">PERL</font>!g ,s!(^[^ ]+) (.*)\n!`\1` \2\n!g ,x g/NOT SUPPORTED/ s!^[^ ]+!<font color=...
Shell
#!/usr/bin/env bash success=true for i do printf "%-40s" $i if sh -c "$i >$i.log 2>&1" 2>/dev/null then echo PASS else echo FAIL';' output in $i.log success=false fi done if $success; then echo 'ALL TESTS PASSED.' exit 0 fi echo 'TESTS FAILED.' exit 1
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
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 # set -uex curl 'http://localhost:9100/list-games'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/ping"
Shell
#!/bin/bash # set -ue backend="" # match dev_appserver oauth2 default user_id userID="0" while [ $# -ge 1 ] do arg="$1" shift if [ "$arg" == "-b" ] then backend=1 else userID="$arg" fi done if [ "$backend" ] then # matcher backend set -x curl --data-binary "{}" -H "Content-Type: applicatio...
Shell
#!/bin/bash # set -uex dev_appserver.py --address 0.0.0.0 --skip_sdk_update_check --backends . $*
Shell
#!/bin/bash # set -uex curl 'http://localhost:9100/debug'
Shell
#!/bin/bash # set -uex curl 'http://localhost:9100/start-game'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/log"
Shell
#!/bin/bash # set -ue # make sure stuff is installed [ ! -d 'node_modules' ] && npm install socket.io express set -x # run the game node games-server/main.js $*
Shell
#!/bin/bash # set -ue pairing_key=$( cat shared/pairing-key.json | sed -e 's/{"key": "//' -e 's/".*//' ) set -x data='{ "userID": 823478923748932, "displayName": "fredsa", "game_name": "syXv", "player_game_key": "283473289478329" }' curl --data-binary "$data" -H "Content-Type: application/json" "http://localhost:1234...
Shell
#!/bin/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
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 # # San Angeles Observation OpenGL ES version example # # This shell script builds the demo application # with executable name "SanOGLES". # # Before running it, make sure that either libGLES_CM.so # or libGLES_CL.so is available in the library path. # Alternatively you can copy one of them to the same # dire...
Shell
#!/bin/ksh # launcher script for jsdoc # Author: Avi Deitcher # # This program is released under the MIT License as follows: # Copyright (c) 2008-2009 Atomic Inc <avi@jsorm.com> # #Permission is hereby granted, free of charge, to any person #obtaining a copy of this software and associated documentation #files (the "...
Shell
#!/bin/bash env-update source /etc/profile PS1="(chroot) $PS1" . /root/init.profile wget "$SCRIPT_ROOT/etc/make.conf" -O /etc/make.conf wget "$SCRIPT_ROOT/etc/ntp.conf" -O /etc/ntp.conf mkdir /usr/local/portage mkdir /etc/portage emerge --sync -qv emerge -qv vim net-misc/ntp ntpdate time.asia.apple.com hwclock --syst...
Shell
#!/bin/bash SCRIPT_ROOT="http://yunwei.googlecode.com/svn/trunk" CURRENT_VER="2.6.34-gentoo-r6" mke2fs /dev/sda1 mkswap /dev/sda2 mkfs.reiserfs -f /dev/sda3 swapon /dev/sda2 mount /dev/sda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/sda1 /mnt/gentoo/boot cd /mnt/gentoo wget "http://mirrors.verycd.com/gentoo/releas...
Shell
#!/bin/bash env-update source /etc/profile PS1="(chroot) $PS1" . /root/init.profile wget "$SCRIPT_ROOT/etc/make.conf" -O /etc/make.conf wget "$SCRIPT_ROOT/etc/ntp.conf" -O /etc/ntp.conf mkdir /usr/local/portage mkdir /etc/portage emerge --sync -qv emerge -qv vim net-misc/ntp ntpdate time.asia.apple.com hwclock --syst...
Shell
#!/bin/bash SCRIPT_ROOT="http://yunwei.googlecode.com/svn/trunk" CURRENT_VER="2.6.34-gentoo-r6" mke2fs /dev/sda1 mkswap /dev/sda2 mkfs.reiserfs -f /dev/sda3 swapon /dev/sda2 mount /dev/sda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/sda1 /mnt/gentoo/boot cd /mnt/gentoo wget "http://mirrors.verycd.com/gentoo/releas...
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/bash cat > a.txt << "EOF" this is a text line. second third fourth last EOF echo "grep '\w' a.txt" grep '\w' a.txt echo "" echo "grep -v '^[[:space:]]*$' a.txt" grep -v '^[[:space:]]*$' a.txt echo "" echo "grep '^[[:space:]]*$' a.txt" grep '^[[:space:]]*$' a.txt echo "" rm a.txt -f
Shell
#! /bin/bash FIRSTEXPORT="first export" READONLY="read only" # export FIRSTEXPORT export FIRSTEXPORT # print all export variables export -p # set readonly variable readonly READONLY # print all readonly variable readonly -p # cancel varaible FIRSTEXPORT, use FIRSTEXPORT= only # delete it's value, not the variable i...
Shell
#! /bin/bash # sort [options] [files...] # -t, specify the field separator, often use with -k. # -k, start with which field, after ',' specify the stop field. # If field looks like "4.5", which means the fied 4, from its # 5th character. echo "sort -t: -k1,1 /etc/passwd" sort -t: -k1,1 /etc/passwd echo "" # -n mean...
Shell
#! /bin/bash # awk 'pattern {cmd}', if the cmd misses, it will print the # line match the pattern. If the pattern misses, cmd will play # on every line. # -F set the field separator. echo "awk -F: '{print \$1, \$5}' /etc/passwd" awk -F: '{print $1, $5}' /etc/passwd echo "" # -v to set variable of awk, OFS used as o...
Shell
#!/bin/bash # Prevent from IFS attack, set IFS to space, tab, and newline. IFS=' ' # Prevent from PATH attack, we set our path to the following place and export them. OLDPATH="$PATH" PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH # Display the user manual. usage() { echo "Usage: $PROGRAM [--all] [--?] [--help] [--...
Shell
#! /bin/bash cat > sales <<"EOF" #name sales joe 100 jane 200 herman 150 chris 300 EOF cat > quotas <<"EOF" #name quotas joe 50 jane 75 herman 80 chris 95 EOF #delete annotate and sort sed '/^#/d' quotas | sort > quotas.sorted sed '/^#/d' sales | sort > sales.sorted join quotas.sorted sales.sorted rm quotas.sort...
Shell
#! /bin/bash cat > a.txt <<"EOF" This is a very long line which is suposed to be as long as 75 characters and should be fmt. This is a short line which is about 50 characters. This is a very short line. 15 characters. EOF # fmt [options]... [file]... # -s tells fmt to format only long lines (default 75 characters w...
Shell
#! /bin/bash cat > a.txt << "EOF" this is a text line. second third fourth last EOF echo "grep '\w' a.txt" grep '\w' a.txt echo "" echo "grep -v '^[[:space:]]*$' a.txt" grep -v '^[[:space:]]*$' a.txt echo "" echo "grep '^[[:space:]]*$' a.txt" grep '^[[:space:]]*$' a.txt echo "" rm a.txt -f
Shell
#! /bin/bash FIRSTEXPORT="first export" READONLY="read only" # export FIRSTEXPORT export FIRSTEXPORT # print all export variables export -p # set readonly variable readonly READONLY # print all readonly variable readonly -p # cancel varaible FIRSTEXPORT, use FIRSTEXPORT= only # delete it's value, not the variable i...
Shell
#! /bin/bash cat > a.txt <<"EOF" This is a very long line which is suposed to be as long as 75 characters and should be fmt. This is a short line which is about 50 characters. This is a very short line. 15 characters. EOF # fmt [options]... [file]... # -s tells fmt to format only long lines (default 75 characters w...
Shell
#! /bin/bash # sort [options] [files...] # -t, specify the field separator, often use with -k. # -k, start with which field, after ',' specify the stop field. # If field looks like "4.5", which means the fied 4, from its # 5th character. echo "sort -t: -k1,1 /etc/passwd" sort -t: -k1,1 /etc/passwd echo "" # -n mean...
Shell
#!/bin/bash # Prevent from IFS attack, set IFS to space, tab, and newline. IFS=' ' # Prevent from PATH attack, we set our path to the following place and export them. OLDPATH="$PATH" PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH # Display the user manual. usage() { echo "Usage: $PROGRAM [--all] [--?] [--help] [--...
Shell
#! /bin/bash # awk 'pattern {cmd}', if the cmd misses, it will print the # line match the pattern. If the pattern misses, cmd will play # on every line. # -F set the field separator. echo "awk -F: '{print \$1, \$5}' /etc/passwd" awk -F: '{print $1, $5}' /etc/passwd echo "" # -v to set variable of awk, OFS used as o...
Shell
#! /bin/bash cat > sales <<"EOF" #name sales joe 100 jane 200 herman 150 chris 300 EOF cat > quotas <<"EOF" #name quotas joe 50 jane 75 herman 80 chris 95 EOF #delete annotate and sort sed '/^#/d' quotas | sort > quotas.sorted sed '/^#/d' sales | sort > sales.sorted join quotas.sorted sales.sorted rm quotas.sort...
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 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/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 -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 rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
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 # 打开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 source _locals.sh javadoc -linkoffline http://developer.android.com/reference ${ANDROID_SDK}/docs/reference \ -sourcepath ../src \ -classpath ${ANDROID_SDK}/platforms/android-17/android.jar:${ANDROID_SDK}/tools/support/annotations.jar \ -d ../../out/javadoc/ \ -notree -nonavbar...
Shell
#!/bin/bash # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/bash # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT=$(dirname $(readlink -f $0))/.. GAE=$ROOT/../google_appengine FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS=$GAE:$GAE/lib/django_1_2 PYTHONPATH=$IMPORTS:$PYTHONPA...
Shell
#!/bin/bash VERSION="NaNoWriMo goal calculator 1.1.1" E_WRONG_PARAM=1 E_NO_STORY=2 E_INVAL_DAY=3 DAY=$(date +%d) MONTH=$(date +$m) YEAR=$(date +%Y) CURR=0 GOAL=50000 MLEN= NDAY= NTIME=0 SFILE= SGOAL= STORY=() SWORD=0 TDAY= function usage { echo "Usage:" echo " ./word_goal.sh [OPTION...] - Calculate per-day wor...
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 scp -q res/values/strings.xml linode:ath/incoming/en.xml wget --quiet -O /dev/null --ignore-length --post-data="" http://ath.darshancomputing.com/bi/load_new_en if [ "$?" -ne "0" ]; then echo "Sorry, something didn't work!" exit 1 fi
Shell
#!/bin/bash #ruby generate_images.rb #for i in res/drawable/b[0-9]*.png; do mogrify -resize 25x25 $i; done #gimp res/drawable/b100.png #for i in res/drawable/*.png; do mogrify -sharpen 25x25 $i; done # shift ("roll") images 1px to the right # for i in numbers/*.png; do convert $i -roll +1+0 $i; done d=`dirname $(rea...
Shell
#!/bin/sh # After initial checkout from svn, you'll want to run this as your first step. android update project --path . --name "BatteryBot" --target "android-17"
Shell
#!/bin/bash javac com/darshancomputing/BatteryIndicatorPro/Test.java && java com.darshancomputing.BatteryIndicatorPro.Test
Shell
#!/bin/sh # Copyright 2003-2009, Mike Solomon <mas63@cornell.edu> # SIMBL is released under the GNU General Public License v2. # http://www.opensource.org/licenses/gpl-2.0.php LAUNCHD_PLIST="/Library/LaunchAgents/net.culater.SIMBL.Agent.plist" # stop any running agent by unloading it echo "Stopping SIMBL Agent..." /bi...
Shell
#!/bin/sh # Copyright 2003-2009, Mike Solomon <mas63@cornell.edu> # SIMBL is released under the GNU General Public License v2. # http://www.opensource.org/licenses/gpl-2.0.php PACKAGE_PATH="$1" INSTALL_PATH="$2" INSTALL_VOLUME="$3" SYSTEM_ROOT="$4" RESOURCES="${PACKAGE_PATH}/Contents/Resources" # FIXME(mike) maybe w...
Shell
#!/bin/bash # Copyright 2012 Roman Nurik # # 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