code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. case "`uname`" in Darwin) ;; *) exit 0 esac for i in prof cov do sudo cp $GOROOT/src/cmd/$i/6$i /usr/local/bin/6$i sudo chgrp procmod /usr/local/b...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e bash make.bash bash run.bash
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e GOBIN="${GOBIN:-$HOME/bin}" export MAKEFLAGS=-j4 if ! test -f $GOROOT/include/u.h then echo '$GOROOT is not set correctly or not exported' 1>&...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # The master for this file is $GOROOT/src/quietgcc.bash # Changes made to $HOME/bin/quietgcc will be overridden. # Gcc output that we don't care to se...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e GOBIN="${GOBIN:-$HOME/bin}" export MAKEFLAGS=-j4 if ! test -f $GOROOT/include/u.h then echo '$GOROOT is not set correctly or not exported' 1>&...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. OUT="Make.deps" TMP="Make.deps.tmp" if [ -f $OUT ] && ! [ -w $OUT ]; then echo "$0: $OUT is read-only; aborting." 1>&2 exit 1 fi # Get list of dire...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions. case "...
Shell
#!/usr/bin/perl # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This program reads a file containing function prototypes # (like syscall_darwin.go) and generates system call bodies. # The prototypes are marked...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Run the interpreter against all the Go test programs # that begin with the magic # // $G $D/$F.go && $L $F.$A && ./$A.out # line and do not contain ...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e # no core files, please ulimit -c 0 xcd() { echo echo --- cd $1 builtin cd $1 } maketest() { for i do ( xcd $i make clean tim...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e bash clean.bash . $GOROOT/src/Make.$GOARCH if [ -z "$O" ]; then echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 exit 1 fi cd ${O}l bash mke...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e . $GOROOT/src/Make.$GOARCH if [ -z "$GC" ]; then echo 'missing $GC - maybe no Make.$GOARCH?' 1>&2 exit 1 fi gcc -o mkbuiltin1 mkbuiltin1.c rm ...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Using all the test*.go files in the current directory, write out a file # _testmain.go that runs all its tests. Compile everything and run the # test...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. . $GOROOT/src/Make.$GOARCH if [ -z "$O" ]; then echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 exit 1 fi CMD="./gofmt" TMP1=test_tmp1.go TMP2=test_...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. for i in cc 6l 6a 6c 8l 8a 8c 8g 5l 5a 5c 5g gc 6g gopack nm cgo cov ebnflint godefs godoc gofmt gotest goyacc hgpatch prof do cd $i make clean cd ....
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e bash make-arm.bash # TODO(kaib): add in proper tests #bash run.bash set -e xcd() { echo echo --- cd $1 builtin cd $1 } # temporarily turn...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # TODO(rsc): delete in favor of all.bash once nacl support is complete set -e bash make.bash xcd() { echo echo --- cd $1 builtin cd $1 } (xcd pkg...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. rm -rf $GOROOT/pkg/${GOOS}_$GOARCH rm -f $GOROOT/lib/*.a for i in lib9 libbio libcgo libmach cmd pkg \ ../misc/cgo/gmp ../misc/cgo/stdio \ ../test/be...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e TXT=${1:-go_tutorial.txt} # input file HTML=$(basename $TXT .txt).html # output file (basename) TMP=TEMP.txt # input to htmlgen if ! test -...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # generate HTML for a program excerpt. # first arg is file name # second arg is awk pattern to match start line # third arg is awk pattern to stop proces...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. . $GOROOT/src/Make.$GOARCH if [ -z "$O" ]; then echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 exit 1 fi rm -f *.$O for i in \ file.go \ hellow...
Shell
#!/bin/bash # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. export E="" case X"$GOARCH" in Xamd64) export A=6 ;; X386) export A=8 ;; Xarm) export A=5 export E=${EMU_arm:-qemu-arm -cpu cortex-a8} ;; *) ec...
Shell
#!/bin/sh OS=568 rm -f [$OS].out *.[$OS]
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e . $GOROOT/src/Make.$GOARCH PATH=.:$PATH mode=run case X"$1" in X-test) mode=test shift esac gc() { $GC $1.go; $LD $1.$O } gc_B() { $GC -B ...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. case X"$GOARCH" in X386) export A=8 export E=nacl ;; *) echo 1>&2 run: unsupported '$GOARCH' exit 1 esac export G=${A}g export L=${A}l export GOTRA...
Shell
#!/bin/sh # Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. export E="" case X"$GOARCH" in Xamd64) export A=6 ;; X386) export A=8 ;; Xarm) export A=5 export E="qemu-arm -cpu cortex-a8 " ;; *) echo 1>&2 run...
Shell
#!/bin/sh # # dex2jar - Tools to work with android .dex and java .class files # Copyright (c) 2009-2012 Panxiaobo # # 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...
Shell
#!/bin/bash echo "....................." echo ""; echo "Creating jar in directory stable ... "; # # Create Manifest # kk=`cat .classpath | sed "s/<classpathentry.* kind=\"lib\" path=\"//g"` kk=`echo -e $kk | sed "s/<?xml.*CONTAINER//g"` kk=`echo -e $kk | sed "s/<classpathentr.*th>//g"` kk=`echo -e $kk | sed "s/\"\...
Shell
#!/bin/sh echo "....................." echo ""; echo "Starting Web X Server ... "; cd stable java -jar xhttp.jar
Shell
#!/bin/bash echo "....................." echo ""; echo "Creating jar in directory stable ... "; # # Create Manifest # kk=`cat .classpath | sed "s/<classpathentry.* kind=\"lib\" path=\"//g"` kk=`echo -e $kk | sed "s/<?xml.*CONTAINER//g"` kk=`echo -e $kk | sed "s/<classpathentr.*th>//g"` kk=`echo -e $kk | sed "s/\"\...
Shell
#!/bin/sh echo "....................." echo ""; echo "Starting Web X Server ... "; cd stable java -jar xhttp.jar
Shell
#!/bin/sh sudo cp output.js /var/www/bau.js
Shell
rm output.js DISPLAY=localhost:2.0 $1
Shell
#!/bin/sh sudo cp output.js /var/www/bau.js
Shell
#!/bin/bash # $Id: template_generator_mimetype.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Shell script that adds a new mimetype without transform function. # # The filename should contain either 'mimetype_subtype' or 'mimetype'. # The suffix '.inc.php' is appended automatically! # # Example: template_generator_mimet...
Shell
#!/bin/bash # $Id: template_generator.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Shell script that adds a new mimetype with transform function. # # The filename should contain either 'mimetype_subtype' or 'mimetype'. # The suffix '.inc.php' is appended automatically! # # The 'description' parameter will add a new ent...
Shell
#!/bin/bash # $Id: generator.sh,v 2.0 2003/11/18 15:20:44 nijel Exp $ # # Shell script that adds a new function file using a template. Should not be called directly # but instead by template_Generator.sh and template_generator_mimetype.sh # # # $1: Template # $2: Filename # $3: (optional) Description if [ $# == 0 ] th...
Shell
#!/bin/bash # $Id: template_generator_mimetype.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Shell script that adds a new mimetype without transform function. # # The filename should contain either 'mimetype_subtype' or 'mimetype'. # The suffix '.inc.php' is appended automatically! # # Example: template_generator_mimet...
Shell
#!/bin/bash # $Id: generator.sh,v 2.0 2003/11/18 15:20:44 nijel Exp $ # # Shell script that adds a new function file using a template. Should not be called directly # but instead by template_Generator.sh and template_generator_mimetype.sh # # # $1: Template # $2: Filename # $3: (optional) Description if [ $# == 0 ] th...
Shell
#!/bin/bash # $Id: template_generator.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Shell script that adds a new mimetype with transform function. # # The filename should contain either 'mimetype_subtype' or 'mimetype'. # The suffix '.inc.php' is appended automatically! # # The 'description' parameter will add a new ent...
Shell
#!/bin/bash # $Id: add_message_file.sh,v 2.0 2003/11/18 15:20:38 nijel Exp $ # # Shell script that adds a message file to all message files # adding "//to translate" on each line # # Example: add_message_file.sh xxx # if [ $# -ne 1 ] ; then echo "usage: add_message_file.sh filename" exit 1 fi for file ...
Shell
#!/bin/sh # $Id: sync_lang.sh,v 2.3.2.1 2004/06/07 10:24:45 rabus Exp $ ## # Shell script that synchronises all translations in phpMyAdmin ## # Any parameters (except --iconv/--recode) will be passed to grep to filter # processed translation, for example: './sync_lang.sh czech' will process only # czech translation, '....
Shell
#!/bin/sh # $Id: sort_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ ## # Shell script to make each language file neat and tidy # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## specialsort() { in=$1 out=$2 STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for i...
Shell
#!/bin/sh # $Id: translatecount.sh,v 2.0 2003/11/18 15:20:42 nijel Exp $ ## # Shell script to produce counts of just how out of date the translations are! ## # Accepts optional parameters of a list of files to produce counts from # Defaults to using all files ## # Written by Robin Johnson <robbat2 at users.sourceforge....
Shell
#!/bin/sh # $Id: check_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ ## # Shell script to check that all language files are syncronized # Catches duplicate/missing strings # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## MASTER="english-iso-8859-1.inc.php" TMPDIR="tmp-check" FILEPAT="*.inc.php" ST...
Shell
#!/bin/bash # $Id: add_message_file.sh,v 2.0 2003/11/18 15:20:38 nijel Exp $ # # Shell script that adds a message file to all message files # adding "//to translate" on each line # # Example: add_message_file.sh xxx # if [ $# -ne 1 ] ; then echo "usage: add_message_file.sh filename" exit 1 fi for file ...
Shell
#!/bin/bash # $Id: add_message.sh,v 2.0 2003/11/18 15:20:38 nijel Exp $ # # Shell script that adds a message to all message files (Lem9) # # Example: add_message.sh '$strNewMessage' 'new message contents' # if [ $# -ne 2 ] ; then echo "usage: add_message.sh '\$strNewMessage' 'new message contents'" exit 1 fi ...
Shell
#!/bin/bash # $Id: remove_message.sh,v 2.0 2003/11/18 15:20:39 nijel Exp $ # # Shell script that removes a message from all message files (Lem9) # it checks for the message, followed by a space # # Example: remove_message.sh 'strMessageToRemove' # if [ $# -ne 1 ] ; then echo "usage: remove_message.sh 'strMessage...
Shell
#!/bin/sh # $Id: translatecount.sh,v 2.0 2003/11/18 15:20:42 nijel Exp $ ## # Shell script to produce counts of just how out of date the translations are! ## # Accepts optional parameters of a list of files to produce counts from # Defaults to using all files ## # Written by Robin Johnson <robbat2 at users.sourceforge....
Shell
#!/bin/bash # $Id: add_message.sh,v 2.0 2003/11/18 15:20:38 nijel Exp $ # # Shell script that adds a message to all message files (Lem9) # # Example: add_message.sh '$strNewMessage' 'new message contents' # if [ $# -ne 2 ] ; then echo "usage: add_message.sh '\$strNewMessage' 'new message contents'" exit 1 fi ...
Shell
#!/bin/bash # $Id: remove_message.sh,v 2.0 2003/11/18 15:20:39 nijel Exp $ # # Shell script that removes a message from all message files (Lem9) # it checks for the message, followed by a space # # Example: remove_message.sh 'strMessageToRemove' # if [ $# -ne 1 ] ; then echo "usage: remove_message.sh 'strMessage...
Shell
#!/bin/sh # $Id: check_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ ## # Shell script to check that all language files are syncronized # Catches duplicate/missing strings # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## MASTER="english-iso-8859-1.inc.php" TMPDIR="tmp-check" FILEPAT="*.inc.php" ST...
Shell
#!/bin/sh # $Id: sync_lang.sh,v 2.3.2.1 2004/06/07 10:24:45 rabus Exp $ ## # Shell script that synchronises all translations in phpMyAdmin ## # Any parameters (except --iconv/--recode) will be passed to grep to filter # processed translation, for example: './sync_lang.sh czech' will process only # czech translation, '....
Shell
#!/bin/sh # $Id: sort_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ ## # Shell script to make each language file neat and tidy # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## specialsort() { in=$1 out=$2 STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for i...
Shell
#!/bin/sh # # $Id: remove_control_m.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Script to remove ^M from files for DOS <-> UNIX conversions # if [ $# != 1 ] then echo "Usage: remove_control_m.sh <extension of files>" echo "" echo "Example: remove_control_m.sh php3" exit fi for i in `find . -name "*.$1"` do...
Shell
#!/bin/sh # # $Id: create-release.sh,v 2.4.2.3 2004/06/08 22:16:25 rabus Exp $ # # 2004-06-07 rabus@users.sourceforge.net # - create backup config file # # 2004-04-29, lem9@users.sourceforge.net: # - keep only the previous cvs directory created # # 2004-04-16, lem9@users.sourceforge.net: # - daily snapshot when called...
Shell
#!/bin/sh # # $Id: extchg.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net> # modified by Tobias Ratschiller to allow any file extension # part of the phpMyAdmin distribution <http://phpmyadmin.net/> # # 2001-07-07, lem9@users.sourceforge.net: # - suppo...
Shell
#!/bin/sh # # inno2pma # # insert InnoDB foreign keys into phpmyadmin relation table # by Ernie Hershey 3/15/2003 # # THIS IS AN EXPERIMENTAL SCRIPT - PLEASE DO NOT USE THIS # IF YOU DON'T UNDERSTAND WHAT IT IS DOING! # # This was posted on the Open Discussion forum by # ehershey. The idea is interesting, however we sh...
Shell
#!/bin/sh # # $Id: extchg.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net> # modified by Tobias Ratschiller to allow any file extension # part of the phpMyAdmin distribution <http://phpmyadmin.net/> # # 2001-07-07, lem9@users.sourceforge.net: # - suppo...
Shell
#!/bin/sh # # inno2pma # # insert InnoDB foreign keys into phpmyadmin relation table # by Ernie Hershey 3/15/2003 # # THIS IS AN EXPERIMENTAL SCRIPT - PLEASE DO NOT USE THIS # IF YOU DON'T UNDERSTAND WHAT IT IS DOING! # # This was posted on the Open Discussion forum by # ehershey. The idea is interesting, however we sh...
Shell
#!/bin/sh # # $Id: create-release.sh,v 2.4.2.3 2004/06/08 22:16:25 rabus Exp $ # # 2004-06-07 rabus@users.sourceforge.net # - create backup config file # # 2004-04-29, lem9@users.sourceforge.net: # - keep only the previous cvs directory created # # 2004-04-16, lem9@users.sourceforge.net: # - daily snapshot when called...
Shell
#!/bin/sh # # $Id: remove_control_m.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $ # # Script to remove ^M from files for DOS <-> UNIX conversions # if [ $# != 1 ] then echo "Usage: remove_control_m.sh <extension of files>" echo "" echo "Example: remove_control_m.sh php3" exit fi for i in `find . -name "*.$1"` do...
Shell
#!/bin/sh echo "<html><head>" echo "" echo "<title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head>" echo "<body background="./img/boo.jpg"; bgcolor="#FFFFFF" >" echo "<h1 align=center style="border-style:outset" > The information you need i...
Shell
#!/bin/sh echo "<html><head>" echo "" echo "<title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head>" echo "<body background="./img/boo.jpg"; bgcolor="#FFFFFF" >" echo "<h1 align=center style="border-style:outset" > The information you need i...
Shell
#!/bin/sh echo "<html><head>" echo "" echo "<title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head>" echo "<body background="./img/boo.jpg"; bgcolor="#FFFFFF" >" echo "<h1 align=center style="border-style:outset" > The imformation you need i...
Shell
#!/bin/sh echo "<html><head>" echo "" echo "<title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head>" echo "<body background="./img/boo.jpg"; bgcolor="#FFFFFF" >" echo "<h1 align=center style="border-style:outset" > The imformation you need i...
Shell
#!/bin/sh echo "<html><head><title>Led控制</title><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>" echo "<body><div width=900px><div align=center><h1>Led控制</h1></div><hr> <div>" echo $XY_led led=1 if [ -nz $XY_led ]; then if [ $XY_led -eq $led ]; then echo "led off" # elif [ $XY_led == 0 ...
Shell
#!/bin/sh echo "<html><head><title>Led控制</title><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>" echo "<body><div width=900px><div align=center><h1>Led控制</h1></div><hr> <div>" echo $XY_led led=1 if [ -nz $XY_led ]; then if [ $XY_led -eq $led ]; then echo "led off" # elif [ $XY_led == 0 ...
Shell
#!/bin/sh echo "Content-type: text/html; charset=UTF-8\r\n\r\n" echo "" echo "" #echo "Set-Cookie:user=helight.xu" echo "<html><head><title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head><body background='./img/boo.jpg'; bgcolor='#FFFFFF' ...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" #echo "Set-Cookie:user=helight.xu" echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" echo "<html>" echo "<head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /><title>XiYou...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" #echo "Set-Cookie:user=helight.xu" echo "<Cotent-type: text/html>" echo echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" echo "<html>" echo "<head><meta http-equiv='Content-Type' content='te...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" echo "<Cotent-type: text/html>" echo echo "<html><head><title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head><body background='./img/boo.jpg'; bgcolor='#FFFFFF' >" echo "<h1 align=center sty...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" echo "<Cotent-type: text/html>" echo echo "<html><head><title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head><body background='./img/boo.jpg'; bgcolor='#FFFFFF' >" echo "<h1 align=center sty...
Shell
#!/bin/sh echo "Content-type: text/html; charset=UTF-8\r\n\r\n" echo "" echo "" #echo "Set-Cookie:user=helight.xu" echo "<html><head><title>The content you want </title>" echo "<meta http-equiv="Content-Style-Type"content="text/css";charset="gb2312">" echo "</head><body background='./img/boo.jpg'; bgcolor='#FFFFFF' ...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" #echo "Set-Cookie:user=helight.xu" echo "<Cotent-type: text/html>" echo echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" echo "<html>" echo "<head><meta http-equiv='Content-Type' content='te...
Shell
#!/bin/sh #echo "Content-type:text/html\r\n\r\n" #echo "Set-Cookie:user=helight.xu" echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" echo "<html>" echo "<head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /><title>XiYou...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
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 # 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/bash # # Copyright 2012, Google Inc # # Generates a zip of the google api python client and dependencies. # # Author: afshar@google.com (Ali Afshar) # Exit on failure. set -e # Where to build the zip. ROOT_PATH=$(pwd)/build/gae BUILD_PATH=${ROOT_PATH}/build LIB_PATH=${ROOT_PATH}/lib ENV_PATH=${ROOT_PATH}/ve LO...
Shell
#!/bin/bash # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
#!/bin/bash # # Copyright 2011 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Uploads a training data set to Google Storage to be used by this sample # application. # # Usage: # setup.sh file_name bucket/object # # Requirements: # gsutil - a client application for interacting with...
Shell
#!/bin/bash openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \ -keyout privatekey.pem -out publickey.pem \ -subj "/CN=unit-tests" openssl pkcs12 -export -out privatekey.p12 \ -inkey privatekey.pem -in publickey.pem \ -name "key" -passout pass:notasecret openssl pkcs12 -in privatekey.p12 \ -nodes -...
Shell
export PYTHONPATH=`pwd`:${PYTHONPATH}
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 rmmod r8192s_usb rmmod ieee80211_rsl rmmod ieee80211_crypt_ccmp rmmod ieee80211_crypt_tkip rmmod ieee80211_crypt_wep rmmod ieee80211_crypt
Shell
#!/bin/bash var0=`ps aux|awk '/dhclient wlan0/'|awk '$11!="awk"{print $2}'` kill $var0 cp ifcfg-wlan0 /etc/sysconfig/network-scripts/ dhclient wlan0 var1=`ifconfig wlan0 |awk '/inet/{print $2}'|awk -F: '{print $2}'` rm -f /etc/sysconfig/network-scripts/ifcfg-wlan0 echo "get ip: $var1"
Shell
#!/bin/bash if [ "`which iwconfig`" = "" ] ; then echo "WARNING:Wireless tool not exist!" echo " Please install it!" exit else if [ `uname -r | cut -d. -f2` -eq 4 ]; then wpa_supplicant -D ipw -c wpa1.conf -i wlan0 else if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then wpa_supplicant...
Shell
#To build Android makefile: # CONFIG=release VARIANT=mali200-r2p2-gles11-gles20-linux-android-gingerbread-ump TARGET_TOOLCHAIN=arm-linux-gcc make export ANDROID_D=/dos/git/SPEAr1340 #export CCOMPILER=$ANDROID_D/prebuilt/linux-x86/toolchain/arm-eabi-4.3.0/bin/arm-eabi- export CCOMPILER=$ANDROID_D/prebuilt/linux-x...
Shell
# # Copyright (C) 2008 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 applicable la...
Shell
#!/bin/sh CURR_PATH=`pwd` echo "Collect System Rootfs" cp -rf $CURR_PATH/data $CURR_PATH/root cp -rf $CURR_PATH/system $CURR_PATH/root cp -rf $CURR_PATH/symbols/data $CURR_PATH/root cp -rf $CURR_PATH/symbols/sbin $CURR_PATH/root cp -rf $CURR_PATH/symbols/system $CURR_PATH/root echo "Update System permission" chown ...
Shell
#!/system/xbin/sh cd /system/xbin ./busybox --install -s /system/xbin /xbin/sh ##For 1GB boards /system/xbin/busybox insmod /system/lib/modules/ump.ko ump_debug_level=2 ump_memory_address=0x3C000000 ump_memory_size=0x03000000 /system/xbin/busybox insmod /system/lib/modules/mali.ko mali_debug_level=2 mali_memory_addr...
Shell