code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
#
# make resource files for each platforms
#
_VERSION2=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g')".0"
_VERSION1=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g;s/\./,/g')",0"
_COMPILER=""
which windres
if [ $? -ne 0 ]; then
echo "windres does not exist."
... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#!/bin/sh
eval `grep '^HPDF_EXTRA_VERSION=' configure.in`
case "$HPDF_EXTRA_VERSION" in
*-dev)
rebuildok=1
;;
*)
rebuildok=0
;;
esac
cvsclean=0
while test $# -gt 0; do
if test "$1" = "--force"; then
rebuildok=1
echo "Forcing buildconf"
fi
if test "$1" = "--clean"; then
cvsclean=... | Shell |
#!/bin/sh
[ $# -eq 1 ] || exit 1
APPCFG="$1"
[ -x "$APPCFG" ] || exit 1
# Timestamp
sed "s|LAST_UPDATE_DATE|`date`|" -i'.orig' index.html
# Deploy
$APPCFG update .
# Restore
mv index.html.orig index.html
| 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
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | 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
open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
| Shell |
#!/bin/bash
#
# Copyright (c) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| 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
# 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_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am start \
-a android.intent.action.MAIN \
-c android.intent.category.LAUNCHER \
-n com.google.android.apps.iosched/.ui.HomeActivity
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2011, 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-2011, 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
# This script is used by the MAINTAINER to generate composite stylesheets for
# the base Zen theme from the stylesheets in the STARTERKIT.
FIXED=( \
html-reset \
wireframes \
layout-fixed \
page-backgrounds \
tabs \
messages \
pages \
block-editing \
blocks \
navigation \
views-styles ... | Shell |
#!/bin/sh
# This script is used by the MAINTAINER to generate composite stylesheets for
# the base Zen theme from the stylesheets in the STARTERKIT.
FIXED=( \
html-reset \
wireframes \
layout-fixed \
page-backgrounds \
tabs \
messages \
pages \
block-editing \
blocks \
navigation \
views-styles ... | Shell |
#!/bin/sh
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t... | Shell |
#!/bin/sh
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t... | Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/usr/bin/env bash
ROOT=$(dirname $(readlink -nf $0))/../
jar=${ROOT}"lib/dom4j-1.6.1.jar "${ROOT}"lib/protobuf-java-2.5.0.jar "${ROOT}"jar/hadoop.jar"
Main="com.taobao.ad.hadoop.main.Main"
xmlconf=${ROOT}"xmlconf/jobconf.xml"
input="/group/tbsc-dev/zijiang.gqy/Test/input"
output="/group/tbsc-dev/zijiang.gqy/T... | Shell |
#!/usr/bin/env bash
ROOT=$(dirname $(readlink -nf $0))/../
jar=${ROOT}"lib/dom4j-1.6.1.jar "${ROOT}"lib/protobuf-java-2.5.0.jar "${ROOT}"jar/hadoop.jar"
Main="com.taobao.ad.hadoop.main.Main"
xmlconf=${ROOT}"xmlconf/jobconf.xml"
input="/group/tbsc-dev/zijiang.gqy/Test/input"
output="/group/tbsc-dev/zijiang.gqy/T... | Shell |
export RUBYLIB=../ext/metasm:../src/metasm/
export LD_LIBRARY_PATH=/usr/local/lib
| Shell |
#!/bin/bash
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ \
abcdefghijklmnopqrstuvwxyz./*&^%$#@!()"
# May change 'LENGTH' for longer password, of course.
LENGTH="8"
while [ "${n:=1}" -le "$LENGTH" ]; do
PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
let n+=1
done
#echo "$PASS" # ==> Or, redirect to file, as ... | Shell |
#!/bin/bash
################################################
# Script Firewall for regulare host
#
# Description:
# - restrictived inbound + outbound
# - basic port forward (DNAT)
################################################
################################################
# CHANGELOG
# Jul 21, 2008 SM: * Initial... | Shell |
#!/bin/bash
#########################################################
# ZY aliyun post script for el6
#########################################################
# 2014-05-27 post script
#
#set -x
# set random password
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ \
abcdefghijklmnopqrstuvwxyz./*&^%$#@!()"
# May change ... | Shell |
cd /opt
wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/server/zabbix-2.2.3.tar.gz -O zabbix-2.2.3.tar.gz
tar xzf zabbix-2.2.3.tar.gz
cd zabbix-2.2.3
prefix="/usr/local/zabbix-agent"
./configure --enable-agent --prefix=${prefix}
make -j 2
make install
groupadd zabbix
useradd -g zabbix zabbix
#sed -i "s/Serve... | Shell |
#!/bin/bash
################################################
# Script Firewall for regulare host
#
# Description:
# - restrictived inbound + outbound
# - basic port forward (DNAT)
################################################
################################################
# CHANGELOG
# Jul 21, 2008 SM: * Initial... | Shell |
#!/bin/bash
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ \
abcdefghijklmnopqrstuvwxyz./*&^%$#@!()"
# May change 'LENGTH' for longer password, of course.
LENGTH="8"
while [ "${n:=1}" -le "$LENGTH" ]; do
PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
let n+=1
done
#echo "$PASS" # ==> Or, redirect to file, as ... | Shell |
#!/bin/bash
#########################################################
# ZY aliyun post script for el6
#########################################################
# 2014-05-27 post script
#
#set -x
# set random password
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ \
abcdefghijklmnopqrstuvwxyz./*&^%$#@!()"
# May change ... | Shell |
#!/bin/bash
echo "test"1
| Shell |
#!/bin/bash
echo "test"1
| Shell |
# add syntax highlight for LESS
export LESS=" -R "
export HISTCONTROL=ignorespace
# add cmd tracking
declare -r REAL_LOGNAME=`/usr/bin/who am i | cut -d" " -f1`
if [ $USER == root ]; then
declare -r PROMT="#"
else
declare -r PROMT="$"
fi
if [ x"$ZY_USER" == x ]; then
declare -r REMOTE_USER=UN... | Shell |
#!/bin/bash
# Script para backup da base LDAP
EMAIL="put.yourmail@here.com"
ZHOME=/opt/zimbra
ZBACKUP=/backup/ldap
ZCONFD=$ZHOME/conf
DATE=`date +"%a"`
ZDUMPDIR=$ZBACKUP/$DATE
if [ ! -d $ZDUMPDIR ]; then
mkdir -p $ZDUMPDIR
fi
# LDAP Backup
$ZHOME/openldap/sbin/slapcat -F /opt/zimbra/data/ldap/config > $ZDUMP... | Shell |
#!/bin/bash
EMAIL="put.yourmail@here.com"
ZHOME=/opt/zimbra
ZBACKUP=/backup/mysql
ZCONFD=$ZHOME/conf
DATE=`date +"%a"`
ZDUMPDIR=$ZBACKUP/$DATE
ZMDUMP=/opt/zimbra/mysql/bin/mysqldump
ZMLDUMP=/opt/zimbra/logger/mysql/bin/mysqldump
ZMYSQL=/opt/zimbra/mysql/bin/mysql
source ~/bin/zmshutil ; zmsetvars
# Check if dump dir ... | Shell |
#!/bin/bash
# To backup in zip format:
#FORMAT=zip
# Ta backup em tar gzipped format:
FORMAT=tgz
# Where your zimbra lives
ZHOME=/opt/zimbra
# Path to backup base dir
ZBACKUP=/backup/mailbox
# Where the configuration files for zimbra lives
ZCONFD=$ZHOME/conf
# Use this DATE to have /backup/mailbox/{Mon,Tue,Wed.... | Shell |
#!/bin/bash
# Script para backup da base LDAP
EMAIL="put.yourmail@here.com"
ZHOME=/opt/zimbra
ZBACKUP=/backup/ldap
ZCONFD=$ZHOME/conf
DATE=`date +"%a"`
ZDUMPDIR=$ZBACKUP/$DATE
if [ ! -d $ZDUMPDIR ]; then
mkdir -p $ZDUMPDIR
fi
# LDAP Backup
$ZHOME/openldap/sbin/slapcat -F /opt/zimbra/data/ldap/config > $ZDUMP... | Shell |
#!/bin/bash
EMAIL="put.yourmail@here.com"
ZHOME=/opt/zimbra
ZBACKUP=/backup/mysql
ZCONFD=$ZHOME/conf
DATE=`date +"%a"`
ZDUMPDIR=$ZBACKUP/$DATE
ZMDUMP=/opt/zimbra/mysql/bin/mysqldump
ZMLDUMP=/opt/zimbra/logger/mysql/bin/mysqldump
ZMYSQL=/opt/zimbra/mysql/bin/mysql
source ~/bin/zmshutil ; zmsetvars
# Check if dump dir ... | Shell |
#!/bin/bash
# To backup in zip format:
#FORMAT=zip
# Ta backup em tar gzipped format:
FORMAT=tgz
# Where your zimbra lives
ZHOME=/opt/zimbra
# Path to backup base dir
ZBACKUP=/backup/mailbox
# Where the configuration files for zimbra lives
ZCONFD=$ZHOME/conf
# Use this DATE to have /backup/mailbox/{Mon,Tue,Wed.... | Shell |
#! /bin/bash
# Script used to generate php documentation
DOCDIR=docs
PKGDIR=.
phpdoc -v --title="ZimbraSoapPhp" --defaultpackagename ZimbraSoapPhp -i config.php,*/utils.php -d $PKGDIR -t $DOCDIR --template="responsive-twig"
| Shell |
#! /bin/bash
# Script used to generate php documentation
DOCDIR=docs
PKGDIR=.
phpdoc -v --title="ZimbraSoapPhp" --defaultpackagename ZimbraSoapPhp -i config.php,*/utils.php -d $PKGDIR -t $DOCDIR --template="responsive-twig"
| Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_customer_start_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <customer-name>"
}
function zstream_customer_start_verify_command()
{
local customer="$1"
if [ "$custome... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_customer_start_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <customer-name>"
}
function zstream_customer_start_verify_command()
{
local customer="$1"
if [ "$custome... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_customer_start_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <customer-name>"
}
function zstream_customer_start_verify_command()
{
local customer="$1"
if [ "$customer... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_customer_start_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <customer-name>"
}
function zstream_customer_start_verify_command()
{
local customer="$1"
if [ "$customer... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_vidsrc_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <video-src-conf-file>"
}
function zstream_vidsrc_verify_command()
{
local vidsrc_conf="$1"
if [ "$vidsrc_conf" ==... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
VLC=/usr/bin/vlc
ZSTREAM_CUSTOMER_BASEDIR=$ZSTREAM_BASEDIR/customers
ZSTREAM_VIDSRCDIR=$ZSTREAM_BASEDIR/video-sources
ZSTREAM_BINDIR=$ZSTREAM_BASEDIR/bin
#
# The main logging function
#
function zstream_log()
{
echo $1
}
#
# Write a process id into a specif... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
VLC=/usr/bin/vlc
ZSTREAM_CUSTOMER_BASEDIR=$ZSTREAM_BASEDIR/customers
ZSTREAM_VIDSRCDIR=$ZSTREAM_BASEDIR/video-sources
ZSTREAM_BINDIR=$ZSTREAM_BASEDIR/bin
#
# The main logging function
#
function zstream_log()
{
echo $1
}
#
# Write a process id into a specif... | Shell |
#! /bin/bash
#
#
ZSTREAM_BASEDIR=/home/gadi/zstream
source $ZSTREAM_BASEDIR/bin/zion-stream.sh
function zstream_vidsrc_usage()
{
zstream_log "activated with wrong syntax - "$0
echo "Usage: "$0" <video-src-conf-file>"
}
function zstream_vidsrc_verify_command()
{
local vidsrc_conf="$1"
if [ "$vidsrc_conf" ==... | 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
#
# 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 |
# Common bash functions
# Assert that the last command terminated with OK status
function check_last_cmd() {
status=$?
if [ "$status" -ne "0" ]; then
echo "$1 failed (status: $status)"
echo "ABORTED"
exit 1
fi
echo "$1 was ok"
}
| Shell |
#!/bin/bash
#
# A script to fetch the updated translations from crowdin.net.
# Tested on Max osx.
#
# TODO: convert file formats from DOS to unix
# TODO: force a sourcein package creation before downloading.
source ./bash_lib.sh
# NOTE(tal): waiting with 'sq' until recieving a confirmation that it works
# on an actu... | Shell |
#!/bin/bash
#
# A script to patch the Android SDK library that contains ViewPager.java
# Run each time upgrading to a newer version of the SDK.
#
# As of Aug 2012, the stock ViewPager class does not allow to control the
# animation speed and results in a too fast stratup animation (the goal is
# that the user will have... | Shell |
#!/bin/bash
#
# A script to fetch the crowdin translation memory.
# Tested on Max osx.
source ./bash_lib.sh
local_tmx_file="../archive/translations.tmx"
function main() {
echo "Downloading tmx file -> ${local_tmx_file}"
curl -o ${local_tmx_file} http://api.crowdin.net/api/project/maniana/download-tm?key=$CIKEY
... | Shell |
#lrelease -removeidentical -compress Russian.ts -qm Russian.qm
lrelease -verbose Russian.ts -qm Russian.qm
| 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/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
#----------------------------------------------------------------
# tomcat_deploy_war - deploy a .war file to tomcat webapps
#
# This script will do a 'clean' install of a .war file -- i.e.,
# it will first purge the existing application after stopping
# Tomcat.
#
# It then copies the specified .war file to... | Shell |
#!/bin/sh
#----------------------------------------------------------------
# tomcat_deploy_war - deploy a .war file to tomcat webapps
#
# This script will do a 'clean' install of a .war file -- i.e.,
# it will first purge the existing application after stopping
# Tomcat.
#
# It then copies the specified .war file to... | Shell |
cd /cygdrive/c/workspace/AndEnginePhysicsBox2DExtension/
/cygdrive/c/workspace/sdk/android-ndk-r6/ndk-build | Shell |
#! /bin/bash
cd $(dirname $(readlink -f $0))
./zimbraci &>/dev/null &
| Shell |
#! /bin/bash
cd $(dirname $(readlink -f $0))
./zimbraci &>/dev/null &
| Shell |
cd /home/zagli/zimbraci
./zimbraci &>/dev/null &
| Shell |
#!/bin/sh
if [ "$1" = "python" ]; then
sed -e "s/# <\([0-9]\+\)>/<\1>/"
elif [ "$1" = "java" ]; then
sed -e "s/\/\/ <\([0-9]\+\)>/<\1>/"
else
cat
fi | Shell |
#!/bin/bash
#Ce script est exécuté à la première installation de ZinuD
# Version 0.3
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as publi... | Shell |
#! /bin/bash
#Ce script est lancé avec votre bureau à la connexion, ajoutez-y tous les programmes que vous souhaitez démarrer avec votre session suivis du symbole: '&'.
#Dossier autostart à utiliser (celui par défaut est le même que gnome et les bureaux compliants freedesktop.org)
Autodir="$HOME/.config/autostart"
#... | Shell |
#!/bin/bash
# Redémarrage du system ZinuD
# par MerMouY
# Version 0.1
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as published by the Fre... | Shell |
#!/bin/bash
# Fermeture de la session ZinuD
# par MerMouY
procall=`pgrep -u $(whoami) -t tty1` #Récupère tous les processus
procbas=`pgrep -u $(whoami) -t tty1 bash` #Récupère le bash id
procxin=`pgrep -u $(whoami) -t tty1 xinit` #Récupère de pid de xinit
Zic="/usr/share/sounds/zinud/desktop_close.ogg"
##... | Shell |
#!/bin/bash
# Extinction du system ZinuD
# par MerMouY
#
# Version 0.1
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as published by the Fr... | Shell |
#!/bin/bash
#Ce script est exécuté à la première installation de ZinuD
# Version 0.3
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as publi... | Shell |
#! /bin/bash
#Ce script est lancé avec votre bureau à la connexion, ajoutez-y tous les programmes que vous souhaitez démarrer avec votre session suivis du symbole: '&'.
#Dossier autostart à utiliser (celui par défaut est le même que gnome et les bureaux compliants freedesktop.org)
Autodir="$HOME/.config/autostart"
#... | Shell |
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midn... | Shell |
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting t... | Shell |
#!/bin/bash
# Redémarrage du system ZinuD
# par MerMouY
# Version 0.1
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as published by the Fre... | Shell |
### FONCTIONS ###
zman(){
man $1 | zenity --title \"Page de manuel de $1\" --text-info --height 900 --width 700
}
sshfsu(){
fusermount -u $1
}
dzip () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
... | Shell |
#!/bin/bash
# Fermeture de la session ZinuD
# par MerMouY
procall=`pgrep -u $(whoami) -t tty1` #Récupère tous les processus
procbas=`pgrep -u $(whoami) -t tty1 bash` #Récupère le bash id
procxin=`pgrep -u $(whoami) -t tty1 xinit` #Récupère de pid de xinit
Zic="/usr/share/sounds/zinud/desktop_close.ogg"
##... | Shell |
#!/bin/bash
# Extinction du system ZinuD
# par MerMouY
#
# Version 0.1
#
# +------------------------------------------------------------+
# | mermouy@gmail.com
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as published by the Fr... | Shell |
#!/bin/bash
SOURCE_TREE=$1
QM_PREFIX='qm'
TS_PREFIX='ts'
TRANSLATIONS=$SOURCE_TREE/translations/
TRANSLATIONS_PATH_SIZE=`expr length $TRANSLATIONS`
function generate_translations {
echo "Generating translations ..."
for TRANSLATION in `find $TRANSLATIONS -name *.$TS_PREFIX`; do
basename=`basename $TRANSLATION .ts... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops 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 fi... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.