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 |
|---|---|---|---|---|---|
#!/bin/sh
curl -X PUT http://localhost:5984/_config/admins/admin -d '"secret"'
| KlausTrainer/couch_email_auth | test/create_admin_user.sh | Shell | apache-2.0 | 80 |
#!/bin/sh
while inotifywait -qq -r -e modify -e create -e move -e delete \
--exclude '\.sw.?$|^_build' docs ggcq
do
clear
python setup.py docs
sleep 1
done
| andsor/pyggcq | autodocs.sh | Shell | apache-2.0 | 168 |
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo 'Missing commit arg'
exit 0
fi
COMMIT=$1
BASE_DIR=/home/ubuntu/teamfinder
API_DIR=${BASE_DIR}/api
VENV_DIR=${API_DIR}/env
CLIENT_DIR=${BASE_DIR}/client
cd ${API_DIR}
git fetch
git checkout --force ${COMMIT}
${VENV_DIR}/bin/python manage.py migrate --noinput
${VENV_DI... | prattl/teamfinder-api | scripts/deploy.sh | Shell | apache-2.0 | 399 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/tutorial12
OUTPU... | TennisGazelle/cs791ALopez | ogldev-source/tutorial12/nbproject/Package-Debug.bash | Shell | apache-2.0 | 1,457 |
#!/bin/bash
REGION=${1:?}
PASS=${2:?}
stackName=passwdpot-db
awsRun="aws --region $REGION cloudformation"
$awsRun create-stack --stack-name $stackName --template-body file://passwdpot-db-template.json --capabilities CAPABILITY_IAM --parameters ParameterKey=PasswdPotDBPassword,ParameterValue=$PASS
$awsRun wait stack-... | dougEfresh/passwd-pot | lambda/create-db.sh | Shell | apache-2.0 | 439 |
#!/bin/bash
# Copyright 2017 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 ... | kubeup/archon | vendor/k8s.io/kubernetes/cluster/gce/util.sh | Shell | apache-2.0 | 72,087 |
#!/bin/bash -e
function nuke_if_too_big() {
path=$1
limit_mb=$2
echo "## Pruning ${path} (if larger than ${limit_mb}MB)..."
if [[ -d "${path}" ]]; then
actual_mb=$(du -m -d0 "${path}" | cut -f 1)
echo "Size of ${path}: ${actual_mb}MB"
if (( actual_mb > limit_mb )); then
echo "${path} is too l... | jsirois/pants | build-support/bin/prune_travis_cache.sh | Shell | apache-2.0 | 1,472 |
#!/bin/bash
# example command
# sh buildCSR.sh "/Users/ive/git-pyw-repo/cartier/cartier-provision-tools/src/main/resources/assembly/bash" "private.key" "csr.certSigningRequest" "xuhw@yyft.com" "ElveXu" "false"
# 获取文件输出跟路径
BASE_DIR=`echo "$1" | grep -o "[^ ]\+\( \+[^ ]\+\)*"`
BASE_DIR_PATH_END=`echo ${BASE_DIR: -1}`
... | CiNC0/Cartier | cartier-provision-tools/src/main/resources/assembly/bash/buildCSR.sh | Shell | apache-2.0 | 2,446 |
#!/bin/bash
#
# Apache License
# Version 2.0, January 2004
# http://www.apache.org/licenses/
#
# TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
#
# 1. Definitions.
#
# "License" shall mean the terms and conditi... | deleidos/digitaledge-platform | commons-core/src/main/script/boot/setup_mongodb_arbiter.sh | Shell | apache-2.0 | 12,585 |
#!/bin/bash
set -e
set -u
set -x
cd /opt/pysk
hg pull -u
monit stop httpd
monit stop nginx
pacman -Syu --noconfirm
pacman -S --noconfirm openssl apache mod_rpaf mod_wsgi php php-apache php-apc php-cgi php-curl php-enchant php-gd php-gmp php-intl php-mcrypt php-pgsql php-pspell php-sqlite php-tidy php-xsl
pacman -S --... | philwo/pysk | snippets/20091025_pysk_the_big_bang.sh | Shell | apache-2.0 | 817 |
#!/bin/bash
set -eu
hook=$(pwd)/resources/com/google/gerrit/server/tools/root/hooks/commit-msg
cd $TEST_TMPDIR
function fail {
echo "FAIL: $1"
exit 1
}
function prereq_modern_git {
# "git interpret-trailers --where" was introduced in Git 2.15.0.
git interpret-trailers -h 2>&1 | grep -e --where > /dev/null
... | qtproject/qtqa-gerrit | resources/com/google/gerrit/server/commit-msg_test.sh | Shell | apache-2.0 | 3,840 |
#!/bin/sh
# Generate test coverage statistics for Go packages.
#
# Works around the fact that `go test -coverprofile` currently does not work
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909
#
# Usage: scripts/coverage [--html]
#
# --html Additionally create HTML report and open it ... | gaia-docker/tugbot-collect | scripts/coverage.sh | Shell | apache-2.0 | 1,409 |
# 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 may not u... | wooga/airflow | tests/bats/bats_utils.bash | Shell | apache-2.0 | 968 |
#! /bin/bash
docker stop jexus
docker rm jexus | noricohuas/docker | jexus/remove.sh | Shell | apache-2.0 | 46 |
#!/bin/bash
# coding: utf-8
# Copyright (c) 2018
# Gmail: liuzheng712
#
set -e
echo "准备YUM 源和pip源"
{
mkdir -p ~/.pip
cat <<EOF > ~/.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF
mkdir ~/yumbak
mv /etc/yum.repos.d/* ~/yumbak
curl -o /etc/yum.... | jihongrui/markdown | jumpserver/Network_install.sh | Shell | apache-2.0 | 7,345 |
#!/bin/bash
#
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
#
# Adapted from https://coderwall.com/p/9b_lfq and
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
SLUG="tasomaniac/EmailAutoCompleteTextView"
JDK="oraclejdk7"
BRANCH="master"
set -e
if... | tasomaniac/EmailAutoCompleteTextView | .buildscript/deploy_snapshot.sh | Shell | apache-2.0 | 958 |
mv $1 $2 $3 .
#Copy the Static Table files
cp /home1/01437/ogce/apps/wrf3.5.1/WRFV3/run/RRTM_DATA ./
cp /home1/01437/ogce/apps/wrf3.5.1/WRFV3/run/GENPARM.TBL ./
cp /home1/01437/ogce/apps/wrf3.5.1/WRFV3/run/MPTABLE.TBL ./
cp /home1/01437/ogce/apps/wrf3.5.1/WRFV3/run/VEGPARM.TBL ./
cp /home1/01437/ogce/apps/wrf3.5.1/WRF... | SciGaP/XSEDE-App-Wrappers-Stampede | wrf_wrapper.sh | Shell | apache-2.0 | 917 |
#!/usr/bin/env bash
PACKAGES=$(go list ./... | grep -v vendor)
echo Running gofmt
GOFMT_FILES=$(go fmt ${PACKAGES})
if [ -n "${GOFMT_FILES}" ]; then
printf >&2 'gofmt failed for the following files:\n%s\n\nplease run "gofmt -w ." on your changes before committing.\n' "${GOFMT_FILES}"
exit 1
fi
echo Running golin... | codem8s/autograph | pre-commit.sh | Shell | apache-2.0 | 1,364 |
#!/bin/bash
sleep 15
env
cat /etc/hosts
supervisord -n -c /etc/supervisor/supervisord.conf
| ungerts/docker-puppet | agent/scripts/run.sh | Shell | apache-2.0 | 91 |
#!/bin/bash
# This script starts up a SAMBA domain controller that looks and acts very much like a Windows Active Directory
# domain controller. In this script, only the LDAP related ports are exposed but SAMBA also supports other
# protocols such as Kerberos that might be relevant for CAS tests.
# This docker image u... | leleuj/cas | ci/tests/ldap/run-ad-server.sh | Shell | apache-2.0 | 6,986 |
#!/usr/bin/env bash
npm install stylus
npm run prestart
| loads/loads-web | scripts/postdeploy.sh | Shell | apache-2.0 | 57 |
#!/bin/sh
ant clean -Doutput.name=BlueDragon-6.2
ant -Doutput.name=BlueDragon-6.2 \
-Ddictionary.file=Resources/cfmlBD621.xml \
-Dbundle.uuid=4E1ABDD8-CE67-4192-9D76-1103D3639D47 \
-Dsyntax.uuid=AE4BC6F4-4EE1-471C-B509-85E683F94BA6 \
-Dcmddoc.uuid=6FCD2CF3-D0CE-4191-A750-BE5D5196AFEF \
build | robrohan/coldfusion.tmbundle | distro_bd62.sh | Shell | apache-2.0 | 299 |
#!/bin/sh
# A word about this shell script:
#
# It must work everywhere, including on systems that lack
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh,
# and potentially have either a posix shell or bourne
# shell living at /bin/sh.
#
# See this helpful document on writing portable shell scripts:
# http://ww... | astro/browser-request | node_modules/ender/node_modules/npm/scripts/install.sh | Shell | apache-2.0 | 7,184 |
python train_mixup_cifar10.py --num-epochs 220 --mode hybrid --num-gpus 2 -j 2 --batch-size 64 --wd 0.0005 --lr 0.1 --lr-decay 0.2 --lr-decay-epoch 60,120,160 --model cifar_wideresnet28_10
| dmlc/web-data | gluoncv/logs/classification/cifar/cifar_wideresnet28_10_mixup.sh | Shell | apache-2.0 | 189 |
#!/bin/bash
# Copyright 2019 Google LLC
#
# 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 ... | GoogleCloudPlatform/selkies-examples | code-server/images/code-server-cloudshell/config/pd_init.sh | Shell | apache-2.0 | 2,169 |
#!/bin/bash
if [ $ENABLE_INIT_DAEMON = "true" ]
then
echo "Validating if step ${INIT_DAEMON_STEP} can start in pipeline"
while true; do
sleep 5
echo -n '.'
string=$(curl -s $INIT_DAEMON_BASE_URI/canStart?step=$INIT_DAEMON_STEP)
[ "$string" = "true" ] && break
done
echo "C... | vinothchandar/hoodie | docker/hoodie/hadoop/spark_base/wait-for-step.sh | Shell | apache-2.0 | 358 |
#!/usr/bin/env bash
# Copyright 2019 The TensorFlow 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... | davidzchen/tensorflow | tensorflow/lite/micro/tools/ci_build/test_x86.sh | Shell | apache-2.0 | 2,426 |
java -jar saxon9he.jar -xsl:../src/test/resources/schematron/iso_svrl_for_xslt2.xsl -s:$1 -o:$1.xsl
java -jar saxon9he.jar -xsl:$1.xsl -s:$2 -o:$2_report.xml
| openpreserve/plato | planning-core/tools/validateSchematron.sh | Shell | apache-2.0 | 159 |
juju destroy-environment -y
| glyn/virgo-charm | scripts/teardown.sh | Shell | apache-2.0 | 28 |
pip install docker-py
| bayvictor/distributed-polling-system | bin/cloudify_docker_plugin_pip_docker_py.sh | Shell | apache-2.0 | 22 |
#!/bin/bash -eu
#$ -cwd -V
#$ -pe smp 1
#$ -l h_rt=24:00:00
#$ -l h_vmem=8G
#$ -R y
#$ -q all.q,bigmem.q
# Matthew Bashton 2012-2016
# Splits a BAM file by its read groups, works as a job array make sure array
# task size or individual numbers matches number of read groups you want split
# out. $1 = input.bam to split... | MattBashton/MB-GATK-SGE | Automatic/SplitBamByRG_samtools/SplitBamByRG.sh | Shell | artistic-2.0 | 1,654 |
#!/bin/bash
if [ "$#" -lt "3" ]; then
echo "usage:\n\t$0 in number displacement_max_corner [dir]"
echo "example toto.tiff 10 5"
exit 1
fi
in=$1
NUMBER=$2
L=$3
NTHREADS=1
if [ -z "$BUILD_IMAGES" ]; then
BUILD_IMAGES=1
fi
prog=../../recalage_ic.sh
# create directory
if [ -z "$4" ]; then
dir=e... | tbriand/inverse_compositional | experiments/computation_and_latex.sh | Shell | bsd-2-clause | 5,966 |
#!/bin/bash
line="*/5 * * * * python ~/phantomCron.py"
(crontab -u ubuntu -l; echo "$line") | crontab -u ubuntu -
| benhastings/SeGrid_EC2 | cronUpdate.sh | Shell | bsd-3-clause | 115 |
#!/bin/bash
# Datadog Agent install script.
set -e
logfile="ddagent-install.log"
gist_request=/tmp/agent-gist-request.tmp
gist_response=/tmp/agent-gist-response.tmp
if [ $(command -v curl) ]; then
dl_cmd="curl -f"
else
dl_cmd="wget --quiet"
fi
# Set up a named pipe for logging
npipe=/tmp/$$.tmp
mknod $npipe p... | darron/dd-agent | packaging/datadog-agent/source/install_agent.sh | Shell | bsd-3-clause | 7,289 |
#!/bin/bash
source ~/.profile
# Update compiler explorer and run
(cd /opt/compiler-explorer && git pull)
(cd /opt/compiler-explorer && make)
| jtsylve/compiler-explorer-docker | run-ce.sh | Shell | bsd-3-clause | 142 |
#!/bin/bash
set -e
echo "Drop existing database"
sudo -i -u postgres psql postgres <<EOF
REVOKE ALL ON DATABASE gpstem FROM rutte;
DROP USER IF EXISTS rutte;
DROP DATABASE IF EXISTS gpstem;
CREATE DATABASE gpstem;
EOF
echo "Creating database structure"
sudo -i -u postgres psql -v ON_ERROR_STOP=1 gpstem < gpstem.sql |... | GeenPeil/stem | db/reset-db.sh | Shell | bsd-3-clause | 627 |
#!/bin/bash -e
#
# @license
# Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
# The complete set of contributors ... | ewgenius/polymer-periodic-table | gh/templates/gp.sh | Shell | bsd-3-clause | 2,062 |
#!/bin/bash
#
# This script generates a minified Exim configuration file.
#
# Usage: Run without any arguments to see usage
#
# Includes are processed by M4 (http://www.gnu.org/software/m4/)
#
# Copyright (c) 2011 Lance Lovette. All rights reserved.
# Licensed under the BSD License.
# See the file LICENSE.txt for the f... | lovette/exim-tools | exim-minify-conf/exim-minify-conf.sh | Shell | bsd-3-clause | 4,924 |
#!/usr/bin/env bash
# Ubuntu 18
go_base_url="$1"
go_ver="$2"
go_install=0
echo "Installing needed packages (e.g. git, go, etc.)"
DEBIAN_FRONTEND=noninteractive apt-get -yq update
DEBIAN_FRONTEND=noninteractive apt-get -yq install git ruby ruby-dev rubygems build-essential libpcap-dev
echo "Installing FPM gem"
gem i... | maier/circonus-agent | vprov/u18.sh | Shell | bsd-3-clause | 1,700 |
internal_interface=$(ip route|egrep "dev br0|dev br-lan"|head -1|cut -d" " -f3)
iptables -t filter -D FORWARD -i $internal_interface -j easucks-FORWARD 2>/dev/null
iptables -t filter -F easucks-FORWARD 2>/dev/null
iptables -t filter -X easucks-FORWARD 2>/dev/null
iptables -t filter -N easucks-FORWARD
iptables -t filter... | xpchbill/xpchbill.github.io | src/szy.sh | Shell | mit | 6,259 |
#!/bin/bash
# sed version of the patho2 program
source "${BASH_SOURCE%/*}"/../setup.sh
start=$(get_millisecond_time)
# - We have converted the POSIX non-capturing groups (?: .. ) to normal parens.
# - We have added the trailing "|^$" in order to also match and output the empty
# lines, as the semantics of the "pa... | diku-kmc/repg | bench/sed/src/patho2.sh | Shell | mit | 529 |
#!/bin/sh
##
# This script will add logback jars to your classpath.
##
LB_HOME=/SET/THIS/PARAMETER/TO/THE/DIRECTORY/WHERE/YOU/INSTALLED/LOGBACK
CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-classic-1.2.3.jar"
CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-core-1.2.3.jar"
CLASSPATH="${CLASSPATH}:${LB_HOME}/logback... | JPAT-ROSEMARY/SCUBA | org.jpat.scuba.external.slf4j/logback-1.2.3/logback-examples/setClasspath.sh | Shell | mit | 477 |
rm a.out
gcc main.c downWeb.c size-color.c picture.c top.c writeTheRest.c cp2win.c price.c sogar.h -g -Wall
| ZhangIIIr/one | haha/haha-v2/src/cc.sh | Shell | mit | 108 |
#!/bin/sh
echo "==> 'Disabling screensaver'"
defaults -currentHost write com.apple.screensaver idleTime 0
su $SSH_USERNAME -c "defaults -currentHost write com.apple.screensaver idleTime 0"
echo "==> 'Disabling login screensaver'"
defaults -currentHost write com.apple.screensaver loginWindowIdleTime 0
echo "==> 'Turnin... | boxcutter/macos | script/energy.sh | Shell | mit | 589 |
#!/bin/bash
cd ../board
make clean
while true; do
make ota
sleep 10
done
| klaus385/openpilot | panda/tests/flashing_loop.sh | Shell | mit | 79 |
add_lunch_combo cm_f5-userdebug
| Packmaan7144/android_device_doogee_f5 | vendorsetup.sh | Shell | gpl-2.0 | 32 |
#!/bin/bash
no_feats=false
no_wav=false
no_text=false
for x in `seq 3`; do
if [ "$1" == "--no-feats" ]; then
no_feats=true
shift;
fi
if [ "$1" == "--no-text" ]; then
no_text=true
shift;
fi
if [ "$1" == "--no-wav" ]; then
no_wav=true
shift;
fi
done
if [ $# -ne 1 ]; then
echo "Us... | Louiiiss/ros_asr | src/utils/validate_data_dir.sh | Shell | gpl-2.0 | 9,251 |
#!/bin/sh
echo "=====> Stopping hackerbrasileiro service"
ssh -i /var/go/hackerbrasileiro-key.pem ubuntu@52.11.131.93 "service hackerbrasileiro stop"
echo "=====> Removing hackerbrasileiro jar"
ssh -i /var/go/hackerbrasileiro-key.pem ubuntu@52.11.131.93 "rm -rf app/hackerbrasileiro.jar"
echo "=====> Generate jar"
./... | ThoughtWorksInc/hackerbrasileiro | infrastructure/scripts/aws/install.sh | Shell | gpl-3.0 | 887 |
# Name: Install Brackets
# Command: adobe_brackets
adobe_brackets() {
show_func "Installing Brackets"
if [[ "$(adobe_brackets_test)" = "Installed" ]]; then
show_status "Brackets already installed"
else
show_msg "Installing dependencies"
install_pkg atk ca-certificates cairo cups dbus expat fontconfig freet... | oaeide/fedy | plugins/soft/adobe_brackets.sh | Shell | gpl-3.0 | 2,705 |
# Test for the syslinux version
function get_syslinux_version {
local syslinux_version
syslinux_version=$(get_version extlinux --version)
if [[ -z "$syslinux_version" ]]; then
syslinux_version=$(get_version syslinux --version)
fi
if [[ -z "$syslinux_version" ]]; then
syslinux_vers... | phracek/rear | usr/share/rear/lib/bootloader-functions.sh | Shell | gpl-3.0 | 24,845 |
#!/bin/bash
set -xe
cat /etc/fstab | grep '/tmp' && exit 0
echo "tmpfs /tmp tmpfs nodev,nosuid 0 0" >> /etc/fstab
echo "tmpfs /var/log tmpfs nodev,nosuid 0 0" >> /etc/fstab
| johan--/openrov-image-customization | customizations/0010-use-tmpfs-for-tmp-and-log.sh | Shell | agpl-3.0 | 219 |
#!/bin/sh
./trajectory.py --config configs/kuka_lwr4.yaml --model_real model/kuka_lwr4.urdf --model model/kuka_lwr4.urdf --world model/world_kuka.urdf
| kjyv/FloBaRoID | examples/optimize_kuka_lwr4.sh | Shell | lgpl-3.0 | 152 |
#!/bin/bash
#
# Copyright 2012 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 ... | wanrui/ngx_pagespeed | test/nginx_system_test.sh | Shell | apache-2.0 | 123,959 |
source user-env.sh
function start(){
curl -s -u $user:$pass -H 'X-Requested-By: ambari' -X PUT -d \
'{"RequestInfo": {"context" :"Start '"$1"' via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' \
http://$host/api/v1/clusters/$cluster/services/$1
}
function startWait(){
curl -s -u $user:$pass -... | Luxillo/iot-truck-streaming | setup/bin/ambari_util.sh | Shell | apache-2.0 | 1,362 |
#!/bin/bash
#
# Script to train a syntactic dependency parser model
#
if [ "$#" -ne 1 ]; then
echo "You must provide the model name in the command line!"
exit 1
fi
MODELH="$1"h
MODELL="$1"l
MTL_MODEL="$1"
#echo "Using $MODELH for heads and $MODELL for labels."
echo "Using $MTL_MODEL for the joint head/label... | sistanlp/processors | scripts/train-deps.sh | Shell | apache-2.0 | 609 |
#!/bin/bash
#finds wso2 product prodess in provided location and kills it. Then restarts the server after a defined time period. Continues to do this until the script is stopped.
DOWNTIME=1m
UPTIME=1m
SERVERHOME=/home/pubudup/Documents/WSO2_Products/MB/320/M2/25Aug/n1/wso2mb-3.2.0-M2/bin
while [ true ]
do
PID=`ps -ef |... | wso2/wso2-qa-artifacts | tools/scripts/bash_scripts/Script_to_Restart_WSO2_Server/restart.sh | Shell | apache-2.0 | 510 |
#!/usr/bin/env bash
# Copyright 2017 The TensorFlow 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... | ghchinoy/tensorflow | tools/tf_env_collect.sh | Shell | apache-2.0 | 4,503 |
#!/usr/bin/env bash
GIT_SHA=$(git rev-parse --short HEAD)
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
echo $GIT_SHA
else
echo "$GIT_SHA-dirty"
fi | tsandall/contrib | opa-iptables/build/get-build-commit.sh | Shell | apache-2.0 | 167 |
#!/bin/sh
## @author shivaram.mysore@gmail.com
SCREEN="screen -S FaucetController"
#VERBOSE=--verbose
VERBOSE=
RYU_CMD="/usr/bin/ryu-manager $VERBOSE --ofp-tcp-listen-port 6653 /usr/lib/python2.7/site-packages/ryu_faucet/org/onfsdn/faucet/faucet.py"
$SCREEN -X stuff 'command ^C'
echo "Clearing log files ..."
rm -f... | gwacter/faucet | src/pkg/OpenSUSE/misc_tools/restart_faucet.sh | Shell | apache-2.0 | 560 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | daiyanwang/DYStore | DYStore/Pods/Target Support Files/Pods/Pods-resources.sh | Shell | apache-2.0 | 4,865 |
#"""
#/**
#* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#*
#* WSO2 Inc. licenses this file to you 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... | Shabirmean/product-iots | modules/samples/droneanalyzer/feature/feature/src/main/resources/agent/startService.sh | Shell | apache-2.0 | 3,933 |
#!/bin/bash -exu
exec psql webbench webbench
| bhurt/webbench | database/login.sh | Shell | bsd-2-clause | 46 |
#!/bin/sh
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# Example unit test for the mkdir command.
#
# There are times when an existing shell script needs to be tested. In this
... | matschaffer/astley | test/shunit2-2.1.5/examples/mkdir_test.sh | Shell | mit | 2,278 |
#!/bin/bash
#this script will install necessary ubuntu packages for gatk-pipeline
set -e -x
apt-get update
apt="apt-get install -qq "
for dep in "basename" "realpath" "dirname" "pigz" "zcat" "aria2" "wget" "curl"
do
which $dep >/dev/null 2>/dev/null || $apt $dep
done
which java || $apt openjdk-7-jre
#needed for pa... | pbelmann/gatk-swe | misc/install_dependencies.sh | Shell | gpl-3.0 | 341 |
#!/bin/bash -e
if [ "$ACTION" = installhdrs ]; then exit 0; fi
if [[ "$PLATFORM_NAME" != "macosx" ]]; then exit 0; fi
UNIFDEF_FLAGS=""
MANPAGES_LIST="${SRCROOT}/man/manpages.lst"
FILES=$(find -E ${SRCROOT} -regex '.*/[^.]+\.[0-9]' -type f)
cat ${MANPAGES_LIST} | grep -v -E '(^#|^\s*$)' | while read first solid rest... | darlinghq/darling | src/libmalloc/xcodescripts/manpages.sh | Shell | gpl-3.0 | 1,030 |
# bash completion support for ceylon
#
# To use this:
# 1. Copy the file somewhere (e.g. ~/.ceylon/ceylon-completion.bash)
# 2. Add the following to your .bashrc
# source ~/.ceylon/ceylon-completion.bash
#
__ceylon_args() {
for var in "${COMP_WORDS[@]}"
do
echo -n "${var} "
done
}
__ceylon_c... | ceylon/ceylon | dist/contrib/scripts/ceylon-completion.bash | Shell | apache-2.0 | 546 |
#!/bin/bash
# make relative paths work.
cd $(dirname $0)/..
if [[ -z "$GOPACKAGES" ]]; then
GOPACKAGES=socialapi/...
fi
v=$(./go/bin/varcheck $GOPACKAGES | grep -v vendor 2>&1)
if [ -n "$v" ]; then
#log it
echo $v
exit 1
fi
| alex-ionochkin/koding | scripts/govarcheck.sh | Shell | apache-2.0 | 245 |
# The MIT License (MIT)
# Copyright (c) 2014 Alexey Melnichuk
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | openwhisk/openwhisk-apigateway | tools/travis/setenv_lua.sh | Shell | apache-2.0 | 1,271 |
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2010-2016 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following condi... | reedcwilson/dotfiles | zsh/zsh-syntax-highlighting/highlighters/brackets/brackets-highlighter.sh | Shell | mit | 4,318 |
# Node Version Manager
# Implemented as a POSIX-compliant function
# Should work on sh, dash, bash, ksh, zsh
# To use source this file from your bash profile
#
# Implemented by Tim Caswell <tim@creationix.com>
# with much bash help from Matthew Ranney
{ # this ensures the entire script is downloaded #
NVM_SCRIPT_SOUR... | DigitallySeamless/nvm | nvm.sh | Shell | mit | 58,752 |
#!/bin/bash
# Split an upstream tarball into +dfsg, and libclamunrar.
if test $# -ne 2; then
echo -e "Usage: $0 <PATH> <VERSION>\n\t<PATH> - directory that contains clamav-<VERSION>.tar.gz";
exit 1;
fi
test -d $1 || { echo "Directory $1 doesn't exist"; exit 2; }
TARBALL="$PWD/$1/clamav-$2.tar.gz"
test -f $TARB... | Bytewerk/uClinux-ipcam | user/clamav/contrib/split-tarball.sh | Shell | gpl-2.0 | 3,392 |
#!/bin/sh
#
# Copyright 2005-2016 Intel Corporation. All Rights Reserved.
#
# This file is part of Threading Building Blocks. Threading Building Blocks is free software;
# you can redistribute it and/or modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Found... | wilkemeyer/intel-tbb | build/version_info_linux.sh | Shell | gpl-2.0 | 2,307 |
#!/bin/bash -xe
presto-server/target/presto-server-$PRESTO_VERSION/bin/launcher \
-Dnode.id=$HOSTNAME \
--config=/etc/master/config.properties \
--jvm-config=/etc/master/jvm.config \
--log-levels-file=/etc/master/log.properties \
--data-dir=/var/presto \
$*
| toyama0919/presto | presto-product-tests/etc/singlenode/presto-dev-env/presto-launcher-wrapper.sh | Shell | apache-2.0 | 272 |
#!/bin/bash
# this just documents some commands we ran, it's not an automated test.
# run it from this directory.
export PATH=$PATH:../src
( echo 11 12 13; echo 11 12 13 14 ) | get-text-counts 2 | sort | uniq -c | get-int-counts int.1gram int.2gram
merge-counts int.2gram,1.0 > merged.2gram
discount-counts 0.8 0.7 0.... | keli78/pocolm | test/test-backprop2.sh | Shell | apache-2.0 | 2,455 |
#!/bin/bash
# Copyright 2015, Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditio... | madongfly/grpc | tools/run_tests/run_csharp.sh | Shell | bsd-3-clause | 2,678 |
#!/bin/bash
FN="rae230bcdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/rae230bcdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/rae230bcdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rae230bcdf/bioconductor-rae230bcdf_2.18.0_src_all.tar... | joachimwolff/bioconda-recipes | recipes/bioconductor-rae230bcdf/post-link.sh | Shell | mit | 1,308 |
#!/bin/sh
#
# Run this script to set up a test CA, and test key-certificate pair for a
# server, and various clients.
#
# Copyright (C) 2014 Steffan Karger <steffan@karger.me>
set -eu
command -v openssl >/dev/null 2>&1 || { echo >&2 "Unable to find openssl. Please make sure openssl is installed and in your path."; exi... | eliasp/openvpn | sample/sample-keys/gen-sample-keys.sh | Shell | gpl-2.0 | 3,007 |
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow 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... | ghchinoy/tensorflow | tensorflow/contrib/makefile/compile_nsync.sh | Shell | apache-2.0 | 15,410 |
#!/bin/bash
#In order to use this file properly, put #!/usr/local/bin/mscript at the top of your
#script file, set it to executable, then run it with ./file.ms
#If you need to run it under debug conditions, export DEBUG_MSCRIPT=1
#and it will start up in suspended debug mode, on port 9001. (This is not changable)
#To ... | Techcable/CommandHelper | src/main/resources/interpreter-helpers/bash.sh | Shell | mit | 917 |
#!/bin/bash -xe
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
#FIXME(mattymo): Update CentOS to 6.6
yum downgrade -y libcom_err libselinux libselinux-utils
# Install necessary packages
yum install -y sudo ami-creator python-da... | teselkin/fuel-main | docker/fuel-centos-build/start.sh | Shell | apache-2.0 | 688 |
#!/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... | whitmo/kubernetes | cluster/aws/templates/create-dynamic-salt-files.sh | Shell | apache-2.0 | 4,185 |
#!/bin/bash
#
# Copyright (c) 2012 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.
# TODO(mmoss) This currently only works with official builds, since non-official
# builds don't add the "${BUILDDIR}/installer/" files need... | ltilve/ChromiumGStreamerBackend | chrome/installer/linux/debian/build.sh | Shell | bsd-3-clause | 10,645 |
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# shellcheck source=/dev/null
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh"
# load source files externals
if [ -e "$HOME/.pyenv" ]; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
cd "${ROOT_DIR}" || exit
pyenv virtualenv "${PYTHON_... | hadenlabs/cookiecutter-ansible-role | {{cookiecutter.repo_name}}/script/pyenv.sh | Shell | mit | 453 |
#!/bin/bash
# configs/ez80f910200kitg/ostest/setenv.sh
#
# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1... | IUTInfoAix/terrarium_2015 | nuttx/configs/ez80f910200kitg/ostest/setenv.sh | Shell | bsd-2-clause | 2,543 |
hostapd_add_rate() {
local var="$1"
local val="$(($2 / 1000))"
local sub="$((($2 / 100) % 10))"
append $var "$val" ","
[ $sub -gt 0 ] && append $var "."
}
hostapd_add_basic_rate() {
local var="$1"
local val="$(($2 / 100))"
append $var "$val" " "
}
hostapd_append_wep_key() {
local var="$1"
wep_keyidx=0
set... | lbthomsen/myopenwrt | package/network/services/hostapd/files/netifd.sh | Shell | gpl-2.0 | 15,607 |
#!/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 A... | adufilie/flex-sdk | mustella/tests/PerModuleStyles/merging/checkMerging2006.sh | Shell | apache-2.0 | 1,192 |
#!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
# MacOSX Build fix: https://github.com/chapmanb/homebrew-cbl/issues/14.
sed -i.bak 's/LDFLAGS=-Wl,-s/LDFLAGS=/g' vcflib/smithwaterman/Makefile
export CXXFLAGS="${CXXFLAGS} -std=c++11 -stdlib=libc++"
sed -i.bak 's/-std=c++0x/-std=c++11 -stdlib=libc++/g' vc... | jerowe/bioconda-recipes | recipes/freebayes/build.sh | Shell | mit | 3,073 |
#!/bin/bash
##
#
# lp:917416
# https://bugs.launchpad.net/codership-mysql/+bug/917416
#
# BUG BACKGROUND:
#
# BF processing can kill local transactins doing only reads. One situation
# where this happens very probably is when DDL is run under TO isolation
# and some local transaction tries to read from mysql databa... | percona/debian-percona-galera-3 | tests/regressions/lp917416/run.sh | Shell | gpl-2.0 | 4,790 |
#!/bin/sh
cd "`dirname \"$0\"`"
./soaktest.sh
./soaktest-vlan.sh
| dpino/snabbswitch | src/program/lwaftr/tests/soaktest/selftest.sh | Shell | apache-2.0 | 65 |
#!/bin/bash
set -ex
VERSION=$1
IMAGE_NAME="networknt/com.networknt.ab-1.0.0"
showHelp() {
echo " "
echo "Error: $1"
echo " "
echo " build.sh [VERSION]"
echo " "
echo " where [VERSION] version of the docker image that you want to publish (example: 0.0.1)"
echo " "
echo " exam... | networknt/light-java-example | discovery/api_b/token/build.sh | Shell | apache-2.0 | 1,152 |
#!/bin/bash
$PYTHON setup.py install
chmod -R o+r $PREFIX/lib/python*/site-packages/multiqc_bcbio*
| JenCabral/bioconda-recipes | recipes/multiqc-bcbio/build.sh | Shell | mit | 100 |
#!/bin/sh
#
# Copyright 2014 Google 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 a... | CLD2Owners/cld2 | internal/compile.sh | Shell | apache-2.0 | 4,008 |
#!/bin/sh
halrun tp.ini
| terkaa/linuxcnc | tests/twopass/test.sh | Shell | gpl-2.0 | 24 |
#!/bin/sh
# Copyright 2005-2016 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate t... | lophyel/mupdf-for-mac | thirdparty/freetype/autogen.sh | Shell | gpl-3.0 | 3,931 |
mult1() echo 1; mult2() echo 2; mult3() { echo 1 }; alias alias=mult1
function baz() {}
function baz_2() {
baz_2_inner() baz
}
function with-dash() {
with-dash_2() {
with-dash_inner() baz
}
}
function noParen {
:
}
function -starting-with-dash() {
-starting-with-dash_2() {
-starting-with-dash_in... | ffes/ctags | Units/sh-statements.d/input.sh | Shell | gpl-2.0 | 378 |
#!/usr/bin/env bash
# Copyright 2017 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 applica... | Stackdriver/heapster | vendor/k8s.io/kubernetes/staging/src/k8s.io/code-generator/hack/verify-codegen.sh | Shell | apache-2.0 | 1,507 |
#!/usr/bin/env bash
#
# Copyright (C) 2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
SELF=${0##*/}
READELF="${READELF:-readelf}"
OBJCOPY="${OBJCOPY:-objcopy}"
TARGETS=$*
XARGS="${XARGS:-xargs -r}"
[ -z "$TARGETS" ] && {
echo "$SEL... | D-Albers/source | scripts/gen-dependencies.sh | Shell | gpl-2.0 | 935 |
node ../../r.js/r.js all-server.js
| Brother-Simon/grunt-frontend-workflow | www/js/lib/requirejs/tests/alln.sh | Shell | mit | 35 |
#!/bin/bash
set -e
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
versions=( "$@" )
if [ ${#versions[@]} -eq 0 ]; then
versions=( */ )
fi
versions=( "${versions[@]%/}" )
packagesUrl='https://raw.githubusercontent.com/antirez/redis-hashes/master/README'
packages="$(echo "$packagesUrl" | sed -r 's/[^a-zA-Z.-]+/-/g')... | ricardorsierra/dockerfiles | redis/update.sh | Shell | mit | 1,743 |
#!/usr/bin/env bash
set -e
version=''
# rev
version="$version$(git rev-parse HEAD)"
# latestTag
version="$version\n$(git describe --tags --abbrev=0)"
# commitCount
version="$version\n$(git log --oneline $(git describe --abbrev=0 --tags)..HEAD | wc -l | awk '{ print $1 }')"
# subject
version="$version\n$(git show -s -... | daGrevis/msks | frontend/src/scripts/build.sh | Shell | mit | 497 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.