code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/usr/bin/env bash
# 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 to in writing, s... | Shell |
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ma... | Shell |
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ma... | Shell |
#!/bin/sh
#
# helper script for capture picture on device
#
# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 12:42:48 CST 2011
#
#
ADB_OPTIONS=
PNG="/data/local/fbdump.png"
if [ ! "$FB2PNG" = "" ];
then
adb $ADB_OPTIONS push $FB2PNG /data/local
adb $ADB_OPTIONS shell chmod 777 /data/local
adb $ADB_OPTIONS shell /data/l... | Shell |
#!/bin/sh
#
# view argb8888
#
# Modified:
# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 01:45:54 CST 2011
#
# Initial version
# Kyan He <kyan.ql.he@gmail.com> @ Mon Sep 20 11:45:54 CST 2010
#
if ! which ffmpeg >/dev/null;
then
echo "no ffmpeg found"
elif [[ ! $# -eq 2 ]];
then
echo "Usage: `basename $0` <data... | 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/bash
# $Id$
base=`dirname $0`/..
cd $base
VERSION=`grep 'VERSION =' setup.py | cut -d "'" -f2`
# Source dists
python setup.py sdist --formats=gztar,zip
# Eggs
python2.4 setup.py bdist_egg --exclude-source-files
python2.5 setup.py bdist_egg --exclude-source-files
python2.6 setup.py bdist_egg --exclude-source-... | Shell |
#!/bin/bash
# $Id:$
TOOLS=`dirname $0`
BASE=$TOOLS/..
EPYDOC=$TOOLS/epydoc
PYTHONPATH=$EPYDOC:$BASE:$PYTHONPATH
export PYTHONPATH
DOC=$BASE/doc
DOC_HTML=$DOC/html
DOC_HTML_API=$DOC_HTML/api
DOC_HTML_GUIDE=$DOC_HTML/programming_guide
DOC_HTML_TUTORIAL=$DOC_HTML/tutorial
DOC_PDF=$DOC/pdf
function clean() {
# Clean... | Shell |
#!/bin/bash
# $Id:$
ROOT=`dirname $0`/../..
RES=`dirname $0`/res
VERSION=`grep 'VERSION =' $ROOT/setup.py | cut -d "'" -f2`
rm -rf $ROOT/build
# Create AVbin files
mkdir -p $ROOT/build/avbin
rsync -a /usr/local/lib/libavbin.dylib $ROOT/build/avbin/
cp /usr/local/lib/`ls -l /usr/local/lib/libavbin.dylib | \
sed '... | Shell |
#!/bin/bash
# $Id:$
PYGLET_ORG=66.35.48.21
PYGLET_DIR=/home/pyglet/www
rsync -rv website/dist/* $PYGLET_ORG:$PYGLET_DIR/
#rsync -rv doc/html/* $PYGLET_ORG:$PYGLET_DIR/doc/
#rsync -rv doc/pdf/* $PYGLET_ORG:$PYGLET_DIR/doc/
| Shell |
# This file will start the Osm Extraction UI with custom memory settings for
# the JVM. With the below settings the heap size (Available memory for the application)
# will range from 64 megabyte up to 512 megabyte.
java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCreator.jar... | Shell |
#!/bin/sh
# This file will start the Osm Extraction UI with custom memory settings for
# the JVM. With the below settings the heap size (Available memory for the application)
# will range from 64 megabyte up to 512 megabyte.
java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndM... | Shell |
#!/bin/sh
# This file will start the Osm Extraction UI with custom memory settings for
# the JVM. With the below settings the heap size (Available memory for the application)
# will range from 64 megabyte up to 512 megabyte.
java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCrea... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
## VARIABLES ###
LOG_DIR="$DIRECTORY"/logs
DATE=$(date +%d-%m-%y)
LOG_FILE="$LOG_DIR/${DATE}.log"
mkdir $LOG_DIR
# check build already run today
if [ -e "$LOG_FILE" ]; then
echo "Build already ran today"
exit
fi
touch $LOG_FILE
# 1. Update git directory
"${DIRE... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
FTP_SITE=download.osmand.net
FTP_FOLDER=night-builds
FTP_LATEST=latest-night-build
# FTP_USER in local.properties
# FTP_PWD= in local.properties
BUILD_DIR="$DIRECTORY"/builds
LATEST_DIR="$DIRECTORY"/latests
. "$DIRECTORY"/local.properties
# 3. upload to ftp server
lftp -c... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_URL=git://github.com/osmandapp/Osmand.git
GIT_ORIGIN_NAME=origin
HG_DIR="$DIRECTORY"/osmand-hg
HG_URL=https://osmand.googlecode.com/hg
BUILD_DIR="$DIRECTORY"/builds
if [ ! -d "$HG_DIR" ]; then
hg clone ${GIT_URL} "${HG_DIR}"
fi
cd "... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_ORIGIN_NAME=origin
BUILD_DIR="$DIRECTORY"/builds
VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java
DATE=$(date +%d-%m-%y)
SHORT_DATE=$(date +%d-%m)
# clean all files in build directory
rm -r "$BUILD_DIR"
mkdir "$BUILD_DIR"
c... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_URL=git://github.com/osmandapp/Osmand.git
GIT_ORIGIN_NAME=origin
#rm -rf "${GIT_DIR}"
# initialize git if it is not present (clone it)
if [ ! -d "$GIT_DIR" ]; then
git clone ${GIT_URL} "${GIT_DIR}"
fi
# update git
cd "${GIT_DIR}"
gi... | Shell |
#!/bin/sh
# Bzgrep wrapped for bzip2,
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
## zgrep notice:
## zgrep -- a wrapper around a grep program that decompresses files as needed
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
PATH="/usr/bin:$PATH"; export PA... | Shell |
#!/bin/sh
# Bzmore wrapped for bzip2,
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
PATH="/usr/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*less) more=less ;;
*) more=more ;;
esac
if test "`echo -n a`" = "-n a"; then
# looks like a SysV system:
... | Shell |
#!/bin/sh
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
# Bzcmp/diff wrapped for bzip2,
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
# gram on compressed files. All options specified are passed
#... | Shell |
#!/bin/bash
# see the README file for usage etc.
#
# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.6 of 6 September 2010
# Copyright (C) 1996-2010 Julian S... | Shell |
#!/bin/sh
# Bzgrep wrapped for bzip2,
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
## zgrep notice:
## zgrep -- a wrapper around a grep program that decompresses files as needed
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
PATH="/usr/bin:$PATH"; export PA... | Shell |
#!/bin/sh
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
# Bzcmp/diff wrapped for bzip2,
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
# gram on compressed files. All options specified are passed
#... | Shell |
#!/bin/bash
# see the README file for usage etc.
#
# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.6 of 6 September 2010
# Copyright (C) 1996-2010 Julian S... | Shell |
#!/bin/sh
# Bzmore wrapped for bzip2,
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
PATH="/usr/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*less) more=less ;;
*) more=more ;;
esac
if test "`echo -n a`" = "-n a"; then
# looks like a SysV system:
... | Shell |
#!/bin/bash
go fmt ./...
| Shell |
#!/bin/bash
# build binary distributions for linux/amd64 and darwin/amd64
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p $DIR/dist
os=$(go env GOOS)
arch=$(go env GOARCH)
version=$(cat $DIR/util/binary_version.go | grep "const BINARY_VERSION" | awk '{print $NF}' | sed 's/"//g')
goversion=$(go version |... | Shell |
#!/bin/bash
# build binary distributions for linux/amd64 and darwin/amd64
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p $DIR/dist
os=$(go env GOOS)
arch=$(go env GOARCH)
version=$(cat $DIR/util/binary_version.go | grep "const BINARY_VERSION" | awk '{print $NF}' | sed 's/"//g')
goversion=$(go version |... | Shell |
#!/bin/bash
go fmt ./...
| Shell |
#!/bin/bash
set -e
# a helper script to run tests in the appropriate directories
for dir in nsqd nsqlookupd util/pqueue; do
echo "testing $dir"
pushd $dir >/dev/null
go test -test.v -timeout 15s
popd >/dev/null
done
# build and run nsqlookupd
pushd nsqlookupd >/dev/null
go build
echo "starting nsqlook... | Shell |
#!/bin/bash
set -e
# a helper script to run tests in the appropriate directories
for dir in nsqd nsqlookupd util/pqueue; do
echo "testing $dir"
pushd $dir >/dev/null
go test -test.v -timeout 15s
popd >/dev/null
done
# build and run nsqlookupd
pushd nsqlookupd >/dev/null
go build
echo "starting nsqlook... | Shell |
#! /bin/sh
#
# This script is used to configure the Linux kernel.
#
# It was inspired by the challenge in the original Configure script
# to ``do something better'', combined with the actual need to ``do
# something better'' because the old configure script wasn't flexible
# enough.
#
# Raymond Chen was the original au... | Shell |
#! /bin/sh
#
# This script is used to configure the linux kernel.
#
# It was inspired by a desire to not have to hit <enter> 9 million times
# or startup the X server just to change a single kernel parameter.
#
# This script attempts to parse the configuration files, which are
# scattered throughout the kernel source... | Shell |
#! /bin/sh
#
# This script is used to configure the linux kernel.
#
# It was inspired by a desire to not have to hit <enter> 9 million times
# or startup the X server just to change a single kernel parameter.
#
# This script attempts to parse the configuration files, which are
# scattered throughout the kernel source... | Shell |
#! /bin/sh
#
# This script is used to configure the Linux kernel.
#
# It was inspired by the challenge in the original Configure script
# to ``do something better'', combined with the actual need to ``do
# something better'' because the old configure script wasn't flexible
# enough.
#
# Raymond Chen was the original au... | Shell |
#! /bin/sh
#
# A very simple script to retrieve and pre-process test data, as used by
# ../python/rundoctest.py
#
# Assumes it is being run in the 'data' directory
# Assumes the presence of 'wget' and 'unzip', and that the tstools have been
# built.
# Retrieve a segment of Elephant's Dream in TS (11 is the smallest se... | Shell |
unset PATH
RSNAPSHOT=/usr/bin/rsnapshot
${RSNAPSHOT} monthly | Shell |
unset PATH
RSNAPSHOT=/usr/bin/rsnapshot
${RSNAPSHOT} daily | Shell |
unset PATH
MKDIR=/bin/mkdir
DATE=/bin/date
CP=/bin/cp
RSYNC=/usr/bin/rsync
DFMT=%Y%b%d%H%M
SNAPSHOT_DIRECTORY="/media/My\ Book/.snapshot"
SOURCE_DIRECTORY=/home
TSTAMP=`${DATE} +${DFMT}`
SNAPSHOT_0=${SNAPSHOT_DIRECTORY}/now
SNAPSHOT_1=${SNAPSHOT_DIRECTORY}/${TSTAMP}
${MKDIR} --parents ${SNAPSHOT_0}
${RSYNC} --arch... | Shell |
unset PATH
RSNAPSHOT=/usr/bin/rsnapshot
${RSNAPSHOT} weekly | Shell |
unset PATH
MOUNT=${1}
CRON=${2}
SERVER_COMPUTER=${3}
CLIENT_COMPUTER=${4}
CLIENT_NAME=${5}
SNAPSHOT_BASE=${6}
SNAPSHOT_IMAGE=${7}
SNAPSHOT_DIRECTORY=${SNAPSHOT_BASE}/${CLIENT_NAME}
${MOUNT} --options ro ${SERVER_COMPUTER}:${SNAPSHOT_DIRECTORY} ${SNAPSHOT_IMAGE}
| Shell |
unset PATH
MKDIR=${1}
ECHO=${2}
PORTMAP=${3}
CLIENT_NAME=${4}
CLIENT_COMPUTER=${5}
EXPORTS=${6}
SNAPSHOT_BASE=${7}
SNAPSHOT_DIRECTORY=${SNAPSHOT_BASE}/${CLIENT_NAME}
${USERADD} ${CLIENT_NAME}
${MKDIR} --parents ${SNAPSHOT_DIRECTORY}
${ECHO} ${SNAPSHOT_DIRECTORY} $CLIENT_COMPUTER(secure,ro,no_root_squash) > ${EXPORT... | Shell |
unset PATH
unset PACKAGE_CONF
unset PRODUCT_DIR
if [ $# -eq 1 ]
then
PACKAGE_CONF=package.conf
PRODUCT_DIRECTORY=${1}
elif [ $# -eq 2 ]
then
PACKAGE_CONF=${1}
PRODUCT_DIRECTORY=${2}
else
PACKAGE_CONF=package.conf
PRODUCT_DIRECTORY=helloworld
fi
source ${PACKAGE_CONF}
source ${PRODUCT_DIRE... | Shell |
unset PATH
unset PACKAGE_CONF
unset PRODUCT_DIR
if [ $# -eq 1 ]
then
PACKAGE_CONF=stuff.conf
PRODUCT_DIRECTORY=${1}
elif [ $# -eq 2 ]
then
PACKAGE_CONF=${1}
PRODUCT_DIRECTORY=${2}
else
PACKAGE_CONF=package.conf
PRODUCT_DIRECTORY=helloworld
fi
source ${PACKAGE_CONF}
source ${PRODUCT_DIRECT... | Shell |
unset PATH
unset VERBOSE
unset TSTAMP
unset SOURCE_DIRECTORY
unset TARGET_DIRECTORY
if [ $# -eq 0 ]
then
source /etc/snapshot.conf
elif [ $# -eq 1 ]
then
source ${1}
else
/bin/echo 2
fi
if [ ${IS_VERBOSE} ]
then
VERBOSE=-v
fi
if [ ${IS_MAKE_DIRECTORY} ]
then
${MKDIR} --parents "${TARGET_DIRECTORY... | Shell |
unset PATH
/bin/echo Hello $1
| Shell |
#!/bin/sh
# Detects OS we're compiling on and generates build_config.mk,
# which in turn gets read while processing Makefile.
# build_config.mk will set the following variables:
# - PORT_CFLAGS will either set:
# -DLEVELDB_PLATFORM_POSIX if cstatomic is present
# -DLEVELDB_PLATFORM_NOATOMI... | Shell |
#!/usr/bin/bash
WD=/path/to/virtualenv/more_power/more_power
cd /path/to/virtualenv/more_power
source bin/activate
PIDFILE=${WD}/morepowerdns.pid
PYTHON=`which python`
SOCKET=/tmp/morepowerdns.sock
export DJANGO_SETTINGS_MODULE=morepowerdns.settings
case "$1" in
start)
$PYTHON $WD/manage.py ru... | Shell |
#!/usr/bin/bash
cd /path/to/virtualenv/more_power/more_power
source /path/to/virtualenv/more_power/bin/activate
nohup ./morepowerdns.fcgi start
| 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/sh
find . -name \*.pyc -delete
rm -f MANIFEST
rm -rf dist
rm -rf build
rm -f doc/api/*
rm -rf doc/user-manual
rm -rf debian/python-module-stampdir
rm -rf debian/xyzcmd
rm -f debian/xyzcmd.debhelper.log
rm -f debian/xyzcmd.postinst.debhelper
rm -f debian/xyzcmd.preinst.debhelper
rm -f debian/xyzcmd.prerm.debhelp... | Shell |
#!/bin/sh
# Generate xyzcmd documentation
API_OUT_DIR=doc/api
# 1. API Documentation
epydoc -o ${API_OUT_DIR} --html --name XYZCommander \
--url 'http://xyzcmd.syhpoon.name/' \
--exclude='libxyz.ui.lowui' --exclude-parse=lowui \
--exclude=lowui --parse-only \
libxyz plugins
# 2. User manual
cd doc... | Shell |
#!/bin/sh
./gendoc.sh && \
mkdir doc/user-manual && \
mv doc/user/.build/html/* doc/user-manual && \
./setup.py sdist --formats=bztar
| Shell |
#!/bin/sh
export DEBFULLNAME="Max E. Kuznecov"
export DEBEMAIL="syhpoon@syhpoon.name"
./build.sh && dpkg-buildpackage -uc
# For ubuntu PPA
#./build.sh && dpkg-buildpackage -uc -S -k4778E7C0
# debsign -m4778E7C0 *.changes | 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 |
for i in `printf "%02d " {0..99}`
do
echo "IMAGE "$i;
./csv 0.$i ./r33.csv ./r34.c ./r34_h.jpg ./r34_m.jpg 1> ./results/$i.log;
./trimerge ./r34_d.jpg ./final_h.jpg ./final_m.jpg 393.087 -0.968 97.104 -76.391 90 -90;
cp ./FINAL_F.jpg ./results/FINAL_$i.jpg;
done;
| Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/usr/bin/env bash
IFS='.' read MAJOR MINOR PATCH <<< "${1}"
if [ -z "${MAJOR}" ]; then
echo "SYNTAX ERROR"
echo "Usage:"
echo "$0 \${VERSION_MAJOR}"
echo "$0 \${VERSION_MAJOR}.\${VERSION_MINOR}"
echo "$0 \${VERSION_MAJOR}.\${VERSION_MINOR}.\${VERSION_PATCH}"
exit 1
fi
if [ -z "${MINOR}" ]; ... | Shell |
#!/bin/bash
cd .. > /dev/null
for i in $(ls tests); do
cd tests/$i
if [ -f motd ]; then
cat motd
fi
qmake CONFIG+=debug
make > /dev/null
./bin/test || exit 1
make distclean > /dev/null
cd - > /dev/null
done
| Shell |
storm jar xylon-framework-storm-1.0.jar com.xylon.framework.storm.file.LogProcessTopology /opt/storm/tmp.txt , /opt/storm/xylon.txt | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.