code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/zsh
# only zsh supports floating point arithmetics
cost=1000000
to_pay=1000000
paid=0
yr=0
while [ $yr -lt 20 ] ; do
paid=$(( $paid + $cost * 0.05 + $to_pay * 0.02 ))
: $(( to_pay -= cost * 0.05 ))
: $(( yr += 1 ))
printf "год %2d: заплатил %11.2f $ за дом стоимостью %i $\tto_pay=%11.2f $\n" $yr $paid $cost... | Shell |
for D in {1..254} ; do
for C in {1..254} ; do
for B in {1..254} ; do
for A in {1..4} {6..9} {11..13} {15..22} {24..30} {32..35} 38 40 41 {43..48} {50..61} {62..99} {107..109} {128..175} 178 180 {182..184} {186..222} ; do
echo -n "$A.$B.$C.$D "
RESULT=`dig +short -x $A.$B.$C.$D`
echo $RESULT
done
... | Shell |
#!/bin/zsh
# XXX: It's _ZSH_ !
# vim: ts=8 sw=4 sts=4 et
sufx="${RANDOM}"
declare -i UPLIM=${1:-100}
declare -i MAX_N=${2:-23}
for n in `seq ${3:-1} $MAX_N`; do
REGEXP=`python2 -c "import hw1; print hw1.multiples($n)"`
R_file="/tmp/$0-$n-regexp-$sufx"
S_file="/tmp/$0-$n-str-$sufx"
echo "$REGEXP" > "$... | 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 |
#!/usr/bin/env sh
./gradlew build fatJar
| 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
if [ $# -lt 1 ]; then
echo "Usage $0 file-for-manifest analysis"
exit 1
fi
echo "$(grep "uses-permission android:name=" AndroidManifest.$1.xml | sed 's/uses-permission android:name=//g')" > manifest-tmp.txt
echo "$(sed 's/[<:>/ "]//g' manifest-tmp.txt)" > manifest-permissions.$1.txt
rm manifest-tmp.txt
| Shell |
#!/bin/bash
for file in ~/mobileApps/results/uniq-calls-dynamic.*
do
# echo $file
basenamefile=$(basename $file .txt)
var="$(cat $file)"
echo "$basenamefile $var " >> uniq-calls-dynamic-stats.csv
# ~/mobileApps/tools/apktool/./apktool decode -f $file
# cd $basenamefile
# cp AndroidManifest.xml ../
# cd ..
#... | Shell |
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage $0 file-for-analysis"
exit 1
fi
filename='static-analysis.'$1.'txt'
echo $filename
#echo "$(grep "uses-permission android:name=" $1.AndroidManifest.xml | sed 's/uses-permission android:name=//g')" > manifest-tmp.txt
#echo "$(sed 's/[<:>/ "]//g' manifest-tmp.txt)" > $1.... | Shell |
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage $0 file-for-analysis"
exit 1
fi
filename='dynamic-analysis.'$1.'txt'
echo $filename
#/home/oper/mobileApps/tools/apktool/./apktool decode $file
#echo "$(grep "uses-permission android:name=" AndroidManifest.$1.xml | sed 's/uses-permission android:name=//g')" > manifest-... | Shell |
#!/bin/bash
#this is a script for running soot
ANDROID_JARS_DIR=/home/dgen/android/android-platforms-master
#you should modify the path in which you store the apks
APPS_DIR=/home/dgen/mobileApps/results
#soot output
SOOT_OUTPUT_DIR=/home/dgen/android-instrumentation/soot-output
KEYSTORE_DIR=~/.android
if [ $# -lt 1 ... | Shell |
#!/bin/bash
#emulator @AVD_for_Galaxy_Nexus_by_Google
# adb -s emulator-5554 install BalanceBY.apk
#adb -s -d install /home/oper/mobileApps/bening/set-0/BalanceBY.apk
#I should start the tests
#run the app
#copy the data
#adb -s emulator-5554 uninstall com.example.hello
#I have to change the
for file in /home/op... | 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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Shell |
#filename: compile.sh
#adjust path to source code
PKG_CONFIG_PATH=/usr/lib/pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH
#adjust name of output file and code file
g++ $(pkg-config --cflags --libs opencv) -lm -o opencv-object-color-search *.cpp | Shell |
#!/usr/bin/bash
localTime=`date +"%T"`
#./smthToSocket $localTime
/home/sintec/projects/arduinoClientOOP/smthToSocket/smthToSocket $localTime | Shell |
#!/usr/bin/bash
localTime=`date +"%T"`
#./smthToSocket $localTime
/home/sintec/projects/arduinoClientOOP/smthToSocket/smthToSocket $localTime | Shell |
#filename: compile.sh
#adjust path to source code
PKG_CONFIG_PATH=/usr/lib/pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH
#adjust name of output file and code file
g++ $(pkg-config --cflags --libs opencv) -lm -o opencv-object-color-search *.cpp | Shell |
#!/usr/bin/bash
localTime=`date +"%T"`
#./smthToSocket $localTime
/home/sintec/projects/arduinoClientOOP/smthToSocket/smthToSocket $localTime | Shell |
#!/usr/bin/bash
localTime=`date +"%T"`
#./smthToSocket $localTime
/home/sintec/projects/arduinoClientOOP/smthToSocket/smthToSocket $localTime | Shell |
#!/bin/sh
cat <<EOF
Content-type: video/flv
EOF
exec /sbin/wget -O - --post-data `echo $QUERY_STRING|sed "s_\&_\&_g"` "http://213.152.174.187/mvmu.php"
| Shell |
#!/bin/sh
# Dreambox Live
c_param1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f1`
c_value1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f2`
echo "Content-type: text/html"
echo
echo "<html><head>"
echo "<title>xVoD</title>"
echo "<link type='text/css' rel='stylesheet' href='/cube_web_management.css' />"
echo "</... | Shell |
#!/bin/sh
cd /tmp/cached
wget -q -nc http://livehd.tv/live.php >/dev/null
wget -q -nc http://www.livehd.tv/rtmp/flash-mbr.php
token=`cat live.php | grep token | sed "s/\(.*\)token':'//;s/',\(.*\)//"`
if [ -z "$token" ]; then token=6c69766568642e747620657374652063656c206d616920746172652121; fi
ip=`cat flash-mbr.php |... | Shell |
#!/bin/sh
cat <<EOF
Content-type: video/flv
EOF
exec /usr/local/etc/translate/bin/rtmpdump -q -v -b 60000 -W http://static.seeon.tv/jwplayer/seeon-plugin.swf -p http://www.seeon.tv -r `echo $QUERY_STRING|sed "s_\&_\&_g"`
| Shell |
#!/bin/sh
rtmpPID=$(pidof "rtmpdump")
if test $? -eq 0
then
killall -9 pidof "rtmpdump" >/dev/null 2>&1
echo "Stop"
fi
| Shell |
#!/bin/sh
y=`echo "$QUERY_STRING"`
cat <<EOF
Content-type: video/mp4
EOF
exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -q -v -b 60000 -r rtmp://93.114.43.3:1935/vod/ -a vod -y "mp4:$y"
| Shell |
#!/bin/sh
ID=`echo "$QUERY_STRING" | sed -n 's/^.*id=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
TOKEN=`echo "$QUERY_STRING" | sed -n 's/^.*token=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
cat <<EOF
Content-type: video/mp4
EOF
exec /usr/local/etc/translate/bin/msdl -q -o - "http://content.peteava.ro/video/$ID?start=0&token=$TOKE... | Shell |
#!/bin/sh
#
# http://code.google.com/media-translate/
# Copyright (C) 2010 Serge A. Timchenko
#
# 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 Free Software Foundation, either version 3 of the License, or
# ... | Shell |
#!/bin/sh
#
# http://code.google.com/media-translate/
# Copyright (C) 2010 Serge A. Timchenko
#
# 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 Free Software Foundation, either version 3 of the License, or
# ... | Shell |
#!/bin/sh
echo "<?xml version='1.0' encoding='UTF-8'?>"
echo "<info>"
echo "<status>"
msdlPID=$(pidof "msdl")
if test $? -eq 0
then
killall -9 pidof "msdl" >/dev/null 2>&1
echo "<movie>Movie is Stopped.</movie>"
else
echo "<movie>Movie is Stopped.</movie>"
fi
echo "</status>"
echo "</info>"
| Shell |
#!/bin/sh
#
# http://code.google.com/media-translate/
# Copyright (C) 2010 Serge A. Timchenko
#
# 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 Free Software Foundation, either version 3 of the License, or
# ... | Shell |
#!/bin/sh
#
# http://code.google.com/media-translate/
# Copyright (C) 2010 Serge A. Timchenko
#
# 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 Free Software Foundation, either version 3 of the License, or
# ... | Shell |
#!/bin/sh
link=`echo "$QUERY_STRING" | sed -n 's/^.*link=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
PID=`echo "$QUERY_STRING" | sed -n 's/^.*pid=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
NAME=`echo "$QUERY_STRING" | sed -n 's/^.*name=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
GO=`echo "$QUERY_STRING" | sed -n 's/^.*go=\([^;]*\).*$/\... | Shell |
#!/bin/sh
# Dreambox Live
c_param1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f1`
c_value1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f2`
echo "Content-type: text/html"
echo
echo "<html><head>"
echo "<title>repoman xLive</title>"
echo "<link type='text/css' rel='stylesheet' href='/cube_web_management.css' />"... | Shell |
#!/bin/sh
cat <<EOF
Content-type: video/flv
EOF
exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -q -b 60000 -v -W http://static1.mediadirect.ro/player-preload/swf/preloader/preloader.swf -r `echo $QUERY_STRING|sed "s_\&_\&_g"`
| Shell |
#!/bin/sh
DISK=`echo "$QUERY_STRING" | sed -n 's/^.*sda=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
LINK=`echo "$QUERY_STRING" | sed -n 's/^.*link=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
NAME=`echo "$QUERY_STRING" | sed -n 's/^.*name=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
if [ -n "$DISK"]
then
if [ -d /tmp/usbmounts/sda1/downlo... | Shell |
#!/bin/sh
cat <<EOF
Content-type: video/mp4
EOF
exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -q -v -b 60000 -W http://static.mediadirect.ro/streamrecord/new3/player.swf -r `echo $QUERY_STRING|sed "s_\&_\&_g"`
| Shell |
#!/bin/sh
DISK=`echo "$QUERY_STRING" | sed -n 's/^.*sda=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
LINK=`echo "$QUERY_STRING" | sed -n 's/^.*link=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
NAME=`echo "$QUERY_STRING" | sed -n 's/^.*name=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"`
if [ -n "$DISK"]
then
if [ -d /tmp/usbmounts/sda1/downlo... | Shell |
#!/bin/sh
cd /tmp/cached
wget -q -nc http://livehd.tv/live.php >/dev/null
wget -q -nc http://www.livehd.tv/rtmp/flash-mbr.php
token=`cat live.php | grep token | sed "s/\(.*\)token':'//;s/',\(.*\)//"`
if [ -z "$token" ]; then token=6c69766568642e747620657374652063656c206d616920746172652121; fi
ip=`cat flash-mbr.php |... | Shell |
#!/bin/sh
#
# http://code.google.com/media-translate/
# Copyright (C) 2010 Serge A. Timchenko
#
# 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 Free Software Foundation, either version 3 of the License, or
# ... | Shell |
#!/bin/sh
killall wget
rm /tmp/*.pid
if [ -d /tmp/usbmounts/sda1/download ]
then
loc=/tmp/usbmounts/sda1/download
loclog=/tmp/usbmounts/sda1/download
elif [ -d /tmp/usbmounts/sdb1/download ]
then
loc=/tmp/usbmounts/sdb1/download
loclog=/tmp/usbmounts/sdb1/download
elif [ -d /tmp/usbmounts/sdc1/download ]
then
loc=... | Shell |
#!/bin/sh
cat <<EOF
Content-type: video/mp4
EOF
exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -b 60000 -q -v -p http://justin.tv -r "rtmp://199.9.254.243/app/jtv_26b2IFVd91S3ep5m" --jtv "d28e0bc5500c41d78a49e6aafc6bb31104011125:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch... | 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 (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/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
(
device_in()
{
if [ ! -e /etc/usb_modeswitch.d/$1 ]; then
return 0
fi
if [ -z "$2$3" ]; then
return 1
fi
while read line
do
if [ `expr "$line" : ".*$2:$3.*"` ]; then
# if [ "$line" != "${line/$2:$3/}" ]; then
return 1
fi
done </etc/usb_modeswitch.d/$1
if [ `expr "$line" : ".*$2:$3.*"` ]; ... | Shell |
#!/bin/sh
(
device_in()
{
if [ ! -e /etc/usb_modeswitch.d/$1 ]; then
return 0
fi
if [ -z "$2$3" ]; then
return 1
fi
while read line
do
if [ `expr "$line" : ".*$2:$3.*"` ]; then
# if [ "$line" != "${line/$2:$3/}" ]; then
return 1
fi
done </etc/usb_modeswitch.d/$1
if [ `expr "$line" : ".*$2:$3.*"` ]; ... | Shell |
#!/bin/sh
#
# -- https://android-autotool.googlecode.com/svn/trunk/selfcontain.sh --
#
# Self Contain bash srcipt
#
# Copyright 2011, Kyan He <kyan.ql.he@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
# t... | Shell |
#!/bin/sh
#
# -- https://android-autotool.googlecode.com/svn/trunk/adb_reset --
#
# restart ADB daemon to fix permission issues
#
# when invoke adb devices, get the output like
# $ adb devices
# List of devices attached
# ???????????? no permissions
#
# Copyright 2011, Kyan He <kyan.ql.he@gmail.com>
#
#
# T... | Shell |
#!/bin/sh
#
# -- https://android-autotool.googlecode.com/svn/trunk/selfcontain.sh --
#
# Self Contain bash srcipt
#
# Copyright 2011, Kyan He <kyan.ql.he@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
# t... | Shell |
#!/bin/sh
#
# -- https://android-autotool.googlecode.com/svn/trunk/adb_reset --
#
# restart ADB daemon to fix permission issues
#
# when invoke adb devices, get the output like
# $ adb devices
# List of devices attached
# ???????????? no permissions
#
# Copyright 2011, Kyan He <kyan.ql.he@gmail.com>
#
#
# T... | Shell |
# get project root directory
function getptop
{
local TOPFILE=AndroidManifest.xml
if [ -n "$PTOP" -a -f "$PTOP/$TOPFILE" ] ; then
echo $PTOP
else
if [ -f $TOPFILE ] ; then
echo $PWD
else
# We redirect cd to /dev/null in case it's aliased to
# a com... | 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
# Modified from the ant startup script to start the BeanBox example instead.
# Cygwin support. $cygwin _must_ be set to either true or false.
case "`uname`" in
CYGWIN*) cygwin=true ;;
*) cygwin=false ;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[... | Shell |
#!/bin/bash
# -----------------------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The A... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.