code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
rm -f *.gir *.typelib *.h *.vapi *.so
| Shell |
LIBRARY_NAME=PsMoveApi
LIBRARY_VERSION=0.1
valac --library=${LIBRARY_NAME} \
-h ${LIBRARY_NAME}.h \
${LIBRARY_NAME}.vala ${LIBRARY_NAME}.c \
-X -fPIC \
-X -shared \
-o ${LIBRARY_NAME}.so \
-X -lpsmoveapi \
--gir ${LIBRARY_NAME}-${LIBRARY_VERSION}.gir
g-ir-compiler --shared-library=${LIBRAR... | 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 |
# $Id: test-functions.inc 126 2007-12-31 00:41:35Z sfsetse $
# vim:syntax=sh:sts=2
#
# shell workarounds
#
if [ -n "${ZSH_VERSION}" ]; then
emulate -LR sh
unsetopt function_argzero
fi
#
# constants
#
# configure debugging. set the DEBUG environment variable to any
# non-empty value to enable debug output, or TR... | Shell |
#! /bin/sh
# $Id: testAsserts 151 2008-05-10 22:07:29Z sfsetse $
# vim: expandtab
#
# author: Kate Ward <kate.ward@forestent.com>
#
# Self-testing unit tests for shUnit2 asserts
#
MSG='This is a test message'
# load common unit-test functions
. ./test-functions.inc
#--------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testFailures 151 2008-05-10 22:07:29Z sfsetse $
# vim: expandtab
#
# author: Kate Ward <kate.ward@forestent.com>
#
# Self-testing unit tests for shUnit2 failures
#
MSG='This is a test message'
# load common unit-test functions
. ./test-functions.inc
#------------------------------------------------... | Shell |
#! /bin/sh
# $Id: run-test-suite 126 2007-12-31 00:41:35Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
SHELLS='/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh /bin/zsh'
for f in test[A-Z]*; do
[ -x "${f}" ] && TESTS="${TESTS:+${TESTS} }${f}"
done
# load common unit test functions
. "${MY_PATH}/test-functio... | Shell |
#! /bin/sh
# $Id: run-test-suite 126 2007-12-31 00:41:35Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
SHELLS='/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh /bin/zsh'
for f in test[A-Z]*; do
[ -x "${f}" ] && TESTS="${TESTS:+${TESTS} }${f}"
done
# load common unit test functions
. "${MY_PATH}/test-functio... | Shell |
#! /bin/sh
# $Id: testAsserts 151 2008-05-10 22:07:29Z sfsetse $
# vim: expandtab
#
# author: Kate Ward <kate.ward@forestent.com>
#
# Self-testing unit tests for shUnit2 asserts
#
MSG='This is a test message'
# load common unit-test functions
. ./test-functions.inc
#--------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testFailures 151 2008-05-10 22:07:29Z sfsetse $
# vim: expandtab
#
# author: Kate Ward <kate.ward@forestent.com>
#
# Self-testing unit tests for shUnit2 failures
#
MSG='This is a test message'
# load common unit-test functions
. ./test-functions.inc
#------------------------------------------------... | Shell |
# $Id: test-functions.inc 126 2007-12-31 00:41:35Z sfsetse $
# vim:syntax=sh:sts=2
#
# shell workarounds
#
if [ -n "${ZSH_VERSION}" ]; then
emulate -LR sh
unsetopt function_argzero
fi
#
# constants
#
# configure debugging. set the DEBUG environment variable to any
# non-empty value to enable debug output, or TR... | Shell |
# $Id: shlib 14 2007-02-18 19:43:41Z sfsetse $
# vim:syntax=sh
#
# library of shell functions
#
shlib_relToAbsPath()
{
_shlib_path=$1
# deal with paths that start with /
echo "${_shlib_path}" |grep '^/' >/dev/null 2>&1
if [ $? -ne 0 ]; then
_shlib_pwd=`pwd`
_shlib_path="${_shlib_pwd}/${_shlib_path}"
... | Shell |
# $Id: shlib 14 2007-02-18 19:43:41Z sfsetse $
# vim:syntax=sh
#
# library of shell functions
#
shlib_relToAbsPath()
{
_shlib_path=$1
# deal with paths that start with /
echo "${_shlib_path}" |grep '^/' >/dev/null 2>&1
if [ $? -ne 0 ]; then
_shlib_pwd=`pwd`
_shlib_path="${_shlib_pwd}/${_shlib_path}"
... | Shell |
#! /bin/sh
# $Id: hello_world 235 2006-08-19 22:40:25Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# load log4sh
if [ -r log4sh ]; then
LOG4SH_CONFIGURATION='none' . ./log4sh
else
echo "ERROR: could not load (log4sh)" >&2
exit 1
fi
# change the default message level from ERROR to INFO
logger_set... | Shell |
#! /bin/sh
# $Id: hello_world 235 2006-08-19 22:40:25Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# load log4sh
if [ -r log4sh ]; then
LOG4SH_CONFIGURATION='none' . ./log4sh
else
echo "ERROR: could not load (log4sh)" >&2
exit 1
fi
# change the default message level from ERROR to INFO
logger_set... | Shell |
#! /bin/sh
# $Id: testCustomMDCPatterns 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
debug() { echo "${MY_NAME}:DEBUG $@" >&2; }
DEBUG=${DEBUG:+'debug '}
[ -z "${DEBUG}" ] && DEBUG=':'
${DEBUG} 'debugging enabled'
APP_NAME='stdout'
#--------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testSMTPAppender 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_NAME='mySMTP'
APP_CONFIG="${MY_NAME}.log4sh"
TEST_SUBJECT='This is a Subject worth testing'
TEST_TO='some.user@some.host'
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#-------... | Shell |
# $Id: test-common 215 2006-08-15 10:22:59Z sfsetse $
# vim:syntax=sh:sw=2:ts=2:expandtab
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# The spiffy Simsons comments were shamelessly pulled from the lf5 examples
# from log4j.
#
#
# setup the initial logging environment
#
smtpEmail="postmaster@localhost"
syslogFac... | Shell |
#! /bin/sh
# $Id: test-prop-config 196 2006-03-25 13:35:20Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# find myself
whoAmI=`basename $0`
whereAmI=`dirname $0`
whereAmI=`cd "${whereAmI}" 2>/dev/null && pwd || echo "${whereAmI}"`
#-----------------------------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testMultipleAppenders 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_ONE_NAME="appenderOne"
APP_ONE_FILE="${MY_NAME}-one.log"
APP_TWO_NAME="appenderTwo"
APP_TWO_FILE="${MY_NAME}-two.log"
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#-------... | Shell |
#! /bin/sh
# $Id: testPatternLayout 550 2007-05-22 16:45:22Z sfsetse $
myName=`basename $0`
myPath=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
APP_NAME='stdout'
#------------------------------------------------------------------------------
# suite tests
#
commonPa... | Shell |
#! /bin/sh
# $Id: testFileAppender 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_ACCESSORS='accessors'
APP_ACCESSORS_FILE=''
APP_ACCESSORS_LOG4SH="${MY_NAME}-${APP_ACCESSORS}.log4sh"
APP_SIMPLE='mySimple'
APP_SIMPLE_FILE=''
APP_SIMPLE_LOG4SH="${MY_NAME}-${APP_SIMPLE}.log4sh"
APP_... | Shell |
# $Id: test-functions.inc 416 2007-01-04 00:50:14Z sfsetse $
# vim:syntax=sh:sts=2
#
# constants
#
# configure debugging. set the DEBUG environment variable to any
# non-empty value to enable debug output, or TRACE to enable trace
# output.
TRACE=${TRACE:+'tf_trace '}
[ -n "${TRACE}" ] && DEBUG=1
[ -z "${TRACE}" ] &&... | Shell |
#! /bin/sh
# $Id: testLog4jCompatibility 562 2007-05-31 23:31:34Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#------------------------------------------------------------------------------
# suite tests
#
testAppenders()
{
f... | Shell |
#! /bin/sh
# $Id: test-runtime-config 304 2006-09-16 21:28:26Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# find myself
whoAmI=`basename $0`
whereAmI=`dirname $0`
whereAmI=`cd "${whereAmI}" 2>/dev/null && pwd || echo "${whereAmI}"`
#--------------------------------------------------------------------... | Shell |
#! /bin/sh
# $Id: run-test-suite 432 2007-01-05 14:58:37Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
SHELLS='/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh'
for f in test[A-Z]*; do
[ -x "${f}" ] && TESTS="${TESTS:+${TESTS} }${f}"
done
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
... | Shell |
#! /bin/sh
# $Id: testCustomMDCPatterns 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
debug() { echo "${MY_NAME}:DEBUG $@" >&2; }
DEBUG=${DEBUG:+'debug '}
[ -z "${DEBUG}" ] && DEBUG=':'
${DEBUG} 'debugging enabled'
APP_NAME='stdout'
#--------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testSyslogAppender 570 2007-06-02 19:16:46Z sfsetse $
# vim:sts=2
#
# This unit test tests the general logging functionality of Syslog. It sends
# all logging to only a single facility to prevent spamming of system logs
# (something that happens to be a side effect of running this test). This test
# e... | Shell |
#! /bin/sh
# $Id: testSMTPAppender 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_NAME='mySMTP'
APP_CONFIG="${MY_NAME}.log4sh"
TEST_SUBJECT='This is a Subject worth testing'
TEST_TO='some.user@some.host'
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#-------... | Shell |
#! /bin/sh
# $Id: testAsciiCharset 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
TEST_DATA="${MY_NAME}.data"
#------------------------------------------------------------------------------
# suite tests
... | Shell |
#! /bin/sh
# $Id: testPropertyConfig 562 2007-05-31 23:31:34Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#------------------------------------------------------------------------------
# suite tests
#
testAppenders()
{
#
#... | Shell |
#! /bin/sh
# $Id: test-prop-config 196 2006-03-25 13:35:20Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# find myself
whoAmI=`basename $0`
whereAmI=`dirname $0`
whereAmI=`cd "${whereAmI}" 2>/dev/null && pwd || echo "${whereAmI}"`
#-----------------------------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testRollingFileAppender 550 2007-05-22 16:45:22Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
MY_LOG4SH="${MY_NAME}.log4sh"
APP_NAME='R'
APP_MAX_FILE_SIZE='10KiB'
APP_MAX_FILE_SIZE_REAL=10240
APP_MAX_BACKUP_INDEX='1'
appFile=''
resultFile=''
# load common unit test functions
. ... | Shell |
#! /bin/sh
# $Id: testPriority 550 2007-05-22 16:45:22Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
APP_NAME='stdout'
TEST_DATA="priorityMatrix.data"
#---------------------------------------------------------------... | Shell |
# $Id: test-common 215 2006-08-15 10:22:59Z sfsetse $
# vim:syntax=sh:sw=2:ts=2:expandtab
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# The spiffy Simsons comments were shamelessly pulled from the lf5 examples
# from log4j.
#
#
# setup the initial logging environment
#
smtpEmail="postmaster@localhost"
syslogFac... | Shell |
#! /bin/sh
# $Id: testMultipleAppenders 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_ONE_NAME="appenderOne"
APP_ONE_FILE="${MY_NAME}-one.log"
APP_TWO_NAME="appenderTwo"
APP_TWO_FILE="${MY_NAME}-two.log"
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#-------... | Shell |
#! /bin/sh
# $Id: run-test-suite 432 2007-01-05 14:58:37Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
SHELLS='/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh'
for f in test[A-Z]*; do
[ -x "${f}" ] && TESTS="${TESTS:+${TESTS} }${f}"
done
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
... | Shell |
#! /bin/sh
# $Id: testPriority 550 2007-05-22 16:45:22Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
APP_NAME='stdout'
TEST_DATA="priorityMatrix.data"
#---------------------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testLog4jCompatibility 562 2007-05-31 23:31:34Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#------------------------------------------------------------------------------
# suite tests
#
testAppenders()
{
f... | Shell |
#! /bin/sh
# $Id: testPatternLayout 550 2007-05-22 16:45:22Z sfsetse $
myName=`basename $0`
myPath=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
APP_NAME='stdout'
#------------------------------------------------------------------------------
# suite tests
#
commonPa... | Shell |
#! /bin/sh
# $Id: testFileAppender 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
APP_ACCESSORS='accessors'
APP_ACCESSORS_FILE=''
APP_ACCESSORS_LOG4SH="${MY_NAME}-${APP_ACCESSORS}.log4sh"
APP_SIMPLE='mySimple'
APP_SIMPLE_FILE=''
APP_SIMPLE_LOG4SH="${MY_NAME}-${APP_SIMPLE}.log4sh"
APP_... | Shell |
#! /bin/sh
# $Id: testPropertyConfig 562 2007-05-31 23:31:34Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
# load common unit test functions
. "${MY_PATH}/test-functions.inc"
#------------------------------------------------------------------------------
# suite tests
#
testAppenders()
{
#
#... | Shell |
# $Id: test-functions.inc 416 2007-01-04 00:50:14Z sfsetse $
# vim:syntax=sh:sts=2
#
# constants
#
# configure debugging. set the DEBUG environment variable to any
# non-empty value to enable debug output, or TRACE to enable trace
# output.
TRACE=${TRACE:+'tf_trace '}
[ -n "${TRACE}" ] && DEBUG=1
[ -z "${TRACE}" ] &&... | Shell |
#! /bin/sh
# $Id: testRollingFileAppender 550 2007-05-22 16:45:22Z sfsetse $
# vim:sts=2
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
MY_LOG4SH="${MY_NAME}.log4sh"
APP_NAME='R'
APP_MAX_FILE_SIZE='10KiB'
APP_MAX_FILE_SIZE_REAL=10240
APP_MAX_BACKUP_INDEX='1'
appFile=''
resultFile=''
# load common unit test functions
. ... | Shell |
#! /bin/sh
# $Id: test-runtime-config 304 2006-09-16 21:28:26Z sfsetse $
#
# Author: Kate Ward <kate.ward@forestent.com>
#
# find myself
whoAmI=`basename $0`
whereAmI=`dirname $0`
whereAmI=`cd "${whereAmI}" 2>/dev/null && pwd || echo "${whereAmI}"`
#--------------------------------------------------------------------... | Shell |
#! /bin/sh
# $Id: testSyslogAppender 570 2007-06-02 19:16:46Z sfsetse $
# vim:sts=2
#
# This unit test tests the general logging functionality of Syslog. It sends
# all logging to only a single facility to prevent spamming of system logs
# (something that happens to be a side effect of running this test). This test
# e... | Shell |
#! /bin/sh
# $Id: testAsciiCharset 550 2007-05-22 16:45:22Z sfsetse $
MY_NAME=`basename $0`
MY_PATH=`dirname $0`
DEBUG=${DEBUG:+' '}
DEBUG=${DEBUG:-':'}
${DEBUG} echo 'DEBUG output enabled' >&2
TEST_DATA="${MY_NAME}.data"
#------------------------------------------------------------------------------
# suite tests
... | Shell |
#!/bin/bash
#CONFIG
SKILLS_DB_PATH="../data"
SKILLS_DB_FILE_NAME="skills.sqlite"
SKILLS_DB="$SKILLS_DB_PATH/$SKILLS_DB_FILE_NAME"
SRC_PATH="."
PRE_FILE_NAME="skill.pre.vala"
POST_FILE_NAME="skill.post.vala"
TMP_FILE="/tmp/gen_enum_tmp.txt";
SEPARATOR="|"
#DON'T TOUCH BELOW THIS LINE!
#---------------------------... | Shell |
#!/bin/bash
########################
# FUNCTIONS:
########################
function do_generate_vala_enums {
echo "GENERATING SKILL ENUMs FROM SQLITE DB..."
./gen_enum.sh
}
function do_generate_c_code {
echo ""
echo ""
echo "COMPILING VALA TO C CODE..."
valac -C -g -H rpg.h --library=rpg --pkg libxml... | Shell |
#!/bin/bash
########################
# FUNCTIONS:
########################
function do_generate_c_code {
echo ""
echo ""
echo "COMPILING VALA TO C CODE AND CREATING LINUX BINARY..."
valac -C -X -I../../librpg/vala -X -L../../librpg/vala -X -lrpg --pkg libxml-2.0 -o rpgviewer main.vala ../../librpg/vala/rpg.vapi ... | Shell |
#!/bin/sh
spread -c ./spread.conf -n host1 | Shell |
#!/bin/sh
#spread -c ./spread.conf &
java -cp ./dist/AlcatrazOnline.jar:./lib/spread.jar:./lib/alcatraz-lib.jar at.technikum.sam.remote.alcatraz.server.RegistryServer
| Shell |
#!/bin/sh
spread -c ./spread.conf -n host1 | Shell |
#!/bin/sh
#spread -c ./spread.conf &
java -cp ./dist/AlcatrazOnline.jar:./lib/spread.jar:./lib/alcatraz-lib.jar at.technikum.sam.remote.alcatraz.server.RegistryServer
| Shell |
#! /bin/bash
set -ex
pdflatex pts_pdfsizeopt2009_talk.tex
pdflatex pts_pdfsizeopt2009_talk.tex
../pdfsizeopt.py pts_pdfsizeopt2009_talk.pdf
cp pts_pdfsizeopt2009_talk.pdf ~/Dropbox.pts/Dropbox/Public/
| 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 |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/sh
# This formats all the SQL files in the specified directory so that
# they can be executed by psql. There are two modes -- a 'testing'
# mode (the default mode -- this strips out all the "commit" statements)
# and a commit mode for deployment. You need to pipe the output of this
# script into sqlplus, for ex... | 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
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-snapshot-20111122.tar.gz
MUPDF=mupdf
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../deps
tar xvf $FREETYPE.tar.bz2
tar xvf $JPEGSRC
tar xvf... | 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/bash
#This script invokes the WSD system.
#You should invoke it like this (all on one line):
#./runwsd.sh /afs/ir/class/cs224u/wsdp/data/interest.train /afs/ir/class/cs224u/wsdp/data/interest.test | ./eval.pl /afs/ir/class/cs224u/wsdp/data/interest.ans
java -Xmx1000m -cp "bin:lib/stanford-postagger.jar:lib/weka... | Shell |
#!/bin/bash
#This script invokes the WSD system.
#You should invoke it like this (all on one line):
#./runwsd.sh /afs/ir/class/cs224u/wsdp/data/interest.train /afs/ir/class/cs224u/wsdp/data/interest.test | ./eval.pl /afs/ir/class/cs224u/wsdp/data/interest.ans
java -Xmx1000m -cp "bin:lib/stanford-postagger.jar:lib/weka... | Shell |
#!/bin/sh
if [ ! -e bin/ ]; then
mkdir bin
fi
javac -cp lib/stanford-postagger.jar:lib/weka.jar -source 1.5 -target 1.5 \
-d bin/ `find src/ -name *.java`
| Shell |
#!/bin/bash
./baseline.pl data/interest.train data/interest.test | ./eval.pl data/interest.ans | Shell |
#!/bin/sh
if [ ! -e bin/ ]; then
mkdir bin
fi
javac -cp lib/stanford-postagger.jar:lib/weka.jar -source 1.5 -target 1.5 \
-d bin/ `find src/ -name *.java`
| Shell |
#!/bin/bash
./baseline.pl data/interest.train data/interest.test | ./eval.pl data/interest.ans | Shell |
#/bin/sh
# This code will get called once when we first begin to grade your assignment
# You probably don't need to touch this file, but if you make significant
# changes to the way the MessageParser works, ie if you don't want it to
# store intermediate parsed files locally, or if you choose not to program
# in Jav... | Shell |
#!/bin/sh
# We will call your code using this script.
# It is mostly useless, but just in case someone
# really doesn't want to write their code in Java
# you can modify this script so that your code gets
# called correctly. This will get called as
# runNaiveBayes.sh <mode>
# where mode specifies which part of the ... | Shell |
#!/bin/sh
# We will call your code using this script.
# It is mostly useless, but just in case someone
# really doesn't want to write their code in Java
# you can modify this script so that your code gets
# called correctly. This will get called as
# runNaiveBayes.sh <mode>
# where mode specifies which part of the ... | Shell |
#!/bin/bash
# Adjust these to reflect the location of NUnit in your system,
# and how you want NUnit to run
NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
NUNIT_OPTIONS=-noshadow
# The rest should be okay.
SRC=../src
LIB=../lib
KEYFILE=../keys/Google.ProtocolBuffers.snk
rm -rf bin
mkdir bin
# Runn... | Shell |
#!/bin/bash
echo Compiling protobufs
rm -rf tmp
mkdir tmp
PROTOS_DIR=../protos
./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \
$PROTOS_DIR/google/protobuf/descriptor.proto \
$PROTOS_DIR/google/protobuf/csharp_options.proto \
$PROTOS_DIR/google/protobuf/unittest.proto \
$PROTOS_DIR/goo... | 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 |
#!/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 |
#!/bin/sh
/usr/bin/find /System/Library/Extensions/logKext.kext -exec /bin/chmod -R g-w {} \;
/sbin/kextunload -b com.fsb.kext.logKext
/sbin/kextload /System/Library/Extensions/logKext.kext
/Library/Application\ Support/logKext/logKextKeyGen
/bin/launchctl load /Library/LaunchDaemons/logKext.plist
/usr/bin/open /LogKe... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
# Copyright 2005-2007, Cake Software Foundation, Inc.
#
# Licensed under ... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
# Copyright 2005-2007, Cake Software Foundation, Inc.
#
# Licensed under ... | Shell |
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
# 'brp-compress' gzips the man pages without distutils knowing... fix this
sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES
| Shell |
#!/bin/sh
if [ -e "`which tox`" ]; then
tox $@
else
echo "**** install tox globally to test all Pythons at once http://codespeak.net/tox/"
python setup.py egg_info
python selftest.py $@
fi | Shell |
#!/bin/bash
echo
echo --------------------------------------------------
echo abnTeX2 BUILDER SCRIPT
echo http://abntex2.googlecode.com/
echo build zip files and deploy them on Google Code
echo --------------------------------------------------
VERSAO=""
ZIP_DOC=""
ZIP_TDS=""
ZIP_MODELO=""
ZIP_CTAN=target/abntex2.... | Shell |
f=file.bin
$(rm $f)
b=$(($1*1024))
for i in $(seq 1 $b)
do
echo -n "a" >> $f
done
| 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
echo "Content-Type: text/plain"
echo
echo "This is shell script CGI."
| Shell |
#!/bin/sh
echo "echoing bad headers: server must report status 500"
exec 1>&2
echo shit!!!
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| Shell |
cd /cygdrive/c/workspace/AndEnginePhysicsBox2DExtension/
/cygdrive/c/workspace/sdk/android-ndk-r6/ndk-build | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/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/bash
set -e
echo -n "Enter the version for this release: "
read ver
if [ ! $ver ]; then
echo "Invalid version."
exit
fi
name="select2"
js="$name.js"
mini="$name.min.js"
css="$name.css"
release="$name-$ver"
tag="$ver"
branch="build-$ver"
curbranch=`git branch | grep "*" | sed "s/* //"`
timestamp=$(date)
tok... | Shell |
#!/bin/sh
#
# /etc/init.d/tomcat7 -- startup script for the Tomcat 7 servlet engine
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat7 by Mac Collins <mcol... | Shell |
#!/bin/bash
echo "ThreadFix VM config script v1"
if [ "$(whoami)" != "tfuser" ];
then
echo "This script must be run as user 'tfuser'"
echo "Please log back in as tfuser and run this script again."
exit 1;
fi
# DELETE vagrant user
if [ "`ls -a | grep .del_vagrant`" = "" ];
then
echo "Deleting vagrant u... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.