code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
# Don't forget chmod +x codereviewMac.sh to mac this script executable
if [ -z $1 ]; then
echo "Usage:"
echo " codereview youremail@abc.com 22 24 \"Patchset comment\""
echo " Creates a new patch set for code review by comparing revision 22"
echo " with revision 24. The patchset is sent on... | Shell |
#!/bin/sh
cd dist
zip -rv9 GPSLogger-`date +%y%m%d-%H%M`.zip *.jar *.jad
| Shell |
#!/bin/sh
if [ -h $0 ]; then # Is this a link?
scriptName=`readlink $0`
cd `dirname $scriptName`
else # this is a script file itself...
cd `dirname $0`
fi
echo "Packing the complete GPSLogger source archive:"
date >pack.log
#zip -rv9 serge-works-GPSLogger-`date +%y%m%d-%H%M`.zip *
#tar cvfj serge-works... | Shell |
#!/bin/sh
cd ./build/compiled
~/wtk/bin/emulator -cp . GPSLogger
| Shell |
#!/bin/bash
debuild -us -uc -S
sudo pbuilder-dist maverick build ../*.dsc
mkdir -p ../packages/maverick
cp /home/ehlertjd/pbuilder/maverick_result/dwarftherapist_0.6.?_i386.deb ../packages/maverick
| Shell |
#!/bin/sh
DT_VERSION=`cat inc/defines.h | awk 'BEGIN {i = 1} /#define DT_VERSION/ {ver[i++] = $3} END {printf("%d.%d.%d\n", ver[1], ver[2], ver[3])}'`
dch --distribution UNRELEASED --newversion $DT_VERSION "Package for $DT_VERSION. See CHANGELOG.txt"
SRC_DIR=../dwarftherapist-$DT_VERSION
TAR_FILE=../dwarftherapist-$D... | Shell |
#!/bin/bash
debuild -us -uc -S
sudo pbuilder build ../*.dsc
mkdir -p ../packages/lucid
cp /var/cache/pbuilder/result/dwarftherapist_0.6.?_i386.deb ../packages/lucid
| Shell |
#!/bin/sh
rm -rf ../../dist
mkdir -p ../../dist
hdiutil convert template.dmg -format UDSP -o ../../dist/DwarfTherapist
hdiutil resize -size 80m ../../dist/DwarfTherapist.sparseimage
hdiutil mount ../../dist/DwarfTherapist.sparseimage
# Prepare contents
cp -R ../../therapist-build/bin/release/DwarfTherapist.app/Content... | Shell |
#!/bin/bash
#Build source descriptor
debuild -us -uc -S
#Other dists in pbuilder
for dist in "lucid" "maverick" "sid" "lenny"
do
#32-bit
sudo rm -rf ~/pbuilder/${dist}-i386_result/*
sudo pbuilder-dist $dist i386 build ../*.dsc
mkdir -p ../packages/dists
mkdir -p ../packages/dists/$dist
mkdir -p ../packages/di... | 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 (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | 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
cd "`dirname \"$0\"`"
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > addons.xml
echo "<addons>" >> addons.xml
{
read LINE;
while read LINE; do
echo "$LINE" >> addons.xml
done
} < plugin.video.ex.ua.viewer/addon.xml
echo "</addons>" >> addons.xml
md5sum addons.xml | cut -f1 -d' ' > addons.xml.checksu... | Shell |
#!/bin/bash
#
# Copyright 2007 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 |
export PYTHONPATH=`pwd`:${PYTHONPATH}
| Shell |
#/bin/bash
#
# Run all the tests.
#
# The python interpreter to use is passed in on the command line.
$1 runtests.py tests/test_discovery.py
$1 runtests.py tests/test_errors.py
$1 runtests.py tests/test_http.py
$1 runtests.py tests/test_json_model.py
$1 runtests.py tests/test_mocks.py
$1 runtests.py tests/test_model.p... | Shell |
#!/bin/bash
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
-keyout privatekey.pem -out publickey.pem \
-subj "/CN=unit-tests"
openssl pkcs12 -export -out privatekey.p12 \
-inkey privatekey.pem -in publickey.pem \
-name "key" -passout pass:notasecret
| Shell |
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
# Author: jcgregorio@google.com (Joe Gregorio)
#
# Uploads a training data set to Google Storage to be used by this sample
# application.
#
# Usage:
# setup.sh file_name bucket/object
#
# Requirements:
# gsutil - a client application for interacting with... | Shell |
#!/bin/sh -e
./test_bitstream
./test_estimatebit
./test_qrencode
./test_qrinput
./test_qrspec
./test_rs
./test_split
./test_mask
./test_mqrspec
./test_mmask
./test_monkey
| Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
# libtool (GNU libtool) 2.4.2
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; no... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2007 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#!/bin/sh
set -e
if [ `uname -s` = Darwin ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
if [ -d /usr/local/share/aclocal ]; then
ACLOCAL_DIR=/usr/local/share/aclocal
elif [ -d /opt/local/share/aclocal ]; then
ACLOCAL_DIR=/opt/local/share/aclocal
elif [ -d /usr/share/aclocal ]; then
... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#! /bin/sh
# 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 |
#!/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 |
#!/bin/sh
android update project --name Pano --path .
| Shell |
#!/bin/sh
android update project --name Pano --path .
| Shell |
#!/bin/bash
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
current_directory=`dirname "$abspath"`
"$current_directory/EasyInstall_GCC.sh" "-DBTK_WRAP_MATLAB:BOOL=1 -DBTK_WRAP_MATLAB_REDISTRIBUTABLE_MEX_FILES:BOOL=1" | Shell |
#!/bin/bash
# FUNCTION DECLARATION
function missing_cmake()
{
echo ""
echo "Impossible to find the file bin\cmake"
echo ""
echo "Do you have CMake installed?"
wait_user
}
function error_config()
{
echo ""
echo "An error occurred during the configuration of the project."
echo "Report this to the project... | Shell |
#!/bin/bash
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
current_directory=`dirname "$abspath"`
"$current_directory/EasyInstall_GCC.sh" "-DBTK_WRAP_MATLAB:BOOL=1 -DBTK_WRAP_MATLAB_REDISTRIBUTABLE_MEX_FILES:BOOL=1" "-DCMAKE_INSTALL_PREFIX:CHAR=/Applications/BTK" | Shell |
HARDCODED_PYTHON_LIB_PATH="/usr/local/lib/python@PYTHON_VERSION_MAJOR@.@PYTHON_VERSION_MINOR@"
HARDCODED_PYTHON_SITE_PATH="$HARDCODED_PYTHON_LIB_PATH/dist-packages"
LOCAL_PYTHON_SITE_PATH=`python -c "import site; print site.getsitepackages()[0]"`
if [ "$HARDCODED_PYTHON_SITE_PATH" != "$LOCAL_PYTHON_SITE_PATH" ]; then
... | Shell |
HARDCODED_PYTHON_LIB_PATH="/usr/local/lib/python@PYTHON_VERSION_MAJOR@.@PYTHON_VERSION_MINOR@"
HARDCODED_PYTHON_SITE_PATH="$HARDCODED_PYTHON_LIB_PATH/dist-packages"
HARDCODED_PYTHON_BTK_PATH="$HARDCODED_PYTHON_SITE_PATH/btk"
if [ -d "$HARDCODED_PYTHON_BTK_PATH" ]; then
find "$HARDCODED_PYTHON_BTK_PATH" -maxdepth 0 -e... | Shell |
HARDCODED_PYTHON_LIB_PATH="/usr/local/lib/python@PYTHON_VERSION_MAJOR@.@PYTHON_VERSION_MINOR@"
HARDCODED_PYTHON_SITE_PATH="$HARDCODED_PYTHON_LIB_PATH/dist-packages"
LOCAL_PYTHON_SITE_PATH=`python -c "import site; print site.getsitepackages()[0]"`
if [ "$HARDCODED_PYTHON_SITE_PATH" != "$LOCAL_PYTHON_SITE_PATH" ]; then
... | Shell |
#! /bin/bash
# Shell options: -o = on, +o = off
set -o errexit # exit on first error
set -o nounset # report unset variables
set +o xtrace # show commands
PACKAGE="tufte-latex"
CLS_FILES="tufte-handout.cls tufte-book.cls"
DEF_FILES="tufte-common.def"
BST_FILES="tufte.bst"
SOURCE_FILES="sample-handout.pdf sample-ha... | 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
# 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 |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: psimakov@google.com (Pavel Simakov)
#
# This script starts local developer Google AppEngine server and initializes it
# with the default data set.
#
# Run this script from the coursebuilder/ folder:
# sh ./scripts/start.sh
#
usage () { echo "Options: -... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Wrapper script for tools/etl/etl.py that sets up the environment correctly.
#
# Run this script as follows:
# sh ./scripts/etl.sh <arguments>
#
# ETL's arguments are involved; pass --help for details. You will need to
# provide credentials when usin... | Shell |
#! /bin/sh
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: psimakov@google.com (Pavel Simakov)
#
# This script starts local developer Google AppEngine server for integration
# tests and initializes it with a default data set.
#
# Run this script from the coursebuilder/ folder:
# sh ./scripts/start_i... | Shell |
#!/bin/bash
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: sll@google.com (Sean Lip)
# Run this script from the Course Builder folder as follows:
# sh ./scripts/test.sh --test_class <dotted test name>
# E.g.,
# Run all tests in a module:
# sh ./scripts/test.sh tests.unit.common_safe_dom
#
# ... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Usage:
#
# Run this script from the Course Builder folder. It can be run with the
# following arguments:
#
# Deploy Course Builder to the App Engine app named in app.yaml:
# sh ./scripts/deploy.sh
#
# Deploy Course Builder to the given App Engine ap... | Shell |
# Copyright 2013 Google Inc. All Rights Reserved.
#
#
# This script sets up all build/test dependencies including Google App Engine,
# WebTest, Selenium, Chromedriver, etc. All other scripts will include this
# script to setup these dependencies.
#
# Force shell to fail on any errors.
set -e
shopt -s nullglob
# Se... | Shell |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Set common config variables for developer runtime environment scripts.
# NOTE: This file is also evaluated by Python scripts to get configurations
# from environment variables. Do not add any non-idempotent side-effects
# to this script.
export SOURCE_DIR="$( cd "... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Wrapper script for modules.py that sets up paths correctly. Usage from your
# coursebuilder/ folder:
#
# sh scripts/modules.sh [args]
set -e
. "$(dirname "$0")/common.sh"
python "$COURSEBUILDER_HOME/scripts/modules.py" "$@"
| 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 |
#1/bin/bash
javadoc -author -linkoffline http://d.android.com/reference file:/usr/local/android-sdk-linux_86/docs/reference -classpath /usr/local/android-sdk-linux_86/platforms/android-4/android.jar -d javadocs/ -sourcepath `find . -name *.java`
| Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6b
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# ... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2007-03-29.01
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
# Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | Shell |
#!/bin/bash -e
# If you want to track the status of the project in Subversion, run this script
# instead of relying on "svn update". The script makes sure you end up with a
# working copy of the source tree that is customized to the version of GNU
# "autotools" that are installed on your machine.
#
# Alternatively, yo... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-12-25.00
# 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/bash -e
PORT=4201
PIDFILE=stresstest.pid
rm -f "${PIDFILE}"
trap '[ -r "${PIDFILE}" ] && kill "$(cat "${PIDFILE}")"; rm -f "${PIDFILE}"' \
EXIT INT TERM QUIT HUP
./shellinaboxd -p "${PORT}" -s "/:$(id -u):$(id -g):${PWD}:/bin/bash -c \
'while read i; do [ -z "${i}" ] && break; echo ... | Shell |
#!/bin/bash -e
tmp=/tmp/make-chained-cert.$$
trap 'echo; tput bel; echo FAILURE; rm -rf "${tmp}"; exit 1' EXIT INT TERM QUIT
mkdir -p "${tmp}/demoCA/newcerts"
printf '%08x' $$ >"${tmp}/demoCA/serial"
touch "${tmp}/demoCA/index.txt"
cd "${tmp}"
openssl req -nodes -new -x509 -keyout "${tmp}/ca-key.pem" ... | Shell |
#!/bin/bash -e
# The script ensures that all commands succeed unless an error occurred. If it
# does though, the shell terminates the script and our exit handler runs.
trap 'tput bel || :; echo Failed! >&2' EXIT
# Ask the user a yes/no question. This function does not require the user to
# press ENTER after making a ... | Shell |
#!/bin/bash
# This is a simple demo CGI script that illustrates how to use ShellInABox in
# CGI mode.
case "${REQUEST_METHOD}" in
POST)
# Retrieve CGI parameter, then start shellinabox with this command
read parms
parms="$(printf "$(echo "${parms}"|sed -e 's/%\(..\)/\\x\1/g;s/%/%%/g')")"
parms="... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
g++ -lopencv_highgui -lopencv_core -lopencv_calib3d opecv_perspective_corrction.cpp -o opecv_perspective_corrction
./opecv_perspective_corrction *800600.jpg
| Shell |
#!/bin/bash
g++ -lopencv_highgui -lopencv_core -lopencv_calib3d opecv_perspective_corrction.cpp -o opecv_perspective_corrction
./opecv_perspective_corrction *800600.jpg
| Shell |
#!/bin/bash
LIMIT=22 # Upper limit
a=0
while [ $a -le "$LIMIT" ]
do
a=$(($a+1))
echo $a
python2.7 ./fete_simon.py
sleep 1h
done
| Shell |
#!/bin/bash
LIMIT=22 # Upper limit
a=0
while [ $a -le "$LIMIT" ]
do
a=$(($a+1))
echo $a
python2.7 ./fete_simon.py
sleep 1h
done
| Shell |
#!/bin/bash
g++ -lopencv_highgui -lopencv_core opencv_capture.cpp -o opencv_capture
./opencv_capture
| Shell |
#!/bin/bash
g++ -lopencv_highgui -lopencv_core opencv_capture.cpp -o opencv_capture
./opencv_capture
| Shell |
#!/bin/sh
if [ "$1" = "user" ]; then
if [ "$2" = "--ssl" ]; then
curl -v -k -X POST -H "Content-Type: application/json" -H "Accept: application/json" \
--sslv3 --data-binary @test_json.txt https://localhost:8443/igoat/user
else
curl -v -X POST -H "Content-Type: application/json" -H "Accept: applicati... | Shell |
#! /bin/sh
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status () 3.7
# Libtool was configured on host gennosuke.local:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite and package everything up
# so that it is ready to move to the SQLite website.
#
# Set srcdir to the name of the directory that contains the publish.sh
# script.
#
srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
# Get the makefile.
#
cp $srcdir/Makefile.linux-gc... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite into a shared library on Linux.
#
# Two separate shared libraries are generated. "sqlite3.so" is the core
# library. "tclsqlite3.so" contains the TCL bindings and is the
# library that is loaded into TCL in order to run SQLite.
#
CFLAGS=-O2 -Wall
make fts2amal.c
ech... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# w... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite extensions into DLLs.
#
make fts2amal.c
PATH=$PATH:/opt/mingw/bin
OPTS='-DTHREADSAFE=1 -DBUILD_sqlite=1 -DSQLITE_OS_WIN=1'
CC="i386-mingw32msvc-gcc -O2 $OPTS -Itsrc"
NM="i386-mingw32msvc-nm"
CMD="$CC -c fts2amal.c"
echo $CMD
$CMD
echo 'EXPORTS' >fts2.def
echo 'sqlite3... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite and package everything up
# so that it is ready to move to the SQLite website.
#
# Set srcdir to the name of the directory that contains the publish.sh
# script.
#
srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
# Get the makefile.
#
cp $srcdir/Makefile.linux-gc... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite into a shared library on Linux.
#
# Two separate shared libraries are generated. "sqlite3.so" is the core
# library. "tclsqlite3.so" contains the TCL bindings and is the
# library that is loaded into TCL in order to run SQLite.
#
make target_source
cd tsrc
rm shell.... | Shell |
#!/bin/sh
#
# This script is used to compile SQLite into a DLL.
#
# Two separate DLLs are generated. "sqlite3.dll" is the core
# library. "tclsqlite3.dll" contains the TCL bindings and is the
# library that is loaded into TCL in order to run SQLite.
#
make sqlite3.c
PATH=$PATH:/opt/mingw/bin
TCLDIR=/home/drh/tcltk/84... | Shell |
#!/bin/sh
#
# OpenSSL config: determine the operating system and run ./Configure
#
# "config -h" for usage information.
#
# this is a merge of minarch and GuessOS from the Apache Group.
# Originally written by Tim Hudson <tjh@cryptsoft.com>.
# Original Apache Group comments on GuessOS
# Simple OS/Pl... | Shell |
#!/bin/sh
#
# print the subject
#
for i in $*
do
n=`openssl x509 -subject -issuer -enddate -noout -in $i`
echo "$i"
echo "$n"
echo "--------"
done
| Shell |
#!/bin/sh
# print out the hash values
#
for i in $*
do
h=`openssl x509 -hash -noout -in $i`
echo "$h.0 => $i"
done
| Shell |
#!/bin/sh -k
#
# Re-order arguments so that -L comes first
#
opts=""
lopts=""
for arg in $* ; do
case $arg in
-L*) lopts="$lopts $arg" ;;
*) opts="$opts $arg" ;;
esac
done
c89 $lopts $opts
| Shell |
#!/bin/sh
#
# print the subject
#
for i in $*
do
n=`openssl x509 -subject -noout -in $i`
echo "$i $n"
done
| Shell |
#!/bin/sh
#
# print out the issuer
#
for i in $*
do
n=`openssl x509 -issuer -noout -in $i`
echo "$i $n"
done
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.