code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh if [ -a /dev/disk0s1s2 ]; then # test for iOS 5 data partition mount_hfs /dev/disk0s1s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s1s2 /mnt2 2>/dev/null elif [ -a /dev/disk0s2s1 ]; then # test for iOS 4 data partition mount_hfs /dev/disk0s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s2s1 /mnt2 2>/dev...
Shell
#!/bin/sh cat /dev/rdisk0s2s1 | netcat -l -p 1234
Shell
#!/bin/bash set +e set -o errexit if [ $# -ne 4 ] then echo "Syntax: $0 IPSW RAMDISK KEY IV" echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters" exit fi IPSW=$1 RAMDISK=$2 KEY=$3 IV=$4 CUSTOMRAMDISK="myramdisk.dmg" IMG3FS="./img3fs/img3fs" IMG3MNT="/tmp/img3" ...
Shell
#!/bin/sh SSHOPTS="-p 2222 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null" UDID=`ssh $SSHOPTS root@localhost "./device_infos udid"` if [ "$UDID" == "" ]; then exit fi echo "Device UDID : $UDID" mkdir -p $UDID DATE=`date +"%Y%m%d-%H%M"` OUT=$UDID/data_$DATE.dmg echo "Dumping data partition in $OUT ....
Shell
#!/bin/bash basedir=`pwd|tr -d '\n'` component=wcsite port=80 deploydir=${basedir}/deployment/${component} htmldir=${basedir}/src/html/${component} cssdir=${basedir}/src/css/${component} jsdir=${basedir}/src/js/${component} pythondir=${basedir}/src/python/${component} case $1 in deploy) echo "deploy the wikicast...
Shell
#!/bin/bash basedir=`pwd|tr -d '\n'` component=urlogging port=80 deploydir=${basedir}/deployment/${component} gaedir=${basedir}/ext/gae htmldir=${basedir}/src/html/${component} cssdir=${basedir}/src/css/${component} jsdir=${basedir}/src/js/${component} pythondir=${basedir}/src/python/${component} function init() {...
Shell
#!/bin/bash basedir=`pwd|tr -d '\n'` component=urlogging port=80 deploydir=${basedir}/deployment/${component} gaedir=${basedir}/ext/gae htmldir=${basedir}/src/html/${component} cssdir=${basedir}/src/css/${component} jsdir=${basedir}/src/js/${component} pythondir=${basedir}/src/python/${component} function init() {...
Shell
#!/bin/bash basedir=`pwd|tr -d '\n'` component=wcsite port=80 deploydir=${basedir}/deployment/${component} htmldir=${basedir}/src/html/${component} cssdir=${basedir}/src/css/${component} jsdir=${basedir}/src/js/${component} pythondir=${basedir}/src/python/${component} case $1 in deploy) echo "deploy the wikicast...
Shell
#!/bin/sh NOSE_WITH_DOCTEST=t export NOSE_WITH_DOCTEST NOSE_DOCTEST_EXTENSION=txt export NOSE_DOCTEST_EXTENSION #NOSE_DETAILED_ERRORS=t #export NOSE_DETAILED_ERRORS nosetests $*
Shell
#!/bin/sh NOSE_WITH_DOCTEST=t export NOSE_WITH_DOCTEST NOSE_DOCTEST_EXTENSION=txt export NOSE_DOCTEST_EXTENSION #NOSE_DETAILED_ERRORS=t #export NOSE_DETAILED_ERRORS nosetests $*
Shell
#! /bin/sh # # this file is *inserted* into the install section of the generated # spec file # # this is, what dist.py normally does python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" for i in `cat INSTALLED_FILES`; do if [ -f ${RPM_BUILD_ROOT}/$i ]; then echo $i >>FILES fi if [ -d ...
Shell
#! /bin/sh # # this file is *inserted* into the install section of the generated # spec file # # this is, what dist.py normally does python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" for i in `cat INSTALLED_FILES`; do if [ -f ${RPM_BUILD_ROOT}/$i ]; then echo $i >>FILES fi if [ -d ...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/bin/sh # Copyright 2011 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 gcc $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c go build main.go LD_LIBRARY_PATH=. ./main rm -f libcgosotest.so main
Shell
#!/usr/bin/env bash # Copyright 2010 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 is a small script for executing go binaries on the android platform. # # example: # ./a 5.out foo bar baz # # The script exports the l...
Shell
#!/bin/bash GOROOT=/usr/local/go echo "Fixing permissions" cd $GOROOT find . -exec chmod ugo+r \{\} \; find bin -exec chmod ugo+rx \{\} \; find . -type d -exec chmod ugo+rx \{\} \; chmod o-w . echo "Fixing debuggers via sudo.bash" # setgrp procmod the debuggers (sudo.bash) cd $GOROOT/src ./sudo.bash echo "Installin...
Shell
#!/bin/bash # Copyright 2011 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 if ! test -f ../../src/all.bash; then echo >&2 "package.bash must be run from $GOROOT/misc/osx" exit 1 fi echo >&2 "Locating PackageMaker......
Shell
#!/bin/sh # Copyright 2011 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 "$1" in -*) echo 'usage: benchcmp old.txt new.txt' >&2 echo >&2 echo 'Each input file should be go test -test.run=NONE -test.bench=. > [old,new...
Shell
#!/bin/bash -e # # Copyright 2012 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. # # Tests for import.vim. cd $(dirname $0) cat > base.go <<EOF package test import ( "bytes" "io" "net" "mycorp/foo" ) EOF fail=0 # usage...
Shell
#!/usr/bin/env bash # Copyright 2012 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. # Illustrates how a Go language specification can be installed for Xcode 4.x., # to enable syntax coloring, by adding an entry to a plugindata...
Shell
#!/usr/bin/env 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 case "`uname`" in Darwin) ;; *) exit 0 esac eval $(go env) if ! [ -x $GOTOOLDIR/cov -a -x $GOTOOLDIR/prof ]; then echo "You don't n...
Shell
#!/usr/bin/env 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 if [ ! -f make.bash ]; then echo 'all.bash must be run from $GOROOT/src' 1>&2 exit 1 fi OLDPATH="$PATH" . ./make.bash --no-banner bash...
Shell
#!/bin/rc -e # Copyright 2012 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. eval `{go tool dist env -9} if(! test -x $GOTOOLDIR/dist){ echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >[1=2] exit noclean } $GOBIN/go cl...
Shell
#!/usr/bin/env 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. # Environment variables that control make.bash: # # GOROOT_FINAL: The expected final Go root, baked into binaries. # The default is the locatio...
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. trap "rm -f arch_GOARCH.h defs_GOOS_GOARCH.h os_GOOS.h signals_GOOS.h" EXIT INT TERM set -e SYS=$1 export GOOS=$(echo $SYS | sed 's/_.*//') export GOARC...
Shell
#!/usr/bin/env 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....
Shell
#!/usr/bin/env 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....
Shell
#!/usr/bin/env 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 eval $(go env) unset CDPATH # in case user has it set unset GOPATH # we disallow local import for non-local packages, if $GOROOT ha...
Shell
#!/usr/bin/env bash # Copyright 2011 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 script creates the .zip, index, and configuration files for running # godoc on app-engine. # # If an argument is provided it is assumed...
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 builtin.c from $* (runtime.go and unsafe.go). # Run this after changing runtime.go and unsafe.go # or after changing the export metadata forma...
Shell
#!/bin/sh # Copyright 2012 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. go help documentation > doc.go gofmt -w doc.go
Shell
#!/bin/bash # Copyright 2012 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 go build -o testgo ok=true unset GOPATH unset GOBIN # Test that error messages have file:line information # at beginning of line. for i in t...
Shell
#!/bin/sh x() { echo '--- ' "$@" "$@" echo '---' echo } x go help x go help build x go help clean x go help install x go help fix x go help fmt x go help get x go help list x go help test x go help version x go help vet x go help gopath x go help importpath x go help remote
Shell
#!/bin/rc -e # Copyright 2012 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. if(! test -f make.rc){ echo 'all.rc must be run from $GOROOT/src' >[1=2] exit wrongdir } . ./make.rc --no-banner ./run.rc --no-rebuild $GOTOOLDIR/d...
Shell
#!/bin/rc -e # Copyright 2012 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. eval `{go env -9} # allow all.rc to avoid double-build of everything rebuild = true if(~ $1 --no-rebuild) shift if not { echo '# Building packages ...
Shell
#!/usr/bin/env 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 eval $(go tool dist env) if [ ! -x $GOTOOLDIR/dist ]; then echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2 exit 1 fi "$GOB...
Shell
#!/bin/rc -e # Copyright 2012 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. # Environment variables that control make.rc: # # GOROOT_FINAL: The expected final Go root, baked into binaries. # The default is the location of the ...
Shell
#!/usr/bin/env bash # Copyright 2010 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 wiki_pid= cleanup() { kill $wiki_pid rm -f test_*.out Test.txt final-test.bin final-test.go } trap cleanup 0 INT go build -o get.bin ...
Shell
#!/usr/bin/env 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 goos=$(go env GOOS) defer_panic_recover=" defer defer2 " effective_go=" eff_bytesize eff_qr eff_sequence " error_handling=" er...
Shell
#!/bin/sh # Copyright 2012 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 script rebuilds the time zone files using files # downloaded from the ICANN/IANA distribution. # Versions to use. CODE=2011i DATA=2011n set -e ...
Shell
#!/bin/bash # Copyright 2011 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. # Test the code review plugin. # Assumes a local Rietveld is running using the App Engine SDK # at http://localhost:7777/ # # dev_appserver.py -p 7777...
Shell
#!/usr/bin/env 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. eval $(go tool dist env) export GOARCH GOOS GOROOT export E= case X"$GOARCH" in Xamd64) export A=6 ;; X386) export A=8 ;; Xarm) export A=...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
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 databaseName="wikiubb" echo echo 'Starting script...' echo echo echo 'Updating repository' sudo apt-get update echo 'Finished updating repository' echo echo echo 'Setting up MySQL 5.6' sudo apt-get install mysql-server-5.6 echo 'Finished setting up MySQL 5.6' echo echo echo 'Setting up Python2.7' sudo ...
Shell
#!/bin/bash databaseName="wikiubb" echo echo 'Starting script...' echo echo echo 'Updating repository' sudo apt-get update echo 'Finished updating repository' echo echo echo 'Setting up MySQL 5.6' sudo apt-get install mysql-server-5.6 echo 'Finished setting up MySQL 5.6' echo echo echo 'Setting up Python2.7' sudo ...
Shell
sz=`du out/kernel -b` sz=${sz%%out*} sz=$(( (sz / 512 + 1) * 512 - $sz)) dd if=/dev/zero of=$1 bs=1 count=$sz
Shell
#!/bin/bash pushd $(dirname $0) > /dev/null; script_dir=$PWD; popd > /dev/null pactester=$script_dir/../src/pactester pacfile=$script_dir/proxy.pac testdata=$script_dir/testdata library_path=$script_dir/../src export DYLD_LIBRARY_PATH=$library_path export LD_LIBRARY_PATH=$library_path lib=$library_path/libpacparser....
Shell
#!/bin/bash -ex # # $Id$ # Copyright 2009 Google Inc. All Rights Reserved. # Author: manugarg@google.com (Manu Garg) ARCH=$(uname) if [ "$ARCH" == "Linux" ]; then DL_EXT="so" fi if [ "$ARCH" == "Darwin" ]; then DL_EXT="dylib" fi function install_stuff { if [ $(id -u) == 0 ]; then set -e find . -name "li...
Shell
#!/bin/sh -e # # This script creates a Mac package, that can be directly installed by # Installer on Mac. ver=$1 [ -z $ver ] && echo "Please specify package version." && exit # $stage_dir is where we'll install our package files. stage_dir=/tmp/pacparser_$RANDOM sudo rm -rf /tmp/pacparser* mkdir -p $stage_dir if [ !...
Shell
#!/bin/bash -e USAGE=" Usage: $0 [-n] [-v version]\n -n : Create a new release. Tag the current repository revision as version\n -v version: Specify the version. If not specified, the latest hg tag is used. \n This option is required for a new release.\n " while getopts "nv:" flag do if [ "$flag"...
Shell
#!/bin/bash tools_dir=$(dirname $0) if [ "${tools_dir:0:1}" != "/" ]; then tools_dir=$PWD/$tools_dir fi docs_dir=$tools_dir/../docs src_dir=$tools_dir/../src tmpdir=$TMPDIR/pacparser_doxygen_temp_$$ mkdir -p $tmpdir cd $tmpdir cp $src_dir/pacparser.h . doxygen $docs_dir/doxygen.config if [ $? != 0 ]; then echo...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
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
mkdir $1tmp; for i in find -name $1*.php; do echo $i; iconv -c -f gbk -t utf8 $i > $1tmp/iconv.tmp; mv $1tmp/iconv.tmp $i; done rm -rf $1tmp
Shell
#!/bin/sh #定义MYSQL路径,备份用户、密码等 MYSQLBIN=/opt/soft/mysql/bin/mysql MYSQLDUMP=/opt/soft/mysql/bin/mysqldump ##备份账号权限 #SELECT, RELOAD, SHOW DATABASES, SUPER, LOCK TABLES, REPLICATION #CLIENT MYSQLUSER=root MYSQLPASSWORD=89487bda8ec96121d8b47d41a0e6487d #备份文件命名(本机ip) MYSQLBACKNM=180.186.35.81 #定义MySQL本地备份路径 LOCALPATH...
Shell
export RUBYLIB=../ext/metasm:../src/metasm/ export LD_LIBRARY_PATH=/usr/local/lib
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 # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) an...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 Denis Nelubin aka Gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
Shell
#!/bin/sh TARGETS=$* buildin() { BASE_DIR=$(pwd) cd $1 ant $TARGETS cd $BASE_DIR } buildin core buildin skins/black-text buildin skins/white-text buildin skins/black-text-plus buildin skins/white-text-plus buildin skins/bigger-text
Shell
#!/bin/sh VERS="8.1.0" DATE="2006-10-22" # Leave the desired layout uncommented. #LAYOUT=layout1 # Tables based layout. LAYOUT=layout2 # CSS based layout. ASCIIDOC_HTML="python ../../asciidoc.py --backend=xhtml11 --conf-file=${LAYOUT}.conf --attribute icons --attribute iconsdir=./images/icons --attribute=ba...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without ...
Shell
#!/bin/bash mntdir="mountdir" loopdev="testblock" cleanup () { sudo umount -v "$mntdir" sudo rmmod -v vvsfs rmdir -v "$mntdir" rm -v "$loopdev" } if [ "$1" == "down" ]; then cleanup exit 0 fi cusdir=/usr/src/linux [ -n "$KSRCDIR" ] && cusdir="$KSRCDIR" make KSRCDIR="$cusdir" all || exit 1 dd if=/dev/zero of="$...
Shell
#!/bin/bash cat <<EOM | cat blah EOM #| tee
Shell
#!/bin/bash set -ex python -c 'import sys; print sys.argv' $* python -c 'import sys; print sys.argv' "$*" python -c 'import sys; print sys.argv' $@ python -c 'import sys; print sys.argv' "$@"
Shell
gcc -o threaded-c threaded-c.c `pkg-config --cflags --libs glib-2.0` -std=c99 -Wall
Shell
#!/bin/bash set -u generate() { for i in `seq 2 10000`; do echo "$i" done } filter() { while read n; do if [ $(($n % $1)) -ne 0 ]; then echo "$n" fi done } dir=$(mktemp -d) ch=0 mkfifo "$dir/$ch" generate > "$dir/$ch" & while true; do exec 3<"$dir/$ch" rea...
Shell
#! /bin/bash emerge --sync && \ layman -S && \ update-eix && \ emerge -vDNua world
Shell
#!/bin/bash hamachi start hamachi login && sleep 5 echo Joining Hamachi network... hamachi join n00b69 && sleep 2 hamachi go-online n00b69 && sleep 2 hamachi get-nicks echo Adding broadcast route... sudo route add 255.255.255.255 dev ham0 hamachi list && \ echo Connected to Hamachi!
Shell
#!/bin/bash tibwin=`xdotool search 'Tibia Player Linux'` xdotool windowfocus $tibwin xdotool key Down
Shell