code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
cp gitblit-centos /etc/init.d/gitblit
chmod +x /etc/init.d/gitblit
sudo chkconfig --add gitblit
| 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 |
for line in /etc/passwd
do
echo $line >> ./a.txt
done
| Shell |
#!/bin/sh
case `uname -s` in
"FreeBSD")
PLATFORM="freebsd"
;;
"Linux")
PLATFORM="linux"
;;
"Darwin")
PLATFORM="macos"
;;
"SunOS")
PLATFORM="solaris"
;;
*)
echo "Unknown platform" >&2
exit 1
esac
echo $PLATFORM
exit 0
| Shell |
#!/bin/sh
case `uname -s` in
"FreeBSD")
PLATFORM="freebsd"
;;
"Linux")
PLATFORM="linux"
;;
"Darwin")
PLATFORM="macos"
;;
"SunOS")
PLATFORM="solaris"
;;
*)
echo "Unknown platform" >&2
exit 1
esac
echo $PLATFORM
exit 0
| 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
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-snapshot-20111207.tar.gz
MUPDF=mupdf
#MUPDF_FILE=mupdf-0.9-source.tar.gz
#MUPDF=mupdf-0.9
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../de... | 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 |
rm -rf assembled
mkdir assembled
rm -rf target
mvn package -e -P generic
cp target/jbrowser-1.9-jar-with-dependencies.jar assembled/jbrowser-1.9-generic.jar
rm -rf target
mvn package -e -P linux
cp target/jbrowser-1.9-jar-with-dependencies.jar assembled/jbrowser-1.9-linux.jar
rm -rf target
mvn package -e -P solaris
... | 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/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2005-07-09.11
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2005-07-09.11
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
... | Shell |
#!/bin/sh
rm wykop.parser.log
mvn clean compile test exec:java -Dexec.mainClass="wykop.main.Main"
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
# use this to commit cleanly
# remove pyc
rm ./Profile/*.pyc 2>/dev/null
rm ./wype/*.pyc 2>/dev/null
rm ./conference/*.pyc 2>/dev/null
git add -A
| 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
#
# 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
# 打开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
# 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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| 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
#
# 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 |
#!/bin/bash
# Name:bakmysql.sh
# This is a ShellScript For Auto DB Backup and Delete old Backup
#
backupdir=/data/mysql/mysqlbak
time=` date +%Y%m%d `
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 xx_s0 | gzip > $backupdir/xx_$time.sql.gz
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 mzdev | gzip > ... | Shell |
#!/bin/bash
# Name:bakmysql.sh
# This is a ShellScript For Auto DB Backup and Delete old Backup
#
backupdir=/data/mysql/mysqlbak
time=` date +%Y%m%d `
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 xx_s0 | gzip > $backupdir/xx_$time.sql.gz
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 mzdev | gzip > ... | Shell |
#!/bin/sh
WATCH_DIR=/data/www/mz/mztest/socket/log
WATCH_FILE=$WATCH_DIR/.restart
PFILE=/var/tmp/monapp_mz_test.pid
echo "monitor start..."
echo $$ > $PFILE
while :
do
TIMESTAMP=0
PID=0
I=0
for line in `cat $WATCH_FILE | tr -d '\\r'`
do
if [ $I -eq 0 ]
then
PID=$line
fi
if [ $I -eq 1 ]
then
TI... | Shell |
#!/bin/sh
WATCH_DIR=/data/www/mz/mztest/socket/log
WATCH_FILE=$WATCH_DIR/.restart
PFILE=/var/tmp/monapp_mz_test.pid
echo "monitor start..."
echo $$ > $PFILE
while :
do
TIMESTAMP=0
PID=0
I=0
for line in `cat $WATCH_FILE | tr -d '\\r'`
do
if [ $I -eq 0 ]
then
PID=$line
fi
if [ $I -eq 1 ]
then
TI... | Shell |
#!/bin/bash
#####################################
# SVN HOOK UTILS #
# Author: jayson 274851@qq.com #
#####################################
## Config
APPID=$$
SVN_OP_USER=support
SVN_OP_PWD='PPNZMyYmS2DKf26r'
SVN_RESP=svn://192.168.40.16/mz
SVN_MATCH_PATTERN="maps/map_data"
XML_MATCH_PATTERN... | Shell |
#!/bin/bash
# Name:bakmysql.sh
# This is a ShellScript For Auto DB Backup and Delete old Backup
#
backupdir=/data/mysql/mysqlbak
time=` date +%Y%m%d `
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 xx_s0 | gzip > $backupdir/xx_$time.sql.gz
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 mzdev | gzip > ... | Shell |
#!/bin/bash
# Name:bakmysql.sh
# This is a ShellScript For Auto DB Backup and Delete old Backup
#
backupdir=/data/mysql/mysqlbak
time=` date +%Y%m%d `
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 xx_s0 | gzip > $backupdir/xx_$time.sql.gz
/usr/local/services/mysql/bin/mysqldump -uroot -p123456 mzdev | gzip > ... | Shell |
#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
# MySQL daemon start/stop script.
# Usually this is put in /etc/init.d (at least on machines SYSV R4 based
# systems) and linked to /etc/rc3.d/S99mysql and /etc/rc... | Shell |
#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
# MySQL daemon start/stop script.
# Usually this is put in /etc/init.d (at least on machines SYSV R4 based
# systems) and linked to /etc/rc3.d/S99mysql and /etc/rc... | Shell |
#!/bin/bash
#####################################
# SVN HOOK UTILS #
# Author: jayson 274851@qq.com #
#####################################
## Config
APPID=$$
SVN_OP_USER=support
SVN_OP_PWD='PPNZMyYmS2DKf26r'
SVN_RESP=svn://192.168.40.16/mz
SVN_MATCH_PATTERN="maps/map_data"
XML_MATCH_PATTERN... | Shell |
#!/bin/bash
# chkconfig: 2345 93 11
# description:Nginx Server
NGINX_HOME=/usr/local/nginx
NGINX_SBIN=$NGINX_HOME/sbin/nginx
NGINX_CONF=$NGINX_HOME/conf/nginx.conf
NGINX_PID=$NGINX_HOME/logs/nginx.pid
NGINX_MAXFD=65535
NGINX_NAME="Nginx"
#. /etc/rc.d/init.d/functions
if [ ! -f $NGINX_SBIN ]
then
echo "$NGINX_NAME ... | Shell |
#!/bin/bash
# chkconfig: 2345 93 11
# description:Nginx Server
NGINX_HOME=/usr/local/nginx
NGINX_SBIN=$NGINX_HOME/sbin/nginx
NGINX_CONF=$NGINX_HOME/conf/nginx.conf
NGINX_PID=$NGINX_HOME/logs/nginx.pid
NGINX_MAXFD=65535
NGINX_NAME="Nginx"
#. /etc/rc.d/init.d/functions
if [ ! -f $NGINX_SBIN ]
then
echo "$NGINX_NAME ... | Shell |
#!/bin/sh
export TM_SUPPORT_PATH="/cygdrive/c/Program Files/e/Support" # set this to E support directory path
export DIALOG="`dirname $0`/tm_dialog"
ruby test.rb
| Shell |
#!/bin/sh
export TM_SUPPORT_PATH="/cygdrive/c/Program Files/e/Support" # set this to E support directory path
export DIALOG="`dirname $0`/tm_dialog"
ruby test.rb
| Shell |
#!/bin/bash
# generates po and mo files from the project source code
ARG=$1
print_help () {
echo
echo "Usage: $0 [-h|-mo|-po]"
echo " -h Print this help message"
echo " -mo Generate mo files and install them in the locale directory"
echo " -po Generate new po files from the project source"
echo
... | Shell |
#!/bin/bash
# generates po and mo files from the project source code
ARG=$1
print_help () {
echo
echo "Usage: $0 [-h|-mo|-po]"
echo " -h Print this help message"
echo " -mo Generate mo files and install them in the locale directory"
echo " -po Generate new po files from the project source"
echo
... | Shell |
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
wmake libo postCalc
wmake libso foamCalcFunctionsEx
# ----------------------------------------------------------------- end-of-file
| Shell |
#!/bin/bash
set -e
pushd postProcessing
./Allwmake
popd
wmake foamCalcExApp
| 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/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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| 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 |
#!/bin/bash
#Don't use in prod !!
#For testing purpose only !
DEBUG=1
##Function for debuging script.
##Send mail with some informations in it.
function debug
{
if [ $DEBUG -eq 1 ]
then
echo "[DEBUG]" $MSG | mail -s "DEBUG Heyu NAGIOS" address@mail.com
fi
}
case "$1" in
#If warning, do nothing
WARNING)... | 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
#OUT='wython/__init__.py'
#echo -n > $OUT
#echo '__all__ = [' >> $OUT
#for i in wython/*.py; do i=$(echo $i | awk -F/ '{print $2}' | awk -F. '{print $1}'); if [ ${i:0:1} == '_' ]; then continue; fi; echo -e "\t'$i'," >> $OUT; done
#echo ']' >> $OUT
find . -name '*.py[oc]' -exec rm {} \;
| Shell |
#!/bin/bash
#OUT='wython/__init__.py'
#echo -n > $OUT
#echo '__all__ = [' >> $OUT
#for i in wython/*.py; do i=$(echo $i | awk -F/ '{print $2}' | awk -F. '{print $1}'); if [ ${i:0:1} == '_' ]; then continue; fi; echo -e "\t'$i'," >> $OUT; done
#echo ']' >> $OUT
find . -name '*.py[oc]' -exec rm {} \;
| Shell |
#!/bin/bash
echo Removing all backup files...
find ./ -name '*~' -exec rm -rf \{} \;
echo Done.
| Shell |
#!/bin/bash
echo "Run this script when being one level ABOVE the html folder... (return to continuei, CTRL+C to quit)"
read
today=`date +%Y%m%d`
Creating snapshot for $today...
mkdir WySee-Web_$today
cd html
cp Config Engine Theme index.php request.php upload.php ../WySee-Web_$today -a
cd ..
tar cjvf WySee-Web_$to... | Shell |
#!/bin/bash
# run "./runTests.sh" for verbose output
# for short output, run
# ./runTests.sh | grep FAILED
# ./runTests.sh | grep PASSED
#master branch
SERVER_CLASS="org.ws4d.coap.test.PlugtestServer"
CLIENT_CLASS="org.ws4d.coap.test.PlugtestClient"
CLASSPATH="bin/:../ws4d-jcoap/bin"
LOG_DIR="log"
REF_LOG_DIR="logref"
... | Shell |
#!/bin/bash
#set -x
echo "[info] Stopping DB for $CONTEXT_NAME"
echo "Loading $CONTEXT_NAME env file..."
. $ORACLE_HOME/$CONTEXT_NAME.env
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./addbctl.sh stop immediate
./addlnctl.sh stop $ORACLE_SID
| Shell |
#!/bin/bash
# 11.5 cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
# 12.1 cd $COMMON_TOP/admin/scripts/PROD_ebs11
echo "[info] Starting apps for context_name $CONTEXT_NAME"
echo "[info] Start APPS tier only if DB is reachable"
echo "[info] Trying to connect to the database"
echo "[info] Loading $CONTEXT_NAME env file..."
... | Shell |
#!/bin/bash
#set -x
#!/bin/bash
#set -x
echo "Starting DB for $CONTEXT_NAME"
echo "Loading $CONTEXT_NAME env file..."
. $ORACLE_HOME/$CONTEXT_NAME.env
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./addbctl.sh start
./addlnctl.sh start $ORACLE_SID
| Shell |
#!/bin/bash
#set -x
echo "[info] Stopping DB for $CONTEXT_NAME"
echo "Loading $CONTEXT_NAME env file..."
. $ORACLE_HOME/$CONTEXT_NAME.env
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./addbctl.sh stop immediate
./addlnctl.sh stop $ORACLE_SID
| Shell |
#!/bin/bash
# 11.5 cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
# 12.1 cd $COMMON_TOP/admin/scripts/PROD_ebs11
echo "[info] Starting apps for context_name $CONTEXT_NAME"
echo "[info] Start APPS tier only if DB is reachable"
echo "[info] Trying to connect to the database"
echo "[info] Loading $CONTEXT_NAME env file..."
... | Shell |
#!/bin/bash
# 11.5 cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
# 12.1 cd $INST_TOP/admin/scripts
#!/bin/bash
echo "[info] Stopping apps for context_name $CONTEXT_NAME"
echo "[info] Loading $CONTEXT_NAME env file..."
. $APPL_TOP/APPS$CONTEXT_NAME.env
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh a... | Shell |
#!/bin/bash
echo "1) Prod"
echo "2) Dev"
read d
case "$d" in
"1") echo "Loading PROD env file..."
. /u01/oracle/prodappl/APPSPROD_ebs11.env
echo "Done.";;
"2") echo "Loading DEV env file..."
. /u01/oradev/prodappl/APPSDEV_ebs11.env
echo "Done.";;
*) echo "Wrong arg"
esac
export PS1... | Shell |
#!/bin/bash
echo "1) Prod"
echo "2) Dev"
read d
case "$d" in
"1") echo "Loading PROD env file..."
. /u01/oracle/prodappl/APPSPROD_ebs11.env
echo "Done.";;
"2") echo "Loading DEV env file..."
. /u01/oradev/prodappl/APPSDEV_ebs11.env
echo "Done.";;
*) echo "Wrong arg"
esac
export PS1... | Shell |
echo -----------------------------------
echo "1) Prod"
echo "2) Dev"
read d
case "$d" in
"1") echo "Loading PROD env file..."
. /u01/oracle/proddb/11.2.0.3/PROD_ebs11.env
echo "Done.";;
"2") echo "Loading DEV env file..."
. /u01/oradev/proddb/11.2.0.3/DEV_ebs11.env
echo "Done.";;
... | Shell |
#!/bin/bash
# 11.5 cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
# 12.1 cd $INST_TOP/admin/scripts
#!/bin/bash
echo "[info] Stopping apps for context_name $CONTEXT_NAME"
echo "[info] Loading $CONTEXT_NAME env file..."
. $APPL_TOP/APPS$CONTEXT_NAME.env
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh a... | Shell |
#!/bin/bash
#set -x
#!/bin/bash
#set -x
echo "Starting DB for $CONTEXT_NAME"
echo "Loading $CONTEXT_NAME env file..."
. $ORACLE_HOME/$CONTEXT_NAME.env
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./addbctl.sh start
./addlnctl.sh start $ORACLE_SID
| Shell |
#!/bin/ksh
#$Id: bash_library.sh,v 1.64 2010/02/26 13:57:31 remikcvs Exp $
#
# This is the main script that is included in every bash script I write
# This should be the central and one place to change things that should be centralised
# ala ma kota
# if RECIPIENTS value is set, preserve it.
# RECIPIENTS not set, ~/.s... | Shell |
#!/bin/bash
#$Id: o,v 1.1 2012-05-07 13:47:27 remik Exp $
#
# Setting oracle environment
#
# Load usefull functions
if [ ! -f $HOME/scripto/bash/bash_library.sh ]; then
echo "[error] $HOME/scripto/bash/bash_library.sh not found. Exiting. "
exit 1
else
. $HOME/scripto/bash/bash_library.sh
fi
#INFO_MODE=DEBUG
INF... | Shell |
#!/bin/ksh
#$Id: bash_library.sh,v 1.64 2010/02/26 13:57:31 remikcvs Exp $
#
# This is the main script that is included in every bash script I write
# This should be the central and one place to change things that should be centralised
# ala ma kota
# if RECIPIENTS value is set, preserve it.
# RECIPIENTS not set, ~/.s... | Shell |
#!/bin/bash
#$Id: o,v 1.1 2012-05-07 13:47:27 remik Exp $
#
# Setting oracle environment
#
# Load usefull functions
if [ ! -f $HOME/scripto/bash/bash_library.sh ]; then
echo "[error] $HOME/scripto/bash/bash_library.sh not found. Exiting. "
exit 1
else
. $HOME/scripto/bash/bash_library.sh
fi
#INFO_MODE=DEBUG
INF... | Shell |
#!/bin/bash
# Sample 10g CRS resource status query script
#
# Description:
# - Returns formatted version of crs_stat -t, in tabular
# format, with the complete rsc names and filtering keywords
# - The argument, $RSC_KEY, is optional and if passed to the script, will
# limit the output to HA resources who... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.