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/bash -e
yum install -y linux-headers-$(uname -r) build-essential dkms
cd /tmp
mkdir /tmp/isomount
mount -t iso9660 -o loop $HOME/VBoxGuestAdditions.iso /tmp/isomount
# Install the drivers
/tmp/isomount/VBoxLinuxAdditions.run
# Cleanup
umount isomount
rm -rf isomount $HOME/VBoxGuestAdditions.iso
| marcomaccio/devpaas | devpaas-vm/packer/scripts/virtualbox/virtualbox-centos.sh | Shell | apache-2.0 | 306 |
#!/bin/bash
#Install chef-client
rpm -i https://opscode-omnibus-packages.s3.amazonaws.com/el/7/x86_64/chef-12.4.1-1.el7.x86_64.rpm
#Set to use version 2.7 of python as chef does not work nicely with v3
alternatives --set python /usr/bin/python2.7
python --version
| jcmturner/core-ip-services | bootstrap.sh | Shell | apache-2.0 | 268 |
#!/bin/bash
# This is a script to build the modules and run the test suite in the base
# Docker container.
set -x
set -e
cd /usr/src/ITKOpenSlideIO-build
cmake \
-G Ninja \
-DITK_DIR:PATH=/usr/src/ITK-build \
-DBUILD_TESTING:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILDNAME:STRING=External-OpenSli... | InsightSoftwareConsortium/ITKIOOpenSlide | test/Docker/test.sh | Shell | apache-2.0 | 611 |
#!/bin/bash
# Copyright (C) 2016 University of Stuttgart
#
# 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 applic... | excess-project/monitoring-frontend | start.sh | Shell | apache-2.0 | 2,156 |
#!/usr/bin/env bash
# Make sure we're in this `docs/recipes/customer-gatherer-puppeteer` directory
cd "$(dirname "$0")"
node node_modules/.bin/lighthouse --config-path=custom-config.js https://www.example.com --output=json |
jq '.audits["custom-audit"].score' |
grep -q 1
| GoogleChrome/lighthouse | docs/recipes/custom-gatherer-puppeteer/test.sh | Shell | apache-2.0 | 278 |
#!/bin/bash
workload=$1 #terasort/wordcount
blockSize=$2
straggler=$3 #with/without
specFlag=$4 #off/on-with-original/on-without-origina
aggre=$5 #no/low/medium/high
startSize=$6
endSize=$7
inc=$8
currentDir="/usr/local/hadoop/scripts/MTP-scripts"
outputFile="$currentDir/memory-consumption/memory-consump... | jayantgolhar/Hadoop-0.21.0 | scripts/MTP-scripts/export-graph-data-for-memory.sh | Shell | apache-2.0 | 972 |
#!/usr/bin/env bash
# Copyright 2020 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 a... | GoogleCloudPlatform/training-data-analyst | courses/ahybrid/v1.0/AHYBRID081/scripts/create_gke_2.sh | Shell | apache-2.0 | 1,516 |
#!/usr/bin/env bash
set -e
TEST_USERNS=${TEST_USERNS:-}
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
if [[ -n "$TEST_USERNS" ]]; then
echo "Enabled user namespace testing"
export UID_MAPPINGS="0:100000:100000"
export GID_MAPPINGS="0:200000:100000"
# Needed for RHEL
if [[ -w /proc/sys/use... | mikebrow/cri-o | test/test_runner.sh | Shell | apache-2.0 | 855 |
#!/bin/bash
source /etc/profile.d/lmod.sh
module --force try-load BigDataScript
module --force try-load RNAsik-pipe
RNAsik "$@"
| MonashBioinformaticsPlatform/bio-ansible | docker/rnasik_wrapper.sh | Shell | apache-2.0 | 128 |
#!/bin/bash
##
## DOES NOT WORK: Nutrition does not appear to support aggregation
##
source ACCESS_TOKEN.sh
source VARS.sh
DATASET=dataset:aggregate
DATATYPE=com.google.nutrition
json="{
\"aggregateBy\": [{
\"dataTypeName\":
\"${DATATYPE}\"
}],
\"bucketByTime\": { \"durationMillis\": ${MS_IN_DAY} },... | saxman/google-fit-cl | nutrition_today_2.sh | Shell | apache-2.0 | 591 |
#!/bin/bash
PYTHONPATH="$PWD/lib:$PWD/../lib"
PYTHON3=$(which python3)
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
MODLIST="message_test.py local_test.py util_test.py"
for mod in ${MODLIST};
do
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
echo ">>> Testing '$mod' - ${TIMESTAMP} <<<"
$( ${PYTHON3} -m unittest ${mod} )
done
| peitur/docker-util | test/run_test.sh | Shell | apache-2.0 | 314 |
#!/usr/bin/env bash
# Copyright 2014 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... | ravisantoshgudimetla/kubernetes | hack/make-rules/verify.sh | Shell | apache-2.0 | 8,582 |
#!/bin/sh
# Get your API key from https://www.cloudflare.com/a/account/my-account
API_KEY=$(python -c "import json;config=open('/tmp/conf/config.json','r');print(json.load(config)['api_key']);config.close()")
EMAIL=$(python -c "import json;config=open('/tmp/conf/config.json','r');print(json.load(config)['email']);conf... | soshnik/le-dns-docker | cloudflare/authenticator.sh | Shell | apache-2.0 | 1,644 |
#!/bin/bash
# File: condor_status.sh
#
# Author: Matt Farrellee (Condor) - received on March 28, 2007
#
#
# Copyright (c) Members of the EGEE Collaboration. 2004.
# See http://www.eu-egee.org/partners/ for details on the copyright
# holders.
#
# Licensed under the Apache License, Version 2.0 (the "License"... | htcondor/htcondor | src/blahp/src/scripts/condor_status.sh | Shell | apache-2.0 | 9,175 |
#!/bin/bash
# Warewulf doesn't support network interface aliases (e.g. ib0:1).
# So create the ifcfg- files and bring up the Lustre networks here
# instead, and launch from a systemd unit.
parent=$1
parent_ip=$(ip a show dev ${parent} scope global | awk '{if ($1 == "inet") {print $2}}' | awk -F/ '{print $1}' | head ... | mhakala/ansible-role-lustre_client | files/ifcfg-create-alias.sh | Shell | apache-2.0 | 858 |
#!/usr/bin/env ksh
draft=$1
echo $draft | sed -e "s|_drafts/|_posts/`date +%Y-%m-%d`-|" | read post
mv $draft $post
#./htmlproof.sh
| jericson/jericson.github.io | publish_draft.sh | Shell | artistic-2.0 | 134 |
#!/bin/bash
##===-----------------------------------------------------------*- bash -*-===##
##
## S E R I A L B O X
##
## This file is distributed under terms of BSD license.
## See LICENSE.txt for more information.
##
##===--------------------------------------------------------------------... | havogt/serialbox2 | tools/cscs-scripts/env_tave.sh | Shell | bsd-2-clause | 2,537 |
#!/bin/sh
# Install command-line tools using Homebrew.
# brew needs to be installed manually from https://brew.sh
# brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formula... | podkovyrin/dotfiles | install_brew_tools.sh | Shell | bsd-2-clause | 1,256 |
brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
git() {
"$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
}
git_init_if_necessary() {
if [[ ! -d ".git" ]]
then
set -e
trap '{ rm -rf .git; exit 1; }' EXIT
git init
git config --bool core.autocrlf false
case $(uname -s) in
Darwin) git config remote.origin.url... | gnubila-france/linuxbrew | Library/Homebrew/cmd/update.sh | Shell | bsd-2-clause | 9,750 |
cp ../../Bin/penguin.png $1.app/Contents/Resources
cp ../../Bin/background7.jpg $1.app/Contents/Resources
| google-code/agkpas | Examples/07_Box2D/0712_CompoundShapes/osx_post_build.sh | Shell | bsd-2-clause | 106 |
#!/bin/sh
set -e
for lispfile in tests/*.zy
do
zygo -exitonfail "${lispfile}" || (echo "${lispfile} failed" && exit 1)
echo "${lispfile} passed"
done
echo
echo "good: all tests/ scripts passed."
| eliothedeman/zygomys | tests/testall.sh | Shell | bsd-2-clause | 212 |
#!/bin/bash
#--------------------------------------------------------------------
# @file: action.sh
# @description: script that gets called when the monitor finds a
# new file in a directory
# @arguments:
# ${1} = directory of being monitored
# ${2} = string which holds the destination for scp
# i.e. ... | WillCh/286proj | crawler/action.sh | Shell | bsd-2-clause | 1,204 |
rosmake driverParrotARDroneROSModule droneArucoEyeROSModule droneVisualMarkersLocalizerROSModule droneObstacleProcessorVisualMarksROSModule droneTrajectoryPlannerROSModule droneInterfaceROSModule droneYawCommanderROSModule droneMissionPlannerROSModule droneEKFStateEstimatorROSModule droneTrajectoryControllerROSModule d... | MorS25/cvg_quadrotor_swarm | launchers/rosmake_01.sh | Shell | bsd-3-clause | 360 |
#! /bin/sh
echo "run.sh started "$(date | tr -d '\n')
echo "sleeping for 30s"
sleep 30
cat /mnt/onboard/images/start0.raw | /usr/local/Kobo/pickel showpic
# clear old scripts
echo "clearing old scripts"
rm -rf /mnt/onboard/scripts
mkdir -p /mnt/onboard/scripts
# enable networking
cat /mnt/onboard/images/network0.raw... | the-louie/kobo-yrno | koboscripts/run.sh | Shell | bsd-3-clause | 826 |
#!/bin/bash
# SETUP
if [ $SEQ_FILE = '-' ]; then
export SEQ_FILE="${PREFIX}.seq"
if [ $USE_MPI_SORT -eq $FALSE ]; then
source scripts/sort-worker.sh
fi
fi
# MAP
FAST_PART=$( [ $USE_MPI_REDUCE -eq $TRUE ] && [ "$OUT_FILE" != '' ] && [ "$PARTS" != 0 ] && \
echo $TRUE || echo $FALSE )
if [ $USE_MPI_SORT -... | dmargo/sheep | scripts/horizontal-dist.sh | Shell | bsd-3-clause | 2,013 |
grep "Results" $1/*/*.out | grep "Receive" | grep "simple" > $1/simple_results
grep "lookup" $1/*/lookups.log > $1/allLookups.out
| declarativitydotnet/p2 | tests/scripts/crunch/stripResults.sh | Shell | bsd-3-clause | 131 |
#!/bin/sh
INTERFACE=stlink
TARGET=nrf51
. ../../../../../scripts/semihosting-oocd.sh $@
| ziutek/emgo | egpath/src/nrf5/examples/core51822/semihosting-oocd.sh | Shell | bsd-3-clause | 90 |
#!/bin/sh
if [ $(id -u) != 0 ]; then
echo "Please be root to do this..."
exit 1
fi
WHOAMI=`python -c 'import os, sys; print os.path.realpath(sys.argv[1])' $0`
UBUNTU=`dirname $WHOAMI`
PROJECT=`dirname $UBUNTU`
PROJECT_NAME=`basename ${PROJECT}`
CERTIFIED="${PROJECT}/certified"
DB="${CERTIFIED}/db"
if [ ... | whosonfirst/whosonfirst-www-spelunker | ubuntu/setup-certified-certs.sh | Shell | bsd-3-clause | 2,028 |
hubo-ach make
sudo chmod 777 /dev/shm/achshm-hubo*
achd -r pull 192.168.0.25 hubo-ref &
| hubo/hubo-ach | remote/remote-ref.sh | Shell | bsd-3-clause | 88 |
#!/bin/sh
#
if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat games.?? | tar --unlink -xpzf - -C /
exit 0
| MarginC/kame | freebsd2/release/scripts/games-install.sh | Shell | bsd-3-clause | 143 |
#!/usr/bin/env sh
composer --quiet install --optimize-autoloader
vendor/bin/phpspec --no-interaction run --format=dot
vendor/bin/phpunit
vendor/bin/php-cs-fixer fix --dry-run
| memio/PHP-Printer | bin/test.sh | Shell | mit | 178 |
#
# create a process tree graph
#
# need dt tool to run. check for dt in path.
#
dtloc="$(whence -v dt 2>&1)"
case "${dtloc}" in
"dt not found")
echo "dt (draw tree) tool not found; should be under exptools." >&2
exit 2
;;
esac
#
# check for options and parameters.
#
if [[ "${1}" == "-?" ]]
then
echo "usage: myptre... | ombt/ombt | lts08.lcstools/tools/src/ihgp/src/myptree/myptree.sh | Shell | mit | 1,565 |
#!/bin/sh
#
# Fully initialise/configure Flow/Neos app
#
set -e
set -u
source ./include-functions-common.sh
source ./include-functions.sh
source ./include-variables.sh
# Internal variables - there is no need to change them
CWD=$(pwd) # Points to /build-typo3-app/ directory, where this script is located
WEB_SERVER_RO... | dimaip/docker-typo3-flow-neos-abstract | container-files/build-typo3-app/configure-typo3-app.sh | Shell | mit | 6,058 |
#!/bin/sh
PROCESSOR=x86_64
# GE Modified
if [ `uname -m` = "armv6l" ]; then
PROCESSOR=arm_raspbian
else
PROCESSOR=x86_64
fi
# mbsa trap cleanup funtion
cleanup()
{
echo
echo "mbsae.core terminated unexpectedly..."
sleep 1
# uncomment to ensure mbsae.core threads are all killed
#echo " - Killing mbs... | edwinrsuarez/Thoth | predix machine edison/predix scripts/bash/PredixMachine/mbsa/bin/mbsa_start.sh | Shell | mit | 5,166 |
exec ${CATALINA_HOME}/bin/catalina.sh run
| abzcoding/tomcat-redis | jre8-tomcat8/run.sh | Shell | mit | 42 |
#!/bin/bash
echo "Migrating db"
/opt/sfm-ui/sfm/manage.py migrate --noinput
echo "Collecting static files"
/opt/sfm-ui/sfm/manage.py collectstatic --noinput
if [ $LOAD_FIXTURES = "True" ]; then
echo "Loading fixtures"
/opt/sfm-ui/sfm/manage.py loaddata /opt/sfm-setup/fixtures.json
fi
echo "Creating sites"
/... | gwu-libraries/sfm-ui | docker/ui/setup_ui.sh | Shell | mit | 925 |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... | cruzdiego/HorizontalFloatingHeaderLayout | Example/Pods/Target Support Files/Pods-HorizontalFloatingHeaderLayout_Example/Pods-HorizontalFloatingHeaderLayout_Example-frameworks.sh | Shell | mit | 4,750 |
docker run --name mysql -d \
--restart always \
-e MYSQL_ROOT_PASSWORD=chen \
-e MYSQL_DATABASE=neo \
-e MYSQL_USER=neo \
-e MYSQL_PASSWORD=neo \
-p 127.0.0.1:3306:3306 \
mysql:latest | oscm/devops | docker/bin/mysql/mysql.sh | Shell | mit | 212 |
#!/bin/sh
PATH=/bin:/usr/bin
PROG=`basename "$0"`
USAGE="usage: ${PROG} [-p prompt] -x execScript"
PROMPT=NO
STATUS=-1
fail() {
echo $@ >&2
exit 1
}
doExit() {
echo ${STATUS} > "${SHFILE}.res"
exit ${STATUS}
}
[ $# -lt 1 ] && fail $USAGE
while getopts p:x: opt; do
case $opt in
x)... | evolution411/symfonyfos | src/Acme/HelloBundle/Resources/public/images/NetBeans 7.3/ide/update/backup/netbeans/bin/nativeexecution/dorun.sh | Shell | mit | 607 |
#!/bin/sh
docker build -t quintenk/mongo .
docker build -t quintenk/mongo:2.4.9 . | Krijger/docker-cookbooks | mongo/build.sh | Shell | mit | 82 |
QMAIL/bin/maildir2mbox && exec pine ${1+"$@"}
| NikolaMandic/containers | qmail/qmail/pinq.sh | Shell | mit | 46 |
#!/bin/bash
set -e
# check if we are root
if [ "$EUID" -ne 0 ]; then
echo "*** Please run as root ***"
exit 1
fi
# setup pip
# setup_pip [pip_ver] [python_ver]
# setup_pip pip3 python3
setup_pip(){
PIP=$1
PYTHON=$2
# note python outputs verison to STDERR, need to redirect to STDOUT
PY_VER=$(${PYTHON} -... | MomsFriendlyRobotCompany/mote | archive/software/install-python.sh | Shell | mit | 1,864 |
#!/bin/bash
FN="rgu34bprobe_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.11/data/annotation/src/contrib/rgu34bprobe_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/rgu34bprobe_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rgu34bprobe/bioconductor-rgu34bprobe_2.18.0_src_a... | roryk/recipes | recipes/bioconductor-rgu34bprobe/post-link.sh | Shell | mit | 1,424 |
#!/usr/bin/env bash
docker-compose run --rm django python3 manage.py cms fix-tree
| tanzquotient/tq_website | scripts/cms_fix-tree.sh | Shell | gpl-2.0 | 82 |
#!/usr/bin/haserl
<%
eval $( gargoyle_session_validator -c "$COOKIE_hash" -e "$COOKIE_exp" -a "$HTTP_USER_AGENT" -i "$REMOTE_ADDR" -r "/login1.asp" -t $(uci get gargoyle.global.session_timeout) -b "$COOKIE_browser_time" )
echo "Content-Type: application/json"
echo ""
if [ "$FORM_mptcp" = "1" ] ;then
uci set shadow... | link4all/20170920openwrt | package/gargolye/plugin-ss/src/www/cgi-bin/proxy.sh | Shell | gpl-2.0 | 811 |
#!/bin/sh
# Laurent Montel <montel@kde.org> (2014)
# cd <directory> ; ./clean-forward-declaration.sh
#list all .h files.
list=`find -name '*.h' | egrep -v '(\.svn|build)'`;
# list=`ls *.H | egrep -v '(\.svn|build)'`;
for file in $list ; do
#get class line (don't get it when we have "friend"/"template" or "public" ... | TheTypoMaster/kde-dev-scripts | kf5/clean-forward-declaration.sh | Shell | gpl-2.0 | 1,266 |
#!/bin/bash
#
# /etc/init.d/fop
#
# LSB compliant service control script; see http://www.linuxbase.org/spec/
#
# System startup script for daemon spamd
#
### BEGIN INIT INFO
# Provides: fop
# Required-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start Flash Operator Panel
##... | crazedr0m/FreePBX | amp_conf/htdocs_panel/init/op_panel_suse.sh | Shell | gpl-2.0 | 5,003 |
#!/bin/sh
#
# ADTPro - *nix startup shell script
#
# Note:
# Invoke with the name of the communications button to push
# in order to start with that mode active (i.e. './adtpro.sh ethernet')
#
# You can set two variables here:
# 1. $MY_JAVA_HOME - to pick a particular java to run under
# 2. $ADTPRO_HOME - to sa... | badvision/adtprofx | src/main/posix/adtprobase.sh | Shell | gpl-2.0 | 2,399 |
#!/bin/sh
if [ ! -f /usr/share/fonts/ttf/zh_CN/fonts.dir ];then
mkfontscale /usr/share/fonts/ttf/zh_CN/
mkfontdir /usr/share/fonts/ttf/zh_CN/
fi
if [ ! -f /usr/share/fonts/pcf/zh_CN/fonts.dir ];then
mkfontscale /usr/share/fonts/pcf/zh_CN/
mkfontdir /usr/share/fonts/pcf/zh_CN/
fi
if ! `grep sungtil /usr/share/fonts... | MagicGroup/MagicSPECS | SPECS.z/zhttf-fonts/magic-fontalias-fix.sh | Shell | gpl-2.0 | 1,174 |
#!/bin/bash
#================
# FILE : misc.sh
#----------------
# PROJECT : YaST (Yet another Setup Tool v2)
# COPYRIGHT : (c) 2004 SUSE Linux AG, Germany. All rights reserved
# :
# AUTHORS : Marcus Schaefer <ms@suse.de>
# :
# :
# BELONGS TO : Syste... | aschnell/yast-installation | startup/common/misc.sh | Shell | gpl-2.0 | 6,356 |
#!/bin/sh
# Copyright (C) 2008 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public Licens... | shehbazj/DyRe | test/shell/metadata.sh | Shell | gpl-2.0 | 2,317 |
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir gems_repository_TEST_dir || exit 1
cd gems_repository_TEST_dir || exit 1
| pioto/paludis-pioto | paludis/repositories/gems/gems_repository_TEST_setup.sh | Shell | gpl-2.0 | 134 |
#! /bin/bash
set -e
set -u
datafile="$1"/flow.dat
output=${datafile/.dat/.psf}
tmpfile=$(mktemp /tmp/XXXXX)
# generate psf file with vmd
vmd -dispdev text -eofexit <<EOF
package require topotools
topo readlammpsdata ${datafile} full
animate write psf ${tmpfile}
EOF
sed 's/ NAMD EXT//g' ${tmpfile} > ${output}
| quang-ha/lammps | examples/USER/sph/flow_around_cylinder/genpsf.sh | Shell | gpl-2.0 | 315 |
#! /bin/bash
set -e
returnval=0
if [[ -d '/usr/share/cloudprint-cups/' ]]; then
echo "/usr/share/cloudprint-cups/ dir still exists: "
ls -alR /usr/share/cloudprint-cups/
returnval=1
fi
cupsdir="/usr/lib/cups"
if [[ -d '/usr/libexec/cups' ]]; then
cupsdir="/usr/libexec/cups"
fi
if [[ -e "$cupsdir/b... | jjscarafia/CUPS-Cloud-Print | testing/remove-test.sh | Shell | gpl-3.0 | 813 |
#! /bin/bash
set -e
set -x
pushd dependencies/unrar/
make lib
popd
export UNRAR_LIB_PATH=./dependencies/unrar/libunrar.so
PYTHONPATH=unrar python -m unittest discover -s unrar/
| matiasb/python-unrar | run_tests.sh | Shell | gpl-3.0 | 180 |
#!/bin/bash
#
# SFLvault - Secure networked password store and credentials manager.
#
# Copyright (C) 2008-2009 Savoir-faire Linux inc.
#
# Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | savoirfairelinux/sflvault | tests/hudson_script.sh | Shell | gpl-3.0 | 1,220 |
#!/bin/sh
if which blender>/dev/null 2>&1 ;
then
echo 0 > ~/install-exit-status
else
echo "ERROR: Blender is not found on the system! This test profile needs a working blender installation in the PATH."
echo 2 > ~/install-exit-status
fi
unzip -o cycles_benchmark_20160228.zip
echo "#!/bin/bash
BLEND_ARGS=\$@
if [[... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/system/blender-1.1.1/install.sh | Shell | gpl-3.0 | 951 |
#!/bin/bash
#SBATCH -t 15:00:00
#SBATCH --cpus-per-task 20
#SBATCH --mem-per-cpu 2000
# Lines starting with #SBATCH are for SLURM job management systems
# and may be removed if user is not submitting jobs to SLURM
####################################################################
#
# master_script_for_sample_files.... | transcript/samsa_v2 | sample_files_paired-end/master_script_for_sample_files.bash | Shell | gpl-3.0 | 10,760 |
#!/bin/sh
#
#
export LC_ALL=C
export CFLAGS='-Wall -Wextra -Wshadow -pedantic -std=c99 -g3 -pg -O1'
/usr/bin/env python3.2 ./setup.py --verbose clean --all 2>&1
/usr/bin/env python3.2 ./setup.py --verbose build --force --debug 2>&1 | sed '/parameter/d'
/usr/bin/env python3.2 ./setup.py --verbose install --force 2>&1
... | dmw/pyxser | build-debug-3.sh | Shell | lgpl-3.0 | 321 |
#!/bin/bash
sleep 60
| GridWay/gridway | src/test/jt/sleep.sh | Shell | apache-2.0 | 22 |
#!/bin/bash
# Local variable definition ----------------------------------------------------
# list of files to run.
declare -a files=(raven_software_requirements_specifications_and_traceability)
# extension to be removed.
declare -a exts=(txt ps ds)
# Functions definition ---------------------------------------------... | idaholab/raven | doc/sqa/srs_rtr_combined/make_win.sh | Shell | apache-2.0 | 1,512 |
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "USAGE: $0 <directory of src/validator> <output file>"
exit 1
fi
DIR=$1
OUTFILE=$1/$2
echo "// handlers.h" > $OUTFILE
echo "// WARNING: this file is autogenerated. See $0." >> $OUTFILE
echo "" >> $OUTFILE
ls -1 $DIR/handlers/*.h | sed "s/^/#include \"/g" | sed "s/$/\"/g"... | jyi/abc | src/validator/generate_handlers_h.sh | Shell | apache-2.0 | 361 |
#!/bin/bash
# Licensed to Diennea S.r.l. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Diennea S.r.l. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use t... | diennea/herddb | herddb-services/src/main/resources/bin/java-utils.sh | Shell | apache-2.0 | 1,676 |
#!/bin/bash
# Copyright 2016 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 required... | ledor473/charts | test/changed.sh | Shell | apache-2.0 | 5,185 |
#!/bin/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 require... | arborh/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/gpu_py36_full/nonpip_v1.sh | Shell | apache-2.0 | 2,101 |
#!/usr/bin/env bash
#teamcity
teamcity_installation_path='%TEAMCITY_INSTALLATION_PATH%'
teamcity_log_file='%TEAMCITY_LOG_FILE%'
eval "$teamcity_installation_path/bin/teamcity-server.sh run >> $teamcity_log_file 2>&1"
| feup-infolab/dendro-install | scripts/Services/teamcity/control_scripts/teamcity_start_template.sh | Shell | bsd-3-clause | 219 |
#!/bin/bash
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
MAKE_TARGETS="CCLD=\$(CXX) all"
NACLPORTS_CPPFLAGS+=" -DNACL_SDK_VERSION=$NACL_SDK_VERSION"
export LIBS="-lnacl_io -pthread"
if [ "${NAC... | binji/naclports | ports/sqlite/build.sh | Shell | bsd-3-clause | 1,881 |
#!/bin/sh
newman -c payments.json.postman_collection -f "SWIFT Transfers" -s
| haroldcarr/juno | z-no-longer-used/demo/transfers.sh | Shell | bsd-3-clause | 77 |
#!/bin/bash
# print_image filename inline base64contents
# filename: Filename to convey to client
# inline: 0 or 1
# base64contents: Base64-encoded contents
function print_image() {
printf '\033]1337;File='
if [[ -n "$1" ]]; then
printf 'name='`echo -n "$1" | base64`";"
fi
if $(base64 --ver... | keithpitt/keith-fun | utils/imgcat.sh | Shell | mit | 916 |
#!/bin/sh
#
# Preprocessor for 'less'. Used when this environment variable is set:
# LESSOPEN="|lesspipe.sh %s"
trap 'exit 0' PIPE
guesscompress() {
case "$1" in
*.gz) echo "gunzip -c" ;;
*.bz2) echo "bunzip2 -c" ;;
*) echo "cat" ;;
esac
}
lesspipe() {
local DECOMPRESSOR=""
case "$match" in
### Ma... | frugalware/devil505 | source/base/less/lesspipe.sh | Shell | gpl-2.0 | 2,052 |
#!/bin/sh
#
# This script is used to compile SQLite into a shared library on Linux.
#
# Two separate shared libraries are generated. "sqlite3.so" is the core
# library. "tclsqlite3.so" contains the TCL bindings and is the
# library that is loaded into TCL in order to run SQLite.
#
make target_source
cd tsrc
rm shell.... | SyntaxIRC/SyntaxServices | sqlite3/mkso.sh | Shell | gpl-2.0 | 803 |
#!/bin/bash
# Argument can be substring of tests (such as 'local')
export LANG=C
SHFILE=/tmp/unittest-parallel.sh
MAX_SEC_PER_TEST=900
export TIMEOUT=$MAX_SEC_PER_TEST
if [ "$TRIES" = "3" ] ; then
# Try a failing test thrice
echo Retrying 3 times
ls -t tests-to-run/*${1}*.sh |
perl -pe 's:(.*/(.*)).sh:bash... | michaKFromParis/gnu-parallel-sticky | testsuite/Start.sh | Shell | gpl-3.0 | 1,162 |
#!/usr/bin/env bash
# This script downloads proprietary part of official .paks.
#
# note: the proprietary part contains following files:
#
# 1. sound files based on commercial sound libraries. Individual redistri-
# bution of such files are disallowed by the publishers of sound libraries
# (thus must... | VelocityRa/openspades | Resources/downloadpak.sh | Shell | gpl-3.0 | 1,248 |
#!/bin/sh
# Test df's behavior when the mount list contains duplicate entries.
# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
# Copyright (C) 2012-2013 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Ge... | bu2/coreutils | tests/df/skip-duplicates.sh | Shell | gpl-3.0 | 2,703 |
# Name: Additional software
# Command: ui_list "soft" "--checklist" "Additional software"
| oaeide/fedy | modules/1.soft.sh | Shell | gpl-3.0 | 90 |
#!/bin/bash
## compare the Spectrum of the segregating sites, frequencies of observing a k mutation...
###########################
#!!!!! need to check is there a formula for the theoretical probability????
mkdir test-spectrum
cd test-spectrum
mst=(10 20 50 100 10)
msNsample=(3 7 10)
msNsample=(3)
rep=1000
#npop=... | luntergroup/scrm_jz_stable_branch | tests/manualtests/spectrum.sh | Shell | gpl-3.0 | 3,146 |
#!/bin/sh
#
# Copyright (C) 2013, 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/.
# branchsync:
# pull in changes from... | pecharmin/bind9 | util/branchsync.sh | Shell | mpl-2.0 | 4,954 |
#!/bin/bash
# http://stackoverflow.com/questions/151677/tool-for-adding-license-headers-to-source-files
DIRECTORY=$*
for i in $DIRECTORY # or whatever other pattern...
do
if ! grep -q MERCHANTABILITY $i
then
cat COPYING $i >$i.new && mv $i.new $i
echo $i
fi
done
| rienq/acados | .add_license.sh | Shell | lgpl-3.0 | 277 |
#!/usr/bin/env bats
# This file is used to test the installation and removal
# of plugins after Elasticsearch has been installed with tar.gz,
# rpm, and deb.
# WARNING: This testing file must be executed as root and can
# dramatically change your system. It removes the 'elasticsearch'
# user/group and also many direc... | adrianbk/elasticsearch | qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash | Shell | apache-2.0 | 9,908 |
#!/usr/bin/env bash
# Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
. ./integration_test.sh
write_config services/luci-dm/distributors.cfg <<EOF
distributor_configs: {
key: "jobsim"
value:... | luci/luci-go | dm/appengine/integration_tests/02_diamond_jobsim.sh | Shell | apache-2.0 | 1,995 |
#!/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 "Licens... | xiao-chen/hadoop | hadoop-ozone/common/src/main/bin/start-ozone.sh | Shell | apache-2.0 | 4,062 |
export DOCKER_IMAGES_VERSION=${DOCKER_IMAGES_VERSION:-32}
export HADOOP_BASE_IMAGE="${HADOOP_BASE_IMAGE:-prestodev/hdp2.6-hive}"
| treasure-data/presto | presto-product-tests/conf/product-tests-defaults.sh | Shell | apache-2.0 | 129 |
#!/usr/bin/env bats
# Helper functions for spouse example for PostgreSQL
getAccuracyPerCent() {
local variable=${1:-has_spouse_label}
deepdive sql eval "
SELECT 100 * (num_correct::REAL / (num_correct + num_incorrect)) :: INT
FROM ${variable}_calibration
WHERE bucket = 9
" |
... | sky-xu/deepdive | test/postgresql/spouse_example.helpers.sh | Shell | apache-2.0 | 388 |
#!/bin/bash
set -e
set -u
set -x
# it would be good to not run the build if:
#
# * there are no changes in the source files used in the concatenator.js file
# * there haven't been any changes in this repo
#
# since the last build done by jenkins. To achieve this you might get the date
# of the last jenkins commit in t... | Seitanas/kvm-vdi | spice_html5/commit-stage.sh | Shell | mit | 515 |
#!/bin/bash
. vars.sh
. functions.sh
checkuser "fpm" "" || exit 1
checkdir $CONFIGDIR $CONFIGDIR_PERM $CONFIGDIR_GROUP
checkdir $SOCKDIR $SOCKDIR_PERM $SOCKDIR_GROUP
checkdir $SHIMDIR $SHIMDIR_PERM $SHIMDIR_GROUP
checkdir $BACKDIR $BACKDIR_PERM $BACKDIR_GROUP
checkdir $WEBDIR $WEBDIR_PERM $WEBDIR_G... | stormleoxia/xsp | test-fpm/gen.sh | Shell | mit | 1,051 |
#!/bin/sh
# rm *.o, *.cmd, *~
find . -name "*.o" -o -name "*.cmd" -o -name "*~" | xargs rm -rf
rm Module.symvers
rm mali.ko
rm mali.mod.c
rm modules.order
| Raybuntu/linux | drivers/gpu/arm/mali/clean.sh | Shell | gpl-2.0 | 155 |
#!/bin/sh
set -o xtrace # Write all commands first to stderr
set -o errexit # Exit the script with error if any of the commands fail
# Check that a CLion user didn't accidentally convert NEWS from UTF-8 to ASCII
news_type=`file NEWS`
echo "NEWS file type is $news_type"
case "$news_type" in
*ASCII*)
echo '{ "r... | mongodb/libbson | .evergreen/check-release-archive.sh | Shell | apache-2.0 | 2,071 |
#!/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... | gunan/tensorflow | tensorflow/lite/micro/tools/ci_build/test_x86.sh | Shell | apache-2.0 | 1,258 |
#!/usr/bin/env sh
set -eu
docker pull payara/server-web:5.183
docker run --name=payara -d -p 8080:8080 -p 4848:4848 -it payara/server-web:5.183
| Daniel-Dos/ozark | .travis/docker-payara.sh | Shell | apache-2.0 | 146 |
source ../testsupport.sh
run test.txt
exists out/test.hello.csv
bpipe query out/test.hello.csv > test.out 2>&1
grep -q "Command:" test.out || err "Failed to find expected output of query command"
true
| sb43/bpipe | tests/query_with_outputdir/run.sh | Shell | bsd-3-clause | 207 |
#!/bin/bash
FN="pd.drosgenome1_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/pd.drosgenome1_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.drosgenome1_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.drosgenome1/bioconductor-pd.drosgenome... | joachimwolff/bioconda-recipes | recipes/bioconductor-pd.drosgenome1/post-link.sh | Shell | mit | 1,328 |
#!/bin/sh
if [ -z "$PKG_CONFIG_PATH" ]; then
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
else
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
fi
if [ -d /usr/local/lib/pkgconfig ] ; then
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
fi
export PKG_CONFIG_PATH
| frugalware/xfcetesting | source/devel/pkgconfig/pkgconfig.sh | Shell | gpl-2.0 | 286 |
test_image_expiry() {
# shellcheck disable=2039
local LXD2_DIR LXD2_ADDR
LXD2_DIR=$(mktemp -d -p "${TEST_DIR}" XXX)
chmod +x "${LXD2_DIR}"
spawn_lxd "${LXD2_DIR}" true
LXD2_ADDR=$(cat "${LXD2_DIR}/lxd.addr")
ensure_import_testimage
# shellcheck disable=2153
lxc_remote remote add l1 "${LXD_ADDR}" --a... | atxwebs/lxd | test/suites/image.sh | Shell | apache-2.0 | 3,076 |
#!/bin/bash
# Runs all Android integration tests locally.
# See http://facebook.github.io/react-native/docs/testing.html
set -e
which buck > /dev/null || {
echo "React Native uses the Buck build tool to run tests. Please install Buck: https://buckbuild.com/setup/install.html";
exit 1;
}
echo "Compiling native ... | luqin/react-native | scripts/run-android-local-integration-tests.sh | Shell | bsd-3-clause | 929 |
#!/bin/sh
# Copyright (C) 1989-2019 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 your o... | OpenSmalltalk/vm | processors/ARM/gdb-8.3.1/sim/common/create-version.sh | Shell | mit | 1,412 |
# Replace all ubuntu mirror with the old-release mirror
sed -i -e 's@http://.*.ubuntu.com@http://old-releases.ubuntu.com@' /etc/apt/sources.list
# etc., and remove optional things to trim down the machine.
apt-get -y update
apt-get -y upgrade
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y inst... | phusion/veewee | templates/ubuntu-10.10-server-amd64/base.sh | Shell | mit | 624 |
#
# Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Softwar... | upenn-acg/REMIX | jvm-remix/openjdk/jdk/test/sun/security/tools/keytool/AltProviderPath.sh | Shell | gpl-2.0 | 3,505 |
#!/bin/bash
#
# This scripts starts the OpenShift server with custom TLS certs, and verifies generated kubeconfig files can be used to talk to it.
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
os::cleanup::tmpdir
os::util::environment::setup_all_server_vars
function cleanup() {
return_code=$?
os::clea... | adelton/origin | test/extended/alternate_certs.sh | Shell | apache-2.0 | 4,393 |
#!/bin/sh
port=8102
debug="-v -d"
debug="-d"
timeout="-t 1"
timeout=""
# keys
printf '\ndel\n'
printf '*2\r\n$3\r\ndel\r\n$3\r\nfoo\r\n' | socat ${debug} ${timeout} - TCP:localhost:${port},shut-close
printf '*3\r\n$3\r\ndel\r\n$3\r\nfoo\r\n$3\r\nbar\r\n' | socat ${debug} ${timeout} - TCP:localhost:${port},shut-clo... | mcanthony/dynomite | scripts/redis-check.sh | Shell | apache-2.0 | 48,711 |
#!/bin/tcsh
if ( $# != 1 ) then
echo Usage: ${0} \<name of raw output dir\>
exit -1
endif
if ( -d $1 ) then
echo AAaagh: $1 exists!
exit -1
endif
mkdir ${1}
./test-manyonesmaller-tcp.pl | tee ${1}/manyonesmaller-tcp-all
cat ${1}/manyonesmaller-tcp-all | grep "mpi server" > ${1}/mpi_server.dat
cat ${1}/manyones... | Goon83/SALB | test/io/bmi/test-smaller.sh | Shell | lgpl-2.1 | 1,598 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.