code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/Statist_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalyt... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/CpLog_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalytic... | Shell |
#!/bin/sh
if [ ! -d "$1" ] || [ ! -d "$2" ] || [ ! -n "$3" ] || [ ! -n "$4" ]; then
cat<<HELP
Usage: ./hash_file.sh sourcePath hashPath hourago or date
Example:
1 ./hash_file.sh /data/log /data/log/hash 20120113 06
HELP
exit 1
fi
PWD="/opt/wanalytics/scripts"
TOOLS=`dirname $PWD`/Tools
# 判断$3,指定日期,例: 20120113 ... | Shell |
#!/bin/sh
# statis日志中,initial接口参数去重,mysql中计算guid,导入mongoDB中
if [ ! -d "$1" ] || [ ! -n "$2" ]; then
cat<<HELP
Usage: ./statis_guid_import.sh sourcePath date
Example:
1. specified date:
./statis_guid_import.sh /data/log 20120113
2. specified date hour:
./statis_guid_import.sh /data/log 20120113 06
HELP
e... | Shell |
#!/bin/sh
if [ ! -d "/opt/temp/" ]; then
mkdir -p /opt/temp/
fi
cd /opt/temp/
/opt/wanalytics/scripts/SplitLocalLog.sh 20111113
/opt/wanalytics/scripts/SplitLocalLog.sh 20111114
/opt/wanalytics/scripts/SplitLocalLog.sh 20111115
/opt/wanalytics/scripts/SplitLocalLog.sh 20111116
/opt/wanalytics/scripts/SplitLoca... | Shell |
#!/bin/bash
#统计分析统一调度执行脚本:dispatch.sh
############################################
#################调度执行顺序###############
##1、获取原始日志
##2、按小时切分
##3、对切分后的日志,进行散列处理并存储
##4、GUID分析处理脚本,写入mongodb
##5、UPDATE LASTTIME脚本,更新LASTTIME
##6、每日使用设备数(UV)分析脚本
##7、每日新增设备数(NV)分析脚本
##8、累计使用设备数(AV)分析脚本
##9、每日播放总量(VV)分析脚本
##10、注册成功用户数(PAIKE... | Shell |
#!/bin/bash
/sbin/mysql -uroot -p1qaz2wsx3edc stat < $1
| Shell |
#!/bin/sh
if [ ! -d "$1" ] || [ ! -n "$2" ]; then
cat<<HELP
Usage: ./guid_lasttime_update.sh sourcePath date
Example:
1. specified date:
./guid_lasttime_update.sh /data/log 20120113
2. specified date hour:
./guid_lasttime_update.sh /data/log 20120113 06
HELP
exit 1
fi
PWD="/opt/wanalytics/scripts"
TOOLS... | Shell |
#!/bin/bash
#统计分析统一调度执行脚本:dispatch.sh
############################################
#################调度执行顺序###############
##1、获取原始日志
##2、按小时切分
##3、对切分后的日志,进行散列处理并存储
##4、GUID分析处理脚本,写入mongodb
##5、UPDATE LASTTIME脚本,更新LASTTIME
##6、每日使用设备数(UV)分析脚本
##7、每日新增设备数(NV)分析脚本
##8、累计使用设备数(AV)分析脚本
##9、每日播放总量(VV)分析脚本
##10、注册成功用户数(PAIKE... | Shell |
#!/bin/sh
/opt/wanalytics/scripts/dispatch_nohash.sh 20120126 > /opt/wanalytics/scripts/log/20120126.dispatch.log 2>&1
/opt/wanalytics/scripts/dispatch_nohash.sh 20120127 > /opt/wanalytics/scripts/log/20120127.dispatch.log 2>&1
/opt/wanalytics/scripts/dispatch_nohash.sh 20120128 > /opt/wanalytics/scripts/log/20120128.... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
python -u /opt/wanalytics/scripts/AutoStatist.py 20120111
python -u /opt/wanalytics/scripts/AutoStatist.py 20120112
python -u /opt/wanalytics/scripts/AutoStatist.py 20120113
python -u /opt/wanalytics/scripts/AutoStatist.py 20120114
python -u /opt/wanalytics/scripts/AutoStatist.py 2... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/AutoStatist_${logname}_${datelog}.log"
if [ ! -d "/opt/wan... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/SplitLocalLog_${logname}_${datelog}.log"
if [ ! -d "/opt/w... | Shell |
#!/bin/bash
tmpd=`date +%Y%m%d%H%M%S_%s`
mkdir -p /opt/tmp/${tmpd}
chmod -R 1777 /opt/tmp/${tmpd}
export TEMP=/opt/tmp/${tmpd}
export TMPDIR=/opt/tmp/${tmpd}
export LC_ALL='C'
#排序
#sort -s -t ' ' -k 2 $*
#不排序
cat $*
rm -fr /opt/tmp/${tmpd}
unset TEMP
unset TMPDIR
| Shell |
#!/bin/sh
# statis日志中,initial接口参数去重,mysql中计算guid,导入mongoDB中
if [ ! -n "$1" ]; then
cat<<HELP
Usage: ./statis_day_total_import.sh date
Example:
./statis_day_total_import.sh 20120113
HELP
exit 1
fi
PWD="/opt/wanalytics/scripts"
TOOLS=`dirname $PWD`/Tools
date_start=`date "+%s"`
mysql -h 10.103.13.103 -uroot ... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/Split_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalytic... | Shell |
#!/bin/sh
/opt/wanalytics/scripts/dispatch.sh 20120211 > /opt/wanalytics/scripts/log/20120211.dispatch.log 2>&1
| Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/AutoStatist_${logname}_${datelog}.log"
if [ ! -d "/opt/wan... | Shell |
#!/bin/bash
tmpd=`date +%Y%m%d%H%M%S_%s`
mkdir -p /opt/tmp/${tmpd}
chmod -R 1777 /opt/tmp/${tmpd}
export TEMP=/opt/tmp/${tmpd}
export TMPDIR=/opt/tmp/${tmpd}
export LC_ALL='C'
#排序
#sort -s -t ' ' -k 2 $*
#不排序
cat $*
rm -fr /opt/tmp/${tmpd}
unset TEMP
unset TMPDIR
| Shell |
#!/bin/sh
/opt/wanalytics/scripts/dispatch.sh 20120211 > /opt/wanalytics/scripts/log/20120211.dispatch.log 2>&1
| Shell |
#!/bin/sh
/opt/wanalytics/scripts/dispatch_nohash.sh 20120126 > /opt/wanalytics/scripts/log/20120126.dispatch.log 2>&1
/opt/wanalytics/scripts/dispatch_nohash.sh 20120127 > /opt/wanalytics/scripts/log/20120127.dispatch.log 2>&1
/opt/wanalytics/scripts/dispatch_nohash.sh 20120128 > /opt/wanalytics/scripts/log/20120128.... | Shell |
#!/bin/bash
/sbin/mysql -uroot -p1qaz2wsx3edc stat < $1
| Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/Split_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalytic... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
python -u /opt/wanalytics/scripts/AutoStatist.py 20120111
python -u /opt/wanalytics/scripts/AutoStatist.py 20120112
python -u /opt/wanalytics/scripts/AutoStatist.py 20120113
python -u /opt/wanalytics/scripts/AutoStatist.py 20120114
python -u /opt/wanalytics/scripts/AutoStatist.py 2... | Shell |
#!/bin/sh
# statis日志中,initial接口参数去重,mysql中计算guid,导入mongoDB中
if [ ! -d "$1" ] || [ ! -n "$2" ]; then
cat<<HELP
Usage: ./statis_guid_import.sh sourcePath date
Example:
1. specified date:
./statis_guid_import.sh /data/log 20120113
2. specified date hour:
./statis_guid_import.sh /data/log 20120113 06
HELP
e... | Shell |
#!/bin/sh
if [ ! -d "$1" ] || [ ! -d "$2" ] || [ ! -n "$3" ] || [ ! -n "$4" ]; then
cat<<HELP
Usage: ./hash_file.sh sourcePath hashPath hourago or date
Example:
1 ./hash_file.sh /data/log /data/log/hash 20120113 06
HELP
exit 1
fi
PWD="/opt/wanalytics/scripts"
TOOLS=`dirname $PWD`/Tools
# 判断$3,指定日期,例: 20120113 ... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/CpLog_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalytic... | Shell |
#!/bin/sh
cd /opt/wanalytics/scripts/
PWD=`pwd`
SCRIPTS=`dirname $PWD`/scripts
logname=`date +%Y%m%d`
if [ ! -n "$1" ]; then
logname=`python -u $SCRIPTS/Yesterday.py`
else
logname=$1
fi
datelog=`date +%Y%m%d%H%M%S`
log="/opt/wanalytics/scripts/log/Statist_${logname}_${datelog}.log"
if [ ! -d "/opt/wanalyt... | Shell |
#!/bin/sh
if [ ! -d "$1" ] || [ ! -n "$2" ]; then
cat<<HELP
Usage: ./guid_lasttime_update.sh sourcePath date
Example:
1. specified date:
./guid_lasttime_update.sh /data/log 20120113
2. specified date hour:
./guid_lasttime_update.sh /data/log 20120113 06
HELP
exit 1
fi
PWD="/opt/wanalytics/scripts"
TOOLS... | Shell |
#!/bin/bash
#统计分析统一调度执行脚本:dispatch.sh
############################################
#################调度执行顺序###############
##1、获取原始日志
##2、按小时切分
##3、对切分后的日志,进行散列处理并存储
##4、GUID分析处理脚本,写入mongodb
##5、UPDATE LASTTIME脚本,更新LASTTIME
##6、每日使用设备数(UV)分析脚本
##7、每日新增设备数(NV)分析脚本
##8、累计使用设备数(AV)分析脚本
##9、每日播放总量(VV)分析脚本
##10、注册成功用户数(PAIKE... | Shell |
#!/bin/bash
#
# Copyright 2007 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 |
export PYTHONPATH=`pwd`:${PYTHONPATH}
| Shell |
#!/bin/bash
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
-keyout privatekey.pem -out publickey.pem \
-subj "/CN=unit-tests"
openssl pkcs12 -export -out privatekey.p12 \
-inkey privatekey.pem -in publickey.pem \
-name "key" -passout pass:notasecret
| Shell |
#!/bin/bash
#
# Copyright 2012, Google Inc
#
# Generates a zip of the google api python client and dependencies.
#
# Author: afshar@google.com (Ali Afshar)
# Exit on failure.
set -e
# Where to build the zip.
ROOT_PATH=$(pwd)/build/gae
BUILD_PATH=${ROOT_PATH}/build
LIB_PATH=${ROOT_PATH}/lib
ENV_PATH=${ROOT_PATH}/ve
LO... | Shell |
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
# Author: jcgregorio@google.com (Joe Gregorio)
#
# Uploads a training data set to Google Storage to be used by this sample
# application.
#
# Usage:
# setup.sh file_name bucket/object
#
# Requirements:
# gsutil - a client application for interacting with... | 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 t... | 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/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
# 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-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 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-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 |
java -cp WebContent/WEB-INF/classes:WebContent/WEB-INF/lib/* com.youcontrol.app.StartWebApp | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#/bin/sh
#/mnt/install/php-5.5.11/bin/php -f indexer.php -- -reindex catalog_product_attribute
#/mnt/install/php-5.5.11/bin/php -f indexer.php -- -reindex catalog_product_price
/mnt/install/php-5.5.11/bin/php -f indexer.php -- -reindex catalog_url
/mnt/install/php-5.5.11/bin/php -f indexer.php -- -reindex catalog_produ... | Shell |
#!/bin/sh
# location of the php binary
if [ ! "$1" = "" ] ; then
CRONSCRIPT=$1
else
CRONSCRIPT=cron.php
fi
PHP_BIN=`which php`
# absolute path to magento installation
INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'`
# prepend the intallation path if not given an absolute path
if [ "$INSTALLDIR" != "" -a "`expr index $CRON... | Shell |
#!/bin/sh
# REPLACE with your PHP5 binary path (example: /usr/local/php5/bin/php )
#MAGE_PHP_BIN="php"
MAGE_PHP_SCRIPT="mage.php"
DOWNLOADER_PATH='downloader'
# initial setup
if test "x$1" = "xmage-setup"; then
echo 'Running initial setup...'
if test "x$2" != "x"; then
MAGE_ROOT_DIR="$2"
else
... | 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 |
#!/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 |
#!/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/sh
#
# Copyright 2010-present Facebook.
#
# 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 agr... | Shell |
#!/bin/sh
#
# Copyright 2010-present Facebook.
#
# 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 agr... | 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
pushd $(dirname $0) > /dev/null; script_dir=$PWD; popd > /dev/null
PACTESTER=$script_dir/../src/pactester
PACFILE=$script_dir/proxy.pac
TESTDATA=$script_dir/testdata
LIBRARY_PATH=$script_dir/../src
export DYLD_LIBRARY_PATH=$LIBRARY_PATH
export LD_LIBRARY_PATH=$LIBRARY_PATH
LIB=$LIBRARY_PATH/libpacparser.... | Shell |
#!/bin/bash -ex
#
# $Id$
# Copyright 2009 Google Inc. All Rights Reserved.
# Author: manugarg@google.com (Manu Garg)
ARCH=$(uname)
if [ "$ARCH" == "Linux" ]; then
DL_EXT="so"
fi
if [ "$ARCH" == "Darwin" ]; then
DL_EXT="dylib"
fi
function install_stuff
{
if [ $(id -u) == 0 ]; then
set -e
find . -name "li... | Shell |
#!/bin/sh -e
#
# This script creates a Mac package, that can be directly installed by
# Installer on Mac.
ver=$1
[ -z $ver ] && echo "Please specify package version." && exit
# $stage_dir is where we'll install our package files.
stage_dir=/tmp/pacparser_$RANDOM
sudo rm -rf /tmp/pacparser*
mkdir -p $stage_dir
if [ !... | Shell |
#!/bin/bash -e
USAGE="
Usage: $0 [-n] [-v version]\n
-n : Create a new release. Tag the current repository revision as version\n
-v version: Specify the version. If not specified, the latest hg tag is used. \n
This option is required for a new release.\n
"
while getopts "nv:" flag
do
if [ "$flag"... | Shell |
#!/bin/bash -x
tools_dir=$(dirname $0)
if [ "$tools_dir" == "." ]; then
tools_dir=$PWD
fi
cd ${tools_dir}/../docs
for file in *.{1,3}
do
rman -f html -r '%s.%s.html' $file > html/$file.html
done
cd -
| Shell |
#!/bin/sh
# Directories
rm -rf world
# Files
rm -rf *.txt
rm -rf server*
rm -rf *.log
rm -rf *.pyc
rm -rf *~
rm -rf *.orig
rm -rf *\#
find . -name *~ -exec rm -rf {} \;
find . -name *.pyc -exec rm -rf {} \;
find . -name *\# -exec rm -rf {} \;
find . -name *.orig -exec rm -rf {} \;
| 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
if [ $(uname -s) == "Darwin" ]
then
open=open
else
open=xdg-open
fi
$open http://localhost:$port/templat... | Shell |
java -jar LixoGame.jar | Shell |
#/bin/bash
cp *patch ..
cp -r plugins/sched/aucsched ../src/plugins/sched/
cp -r plugins/select/lpconsres ../src/plugins/select/
cd ..
patch -p0 < configure.ac.patch
patch -p0 < configure.patch
patch -p0 < gres.c.patch
patch -p0 < gres.h.patch
patch -p0 < job_scheduler.patch
patch -p0 < schedMakefile.am.patch
patch -p0... | Shell |
#/bin/bash
patch -p0 < gres_c.patch
patch -p0 < gres_h.patch
patch -p0 < job_scheduler.patch
patch -p0 < makefile.patch
cp -r plugins/sched/lpsched ../src/plugins/sched
cp -r plugins/select/lpconsres ../src/plugins/select
echo "installation completed. run autogen.sh, configure, and then make install!"
| Shell |
#!/bin/bash
# Copyright 2012, Google Inc.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of condition... | 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-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 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-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/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-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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.