code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
#
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved.
#
# Author: Mike Fabian <mfabian@suse.de>, 2002
#
TYPE1_DIR=$1
if [ -z $TYPE1_DIR ] ; then
TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/
fi
CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map
echo "creati... | Shell |
#!/bin/sh
CONFLOCAL=$HOME/.netscape/psfonts.cf
CONFGLOBAL=/usr/local/etc/nspsfonts.cf
if [ -r "$CONFLOCAL" ]
then
CONF="$CONFLOCAL"
else
CONF="$CONFGLOBAL"
fi
grep -v "^#" <$CONF | grep -v "^$" | while :
do {
read nsname base afm pfa x
[ -z "$nsname" ] && break;
fname=`awk '/^FontName/ {print $2;}' <$base$afm`
... | Shell |
#!/bin/sh
if uname -s | grep -i bsd >/dev/null
then
LPR=lpr
else
LPR=lp
fi
nsfilter | $LPR "$@"
| Shell |
#!/bin/sh
NDIR=$HOME/.netscape
PFILE=$NDIR/preferences.js
CFFILE=$NDIR/fontsz.cf
TMPFILE=$NDIR/fontsz.sed
die() {
echo "notscape: can't $*" >&2
exit 1
}
[ -r $CFFILE ] && {
awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \
$1, $2, $1); }' <$CFFILE >$TMPFILE
cp $PFILE $PFILE.old || d... | Shell |
#!/bin/sh
if [ $# != 2 ]
then
echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251"
exit
else
enc=$1
shift
fi
case ${enc} in
1250|1251)
charset=windows
;;
*)
charset=iso8859
;;
esac
sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\
s/Times-Italic/Time... | Shell |
#!/bin/sh
#
# Copyright (c) 1998-2000
# Sergey A. Babkin. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice... | Shell |
#!/bin/sh
#
# Copyright (c) 1998, 1999
# Sergey A. Babkin. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | Shell |
#!/bin/sh
#
# See COPYRIGHT
#
# Script to create a release or shapshot archive.
# Also checks for very basic inconsistences.
# Expects that it would be run from the current directory of ttf2pt1,
# and that the parent directory is the place to create archives.
# Expects that the CVS environment variables are set properl... | Shell |
#!/bin/sh
#
# Copyright (c) 1998-2000
# Sergey A. Babkin. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, ... | Shell |
#!/bin/sh
#
# This script removes the HTML formatting from a file. If the file was designed
# with such use in mind and was properly formatted besides HTML (such as the README
# file for ttf2pt1) it will look good as a plain text file.
#
# This script supports a very limited set of HTML formatting. Everything that
# go... | Shell |
#!/bin/sh
#
# Script to install a file (for portability reasons)
#
# (c) 2000 by The TTF2PT1 Project
# See COPYRIGHT for full license
#
[ $# != 5 ] && {
echo "Use: $0 file-from file-to owner group mode" >&2
exit 1
}
cp -f $1 $2 \
&& chown $3 $2 \
&& chgrp $4 $2 \
&& chmod 0$5 $2
| Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/bash
unit() {
PYTHONPATH=. "$@"
}
all-tests() {
export PYTHONPATH=.
find . -name \*_test.py | sh -x -e
}
calc() {
PYTHONPATH=. examples/calc.py "$@"
}
example() {
PYTHONPATH=. "$@"
}
wc-code() {
ls annex/*.py | grep -v _test.py | xargs wc -l | sort -n
}
blowup() {
~/hg/pygments/pygmentize -l s... | Shell |
#!/bin/bash
#
# Example of using CRE syntax in shell.
# If the compiler fails, we want to stop the shell script.
set -o errexit
# TODO: cat -> annex convert
readonly foo=$(cat <<EOF
Foo: either { DIGIT+ as year } or { ALPHA+ as name }
bar: Foo chars(a-z) ~chars(a-z ~alnum) [boundary] [end]
EOF
)
echo $foo
# now y... | Shell |
#!/bin/bash
#
# Mercurial hooks run with their working dir as the root of the repository.
#
# To install this hook, put this in .hg/hgrc
#
# [hooks]
# changegroup = hooks/changegroup.sh
/poly/tools/chubot-vcs-hook-cdi
| Shell |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail # needed for snip
# We are started in the doc/ dir, but let's use the parent dir.
readonly ANNEX_ROOT=$(cd .. && pwd)
readonly THIS_DIR=$PWD # Save current directory before changing it
# TODO: Build date?
# TODO: Source editing date has to come from the te... | Shell |
#!/bin/bash
#
# Snippets for documents.
# TODO: These should be set by "snip" I think.
set -o errexit
set -o nounset
# TODO: This should be shared with AppBuild somehow.
jsont() {
../_tmp/deps/jsont.tin "$@"
}
# A plain <pre> section -- markdown generates <pre><code>, which I don't want.
pre() {
echo '<pre>'
c... | Shell |
#!/bin/bash
#
# run.sh: Stuff that's not part of the doc main process.
#
# Usage:
# ./run.sh <action> ...
pyg() {
pygmentize -f html -l python <<EOF
def foo():
pass
EOF
}
# http://pygments.org/docs/quickstart/
# Their styles are embedded in Python code -- I want CSS.
style-py() {
python <<EOF
import pygments... | Shell |
#!/bin/bash
#
# file-latch.sh
#
# Usage:
# ...
set -o nounset
die() {
echo 1>&2 "$@"
exit 1
}
main() {
which inotifywait \
|| die "inotifywait must be installed (apt-get install inotifytools)."
local filename=$1
while true; do
echo Watching "$@"
inotifywait --event modify "$@"
local exit... | Shell |
#!/bin/bash
# Everything has to succeed
set -o errexit
tin() {
_tmp/deps/tin.tin "$@"
}
readonly pypath=.:$CDI_DEPS/docopt-master
Build() {
# Build the tnet tool. Set PYTHONPATH so it can import.
PYTHONPATH=$pypath tin build-python bin.annex_ --out=$CDI_OUT/annex.tin
poly build doc/
}
Test() {
# TODO: ... | Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/bin/sh
scp -q res/values/strings.xml linode:ath/incoming/en.xml
wget --quiet -O /dev/null --ignore-length --post-data="" http://ath.darshancomputing.com/bi/load_new_en
if [ "$?" -ne "0" ]; then
echo "Sorry, something didn't work!"
exit 1
fi
| Shell |
#!/bin/bash
#
# Constants
#
NORMAL_DIR='normal-icons-pre-v11'
V11_DIR='black-square-icons-v11'
NORMAL_ARG='normal'
V11_ARG='v11'
SWAP_ARG='swap'
SHOW_ARG='show'
NONE_ARG='none'
NORMAL_MIN_API='3'
V11_MIN_API='11'
NORMAL_V11_COMMENT="\/\/\/\*v11\*\/"
V11_V11_COMMENT="\/\*v11\*\/"
#
# Functions
#
function swap_cur... | Shell |
#!/bin/bash
#ruby generate_images.rb
#for i in res/drawable/b[0-9]*.png; do mogrify -resize 25x25 $i; done
#gimp res/drawable/b100.png
#for i in res/drawable/*.png; do mogrify -sharpen 25x25 $i; done
# shift ("roll") images 1px to the right
# for i in numbers/*.png; do convert $i -roll +1+0 $i; done
d=`dirname $(rea... | Shell |
#!/bin/sh
# After initial checkout from svn, you'll want to run this as your first step.
android update project --path . --name "BatteryIndicator" --target "android-16"
| Shell |
#!/bin/bash
#
# Constants
#
NORMAL_DIR='normal-icons-pre-v11'
V11_DIR='black-square-icons-v11'
NORMAL_ARG='normal'
V11_ARG='v11'
SWAP_ARG='swap'
SHOW_ARG='show'
NONE_ARG='none'
NORMAL_MIN_API='3'
V11_MIN_API='11'
NORMAL_V11_COMMENT="\/\/\/\*v11\*\/"
V11_V11_COMMENT="\/\*v11\*\/"
#
# Functions
#
function swap_cur... | 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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
gcc -flto -O3 -Wall test_atom.c -o test_atom -lrt
| Shell |
#!/bin/sh
CC="gcc"
DEBUG="-g -DNDEBUG"
OPT="-flto -O3 -march=native "
$CC $OPT $DEBUG -Wall ann_shm.c ann_shm_test.c -DUSE64 -I. -o test_gcc_64 -lrt -lpthread || exit 1
$CC $OPT $DEBUG -Wall ann_shm.c ann_shm_test.c -DUSE32 -I. -o test_gcc_32 -lrt -lpthread
$CC $OPT $DEBUG -Wall ann_shm.c ann_shm_test.c -DUSE16 -I... | Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc. All Rights Reserved.
# Author: jcgregorio@google.com (Joe Gregorio)
#
# Creates the documentation set for the library by
# running pydoc on all the files in apiclient.
#
# Notes: You may have to update the location of the
# App Engine library for your local system.
exp... | Shell |
#!/bin/bash
# author: Jannik Stroetgen
# email: stroetgen@uni-hd.de
# date: April 23, 2011
# About this script:
####################
# This script adapts the descriptor files of the DKPro components.
# The type system information has to be adapted:
# * in DKPRO_HOME/desc/annotator/SentenceSplitter.xml change... | Shell |
#!/bin/bash
if [ "$HEIDELTIME_HOME" = "" ] ; then
echo "please set \$HEIDELTIME_HOME"
exit -1
fi
PWD=$(pwd)
cd $HEIDELTIME_HOME/resources
echo "Writing used_resources.txt"
find ./ -name "*.txt" > used_resources.txt
echo "Copying resources..."
cp -r $HEIDELTIME_HOME/resources/* $HEIDELTIME_HOME/class/
echo "don... | Shell |
#/bin/bash
Files=`for f in "$@"; do
echo $f;
done | grep "src.*\.g"`;
echo "Files: $Files";
shopt -s extglob;
for f in $Files; do
dir=${f%%*([^\\/])};
file=${f##*[\\/]};
#echo "Directory: $dir";
#echo "File: $file";
[[ -n $f ]] &&
cd "$dir" &&
java org.antlr.Tool "$file";
done
#[[ -n $Files ]] && java o... | 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
#
# Android Weather Notification.
# Copyright (C) 2012 gelin
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at your option) an... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2012 gelin, 2011 mihovilic
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2014 gelin
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at your option) an... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 Denis Nelubin aka Gelin
#
# 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 Free Software Foundation; either version 2 of the License, or
# ... | Shell |
#!/bin/sh
TARGETS=$*
buildin() {
BASE_DIR=$(pwd)
cd $1
ant $TARGETS
cd $BASE_DIR
}
buildin core
buildin skins/black-text
buildin skins/white-text
buildin skins/black-text-plus
buildin skins/white-text-plus
buildin skins/bigger-text
| Shell |
#!/bin/sh
#
### $Id: run.sh abhayani@redhat.com $ ###
#
# Mobicents Media Server Control Script
#
# To use this script run it as root - it will switch to the specified user
#
# Here is a little (and extremely primitive) startup/shutdown script
# for RedHat systems. It assumes that Mobicents Media Server lives in /usr/l... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## Mobicents SS7 CLI Bootstrap Script ##
## ##... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## Mobicents SMSC Test Server Bootstrap Script ##
## ... | Shell |
#!/bin/bash
MEMORY=512m
java -Xmx$MEMORY -cp "../lib/*" -javaagent:../lib/sizeofag-1.0.0.jar moa.gui.GUI
| Shell |
#!/bin/sh
#
# Usage example: ./generate.sh int Int Integer"
# Args are: primitive type, capitalized primitive type, wrapper type
#
# To make changes to the .java files in this package,
# 1. run this script to generate the templates, move the .gen files
# somewhere else
# 2. modify the template with your intended cha... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/bash
. serial.sh
function send {
echo -ne "$*\r" > $SERIAL_DEVICE
}
send A=1000000
send VM=70000
send E # end any running program
send DE=1 # enable drive
while true; do
send MR -10000
sleep 0.1
done
| Shell |
#!/bin/bash
. serial.sh
echo -ne "DE=1\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "EX SU\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "RS\r" > $SERIAL_DEVICE
| Shell |
#!/bin/bash
. serial.sh
echo -ne "DE=0\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "E\r" > $SERIAL_DEVICE
| Shell |
#!/bin/bash
. serial.sh
function send {
echo -ne "$*\r" > $SERIAL_DEVICE
}
send A=1000000
send VM=70000
send E # end any running program
send DE=1 # enable drive
while true; do
send MR 10000
sleep 0.1
done
| Shell |
if [ `uname` = "Linux" ]; then
SERIAL_DEVICE=/dev/ttyUSB0
stty -F $SERIAL_DEVICE 9600
else
SERIAL_DEVICE=/dev/cu.usbserial-FTC8534M
fi
| Shell |
#!/bin/bash
. serial.sh
echo -ne "PS\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "E\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "CP\r" > $SERIAL_DEVICE
sleep 0.5
cat scan.mxt > $SERIAL_DEVICE
#cat sensors.mxt > $SERIAL_DEVICE
| Shell |
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# 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 applic... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2010, Cake Software Foundation, Inc.
#
# Licensed under The ... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2010, Cake Software Foundation, Inc.
#
# Licensed under The ... | Shell |
#!/bin/sh
if [ "${1}" == "x64" ]; then
arch=x86_64
archdir=x64
else
arch=x86
archdir=Win32
fi
make_dirs() (
if [ ! -d bin_${archdir}d/lib ]; then
mkdir -p bin_${archdir}d/lib
fi
)
copy_libs() (
cp lib*/*-lav-*.dll ../bin_${archdir}d
cp lib*/*-lav-*.pdb ../bin_${archdir}d
cp lib*/*.lib ../bin_${... | Shell |
#!/bin/sh
if [ "${1}" == "x64" ]; then
arch=x86_64
archdir=x64
else
arch=x86
archdir=Win32
fi
make_dirs() (
if [ ! -d bin_${archdir}/lib ]; then
mkdir -p bin_${archdir}/lib
fi
if [ ! -d bin_${archdir}d/lib ]; then
mkdir -p bin_${archdir}d/lib
fi
)
copy_libs() (
cp lib*/*-lav-*.dll ../bin_$... | Shell |
#!/bin/bash
#
# Starts a basic web server on the port specified.
#
# ./serve.sh 3000 -> http://localhost:3000
#
# Copyright 2012 Eric Bidelman <ebidel@gmail.com>
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
| 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
#
# 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 ... | Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | 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
# 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_BitmapCache VERBOSE
| 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 |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
./forfiles ./nlines nlines.hs forfiles.hs ../*.hs | cat
./forfiles ./nlines nlines.hs forfiles.hs ../*.hs | ./total
| Shell |
#!/bin/bash
. serial.sh
function send {
echo -ne "$*\r" > $SERIAL_DEVICE
}
send A=1000000
send VM=70000
send E # end any running program
send DE=1 # enable drive
while true; do
send MR 10000
sleep 0.1
done
| Shell |
#!/bin/bash
. serial.sh
echo -ne "DE=0\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "E\r" > $SERIAL_DEVICE
| Shell |
#!/bin/bash
. serial.sh
echo -ne "DE=1\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "EX SU\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "RS\r" > $SERIAL_DEVICE
| Shell |
if [ `uname` = "Linux" ]; then
SERIAL_DEVICE=/dev/ttyUSB0
stty -F $SERIAL_DEVICE 9600
else
SERIAL_DEVICE=/dev/cu.usbserial-FTC8534M
fi
| Shell |
#!/bin/bash
. serial.sh
function send {
echo -ne "$*\r" > $SERIAL_DEVICE
}
send A=1000000
send VM=70000
send E # end any running program
send DE=1 # enable drive
while true; do
send MR -10000
sleep 0.1
done
| Shell |
#!/bin/bash
. serial.sh
echo -ne "PS\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "E\r" > $SERIAL_DEVICE
sleep 0.1
echo -ne "CP\r" > $SERIAL_DEVICE
sleep 0.5
cat scan.mxt > $SERIAL_DEVICE
#cat sensors.mxt > $SERIAL_DEVICE
| Shell |
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# 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 applic... | 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
set -e
./runant war
third_party/appengine-sdk/sdk/bin/appcfg.sh update build/war
| Shell |
#!/bin/bash
# Sample shell script for invoking ant.
# Copy to a new file and fill in the values below.
# To keep the secret secret, don't share your runant script.
ant -Dapp-id='your-app-id' \
-Dapp-version='1' \
-Doauth-client-id='your-oauth-client-id' \
-Doauth-client-secret='your-oauth-client-secret' \... | Shell |
#!/bin/sh
exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@
| Shell |
#!/bin/sh
exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.SlaveApiTestNode $@
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.