code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
more out-* | grep -E "(^\\$)|unhandled|real|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-shift-sync.txt
| Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-a242b4cf1123910c4dba18c75a77f28c5f6d8f33.tar.bz2
MUPDF=mupdf-a242b4cf1123910c4dba18c75a77f28c5f6d8f33
FREETYPE=freetype-2.4.10
OPENJPEG=openjpeg-1.5.1
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8d.tar.gz
JPEGDIR=jpeg-8d
cd "$SCRIPTDIR/../... | Shell |
#!/bin/sh
# Don't forget chmod +x codereviewMac.sh to mac this script executable
if [ -z $1 ]; then
echo "Usage:"
echo " codereview youremail@abc.com 22 24 \"Patchset comment\""
echo " Creates a new patch set for code review by comparing revision 22"
echo " with revision 24. The patchset is sent on... | Shell |
#!/bin/bash
# Copyright 2013, 2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
DIR="$( cd "$( dirname "$0" )" && pwd )"
source "$DIR"/_base.sh
# Argument 1: h... | Shell |
#!/bin/bash
trap 'exit 1' SIGINT;
DIR="$( cd "$( dirname "$0" )" && pwd )"
export WINEPREFIX="$DIR"/_wine_prefix
export WINEDEBUG=-all
export WINEARCH=win32
DISPLAY=be_quiet_damnit wine wineboot -u
(cd "$DIR" && wine cmd /c test.bat)
exit $?
| Shell |
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
export WINEPREFIX="$DIR"/_wine_prefix
export WINEDEBUG=-all
export WINEARCH=win32
DISPLAY=be_quiet_damnit wine wineboot -u
wine cmd /k env.bat
| Shell |
#!/bin/sh
wget -c "http://sourceforge.net/projects/modplug-xmms/files/libmodplug/0.8.8.4/libmodplug-0.8.8.4.tar.gz"
tar -zxvf "libmodplug-0.8.8.4.tar.gz"
cd "libmodplug-0.8.8.4"
./configure --host=i586-mingw32msvc --prefix=`pwd`"/prefix" CFLAGS='-Os' CXXFLAGS='-Os'
make clean
make -j
make install
cp "prefix/bin/libmod... | Shell |
#!/bin/bash
# Copyright 2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
DIR="$( cd "$( dirname "$0" )" && pwd )"
rm -f "$DIR"/_sdk
rm -rf "$DIR"/_build_env
rm... | Shell |
#!/bin/bash
# Copyright 2013, 2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
trap 'exit 1' SIGINT;
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"
MISC="... | Shell |
#!/bin/bash
# Copyright 2013, 2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
DIR="$( cd "$( dirname "$0" )" && pwd )"
source "$DIR"/_base.sh
download_and_ve... | Shell |
#!/bin/bash
trap 'exit 1' SIGINT;
DIR="$( cd "$( dirname "$0" )" && pwd )"
if [ ! -d "$DIR"/_sdk ]; then
"$DIR"/build_sdk.sh
fi
"$DIR"/_sdk/test.sh
| Shell |
#!/bin/sh
# Public domain.
VERSION="0.16"
_ql() {
echo "$1" > ~/.quodlibet/control
}
_ql_arg() {
if [ "$2" = "" ]; then
echo "E: \`$1' needs an argument." 2>&1
exit 1
else _ql "$1 $2"
fi
}
_ql_reply() {
fn="`tempfile --prefix=ql_`"; rm -f "$fn"; mkfifo -m 0600 "$fn"
_ql "$1 $fn"
cat "$fn"
rm -f "$fn"
}
... | 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 -e
./test_bitstream
./test_estimatebit
./test_qrencode
./test_qrinput
./test_qrspec
./test_rs
./test_split
./test_mask
./test_mqrspec
./test_mmask
./test_monkey
| Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2007 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
# libtool (GNU libtool) 2.4.2
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; no... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# 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 ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
#!/bin/sh
set -e
if [ `uname -s` = Darwin ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
if [ -d /usr/local/share/aclocal ]; then
ACLOCAL_DIR=/usr/local/share/aclocal
elif [ -d /opt/local/share/aclocal ]; then
ACLOCAL_DIR=/opt/local/share/aclocal
elif [ -d /usr/share/aclocal ]; then
... | 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 a complete godoc app in $APPDIR.
# It copies the cmd/godoc and src/go/... sources from GOROOT,
# synthesizes an app.yaml... | Shell |
#!/bin/bash
#
# Simple test of Go oracle/Emacs integration.
# Requires that GOROOT and GOPATH are set.
# Side effect: builds and installs oracle in $GOROOT.
set -eu
[ -z "$GOROOT" ] && { echo "Error: GOROOT is unset." >&2; exit 1; }
[ -z "$GOPATH" ] && { echo "Error: GOPATH is unset." >&2; exit 1; }
log=/tmp/$(basen... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
if [ $# -ne 6 ]; then
echo -e "Usage: ./run-kill.sh [begin] [end] [incr] [mode] [#clients] [syncmode]"
echo -e "begin/incr/end: number of processes to run"
echo -e "mode: standalone, ensemble"
echo -e "#clients: number of clients to launch the processes"
echo -e "syncmode: sync or async\n"
... | Shell |
#!/bin/bash
#upper=$1
### subroutine ###
tmpavg=
tmpallavg=
calcavg() {
list=$(echo "$1/*")
for file in $list
do
sudo chmod 775 $file
if [ -s $file ]
then
grep -v "^#" $file | awk '{print $1, $2}' >> $file.tmp
else
echo -e "find empty file $file\n"
fi
awk '{ if ($1 > 1000 && $2 ... | Shell |
#!/bin/bash
if [ $# -ne 6 ]; then
echo -e "Usage: ./run-kill.sh [begin] [end] [incr] [mode] [#clients] [syncmode]"
echo -e "begin/incr/end: number of processes to run"
echo -e "mode: standalone, ensemble"
echo -e "#clients: number of clients to launch the processes"
echo -e "syncmode: sync or async\n"
... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: ./operf-stat.sh [mode] [clients]"
echo -e "mode: sys or pid"
echo -e "clients: number of client processes\n"
exit 1
fi
OPERFDIR=/users/vdr007/install/oprofile/bin
VMIMAGE=/proj/EMS/rpms/source-build/linux-source-3.13.0/vmlinux
mode=$1
procs=$2
exemode=$(./bin/z... | Shell |
#!/bin/bash
if [ $# -ne 9 ]; then
echo -e "Usage: ./client-run.sh [mode] [dataloc] [#process] [#clients] [rec_time] [total_time] [numz] [heapsize] [syncmode]"
echo -e "mode: [1] standalone, [2] ensemble"
echo -e "dataloc: [1] local, [2] shared"
echo -e "#process: number of background zktest processes"
ec... | Shell |
#!/bin/bash
if [ $# -ne 5 ]; then
echo -e "Usage: ./run-benchmark.sh [begin] [end] [incr] [mode] [#clients]"
echo -e "begin/incr/end: number of processes to run"
echo -e "mode: standalone, ensemble"
echo -e "#clients: number of clients to launch the processes \n"
exit 1
fi
begin=$1
end=$2
inc=$3
mode=$4... | Shell |
#!/bin/bash
tmpavg=
tmpmax=
tmpmin=
calcavg() {
#echo "hello: $1"
list=$(echo "$1/*")
#echo $list
# check empty file
# find ./standalone-shared/cli-80 -empty
for file in $list
do
if [ -s $file ]
then
grep -v "^#" $file | awk '{print $NF}' >> $file-tmp
else
echo -e "find empty file $file\n"
fi
done
... | Shell |
#!/bin/bash
if [ $# -ne 1 ]; then
echo -e "Usage: ./build.sh [syncmode]"
echo -e "syncmode: sync or async\n"
exit 1
fi
syncmode=$1
#ZKJAR=/proj/EMS/rsproj/zookeeper/zookeeper-3.4.6.jar
#ZKPATH=/proj/EMS/rsproj/zookeeper-3.3.6
ZKPATH=/proj/EMS/rsproj/zookeeper-3.4.6
LOG4J=/proj/EMS/rsproj/apache-log4j-1.2.1... | Shell |
#/bin/bash
if [ $# -ne 5 ]; then
echo -e "./chk-iotop.sh [iotime] [begin] [end] [inc] [server_id]"
echo -e "[iotime]: io log time in minutes"
echo -e "[begin, end, inc]: number of processes"
echo -e "[server_id]: the name of server in ZK config \n"
exit 1
fi
localdir=/mnt/zkdata
shddir=/proj/EMS/rsproj/javatest/m... | Shell |
#!/bin/bash
#upper=$1
### subroutine ###
tmpavg=
tmpallavg=
calcavg() {
list=$(echo "$1/*")
for file in $list
do
sudo chmod 775 $file
if [ -s $file ]
then
grep -v "^#" $file | awk '{print $1, $2}' >> $file.tmp
else
echo -e "find empty file $file\n"
fi
awk '{ if ($1 > 1000 && $2 ... | Shell |
#!/bin/bash
tmpavg=
tmpmax=
tmpmin=
calcavg() {
#echo "hello: $1"
list=$(echo "$1/*")
#echo $list
# check empty file
# find ./standalone-shared/cli-80 -empty
for file in $list
do
if [ -s $file ]
then
grep -v "^#" $file | awk '{print $NF}' >> $file-tmp
else
echo -e "find empty file $file\n"
fi
done
... | Shell |
#!/bin/bash
if [ $# -ne 5 ]; then
echo -e "Usage: ./run-benchmark.sh [begin] [end] [incr] [mode] [#clients]"
echo -e "begin/incr/end: number of processes to run"
echo -e "mode: standalone, ensemble"
echo -e "#clients: number of clients to launch the processes \n"
exit 1
fi
begin=$1
end=$2
inc=$3
mode=$4... | Shell |
#!/bin/bash
if [ $# -ne 1 ]; then
echo -e "Usage: ./build.sh [syncmode]"
echo -e "syncmode: sync or async\n"
exit 1
fi
syncmode=$1
#ZKJAR=/proj/EMS/rsproj/zookeeper/zookeeper-3.4.6.jar
#ZKPATH=/proj/EMS/rsproj/zookeeper-3.3.6
ZKPATH=/proj/EMS/rsproj/zookeeper-3.4.6
LOG4J=/proj/EMS/rsproj/apache-log4j-1.2.1... | Shell |
#!/bin/bash
if [ $# -ne 9 ]; then
echo -e "Usage: ./client-run.sh [mode] [dataloc] [#process] [#clients] [rec_time] [total_time] [numz] [heapsize] [syncmode]"
echo -e "mode: [1] standalone, [2] ensemble"
echo -e "dataloc: [1] local, [2] shared"
echo -e "#process: number of background zktest processes"
ec... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: ./operf-stat.sh [mode] [clients]"
echo -e "mode: sys or pid"
echo -e "clients: number of client processes\n"
exit 1
fi
OPERFDIR=/users/vdr007/install/oprofile/bin
VMIMAGE=/proj/EMS/rpms/source-build/linux-source-3.13.0/vmlinux
mode=$1
procs=$2
exemode=$(./bin/z... | Shell |
#!/bin/bash
if [ $# -ne 5 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [datadisk] [logdisk]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "[data|log]disk: sda1, sdb2, ..., sdX1\n"
exit 1
... | Shell |
#!/bin/bash
if [ $# -ne 4 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [diskdir]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "diskdir: sda1, sdb2, ..., sdX1\n"
exit 1
fi
mode=$1
datalo... | Shell |
#!/bin/bash
## usage initServer.sh [server_1] [server_n]
if [ $# -ne 4 ]; then
echo -e "Usage: ./initServer.sh [mode] [dataloc] [procs] [sleeptm]"
echo -e "mode: [1] standalone, [2] ensemble"
echo -e "dataloc: [1] local (read myid), [2] shared"
echo -e "procs: number of client processes"
echo -e "sleeptm:... | Shell |
#!/bin/bash
if [ $# -ne 5 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [datadisk] [logdisk]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "[data|log]disk: sda1, sdb2, ..., sdX1\n"
exit 1
... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: ./ctPartition.sh [diskdir] [size]"
echo -e "diskdir: sda, sdb ... sdX"
echo -e "size: 10M, 30G OR all\n"
exit 1
fi
diskdir=$1
size=$2
if [ $size = "all" ]
then
#echo -e "give me all disk!\n"
(echo p; echo d; echo o; echo n; echo p; echo 1; echo ; echo ;... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: 1key-cli.sh [mode] [cli_id]"
echo -e "mode: standalone, ensemble (read myid)"
echo -e "cli_id: the id for the client, e.g. 1, 2, 3 \n"
exit 1
fi
mode=$1
cliid=$2
HOMEDIR=/users/vdr007
ZKDIR=/proj/EMS/rsproj/zookeeper-3.4.6
$HOMEDIR/ctPartition.sh sdb 200G
$H... | Shell |
#!/bin/bash
if [ $# -ne 4 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [diskdir]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "diskdir: sda1, sdb2, ..., sdX1\n"
exit 1
fi
mode=$1
datalo... | Shell |
#!/bin/bash
if [ $# -ne 4 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [diskdir]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "diskdir: sda1, sdb2, ..., sdX1\n"
exit 1
fi
mode=$1
datalo... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: 1key-server.sh [mode] [server_id]"
echo -e "mode: standalone, ensemble (read myid)"
echo -e "server_id: the myid name for the server, e.g. 1, 2, 3 \n"
exit 1
fi
mode=$1
serverid=$2
procs=1
HOMEDIR=/users/vdr007
ZKDIR=/proj/EMS/rsproj/zookeeper-3.4.6
#ZKDIR=/p... | Shell |
#!/bin/bash
if [ $# -ne 4 ]; then
echo -e "Usage: ./createFS.sh [mode] [dataloc] [myid] [diskdir]"
echo -e "mode: [1] standalone, [2] ensemble (read myid)"
echo -e "dataloc: [1] local, [2] shared"
echo -e "myid: 1, 2, ..., numserver"
echo -e "diskdir: sda1, sdb2, ..., sdX1\n"
exit 1
fi
mode=$1
datalo... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: 1key-cli.sh [mode] [cli_id]"
echo -e "mode: standalone, ensemble (read myid)"
echo -e "cli_id: the id for the client, e.g. 1, 2, 3 \n"
exit 1
fi
mode=$1
cliid=$2
HOMEDIR=/users/vdr007
ZKDIR=/proj/EMS/rsproj/zookeeper-3.4.6
$HOMEDIR/ctPartition.sh sdb 200G
$H... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: 1key-server.sh [mode] [server_id]"
echo -e "mode: standalone, ensemble (read myid)"
echo -e "server_id: the myid name for the server, e.g. 1, 2, 3 \n"
exit 1
fi
mode=$1
serverid=$2
procs=1
HOMEDIR=/users/vdr007
ZKDIR=/proj/EMS/rsproj/zookeeper-3.4.6
#ZKDIR=/p... | Shell |
#!/bin/bash
## usage initServer.sh [server_1] [server_n]
if [ $# -ne 4 ]; then
echo -e "Usage: ./initServer.sh [mode] [dataloc] [procs] [sleeptm]"
echo -e "mode: [1] standalone, [2] ensemble"
echo -e "dataloc: [1] local (read myid), [2] shared"
echo -e "procs: number of client processes"
echo -e "sleeptm:... | Shell |
#!/bin/bash
if [ $# -ne 2 ]; then
echo -e "Usage: ./ctPartition.sh [diskdir] [size]"
echo -e "diskdir: sda, sdb ... sdX"
echo -e "size: 10M, 30G OR all\n"
exit 1
fi
diskdir=$1
size=$2
if [ $size = "all" ]
then
#echo -e "give me all disk!\n"
(echo p; echo d; echo o; echo n; echo p; echo 1; echo ; echo ;... | 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
#
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
#
# Copyright (C) 2009 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://w... | Shell |
#!/bin/sh
export JETTY_HOST=127.0.0.1
export JETTY_PORT=8081
export JETTY_USER=gerrit2
export JETTY_PID=/var/run/jetty$JETTY_PORT.pid
export JETTY_HOME=/home/$JETTY_USER/jetty
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre
JAVA_OPTIONS=""
JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST"
export JAVA_OPTION... | Shell |
#!/bin/sh
include_docs=-Dgerrit.include-documentation=1
while [ $# -gt 0 ]
do
case "$1" in
--no-documentation|--without-documentation)
include_docs=
shift
;;
*)
echo >&2 "usage: $0 [--without-documentation]"
exit 1
esac
done
git update-index -q --refresh
if test -n "$(git diff-index --name-only HEAD -... | Shell |
#!/bin/sh
# Update all pom.xml with new build number
#
# TODO(sop) This should be converted to some sort of
# Java based Maven plugin so its fully portable.
#
POM_FILES=$(git ls-files | grep pom.xml)
case "$1" in
--snapshot=*)
V=$(echo "$1" | perl -pe 's/^--snapshot=//')
if [ -z "$V" ]
then
echo >&2 "usage: $0 ... | Shell |
#!/bin/sh
set -e
SRC=$(ls gerrit-plugin-api/target/gerrit-plugin-api-*-sources.jar)
VER=${SRC#gerrit-plugin-api/target/gerrit-plugin-api-}
VER=${VER%-sources.jar}
type=release
case $VER in
*-SNAPSHOT)
echo >&2 "fatal: Cannot deploy $VER"
echo >&2 " Use ./tools/version.sh --release && mvn clean package"
e... | Shell |
#!/bin/sh
#
# Launch Gerrit Code Review as a daemon process.
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Gerrit Code Review
# processname: gerrit
# ========================
# Configuration files:
#
# /etc/default/gerrit... | Shell |
#!/bin/sh
V=$(git describe HEAD)
case "$V" in
'')
echo >&2 "fatal: no annotated tags, cannot determine version"
exit 1
;;
*-g*)
echo >&2 "fatal: snapshot $V, cannot determine version"
exit 1
;;
v*)
echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/'
;;
esac
| Shell |
################################################################################
# NOTE: Most options are in the .zshrc since they only apply to interactive
# shells. This is just for the enviornment variables that should be used for
# both interactive and non-interactive shells.
#
# This file was created by Sam King... | Shell |
################################################################################
# There are many resources online to help you make your shell how you want it.
# http://grml.org/zsh/zsh-lovers.html has a good compilation of many resources,
# including many of the ones cited below. man zsh has a very complete and well
#... | Shell |
#!/usr/bin/env bash
echo "This script will add lines in your zshrc, zshenv, vimrc, hgrc, and login
to source the files in this repository. That way, you can have computer
specific settings (for instance, if you need a command to behave differently on
your ubuntu machine than on your mac) in your ~/.zshrc and settings ... | Shell |
# use zsh instead of csh if we are using an interactive shell and zsh exists
# Checking that the prompt is defined is necessary because otherwise, the bootup
# shell when physically logging in to a cluster computer won't boot.
# CUSTOMIZE(shell)
if ( $?prompt && -f /bin/zsh) exec /bin/zsh -l
| Shell |
#!/bin/sh
ruby webrick.rb
| Shell |
#!/bin/sh
#export LC_CTYPE=en_US.UTF-8
###Changelog::
#==================================================================== abt. define
VER="sync2zsp4pyb.sh v11.09.7"
DATE=`date "+%y%m%d"`
PY=$( which python)
SYNC=$( which rsync)
#==================================================================== abt. path
PYB="~/zq... | Shell |
#!/bin/sh
#export LC_CTYPE=en_US.UTF-8
### obp-idx-up.sh
#Zoomq:091129 creat for obp.zoomquiet.org auto buildijng site mapping
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DATE=`date +%y%m%d`
SVN="/usr/bin/svn"
SVNUP="$SVN up"
#RSYNC="/usr/local/rsync -avzL --delete"
#LOGFILE="/data0/l... | Shell |
# crontab - zoomq's crontab for Zues
#
SHELL=/bin/sh
PATH=/home/zoomq/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#HOME=/home/zoomq/zoomquiet.org
MAILTO=Zoom.Quiet@gmail.com
#
#minute hour mday month wday command
###zoomq:091129 paaended for obp.zoomquiet auto build Sphinx+.dot
*/15 * * * *... | Shell |
#!/bin/sh
export LC_CTYPE=en_US.UTF-8
### obp-shpinx-up.sh
#Zoomq:091129 fixed for running stdyun host
#Zoomq:091122 creat for obp.zoomquiet.org auto buildijng Sphinx project
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DATE=`date +%y%m%d`
SVN="/usr/bin/svn"
SVNUP="$SVN up"
#RSYNC="/us... | Shell |
#!/bin/sh
#export LC_CTYPE=en_US.UTF-8
### obp-idx-up.sh
#Zoomq:091129 creat for obp.zoomquiet.org auto buildijng site mapping
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DATE=`date +%y%m%d`
SVN="/usr/bin/svn"
SVNUP="$SVN up"
PATHROOT="/home/zoomq/zoomquiet.org"
LOGFILE="$PATHROOT/_lo... | Shell |
# crontab - zoomq's crontab for Zues
#
SHELL=/bin/sh
PATH=/home/zoomq/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#HOME=/home/zoomq/zoomquiet.org
MAILTO=Zoom.Quiet@gmail.com
#
#minute hour mday month wday command
###zoomq:091129 paaended for obp.zoomquiet auto build Sphinx+.dot
*/15 * * * *... | Shell |
#!/bin/sh
export LC_CTYPE=en_US.UTF-8
### obp-shpinx-up.sh
#Zoomq:091129 fixed for running stdyun host
#Zoomq:091122 creat for obp.zoomquiet.org auto buildijng Sphinx project
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DATE=`date +%y%m%d`
SVN="/usr/bin/svn"
SVNUP="$SVN up"
PATHROOT="/... | Shell |
#!/bin/sh
#
# This starts Zotonic in debug mode.
#
# Zotonic will use the settings in priv/config
# Make your own by following the instructions in priv/config.in
#
# After it started you will be left in the Erlang shell.
# Leave the shell with: ctrl-C crtl-C
#
./bin/zotonic debug
| Shell |
#!/bin/bash
ZOTONIC=/home/zotonic && \
SHELL=/bin/bash && \
apt-get install -y \
erlang \
build-essential \
rake \
libxml2-dev \
libexpat1-dev \
postgresql-8.4 \
imagemagick \
mercurial && \
echo "CREATE USER zotonic WITH PASSWORD 'zotonic';
ALTER ROLE zo... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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 ... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/bin/sh
#
# Copyright 2010,2011 Arjan Scherpenisse
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Arjan Scherpenisse <arjan@scherpenisse.net>
#
# 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
#
# Unl... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Maas-Maarten Zeeman
#
# 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 applicab... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/usr/bin/env bash
#
# Copyright 2011 Lloyd R. Prentice
#
# 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... | Shell |
#!/bin/sh
LC_CTYPE=en_US.UTF-8
SVN=`which svn`
echo Changing to Bundles directory...
mkdir -p "/Library/Application Support/TextMate/Bundles"
cd "/Library/Application Support/TextMate/Bundles"
if [ -d "/Library/Application Support/TextMate/Bundles/Erlang.tmbundle" ]; then
echo Erlang bundle already exists - updatin... | Shell |
#!/bin/bash
#
# Copyright 2009 Marc Worrell
#
# 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 agree... | 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
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
sudo launchctl stop com.fsb.logKext
sudo launchctl unload /Library/LaunchDaemons/logKext.plist
sudo /Library/Application\ Support/logKext/logKextKeyGen remove
sudo rm -f /Library/LaunchDaemons/logKext.plist
sudo rm -rf /System/Library/Extensions/logKext.kext
sudo rm -rf /Library/Application\ Support/logKext
... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.