code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
#javac HelloWorld.java
cd java && ant
| Shell |
#!/bin/bash
LD_LIBRARY_PATH=./lib/pc
export LD_LIBRARY_PATH
java -jar java/dist/lib/HelloCMake.jar
| Shell |
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
| 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
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#! /bin/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/bash
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell |
#!/bin/sh
php ./tests/phpunit.phar ./tests/
| Shell |
#!/bin/sh
grep -lR $2 $1
#grep -n -lR "upsert" ./ | grep -v ".svn"
| Shell |
#!/bin/sh
find . -name ".svn" -type d -exec rm -rf {} \;
| Shell |
#!/bin/sh
grep -lR $2 $1
#grep -n -lR "upsert" ./ | grep -v ".svn"
| Shell |
#!/bin/sh
find . -name ".svn" -type d -exec rm -rf {} \;
| Shell |
#!/bin/sh
php ./tests/phpunit.phar ./tests/
| Shell |
#!/bin/sh
rm -rf .cache/*
rm -rf dists/intrepid/Release*
rm -rf dists/intrepid/main/binary-i386/*
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-release.conf release dists/intrepid > dists/intrepid/Release
ls -R pool/ | grep deb > packagelist.txt
| Shell |
#!/bin/sh
rm -rf .cache/*
rm -rf dists/intrepid/Release*
rm -rf dists/intrepid/main/binary-i386/*
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-release.conf release dists/intrepid > dists/intrepid/Release
ls -R pool/ | grep deb > packagelist.txt
| Shell |
#!/bin/bash
# A small bash script for installing CrunchBang Linux 8.10.01
# Run as root (sudo ./crunchbang-installer.sh)
#------------------------------------------------------------------------
#Add CrunchBang Repository
#=========================
wget http://crunchbang.net/packages-8.10.xx/crunchbang.list -O /etc/ap... | Shell |
#!/bin/bash
# A small bash script for installing CrunchBang Linux 8.10.01
# Run as root (sudo ./crunchbang-installer.sh)
#------------------------------------------------------------------------
#Add CrunchBang Repository
#=========================
wget http://crunchbang.net/packages-8.10.xx/crunchbang.list -O /etc/ap... | Shell |
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = remove ]; then
update-initramfs -u
fi
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so 10
update-initramfs -u
;;
esac
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = remove ]; then
update-initramfs -u
fi
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so 10
update-initramfs -u
;;
esac
| Shell |
#!/bin/sh
# postrm script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `a... | Shell |
#!/bin/sh
# postinst script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favou... | Shell |
#!/bin/sh
# postrm script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `a... | Shell |
#!/bin/sh
# postrm script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `a... | Shell |
#!/bin/sh
# postinst script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favou... | Shell |
#!/bin/sh
# postrm script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `a... | Shell |
#!/bin/sh
# postinst script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favou... | Shell |
#!/bin/sh
# postinst script for usplash-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favou... | Shell |
#!/bin/sh -e
#
# Copyright (C) 2007-2008 Canonical Ltd.
#
# 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 2 of the License, or
# (at your option) any later version.
#
# This prog... | Shell |
#!/bin/sh -e
#
# Copyright (C) 2007-2008 Canonical Ltd.
#
# 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 2 of the License, or
# (at your option) any later version.
#
# This prog... | Shell |
#!/bin/bash
# Build config for build.sh
APP_NAME=ubufox
CHROME_PROVIDERS="content locale skin"
CLEAN_UP=1
ROOT_FILES=
ROOT_DIRS="defaults searchplugins components"
BEFORE_BUILD=
AFTER_BUILD=
| Shell |
#!/bin/bash
# build.sh -- builds JAR and XPI files for mozilla extensions
# by Nickolay Ponomarev <asqueella@gmail.com>
# (original version based on Nathan Yergler's build script)
# Most recent version is at <http://kb.mozillazine.org/Bash_build_script>
# This script assumes the following directory structure:
# ./... | Shell |
#!/bin/bash
# Build config for build.sh
APP_NAME=ubufox
CHROME_PROVIDERS="content locale skin"
CLEAN_UP=1
ROOT_FILES=
ROOT_DIRS="defaults searchplugins components"
BEFORE_BUILD=
AFTER_BUILD=
| Shell |
#!/bin/bash
# build.sh -- builds JAR and XPI files for mozilla extensions
# by Nickolay Ponomarev <asqueella@gmail.com>
# (original version based on Nathan Yergler's build script)
# Most recent version is at <http://kb.mozillazine.org/Bash_build_script>
# This script assumes the following directory structure:
# ./... | Shell |
#!/bin/sh
if test "$1" = "upgrade" -o "$1" = "install"; then
if test -d /usr/lib/firefox/extensions/ubufox@ubuntu.com; then
rm -rf /usr/lib/firefox/extensions/ubufox@ubuntu.com
fi
if test -d /usr/lib/firefox-addons/extensions/ubufox@ubuntu.com; then
rm -rf /usr/lib/firefox-addons/extensions/ubufox@ubun... | Shell |
#!/bin/sh
if test "$1" = "upgrade" -o "$1" = "install"; then
if test -d /usr/lib/firefox/extensions/ubufox@ubuntu.com; then
rm -rf /usr/lib/firefox/extensions/ubufox@ubuntu.com
fi
if test -d /usr/lib/firefox-addons/extensions/ubufox@ubuntu.com; then
rm -rf /usr/lib/firefox-addons/extensions/ubufox@ubun... | Shell |
#!/bin/sh
# postrm script for gdm-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort... | Shell |
#!/bin/sh
# postinst script for gdm-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <... | Shell |
#!/bin/sh
# postrm script for gdm-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort... | Shell |
#!/bin/sh
# postinst script for gdm-theme-clubdistro
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <... | Shell |
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = remove ]; then
update-initramfs -u
fi
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so 10
update-initramfs -u
;;
esac
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = remove ]; then
update-initramfs -u
fi
| Shell |
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so 10
update-initramfs -u
;;
esac
| Shell |
#!/bin/sh
# preinst script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
... | Shell |
#!/bin/sh
# postrm script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abor... | Shell |
#!/bin/sh
# postinst script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' ... | Shell |
#!/bin/sh
# prerm script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package... | Shell |
#!/bin/sh
# preinst script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
... | Shell |
#!/bin/sh
# postrm script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abor... | Shell |
#!/bin/sh
# postinst script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' ... | Shell |
#!/bin/sh
# prerm script for ubuntuclub-repository
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package... | Shell |
#!/bin/bash
cat << EOF > /tmp/gconf.xml
<gconfentryfile>
<entrylist base="/desktop/gnome/peripherals/keyboard/kbd">
<entry>
<key>layouts</key>
<schema_key>/schemas/desktop/gnome/peripherals/keyboard/kbd/layouts</schema_key>
<value>
<list type="string">
<value>
<... | Shell |
#!/bin/bash
cat << EOF > /tmp/gconf.xml
<gconfentryfile>
<entrylist base="/desktop/gnome/peripherals/keyboard/kbd">
<entry>
<key>layouts</key>
<schema_key>/schemas/desktop/gnome/peripherals/keyboard/kbd/layouts</schema_key>
<value>
<list type="string">
<value>
<... | Shell |
#!/bin/bash
cat << EOF > /tmp/gconf.xml
<gconfentryfile>
<entrylist base="/desktop/gnome/peripherals/keyboard/kbd">
<entry>
<key>layouts</key>
<schema_key>/schemas/desktop/gnome/peripherals/keyboard/kbd/layouts</schema_key>
<value>
<list type="string">
<value>
<... | Shell |
#!/bin/bash
cat << EOF > /tmp/gconf.xml
<gconfentryfile>
<entrylist base="/desktop/gnome/peripherals/keyboard/kbd">
<entry>
<key>layouts</key>
<schema_key>/schemas/desktop/gnome/peripherals/keyboard/kbd/layouts</schema_key>
<value>
<list type="string">
<value>
<... | Shell |
#!/bin/sh
echo "mount proc and sys"
#mount /proc
#mount /sys
#mount /dev
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get install ubuntu-standard casper locales console-data xresprobe
echo "apt kernel"
apt-get install discover1 laptop-detect os-prober rcconf
apt-get instal... | Shell |
#!/bin/sh
echo "get utils"
apt-get install syslinux squashfs-tools mkisofs sbm
mkdir image image/casper image/isolinux image/install
cp -rf isolinux image/
cp chroot/boot/vmlinuz-2.6.27-7-generic image/casper/vmlinuz
cp chroot/boot/initrd.img-2.6.27-7-generic image/casper/initrd.gz
cp /usr/lib/syslinux/isolinux.bin ima... | Shell |
#!/bin/sh
echo "=== gen Ubuntu Goo Script ==="
echo "1. make chroot"
mkdir chroot
echo "2. gen bootstrap"
debootstrap --arch i386 intrepid chroot http://mirror1.ku.ac.th/ubuntu
echo "3. copy resolv"
cp /etc/resolv.conf chroot/etc/resolv.conf
echo "4. copy apt sources.list"
cp sources.list chroot/etc/apt/sources.list
ec... | Shell |
#!/bin/sh
mount --bind /proc chroot/proc
mount --bind /dev chroot/dev
mount --bind /sys chroot/sys
| Shell |
#!/bin/bash
banfile="package.list"
for ip in `cat $banfile | awk '{print $1}'`; do
xpack=$xpack" "$ip
done
#echo "mount proc and sys"
#mount /proc
#mount /sys
export HOME=/
export LC_ALL=C
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get -y install ubuntu-standard casper... | Shell |
#!/bin/sh
echo "mount proc and sys"
#mount /proc
#mount /sys
#mount /dev
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get install ubuntu-standard casper locales console-data xresprobe
echo "apt kernel"
apt-get install discover1 laptop-detect os-prober rcconf
apt-get instal... | Shell |
#!/bin/sh
echo "mount proc and sys"
mount /proc
mount /sys
mount /dev
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get install ubuntu-standard casper locales console-data xserver-xorg-core xfonts-thai xfonts-base xfonts-scalable xfonts-75dpi xfonts-100dpi ttf-dejavu gnome-... | Shell |
#!/bin/sh
rm -rf .cache/*
rm -rf dists/intrepid/Release*
rm -rf dists/intrepid/main/binary-i386/*
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-release.conf release dists/intrepid > dists/intrepid/Release
ls -R pool/ | grep deb > packagelist.txt
| Shell |
#!/bin/sh
umount -l -f chroot/proc
umount -l -f chroot/dev
umount -l -f chroot/sys
| Shell |
#!/bin/sh
umount -l -f chroot/proc
umount -l -f chroot/dev
umount -l -f chroot/sys
| Shell |
#!/bin/sh
rm -rf .cache/*
rm -rf dists/intrepid/Release*
rm -rf dists/intrepid/main/binary-i386/*
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-release.conf release dists/intrepid > dists/intrepid/Release
ls -R pool/ | grep deb > packagelist.txt
| Shell |
#!/bin/bash
banfile="package.list"
for ip in `cat $banfile | awk '{print $1}'`; do
xpack=$xpack" "$ip
done
#echo "mount proc and sys"
#mount /proc
#mount /sys
export HOME=/
export LC_ALL=C
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get -y install ubuntu-standard casper... | Shell |
#!/bin/sh
echo "get utils"
apt-get install syslinux squashfs-tools mkisofs sbm
mkdir image image/casper image/isolinux image/install
cp -rf isolinux image/
cp chroot/boot/vmlinuz-2.6.27-7-generic image/casper/vmlinuz
cp chroot/boot/initrd.img-2.6.27-7-generic image/casper/initrd.gz
cp /usr/lib/syslinux/isolinux.bin ima... | Shell |
#!/bin/sh
echo "mount proc and sys"
mount /proc
mount /sys
mount /dev
echo "update package"
apt-get update
locale-gen en_US.UTF-8
echo "apt standard package"
apt-get install ubuntu-standard casper locales console-data xserver-xorg-core xfonts-thai xfonts-base xfonts-scalable xfonts-75dpi xfonts-100dpi ttf-dejavu gnome-... | Shell |
#!/bin/sh
echo "=== gen Ubuntu Goo Script ==="
echo "1. make chroot"
mkdir chroot
echo "2. gen bootstrap"
debootstrap --arch i386 intrepid chroot http://mirror1.ku.ac.th/ubuntu
echo "3. copy resolv"
cp /etc/resolv.conf chroot/etc/resolv.conf
echo "4. copy apt sources.list"
cp sources.list chroot/etc/apt/sources.list
ec... | Shell |
#!/bin/sh
mount --bind /proc chroot/proc
mount --bind /dev chroot/dev
mount --bind /sys chroot/sys
| 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
#python src/robot/rebot.py $* &> /dev/null &
python src/robot/run.py $* &> /dev/null &
#/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024m -Xss1024k -classpath /home/jth/opt/jython2.5.1/jython.jar: -Dpython.home=/home/jth/opt/jython2.5.1 -Dpython.executable=/home/jth/opt/jython2.5.1/jython org.python.util.jyt... | Shell |
#!/bin/bash
pybot --outputdir results --exclude parallel atest/ | Shell |
#!/bin/bash
dirname=robotframework-c-example
zipname=$dirname-$(date +%Y%m%d).zip
files="README.txt login.c LoginLibrary.py LoginTests.tsv Makefile"
rm -rf $dirname $zipname
mkdir $dirname
echo Copying...
for file in $files; do
cp -v $file $dirname
done
echo Zipping...
zip -r $zipname $dirname
rm -rf $dirname
ech... | Shell |
#!/bin/sh
if [ -z "$JYTHON_HOME" ]; then
echo "Set JYTHON_HOME to compile."
exit 1
fi
DIR="$( cd "$( dirname "$0" )" && pwd )"
OPTS="-cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 $* -Xlint:unchecked"
javac $OPTS $DIR/testlibs/*.java
javac $OPTS $DIR/listeners/*.java
| Shell |
#!/bin/bash
testdir=`dirname $0`
pybot --loglevel DEBUG --log none --report none --outputdir $testdir $testdir/example.txt
python $testdir/../statuschecker.py $testdir/output.xml
rebot $testdir/output.xml
echo "$? tests failed, 5 should have failed."
echo "Check that tests starting with 'FAILURE:' have failed and other... | Shell |
#!/bin/sh
testdir=`dirname $0`
rm -f $testdir/output.*
export PYTHONPATH=$testdir/../../../src
python -m robot.run -l none -r none -d $testdir $testdir/test.txt
python $testdir/../times2csv.py $testdir/output.xml
echo "------------------------------ results ------------------------------"
cat $testdir/output.csv
echo "... | Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo "This is shell script CGI."
| Shell |
#!/bin/sh
echo "echoing bad headers: server must report status 500"
exec 1>&2
echo shit!!!
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| Shell |
if [ ! -d docs ];then
echo generated document does not exist, run ./generate_docs.sh first !
exit 1
fi
echo getting latest website template
svn export http://akomantoso.googlecode.com/svn/examples_website/trunk website
mkdir -p website/doc_html
mkdir -p website/img
echo copying oxygen generated docs
cp -R docs/*.... | Shell |
# path to OXYGEN 13.1
#OXYGEN=/home/ashok/apps/oxygen-13
if [ -z "$OXYGEN" ]; then
echo "You need to set the OXYGEN to the path to your Oxygen 13.1 installation ! "
echo "Exiting : Requires Oxygen 13.1 !"
exit 1
fi
OXYDOCS_FOLDER=oxydocs
DOCS_FOLDER=docs
echo "creating required folders "
mkdir -p $DOCS_FOLDER
mkd... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.