code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
#
# Copyright 2008, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | Shell |
#!/bin/bash
#
# Copyright 2008, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | Shell |
#!/bin/bash
MACHINE_TYPE=`uname -m`
mkdir -p ../Linux/
INSTALL_DIR=`readlink -f ../Linux/`/
declare -a arr=(Debug Release)
for i in ${arr[@]}
do
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
mkdir -p ${INSTALL_DIR}x86_64/$i
mkdir -p ${INSTALL_DIR}x86_64/$i/include
cp -R -f *.hpp ${INS... | Shell |
#!/bin/bash
MACHINE_TYPE=`uname -m`
mkdir -p ../Linux/
INSTALL_DIR=`readlink -f ../Linux/`/
declare -a arr=(Debug Release)
for i in ${arr[@]}
do
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
mkdir -p ${INSTALL_DIR}x86_64/$i
mkdir -p ${INSTALL_DIR}x86_64/$i/include
cp -R -f *.hpp ${INS... | Shell |
#!/bin/sh
ANDROID_LIB_LOCATION=${ANDROID_LLVM_TREE}/build/android/lib/
if [ "$1" = "--cppflags" ]
then
echo \-I${ANDROID_LLVM_TREE}/include \-I${ANDROID_LLVM_TREE}/build/android/include \-D_GNU_SOURCE \-D__STDC_CONSTANT_MACROS \-D__STDC_FORMAT_MACROS \-D__STDC_LIMIT_MACROS
fi
if [ "$1" = "--libfiles" ]
... | Shell |
#!/bin/sh
ANDROID_LIB_LOCATION=${ANDROID_LLVM_TREE}/build/android/lib/
if [ "$1" = "--cppflags" ]
then
echo \-I${ANDROID_LLVM_TREE}/include \-I${ANDROID_LLVM_TREE}/build/android/include \-D_GNU_SOURCE \-D__STDC_CONSTANT_MACROS \-D__STDC_FORMAT_MACROS \-D__STDC_LIMIT_MACROS
fi
if [ "$1" = "--libfiles" ]
... | Shell |
gcc simplectrl.c -I/usr/include/ -o simplectrl -lusb-1.0 -I/usr/include/ -I/usr/include/libusb-1.0
gcc adktest.c -I/usr/include/ -o adktest -lusb-1.0 -I/usr/include/ -I/usr/include/libusb-1.0
| Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/usr/bin/env sh
./gradlew build fatJar
| Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2004-10-12.08
# Copyright (C) 1999, 2000, 2003, 2004 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 the terms of the GNU Ge... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2004-04-25.13
# Copyright (C) 1999, 2000, 2003, 2004 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 License as published... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2003-09-02.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/o... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2004-04-01.17
# 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 |
rm wse.log
rm wse.aux
rm wse.dvi
rm wse.ps
rm wse.bbl
rm wse.blg
rm *.tmp
| Shell |
latex wse
bibtex wse
latex wse
latex wse
dvips -Ppdf -z -G0 wse.dvi -o
ps2pdf -sPAPERSIZE=a4 wse.ps
make_clean.sh
| Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-relay;
}
redsocks {
local_ip = 12... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | Shell |
#!/bin/sh
PROJNAME=wobmail
JARNAME=$PROJNAME
rm -rf $PROJNAME $PROJNAME.war &&
mkdir $PROJNAME &&
cd $PROJNAME &&
jar xvf ../../dist/$PROJNAME.war &&
cd $PROJNAME.woa/Contents/Resources &&
mv ../Info.plist ./ &&
cd .. &&
jar xvf Resources/Java/$JARNAME.jar &&
rm -f Resources/Java/$JARNAME.jar &&
mv Resources/Java/*.j... | 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
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (anymote) 0.1
# Libtool was configured on host timberline.bld.corp.google.com:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 20... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6b
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is 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'.
# Copyright 1999, 2000 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 the terms of the GNU General Public License as published by
# the F... | Shell |
#!/bin/sh
# Before using, you should figure out all the .m4 macros that your
# configure.m4 script needs and make sure they exist in the m4/
# directory.
#
# These are the files that this script might edit:
# aclocal.m4 configure Makefile.in src/config.h.in \
# depcomp config.guess config.sub install-sh missing ... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/bash
rm -rf .moc .obj .uidir
rm Makefile
rm *.user
| Shell |
#!/bin/bash
rm -rf .moc .obj .uidir
rm Makefile
rm *.user
| Shell |
#!/bin/sh
#ideally you need to set only the following two paths ANDROID_BUILD_DIR and SDK_DIR
#where you downloaded the android sources and built it
ANDROID_BUILD_DIR=/opt/Android-2.3.5
CUR_DIR=`pwd`
ACTEVE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# copy various jars
cd $ANDROID_BUILD_DIR
cp out/targ... | Shell |
#!/bin/sh
# Copyright 2013 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 in... | Shell |
#!/bin/bash
# ac pe wa ce re tle...
select=ac
# 1=c, 2=cpp, 3=java, 4=pascal
lang=1
ext=c
#spj=-S
src=1001_${select}.${ext}
sudo ./judge_all.exe -l ${lang} -u 0001 -s "test/${src}" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 ${spj}
echo -e "\nExit status: $?"
sudo chown -R $USER:$USER test/temp
| Shell |
#!/bin/bash
# ac pe wa ce re tle...
#spj=-S
#sudo ./judge_java.exe -u 0001 -s "test/Main.java" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
sudo ./judge_all.exe -l 3 -u 0001 -s "test/Main.java" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
echo -e "\nExit status: $?"
sudo chown -R ... | Shell |
#!/bin/bash
if [ ! -z $1 ]; then
sudo rm judge_*.exe
make
else
sudo chown root:root judge_*.exe
sudo chmod 4755 judge_*.exe
fi
| Shell |
#!/bin/bash
# ac pe wa ce re tle...
#spj=-S
#sudo ./judge_java.exe -u 0001 -s "test/Main.java" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
sudo ./judge_all.exe -l 3 -u 0001 -s "test/Main.java" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
echo -e "\nExit status: $?"
sudo chown -R ... | Shell |
#!/bin/bash
# ac pe wa ce re tle...
select=ac
# 1=c, 2=cpp, 3=java, 4=pascal
lang=1
ext=c
#spj=-S
src=1001_${select}.${ext}
sudo ./judge_all.exe -l ${lang} -u 0001 -s "test/${src}" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 ${spj}
echo -e "\nExit status: $?"
sudo chown -R $USER:$USER test/temp
| Shell |
#!/bin/bash
if [ ! -z $1 ]; then
sudo rm judge_*.exe
make
else
sudo chown root:root judge_*.exe
sudo chmod 4755 judge_*.exe
fi
| Shell |
#!/bin/bash
# ac pe wa ce re tle...
select=ac
lang=pascal
ext=pas
#spj=-S
src=1001_${select}.${ext}
sudo ./judge_${lang}.exe -u 0001 -s "test/$src" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
#./judge_c.exe -u 0001 -s "test/$src" -n 1001 -D "/home/acm/oak/data/1001" -d "test/temp" -t 1000 -m 32768... | Shell |
#!/bin/bash
# ac pe wa ce re tle...
select=ac
lang=pascal
ext=pas
#spj=-S
src=1001_${select}.${ext}
sudo ./judge_${lang}.exe -u 0001 -s "test/$src" -n 1001 -D "test" -d "test/temp" -t 1000 -m 32768 -o 4096 $spj
#./judge_c.exe -u 0001 -s "test/$src" -n 1001 -D "/home/acm/oak/data/1001" -d "test/temp" -t 1000 -m 32768... | Shell |
#!/bin/bash
exec ./daemon.py >> daemon.log
| Shell |
#!/bin/bash
exec ./daemon.py >> daemon.log
| Shell |
#!/bin/bash
#designed for supervise@daemontools
#@ubuntu: sudo apt-get install daemontools && supervise .
exec java Daemon >> daemon.log
| Shell |
#!/bin/bash
#designed for supervise@daemontools
#@ubuntu: sudo apt-get install daemontools && supervise .
exec java Daemon >> daemon.log
| Shell |
#!/bin/bash
date=`date +%Y-%m-%d_%H%M%S`
mkdir ${date}
mv *.log ${date}
mv *.log.wf ${date}
gzip ${date}/*
| Shell |
#!/bin/bash
host=127.0.0.1
port=9527
src_ids=
if [ -z "$1" ]; then
echo Usage: $0 src_id [host [port]]
exit;
fi
src_id=$1
if [ ! -z $2 ]; then
host=$2
fi
if [ ! -z $3 ]; then
port=$3
fi
echo -n "Returned: "
echo $src_id | nc $host $port
echo
| Shell |
#!/bin/bash
WOJ_ROOT=~/woj
mkdir -p ${WOJ_ROOT}/{data,log,temp,upload}
cd ${WOJ_ROOT}
mkdir data/1001
cd data/1001
echo 1 > data.txt
echo 1 2 > 1.in
echo 3 > 1.out
| Shell |
#!/bin/bash
date=`date +%Y-%m-%d_%H%M%S`
mkdir ${date}
mv *.log ${date}
mv *.log.wf ${date}
gzip ${date}/*
| Shell |
#!/bin/bash
WOJ_ROOT=~/woj
mkdir -p ${WOJ_ROOT}/{data,log,temp,upload}
cd ${WOJ_ROOT}
mkdir data/1001
cd data/1001
echo 1 > data.txt
echo 1 2 > 1.in
echo 3 > 1.out
| Shell |
#!/bin/bash
host=127.0.0.1
port=9527
src_ids=
if [ -z "$1" ]; then
echo Usage: $0 src_id [host [port]]
exit;
fi
src_id=$1
if [ ! -z $2 ]; then
host=$2
fi
if [ ! -z $3 ]; then
port=$3
fi
echo -n "Returned: "
echo $src_id | nc $host $port
echo
| Shell |
#!/bin/bash
echo "Please input directory name..."
read directory
if [ -d ${directory} ]
then
mkdir -p /home/ccav/zipfile
zip=/home/ccav/zipfile
echo "input y or n to confirm"
read confirm
if [ $confirm = y ]
then
... | Shell |
#!/bin/bash
echo "Please input directory name..."
read directory
if [ -d ${directory} ]
then
mkdir -p /home/ccav/zipfile
zip=/home/ccav/zipfile
echo "input y or n to confirm"
read confirm
if [ $confirm = y ]
then
... | 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 |
#!/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
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
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 org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.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
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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
PYTHONPATH=./lib python -3 -W ignore pgn2ecodb.py
| Shell |
#!/bin/sh
PYTHONPATH=./lib python -3 -W ignore create_theme_preview.py
| Shell |
#!/bin/sh
PYTHONPATH=../lib python "$@"
| Shell |
#!/bin/sh
python setup.py --command-packages=stdeb.command sdist_dsc --workaround-548392=False bdist_deb
| Shell |
#!/bin/sh
PYTHONPATH=/home/tamas/gbtami-database/lib python -m cProfile -o rep.prof PgnImport.py
python print_pstats.py
| Shell |
#!/bin/sh
xgettext --package-name=pychess -o lang/pychess.pot glade/*.glade lib/pychess/Main.py lib/pychess/*/*.py lib/pychess/*/*/*.py sidepanel/*.py sidepanel/*.glade
sed -i '/#, fuzzy/d' lang/pychess.pot
line=""Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n""
sed -i "/${line}/ s/^/# /" lang/pychess.pot
| Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-relay;
}
redsocks {
local_ip = 12... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/bin/bash -e
echo $PYLIBRARY
#Archive history
RY023="cc56d65fbff4"
RZ023="539"
RY024="d3995087deb0"
RZ024="580"
#Last archive
#The release number of python-openzwave
RY025="d3995087deb0"
#The release number of openzwave
RZ025="580"
#Current archive
RY=$(echo $RY025)
RZ=$(echo $RZ025)
#Define variables
PYLIBRARY=$... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Update sources of python-openzwave |"
echo "-----------------------------------------------------------------"
hg pull https://code.google.com/r/wojciechziniewicz-openzwave/
hg update
echo "-----... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
echo "---... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
cd ..
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
cd e... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
cd docs
r... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Install python-openzwave lib |"
echo "-----------------------------------------------------------------"
python setup-lib.py install --record install.files
echo "---------------------------... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
set +e
rm zwcfg_*.xml
rm zwscene.xml
set -e
cd ..
python setup-lib.py install --root=build/tmp
pytho... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Build openzwave in build/tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
echo "-------... | Shell |
#!/bin/bash -e
CLEAN=0
[ 'u'$1 == 'uclean' ] && CLEAN=1
echo "-----------------------------------------------------------------"
echo "| Build openzwave |"
echo "-----------------------------------------------------------------"
cd openzwave/cpp/build/linux
[ $CLEAN -eq 1... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Uninstall python-openzwave |"
echo "-----------------------------------------------------------------"
[ ! -f install.files ] && echo "Can't find install.files. Abort !!" && exit 1
rm -Rf ... | 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 |
#!/usr/bin/env bash
success=true
for i
do
printf "%-40s" $i
if sh -c "$i >$i.log 2>&1" 2>/dev/null
then
echo PASS
else
echo FAIL';' output in $i.log
success=false
fi
done
if $success; then
echo 'ALL TESTS PASSED.'
exit 0
fi
echo 'TESTS FAILED.'
exit 1
| Shell |
#!/bin/sh
cp syntax.txt syntax.html
sam -d syntax.html <<'!'
,s/\&/\&/g
,s/</\</g
,s/>/\>/g
,s!== (([^()]|\([^()]*\))*)!≡ <code>\1</code>!g
,s!«!<code>!g
,s!»!</code>!g
,s! vim$! <font size=-2>VIM</font>!g
,s! pcre$! <font size=-2>PCRE</font>!g
,s! perl$! <font size=-2>PERL</font>!g
,x g/NOT SUPPORTED/ s!^[^... | Shell |
#!/bin/sh
cp syntax.txt syntax.wiki
sam -d syntax.wiki <<'!'
,s!`!`````!g
,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g
,s!«!`!g
,s!»!`!g
,s! vim$! <font size="1">VIM</font>!g
,s! pcre$! <font size="1">PCRE</font>!g
,s! perl$! <font size="1">PERL</font>!g
,s!(^[^ ]+) (.*)\n!`\1` \2\n!g
,x g/NOT SUPPORTED/ s!^[^ ]+!<font color=... | Shell |
#!/bin/bash
plugin_name=$(echo $1 | sed "s/\(.*\)\.sp/\1\.smx/g")
cp -v compiled/${plugin_name} ~/training4dead2/left4dead2/left4dead2/addons/sourcemod/plugins/
| Shell |
#!/bin/bash
WD=$(pwd)
ln -s $WD/$1 ~/training4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
cd ~/training4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
./compile.sh $1
ret=$?
rm ~/training4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/$1
if test $ret -eq 0
then
exit 0;
else
exit -1... | Shell |
#!/bin/bash
mkdir -p ${HOME}/backup
cp -Lv cfg/superversus.cfg ${HOME}/training4dead2/left4dead2/left4dead2/cfg
cp -Lv cfg/sourcemod/*.cfg ${HOME}/training4dead2/left4dead2/left4dead2/cfg/sourcemod
cp -Lv signatures/*.txt ${HOME}/training4dead2/left4dead2/left4dead2/addons/sourcemod/gamedata/
cp -Lv addons/*.vpk ${HOME... | Shell |
#!/bin/bash
plugin_name=$(echo $1 | sed "s/\(.*\)\.sp/\1\.smx/g")
cp -v compiled/${plugin_name} ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/plugins/
| Shell |
#!/bin/bash
WD=$(pwd)
ln $WD/$1 ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
cd ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
./compile.sh $1
ret=$?
rm ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/$1
if test $ret -eq 0
then
exit 0;
else
exit -1;
fi | Shell |
#!/bin/bash
mkdir -p ${HOME}/backup
cp ${HOME}/left4dead2/left4dead2/left4dead2/cfg {HOME}/backup/
cp ${HOME}/left4dead2/left4dead2/left4dead2/addons/sourcemod/plugins {HOME}/backup/
cp ${HOME}/left4dead2/left4dead2/left4dead2/addons/sourcemod/gamedata {HOME}/backup/
cp -v cfg/superversus.cfg ${HOME}/left4dead2/left4de... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.