code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use Cpanel::Form ();
use Whostmgr::HTMLInterface ();
use Whostmgr::ACLS ();
use CLI;
use Cpanel::... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; ... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
#WHMADDON:appname:CGPro <strong>Update Manager</strong>
use Cpanel::Form ();
use Whostmgr::HTMLInterface (... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; ... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; ... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use strict;
use CLI;
use Cpanel::CachedDataStore;
my $conf = Cpanel::CachedDataStore::fetch_ref( '/var/cpanel/commun... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use strict;
use CLI;
use Cpanel::Features ();
# if the file does not exist, create it.
if (! -f '/var/cpanel/feature... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use strict;
use CLI;
use Cpanel::CachedDataStore;
my $conf = Cpanel::CachedDataStore::fetch_ref( '/var/cpanel/commun... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use strict;
use CLI;
use Cpanel::CachedDataStore;
my $conf = Cpanel::CachedDataStore::fetch_ref( '/var/cpanel/commun... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use strict;
use CLI;
use Cpanel::CachedDataStore;
my $conf = Cpanel::CachedDataStore::fetch_ref( '/var/cpanel/commun... | Shell |
#!/bin/bash
PACKSRC=`pwd`
source ${PACKSRC}/config.ini
#################################################
# CommuniGate Specific #
#################################################
# Stop some services
service exim stop
service dovecot stop
chkconfig exim off
chkconfig dovecot off
service cpanel sto... | Shell |
#!/bin/bash
PACKSRC=`pwd`
#################################################
# cPanel Specific #
#################################################
# iPhone provisioning using default httpd
rm -rf /usr/local/apache/htdocs/iOS
rm -rf /var/CommuniGate/apple
# Uninstall the WHM plugins (administration and groupware co... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use Cpanel::LiveAPI ();
use CGI;
my $q = CGI->new;
my $cpanel = Cpanel::LiveAPI->new();
print "Content-type: text/x... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"};... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use Cpanel::LiveAPI ();
use CGI;
my $q = CGI->new;
my $cpanel = Cpanel::LiveAPI->new();
my $domain = $q->param('d... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use Cpanel::LiveAPI ();
use CGI;
use Cpanel::CPAN::MIME::Base64::Perl qw(decode_base64);
my $q = CGI->new;
my $cpan... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
use Cpanel::LiveAPI ();
use CGI;
use Cpanel::CPAN::MIME::Base64::Perl qw(decode_base64);
my $q = CGI->new;
my $cpan... | Shell |
#!/bin/bash
PACKSRC=`pwd`
#################################################
# cPanel Specific #
#################################################
# iPhone provisioning using default httpd
cp ${PACKSRC}/iphone/iphonetemplate.mobileconfig /var/CommuniGate/apple/
# Install CGP Logo
cp ${PACKSRC}/whm/communigate.gif... | Shell |
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;
#!/usr/bin/perl
# Sanatize @INC
BEGIN {
unshift @INC, '/usr/local/cpanel';
@INC = grep( !/(^\.|\.\.|\/\.+)/, @INC );
@INC = grep(... | Shell |
#!/bin/sh
#
# CommuniGate This shell script takes care of starting and stopping
# the CommuniGate(r) Pro Communication server
#
# Linux version
#
# (c) 1998-2012, Stalker Software, Inc.
#
# chkconfig: 345 80 30
# description: CommuniGate Pro Communication Server
### BEGIN INIT INFO
# Default-Start: 3 4 5... | Shell |
#!/bin/bash
PACKSRC=`pwd`
source ${PACKSRC}/config.ini
#################################################
# CommuniGate Specific #
#################################################
#################################################
# cPanel Specific #
##############################################... | Shell |
#!/bin/bash
PACKSRC=`pwd`
source ${PACKSRC}/config.ini
cd ${PACKSRC}
wget -O${PACKSRC}/webmail-distro.tgz 'itoolabs.com/download_protected/27ewefryg15sa1b35gf4enb8743iu44a2r/webmail-cpanel/2.0.2/webmail-distro.tgz'
tar -xvf ${PACKSRC}/webmail-distro.tgz
cd ${PACKSRC}/webmail/
rm -f ${PACKSRC}/webmail/itoolabs_webmail... | 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
ROOT_PATH=build/vs2010/x64
NC_PATH=D:/projects/WaveletSAT/build/vs2010/x64/output
if [ "$1" == "F" ] ;
then
ROOT_PATH="${ROOT_PATH}/SATFile"
MS="8192 0"
ZS="1 0"
EXT="nc4"
WS="1"
else
MS="8192"
ZS="1 0"
EXT="wnc4"
if [ "$1" == "W" ] ;
then
WS="1 4 16"
else
WS="1... | Shell |
#!/bin/bash
ROOT_PATH=build/vs2010/x64
NC_PATH=D:/projects/WaveletSAT/build/vs2010/x64/output
if [ "$1" == "F" ] ;
then
ROOT_PATH="${ROOT_PATH}/SATFile"
MS="8192 0"
ZS="1 0"
EXT="nc4"
WS="1"
else
MS="8192"
ZS="1 0"
EXT="wnc4"
if [ "$1" == "W" ] ;
then
WS="1 4 16"
else
WS="1... | Shell |
#!/bin/ksh
get_prop(){
propfile=$1
key=$2
#echo `grep $2 $1 | cut -d"=" -f2`
echo `sed '/^\#/d' $1 | grep $key | tail -n 1 | cut -d "=" -f2-`
}
SCRIPT_ROOT=$(cd `dirname ${0}`; pwd)
###############################################################################
# LOADING PROPERTIS FROM FILE... | Shell |
#!/bin/ksh
get_prop(){
propfile=$1
key=$2
#echo `grep $2 $1 | cut -d"=" -f2`
echo `sed '/^\#/d' $1 | grep $key | tail -n 1 | cut -d "=" -f2-`
}
SCRIPT_ROOT=$(cd `dirname ${0}`; pwd)
###############################################################################
# LOADING PROPERTIS FROM FILE... | 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/sh
n=$1
[ "$n" = "PRE_GIT" ] && n=10
renice -n $n $GL_TID >/dev/null
| Shell |
#!/bin/sh
# manage local, gitolite-controlled, copies of read-only upstream repos.
repo=$2
url=$(gitolite git-config $repo gitolite-options.upstream.url)
[ -z "$url" ] && exit 0 # exit if no url was specified
cd $GL_REPO_BASE/$repo.git || exit 1
[ "$1" != "fetch" ] && {
nice=$(gitolite git-config $repo git... | Shell |
#!/bin/sh
# this is a wee bit expensive in terms of forks etc., compared to doing it in
# perl, but I wanted to show how *easy* it actually is now. And really,
# you'll only notice if you access this repo like a hundred times a minute or
# something so don't sweat it.
# given a repo and a user, check if option('part... | Shell |
#!/bin/sh
# Update git-daemon and gitweb access using 'option' lines instead of special
# usernames.
# To use:
# * enable this combined updater in the rc file by removing the other two
# update-*-access-list entries and inserting this one instead. (This would
# be in the POST_CREATE and POST_COMPILE lists).
# ... | Shell |
#!/bin/sh
# this is literally the simplest gitweb update possible. You are free to add
# whatever you want and contribute it back, as long as it is upward
# compatible.
# ----------------------------------------------------------------------
# delete the 'description' file that 'git init' created if this is run from... | Shell |
#!/bin/sh
# this is probably the *fastest* git-daemon update possible.
# ----------------------------------------------------------------------
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
# means a POST_COMPIL... | Shell |
#!/bin/bash
# split multi-key files into separate keys like ssh-authkeys likes
# WHY
# ---
#
# Yeah I wonder that too, when it's so much more maintainable to keep the damn
# keys as sitaram@home.pub and sitaram@work.pub or such. But there's no
# accounting for tastes, and some old fogies apparently want to put all... | Shell |
#!/bin/sh
# For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead
# of putting the text in the "description" file. This is easier because it
# just goes with the flow of setting config variables; nothing special needs
# to be done for the description.
# But this only works for gitweb, not for ... | Shell |
#!/bin/sh
# POST_CREATE trigger to set up default set of perms for a new wild repo
# ----------------------------------------------------------------------
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists (i.e., it's not
# a wild repo)
[ "$1" = "POST_CREATE" ] && [ -z "$3" ] && exit 0;
[ "$4" = "R" ] ||... | Shell |
#!/bin/bash
# quick and dirty program to background any of the triggers programs that are
# taking too long. To use, just replace a line like
# 'post-compile/update-gitweb-access-list',
# with
# 'bg post-compile/update-gitweb-access-list',
# We dump output to a file in the log directory but please keep i... | Shell |
#!/bin/sh
# ----------------------------------------------------------------------
# ADMINISTRATOR NOTES:
# ----------------------------------------------------------------------
# - set TRASH_CAN in the rc if you don't like the default. It should be
# relative to GL_REPO_BASE or an absolute value. It should also... | Shell |
#!/bin/sh
# Usage: ssh git@host symbolic-ref <repo> <arguments to git-symbolic-ref>
#
# allow 'git symbolic-ref' over a gitolite connection
# Security: remember all arguments to commands must match a very conservative
# pattern. Once that is assured, the symbolic-ref command has no security
# related side-effects... | Shell |
#!/bin/sh
export GL_BYPASS_ACCESS_CHECKS=1
git push "$@"
| Shell |
#!/bin/sh
# Usage: ssh git@host sudo <user> <command> <arguments>
#
# Let super-user run commands as any other user. "Super-user" is defined as
# "have write access to the gitolite-admin repo".
die() { echo "$@" >&2; exit 1; }
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
[ -z "$2"... | Shell |
#!/bin/sh
# Usage: ssh git@host fork <repo1> <repo2>
#
# Forks repo1 to repo2. You must have read permissions on repo1, and create
# ("C") permissions for repo2, which of course must not exist.
#
# A fork is functionally the same as cloning repo1 to a client and pushing it
# to a new repo2. It's just a little mor... | Shell |
#!/bin/bash
# Usage: ssh git@host create <repo>
#
# Create wild repo.
die() { echo "$@" >&2; exit 1; }
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
[ -z "$1" ] && usage
[ -z "$2" ] || usage
[ "$1" = "-h" ] && usage
[ -z "$GL_USER" ] && die GL_USER not set
# -----------------------... | Shell |
#!/bin/sh
# push updated branches back to the "main" repo.
# This must be run as the *last* VREF, though it doesn't matter what
# permission you give to it
die() { echo "$@" >&2; exit 1; }
repo=$GL_REPO
user=$GL_USER
ref=$1 # we're running like an update hook
old=$2
new=$3
# never send any STDOUT back, to... | Shell |
#!/bin/sh
# gitolite VREF to count number of changed/new files in a push
# see gitolite docs for what the first 7 arguments mean
# inputs:
# arg-8 is a number
# arg-9 is optional, and can be "NEWFILES"
# outputs (STDOUT)
# arg-7 if the number of changed (or new, if arg-9 supplied) files is > arg-8
# otherwis... | Shell |
#!/bin/sh
# ----------------------------------------------------------------------
# VREF/NAME_NC
# Like VREF/NAME, but only considers "new commits" -- i.e., commits that
# don't already exist in the repo as part of some other ref.
# ----------------------------------------------------------------------
# WHY
# ... | Shell |
#!/bin/sh
# gitolite VREF to count votes before allowing pushes to certain branches.
# This approximates gerrit's voting (but it is SHA based; I believe Gerrit is
# more "changeset" based). Here's how it works:
# - A normal developer "bob" proposes changes to master by pushing a commit to
# "pers/bob/master", the... | Shell |
#!/bin/bash
# author: damien.nozay@gmail.com
# Given a username,
# Provides a space-separated list of groups that the user is a member of.
#
# see http://gitolite.com/gitolite/conf.html#ldap
# GROUPLIST_PGM => /path/to/ldap_groups.sh
ldap_groups() {
username=$1;
# this relies on openldap / pam_ldap to be con... | Shell |
#!/bin/bash
# ----------------------------------------------------------------------
# change these lines to suit
testconf=$HOME/GITOLITE-TESTCONF
gitolite_url=git://github.com/sitaramc/gitolite
# change it to something local for frequent use
# gitolite_url=file:///tmp/gitolite.git
# -------------------------... | Shell |
#!/bin/bash
die() { echo "$@"; exit 1; }
# git clone `url u1 r1`
url() {
echo http://$1:$1@localhost/git/$2.git
}
# `cmd sitaram info`
cmd() {
c="curl http://$1:$1@localhost/git"
shift
c="$c/$1"
shift
if [ -n "$1" ]
then
c="$c?$1"
shift
fi
while [ -n "$1" ]
do... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
# ----------------------------------------------------------------------
# please do not even LOOK at this file without reading doc/http.mkd
# ----------------------------------------------------------------------
die() { echo "$@"; exit 1; }
# scare the sh*t out of people who run it blindly
[ -f /tmp/gi... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
set -e
hosts="frodo sam gollum"
mainhost=frodo
# setup software
bd=`gitolite query-rc -n GL_BINDIR`
mkdir -p /tmp/g3
rm -rf /tmp/g3/src
cp -a $bd /tmp/g3/src
chmod -R go+rX /tmp/g3
# setup symlinks in frodo, sam, and gollum's accounts
for h in $hosts
do
sudo -u $h -i bash -c "rm -rf *.pub bin .ssh pr... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/sh
for lang in cpp java j2me; do rm -R -f $lang/*/gen/* ; done
PATH=./out/Default:$PATH
./out/Default/protoc \
--proto_path=../third_party/protobuf/trunk/src \
--proto_path=proto \
proto/protoserv/protocol.proto \
proto/protoserv/transport.proto \
--cpp_out=cpp/runtime/gen \
--java_out=java/runtim... | Shell |
#!/bin/bash
protoc \
--proto_path=../../common/proto/ \
--cpp_out=gen/ \
../../common/proto/google/protobuf/descriptor.proto \
../../common/proto/google/protobuf/compiler/plugin.proto \
| Shell |
#!/bin/bash
../third_party/gyp/gyp -DTHIRD_PARTY=../third_party/ build.gyp
| Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
CONFIGURE_SCRIPT=configure.ac
cd $srcdir
TOPLEVEL=`pwd`
export MONO_MAN_BIN=$TOPLEVEL/bin
export MONO_MAN_DOC=$TOPLEVEL/doc
PROJECT=wbem-sharp
TEST_TYPE=-f
#FILE=src/SimpleService/SimpleSer... | Shell |
#!/bin/bash
cd $(dirname $0)
PREFIX=$(pwd)
./autogen.sh --prefix=$PREFIX
| Shell |
#!/bin/bash
cd $(dirname $0)
PREFIX=$(pwd)
./autogen.sh --prefix=$PREFIX
| Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
CONFIGURE_SCRIPT=configure.ac
cd $srcdir
TOPLEVEL=`pwd`
export MONO_MAN_BIN=$TOPLEVEL/bin
export MONO_MAN_DOC=$TOPLEVEL/doc
PROJECT=wbem-sharp
TEST_TYPE=-f
#FILE=src/SimpleService/SimpleSer... | Shell |
#!/bin/bash -e
help() {
echo
if [ $# -eq 1 ]; then
echo "Error: $1"
echo
fi
echo "Usage: build.sh [options]"
echo
echo "Options:"
echo " --no-download : Do not download packages"
}
#
# Process options
#
NO_DOWNLOAD=0
MAKE_JOBS=""
for arg in "$@"
do
case "$arg" in
"--no-download")
... | Shell |
#!/bin/sh
WAZE_TARGET_DIR=/home/user/MyDocs/.waze
if [ -e "${WAZE_TARGET_DIR}" -a -e "${WAZE_TARGET_DIR}/user" ]; then
echo Removing previous Waze data from ${WAZE_TARGET_DIR}
rm -Rf ${WAZE_TARGET_DIR}
fi
if [ "`grep waze /etc/pulse/xpolicy.conf`" = "" ]; then
cat /opt/waze/bin/waze_xpolicy.conf >> /etc/... | Shell |
#!/bin/sh
# remove xpolicy conf rule
WAZE_RULE=`perl -p -e 's/\n/\\\\n/s;s/([\[\]\/\@])/\\\\\1/sg' /opt/waze/bin/waze_xpolicy.conf`
perl -pi -e 'undef $/; s/'"$WAZE_RULE"'//sg' /etc/pulse/xpolicy.conf
| Shell |
#!/bin/sh
WAZE_TARGET_DIR=/home/user/MyDocs/.waze
if [ -e "${WAZE_TARGET_DIR}" -a -e "${WAZE_TARGET_DIR}/user" ]; then
echo Removing previous Waze data from ${WAZE_TARGET_DIR}
rm -Rf ${WAZE_TARGET_DIR}
fi
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/bash
cd ../server
python3.2 LuchianaServer.py &
cd ../client
python2.7 LuchianaClient.py
| Shell |
#!/bin/bash
if [[ `uname -r` -eq "*-ARCH" ]]; then
yaourt -Syu && yaourt -S mbrola-voices-fr4 mbrola-voices-fr1 mbrola espeak python-notify python3.3 python2.7
else;
sudo apt-get update && sudo apt-get install mbrola mbrola-fr1 mbrola-fr4 espeak lm_sensors python-notify python3.3 python2.7
fi
| Shell |
#!/bin/bash
cd ../server
python3.2 LuchianaServer.py &
cd ../client
python2.7 LuchianaClient.py
| Shell |
#!/bin/bash
if [[ `uname -r` -eq "*-ARCH" ]]; then
yaourt -Syu && yaourt -S mbrola-voices-fr4 mbrola-voices-fr1 mbrola espeak python-notify python3.3 python2.7
else;
sudo apt-get update && sudo apt-get install mbrola mbrola-fr1 mbrola-fr4 espeak lm_sensors python-notify python3.3 python2.7
fi
| 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 -e
help() {
echo
if [ $# -eq 1 ]; then
echo "Error: $1"
echo
fi
echo "Usage: build.sh [options]"
echo
echo "Options:"
echo " --no-download : Do not download packages"
}
#
# Process options
#
NO_DOWNLOAD=0
MAKE_JOBS=""
for arg in "$@"
do
case "$arg" in
"--no-download")
... | Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: Test
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: Demo1Main
exit 0
| Shell |
#!/bin/sh
javac Util.java
javac Registry.java
javac Properties.java
exit 0
| Shell |
#!/bin/sh
javac -cp ../orig: Demo1Main.java
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: TCMain
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2:../libs/GMC.jar:./ -Djava.library.path=../libs/ TCMain
exit 0
| Shell |
#!/bin/bash
curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz
tar -zxvf tesseract-ocr-3.02.eng.tar.gz
rm -f tesseract-ocr-3.02.eng.tar.gz
mkdir data
mv tesseract-ocr data/tesseract
adb push data/ /sdcard/
adb shell sync
| Shell |
#!/bin/bash
curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz
tar -zxvf tesseract-ocr-3.02.02.tar.gz
tar -zxvf leptonica-1.69.tar.gz
rm -f tesseract-ocr-3.02.02.tar.gz
rm -f leptonica-1.69.tar.gz
mv tesseract-ocr jni/com_g... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.