code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash ./script/fetcher > /dev/null 2>&1 &
Shell
#!/bin/bash mongrel_rails start -d -p 8001 -e production
Shell
#!/bin/bash ./script/fetcher > /dev/null 2>&1 &
Shell
#!/bin/bash mongrel_rails start -d -p 8001 -e production
Shell
#!/bin/bash mongrel_rails start -d -p 8001 -e production
Shell
#!/bin/bash mongrel_rails start -d -p 8001 -e production
Shell
#!/bin/sh rm chromelist.xpi zip -r9 chromelist.xpi content/ skin/ locale/ defaults/ license.txt chrome.manifest install.rdf -x *.svn**
Shell
#!/bin/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT=$(dirname $(readlink -f $0))/.. GAE=$ROOT/../google_appengine FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS=$GAE:$GAE/lib/django_1_2 PYTHONPATH=$IMPORTS:$PYTHONPA...
Shell
#! /bin/bash # example of usage: ./battle4.sh a1 a10 j1 j10 c1c2 h1h2 e1f1 h8h10 d8d10 f5f8 if [[ $# -ne 10 ]] # - number of ships then echo Wrong number of ships. exit fi # initialization # for field for (( i=1; i<101;i++)); do arr[$i]='~' done i=0 for l in a b c d e f g h i j # for index do let "i=$i+1"...
Shell
#! /bin/bash touch \ \ \ ln \ \ \ \ \ \ \ ln --symbolic \ \ \ \ \ \ \ \ \ \ mkdir \ \ \ \ \ ls -al sleep 5 find . -type d -regex ".*\(\ +\)" -exec rmdir {} \; find . -regex ".*\(\ +\)" -exec rm {} \; ls -al
Shell
#! /bin/bash # example of usage: ./battle4.sh a1 a10 j1 j10 c1c2 h1h2 e1f1 h8h10 d8d10 f5f8 if [[ $# -ne 10 ]] # - number of ships then echo Wrong number of ships. exit fi # initialization # for field for (( i=1; i<101;i++)); do arr[$i]='~' done i=0 for l in a b c d e f g h i j # for index do let "i=$i+1"...
Shell
#! /bin/bash touch \ \ \ ln \ \ \ \ \ \ \ ln --symbolic \ \ \ \ \ \ \ \ \ \ mkdir \ \ \ \ \ ls -al sleep 5 find . -type d -regex ".*\(\ +\)" -exec rmdir {} \; find . -regex ".*\(\ +\)" -exec rm {} \; ls -al
Shell
#!/bin/bash if [ "$1" == "-help" ];then printf " manual: Hello user! Thank you for using the program! This program only print ships according its coordinates and rules of battleship For printing ships enter its coordinates of begining and finishing in format: LetterNumberLetterNumber(a1a1) or NumberNumberNumberNumber...
Shell
#!/bin/bash if [ "$1" == "-help" ];then printf " manual: Hello user! Thank you for using the program! This program only print ships according its coordinates and rules of battleship For printing ships enter its coordinates of begining and finishing in format: LetterNumberLetterNumber(a1a1) or NumberNumberNumberNumber...
Shell
#!/bin/bash #SPASIBO ZA KOMMENTARII, BSE OCHEM PONYATNO// function addShip() { let y1=${ship:0:1} let x1=${ship:1:1} let y2=${ship:2:1} let x2=${ship:3:1} if [[ "$ship" =~ ^[0-9]{4}$ ]] && [[ $x1 == $x2 || $y1 == $y2 ]];then for((i=$x1;i<=$x2;i++));do for((j=$y1;j <=$y2;j++));do field[...
Shell
#!/bin/bash #SPASIBO ZA KOMMENTARII, BSE OCHEM PONYATNO// function addShip() { let y1=${ship:0:1} let x1=${ship:1:1} let y2=${ship:2:1} let x2=${ship:3:1} if [[ "$ship" =~ ^[0-9]{4}$ ]] && [[ $x1 == $x2 || $y1 == $y2 ]];then for((i=$x1;i<=$x2;i++));do for((j=$y1;j <=$y2;j++));do field[...
Shell
#!/bin/bash echo "___________________Battleship v1.0___________________" field() { for ((i=0;i<100;i++)) do map[i]=" . "; done } draw() { column=0 row=0 echo -n " " for ((row=0;row<11;row++));do if [ $row == 0 ];then echo ". 0 1 2 3 4 5 6 7 8 9 "; else for((column=0;column<11;colu...
Shell
#!/bin/bash find -regex '\.\/[\*\ ]+' -delete
Shell
#!/bin/bash find -regex '\.\/[\*\ ]+' -delete
Shell
#!/bin/bash echo "___________________Battleship v1.0___________________" field() { for ((i=0;i<100;i++)) do map[i]=" . "; done } draw() { column=0 row=0 echo -n " " for ((row=0;row<11;row++));do if [ $row == 0 ];then echo ". 0 1 2 3 4 5 6 7 8 9 "; else for((column=0;column<11;colu...
Shell
#!/bin/bash k=0 for n in $@ do if [[ ${#COORD[@]} -eq 10 ]]; then echo "You have entered too much coordinates!!! Only 10 ships will be printed!" break fi if [[ $n =~ ^[0-9]{4}$ ]]; then COORD[$k]=$n k=$k+1 fi done echo ${COORD[@]} function Print(){ echo "" echo "0 1 2 3 4 5 6 7 8 9" for ((i=0;i<10;i++));...
Shell
#!/bin/bash #The program removes files that are named with spaces find -regex '\.\/[\*\ ]+' -delete
Shell
#!/bin/bash #The program removes files that are named with spaces find -regex '\.\/[\*\ ]+' -delete
Shell
#!/bin/bash k=0 for n in $@ do if [[ ${#COORD[@]} -eq 10 ]]; then echo "You have entered too much coordinates!!! Only 10 ships will be printed!" break fi if [[ $n =~ ^[0-9]{4}$ ]]; then COORD[$k]=$n k=$k+1 fi done echo ${COORD[@]} function Print(){ echo "" echo "0 1 2 3 4 5 6 7 8 9" for ((i=0;i<10;i++));...
Shell
#!/bin/bash # define all constant letters=(a b c d e f g h i j) ship="x" ocean="." getF(){ echo ${field[$(($1*10+$2))]};} setF(){ field[$(($1*10+$2))]="$3";} fillF(){ for ((i=0;i<100;i++));do field[$i]=$ocean done } set2Numeric(){ for ((i=0;i<10;i++));do if [ ${letters[$i]} == $1 ];then echo $i fi done } pr...
Shell
#!/bin/bash # define all constant letters=(a b c d e f g h i j) ship="x" ocean="." getF(){ echo ${field[$(($1*10+$2))]};} setF(){ field[$(($1*10+$2))]="$3";} fillF(){ for ((i=0;i<100;i++));do field[$i]=$ocean done } set2Numeric(){ for ((i=0;i<10;i++));do if [ ${letters[$i]} == $1 ];then echo $i fi done } pr...
Shell
#!/bin/bash #search and delete files consisting of * and 'space' find -regextype posix-extended -regex '\.\/[\*\ ]+' -exec rm -rfv {} +
Shell
#!/bin/bash #search and delete files consisting of * and 'space' find -regextype posix-extended -regex '\.\/[\*\ ]+' -exec rm -rfv {} +
Shell
#!/bin/bash function FieldArray() { for((i=0; i<10; i+=1));do for((j=0; j<10; j+=1));do field[i*10 + j]="0"; done done } function Field() { for((i=0; i<10; i++));do echo -n for((j=0; j<10; j++));do case "${field[i*10 + j]}" in "0") echo -n " *";; "1") ...
Shell
#!/bin/bash function FieldArray() { for((i=0; i<10; i+=1));do for((j=0; j<10; j+=1));do field[i*10 + j]="0"; done done } function Field() { for((i=0; i<10; i++));do echo -n for((j=0; j<10; j++));do case "${field[i*10 + j]}" in "0") echo -n " *";; "1") ...
Shell
#!/bin/bash `find -regex '\.\/[\ \*]+' -delete`
Shell
#!/bin/bash CreateGameField () { for((i=0;i<100;i++)) do field[i]=" + " done } PrintField () { echo " 0 1 2 3 4 5 6 7 8 9 " echo " -------------------------------- " for ((i=0;i<10;i++)) do echo -n " $i |" for ((j=0;j<10;j++)) do if [[ ${field[$i*10 + $j]} == " " ...
Shell
#!/bin/bash `find -regex '\.\/[\ \*]+' -delete`
Shell
#!/bin/bash CreateGameField () { for((i=0;i<100;i++)) do field[i]=" + " done } PrintField () { echo " 0 1 2 3 4 5 6 7 8 9 " echo " -------------------------------- " for ((i=0;i<10;i++)) do echo -n " $i |" for ((j=0;j<10;j++)) do if [[ ${field[$i*10 + $j]} == " " ...
Shell
#!/bin/bash k=0 for n in $@ do if [[ ${#COORD[@]} -eq 10 ]]; then echo "You have entered too much coordinates!!! Only 10 ships will be printed!" break fi if [[ $n =~ ^[0-9]{4}$ ]]; then COORD[$k]=$n k=$k+1 fi done echo ${COORD[@]} function Print(){ echo "" echo "0 1 2 3 4 5 6 7 8 9" for ((i=0;i<10;...
Shell
#!/bin/bash k=0 for n in $@ do if [[ ${#COORD[@]} -eq 10 ]]; then echo "You have entered too much coordinates!!! Only 10 ships will be printed!" break fi if [[ $n =~ ^[0-9]{4}$ ]]; then COORD[$k]=$n k=$k+1 fi done echo ${COORD[@]} function Print(){ echo "" echo "0 1 2 3 4 5 6 7 8 9" for ((i=0;i<10;...
Shell
#Название программы: Визуализация игры "Морской бой" #Описание: Программа предназначена для визуализации игры "Морской бой". Пользователь вводит #координаты #предполагаемых кораблей по очереди, через пробел в формате "а1", где а-j - координата по #горизонтали, #1 -10 - координата повертикали. Пример ввода: ./seafight...
Shell
#!/bin/bash #Название программы: программа для удаления файлов, название которых состоит из пробелов. #Описание: происходит выполнение команды `find -regex '\.\/[\ \*]+' -delete` #Автор : Кобелев Дмитрий #Дата последнего изменения : 28.01.2014 23.12 help="Название программы: программа для удаления файлов, название кот...
Shell
#!/bin/bash #Название программы: программа для удаления файлов, название которых состоит из пробелов. #Описание: происходит выполнение команды `find -regex '\.\/[\ \*]+' -delete` #Автор : Кобелев Дмитрий #Дата последнего изменения : 28.01.2014 23.12 help="Название программы: программа для удаления файлов, название кот...
Shell
#!/bin/bash #Программа рисует вертикальные и горизонтальные корабли, длиной не больше 4 #Корабли не должны пересекаться, один из них не отрисовывается программой #Формат параметров - 4х значное число,где первые 2 цифры координаты начала и 2 последние конца корабля function FieldArray() { for((i=0; i<10; i+=1));do ...
Shell
#!/bin/bash #Программа рисует вертикальные и горизонтальные корабли, длиной не больше 4 #Корабли не должны пересекаться, один из них не отрисовывается программой #Формат параметров - 4х значное число,где первые 2 цифры координаты начала и 2 последние конца корабля function FieldArray() { for((i=0; i<10; i+=1));do ...
Shell
#!/bin/bash #--------------------------------------------------------- # в этом участке кода производится парсинг строки # пример строки "15 18 40 70", результат записывается в массив в виде # array[0]=15 # array[1]=18 и т.д. # Необходимо обратить внимание на то какой вид имеет входящая строка. # Разберем на нашем прим...
Shell
#!/bin/bash #--------------------------------------------------------- # в этом участке кода производится парсинг строки # пример строки "15 18 40 70", результат записывается в массив в виде # array[0]=15 # array[1]=18 и т.д. # Необходимо обратить внимание на то какой вид иммеет входящая строка. # Разберем на нашем при...
Shell
#!/bin/bash #--------------------------------------------------------- # в этом участке кода производится парсинг строки # пример строки "15 18 40 70", результат записывается в массив в виде # array[0]=15 # array[1]=18 и т.д. # Необходимо обратить внимание на то какой вид иммеет входящая строка. # Разберем на нашем при...
Shell
#!/bin/bash #--------------------------------------------------------- # в этом участке кода производится парсинг строки # пример строки "15 18 40 70", результат записывается в массив в виде # array[0]=15 # array[1]=18 и т.д. # Необходимо обратить внимание на то какой вид имеет входящая строка. # Разберем на нашем прим...
Shell
#!/bin/bash find . -type f -name "\ *" -exec rm {} \;
Shell
#!/bin/bash find . -type f -name "\ *" -exec rm {} \;
Shell
#!/bin/bash `find -regex '\.\/[\ \*]+' -delete`
Shell
#!/bin/bash CreateGameField () { for((i=0;i<100;i++)) do field[i]=" + " done } PrintField () { echo " 0 1 2 3 4 5 6 7 8 9 " echo " -------------------------------- " for ((i=0;i<10;i++)) do echo -n " $i |" for ((j=0;j<10;j++)) do if [[ ${field[$i*10 + $j]} == " " ...
Shell
#!/bin/bash `find -regex '\.\/[\ \*]+' -delete`
Shell
#!/bin/bash CreateGameField () { for((i=0;i<100;i++)) do field[i]=" + " done } PrintField () { echo " 0 1 2 3 4 5 6 7 8 9 " echo " -------------------------------- " for ((i=0;i<10;i++)) do echo -n " $i |" for ((j=0;j<10;j++)) do if [[ ${field[$i*10 + $j]} == " " ...
Shell
#!/bin/bash createField() { for ((i=0;i<100;i++)) do arr[i]=" • "; done } renderField() #drawing the field (numbers first, then values in array) { for ((row=0;row<12;row++));do if [ $row == 0 ];then echo " 0 1 2 3 4 5 6 7 8 9 "; elif [ $row == 1 ];then echo " --------------------...
Shell
#!/bin/bash createField() { for ((i=0;i<100;i++)) do arr[i]=" • "; done } renderField() #drawing the field (numbers first, then values in array) { for ((row=0;row<12;row++));do if [ $row == 0 ];then echo " 0 1 2 3 4 5 6 7 8 9 "; elif [ $row == 1 ];then echo " --------------------...
Shell
#!/bin/bash empty_field() { for ((i=0;i<100;i++)) do array[i]=" . "; done } field() { for ((x=0;x<=10;x++));do if [ $x == 0 ];then echo " 0 1 2 3 4 5 6 7 8 9 "; else for((y=0;y<=10;y++));do if [ $y == 0 ];then let temp=$x-1; echo -n $temp; else echo -n "${ar...
Shell
#!/bin/bash empty_field() { for ((i=0;i<100;i++)) do array[i]=" . "; done } field() { for ((x=0;x<=10;x++));do if [ $x == 0 ];then echo " 0 1 2 3 4 5 6 7 8 9 "; else for((y=0;y<=10;y++));do if [ $y == 0 ];then let temp=$x-1; echo -n $temp; else echo -n "${ar...
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 clear make cd runtime make cd .. cd Example llvm-gcc -O0 -emit-llvm -c simple.c -o obj.o llvm-dis obj.o opt -load ~/Programs/llvm/Debug/lib/DSWP.so -dswp obj.o -o out.o llvm-dis out.o llvm-ld obj.o echo 'run original code' start_time=`date +%s` ./a.out end_time=`date +%s` echo execution time was `exp...
Shell
#!/bin/bash clear make cd Example llvm-gcc -O0 -emit-llvm -c loop.c -o obj.o llvm-dis obj.o opt -load ~/Programs/llvm/Debug/lib/DSWP.so -dswp obj.o -o out.o llvm-dis out.o #cat showgraph #cat dag #cat partition cd ..
Shell
#!/bin/bash clear make cd Example llvm-gcc -O0 -emit-llvm -c simple_longlong.c -o simple.o llvm-dis -show-annotations simple.o opt -load ~/Programs/llvm/Debug/lib/DSWP.so -dswp simple.o -o out.o llvm-dis -show-annotations out.o #cat showgraph #cat dag #cat partition cd ..
Shell
#!/bin/bash clear make cd Example llvm-gcc -O0 -emit-llvm -c simpledouble.c -o simple.o llvm-dis -show-annotations simple.o opt -load ~/Programs/llvm/Debug/lib/DSWP.so -dswp simple.o -o out.o llvm-dis -show-annotations out.o #cat showgraph #cat dag #cat partition cd ..
Shell
#!/bin/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
Shell
#!/bin/bash if [[ $1 ]]; then target=$1 else target="./data" fi read -p "Lowercase all files in $target directory? [y/N] " confirm if [[ `echo $confirm | tr '[:upper:]' '[:lower:]'` == 'y' ]]; then for f in $target/*; do g=`basename "$f" | tr '[:upper:]' '[:lower:]'` mv -fv "$f" "$target/$g" 2> /dev/null don...
Shell
#!/bin/bash # Copyright 2009-2011 Google Inc., Shannon Weyrick <weyrick@mozek.us> MYDIR=`dirname $0` (cd $MYDIR; cd ..; ROOT=`pwd`) OUTDIR="$MYDIR/output/" echo "output to $OUTDIR" if [ -z "$ROOT" ]; then ROOT=. fi if [ ! -e "$OUTDIR" ]; then mkdir -p "$OUTDIR" fi CRACKBIN="$MYDIR/../crack" if [ -s $CRACKBI...
Shell
#!/bin/bash # Copyright 2010 Google Inc. # Script to launch gdb for crack. in_prog_args=false declare -A gdb_args declare -A prog_args i=0 for arg in "$@"; do if [ "$arg" = '--' ]; then in_prog_args=true elif $in_prog_args; then prog_args[$((++i))]="$arg" else gdb_args[$((++i))]="$...
Shell
#!/bin/sh # Copyright 2003 Michael A. Muller # --- embedded python --- # generate Makefile.am from Makefile.am.in python <<__eof__ import re varRx = re.compile(r'(.*)%(\w+)%(.*)', re.DOTALL) # get the source files sourceModules = open('sourceModules.txt').read().strip().split('\n') runtimeModules = open('runtimeModu...
Shell
#!/bin/sh # Copyright 2011 Google Inc. # Copyright 2011 Arno Rehn <arno@arnorehn.de> # Runs the "screen" command on selected tests or the set of all tests. # Options: # -n run tests under llvm-native # -f stop on fail # -r recompile the screen program # -j run screen in JIT mode # -v turn on verbose output # ...
Shell
#! /bin/sh : 'This file is in the public domain, so clarified as of' : '2006-07-17 by Arthur David Olson.' case $#-$1 in 2-|2-0*|2-*[!0-9]*) echo "$0: wild year - $1" >&2 exit 1 ;; esac case $#-$2 in 2-even) case $1 in *[24680]) exit 0 ;; *) exit 1 ;; esac ;; 2-nonpres|2-nonuspres) case $1 in...
Shell
#! /bin/sh : 'This file is in the public domain, so clarified as of' : '2006-07-17 by Arthur David Olson.' case $#-$1 in 2-|2-0*|2-*[!0-9]*) echo "$0: wild year - $1" >&2 exit 1 ;; esac case $#-$2 in 2-even) case $1 in *[24680]) exit 0 ;; *) exit 1 ;; esac ;; 2-nonpres|2-nonuspres) case $1 in...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) to...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) to...
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
#!/usr/bin/env bash # Copyright (c) 2003-2012, 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-2012, 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/bash bin/examplefs $1 $2 -f -s
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/sh j=0 for i in '[[1,2,3,4],[5,6,7,8],[9,10,11,0],[13,14,15,12]]' '[[1,2,3,4],[5,6,0,8],[9,10,7,11],[13,14,15,12]]' '[[1,2,3,4],[5,6,7,8],[9,10,12,15],[13,0,14,11]]' '[[1,2,3,4],[5,7,0,8],[13,6,10,11],[14,9,15,12]]' '[[2,7,6,4],[1,0,3,8],[5,9,10,11],[13,14,15,12]]' '[[1,2,3,0],[5,6,7,4],[14,10,12,8],[9,13,11,15...
Shell
#!/bin/sh j=0 for i in '[[1,2,3,4],[5,6,7,8],[9,10,11,0],[13,14,15,12]]' '[[1,2,3,4],[5,6,0,8],[9,10,7,11],[13,14,15,12]]' '[[1,2,3,4],[5,6,7,8],[9,10,12,15],[13,0,14,11]]' '[[1,2,3,4],[5,7,0,8],[13,6,10,11],[14,9,15,12]]' '[[2,7,6,4],[1,0,3,8],[5,9,10,11],[13,14,15,12]]' '[[1,2,3,0],[5,6,7,4],[14,10,12,8],[9,13,11,15...
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 adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
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
#!/bin/sh adb shell pm clear 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 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 # 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 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 TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` #cd /root/backup/log cd /root/backup/rsync cp auditNew.log.$TIME.tar.gz /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/auditNew.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/auditNew.log.$TIME.tar.gz cd /ro...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` #cd /root/backup/log cd /root/backup/rsync cp auditNew.log.$TIME.tar.gz /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/auditNew.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/auditNew.log.$TIME.tar.gz cd /ro...
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 TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#!/bin/sh TIME=`date -d "-1 day" "+%Y-%m-%d"` #TIME=`date +%Y-%m-%d` cd /root/backup/log #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME #wget -c -t 0 http://account.trinitigame.com/auditlog/devildark.log.$TIME.tar.gz #tar zxvf devildark.log.$TIME.tar.gz #sleep 20s #sed -i -e '/whatday/!d' d...
Shell
#lrelease -removeidentical -compress Russian.ts -qm Russian.qm lrelease -verbose Russian.ts -qm Russian.qm
Shell
#!/bin/bash # Run this from the terminal inside a drupal root folder # i.e. DRUPAL_ROOT_DIR/sites/all/modules/contrib/ctools/tests/ctools.drush.sh function stamp { echo ============== echo timestamp : `date` echo ============== } DRUPAL_ROOT=`drush dd` MODULE_DIR="$DRUPAL_ROOT/sites/all/modules" M...
Shell
#!/bin/bash # Run this from the terminal inside a drupal root folder # i.e. DRUPAL_ROOT_DIR/sites/all/modules/contrib/ctools/tests/ctools.drush.sh function stamp { echo ============== echo timestamp : `date` echo ============== } DRUPAL_ROOT=`drush dd` MODULE_DIR="$DRUPAL_ROOT/sites/all/modules" M...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2012, 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