code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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
# 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-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
# 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
# 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-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
# 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
# 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-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-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-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
# 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
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/bash
#
# Starts a basic web server on the port specified.
#
# ./serve.sh 3000 -> http://localhost:3000
#
# Copyright 2012 Eric Bidelman <ebidel@gmail.com>
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
if [ $(uname -s) == "Darwin" ]
then
open=open
else
open=xdg-open
fi
$open http://localhost:$port/templat... | Shell |
cd /volume1/@appstore/youless
nohup /opt/bin/python2.7 code2.py 12345 &
| Shell |
#!/system/bin/sh
# Adapted from tether script from andTether application
# Original Header:
# ----------------
# @Version=6
# Copyright 2008 parrothd
# Copyright 2009 zodiac (Markus Gutschke)
adhoclog="$2"/var/adhoc.log
mac_whitelist="$2"/conf/whitelist_mac.conf
dnsmasq_pidfile="$2"/var/dnsmasq.pid
dnsmasq_leasefile="... | Shell |
#!/bin/sh
export http_proxy="http://127.0.0.1:20000"
../appcfg.py update ./
| Shell |
#!/bin/sh
export http_proxy="http://127.0.0.1:20000"
../appcfg.py update ./
| Shell |
#!/bin/sh
export http_proxy="http://127.0.0.1:20000"
../appcfg.py update ./
| Shell |
#!/bin/sh
export http_proxy="http://127.0.0.1:20000"
../appcfg.py update ./
| Shell |
#!/bin/bash
cp target/yourl.war.exploded/WEB-INF/db4o/server.db server.db
| Shell |
#!/bin/bash
cp server.db target/yourl.war.exploded/WEB-INF/db4o/server.db
| Shell |
#!/bin/bash
cp target/yourl.war.exploded/WEB-INF/db4o/server.db server.db
| Shell |
#!/bin/bash
cp server.db target/yourl.war.exploded/WEB-INF/db4o/server.db
| Shell |
#!/bin/sh -x
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Re... | Shell |
#!/bin/sh
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | Shell |
#!/bin/bash
function check_install {
if [ -z "`which "$1" 2>/dev/null`" ]
then
executable=$1
shift
while [ -n "$1" ]
do
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$1"
print_info "$1 installed for $executable"
shift
done
... | Shell |
wget http://yoko-vps.googlecode.com/svn/setup.sh
wget http://yoko-vps.googlecode.com/svn/setup-awal.sh
chmod 777 setup-awal.sh
chmod 777 setup.sh
./setup-awal.sh
| Shell |
./setup.sh system
./setup.sh exim4
./setup.sh nginx
./setup.sh mysql
./setup.sh php
cd /etc/nginx/sites-enabled/
rm default
wget http://yoko-vps.googlecode.com/svn/default
cd
| Shell |
#!/bin/bash
function check_install {
if [ -z "`which "$1" 2>/dev/null`" ]
then
executable=$1
shift
while [ -n "$1" ]
do
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$1"
print_info "$1 installed for $executable"
shift
done
... | Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/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 cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | 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
# 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
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | 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/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/sh
javap -private -s -classpath bin com.codeminders.hidapi.HIDDevice
javap -private -s -classpath bin com.codeminders.hidapi.HIDManager
javap -private -s -classpath bin com.codeminders.hidapi.HIDDeviceInfo
| Shell |
#!/bin/sh
javah -d jni-stubs -classpath bin com.codeminders.hidapi.HIDManager
javah -d jni-stubs -classpath bin com.codeminders.hidapi.HIDDevice
javah -d jni-stubs -classpath bin com.codeminders.hidapi.HIDDeviceInfo
| Shell |
#!/bin/sh
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | Shell |
#!/bin/sh -x
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Re... | 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
#
# Init file for searchd
#
# chkconfig: 2345 55 25
#
# description: searchd
#
# USE "chkconfig --add searchd" to configure Sphinx searchd service
#
# by Vladimir Fedorkov Mar 1, 2006, info@astellar.com
# public domain
SUDO_USER=searchd
BASE_PATH=/release/search
PID_FILE=$BASE_PATH/search... | Shell |
#!/bin/bash
# cache directory cleanup script example
#
# removes all old cached files with mtime older than index mtime
#
# there MUST be your ACTUAL index names and FULL PATHS to indexfiles
indexnames=( test1 test2 )
indexfiles=( /usr/local/sphinx/test1.spd /benchmarks/work/test/test2.spd )
cachedir=/tmp/c... | Shell |
#!/bin/bash
# cache directory cleanup script example
#
# removes all old cached files with mtime older than index mtime
#
# there MUST be your ACTUAL index names and FULL PATHS to indexfiles
indexnames=( test1 test2 )
indexfiles=( /usr/local/sphinx/test1.spd /benchmarks/work/test/test2.spd )
cachedir=/tmp/c... | Shell |
#!/bin/bash
#
# Init file for searchd
#
# chkconfig: 2345 55 25
#
# description: searchd
#
# USE "chkconfig --add searchd" to configure Sphinx searchd service
#
# by Vladimir Fedorkov Mar 1, 2006, info@astellar.com
# public domain
SUDO_USER=searchd
BASE_PATH=/release/search
PID_FILE=$BASE_PATH/search... | Shell |
#!/bin/sh
FAILLOG="/tmp/faillog1"
DIFF='smoke_diff.txt'
RES='smoke_test.txt'
REF='smoke_ref.txt'
LINE='-----------------------------\n'
die()
{
cat $FAILLOG
echo $LINE
[ ! "z$2" = "z" ] && { eval $2; echo "$LINE"; }
echo "C API:$1"
[ -e "$FAILLOG" ] && rm $FAILLOG
exit 1
}
cmd ()
{
... | Shell |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This pro... | Shell |
#!/bin/sh
eval `grep '^EXTRA_VERSION=' configure.in`
case "$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=1
fi
s... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2004-09-10.20
# 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 hereby ... | Shell |
#!/bin/sh
FAILLOG="/tmp/faillog1"
DIFF='smoke_diff.txt'
RES='smoke_test.txt'
REF='smoke_ref.txt'
LINE='-----------------------------\n'
die()
{
cat $FAILLOG
echo $LINE
[ ! "z$2" = "z" ] && { eval $2; echo "$LINE"; }
echo "C API:$1"
[ -e "$FAILLOG" ] && rm $FAILLOG
exit 1
}
cmd ()
{
... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2004-09-07.08
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it ... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
timestamp='2003-06-18'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that S... | Shell |
#!/bin/sh
eval `grep '^EXTRA_VERSION=' configure.in`
case "$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=1
fi
s... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
timestamp='2003-06-17'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public L... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2004-09-10.20
# 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 hereby ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2004-09-07.08
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it ... | Shell |
#!/bin/sh
#1.动态获取最新官方库数据命令(app/util/official.php)
#2.索引重做命令(app/util/rebuild.php)
#3.生成频道(app/util/importRadio.php)
#4.生成js(app/util/genjs.php)
php -c /opt/youku-fm-read-only/php.ini /opt/youku-fm-read-only/app/util/official.php
#完全重建
#rm /opt/youku-fm-read-only/app/util/sphinx.xmlpipe.log
#/usr/local/sphinx/bin/ind... | Shell |
#!/bin/sh
#1.动态获取最新官方库数据命令(app/util/official.php)
#2.索引重做命令(app/util/rebuild.php)
#3.生成频道(app/util/importRadio.php)
#4.生成js(app/util/genjs.php)
php -c /opt/youku-fm-read-only/php.ini /opt/youku-fm-read-only/app/util/official.php
#完全重建
#rm /opt/youku-fm-read-only/app/util/sphinx.xmlpipe.log
#/usr/local/sphinx/bin/ind... | Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# PLATFORM_LDFLAGS Linker flags
# PLATFORM_SHARED_EXT Extension for shared libraries
# PLATFORM_S... | Shell |
#!/bin/sh
cd SinglePassTests
./createTestData.sh
cd .. | Shell |
#!/bin/sh
echo "WARNING: this script will fail in unpleasant ways on non-Unicode filesystems."
echo "Creating test files with spaces and long names..."
echo "This file has space characters in its name." > "file with spaces in the name.txt"
echo "This file has an exceptionally long name (longer than 128 characters). It... | Shell |
#!/bin/sh
rm -rf readable*
chmod u+rwx unreadable*
rm -rf unreadable*
| Shell |
#!/bin/sh
echo "Creating permissioned and non-permissioned files..."
echo "The quick brown fox jumps over the lazy dogs." > readable.txt
mkdir -p readableDirectory
echo "The quick brown fox jumps over the lazy dogs." > unreadable.txt
mkdir -p unreadableDirectory
chmod ugo-rwx unreadable*
| Shell |
#!/bin/bash
# Validation
if [ -z $1 ]; then
echo "Please specify the number of files to create as the first command line parameter." >&2
exit 1
fi
if [ -z $2 ]; then
echo "Please specify the target directory in which to write the files as the second command line parameter." >&2
exit 1
fi
if [ $1 -ge 0 ]; the... | Shell |
#!/bin/sh
echo "WARNING: this script will create 111,100 small files on your drive, and"
echo " it will take quite a while to do so."
read -p "Press any key to continue or Ctrl+C to quit..."
echo "Creating 100 files..."
mkdir -p 100files
./createFiles.sh 100 ./100files/
echo "Creating 1000 files..."
mkdir -p... | Shell |
#!/bin/sh
echo "WARNING: this script will create around 4.2GB of random data on your drive, and"
echo " it will take quite a while to do so."
read -p "Press any key to continue or Ctrl+C to quit..."
echo "Creating small (KB) files..."
touch zeroByte.bin
dd if=/dev/urandom of=oneKilobyte.bin bs=1024 count=1
dd... | Shell |
#!/bin/sh
mkdir -p sub1/1.1
mkdir -p sub1/1.2
mkdir -p sub1/1.3
mkdir -p sub1/1.4
mkdir -p sub1/1.5
mkdir -p sub1/1.6
mkdir -p sub1/1.7
mkdir -p sub1/1.8
mkdir -p sub1/1.9
mkdir -p sub1/1.10
mkdir -p sub2/sub2.1/sub2.1.1/sub2.1.1.1/sub2.1.1.1.1/sub2.1.1.1.1.1/sub2.1.1.1.1.1.1/sub2.1.1.1.1.1.1.1
mkdir -p sub3
mkdir -p d... | Shell |
#!/bin/sh
cd DirectoryStructureTests
./createTestData.sh
cd ../FileNameTests
./createTestData.sh
cd ../PermissionTests
./createTestData.sh
cd ../FileVolumeTests
./createTestData.sh
cd ../FileSizeTests
./createTestData.sh
cd .. | Shell |
#!/bin/bash
set -e
./runant war
third_party/appengine-sdk/sdk/bin/appcfg.sh update build/war
| Shell |
#!/bin/bash
# Sample shell script for invoking ant.
# Copy to a new file and fill in the values below.
# To keep the secret secret, don't share your runant script.
ant -Dapp-id='your-app-id' \
-Dapp-version='1' \
-Doauth-client-id='your-oauth-client-id' \
-Doauth-client-secret='your-oauth-client-secret' \... | Shell |
#!/bin/bash
# Copyright (C) 2011 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 to... | Shell |
#!/bin/sh
/usr/bin/thin -p 8100 -s 5 -e production start
| Shell |
#!/bin/sh
/usr/bin/thin -p 8100 -s 5 -e production stop
| Shell |
#!/bin/sh
/usr/bin/thin -p 8100 -s 5 -e production start
| Shell |
#!/bin/sh
/usr/bin/thin -p 8100 -s 5 -e production stop
| Shell |
#!/bin/bash
baseurl=http://h2096617.stratoserver.net/brouter/segments2
set -e
cp -a db/brouter/E15_N45.rd5{,.bak}
wget -q -O db/brouter/E15_N45.rd5.new $baseurl/E15_N45.rd5
mv db/brouter/E15_N45.rd5{.new,}
cp -a db/brouter/E20_N45.rd5{,.bak}
wget -q -O db/brouter/E20_N45.rd5.new $baseurl/E20_N45.rd5
mv db/brouter/E20... | Shell |
#!/bin/bash
baseurl=http://h2096617.stratoserver.net/brouter/segments2
set -e
cp -a db/brouter/E15_N45.rd5{,.bak}
wget -q -O db/brouter/E15_N45.rd5.new $baseurl/E15_N45.rd5
mv db/brouter/E15_N45.rd5{.new,}
cp -a db/brouter/E20_N45.rd5{,.bak}
wget -q -O db/brouter/E20_N45.rd5.new $baseurl/E20_N45.rd5
mv db/brouter/E20... | Shell |
#!/bin/sh
diff -ub safety.brf $1 | less
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.