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 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
echo "Installing Apache and setting it up..."
yum -y update > /dev/null 2>&1
yum -y install httpd
yum -y install mysql
rm -rf /var/www/html
ln -fs /vagrant /var/www/html
/etc/init.d/iptables stop
/etc/init.d/httpd start
| hiroharu8864/vagrant_apache_mysql | web_provision.sh | Shell | apache-2.0 | 240 |
#!/usr/bin/env bash
LIB_VERSION=0.1.4
CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1
MASON_NAME=geojson
MASON_VERSION=${LIB_VERSION}
MASON_LIB_FILE=lib/libgeojson.a
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \
f0a... | hydrays/osrm-backend | third_party/mason/scripts/geojson/0.1.4/script.sh | Shell | bsd-2-clause | 900 |
#!/bin/bash
if [ "$TRAVIS_OS_NAME" == "linux" ];
then
sudo apt-get update -qq
sudo apt-get install -y -qq build-essential openssl libxml2-dev libncurses5-dev uuid-dev sqlite3 libsqlite3-dev pkg-config curl libjansson-dev
sudo apt-get install -y -qq curl libssl-dev git cmake libevent-dev libjansson-dev libbsd... | pchero/jade | scripts/travis_install.sh | Shell | bsd-2-clause | 1,013 |
#!/usr/bin/env ./tester
#
include str
include path
include assert
monkey_input="/- /- -/ -/./a/..// "$'\r\n\t'"/@\\/\${}/;'"
simplified_monkey_input="/- /- -/ -/ "$'\r\n\t'"/@\\/\${}/;'"
testcase_begin "$@"
test_remove_trailing_slash() {
assert that path_remove_trailing_slash "/test/me/" writes "/test/me"
}
test_remo... | git-e/bash_include | test/test-path.sh | Shell | bsd-2-clause | 10,761 |
# Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2>/dev/null)" != "UTF-8" ]]
then
export LC_ALL="en_US.UTF-8"
fi
# Where we store built products; a Cellar in HOMEBREW_PREFIX (often /usr/local
# for bottles) unless there's already a Cellar in HOMEBREW_REPOSITORY.
i... | aw1621107/brew | Library/Homebrew/brew.sh | Shell | bsd-2-clause | 11,205 |
#!/bin/bash
$PYTHON -m pip install --no-deps --ignore-installed .
# Remove versioned entrypoints.
PY_VER_MAJ=$($PYTHON -c "import os; print('_'.join(os.environ['PY_VER'].split('.')[0]))")
rm "${PREFIX}/bin/coverage${PY_VER_MAJ}"
rm "${PREFIX}/bin/coverage-${PY_VER}"
ls $PREFIX/bin/coverage*
| jjhelmus/berryconda | recipes/coverage/build.sh | Shell | bsd-3-clause | 297 |
#!/bin/sh
#
# Copyright (c) 2007 BUSINESS OBJECTS SOFTWARE LIMITED
# 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 notic... | levans/Open-Quark | src/export/OpenQuark_Build/Run_Scripts/quarkc.sh | Shell | bsd-3-clause | 3,398 |
#!/bin/bash
cd ../assets
xxd -i default-background.png > ../all/native/assets/DefaultBackgroundPNG.h
xxd -i default-line.png > ../all/native/assets/DefaultLinePNG.h
xxd -i default-marker.png > ../all/native/assets/DefaultMarkerPNG.h
xxd -i default-point.png > ../all/native/assets/DefaultPointPNG.h
xxd -i default-polyg... | CartoDB/mobile-sdk | scripts/generate-assets.sh | Shell | bsd-3-clause | 878 |
#!/bin/bash
# Torque submission script for SciNet gravity
#
# N.B: PBS lines are interpreted by qsub. Change these defaults as
# required
#
#PBS -l nodes=1:ppn=12:gpus=2,walltime=2:00:00
#PBS -N SdA_hyperparams
#PBS -q gravity
# Load theano modules
#cd ~/jobscripts
#sh load_theano_modules.sh
# Run the job
# To mak... | lzamparo/SdA_reduce | theano_models/SdA/hyperparam_search/submit_hypersearch_momentum.sh | Shell | bsd-3-clause | 581 |
#!/usr/bin/env bash
port=${2:-8081}
CURRENT_ENV=${NODE_ENV:-"development"}
ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT:-$ANDROID_HOME}
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo " ☛ Bootstrapping Expo in ${CURRENT_ENV} mode"
"$DIR/setup-android-project.sh"
if ! $ANDROID_SDK_ROOT/tools/android list avd ... | exponentjs/exponent | apps/bare-expo/scripts/start-emulator.sh | Shell | bsd-3-clause | 2,000 |
#!/bin/bash
../../../def_lang/bin/pc/debug/generator --def settings.def --namespace silk::settings --xheader gen_support.h
| jeanleflambeur/silkopter | silkopter/rc/def/generate.sh | Shell | bsd-3-clause | 124 |
#!/bin/zsh
. ./env.sh
cat fixtures/all/*.ll > fixtures/all.ll
cat fixtures/success/*.ll > fixtures/success.ll
for d in fixtures/*/; do
if [ "$d" != fixtures/all/ ]; then
for f in "$d"*.ll; do
b="$(basename "$f")"
link fixtures/all/"$b" "$f"
done
fi
done
for t in tests/**/*.t/*.ll issues/**/*... | np/ling | relink.sh | Shell | bsd-3-clause | 691 |
export MONGO_URL="mongodb://localhost:27017/MedBook"
if [ -z "$1" ]; then
meteor --port 3000
else
meteor $1 --port 3000
fi
| UCSC-MedBook/MedBook_ | wrangler/config/starrynight/run.sh | Shell | bsd-3-clause | 132 |
service_save ()
{
# Save configuration of previous installation in ${SYNOPKG_PKGDEST}/etc (upgrades use ${SYNOPKG_PKGDEST}/var)
if [ -e "${SYNOPKG_PKGDEST}/etc/Muttrc.local" ]; then
echo "migrate ${SYNOPKG_PKGDEST}/etc/Muttrc.local to ${SYNOPKG_PKGDEST}/var/Muttrc.local"
mv ${SYNOPKG_PKGDEST}/e... | Zetten/spksrc | spk/mutt/src/service-setup.sh | Shell | bsd-3-clause | 370 |
# Setup environment
PATH="${SYNOPKG_PKGDEST}/bin:${PATH}"
GROUP="sc-minio"
INST_ETC="/var/packages/${SYNOPKG_PKGNAME}/etc"
INST_VARIABLES="${INST_ETC}/installer-variables"
service_postinst ()
{
echo "WIZARD_DATA_DIRECTORY=${wizard_data_directory}" >> ${INST_VARIABLES}
echo "WIZARD_ACCESS_KEY=${wizard_access_k... | Zetten/spksrc | spk/minio/src/service-setup.sh | Shell | bsd-3-clause | 891 |
docker pull redis
docker run --name redis -d redis redis-server --appendonly yes | oscm/devops | docker/bin/redis/test.sh | Shell | mit | 81 |
#!/usr/bin/env bash
until psql "postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:${PGPORT}/postgres" -lqt &>/dev/null; do
echo "waiting for database to start up"
sleep 5
done
psql "postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:${PGPORT}" -lqt 2> /dev/null | cut -d \| -f 1 | grep -wq "${PGDATABASE}" || bundle exec rails... | MarkUsProject/Markus | .dockerfiles/production_demo/entrypoint-prod-rails.sh | Shell | mit | 484 |
#!/usr/bin/env bash
export LC_ALL=C
INFILE="$1"
OUTFILE="$2"
hexdump -v -e '8/1 "0x%02x, "' -e '"\n"' $INFILE | sed -e 's/0x ,//g' >> $OUTFILE | PIVX-Project/PIVX | contrib/devtools/hexdump_util.sh | Shell | mit | 146 |
#!/bin/bash
FN="FDb.UCSC.snp135common.hg19_1.0.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.11/data/annotation/src/contrib/FDb.UCSC.snp135common.hg19_1.0.0.tar.gz"
"https://bioarchive.galaxyproject.org/FDb.UCSC.snp135common.hg19_1.0.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-fdb.ucs... | roryk/recipes | recipes/bioconductor-fdb.ucsc.snp135common.hg19/post-link.sh | Shell | mit | 1,524 |
#!/usr/bin/env sh
# -*- Mode: sh -*-
# test_tar.sh --- test tar archiving
# Copyright (C) 2016 Dan Harms (dan.harms)
# Author: Dan Harms <enniomore@icloud.com>
# Created: Tuesday, August 9, 2016
# Version: 1.0
# Modified Time-stamp: <2016-08-20 08:01:32 dharms>
# Modified by: Dan Harms
# Keywords: tar
base=${1:-"bas... | articuluxe/harmsway | scripts/test/test_tar.sh | Shell | mit | 1,565 |
#!/bin/bash
set -o errexit
cd cli
npm install
node dist/cli.js validate-defs
node dist/cli.js run-tests "$@"
| LegNeato/flow-typed | run_def_tests.sh | Shell | mit | 112 |
#!/bin/bash
#kill solr process
pkill -f solr
#remove old data
rm -rf solr/data
rm -rf solr/default
rm -rf solr/development
rm -rf solr/pids
rm -rf solr/test
while getopts 'pdt' flag; do
case "${flag}" in
d) export RAILS_ENV=development ;;
p) export RAILS_ENV=production ;;
t) export RAILS_ENV=test ;;
... | cufcq/cufcq | total_reload.sh | Shell | mit | 1,203 |
#! /bin/bash
echo "Setup a Cloud9 environment for Meadow Endpoint Load Tests"
echo "MIT License."
echo "steven velozo <steven@velozo.com>"
echo ""
echo "---"
echo ""
echo "## MySQL Parameters exist. Script running!"
echo "##"
echo ""
echo "!! This may be bad to run on anything but a Cloud9 virtual machine !!"
echo ""
... | jasonhillier/meadow | cloud9setup.sh | Shell | mit | 761 |
#!/bin/sh
wget -erobots=off --mirror --convert-links --adjust-extension --page-requisites --no-parent $1
| oxalorg/dotfiles | scripts/webscraping/mirror_offline.sh | Shell | mit | 105 |
#!/bin/bash
NAME=$1
#this stuff might change from run to run
#EXECUTABLE=${HOME}/bin/decomp/alps_mad
EXECUTABLE=/usr/bin/perl
WRAPPER=${HOME}/bin/decomp/license_wrapper.pl
PARAM_FILE=${HOME}/bin/decomp/${NAME}.parm
INIT_DIR=${HOME}/running/decomp/mad/${NAME}
ARGS="${WRAPPER} --param ${NAME}.parm"
INST_DIR=$HOME/COIN/... | tkralphs/Dip | Dip/examples/scripts/condor/createsub_lnx_cplex_mad.sh | Shell | epl-1.0 | 2,174 |
#!/bin/bash
SCRIPT="sms"
VERSION="1.9.9"
EXTRA_DIST=""
BUILD_TARGZ="no"
BUILD_TARBZ2="no"
BUILD_ZIP="yes"
| un1versal/kvirc-scripts | sms/config.sh | Shell | gpl-2.0 | 111 |
#!/bin/bash
#
# build-iso.sh - builds OpenXPKI Project Root CA Bootable Live Medium
# Copyright (c) 2013 OpenXPKI Project
# Authors: Scott Hardin, Gideon Knocke and Martin Bartosch
#
ORGANIZATION="OpenXPKI"
USERNAME="user"
HOSTNAME="rootca"
#ARCHITECTURE="i386"
#ARCHITECTURE="amd64"
#LINUX_FLAVOUR="686-pae"
PACKAGES=... | mrscotty/clca | package/debian-live/build-iso.sh | Shell | gpl-2.0 | 2,902 |
# ----------------------------------------------------------------------------
# Lista constantes matemáticas e físicas e unidades do SI.
# Argumentos:
# -m: Apenas constantes matemáticas.
# -f: Apenas constantes físicas.
# -s: Unidades usadas no SI (Sistema Internacional de Unidades).
# -a: Dados astronômicos ... | funcoeszz/funcoeszz | zz/zzconstantes.sh | Shell | gpl-2.0 | 4,384 |
#!/bin/bash
#_______________________________________________________________________
# Authors: phillips321 (matt@phillips321.co.uk)
# Ion/ikoniaris (http://bruteforce.gr)
# Ari Davies (kussic@chaos6.net)
# Rich Hicks (http://about.me/R.Hicks)
# License: CC BY-SA 3.0
# Use: ... | ausarbluhd/EternalLLC | scripts/phillips321/bt5/bt5-fixit.sh | Shell | gpl-2.0 | 24,316 |
#!/bin/bash
# Created by Roel Van de Paar, Percona LLC
if [ "" == "$1" ]; then
echo "This script outputs the extra mysqld options used in a given RQG trial. It expects one parameter: the trial number to analyze. Ensure that startup.sh has already been executed for this trial."
exit 1
else
TRIAL=$1
if [ ! -r ./... | ShahriyarR/percona-qa | myextra.sh | Shell | gpl-2.0 | 3,894 |
# The Real-Time eXperiment Interface (RTXI)
# Copyright (C) 2011 Georgia Institute of Technology, University of Utah, Weill Cornell Medical College
#
# 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 Foundati... | francis-ortega/rtxi-francis | scripts/test_rt_kernel.sh | Shell | gpl-3.0 | 2,893 |
# sgi mpi instead of mpich2 ----------------------------
perl -i -pe "s!^DM_FC.*!DM_FC = \\$\(SFC\) -lmpi !" configure.wrf
perl -i -pe "s!^DM_CC.*!DM_CC = \\$\(SCC\) -lmpi -DMPI2_SUPPORT!" configure.wrf
perl -i -pe "s!(^FCFLAGS.*)!\$1 -DARCH_INTEL!" configure.wrf
# --------------------... | akhfa/wrf_install | sgi/fix.configure.wrf.intel.sh | Shell | gpl-3.0 | 355 |
#!/bin/sh
cd "`dirname \"$0\"`"
java -Xmx1024m -jar $project.build.finalName$ | xitongzou/cardforge | build/forge.sh | Shell | gpl-3.0 | 77 |
#!/bin/sh
# *************************************************************************
#
# This file is part of Qt Creator
#
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
#
# Contact: Nokia Corporation (qt-info@nokia.com)
#
# Commercial Usage
#
# Licensees holding valid Qt Commercial license... | TheProjecter/project-qtcreator | src/plugins/designer/syncqtheader.sh | Shell | lgpl-2.1 | 2,206 |
#!/bin/bash
# deploy.sh deploys a pachyderm 1.7 cluster
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# shellcheck disable=SC1090
source "${SCRIPT_DIR}/../../../govars.sh"
set -x
# Install old version of pachctl, for migration tests
if [[ ! -f "${GOBIN}/pachctl_1_7" ]]; then
curl ... | pachyderm/pfs | etc/testing/migration/v1_7/deploy.sh | Shell | apache-2.0 | 1,223 |
#!/bin/bash
curl --verbose localhost:8500/operations/health | python -m json.tool
| kurron/docker-monitor-rabbitmq | check-health.sh | Shell | apache-2.0 | 84 |
#! /bin/bash
export APP_HOME=`cd $(dirname $0)/; pwd`
export DEEPDIVE_HOME=`cd $(dirname $0)/../../../; pwd`
# Database Configuration
export DBNAME=deepdive_spouse_plpy
export PGUSER=${PGUSER:-`whoami`}
export PGPASSWORD=${PGPASSWORD:-}
export PGPORT=${PGPORT:-5432}
export PGHOST=${PGHOST:-localhost}
# Initialize d... | feiranwang/deepdive | examples/spouse_example/plpy_extractor/run.sh | Shell | apache-2.0 | 491 |
#!/bin/bash
source conf/drillTestConfig.properties
mkdir ${DRILL_TEST_DATA_DIR}/Datasources/ctas/decimal/fragments/negative
tar -xzmvf ${DRILL_TEST_DATA_DIR}/Datasources/ctas/decimal/fragments/decimal_big_zero_scale.tar.gz -C ${DRILL_TEST_DATA_DIR}/Datasources/ctas/decimal/fragments/negative
hadoop fs -mkdir -p /dri... | krystaln/drill-test-framework | framework/resources/Datasources/ctas/decimal/fragments/decimal_fragments_negative.sh | Shell | apache-2.0 | 999 |
#!/bin/bash
SCRIPT_DIR=$(dirname $0)
MANAGE_CMD=${SCRIPT_DIR}/runManageCmd.sh
# ==============================================================================================================================
usage() {
cat <<-EOF
=======================================================================================... | WadeBarnes/TheOrgBook | tob-api/reprocessCredentials.sh | Shell | apache-2.0 | 1,105 |
#!/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. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Lic... | eric-haibin-lin/mxnet | cd/python/docker/test_python_image.sh | Shell | apache-2.0 | 1,632 |
#!/usr/bin/env bash
set -e # Exit with nonzero exit code if anything fails
START_TIME=$SECONDS
echo -n "NPM Version: " && npm --version
echo -n "Node Version: " && node --version
npm install
npm run build
#ng test
echo "Directory content after build:"
ls -al
ELAPSED_TIME=$(($SECONDS - $START_TIME))
echo "educama-s... | kraussj/Showcase | services/educama-supplier-simulator-frontend/build.sh | Shell | apache-2.0 | 393 |
#!/bin/bash
# Copyright 2014 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0
# Begin configuration.
stage=0 # This allows restarting after partway, when something when wrong.
feature_type=mfcc
add_pitch=false
mfcc_config=conf/mfcc.conf # you can override any of these you need to override.
plp_config=con... | keighrim/kaldi-yesno-tutorial | steps/online/nnet3/prepare_online_decoding.sh | Shell | apache-2.0 | 6,705 |
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"/../
cd "${DIR}" || exit 1
. env.sh || exit 1
# safe guard from empty env
[ -n "$DEV_CY3_BUNDLE_DIR" ] || exit 1
# create bundle dir
if [ ! -d "$DEV_CY3_BUNDLE_DIR" ]; then
if [ -e "$DEV_CY3_BUNDLE_DIR" ]; then
rm "$DEV_CY3_BUNDLE_DIR"... | OpenBEL/kam-nav | scripts/deploy.sh | Shell | apache-2.0 | 475 |
#!/bin/bash
onos-app $OC1 reinstall! target/*.oar | CatalanFreedom/add-unibo-intent | install.sh | Shell | apache-2.0 | 50 |
#!/bin/sh
# This script runs after install is complete, but inside the installer
# environment. This is useful for carrying work done in pre/during the
# installer into the installed environment.
# It is almost certainly more useful to use post.sh or firstboot.sh
# for customization, which will run in a more normal ... | xcat2/confluent | confluent_osdeploy/rhvh4/profiles/default/scripts/prechroot.sh | Shell | apache-2.0 | 729 |
export DISTRO_NAME=centos
export DIB_RELEASE=${DIB_RELEASE:-GenericCloud-20141129_01}
| rdo-management/diskimage-builder | elements/centos/environment.d/10-centos6-distro-name.bash | Shell | apache-2.0 | 86 |
#!/bin/sh
. "${TEST_INIT:-./test-init.sh}"
if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..."
exit 0
fi
if [ "$1" = 'actual' ]; then
faketime -f '2000-01-01 00:00:00' "$CALCURSE" --read-only -D "$DATA_DIR"/ \
-r400
elif [ "$1" = 'expected' ]; then
"$CALCURSE" --read-... | veerwang/workbench | test/range-003.sh | Shell | bsd-2-clause | 386 |
#!/bin/bash
# Figure out what dependencies are needed
function get_dependencies() {
packages=()
for arg in $args; do
packages+=($arg)
done
if [[ " ${packages[@]} " =~ " pyne " ]]; then
packages+=(gcc)
packages+=(cmake)
packages+=(python)
packages+=(hdf5)
packages+=(lapack)
packages+... | svalinn/condorht_tools | setup/build.bash | Shell | bsd-2-clause | 4,140 |
#!/usr/bin/env sh
#Pinched from Polybar wiki.
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar topBar &
echo "Bars launched..."
| JackHunt/Emacs | polybar/launch.sh | Shell | bsd-3-clause | 283 |
#!/bin/bash -e
# Builds and tests PDAL
source ./scripts/ci/common.sh
mkdir -p _build || exit 1
cd _build || exit 1
case "$PDAL_OPTIONAL_COMPONENTS" in
all)
OPTIONAL_COMPONENT_SWITCH=ON
;;
none)
OPTIONAL_COMPONENT_SWITCH=OFF
;;
*)
echo "Unrecognized value for PDAL_OP... | radiantbluetechnologies/PDAL | scripts/ci/script.sh | Shell | bsd-3-clause | 1,755 |
export PATH=$PATH:/usr/local/bin/
PYTHON=${PYTHON:-`which python`}
EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
PYLINT=${PYLINT:-`which pylint`}
export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils
export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install
cd $WORKSPACE
# SET SASVIEW GITHASH
cd $WOR... | SasView/sasview | build_tools/jenkins_linux_build.sh | Shell | bsd-3-clause | 1,479 |
nohup dstat -tcm --output /home/panfengfeng/trace_log/in-memory/movies/readwritedel_leveldb_256_3 2 > nohup.out &
file=/data/publicdata/movies/movies.txt
record_num=7911684
read_num=7911684
dirname=/mnt/datamemory
writebuffer=268435456
cachesize=2637228
rm -rf $dirname/*
echo "####Now, running leveldb benchmark"
echo... | panfengfeng/leveldb_nark | on-disk-bench/urwd/test_movies_leveldb.sh | Shell | bsd-3-clause | 1,121 |
#!/bin/bash -ev
patch -p1 < contrib/homebrew/makefile.osx.patch
./contrib/install_db4.sh `pwd`
export CFLAGS=-I`pwd`/db4/include
pushd src
make -f makefile.osx -j$(sysctl -n hw.ncpu)
| ppcoin/ppcoin | scripts/install-osx.sh | Shell | mit | 186 |
#!/bin/bash
# Start just the basic ArloBot ROS setup.
# Use start-robot.sh to start EVERYTHING instead
# Set up ROS Environment
export ROS_HOSTNAME=`uname -n`
export ROS_MASTER_URI=http://localhost:11311
export ROSLAUNCH_SSH_UNKNOWN=1
source ~/catkin_ws/devel/setup.bash
# Grab and save the path to this script
# http:... | DTU-R3/ArloBot | scripts/start-arlobot-only.sh | Shell | mit | 1,042 |
#!/usr/bin/env sh
set -e
sessionid=$1
meshIp=$2
ipv4=$3
ipv4gateway=$4
cidr4=$5
ipv6=$6
ipv6gateway=$7
cidr6=$8
interface4=$9
interface6=$10
source /opt/transitd/include.sh
if [ "$interface4" != "0" ]; then
ifname="transitd_${interface4}"
uci set "network.${ifname}=interface"
uci set "network.${ifname}.proto... | transitd/transitd | lede/opt/transitd/register.sh | Shell | mit | 1,323 |
#!/bin/bash
/usr/sbin/sshd-keygen
/sbin/sshd -D
| qnib/docker-hadoop | opt/qnib/sshd/bin/start.sh | Shell | gpl-2.0 | 51 |
#! /bin/sh
. ../../testenv.sh
analyze 21274.vhd
clean
echo "Test successful"
| tgingold/ghdl | testsuite/gna/bug21274/testsuite.sh | Shell | gpl-2.0 | 81 |
#!/bin/bash
# source ~/Envs/geonode/bin/activate
pushd $(dirname $0)
DJANGO_SETTINGS_MODULE=geonode.settings PPA_GEONODE=geonode/testing paver publish
exit 0
| ppasq/geonode | publish.sh | Shell | gpl-3.0 | 158 |
#! /bin/bash
# Global Yate script that performs 2G/3G authentication
#
# Must be placed in same directory as do_comp128 and do_milenage
#
# Install in extmodule.conf
#
# [scripts]
# /path/to/gsm_auth.sh
cd `dirname $0`
# install in Yate and run main loop
echo "%%>setlocal:trackparam:gsm_auth"
echo "%%>install:95:gsm... | strcpyblog/SubversiveBTS | yatebts/nib/auth/gsm_auth.sh | Shell | gpl-3.0 | 1,911 |
#! /bin/bash
## Offirmo Shell Library
## https://github.com/Offirmo/offirmo-shell-lib
##
## This file defines :
## - unit test of color codes
##
## This file is meant to be executed.
## reset path to be sure we test this local OSL instance
export PATH=../bin:$PATH
source osl_lib_init.sh
source osl_lib_mutex.sh
s... | Offirmo/web-tech-experiments | tosort/2015/simpli/contrib/offirmo-shell-lib/spec/osl_spec_lib_mutex.sh | Shell | unlicense | 3,041 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# insert_and_wait_for_replication insert data in host and wait all replset members
# applied recent oplog entry
function insert_and_wait_for_replication() {
local host
host=$1
local data
data=$2
# Storing document into replset and wait replication t... | fheng/mongodb | 3.2/root/usr/share/container-scripts/mongodb/test-functions.sh | Shell | apache-2.0 | 1,608 |
#!/usr/bin/env bash
dir=`cd "$(dirname "$0")"; pwd`
dir=${dir}/add_network_vlan
RUN_SCRIPT=${dir}/add_network_vlan_run.sh
RUN_LOG=${dir}/add_network_vlan_run.log
rm -rf ${dir}
mkdir -p ${dir}
NETWORK_NAME=${1}
VLAN_ID=${2}
echo "#!/usr/bin/env bash" > ${RUN_SCRIPT}
echo ". /root/adminrc" >> ${RUN_SCRIPT}
echo "cps... | Hybrid-Cloud/orchard | etc/hybrid_cloud/scripts/cascading/update_network_vlan.sh | Shell | apache-2.0 | 465 |
#!/bin/bash
# This script is meant to be the entrypoint for OpenShift Bash scripts to import all of the support
# libraries at once in order to make Bash script preambles as minimal as possible. This script recur-
# sively `source`s *.sh files in this directory tree. As such, no files should be `source`ed outside
# of... | fabianofranz/origin | hack/lib/init.sh | Shell | apache-2.0 | 1,020 |
#!/bin/bash -eu
# Copyright 2021 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... | skia-dev/oss-fuzz | projects/libyang/build.sh | Shell | apache-2.0 | 1,112 |
#!/bin/sh
rm -rf bootfs rootfs firmware packages tmp installer.cpio *.zip *.xz *.img
| bbinet/raspbian-ua-netinst | clean.sh | Shell | isc | 86 |
source ./check.sh
######################################################################
# 1. Test interaction tool for snpEff (v3.1) annotations
######################################################################
echo "sample gene order_of_interaction interacting_gene
M10475 CTBP2 0_order: none
M10475 CTBP2 1_order... | heuermh/gemini | test/test-interactions.sh | Shell | mit | 10,480 |
#!/usr/bin/env bash
# Simple command to run tests using installed bcbio_nextgen python/nose
# Can pass an optional argument with the type of tests to run
# ./run_tests.sh rnaseq
# ./run_tests.sh speed=1
# ./run_tests.sh devel
# Portable resolution of symlinks http://stackoverflow.com/a/24572274/252589
# readlink -f do... | verdurin/bcbio-nextgen | tests/run_tests.sh | Shell | mit | 812 |
#!/usr/bin/env sh
grunt t
grunt test_orig
grunt test_dist
grunt test_min
grunt
grunt test
npm test
| OpenCrisp/Crisp.PathJS | grunt-tests.sh | Shell | mit | 99 |
#!/usr/bin/env bash
THIS_DIR=$(cd $(dirname $0); pwd)
cd $THIS_DIR
update() {
git pull
git submodule update --init --recursive
install_rocks
}
# Will install luarocks on THIS_DIR/.luarocks
install_luarocks() {
git clone https://github.com/keplerproject/luarocks.git
cd luarocks
git checkout tags/v2.3.0-rc... | botzedspam/blackplus | launch.sh | Shell | gpl-2.0 | 3,224 |
#! /bin/sh
if test z"$srcdir" = "z"; then
srcdir=.
fi
command=run_parser_all.sh
one_test_logs_dir=test_log
diffs_dir=diffs
if test "z$LONG_TESTS" = z"yes"; then
echo "Skipping short tests because we are only doing long tests"
exit 77
fi
dir=formatting
arg='simplest_test_css'
name='simplest_test_css'
[ -d "$d... | samdmarshall/info | tp/tests/test_scripts/formatting_simplest_test_css.sh | Shell | gpl-3.0 | 584 |
#!/bin/bash -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# shellcheck disable=SC1090
source "$DIR/common.env.sh"
mkdir -p "${TMP_DIR}" "${TERRAFORM_BIN_TMP_DIR}"
set -x
#for os in "linux" "darwin" "windows"; do
for os in "linux" "darwin"; do
curl -L "${TERRAFORM_BIN_BASE_URL}_${os}_amd64.zip" -o "... | estroz/tectonic-installer | installer/scripts/release/get_terraform_bins.sh | Shell | apache-2.0 | 572 |
#!/bin/sh
# Copyright (c) 2018-2020 Petr Vorel <pvorel@suse.cz>
set -ex
dpkg --add-architecture i386
apt update
apt install -y --no-install-recommends \
linux-libc-dev:i386 \
gcc-multilib \
libacl1:i386 \
libaio1:i386 \
libcap2:i386 \
libc6-dev-i386 \
libc6:i386 \
libkeyutils1:i386 \
libnuma1:i386 \
libssl-... | chenhuacai/ltp | travis/debian.i386.sh | Shell | gpl-2.0 | 369 |
#!/usr/bin/env bash
printf "\nDocker containers status:"
docker ps --format "table{{.ID}}\t{{.Names}}\t{{.Status}}"
printf "\nNetwork status:"
docker network ls | simkli/shopware | dev-ops/docker/actions/status.sh | Shell | agpl-3.0 | 161 |
#!/bin/bash
# Tar all war files accessible from current dir
tar cvf tests.tar `find . -name '*.war' -print`
| Daniel-Dos/ozark | bin/bundle-tests.sh | Shell | apache-2.0 | 109 |
#!/bin/sh
SPACE="space replication key int A attributes int B, int C subspace B subspace C create 1 partitions tolerate 0 failures"
exec python2 "${HYPERDEX_SRCDIR}"/test/runner.py --daemons=1 --space="${SPACE}" -- \
"${HYPERDEX_BUILDDIR}"/test/replication-stress-test --quiet -n 1 -h {HOST} -p {PORT}
| vashstorm/HyperDex | test/sh/replication.simple.daemons=1.fault-tolerance=0.sh | Shell | bsd-3-clause | 307 |
# --- Running LAMMPS ---
# -------- PREREQUISITES: --------
# The 2 files "run.in.min", "run.in.npt", and "run.in.nvt" are LAMMPS
# input scripts which link to the input scripts and data files
# you hopefully have created earlier with moltemplate.sh:
# system.in.init, system.in.settings, system.data
# If not, carry ... | ganzenmg/lammps_current | tools/moltemplate/examples/coarse_grained_examples/MARTINI_examples/DPPC_bilayer_preformed/README_run.sh | Shell | gpl-2.0 | 872 |
#! /bin/sh
# Copyright (C) 2011-2016 Free Software Foundation, Inc.
#
# This file is part of GDB.
#
# 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 you... | h4ck3rm1k3/binutils-gdb | gdb/gnulib/update-gnulib.sh | Shell | gpl-2.0 | 5,004 |
#!/bin/bash
#
# Copyright 2015 The Bazel 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 required by... | Digas29/bazel | src/test/shell/bazel/android/android_integration_test.sh | Shell | apache-2.0 | 3,879 |
#!/usr/bin/env bash
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
set -e... | runasand/osquery | tools/benchmark.sh | Shell | bsd-3-clause | 1,331 |
#!/bin/sh
# Base16 Bright - Shell color setup script
# Chris Kempson (http://chriskempson.com)
if [ "${TERM%%-*}" = 'linux' ]; then
# This script doesn't support linux console (use 'vconsole' template instead)
return 2>/dev/null || exit 0
fi
color00="00/00/00" # Base 00 - Black
color01="fb/01/20" # Base 08 - ... | jasonszhao/dotfiles | shell/base16-shell/base16-bright.dark.sh | Shell | mit | 3,851 |
: ==== start ====
TESTNAME=x509-pluto-03
source /testing/pluto/bin/eastlocal.sh
rm /tmp/$TESTNAME/ipsec.d/certs/west*
rm /tmp/$TESTNAME/ipsec.d/crls/ca.crl
iptables -A INPUT -i eth1 -s 192.0.3.0/24 -d 0.0.0.0/0 -j DROP
ipsec setup start
ipsec auto --add westnet-eastnet-x509-cr
/testing/pluto/basic-pluto-01/eroutewa... | mcr/bluerose | testing/pluto/x509-pluto-03/eastinit.sh | Shell | gpl-2.0 | 331 |
#!/usr/bin/env bash
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../../../k8s.io/code-generator)}
verify="${VERIFY:-}"
GOFLAGS="" go install ./${CODEGEN_PKG}/cmd/d... | mkumatag/origin | vendor/github.com/openshift/apiserver-library-go/hack/update-generated-deep-copies.sh | Shell | apache-2.0 | 793 |
BootstrapRpmCommon() {
# Tested with:
# - Fedora 22, 23 (x64)
# - Centos 7 (x64: on DigitalOcean droplet)
# - CentOS 7 Minimal install in a Hyper-V VM
if type dnf 2>/dev/null
then
tool=dnf
elif type yum 2>/dev/null
then
tool=yum
else
echo "Neither yum nor dnf found. Aborting bootst... | lmcro/letsencrypt | letsencrypt-auto-source/pieces/bootstrappers/rpm_common.sh | Shell | apache-2.0 | 1,411 |
#!/bin/bash
# git-prompt-help -- show useful info to help new users with the information
# being displayed.
git_prompt_help() {
source ${__GIT_PROMPT_DIR}/prompt-colors.sh
source ${__GIT_PROMPT_DIR}/themes/Default.bgptheme
cat <<EOF | sed 's/\\\[\\033//g' | sed 's/\\\]//g'
The git prompt format is ${GIT_PROMPT_... | lesgrossman/bash-git-prompt | git-prompt-help.sh | Shell | bsd-2-clause | 3,325 |
############################################################
# <bsn.cl fy=2013 v=onl>
#
# Copyright 2013, 2014 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy ... | capveg/ONL | components/all/platform-config/powerpc-quanta-lb9-r0/src/boot/detect.sh | Shell | epl-1.0 | 968 |
#!/bin/sh
# There's more than one "correct" way to represent the history graphically.
# These tests depend on the current behavior of the graphing code. If the
# graphing code is ever changed to draw the output differently, these tests
# cases will need to be updated to know about the new layout.
test_description='-... | samv/git | t/t6016-rev-list-graph-simplify-history.sh | Shell | gpl-2.0 | 7,910 |
#!/bin/sh
lcm-gen -j ../../types/*.lcm
export CLASSPATH="`pkg-config --variable=classpath lcm-java`:."
javac exlcm/*.java
javac MySubscriber.java
javac SendMessage.java
| cheshirekow/codebase | third_party/lcm/examples/java/example_t_demo/build.sh | Shell | gpl-3.0 | 172 |
protoc --go_out=. search.proto ots_filter.proto table_store.proto
| pryorda/terraform | vendor/github.com/aliyun/aliyun-tablestore-go-sdk/tablestore/otsprotocol/build_proto.sh | Shell | mpl-2.0 | 67 |
#!/bin/bash
#test /api/jobs/import with invalid input
DIR=$(cd `dirname $0` && pwd)
source $DIR/include.sh
args="echo hello there"
project=$2
if [ "" == "$2" ] ; then
project="test"
fi
#escape the string for xml
xmlargs=$($XMLSTARLET esc "$args")
xmlproj=$($XMLSTARLET esc "$project")
#produce job.xml content ... | rophy/rundeck | test/api/test-jobs-import-invalid.sh | Shell | apache-2.0 | 4,263 |
#!/bin/bash
TEMPLATE='job.definition'
COUNT=100
export LC_ALL=C
random_line() {
numlines=`wc -l $1| awk {'print $1'}`
t=`date +%s`
t=`expr $t + $RANDOM`
a=`expr $t % $numlines + 1`
RETURN=`head -n $a $1|tail -n 1`
return 0
}
genrand() {
cat /dev/random | tr -dc ${2:-' A-Za-z1-9'} | head -c${1:-1024}... | jamieps/rundeck | test/generators/generate_job.sh | Shell | apache-2.0 | 1,159 |
# 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 applicable law or ... | gruter/bdutil | libexec/configure_hadoop.sh | Shell | apache-2.0 | 6,293 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "3 nodes, 2 banned, IPs all unassigned"
setup_ctdbd <<EOF
NODEMAP
0 192.168.20.41 0x0 CURRENT RECMASTER
1 192.168.20.42 0x1
2 192.168.20.43 0x1
IFACES
:Name:LinkStatus:References:
:eth2:1:2:
:eth1:1:4:
PUBLICIPS
10.0.0.31 -1
10.0.0.... | SVoxel/R7800 | git_home/samba.git/ctdb/tests/takeover_helper/028.sh | Shell | gpl-2.0 | 481 |
# Installation:
# - If you have system bash completion, place this in /etc/bash_completion.d or
# source it from $HOME/.bash_completion
# - If you don't have system bash completion, source this from your .bashrc
_ncmpcpp ()
{
local cur prev cmds opts
cur="$2"
prev="$3"
cmds=`ncmpcpp --help 2>&1 | a... | yourealwaysbe/ncmpcpp-mtime | doc/ncmpcpp-completion.bash | Shell | gpl-2.0 | 999 |
python location_generator.py -st $1 -lp $2 -lat $3 -lon $4 > locations.txt
echo "" > beehive.sh
while read line || [[ -n "$line" ]]; do
echo "nohup python ../../runserver.py -ns -l '$line' -st $1 &" >> beehive.sh
done < locations.txt
echo "nohup python ../../runserver.py -os -l '$3, $4' &" >> beehive.sh
chmod u+x beeh... | chrux/PokemonGo-Map | Tools/Hex-Beehive-Generator/beehive_builder.sh | Shell | agpl-3.0 | 392 |
#!/bin/bash
DATE=`date +%Y%m%d`
SCRDIR=`dirname $0`
DIR=${SCRDIR}/${DATE}
PREFIX=http://www.x.org/releases/X11R7.5/src/
GRPS="app data doc driver font lib proto util xserver"
OETREE=${SCRDIR}/../..
PREFS_LIVE=${OETREE}/conf/distro/include/preferred-xorg-versions-X11R7.5-live.inc
BBS=${OETREE}/recipes/xorg-
OUT_LOG=${DI... | crystalfontz/openembedded | contrib/source-checker/bump.preferred-xorg-versions-7.5.sh | Shell | mit | 2,523 |
./LU -p8
| fhijaz/Graphite | tests/benchmarks/lu_non_contiguous/run_test.sh | Shell | mit | 9 |
#!/bin/bash
APACHE_PORT=8888
GLASSFISH_PORT=8088
PORT=$APACHE_PORT
count=0; while true; do echo "downloading 4 GB file as zip attempt $((++count))"; curl -s http://127.0.0.1:$PORT/api/access/datafiles/3 > /tmp/3; done
| leeper/dataverse-1 | scripts/issues/2013/download-zip.sh | Shell | apache-2.0 | 218 |
#!/usr/bin/env bash
cd `dirname $0`
DESTDIR=./../../packages/core/src/animation
mv ${DESTDIR}/dsl.ts ${DESTDIR}/dsl.ts.old
cmd <<< "mklink \"..\\..\\packages\\core\\src\\animation\\dsl.ts\" \"..\\..\\..\\animations\\src\\animation_metadata.ts\""
| souvikbasu/angular | scripts/windows/create-symlinks.sh | Shell | mit | 248 |
#! /bin/bash
#
# Copyright (c) 2015 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the... | rjschof/gem5 | util/dist/test/test-2nodes-AArch64.sh | Shell | bsd-3-clause | 4,117 |
#!/bin/bash
TGT="$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM"
[ -d "$TGT" ] || mkdir -p "$TGT"
[ -d "${PREFIX}/bin" ] || mkdir -p "${PREFIX}/bin"
cd "${SRC_DIR}"
mv sage*.jar $TGT/sage.jar
cp $RECIPE_DIR/SAGE.sh $TGT/SAGE
ln -s $TGT/SAGE $PREFIX/bin
chmod 0755 "${PREFIX}/bin/SAGE"
| cokelaer/bioconda-recipes | recipes/hmftools-sage/build.sh | Shell | mit | 292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.