code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
apkBaseName=$1
tempSmaliDir=$2
if [ "$apkBaseName" = "SystemUI" ];then
echo ">>> in custom_app for $apkBaseName"
find $tempSmaliDir -name "*.smali" | xargs sed -i 's/com\/android\/internal\/statusbar\/StatusBarNotification/android\/service\/notification\/StatusBarNotification/g'
find $tempSmaliDir -name "*.... | baidurom/devices-Coolpad8720L | custom_app.sh | Shell | apache-2.0 | 1,917 |
#!/bin/bash
#
#3> <> prov:specializationOf <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/cr-publish-cockpit.sh> .
#
# Copyright 2012 Timothy Lebo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | timrdf/csv2rdf4lod-automation | bin/cr-publish-cockpit.sh | Shell | apache-2.0 | 3,171 |
#!/bin/bash
source $HOME/common.sh
set -eu
mysql_flags="-u root --socket=/tmp/mysql.sock"
admin_flags="--defaults-file=$MYSQL_DEFAULTS_FILE $mysql_flags"
cmd="$1"; shift
if [ "${cmd}" == "mysqld-master" ] && [ ! -d "${MYSQL_DATADIR}/mysql" ]; then
exec /usr/local/bin/run-mysqld-master.sh "$@"
fi
if [ "${cmd}" =... | praiskup/openshift-mysql | 5.5/run-mysqld.sh | Shell | apache-2.0 | 1,827 |
#!/bin/bash
set -e # Fail if any command below fails
function fail() {
echo -e
echo "Failed: $1"
exit 1
}
# Prepare
[ "${GKE_DEPLOY_PROJECT}" ] || fail "Please set GKE_DEPLOY_PROJECT"
[ "${GKE_DEPLOY_CLUSTER}" ] || fail "Please set GKE_DEPLOY_CLUSTER"
[ "${GKE_DEPLOY_LOCATION}" ] || fail "Please set GKE_DEPL... | GoogleCloudPlatform/cloud-builders | gke-deploy/test/test_gcb_prepare_apply.sh | Shell | apache-2.0 | 952 |
#!/bin/bash
set +e
if [ ! -v GOROOT ]; then
if which go > /dev/null; then
GOROOT=`dirname $(dirname $(which go))`
else
echo 'set $GOROOT'
exit 1
fi
fi
if [ ! -v GOPATH ]; then
echo 'set $GOPATH'
exit 1
fi
if [ ! -v GOBGP ]; then
GOBGP=$GOPATH/src/github.com/osrg/gobgp
... | postfix/gobgp | test/scenario_test/run_all_tests.sh | Shell | apache-2.0 | 3,276 |
#!/bin/bash
# Copyright 2015 Bestupefy Inc. All rights reserved.
#
# 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 app... | bestupefy/canister | build/hello-canister/prepare.sh | Shell | apache-2.0 | 612 |
echo "Cloning subword-nmt project for byte-pair encoding"
git clone https://github.com/rsennrich/subword-nmt.git
export PYTHONPATH=$(pwd)/subword-nmt:$PYTHONPATH
echo "Installing pip dependencies for NMT example"
pip install matplotlib tensorboard
echo "Downloading German training corpus"
wget http://data.statmt.or... | mlperf/training_results_v0.6 | Fujitsu/benchmarks/resnet/implementations/mxnet/nvidia-examples/sockeye/preprocess.sh | Shell | apache-2.0 | 2,230 |
#!/bin/bash
mvn clean install docker:build
docker push $DOCKER_REGISTRY/fabric8/fabric8-mq-producer:2.0-SNAPSHOT
mvn fabric8:json fabric8:deploy
| paoloantinori/quickstarts | apps/fabric8-mq-producer/build-push-deploy.sh | Shell | apache-2.0 | 145 |
#!/bin/bash
#
# deploy_epoxy_container.sh creates a GCE VM, which runs a startup script, and
# starts a container image for the epoxy_boot_server. Because the epoxy boot api
# uses a static IP, that IP is unassigned from the current VM and reassigned to
# the new VM, once the new VM appears to be working.
#
# In additi... | m-lab/epoxy | deploy_epoxy_container.sh | Shell | apache-2.0 | 8,888 |
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
#
# 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 ... | kubernetes-csi/csi-driver-nfs | hack/verify-gofmt.sh | Shell | apache-2.0 | 876 |
#!/bin/bash
docker build --tag=sp_platform/spi_control_plane .
| Simplicity-at-Source/oldplatform | cell-layer/control-plane/build.sh | Shell | apache-2.0 | 67 |
pkg_name=zlib
_distname="$pkg_name"
pkg_origin=core
pkg_version=1.2.11
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
Compression library implementing the deflate compression method found in gzip \
and PKZIP.\
"
pkg_upstream_url="http://www.zlib.net/"
pkg_license=('zlib')
pkg_source="ht... | be-plans/be | zlib/plan.sh | Shell | apache-2.0 | 1,865 |
#!/bin/bash
for instance in geir-worker-0 geir-worker-1 geir-worker-2; do
cat > ${instance}-csr.json <<EOF
{
"CN": "system:node:${instance}",
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "NO",
"L": "Oslo",
"O": "system:nodes",
"OU": "Kubernetes The Hard Way",
... | haugom/k8s-test | ca/worker-csr-script.sh | Shell | apache-2.0 | 800 |
#!/bin/sh
#This file is to be run in your original dd-genomics folder, the one you want data from.
while true; do
read -p "Have you checked deepdive and mindbender are correctly installed ?" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) echo 'In your deepdive folder, you can run the following command... | HazyResearch/dd-genomics | script_views.sh | Shell | apache-2.0 | 6,677 |
#!/usr/bin/env 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. T... | aljoscha/flink | tools/ci/test_controller.sh | Shell | apache-2.0 | 4,828 |
#!/bin/bash
#edit the input properties file to the cluster extractor
distFile=$3
clusterFile=$4
numPoints=$5
clusters=$6
newclusters=$7
outdir=$9
#sed -i "s/\(distFile *= *\).*/\1$3/" $1 > $2
awk -F"=" -v newval="=$3" '/distFile/{$2=newval;print;next}1' $1 | awk -F"=" -v newval1="=$4" '/clusterFile/{$2=newval1;print;n... | DSC-SPIDAL/dapwc | bin/dapwcscript/extract_complex.sh | Shell | apache-2.0 | 812 |
#!/usr/bin/env bash
# Copyright 2015, Rackspace US, Inc.
# Copyright 2017, SUSE LINUX GmbH.
#
# 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
... | cloudnull/os-ansible-deployment | scripts/sources-branch-updater-lib.sh | Shell | apache-2.0 | 11,388 |
#
#!/bin/bash
# shell script for humpback platform with 2.3 android WVGA
ASDKEMULATORDIR=~/workshop/bin/android-sdk-linux_x86
ASDKSYSDIR=$ASDKEMULATORDIR/platforms/mitac/cust-image/android-sdk-gingerbread/images
ASDKDATADIR=$ASDKEMULATORDIR/platforms/mitac/cust-image/android-sdk-gingerbread/images
ASDKSKINDIR=$ASDKEM... | span999/build-scripts | emulator/scripts/sdkgingerWVGAzeus.sh | Shell | apache-2.0 | 557 |
#! /bin/bash
SERVICE=pirkka-io
APPNAME=pirkka.io
APPNAME_PACKAGE=${SERVICE}-1.0-SNAPSHOT
TARGET_USER=ubuntu
TARGET_SERVER=ubuntu@pirkka.io
sbt dist
rm -rf /tmp/${APPNAME_PACKAGE}
mv target/universal/${APPNAME_PACKAGE}.zip /tmp/
unzip /tmp/${APPNAME_PACKAGE}.zip -d /tmp/
rsync -avz --delete /tmp/${APPNAME_PACKAGE} ${T... | pijokela/pirkka.io | install.sh | Shell | apache-2.0 | 814 |
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file ... | alexeblee/s2n | codebuild/bin/s2n_install_test_dependencies.sh | Shell | apache-2.0 | 1,351 |
#!/bin/sh
# java="java -client -Xmx1024m -Xms1024m"
# java="java"
java="java -verbose:gc -Xmx1g -Xms1g -XXaggressive"
warmup=2000
duration=10000
for r in 1 2 3; do
for b in LinkedList SkipList; do
for i in 256 4096 16384; do
for w in 0 20 50; do
for t in 1 2 4 8 12 16; do
# No RO hint
for c in lsa.Context lsa64.Con... | DeuceSTM/DeuceSTM | scripts/intset.sh | Shell | apache-2.0 | 1,889 |
#!/bin/bash
# -h (use IP addresses instead of hostnames in IORs)
# -d (enable Orb debug logs)
# -l <debug level> (Max is 10)
# -f <log filename> (Default is stdout)
# -e <Endpoint> (Use the endpoint URL for which interfaces to listen for connections on)
# -i <Initial Reference> (URL for initial resolution of the Name ... | shorton3/dashingplatforms | bin/CliClient.sh | Shell | apache-2.0 | 586 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | lpniuniu/drinkmark | Pods/Target Support Files/Pods-drinkmark/Pods-drinkmark-frameworks.sh | Shell | apache-2.0 | 4,292 |
echo "deleting archived models"
#rm -rf model/sq_wavenet_new_fast_reg_small
echo "deleted, now running model"
MODEL_DIR=model/sq_wavenet_new_fast_reg_small_1024
#for i in 1 2 3 4 5
#do
python train.py --train_data_pattern='features2/train*.tfrecord' --frame_features=True --model=finalModel --feature_names="rgb" --fe... | slai11/youtube-8m | run.sh | Shell | apache-2.0 | 931 |
#!/bin/bash
. ${CATTLE_HOME:-/var/lib/cattle}/common/scripts.sh
BRIDGE=docker0
if docker-1.9 version >/dev/null 2>&1; then
BRIDGE=$(docker-1.9 network inspect bridge | jq -r '.[0].Options["com.docker.network.bridge.name"]')
if ! ip link show dev $BRIDGE >/dev/null ; then
BRIDGE=docker0
fi
BRID... | jimengliu/cattle | resources/content/config-content/host-iptables/apply.sh | Shell | apache-2.0 | 1,714 |
#!/bin/bash
# Generate test/coverage/BUILD, which contains a single envoy_cc_test target
# that contains all C++ based tests suitable for performing the coverage run. A
# single binary (as opposed to multiple test targets) is require to work around
# the crazy in https://github.com/bazelbuild/bazel/issues/1118. This i... | htuch/envoy | test/coverage/gen_build.sh | Shell | apache-2.0 | 2,053 |
PKG_NAME="xsane"
PKG_VER="0.998"
PKG_REV="1"
PKG_DESC="A scanning application"
PKG_CAT="Graphics"
PKG_DEPS="libjpeg,libpng,libtiff,gtk,sane-backends"
PKG_LICENSE="gpl-2.0.txt"
# the package source files
PKG_SRC="http://www.xsane.org/download/$PKG_NAME-$PKG_VER.tar.gz"
build() {
# extract the sources tarball
extract... | dimkr/roar-ng-ii | skeleton/rootfs/var/packages/graphics/xsane.sh | Shell | bsd-2-clause | 1,151 |
#!/bin/sh
##########################################################################
# Copyright (c) 2015, Synopsys, Inc. #
# All rights reserved. #
# #
# Redistri... | kit-transue/software-emancipation-discover | tools/builder/customer_release.sh | Shell | bsd-2-clause | 8,387 |
#!/bin/bash
# assumes this script (config.sh) lives in "${JAMR_HOME}/scripts/"
export JAMR_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null && pwd )"
export CLASSPATH=".:${JAMR_HOME}/target/scala-2.10/jamr-assembly-0.1-SNAPSHOT.jar"
# change the following enviroment variables for your configuration
exp... | jflanigan/jamr | scripts/old_configs/config_ConceptInvoke_test5_LDC2014T12.sh | Shell | bsd-2-clause | 2,831 |
# !/bin/bash
# test script: Dump data into cluster, verify the data integrity
# Slave_A is in same datacenter with Master
# Slave_B is in cross datacenter
REDIS_CLI=../../../src/redis-cli
REDIS_CONF=redis.cfg
begin=$(date +%s)
# Can set Nodes' info here or in redis.cfg
if [ ! -f $REDIS_CONF ];then
Master=172.... | JRHZRD/swapdb | swap-redis-4.0.0/tests/qa/integration/tests/cluster/scripts/dumpdata.sh | Shell | bsd-2-clause | 2,368 |
#!/bin/bash
# Copyright (c) 2013, Trevor Woerner
# All rights reserved.
#
# This work is provided under a BSD 2-clause style license.
# See LICENSE in the root directory for more information.
# Run this script to prepare a development environment suitable for
# working with the stm32f4-discovery board.
#
# If you sp... | twoerner/stm32f4_linux | prepare4dev_stm32f4.sh | Shell | bsd-2-clause | 7,364 |
#!/bin/bash
# Find the optimal alpha tuning factors for primecount.
# Usage:
# ./find_optimal_alpha_gourdon.sh [--start=n] [--stop=n] [-t=threads]
# Description:
# This script calculates pi(10^n) for start <= n <= stop using different
# alpha tuning factors and prints out the optimal alphas. The optimal
# alph... | kimwalisch/primecount | scripts/find_optimal_alpha_gourdon.sh | Shell | bsd-2-clause | 6,038 |
#!/bin/bash
#To run on KDE lgin place in
# ~/.kde/Autostart/
echo "export DISPLAY=$DISPLAY" > ~/.realdisplay
| morganp/dotfiles | bin/save_display.sh | Shell | bsd-3-clause | 110 |
#!/bin/sh
# Installe tous les paquets Ubuntu requis.
apt-get install postgresql postgresql-server-dev-9.6 python3.6 python3-pip python3.6-dev redis-server libxml2 libxml2-dev libxslt1-dev npm default-jre elasticsearch gdal-bin postgis libav-tools texlive-xetex fonts-linuxlibertine texlive-lang-french texlive-fonts-ext... | dezede/dezede | dependances.sh | Shell | bsd-3-clause | 433 |
#!/bin/sh
# generate manifest files from all datasets
. `dirname "$0"`/common.sh
. bin/datasets.txt
# generate the comma separated list of xml files
gen_list=''
for dataset in $datasets ; do
gen_list="${gen_list}model/$dataset.config.xml,"
done
echo $gen_list
PROJECT=`cat tmp/pid`
$GDCL -e "
OpenProject(... | koles/obsolete-gd-turbocl | bin/create_manifest_all.sh | Shell | bsd-3-clause | 490 |
#!/bin/bash
clean(){
if [ "${DEBUG}" = true ]; then
sleep 20
# Copy the temporary logfile to the destination key
cp "${DEBUG_LOG}" "${DST_MNT}/groomer_debug_log.txt"
fi
echo "GROOMER: Cleaning up in mount_keys.sh."
rm -rf "${DST_MNT}/IN_PROGRESS.txt"*... | CIRCL/Circlean | circlean_fs/root_partition/opt/groomer/mount_dest.sh | Shell | bsd-3-clause | 2,153 |
# BASH_IT_LOAD_PRIORITY: 380
cite about-plugin
about-plugin 'Some settings for MacOS'
if [[ "$(uname -s)" != "Darwin" ]] ; then
echo "WARNING: Current system is not MacOS but you have enabled macos.plugin.bash." >&2
return 0
fi
# Set aliases -----------------------------------------------------------------
alias... | adoyle-h/dotfiles | plugins/macos.bash | Shell | bsd-3-clause | 789 |
#!/bin/bash
exec 2>&1
source /etc/envvars
exec chpst -u ava redis-server /etc/redis/redis.conf | eavatar/docker-redis | redis-run.sh | Shell | bsd-3-clause | 96 |
#!/bin/bash
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
set -ex
npm run clean
npm run build
npm test
npm run test:coverage
npm run build:example
export PATH="$HOME/miniconda/bin:$PATH"
npm run docs
| jupyter/jupyter-js-docmanager | scripts/travis_script.sh | Shell | bsd-3-clause | 206 |
dos2unix *.*
find -name "*.cpp" | xargs dos2unix
find -name "*.h" | xargs dos2unix
| stevenknown/xpoly | src/dos2unix.sh | Shell | bsd-3-clause | 83 |
#!/bin/sh
gcc -o quad main.c -lX11 -lGL -lGLU
| Iwan-Zotow/SimpleOGL | cmd.sh | Shell | mit | 46 |
#!/usr/bin/env bash
## Variables ##
# Set first first arg[] as <command>
comm=$1
# Set Version Number
version="v0.6"
## Functions ##
# Help Header
helphead(){
echo $version
echo "Usage: snapt <command>"
echo ""
echo "Snapt is a script designed to run snapper and aptitude in conjunction"
echo "for installing/r... | fireclaw722/snappkg | snapt.sh | Shell | mit | 5,049 |
#!/bin/bash
if [ -z $1 ]; then
echo "Usage: run.sh <topology>"
echo "(do not include the file extension, e.g., 'run.sh foo' to use foo.py)"
else
python run_topo.py $1 $1.log
python output_validator.py $1.log
fi
| yevheniyc/Python | 1c_GT_Computer_Networks/Project-3/run.sh | Shell | mit | 228 |
#!/usr/bin/env bash
#
# Copyright (c) 2015 Jeromy Johnson
# MIT Licensed; see the LICENSE file in this repository.
#
test_description="test the unix files api"
. lib/test-lib.sh
test_init_ipfs
create_files() {
FILE1=$(echo foo | ipfs add "$@" -q) &&
FILE2=$(echo bar | ipfs add "$@" -q) &&
FILE3=$(echo baz | i... | ianopolous/go-ipfs | test/sharness/t0250-files-api.sh | Shell | mit | 19,872 |
#!/usr/bin/env bash
# Test wallet backup / dump / restore functionality
# Test case is:
# 4 nodes. 1 2 3 and send transactions between each other,
# fourth node is a miner.
# 1 2 3 and each mine a block to start, then
# miner creates 100 blocks so 1 2 3 each have 50 mature
# coins to spend.
# Then 5 iterations of 1/2... | joeykrug/sidecoin | qa/rpc-tests/walletbackup.sh | Shell | mit | 7,059 |
#!/bin/bash
# Set the Open and Save options in Office 2016 apps to default to "On My Mac" instead of "Online Locations".
# This setting will apply to all users on this Mac.
/usr/bin/defaults write /Library/Preferences/com.microsoft.office DefaultsToLocalOpenSave -bool true | rtrouton/rtrouton_scripts | rtrouton_scripts/set_office_2016_default_save_option_to_on_my_mac/set_office_2016_default_save_option_to_on_my_mac.sh | Shell | mit | 275 |
#!/usr/bin/env bash
#
# Restore docker volume from a data container.
#
set -o errexit # abort script at first error
set -o pipefail # return the exit status of the last command in the pipe
set -o nounset # treat unset variables and parameters as an error
# Setting environment variables
readonly CUR_DIR=$(cd $... | blacklabelops/jenkins | scripts/restoreHot.sh | Shell | mit | 2,698 |
#!/bin/sh
scriptname=$0
username=$1
password=$2
database=$3
if [ "$username" = "" ] | [ "$password" = '' ] | [ "$database" = '' ]
then
echo "usage: $0 <username> <password> <database>"
exit 1;
fi
for i in $(ls 200*.sql);
do
echo "running $i"
mysql -u $username --password=$password $database < $i
done... | centaurustech/CrowdFund | app/config/sql/structure/run_in_order.sh | Shell | mit | 321 |
# Migrate .zsh-update file to $ZSH_CACHE_DIR
if [[ -f ~/.zsh-update && ! -f "${ZSH_CACHE_DIR}/.zsh-update" ]]; then
mv ~/.zsh-update "${ZSH_CACHE_DIR}/.zsh-update"
fi
# Get user's update preferences
#
# Supported update modes:
# - prompt (default): the user is asked before updating when it's time to update
# - auto:... | ShadowStar/oh-my-zsh | tools/check_for_upgrade.sh | Shell | mit | 7,268 |
testTrivial() {
assertDiff <( printf "TEST\r\n" ) <( printf "TEST\r\n" | irc2delim )
}
testSimple() {
assertDiff <( printf "TEST\r\rtest\rtest test\n" ) <( printf "TEST test :test test\r\n" | irc2delim )
assertDiff <( printf "TEST\r\rtest test\n" ) <( printf "TEST :test test\r\n" | irc2delim )
assertDiff <( pri... | BenoitHiller/shellby | test/irc2delim/test.bash | Shell | mit | 748 |
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:/usr/local/mysql/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
export PATH="$(brew --prefix homebrew/php/php71)/bin:$PATH" | MickeyKay/.dotfiles | system/_path.zsh | Shell | mit | 227 |
if [ $# != 2 ]
then if [ $# != 3 ]
then echo "USAGE: $(basename $0) -[aAmM] <input_file> <output_file>";
echo " -a: apertium standard mode";
echo " -A: apertium optimized mode (default mode)";
echo " -m: matxin standard mode";
echo " -M: matxin optimized mode";
... | frankier/apertium-core | apertium/deformat-header.sh | Shell | gpl-2.0 | 1,261 |
#!/bin/bash
# Get Running Directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
# Arguments Check
if [ $# -lt 2 ]; then
echo "[$0] Missing Parameters!"
echo "Usage: $0 Server-IP Port"
exit 1
fi
export LD_LIBRARY_PATH=../../../src/usr/
server_ip=$1
port=$2
./xio_rdma_server -p ... | accelio/accelio | tests/usr/direct_rdma_test/run_rdma_server.sh | Shell | gpl-2.0 | 341 |
#!/bin/bash -ex
pushd libusb-src
git diff > ../libusb-brickd.patch
popd
echo done
| Tinkerforge/brickd | src/build_data/windows/libusb/capture.sh | Shell | gpl-2.0 | 86 |
. ${clst_sharedir}/targets/support/functions.sh
## START RUNSCRIPT
case $1 in
build_packages)
shift
export clst_packages="$*"
mkdir -p ${clst_chroot_path}/usr/livecd ${clst_chroot_path}/tmp
exec_in_chroot \
${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
echo "${clst_packages}" > ${cls... | wolf31o2-dot-org/catalyst | targets/livecd-stage1/livecd-stage1-controller.sh | Shell | gpl-2.0 | 451 |
#!/bin/sh
# In case of a fresh git checkout, prepare the sources
test -f ./configure || ./autogen.sh || exit 1
test -f Makefile || ./configure || exit 1
OPTS=$(getopt -o biUFvof --long \
build,install,update,freshen,verbose,oldpackage \
-n 'setver.sh' -- "$@")
eval set -- "$OPTS"
while true; do
case $1 in
-b... | kolyshkin/vzctl | setver.sh | Shell | gpl-2.0 | 3,455 |
#!/bin/sh
#
# Copyright (c) 2005 Amos Waterland
#
test_description='git branch assorted tests'
. ./test-lib.sh
test_expect_success \
'prepare a trivial repository' \
'echo Hello > A &&
git update-index --add A &&
git commit -m "Initial commit." &&
echo World >> A &&
git update-index --add... | jwebcat/git-contrib | t/t3200-branch.sh | Shell | gpl-2.0 | 29,176 |
#!/bin/bash
sbatch -o Boot-%j.out --mail-type=FAIL --mail-user=xji3@ncsu.edu ./ShFiles/MG94_YLR406C_YDL075W_Boot1.sh
sbatch -o Boot-%j.out --mail-type=FAIL --mail-user=xji3@ncsu.edu ./ShFiles/MG94_YLR406C_YDL075W_Boot2.sh
sbatch -o Boot-%j.out --mail-type=FAIL --mail-user=xji3@ncsu.edu ./ShFiles/MG94_YLR406C_YDL075W_Bo... | xjw1001001/IGCexpansion | Bootstrap/Run_Boot_YLR406C_YDL075W.sh | Shell | gpl-3.0 | 10,604 |
#!/bin/bash
set -e
abspath(){
python -c "import os; print os.path.abspath(\"$1\")"
}
GREP_OPTIONS=--color=never
if [[ "$(whoami)" == "root" ]]; then
WHEELSTREET=/usr/local/share/python/wheels
else
WHEELSTREET=$(abspath ~/wheelstreet)
fi
REQFILE=requirements.txt
PACKAGE=
PYTHON=$(which python)
if [[ $1... | crosenth/bioy | dev/build_wheels.sh | Shell | gpl-3.0 | 4,424 |
#---------------------------------------------------------------------
# Function: InstallWebmail
# Install the chosen webmail client. Squirrelmail or Roundcube
#---------------------------------------------------------------------
InstallWebmail() {
echo -n "Installing webmail client ($CFG_WEBMAIL)... "
echo "d... | wicky-info/ispconfig_setup | distros/debian8/install_webmail.sh | Shell | gpl-3.0 | 2,821 |
# Name: Set up SSD I/O scheduler
# Command: disk_io_scheduler
scheduler="noop"
ssdfound="false"
udev_rule_file="/etc/udev/rules.d/60-io_schedulers.rules"
disk_io_scheduler() {
show_func "Setting up SSD I/O scheduler"
if [[ "$(disk_io_scheduler_test)" = "Configured" && ! "$reinstall" = "yes" ]]; then
show_status "SSD... | TingPing/fedorautils | plugins/misc/disk_io_scheduler.sh | Shell | gpl-3.0 | 1,356 |
#!/bin/sh
# Tests for ln -L/-P.
# Copyright (C) 2009-2012 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 License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | homer6/gnu_coreutils | tests/ln/hard-to-sym.sh | Shell | gpl-3.0 | 2,465 |
#!/bin/bash
#
# Copyright (c) 2015-2016 Matthew Carter, Ralph M Goodberlet.
#
# This file is part of Zettaknight.
#
# Zettaknight is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3... | Zettaknight/zettaknight | zettaknight.d/zfs_data_generator.sh | Shell | gpl-3.0 | 2,142 |
sh tulip_run_test.sh import_planar_graph
| jukkes/TulipProject | unit_test/gui/run_import_planar_graph_test.sh | Shell | gpl-3.0 | 42 |
#!/bin/bash -e
###
## Clean all temporary files on all hosts
###
ROOT="/root/IPsecCovertChannel/code/benchmarking"
. $ROOT/config.sh
HOSTS="$GATEWAYS $MITM $CLIENTS"
multissh $SYS_clean
echo "Setting MTU.."
ssh cli1 "ifconfig eth1 mtu 1412"
ssh cli2 "ifconfig eth0 mtu 1412"
| chandanmogal/ipsec-tfc | code/benchmarking/all-clean.sh | Shell | gpl-3.0 | 280 |
#!/usr/bin/env zsh
echo " ****************************************************"
echo " ***** EXAMPLE SCRIPT FOR A MULTI-DOCKING RUN *******"
echo " ***** execute in ~biskit/test, requires *******"
echo " ***** that test_docking has been run *******"
echo " *************************************************... | graik/biskit | archive_biskit2/Biskit/testdata/test_multidock.zsh | Shell | gpl-3.0 | 2,354 |
pwd
version=$(cat jenkins/version.txt)
rm -Rf build dist
mkdir -p build
cd build
cmake .. || exit 1
make -j 4 install || exit 1
cd ..
| FighterLYL/DeepCL | jenkins/linux-cpp.sh | Shell | mpl-2.0 | 135 |
#!/bin/bash
cd /PrairieLearn
if [[ -f /efs/container/config.json ]] ; then
# we are running in production mode
node server --config /efs/container/config.json
else
# we are running in local development mode
docker/start_postgres.sh
docker/gen_ssl.sh
# Uncomment to start redis to test message... | rbessick5/PrairieLearn | docker/init.sh | Shell | agpl-3.0 | 491 |
#### This script is meant to be sourced by ltconfig.
# ltcf-c.sh - Create a C compiler specific configuration
#
# Copyright (C) 1996-2000, 2001 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; you can redistribute it and/or modify it
# under t... | HGitMaster/jna-osgi | native/libffi/ltcf-c.sh | Shell | lgpl-2.1 | 33,965 |
file=$1
new_text=$(echo "${2}" | sed 's/\//\\\//g')
lineNum="$(grep -n "<source>" ${file} | head -n 1 | cut -d: -f1)"
theLine="'${lineNum}s/.*/<source>${new_text}<\/source>/'"
command="sed -i ${theLine} ${file}"
eval $command
| ess-dmsc/h5cpp | redirect_coverage.sh | Shell | lgpl-2.1 | 226 |
#!/bin/bash
#
# Copyright (c) 2013 SLL. <http://sll.se>
#
# This file is part of Invoice-Data.
#
# Invoice-Data 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 Licens... | KentorIT/sll-invoice-data | invoice-data/test-scripts/curl/createpricelist.sh | Shell | lgpl-3.0 | 1,459 |
#!/bin/bash
#
# This is job step0_0
#
#
## Start of header for backend 'local'.
#
set -e
set -u
ENVIRONMENT_DIR='.'
#
# Variables declared in MOLGENIS Compute headers/footers always start with an MC_ prefix.
#
declare MC_jobScript="step0_0.sh"
declare MC_jobScriptSTDERR="step0_0.err"
declare MC_jobScriptSTDOUT="ste... | molgenis/molgenis-compute | molgenis-compute-core/src/test/resources/expected/testRunLocally5a/step0_0.sh | Shell | lgpl-3.0 | 5,780 |
#!/bin/bash
if [ "$#" -ne 0 ]; then
echo "$0 takes no arguments"
exit 1
fi
set -e -x
DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
docker pull "$DOCKER_IMAGE"
docker run --rm -v `pwd`:/io "$DOCKER_IMAGE" /io/build-wheels.sh /io
DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
docker pull "$DOCKER_IMAGE"
docker run ... | mongodb-labs/python-bsonjs | docker-build.sh | Shell | apache-2.0 | 386 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ... | genericDataCompany/hsandbox | dfsioe/bin/run-write.sh | Shell | apache-2.0 | 1,555 |
#!/bin/bash
echo "PreWrapper Token - for GW Test" > prewrappertoken
| GridWay/gridway | src/test/jt/pre_wrapper_script.sh | Shell | apache-2.0 | 71 |
#!/bin/bash
if [ "$SKIP_PROPERTIES_BUILDER" = true ]; then
echo "Skipping properties builder"
exit 0
fi
if [ "$MONGO_PORT" != "" ]; then
# Sample: MONGO_PORT=tcp://172.17.0.20:27017
MONGODB_HOST=`echo $MONGO_PORT|sed 's;.*://\([^:]*\):\(.*\);\1;'`
MONGODB_PORT=`echo $MONGO_PORT|sed 's;.*://\([^:]*\):\(.*\);\... | amitmawkin/Hygieia | collectors/misc/chat-ops/docker/properties-builder.sh | Shell | apache-2.0 | 1,218 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# 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 require... | KazukiOhashi/kubernetes | cluster/gce/config-test.sh | Shell | apache-2.0 | 4,264 |
#! /bin/sh
#/*
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License");... | trasukg/river-qa-2.2 | examples/hello/scripts/jrmp-phoenix.sh | Shell | apache-2.0 | 1,176 |
#!/bin/bash
# This script provides common script functions for the hacks
# Requires OS_ROOT to be set
set -o errexit
set -o nounset
set -o pipefail
# The root of the build/dist directory
OS_ROOT=$(
unset CDPATH
os_root=$(dirname "${BASH_SOURCE}")/..
cd "${os_root}"
pwd
)
OS_OUTPUT_SUBPATH="${OS_OUTPUT_SUBPA... | tnguyen-rh/origin | hack/common.sh | Shell | apache-2.0 | 16,074 |
#!/bin/bash
set -eu
root=$(pwd)
cd pcf-pipelines/install-pcf/aws/terraform
source "${root}/pcf-pipelines/functions/check_opsman_available.sh"
opsman_available=$(check_opsman_available $OPSMAN_DOMAIN_OR_IP_ADDRESS)
if [[ $opsman_available == "available" ]]; then
om-linux \
--target "https://${OPSMAN_DOMAIN_OR_... | rahulkj/pcf-pipelines | install-pcf/aws/tasks/wipe-env/task.sh | Shell | apache-2.0 | 3,013 |
#!/bin/sh
#-
# Copyright (c) 2010 iXsystems, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of con... | dplbsd/soc2013 | head/usr.sbin/pc-sysinstall/backend-query/list-config.sh | Shell | bsd-2-clause | 1,517 |
#!/bin/bash
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# gcl wrapper to kick off nacl-sdk try jobs.
gcl try $* \
-b naclsdkm-linux \
-b naclsdkm-mac \
-b naclsdkm-windows32 \
-b naclsdkm... | aYukiSekiguchi/ACCESS-Chromium | native_client_sdk/src/sdktry.sh | Shell | bsd-3-clause | 380 |
#!/bin/bash
# requires you to set the "OWNER" environmental variable
: ${FROM_OWNER?"Need to set FROM_OWNER"}
: ${FROM_TOKEN?"Need to set FROM_TOKEN"}
: ${TO_OWNER?"Need to set TO_OWNER"}
#: ${TO_TOKEN?"Need to set TO_TOKEN"}
: ${SLACK_TOKEN?"Need to set SLACK_TOKEN"}
: ${SLACK_CHANNEL?"Need to set SLACK_CHANNEL"}
# ... | NSLS-II/lightsource2-recipes | scripts/mirror-to-nsls2-local-folder.sh | Shell | bsd-3-clause | 1,065 |
#!/bin/bash
# This compiles all requirements files with pip-compile.
# You should always use this script, because dev.txt and test.txt depend on default.txt.
export CUSTOM_COMPILE_COMMAND="./docker/compile_requirements.sh"
pip-compile --generate-hashes $@ requirements/default.in
pip-compile --generate-hashes $@ requ... | mozilla/pontoon | docker/compile_requirements.sh | Shell | bsd-3-clause | 444 |
#!/usr/bin/env bash
set -ue
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # http://stackoverflow.com/questions/59895
export CATALINA_BASE=$DIR/tomcat_rdf
# http://stackoverflow.com/questions/3356476/debugging-monit
$@
| snac-pilot/eac-graph-load | servers/wrapper_rdf.bash | Shell | bsd-3-clause | 228 |
#!/bin/bash
### BEGIN INIT INFO
# Provides: chronograf
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the Chronograf service at boot time
### END INIT IN... | nooproblem/influxdb | chronograf/etc/scripts/init.sh | Shell | mit | 2,939 |
#!/bin/bash
#
# Log <type> <msg>
#
log() {
printf "\033[36m%s\033[0m : \033[90m%s\033[0m\n" $1 $2
}
#
# Exit with the given <msg ...>
#
abort() {
printf "\n\033[31mError: $@\033[0m\n\n" && exit 1
}
echo
log "Convert" "README.md->README.rst"
# convert README.md to README.rst
pandoc --from=markdown --to=rst --... | kaelzhang/python-expire-cache | publish.sh | Shell | mit | 481 |
#!/bin/bash
set -x
set -e
# Uninstall Board
# Uninstall Platform
cp /etc/rc.local_orig /etc/rc.local
| BrianAdams/openrov-cockpit | install_lib/openrov-cockpit-beforeremove.sh | Shell | mit | 104 |
#!/bin/sh
# Exercise ls --block-size and related options.
# Copyright (C) 2011-2013 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 License as published by
# the Free Software Foundation, either version 3 of the Licen... | optionalg/coreutils | tests/ls/block-size.sh | Shell | gpl-3.0 | 4,658 |
#!/bin/bash
./generate_coverage_report
rm -rf devinfo
mkdir devinfo
mv coverage_report devinfo/
doxygen 2> devinfo/doxygen-errors.txt
mv doxyoutput/html devinfo/doxyoutput
cd addons || exit 1
doxygen cppcheckdata.doxyfile
mv html ../devinfo/cppcheckdata
cd ..
# Detect duplicate code..
~/pmd-4.2.6/bin/cpd.sh lib/ ... | boos/cppcheck | webreport.sh | Shell | gpl-3.0 | 474 |
#!/bin/sh
if [ "-c" = $1 ]
then
coverage run --source=../src --omit='../src/lib/*' --branch tests.py && coverage report -m
else
python2.7 -m unittest discover -p '*_tests.py'
fi
| Metruption/IRC-Bot | tests/run_tests.sh | Shell | gpl-3.0 | 187 |
#! /bin/bash
#
# Builds zebra.node package from a fresh git clone
#
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Read the zproject/README.md for information about making permanent changes. #
#######... | zeromq/zebra | bindings/nodejs/build.sh | Shell | mpl-2.0 | 2,931 |
#!/bin/bash
#
# build_deb.sh:
# Script for deb packaging dvbtee
#
# Originally submitted by: Pasha Mesh <pasha.mesh@gmail.com>
#
# Tested on Ubuntu 14.04 & 15.04
#
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
current_dir="$(dirname "$(readlink -f "$0")")"
compiled_base_dir="$(readlink -f "${cur... | anshul1912/libdvbtee | deb/build_deb.sh | Shell | lgpl-2.1 | 2,510 |
#!/bin/bash
SSH_USER=${SSH_USERNAME:-vagrant}
configure_ubuntu1204_autologin()
{
USERNAME=${SSH_USER}
LIGHTDM_CONFIG=/etc/lightdm/lightdm.conf
echo "==> Configuring lightdm autologin"
if [ -f $LIGHTDM_CONFIG ]; then
echo "" >> $LIGHTDM_CONFIG
echo "autologin-user=${USERNAME}" >> $LIGH... | jcarley/ubuntu-vm | script/desktop.sh | Shell | apache-2.0 | 1,356 |
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Browsers\n\n"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "google-chr... | alrra/dotfiles | src/os/installs/ubuntu/browsers.sh | Shell | mit | 1,220 |
#!/bin/bash
FN="illuminaMousev2.db_1.26.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/illuminaMousev2.db_1.26.0.tar.gz"
"https://bioarchive.galaxyproject.org/illuminaMousev2.db_1.26.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-illuminamousev2.db/bioconduc... | bebatut/bioconda-recipes | recipes/bioconductor-illuminamousev2.db/post-link.sh | Shell | mit | 1,473 |
#!/bin/bash
if [ 0 != `id -u` ]; then
echo "You must be root"
exit 1
fi
updatedb 2>/dev/null
for f in `locate firstboot | grep -v home | grep -v common`; do
if [ -f $f ]; then
rm -f $f
elif [ -d $f ]; then
rm -rf $f
fi;
done
| System25/gecosws-config-assistant | script/uninstall.sh | Shell | gpl-2.0 | 271 |
#!/bin/sh
#
# Copyright (C) 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
rm -f */K* */dsset-* */*.signe... | pecharmin/bind9 | bin/tests/system/ecdsa/clean.sh | Shell | mpl-2.0 | 453 |
# Runs Turbine
# Assumes the presence of:
checkvars MODE COMMAND
# Sets: OUTPUT_DIR OUTPUT START STOP
# Puts output in $OUTPUT_DIR/$OUTPUT
START=$( date +%s )
# Launch it
case ${MODE}
in
"mpiexec")
OUTPUT="turbine-output.txt"
OUTPUT_DIR=${PWD}
turbine -l -n ${PROCS} ${=COMMAND} >& ${OUTPUT}
ex... | swift-lang/swift-t | stc/bench/util/launch.zsh | Shell | apache-2.0 | 929 |
#!/bin/bash
# pass along command line arguments to azkaban-executor-start.sh script
bin/azkaban-executor-start.sh "$@" >logs/executorServerLog__`date +%F+%T`.out 2>&1 &
| tianjianinline/azkaban-psbc | azkaban-exec-server/src/main/bash/start-exec.sh | Shell | apache-2.0 | 171 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.