code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
# A sample OpenVPN startup script
# for Linux.
# openvpn config file directory
dir=/etc/openvpn
# load the firewall
$dir/firewall.sh
# load TUN/TAP kernel module
modprobe tun
# enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Invoke openvpn for each VPN tunnel
# in daemon mode. Alternative... | Shell |
#!/bin/sh
route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
test -z $1 && exit 1
OUTFILE="${1}.js"
if [ ! -z $2 ]; then
OUTFILE="$2"
fi
(
echo 'imetable = new Array();'
echo 'imetable = ['
cat ${1} | awk '
{
if (arr[$1] == "")
arr[$1] = "\47"$2"\47"
else
arr[$1] = arr[$1]",\47"$2"\47"
}
END {
for (var in arr)
print "[\47"var"\47,"arr[var]"],"
}' ... | Shell |
#!/bin/sh
test -z $1 && exit 1
OUTFILE="${1}.js"
if [ ! -z $2 ]; then
OUTFILE="$2"
fi
(
echo 'imetable = new Array();'
echo 'imetable = ['
cat ${1} | awk '
{
if (arr[$1] == "")
arr[$1] = "\47"$2"\47"
else
arr[$1] = arr[$1]",\47"$2"\47"
}
END {
for (var in arr)
print "[\47"var"\47,"arr[var]"],"
}' ... | Shell |
#!/bin/sh
#
# Copyright (c) 2012-2014 Andrea Selva
#
echo " "
echo " ___ ___ _ _ ___ ________ _____ _____ "
echo " | \/ | | | | | | \/ | _ |_ _|_ _| "
echo " | . . | ___ ... | Shell |
#!/bin/bash
# Make the files if they aren't already. Useful if running this test
# multiple times.
make one_over one_over_fast
# Run the tests, putting the output into files to see that they
# performed the same computation.
echo "fast 1"
time ./one_over_1_minus_x_fast1 > output_fast1
echo "Tensor 1"
time ./one_ov... | Shell |
#!/bin/bash
# Copyright (C) 2011 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 to... | Shell |
#!/bin/bash
# Copyright (C) 2011 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 to... | Shell |
#!/bin/bash
# Sample shell script for invoking ant.
# Copy to a new file and fill in the values below.
# To keep the secrets secret, don't share your runant script.
# 01234567890123456789
ant -Dsecret=<a random secret string, 20 chars long> \
-Dapp-id=your-app-id \
-Dapp-version=1 \
-Doauth-cli... | 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 |
sudo rm /usr/lib/python2.4/site-packages/wxOptParse-0.1.4-py2.4.egg
sudo rm /usr/bin/wxoptparse
sudo rm /usr/bin/wxFind
rm -r build
rm -r dist
rm -r wxOptParse.egg-info
rm MANIFEST
| Shell |
#sudo easy_install dist/wxOptParse-0.1.4.zip
sudo python ~/scott/wxoptparse/setup.py develop
| Shell |
cd docs
rst2html.py --stylesheet-path=default.css index.rst index.html
cd ..
python setup.py --command-packages=setuptools.command bdist_egg
python setup.py sdist --formats=zip
| Shell |
# run this file with sudo sh ubuntuIntegration.sh
# auto-integration (launchers, menus, etc.) under ubuntu with python 2.7
# still some issue with mim-type integration (so .pyslices and .sympyslices files associate and get little icons)
# install wx_py with setuptools; it's fine if this has been run already
sudo pyth... | 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 |
junto run upenn.junto.test.PrepAttachTest raw
#junto config ppa_config
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/sh
BuildTexList()
{
SearchFolder="$1"
FolderName="$2"
ListName="$3"
OutDir="$4"
OutFile="$OutDir/$ListName.tex"
rm -f "$OutFile"
for F in $SearchFolder/*; do
TexName=`basename "$F"|cut -f1 -d'.'`
if test "$TexName" = "*"; then
continue;
fi
... | Shell |
#!/bin/sh
BuildTexList()
{
SearchFolder="$1"
FolderName="$2"
ListName="$3"
OutDir="$4"
OutFile="$OutDir/$ListName.tex"
rm -f "$OutFile"
for F in $SearchFolder/*; do
TexName=`basename "$F"|cut -f1 -d'.'`
if test "$TexName" = "*"; then
continue;
fi
... | 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
#
code=slashManager.py
{ python $code ${1+"$@"} ; } > /tmp/sb$$_`date|sed 's/ /_/g'` 2>&1
| Shell |
#! /bin/sh
#
code=slashManager.py
{ python $code ${1+"$@"} ; } > /tmp/sb$$_`date|sed 's/ /_/g'` 2>&1
| Shell |
#!/bin/sh
aclocal && \
automake -a -c && \
autoconf
| Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2006-10-15.18
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
# Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-10-14.15
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby ... | Shell |
#!/bin/bash
WORK_PATH='./'
DEBUG=false
while getopts w:hd OPTION; do
case $OPTION in
w)WORK_PATH=$OPTARG
;;
d)DEBUG=true
;;
\?)echo "`autobuilder.sh $0` -[w work_path]"
;;
esac
done
cd src
python startup.py --workpath=${WORK_PATH} --debug=${DEBUG}
cd ..
| Shell |
#!/bin/bash
WORK_PATH='./'
DEBUG=false
while getopts w:hd OPTION; do
case $OPTION in
w)WORK_PATH=$OPTARG
;;
d)DEBUG=true
;;
\?)echo "`autobuilder.sh $0` -[w work_path]"
;;
esac
done
cd src
python startup.py --workpath=${WORK_PATH} --debug=${DEBUG}
cd ..
| 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
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -d -a -in ${cry_file} -out ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -e -a -in ${org_file} -out ${cry_file}
#rm -f ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -d -a -in ${cry_file} -out ${org_file}
emacsclient -t ${org_file}
openssl enc -des -e -a -in ${org_file} -out ${cry_file}
rm -f ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -d -a -in ${cry_file} -out ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -d -a -in ${cry_file} -out ${org_file}
emacsclient -t ${org_file}
openssl enc -des -e -a -in ${org_file} -out ${cry_file}
rm -f ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
org_file=${1}
bak_file="${1}~"
cry_file="${org_file}.des"
#echo ${cry_file}
openssl enc -des -e -a -in ${org_file} -out ${cry_file}
#rm -f ${org_file}
rm -f ${bak_file} | Shell |
#!/bin/bash
emacs_ver=23.1
mv ~/.emacs ~/.emacs_bk
ln -s ~/wxclam/.emacs ~/.emacs
#===check os===
#--Mandriva--
os_line=`sed -n '1p' /etc/issue`
os_name=`expr substr "$os_line" 1 8`
if [ $os_name = "Mandriva" ]; then
echo "OS name: ${os_name}"
sudo urpmi aumix
fi
#--Arch--
os_line=`sed -n '2p' /etc/issue`
ln_len=`... | Shell |
#!/bin/bash
key=`cat key`
req="http://api.toodledo.com/api.php?method=addTask;key=${key};title=${1};priority=1;repeat=0;length=30;"
curl "${req}"
echo "* ${1}" >> ~/wxclam/org/work_200909.org | Shell |
#!/bin/bash
key=`cat key`
req="http://api.toodledo.com/api.php?method=addTask;key=${key};title=${1};priority=1;repeat=0;length=30;"
curl "${req}"
echo "* ${1}" >> ~/wxclam/org/work_200909.org | Shell |
#!/bin/bash
emacs_ver=23.1
mv ~/.emacs ~/.emacs_bk
ln -s ~/wxclam/.emacs ~/.emacs
#===check os===
#--Mandriva--
os_line=`sed -n '1p' /etc/issue`
os_name=`expr substr "$os_line" 1 8`
if [ $os_name = "Mandriva" ]; then
echo "OS name: ${os_name}"
sudo urpmi aumix
fi
#--Arch--
os_line=`sed -n '2p' /etc/issue`
ln_len=`... | Shell |
#! /bin/sh
# If you have used Mew 4 (4.0.53 or earlier) and start using Mew
# 4.0.54, and if your IMAP server allows folder only under "inbox.",
# you need to terminate Mew and execute this command once in
# each IMAP sub-directory under ~/Mail/.imap.
# Usage
# % cd ~/Mail/.imap
# % cd user@server%port
# % fix-imap... | Shell |
#! /bin/sh
# If you have used Mew 4 (4.0.53 or earlier) and start using Mew
# 4.0.54, and if your IMAP server allows folder only under "inbox.",
# you need to terminate Mew and execute this command once in
# each IMAP sub-directory under ~/Mail/.imap.
# Usage
# % cd ~/Mail/.imap
# % cd user@server%port
# % fix-imap... | 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/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/sh
# Get modification time of a file or directory and pretty-print it.
scriptversion=2007-03-30.02
# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007 Free Software
# Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you can redistribute it... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | Shell |
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
scriptversion=2007-03-30.02
# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007 Free Software
# Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you can redistribute it... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-12-25.00
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-12-25.00
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby ... | Shell |
#!/bin/bash
#
# This is an example script that shows how to publish a project from
# the commandline.
#
# Make sure that you have a file named `muse-init.el' that contains
# your custom Muse settings. It should add Muse to the load path.
emacs -q -batch -l muse-init.el -f muse-project-batch-publish "$@"
| Shell |
#!/bin/bash
#
# This is an example script that shows how to publish a project from
# the commandline.
#
# Make sure that you have a file named `muse-init.el' that contains
# your custom Muse settings. It should add Muse to the load path.
emacs -q -batch -l muse-init.el -f muse-project-batch-publish "$@"
| Shell |
#!/bin/bash
#
# Example publishing script for johnw's configuration
style=$(echo $1 | sed 's/^--//')
shift
emacs -q -batch -L $(dirname $0) \
-l muse-build.el -l muse-johnw.el \
-f muse-batch-publish-files $style --output-dir=. "$@"
| Shell |
#!/bin/bash
#
# Example publishing script for johnw's configuration
style=$(echo $1 | sed 's/^--//')
shift
emacs -q -batch -L $(dirname $0) \
-l muse-build.el -l muse-johnw.el \
-f muse-batch-publish-files $style --output-dir=. "$@"
| Shell |
#!/bin/bash
style=$(echo $1 | sed 's/^--//')
shift
$EMACS -q $SITEFLAG -batch -l ../scripts/muse-build.el \
-l muse-regexps.el -l muse.el -l muse-publish.el \
-l muse-html.el -l muse-latex.el -l muse-texinfo.el \
-f muse-batch-publish-files $style --output-dir=. "$@"
| Shell |
#!/bin/bash
style=$(echo $1 | sed 's/^--//')
shift
$EMACS -q $SITEFLAG -batch -l ../scripts/muse-build.el \
-l muse-regexps.el -l muse.el -l muse-publish.el \
-l muse-html.el -l muse-latex.el -l muse-texinfo.el \
-f muse-batch-publish-files $style --output-dir=. "$@"
| Shell |
#!/bin/sh
#
# Author: Michael Olson <http://www.mwolson.org>
#
# License: This file may be used, distributed, and modified without
# restriction.
#
# This is a sample script that shows how to update the timestamps
# file. Note that you have to run the getstamps.py program in your
# source directory, and then move the ... | Shell |
#!/bin/sh
#
# Author: Michael Olson <http://www.mwolson.org>
#
# License: This file may be used, distributed, and modified without
# restriction.
#
# This is a sample script that shows how to update the timestamps
# file. Note that you have to run the getstamps.py program in your
# source directory, and then move the ... | Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
rm -r /tmp/CEDET_INTEG*
$EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
| Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
rm -r /tmp/CEDET_INTEG*
$EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
| Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
rm -r /tmp/CEDET_INTEG*
$EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
| Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
rm -r /tmp/CEDET_INTEG*
$EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f cedet-integ-test
| Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/sh
# Print additional version information for non-release trees.
usage() {
echo "Usage: $0 [srctree]" >&2
exit 1
}
cd "${1:-.}" || usage
# Check for git and a git repo.
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
# Do we have an untagged version?
if git name-rev --tags HEAD | grep -E '^HEAD[[:... | Shell |
#!/bin/sh
# Check ncurses compatibility
# What library to link
ldflags()
{
$cc -print-file-name=libncursesw.so | grep -q /
if [ $? -eq 0 ]; then
echo '-lncursesw'
exit
fi
$cc -print-file-name=libncurses.so | grep -q /
if [ $? -eq 0 ]; then
echo '-lncurses'
exit
fi
$cc -print-file-name=libcurses.so | gre... | Shell |
#!/bin/sh
# Generates a small Makefile used in the root of the output
# directory, to allow make to be started from there.
# The Makefile also allow for more convinient build of external modules
# Usage
# $1 - Kernel src directory
# $2 - Output directory
# $3 - version
# $4 - patchlevel
test ! -r $2/Makefile -o -O $... | Shell |
#!/bin/bash
# Cross-Compiler Toolchain for ${PLATFORM}
# by Martin Decky <martin@decky.cz>
#
# GPL'ed, copyleft
#
check_error() {
if [ "$1" -ne "0" ]; then
echo
echo "Script failed: $2"
exit
fi
}
BINUTILS_VERSION="2.17"
GCC_VERSION="4.1.1"
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
GCC_CORE="gcc-c... | Shell |
#!/bin/sh -x
# Based on the vmlinux file create the System.map file
# System.map is used by module-init tools and some debugging
# tools to retrieve the actual addresses of symbols in the kernel.
#
# Usage
# mksysmap vmlinux System.map
#####
# Generate System.map (actual filename passed as second argument)
# $NM pro... | 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
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
cp gitblit /etc/init.d/
chmod +x /etc/init.d/gitblit
sudo update-rc.d gitblit defaults | Shell |
#!/bin/sh
set -e
GITBLIT_PATH=/opt/gitblit
GITBLIT_HTTP_PORT=0
GITBLIT_HTTPS_PORT=8443
source ${GITBLIT_PATH}/java-proxy-config.sh
JAVA="java -server -Xmx1024M ${JAVA_PROXY_CONFIG} -Djava.awt.headless=true -jar"
. /lib/lsb/init-functions
case "$1" in
start)
log_action_begin_msg "Starting gitblit server"
... | Shell |
#!/bin/bash
# chkconfig: 3 21 91
# Source function library.
. /lib/init/vars.sh
. /lib/lsb/init-functions
PATH=/sbin:/bin:/usr/bin:/usr/sbin
# change theses values (default values)
GITBLIT_PATH=/opt/gitblit
GITBLIT_USER="gitblit"
source ${GITBLIT_PATH}/java-proxy-config.sh
ARGS="-server -Xmx1024M ${JAVA_PROXY_CONFIG}... | Shell |
#!/bin/bash
# To set the proxy configuration, specify the following host name and port
#PROXY_HOST=
#PROXY_PORT=
# To exclude any hosts from proxy configuration such that they directly accessed by Gitblit without passing through the proxy server, append the host name to the following variable using "|" as the separat... | Shell |
#!/bin/bash
# chkconfig: 3 21 91
# description: Starts and Stops gitblit
# Source function library.
. /etc/init.d/functions
# change theses values (default values)
GITBLIT_PATH=/opt/gitblit
GITBLIT_HTTP_PORT=0
GITBLIT_HTTPS_PORT=8443
source ${GITBLIT_PATH}/java-proxy-config.sh
JAVA="java -server -Xmx1024M ${JAVA_PROXY... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.