code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
FECHA=$(date)
echo "Iniciando bot..."
php bot.php -b bot.conf | Shell |
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment
export NDK=$HOME/fun/android/android-ndk
HOST_TYPE=darwin-x86
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib
export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/toolchains/arm-ea... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
. $SCRIPTDIR/android-gcc-setup.sh
cd $SCRIPTDIR/..
if [ ! -d "deps" ]
then
mkdir -p deps
fi
cd deps
DEPSDIR=$PWD
JNIDIR=$DEPSDIR/../jni
if [ ! -d "$JNIDIR/pdfview2/lib" ]
then
mkdir -p $JNIDIR/pdfview2/lib
fi
if [ ! -d "$JNIDIR/pdfview2/include" ]
then
mkdir -p $JNIDIR/pd... | Shell |
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment
export NDK=$HOME/fun/android/android-ndk
HOST_TYPE=darwin-x86
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib
export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/toolchains/arm-ea... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
. $SCRIPTDIR/android-gcc-setup.sh
cd $SCRIPTDIR/..
if [ ! -d "deps" ]
then
mkdir -p deps
fi
cd deps
DEPSDIR=$PWD
JNIDIR=$DEPSDIR/../jni
if [ ! -d "$JNIDIR/pdfview2/lib" ]
then
mkdir -p $JNIDIR/pdfview2/lib
fi
if [ ! -d "$JNIDIR/pdfview2/include" ]
then
mkdir -p $JNIDIR/pd... | Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/../deps
tar xvf freetype-2.3.11.tar.bz2
tar xvf jpegsrc.v8a.tar.gz
tar xvf mupdf-0.8.165-source.tar.gz
mv mupdf-0.8.165 mupdf
tar xvf openjpeg_v1_4_sources_r697.tgz
tar xvf jbig2dec-0.11.tar.gz
cp openjpeg_v1_4_sources_r697/libopenjpeg/*.... | 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
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
# Copyright (C) 2001, 2002 Earnie Boyd <earnie@users.sf.net>
# This file is part of the Minimal SYStem.
# http://www.mingw.org/msys.shtml
#
# File: profile
# Description: Shell environment initialization script
# Last Revised: 2002.05.04
if [ -z "$MSYSTEM" ]; then
MSYSTEM=MINGW32
fi
# My decision to a... | Shell |
#!/bin/sh
export CurrentPath=`pwd`
# Setup vim configure files
mv $HOME/.vimrc $HOME/.vimrc.bak
ln -s $CurrentPath/../vim/vimrc $HOME/.vimrc
mv $HOME/.vim $HOME/.vim.bak
ln -s $CurrentPath/../vim/vim $HOME/.vim
| Shell |
#!/bin/sh
# Lab settings
ifconfig eth0 192.168.1.29
route del default
route add default gw 192.168.1.1
RESULT=`ping -c 4 192.168.1.1 | grep -i -s "0 received"`
if [ "$RESULT" = "" ]
then
echo The current enviroment is lab
exit 0
fi
# Lab settings end
# Home settings
ifconfig eth0 218.193.189.59
route del d... | Shell |
#!/bin/sh
# Lab settings
ifconfig eth0 192.168.1.29
route del default
route add default gw 192.168.1.1
RESULT=`ping -c 4 192.168.1.1 | grep -i -s "0 received"`
if [ "$RESULT" = "" ]
then
echo The current enviroment is lab
exit 0
fi
# Lab settings end
# Home settings
ifconfig eth0 218.193.189.59
route del d... | Shell |
#!/bin/sh
export CurrentPath=`pwd`
# Setup vim configure files
mv $HOME/.vimrc $HOME/.vimrc.bak
ln -s $CurrentPath/../vim/vimrc $HOME/.vimrc
mv $HOME/.vim $HOME/.vim.bak
ln -s $CurrentPath/../vim/vim $HOME/.vim
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | 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)
to... | Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
#!/bin/bash
osmosis --rx file=input.xml --mw file=output.map bbox=0.1,0.2,0.3,0.4 map-start-position=0.15,0.25 map-start-zoom=16 preferred-language=en comment=testcomment
| Shell |
#!/bin/bash
osmosis --rx file=input.xml --mw file=output.map bbox=0.99,0.99,1.01,1.01
| Shell |
#!/bin/bash
osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=double
| Shell |
#!/bin/bash
cd empty/
./generate.sh
cd ../file_header/
./generate.sh
cd ../single_delta_encoding/
./generate.sh
cd ../double_delta_encoding/
./generate.sh
cd ../with_data/
./generate.sh | Shell |
#!/bin/bash
osmosis --rx file=input.xml --mw file=output.map bbox=0,0,0.08,0.08 debug-file=true
| Shell |
#!/bin/bash
osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=single
| Shell |
#!/bin/bash
set -e
# Check if the jar has been built.
if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then
echo "Compiling WalletTool to a JAR"
cd ../core
mvn install -DskipTests
cd ../tools
[ -e target/bitcoinj-tools-*.jar ] && rm target/bitcoinj-tools-*.jar
mvn package... | 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`
cd $SCRIPTDIR/../deps
tar xvf freetype-2.3.11.tar.bz2
tar xvf jpegsrc.v8a.tar.gz
tar xvf mupdf-0.8.165-source.tar.gz
mv mupdf-0.8.165 mupdf
tar xvf openjpeg_v1_4_sources_r697.tgz
tar xvf jbig2dec-0.11.tar.gz
cp openjpeg_v1_4_sources_r697/libopenjpeg/*.... | Shell |
#!/usr/bin/env bash
set -e
port=4567
script/server &>/dev/null &
pid=$!
trap "kill $pid" EXIT INT
while ! lsof -i :$port >/dev/null; do
sleep .05
done
phantomjs ./test/run-qunit.coffee "http://localhost:$port/"
| Shell |
#!/usr/bin/env bash
set -e
bundle install
| Shell |
#!/usr/bin/env bash
set -e
exec bundle exec ruby ./test/app.rb
| Shell |
#!/usr/bin/env bash
set -e
exec bundle exec ruby ./test/app.rb
| Shell |
#!/usr/bin/env bash
set -e
bundle install
| Shell |
#!/usr/bin/env bash
set -e
port=4567
script/server &>/dev/null &
pid=$!
trap "kill $pid" EXIT INT
while ! lsof -i :$port >/dev/null; do
sleep .05
done
phantomjs ./test/run-qunit.coffee "http://localhost:$port/"
| Shell |
export SVN_EDITOR=vi
svn add . --force
svn commit
svn up
| Shell |
#!/bin/bash
VERSION=0.6.7
TMPDIR=/tmp/google-api-php-client
RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz
rm -f $RELFILE
rm -rf $TMPDIR
mkdir $TMPDIR
cp -r * $TMPDIR
cd $TMPDIR
find . -name ".*" -exec rm -rf {} \; &>/dev/null
find . -name "makeRelease.sh" -exec rm -rf {} \; &>/dev/null
find . -name "local_*" -... | Shell |
#!/bin/bash
VERSION=0.6.7
TMPDIR=/tmp/google-api-php-client
RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz
rm -f $RELFILE
rm -rf $TMPDIR
mkdir $TMPDIR
cp -r * $TMPDIR
cd $TMPDIR
find . -name ".*" -exec rm -rf {} \; &>/dev/null
find . -name "makeRelease.sh" -exec rm -rf {} \; &>/dev/null
find . -name "local_*" -... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| 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="release-$ver"
branch="build-$ver"
curbranch=`git branch | grep "*" | sed "s/* //"`
timestamp=$(... | 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="release-$ver"
branch="build-$ver"
curbranch=`git branch | grep "*" | sed "s/* //"`
timestamp=$(... | Shell |
#!/bin/bash
echo "Generating ORMlite resources"
java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt
echo "done."
| Shell |
#!/bin/sh
# Copyright 2014 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 applica... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2012-03-27.16; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the t... | Shell |
#!/bin/sh
autoreconf --force --install -I config -I m4 | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2012-03-27.16; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the t... | Shell |
#!/bin/bash
doxygen ../Doxyfile
tar -pczvf ../doc/html.tar.gz ../doc/html --remove-files
tar -pczvf ../doc/latex.tar.gz ../doc/latex --remove-files
| Shell |
#!/bin/bash
doxygen ../Doxyfile
tar -pczvf ../doc/html.tar.gz ../doc/html --remove-files
tar -pczvf ../doc/latex.tar.gz ../doc/latex --remove-files
| Shell |
#!/bin/sh
autoreconf --force --install -I config -I m4 | 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
# libtoolT - Provide generalized library-building support services.
# Generated automatically by (GNU )
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originall... | Shell |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# Th... | Shell |
#! /bin/sh
#
# Created by configure
CFLAGS='-L/usr/local/libmemcached/lib -lmemcached' \
'./configure' \
"$@"
| Shell |
#! /bin/sh
# libtoolT - Provide generalized library-building support services.
# Generated automatically by (GNU )
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originall... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
timestamp='2005-07-08'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file sug... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
timestamp='2005-08-03'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Gene... | Shell |
#! /bin/sh
#
# Created by configure
CFLAGS='-L/usr/local/libmemcached/lib -lmemcached' \
'./configure' \
"$@"
| 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
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/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
#
# 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
exec twistd --pidfile router.pid -n kontalk-router
| Shell |
#!/bin/sh
exec twistd --pidfile s2s.pid -n kontalk-s2s
| Shell |
#!/bin/sh
exec twistd --pidfile router.beta.pid -n kontalk-router -c router.beta.conf
| Shell |
#!/bin/sh
exec twistd --pidfile s2s.beta.pid -n kontalk-s2s -c s2s.beta.conf
| Shell |
#!/bin/sh
GNUGPHOME=$PWD/.gnupg exec twistd --pidfile net.pid -n kontalk-net
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg exec twistd --pidfile c2s.pid -n kontalk-c2s
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg.beta exec twistd --pidfile net.beta.pid -n kontalk-net -c net.beta.conf
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg exec twistd --pidfile fileserver.pid -n kontalk-fileserver
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg.beta exec twistd --pidfile c2s.beta.pid -n kontalk-c2s -c c2s.beta.conf
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg.beta exec twistd --pidfile resolver.beta.pid -n kontalk-resolver -c resolver.beta.conf
| Shell |
#!/bin/sh
GNUPGHOME=$PWD/.gnupg-cache exec twistd --pidfile resolver.pid -n kontalk-resolver
| Shell |
#!/bin/bash
# Generates some fake presences SQL for the presence table
SQL="INSERT INTO presence (userid, timestamp) VALUES('%s', NOW());\n"
COUNT=$1
for (( i=0; i<$COUNT; i++ )); do
TEXT=$(< /dev/urandom tr -dc a-f0-9 | head -c 40)
printf "$SQL" $TEXT
done
| Shell |
#!/bin/sh
./run-test ./client_auth.py 584fb3000e857d399b0c99fe14ba65df8663e697DXRTQL31 e73ea3be23d0449597a82c62ed981f584a5c181b
| Shell |
#!/bin/bash
PYTHONPATH=..:. $*
| Shell |
#!/bin/sh
./run-test ./client_auth.py 584fb3000e857d399b0c99fe14ba65df8663e697DXRTQL31 e73ea3be23d0449597a82c62ed981f584a5c181bLO3L8CE4
| Shell |
#!/bin/sh
# Runs pylint on all python files in codereview/
#
# Skips over 'cpplint' which is a third part in the chromium branch.
#
ROOT=$(dirname $(readlink -f $0))/..
GAE=$ROOT/../google_appengine
FILES=$(find codereview -iname "*.py" | grep -v "cpplint")
IMPORTS=$GAE:$GAE/lib/django_1_2
PYTHONPATH=$IMPORTS:$PYTHONPA... | 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)
to... | 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)
to... | 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 |
#!/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
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.