code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
convert -verbose -delay 2x1 usagepics/*.png usagepic.gif
| Shell |
VERSION=$(sed -ne '2p' app.yaml |cut -d: -f2)
NEXTVERSION=$(($VERSION + 1))
sed -i -e "/version:/ s/$VERSION/ $NEXTVERSION/" app.yaml
| 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/sh
# Convert gui2py to Python 3.x (on GNU/Linux and Mac OS X)
2to3 -w gui
2to3 -w -x import *.pyw
| Shell |
convert -size 256x256 canvas:none -fill black -draw 'circle 127.5,127.5 0,127.5' circle.png
convert -size 512x512 'radial-gradient:black-none' \
-sigmoidal-contrast 6,50% \
airbrush.png
| 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/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/bash
# (C) Copyright 2014, 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 wr... | Shell |
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage:$0 scantype"
echo "UNLV data comes in several scan types:"
echo "3B=300 dpi binary"
echo "3A=adaptive thresholded 300 dpi"
echo "3G=300 dpi grey"
echo "4B=400dpi binary"
echo "2B=200dpi binary"
echo "For now we only use 3B"
exit 1
fi
ext=... | Shell |
#!/bin/bash
# File: runalltests.sh
# Description: Script to run a set of UNLV test sets.
# Author: Ray Smith
# Created: Thu Jun 14 08:21:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with... | Shell |
#!/bin/bash
# File: runtestset.sh
# Description: Script to run tesseract on a single UNLV set.
# Author: Ray Smith
# Created: Wed Jun 13 10:13:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | Shell |
#!/bin/bash
# File: counttestset.sh
# Description: Script to count the errors on a single UNLV set.
# Author: Ray Smith
# Created: Wed Jun 13 11:58:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | Shell |
#-*- mode: shell-script;-*-
#
# bash completion support for tesseract
#
# Copyright (C) 2009 Neskie A. Manuel <neskiem@gmail.com>
# Distributed under the Apache License, Version 2.0.
#
_tesseract_languages()
{
local TESSDATA="/usr/share/tesseract-ocr/tessdata/"
local langs="$(ls $TESSDATA | grep traineddata | cut -... | Shell |
#!/bin/bash
#
# File: generate_manpages.sh
# Description: Converts .asc files into man pages, etc. for Tesseract.
# Author: eger@google.com (David Eger)
# Created: 9 Feb 2012
#
# (C) Copyright 2012 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this f... | Shell |
#!/bin/sh
# This is a simple script which is meant to help developers
# better deal with the GNU autotools, specifically:
#
# aclocal
# autoheader
# autoconf
# automake
#
# The whole thing is quite complex...
#
# The idea is to run this collection of tools on a single platform,
# typically the main development... | Shell |
#!/usr/bin/env bash
. $(dirname $0)/sbt-launch-lib.bash
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
declare -r sbt_opts_file=".sbtopts"
declare -r etc_sbt_opts_file="/etc/sbt/sbtopts"
usage() {
cat <<EOM
Usage: $script_name [options]
... | Shell |
#!/bin/sh
# Copyright (C) mikejiang
# constants
AMZ_BUILD_DIR="build"
CUR_WORK_DIR=`pwd`
# greetings
echo "Welcome to AmazOne..."
test -d "$AMZ_BUILD_DIR" || mkdir "$AMZ_BUILD_DIR"
rm -rf "$AMZ_BUILD_DIR"/*
# done
echo "Good, AmazOne configure ok."
| Shell |
rfcomm -i hci0 bind /dev/rfcomm26 08:00:17:2D:4F:9A
| Shell |
#!/bin/bash
# Change GP_HOME if you manually installed GanttProject somewhere else
GP_HOME=$PWD/dist-bin
cd ${GP_HOME}
LOCAL_CLASSPATH=$GP_HOME/eclipsito.jar
CONFIGURATION_FILE=ganttproject-eclipsito-config.xml
BOOT_CLASS=org.bardsoftware.eclipsito.Boot
LOG_FILE=$HOME/.ganttproject.log
if [ -z $JAVA_HOME ]; then
... | Shell |
#! /bin/bash
# Location where to install GanttProject
INSTALL_PATH=/usr/local/share/ganttproject/
# Location of executable of GanttProject
GP_EXECUTABLE=/usr/local/bin/ganttproject
# Assuming that writing at INSTALL_PATH and GP_EXECUTABLE needs root rights:
if [ "$(id -u)" != "0" ]; then
echo "This script must be... | Shell |
#!/bin/sh
set -e
if which update-mime >/dev/null 2>&1; then update-mime; fi
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
| Shell |
#!/bin/sh
set -e
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
update-mime
fi
| Shell |
#!/bin/bash
GP_HOME=.
COMMAND_PATH=`echo ${0} | sed -e "s/\(.*\)\/.*$/\1/g"`
cd ${COMMAND_PATH}
LOCAL_CLASSPATH=$GP_HOME/eclipsito.jar
CONFIGURATION_FILE=ganttproject-eclipsito-config.xml
BOOT_CLASS=org.bardsoftware.eclipsito.Boot
LOG_FILE=$HOME/.ganttproject.log
if [ -z $JAVA_HOME ]; then
JAVA_COMMAND=`which jav... | Shell |
#!/bin/bash
REVISION=`svnversion`
FILES="OpenWIGLibrary/src/cz/matejcik/openwig/Engine.java mobile/src/gui/Midlet.java"
for i in $FILES; do
sed -i "s/String VERSION = \".*\";/String VERSION = \"$REVISION\";/" $i
done
| Shell |
#!/bin/bash
#El único requisito para instalar la aplicación es tener instalado el JRE
TMP_JAVA_HOME=`which java`
if [ -n "$TMP_JAVA_HOME" ]; then
JAVA_BIN=`dirname $TMP_JAVA_HOME`
fi
if [ -z "$JAVA_HOME" ]; then
if [ -z "$JAVA_BIN" ]; then
echo "Introduce el path de la distribution de JAVA"
... | Shell |
#!/bin/bash
is_live_the_process () {
NUM_PROC=`ps -ef|grep "$1"|grep -v "grep" |wc -l`
if [ $NUM_PROC == "1" ]; then
echo "OK | $2 |"
else
echo "ERROR | $2 | $3"
fi
}
echo "------------------------------------"
echo "ESTADO | PROCESO | MENSAJE"
echo "--------------------------------... | Shell |
#!/bin/bash
set +u
`dirname $0`/../bin/bootstrap.sh $* start
| Shell |
#!/bin/bash
# Mata un proceso java que se identificado por -Dedu.upf.gp.calculator
OPERATING_SYSTEM=`uname -a | awk '{print $1}'`
if [ "$OPERATING_SYSTEM" == "SunOS" ]; then
COMMAND="/usr/ucb/ps auxwwww"
else
COMMAND="ps -ef"
fi
RUNNING=`$COMMAND | grep -i "\-Dedu.upf.gp.calculator.${env}" | grep -v grep ... | Shell |
#!/bin/bash
#El único requisito para instalar la aplicación es tener instalado el JRE
TMP_JAVA_HOME=`which java`
if [ -n "$TMP_JAVA_HOME" ]; then
JAVA_BIN=`dirname $TMP_JAVA_HOME`
fi
if [ -z "$JAVA_HOME" ]; then
if [ -z "$JAVA_BIN" ]; then
echo "Introduce el path de la distribution de JAVA"
... | Shell |
#!/bin/bash
set +u
TMP_JAVA_HOME=`which java`
if [ -n "$TMP_JAVA_HOME" ]; then
JAVA_BIN=`dirname $TMP_JAVA_HOME`
fi
if [ -z "$JAVA_HOME" ]; then
if [ -z "$JAVA_BIN" ]; then
echo "Introduce el path de la distribution de JAVA"
echo -e "(i.e. /usr/local/j2sdk): \c"
read PATH_TO_JAVA
... | Shell |
#!/bin/bash
set +u
TMP_JAVA_HOME=`which java`
if [ -n "$TMP_JAVA_HOME" ]; then
JAVA_BIN=`dirname $TMP_JAVA_HOME`
fi
if [ -z "$JAVA_HOME" ]; then
if [ -z "$JAVA_BIN" ]; then
echo "Introduce el path de la distribution de JAVA"
echo -e "(i.e. /usr/local/j2sdk): \c"
read PATH_TO_JAVA
... | Shell |
#Desinstalar componente
| Shell |
#!/bin/bash
is_live_the_process () {
NUM_PROC=`ps -ef|grep "$1"|grep -v "grep" |wc -l`
if [ $NUM_PROC == "1" ]; then
echo "OK | $2 |"
else
echo "ERROR | $2 | $3"
fi
}
echo "------------------------------------"
echo "ESTADO | PROCESO | MENSAJE"
echo "--------------------------------... | Shell |
#!/bin/bash
set +u
`dirname $0`/../bin/bootstrap.sh $* start
| Shell |
#!/bin/bash
# Mata un proceso java que se identificado por -Dedu.upf.gp.calculator
OPERATING_SYSTEM=`uname -a | awk '{print $1}'`
if [ "$OPERATING_SYSTEM" == "SunOS" ]; then
COMMAND="/usr/ucb/ps auxwwww"
else
COMMAND="ps -ef"
fi
RUNNING=`$COMMAND | grep -i "\-Dedu.upf.gp.calculator.${env}" | grep -v grep ... | 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
#
# Copyright (c) 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 t... | 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
#editor.h
#encryption.h
#levelselect.h
#playfield.h
#screenlib.h
#tekst.h
#-mmmx -msse -msse2 -msse3 -Os
gcc -g -o programmeeropdracht main.c -L/sw/lib/ncurses/ -I/sw/include/ -lncurses -L/usr/lib -I/usr/include -lsqlite3 && echo "Build done"; | Shell |
#!/bin/bash
#editor.h
#encryption.h
#levelselect.h
#playfield.h
#screenlib.h
#tekst.h
#-mmmx -msse -msse2 -msse3 -Os
gcc -g -o programmeeropdracht main.c -L/sw/lib/ncurses/ -I/sw/include/ -lncurses -L/usr/lib -I/usr/include -lsqlite3 && echo "Build done"; | Shell |
#!/bin/bash
#editor.h
#encryption.h
#levelselect.h
#playfield.h
#screenlib.h
#tekst.h
gcc -g -Os -o programmeeropdracht main.c -L/sw/lib/ -I/sw/include/ -lncurses && echo "Build done";
| Shell |
#!/bin/bash
#editor.h
#encryption.h
#levelselect.h
#playfield.h
#screenlib.h
#tekst.h
gcc -g -Os -o programmeeropdracht main.c -L/sw/lib/ -I/sw/include/ -lncurses && echo "Build done";
| Shell |
make zImage -j9
| Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# 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 file is a template)
# with the following ordered... | 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
# 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-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-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-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-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
# 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-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
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# 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 file is a template)
# with the following ordered... | 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
# 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
# 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
# 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/bash
set -e # fail early
VERS="$1"
[ -n "$VERS" ] && VERS="${VERS}_"
function die() {
echo "Error: " $*
echo
echo "USage: $0 <version>"
echo "Automatically sign [A-Z].apk"
exit 1
}
[ -z "$1" ] && die
shopt -s extglob # extended glob pattern
function process() {
SRC="$1"
BASE="${SRC/.apk/}"
... | Shell |
#!/bin/bash
if [[ $1 ]]; then
target=$1
else
target="./data"
fi
read -p "Lowercase all files in $target directory? [y/N] " confirm
if [[ `echo $confirm | tr '[:upper:]' '[:lower:]'` == 'y' ]]; then
for f in $target/*; do
g=`basename "$f" | tr '[:upper:]' '[:lower:]'`
mv -fv "$f" "$target/$g" 2> /dev/null
don... | Shell |
#!/bin/sh
#
# Pre removal scriptix
#
set -e
# stop the server
if [ -x "/etc/init.d/jmemcached" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d jmemcached stop || exit $?
else
/etc/init.d/jmemcached stop || exit $?
fi
fi
exit 0
| Shell |
#!/bin/sh
#
# Post installation script
#
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# ... | Shell |
#!/bin/sh -e
#
# Written by Philipp Meier <meier@meisterbohne.de> for Jetty
# Modified for JMemcached by Ryan Daum <ryan@thimbleware.com>
#
### BEGIN INIT INFO
# Provides: jetty
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Should-Start: $local_fs
# Should-Stop: $loca... | Shell |
#!/bin/sh
if [ x$1 = x--quiet ] ; then
stats=""
shift
else
stats="--statistics"
fi
compile() {
lang=`echo $1 | sed 's@po/\(.*\)\.po@\1@'`
if [ ! -z "$stats" ] ; then
echo -n "$lang: "
fi
mkdir -p locale/$lang/LC_MESSAGES
msgfmt $stats --check -o locale/$lang/LC_MESSAGES/phpmyadm... | Shell |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
export LC_COLLATE=C
LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
xgettext \
-d phpmyadmin \
--msgid-bugs-address=phpmyadmin-devel@lists.sourceforge.net \
-o po/phpmyadmin.pot \
--language=PHP \
--add-comments=l10n \
--add-location \
--debug \
... | Shell |
#!/bin/sh
set -e
mkdir -p po
sed "
s/' ;/';/;
/to translate/D;
/\$allow_recoding/D;
s/\$byteUnits = array('\(.*\)', '\(.*\)', '\(.*\)', '\(.*\)', '\(.*\)', '\(.*\)', '\(.*\)');/\$str_B = '\1';\n\$str_KiB = '\2';\n\$str_MiB = '\3';\n\$str_GiB = '\4';\n\$str_TiB = '\5';\n\$str_PiB = '\6';\n\$str_EiB =... | Shell |
#!/bin/sh
set -e
for file in `find js -name '*.js' -not -name '*min.js'` ; do
mkdir -p sources/`dirname $file`
mv $file sources/$file
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file
done
| Shell |
#!/bin/sh
#
#
# Script to remove ^M from files for DOS <-> UNIX conversions
#
if [ $# != 1 ]
then
echo "Usage: remove_control_m.sh <extension of files>"
echo ""
echo "Example: remove_control_m.sh php3"
exit
fi
for i in `find . -name "*.$1"`
do
echo $i
tr -d '\015' < $i > ${i}.new
rm $i
mv ${i}.new ... | Shell |
#!/bin/sh
set -e
set -u
if [ $# -lt 2 ] ; then
echo 'Usage: upload-release USERNAME VERSION [DIR]'
echo 'Must be called in directory with binaries or with path'
exit 1
fi
USER=$1
REL=$2
if [ $# -gt 2 ] ; then
cd "$3"
fi
sftp $USER,phpmyadmin@frs.sourceforge.net <<EOT
cd /home/frs/project/p/ph/phpmya... | Shell |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
if [ ! -d "$1" ] ; then
echo 'Usage: update-po-foreign DIR'
echo 'Updates po files based on po files in DIR'
exit 1
fi
export LC_COLLATE=C
LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries... | Shell |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
LOCS=`ls po/*.po.pending | sed 's@.*/\(.*\)\.po\.pending@\1@'`
for loc in $LOCS ; do
./scripts/pendingpo.py po/$loc.po po/$loc.po.pending
done
| Shell |
#!/bin/sh
#
# vim: expandtab sw=4 ts=4 sts=4:
#
# Script for removing language selection from phpMyAdmin
if [ $# -lt 1 ] ; then
echo "Usage: lang-cleanup.sh type"
echo "Type can be one of:"
echo " all-languages - nothing will be done"
echo " english - no translations will be kept"
echo " langcod... | Shell |
#!/bin/sh
#
# vim: expandtab sw=4 ts=4 sts=4:
#
# More documentation about making a release is available at:
# http://wiki.phpmyadmin.net/pma/Releasing
# Fail on undefined variables
set -u
# Fail on failure
set -e
KITS="all-languages english"
COMPRESSIONS="zip-7z tbz txz tgz 7z"
if [ $# -lt 2 ]
then
echo "Usages:... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype with transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# The 'description' parameter will add a new entry in the language file. Watch out for
# special escaping.
#
# Exam... | Shell |
#!/bin/bash
#
# Shell script that adds a new function file using a template. Should not be called directly
# but instead by template_Generator.sh and template_generator_mimetype.sh
#
#
# $1: Template
# $2: Filename
# $3: (optional) Description
if [ $# == 0 ]
then
echo "Please call template_generator.sh or template_g... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype without transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# Example: template_generator_mimetype.sh 'filename'
#
if [ $# == 0 ]
then
echo "Usage: template_generator_m... | Shell |
#!/bin/bash
function print_help {
echo 'Usage: adwhirl [start_invoker|start_daemon|stop_invoker|stop_daemon|stop_all]'
echo ''
exit 1
}
if [ $# -gt 1 ] || [ $# -eq 0 ]; then
print_help
fi
command=$1
function start_invoker {
ulimit -n 819200
java -server -Xms256m -Xmx1024m -cp adwhirl.jar Invoker... | Shell |
#!/bin/sh
if ps aux | grep -v grep | grep -v checkInvoker | grep -i adwhirl | grep -i Invoker > /dev/null
then
:
else
INSTANCE=`curl -s http://169.254.169.254/2007-03-01/meta-data/instance-id`
HOSTNAME=`curl -s http://169.254.169.254/2007-03-01/meta-data/public-hostname`
DATE=`date`
echo -e "AdWhirl Invok... | Shell |
#!/bin/sh
if ps aux | grep -v grep | grep java | grep Daemon > /dev/null
then
:
else
echo "AdWhirl Daemon is down" | mail -s "**PROBLEM - AdWhirl Daemon is CRITICAL" jpincar@admob.com #page-adwhirl@admob-moat.pagerduty.com #page-adwhirl@yell.admob.com
fi
| Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-1.1-source.tar.gz
MUPDF=mupdf-1.1-source
FREETYPE=freetype-2.4.10
OPENJPEG=openjpeg-1.5.1
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8d.tar.gz
JPEGDIR=jpeg-8d
cd $SCRIPTDIR/../deps
tar xvf $FREETYPE.tar.bz2
tar xvf $JPEGSRC
tar xvf $MUPDF... | 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
#
# 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
# 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
adb shell pm clear com.google.android.apps.iosched | 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 |
# a shell script to create a java documentation
# for a processing library.
#
# make changes to the variables below so they
# fit the structure of your library
# the package name of your library
package=template;
# source folder location
src=../src;
# the destination folder of your documentation
dest=../document... | 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
# Scripts in the tools/ directory should source this file with the line:
# pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null
export TOOLS_DIR=$(pwd)
export PROJECT_DIR=$(dirname $TOOLS_DIR)
export APP_DIR=$PROJECT_DIR/app
for dir in \
"$APPENGINE_DIR" \
/usr/lib/google_appen... | Shell |
#!/bin/bash
pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null
$PYTHON $TOOLS_DIR/console.py "$@"
| Shell |
#!/bin/bash
pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null
if [ "$1" == "run" ]; then
shift
$PYTHON $APPENGINE_DIR/dev_appserver.py "$@"
else
$PYTHON $APPENGINE_DIR/appcfg.py "$@"
fi
| Shell |
#!/bin/sh
ROOT=../..
CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar"
java -classpath $CLASSPATH \
com.pmstation.shared.soap.demo.BrowseFolderDemo $* | Shell |
#!/bin/sh
ROOT=../..
CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar"
java -classpath $CLASSPATH \
com.pmstation.shared.soap.demo.DownloadDemo $* | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.