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
set -e
mvn clean
mvn install | fathomstudio/killbill-bluepay-plugin | build.sh | Shell | apache-2.0 | 50 |
#!/bin/bash
set -ex
find . -type f \( -iname "*.py" ! -iname "kcli_pb2*.py" \) -exec pep8 --ignore=E402,W504,E721 --max-line-length=120 {} +
find . -name '*.py' | misspellings -f -
| karmab/kcli | .github/linting.sh | Shell | apache-2.0 | 183 |
#!/bin/bash
# /bin/install.sh for atomic ipa client image
prefix=/host
# ============================================================================
# MAIN
# ============================================================================
IPA_CONFIG=${IPA_CONFIG:=/etc/ipa_config.sh}
if [ -n "IPA_CONFIG" -a -f "${IPA_CON... | markllama/docker-ipa-client | rhel/install.sh | Shell | apache-2.0 | 2,130 |
#!/bin/bash
#
# Safely copy the latest image for an Ubuntu version to GCS
#
# Usage:
# upload_latest.sh 16_0_4
#
# Debugging Usage:
# bash -x upload_latest.sh 16_0_4
#
set -eu -o pipefail
readonly VERSION=$1
readonly GCS_BUCKET="ubuntu_tar"
case $VERSION in
16_0_4)
readonly release="xenial"
;;
18_0_4)... | GoogleContainerTools/base-images-docker | ubuntu/scripts/upload-latest.sh | Shell | apache-2.0 | 1,300 |
#!/bin/sh
DIR=`dirname $0`
. ${DIR}/common.sh
run logback logback "$1" "$2" org.gflogger.perftest.LogBackExample "-Dlogback.configurationFile=logback.xml" | vladimirdolzhenko/gflogger | scripts/logback.sh | Shell | apache-2.0 | 156 |
#!/bin/sh
# Copyright Istio 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 or agreed to in wr... | istio/istio | release/downloadIstioCtl.sh | Shell | apache-2.0 | 4,245 |
#!/usr/bin/env sh
set -e
echo "" > coverage.txt
for d in $(glide novendor); do
go test -v -tags 'debug integration' -race -coverprofile=profile.out $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
| negz/secret-volume | test.sh | Shell | apache-2.0 | 264 |
CUDA_VISIBLE_DEVICES=1 python train.py \
--train_data_pattern='/Youtube-8M/data/frame/train/*.tfrecord' \
--train_dir='../model/frame_level_lstm_gate_model' \
--frame_features=True \
--feature_names="rgb, audio" \
--feature_sizes="1024, 128" \
--model='LstmGateModel' \
--video_level_classifier_model=MoeMo... | wangheda/youtube-8m | youtube-8m-zhangteng/train_scripts/run-lstm-s.sh | Shell | apache-2.0 | 401 |
#!/bin/bash
export GOPATH=$(pwd)
# Get required packages.
make
| bdastur/utils | tfbootstrap/build.sh | Shell | apache-2.0 | 65 |
#!/bin/bash -e
bundle install
| LibertyGlobal-CoderDojo/LibertyGlobal-CoderDojo.github.io | prepare.sh | Shell | apache-2.0 | 30 |
#! /bin/bash
# This checks the overall status of Cassandra, onos, zookeeper, and the web server
# Checks status on all 8 onos nodes.
# Built to run only on the hw testbed from ONOS1.
#
echo ""
echo "****************************"
echo "***** CASSANDRA STATUS *****"
echo "****************************"
dsh -w ... | opennetworkinglab/spring-open | sample/ONS2014demo/scripts/check-cluster-hw.sh | Shell | apache-2.0 | 911 |
#!/usr/bin/env bash
# Exit immediately if a command exits with a non-zero status
set -e
scriptname="${BASH_SOURCE##*/}"
function usage
{
cat <<TEXT_END
Usage:
$scriptname -h
$scriptname <command> <provider> [-c file] [options]
Options:
-h/--help Display help
-c/--config Use... | phnmnl/cloud-deploy-kubenow | phenomenal.sh | Shell | apache-2.0 | 5,801 |
#!/bin/sh
source scenarios/common.def
set -e
OUT_DIR=$BASE_OUT_DIR/veth
ip netns add test_ns1
ip netns add test_ns2
ip link add name test_veth1 type veth peer name test_veth2
ip link set test_veth1 netns test_ns1
ip link set test_veth2 netns test_ns2
ip netns exec test_ns1 ifconfig test_veth1 192.168.1.101 up
ip n... | bigfootproject/OSMEF | backend/scenarios/veth.sh | Shell | apache-2.0 | 736 |
#!/bin/bash
sudo ln -s /home/adminuser/pox-datapath/pox /usr/lib/python2.7/dist-packages/ -f
| damomeen/pox-datapath | configure.sh | Shell | apache-2.0 | 93 |
# cat $1|sed 's|[^a-zA-Z0-9]|\n|g'| tr '[:upper:]' '[:lower:]'|wordfreq| sed 's| *1 .*||g'|less #sort -u >$1.srt.sh
cat $1|sed 's|[^a-zA-Z0-9]|\n|g'| tr '[:upper:]' '[:lower:]'|wordfreq| sed 's| *1 .*||g'| sed 's| *2 .*||g'| sed 's|^ *[0-9][0-9]*||g'|uniq|less #sort -u >$1.srt.sh
chmod +x *.sh
| bayvictor/distributed-polling-system | bin/lower_wordfreq_sort_gt2.sh | Shell | apache-2.0 | 300 |
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
FILENAME=$1
USERNAME=$2
PASSWORD=$3
CODESIGN_STRING=$4
FILEPATH=$(dirname $0)/$FILENAME
# Make sure *.p12 is imported into local KeyChain
security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/login.keychain... | signed/intellij-community | platform/build-scripts/tools/mac/scripts/signbin.sh | Shell | apache-2.0 | 507 |
#!/bin/bash
set -e
#=======[ Functions ]
function ask_user {
local question=$1
local default=$2
echo "$question" >&2
echo -n " [$default] > " >&2
read -r user_answer
user_answer=${user_answer:-$default}
echo -n "$user_answer"
}
function check_req {
local bin=$1
local default
default=$(dirname "$(... | bio-miga/miga | scripts/init.bash | Shell | artistic-2.0 | 7,053 |
#!/bin/sh
# Copyright (c) 2015-2017 Franco Fichtner <franco@opnsense.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list o... | OptimEnterprises/tools | build/plugins.sh | Shell | bsd-2-clause | 2,776 |
# rcu functions
#
# schemas:
# http://docs.oracle.com/html/E38978_01/r2_im_requirements.htm#CIHEDGIH
# ------------------------------------------------------------------------
# create database schemas for identity management.
#+ vars needed: s_rcu_home, dbs_dbhost, iam_sid, iam_dba_pass,
#+ iam_oim... | kapfenho/iam-deployer | lib/librcu.sh | Shell | bsd-2-clause | 6,606 |
#!/bin/bash
# delete .svn directories recursive
rm -rf `find . -type d -name .svn`
#find . -name .svn -print0 | xargs -0 rm -rf
| owalch/oliver | linux/config/scripts/rmsvndir.sh | Shell | bsd-2-clause | 130 |
#!/bin/bash
set -euxo pipefail
if [[ "$OSTYPE" != "cygwin" ]]; then
echo "This script should only run on 'cygwin', not '$OSTYPE'."
exit 1
fi
# sudo
curl -L -s -o sudo.zip $(curl -s https://api.github.com/repos/mattn/sudo/releases/latest | jq -r ".assets[0].browser_download_url")
unzip sudo.zip
rm -f sudo.zip
mv -... | silverwind/dotfiles | cygwin-extra.sh | Shell | bsd-2-clause | 672 |
#!/bin/bash
# Wheel build, install, run test steps on Linux
#
# In fact the main work is to wrap up the real functions in docker commands.
# The real work is in the BUILD_SCRIPT (which builds the wheel) and
# `docker_install_run.sh`, which can be configured with `config.sh`.
#
# Must define
# before_install
# build_w... | HexDecimal/multibuild | travis_linux_steps.sh | Shell | bsd-2-clause | 3,827 |
#! /bin/bash
# Caveats: - kills all killable instances of rsync, monikop, pokinom
# - don't disturb test timing by putting too much (extra) load
# on the machine
killall --quiet rsync
TESTDIR=/tmp/monikop-test
DEV=$TESTDIR/dev
MNT=$TESTDIR/mnt
LOG=$TESTDIR/log
RSYNC=$TESTDIR/rsync
MONIKOP_1="../m... | BackupTheBerlios/monikop | test/test.sh | Shell | bsd-2-clause | 19,275 |
#!/bin/bash
export GPUID=0
export NET="squeezeDet"
export EVAL_DIR="/tmp/bichen/logs/SqueezeDet/"
export IMAGE_SET="val"
if [ $# -eq 0 ]
then
echo "Usage: ./scripts/train.sh [options]"
echo " "
echo "options:"
echo "-h, --help show brief help"
echo "-net (squeezeDet|squee... | BichenWuUCB/squeezeDet | scripts/eval.sh | Shell | bsd-2-clause | 1,677 |
#!/usr/bin/env bash
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
# Important: set -ex causes this whole script to terminate with error if
# any command in it fails. This is crucial for CI tests... | lgritz/OpenShadingLanguage | src/build-scripts/ci-build.bash | Shell | bsd-3-clause | 1,415 |
#!/bin/bash
# Fast fail the script on failures.
set -e
# Verify that the libraries are error and warning-free.
echo "Running dartanalyzer..."
libs=$(find lib -maxdepth 1 -type f -name '*.dart')
testing_libs=$(find lib/testing -maxdepth 1 -type f -name '*.dart')
dartanalyzer $DARTANALYZER_FLAGS $libs $testing_libs tes... | kitsonk/dart-play | tool/travis.sh | Shell | bsd-3-clause | 406 |
#!/bin/sh
#
# Common functionality for cloud platform test execution engine (test setup)
# After sourcing this file the following variables are set:
#
# SERVER_PACKAGE location of the CernVM-FS server package to install
# CLIENT_PACKAGE location of the CernVM-FS client package to install
# OLD_CLIENT_PA... | bbockelm/cvmfs | test/cloud_testing/platforms/common_setup.sh | Shell | bsd-3-clause | 4,178 |
#!/bin/bash
export PYTHONPATH=.
export DJANGO_SETTINGS_MODULE=tests.settings
py.test --create-db
| ir4y/miniature-ironman | run_test.sh | Shell | bsd-3-clause | 98 |
#!/bin/sh
SELECTION="19 20 26 32 35 39"
# Correct FIFU model, including DRD-CEST datasets
chemex fit -e Experiments/*.toml \
Experiments/DRD/*.toml \
-p Parameters/parameters_FIFU.toml \
-m Methods/method_FIFU.toml \
-d 3st \
--include $SELECTION \
... | gbouvignies/chemex | examples/Experiments/DCEST_15N_3States/run_FIFU_drd.sh | Shell | bsd-3-clause | 339 |
./plugin-loader --api-check pgsql-db-plugin
RET=$?
exit $RET
| argux/argux | tests/db-plugins/pgsql-api.sh | Shell | bsd-3-clause | 64 |
#! /bin/bash -
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
version=2.1.25
ARCHIVE=cyrus-sasl-$version
ARCHIVE_NAME=$ARCHIVE.tar.gz
ARCHIVE_PATCH=$ARCHIVE.patch
url=ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$ARCHIVE_NAME
patchfile=cyrus-2.1.25-libetpan.patch
scriptdir="`pwd`"
current_dir="$scriptdir"
builddir="$current_... | jjz/libetpan | build-mac/dependencies/prepare-cyrus-sasl.sh | Shell | bsd-3-clause | 5,858 |
ant clean && ant dist && cd "dist/exampleplugin_client-trunk" &&
cp exampleplugin_client.jar "../../../../trunk/calico3client-bugfixes/plugins" | rodijolak/calico | Client/plugins/ExamplePlugin/DeployExamplePlugin.sh | Shell | bsd-3-clause | 143 |
#!/bin/sh
#
# This is a simple shell script to run the tests for Eredis. It launches
# several local Redis instances for Eredis to connect to, runs the given
# Eredis test executable, then stops the Redis server and cleans up any
# temporary files that may have been written during the test (whether or
# not it succeede... | EulerianTechnologies/eredis | test/test-eredis.sh | Shell | bsd-3-clause | 7,505 |
#!/bin/sh
# Modules with dependency files.
modules="allocore allonect alloutil examples/mysql alloaudio"
# Override if module are passed in as arguments.
if [ "$#" -gt 0 ]; then
modules="$*"
fi
ROOT=`pwd`
PLATFORM=`uname`
ARCH=`uname -m`
echo "Installing for ${PLATFORM} ${ARCH} from ${ROOT}"
# Callbacks.
binary... | AlloSphere-Research-Group/AlloSystem | install_all_dependencies.sh | Shell | bsd-3-clause | 2,228 |
#!/bin/bash
# Copyright 2015-2016, 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 con... | VcamX/grpc | test/distrib/csharp/update_version.sh | Shell | bsd-3-clause | 2,000 |
#!/bin/sh
sed -ie "s/#service/\"$SERVICE\"/g" /etc/consul-templates/nginx.ctmpl
$/usr/sbin/nginx -c /etc/nginx/nginx.conf -t && \
/usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon on;"
/usr/sbin/nginx -c /etc/nginx/nginx.conf \
& CONSUL_TEMPLATE_LOG=debug consul-template \
-consul=$CONSUL_SERVER \
-template "... | benjamin658/nginx-consul-template | entry.sh | Shell | mit | 412 |
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")/../.." && vagrant_dir=$PWD
source "${vagrant_dir}/scripts/output_functions.sh"
cd "${vagrant_dir}"
vagrant ssh -c "bash /vagrant/scripts/guest/m-clear-cache" 2> >(logError)
# Explicit exit is necessary to bypass incorrect output from vagrant in case of errors
ex... | paliarush/vagrant-magento | scripts/host/m_clear_cache.sh | Shell | mit | 325 |
#!/bin/bash
source ./scripts/install.sh
source ./scripts/installhooks.sh
| romainPrignon/starter-package-php | scripts/setup.sh | Shell | mit | 74 |
#!/bin/bash
set -e
#######################################
# load environment variables for LRSDAY
source ./../../env.sh
#######################################
# set project-specific variables
prefix="SK1" # The file name prefix for the processing sample. Default = "SK1" for the testing example.
genome="./../07.Supe... | yjx1217/LRSDAY | pipelines/LRSDAY.13.Y_Prime_Element_Annotation.sh | Shell | mit | 2,123 |
#!/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/PannablePickerView | Example/Pods/Target Support Files/Pods-PannablePickerView_Example/Pods-PannablePickerView_Example-frameworks.sh | Shell | mit | 4,702 |
#! /usr/bin/env bash
pudb_file=~/iterm.pudb # put your command in there
jabyte=~/jab/python/site/
pysyte=~/hub/pysyte
fred=
if [[ ! -f $pudb_file ]]; then
fred=/tmp/fred.py
echo "print('Hello World!')" > $fred
echo "$fred" > $pudb_file
fi
source $pysyte/.venv/bin/activate
env
PYTHONPATH=$jabyte:$pysyte $... | jalanb/jab | bin/itermpusyte.sh | Shell | mit | 400 |
#!/bin/bash
# Load testing framework
. ./testlib.sh
TEST_SUITE_NAME="Test the testing framework"
# Number of tests
TOTAL_TESTS=9
assert 'true' 'true'
assert 'inverse' '! false'
assert '[[ condition ]]' '[[ -n "FOO" ]]'
SOME_VAR=foo
BLANK_VAR=
assert '[[ -n $SOME_VAR ]]' '[[ -n $SOME_VAR ]]'
assert '[[ -z $BLANK_VA... | omniti-labs/template-maker | t/01-test-test.sh | Shell | mit | 610 |
echo "Running skeptic..."
skeptic --lines-per-method 15 --line-length 100 --max-nesting-depth 2 --methods-per-class 10 --no-semicolons --no-trailing-whitespace --check-syntax --no-global-variables --english-words-for-names='fibonacci' --naming-conventions my_solution.rb
printf "\n"
echo "Running spec..."
rspec spec.rb... | pepincho/FMI-Elective-Courses | 03_task/run.sh | Shell | mit | 380 |
#!/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"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices ... | timehop/HOPStrings | Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh | Shell | mit | 4,021 |
<?php
// need to use epFilesInDir() in epUtils
include_once(dirname(__FILE__) . "/../ezpdo.php");
include_once(EP_SRC_BASE . '/epUtils.php');
/**
* Get EZPDO version
* @return string
*/
function _getVersion() {
return '1.0.4';
}
/**
* Recursively get all files under directory
* (File names... | webdevwilson/RabbitPHP | lib/ezpdo/scripts/pear.sh | Shell | mit | 2,523 |
#!/usr/bin/env zsh
################################################################################
# Install and configure Go (the programming language) on a Mac with Homebrew
#
echo
echo "Installing the Go language using Homebrew..."
sudo brew install go
echo "Making a GOPATH home directory for Go..."
mkdir -p ~/go... | DavidLiedle/goteam | setup.sh | Shell | mit | 658 |
#!/bin/bash
#
# A script to bootstrap dokku.
# It expects to be run on Ubuntu 14.04 via 'sudo'
# If installing a tag higher than 0.3.13, it may install dokku via a package (so long as the package is higher than 0.3.13)
# It checks out the dokku source code from Github into ~/dokku and then runs 'make install' from dokk... | alessio/dokku | bootstrap.sh | Shell | mit | 3,697 |
#!/usr/bin/env sh
if ! type "ffmpeg" > /dev/null; then
echo "FFMPEG missing"
fi
if ! type "streamer" > /dev/null; then
echo "streamer missing"
fi
if ! type "motion" > /dev/null; then
echo "motion missing"
fi | ogeagla/video-feed-transformer | get_deps.sh | Shell | epl-1.0 | 216 |
#!/bin/bash
#ModificarUsuario
while [ m!=5 ]
do
clear
echo -e " \e[0;34m____________________________\e[0m"
echo -e "\e[0;34m|\e[0m" " Modificar Usuario" " \e[0;34m|\e[0m"
echo -e "\e[0;34m|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|\e[0m"
echo -e "\e[0;34m|\e[0m" " [1] Nombre de Usuario" " \e[0;34m|\e[0m"
echo -... | AlexRib/Suru | Sistemas Operativos III/ABMC Usuarios/Shellscript/ModificarUsuario.sh | Shell | epl-1.0 | 1,076 |
#!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='git mailinfo and git mailsplit test'
. ./test-lib.sh
test_expect_success 'split sample box' \
'git mailsplit -o. "$TEST_DIRECTORY"/t5100/sample.mbox >last &&
last=$(cat last) &&
echo total is $last &&
test $(cat last) = 17'
check_mailinfo () {
... | sunny256/git | t/t5100-mailinfo.sh | Shell | gpl-2.0 | 4,051 |
#! /bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
rm -rf $srcdir/autom*
rm -f $srcdir/config.*
# create po/LINGUAS
ls po/*.po | sed -e 's/.po//' | sed -e 's/po\///' > po/LINGUAS
intltoolize --force --automake
autoreconf --force -v --install --symlink || exit 1
cd $ORIGDIR || ex... | jpopelka/firewalld | autogen.sh | Shell | gpl-2.0 | 326 |
#! /bin/bash
#
# Needs intltool package.
set -e
set -u
cd "$(dirname "$0")"
cd ../po
# Get strings from glade file into helper file
intltool-extract --local --type=gettext/glade ../rednotebook/files/main_window.glade
# Remove gtk-ok and gtk-cancel lines
sed -i '/"gtk-/d' tmp/main_window.glade.h
# Replace "/* abc *... | dustincys/rednotebook | dev/generate-pot.sh | Shell | gpl-2.0 | 988 |
. /usr/share/libubox/jshn.sh
. /usr/share/wginstaller/wg.sh
wg_timeout () {
local int=$1
handshake=$(wg show $int latest-handshakes | awk '{print $2}')
timeout=$(uci get wgserver.@server[0].timeout_handshake)
if [ $handshake -ge $timeout ]; then
echo "1"
else
echo "0"
fi
}
wg_check_interface () {
local i... | hgl/packages | net/wg-installer/wg-server/lib/wg_functions.sh | Shell | gpl-2.0 | 1,997 |
# summarize.sh: extracts results of failed tests
# (C) 2015-2020 magicant
#
# 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 2 of the License, or
# (at your option) any later versi... | magicant/yash | tests/summarize.sh | Shell | gpl-2.0 | 1,687 |
#!/bin/sh
#
# Copyright (c) 2010 Johan Herland
#
test_description='Test notes merging with manual conflict resolution'
. ./test-lib.sh
# Set up a notes merge scenario with different kinds of conflicts
test_expect_success 'setup commits' '
test_commit 1st &&
test_commit 2nd &&
test_commit 3rd &&
test_commit 4th &... | sunny256/git | t/t3310-notes-merge-manual-resolve.sh | Shell | gpl-2.0 | 16,463 |
#!/usr/bin/env bash
[[ -n "${AUTOMATION_DEBUG}" ]] && set ${AUTOMATION_DEBUG}
trap 'exit ${RESULT:-1}' EXIT SIGHUP SIGINT SIGTERM
. "${AUTOMATION_BASE_DIR}/common.sh"
REPO_OPERATION_CLONE="clone"
REPO_OPERATION_INIT="init"
REPO_OPERATION_PUSH="push"
# Defaults
REPO_OPERATION_DEFAULT="${REPO_OPERATION_PUSH}"
REPO_REM... | kshychko/gen3-automation | jenkins/aws/manageRepo.sh | Shell | gpl-3.0 | 8,290 |
#!/bin/sh
# Copyright (C) 2016 The Linux Containers Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | lag-linaro/anbox | scripts/anbox-bridge.sh | Shell | gpl-3.0 | 5,871 |
#!/bin/bash
set -euf -o pipefail
# Create temporary directory for building
export TMPDIR=$(mktemp -d)
# Setup go environment in tmpdir
echo "setting up temporary go environment in $TMPDIR"
export GOPATH="${TMPDIR}/go"
export PATH="${GOPATH}/bin:$PATH"
mkdir -p "$GOPATH/src" "$GOPATH/bin"
chmod -R 777 "$GOPATH"
cd ${... | wtsi-hgi/hgi-ansible | docker/scripts/get-glance-proxy.sh | Shell | gpl-3.0 | 667 |
true
g++ -c foo.c
: : :
if cat < /etc/passwd | tr a-z A-Z | sort -u; then :; else echo sort failed!; fi
a b<c > d
if cat < /etc/passwd | tr a-z A-Z | sort -u > out
then :
else echo sort failed!
fi
if
if a;a;a; then b; else :; fi
then
if c
then if d | e; then f; fi
fi
fi
g<h
while
while
until :; do ... | baixiaobest/lab1-baixiao | test.sh | Shell | gpl-3.0 | 465 |
#!/bin/sh
# Demonstrate that "touch -d now writable-but-owned-by-other" works.
# Copyright (C) 2008-2014 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | houwentaoff/coreutils | tests/touch/now-owned-by-other.sh | Shell | gpl-3.0 | 1,253 |
#!/bin/bash
install() {
set -eu
UNAME=$(uname)
if [ "$UNAME" != "Linux" -a "$UNAME" != "Darwin" ] ; then
echo "Sorry, OS not supported: ${UNAME}."
exit 1
fi
if [ "$UNAME" = "Darwin" ] ; then
OSX_ARCH=$(uname -m)
if [ "${OSX_ARCH}" = "x86_64" ] ; then
PLATFORM="darwin-amd64"
else
echo "Sorry, ar... | jobtalk/thor | install.sh | Shell | mpl-2.0 | 1,654 |
#!/bin/bash
# sudo -u debian-tor
nohup sudo -u debian-tor tor > /dev/null 2>errors_tor.log &
| bisq-network/exchange | pricenode/docker/start_tor.sh | Shell | agpl-3.0 | 94 |
#!/bin/bash
for d in poller storage common; do
pip install -e $d
done
| redhat-cip/numeter | tools/dirty_distribute_hack.sh | Shell | agpl-3.0 | 75 |
#!/bin/bash
# Install modern alsa module for snd-hda-intel
# slightly modernized from https://github.com/naomiaro/vagrant-alsa-audio
# https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
alsa_deb="oem-audio-hda-daily-dkms_0.201703070301~ubuntu14.04.1_all.deb"
wget -nv https://code.launchpad.net/~ubuntu-audio-dev/+archiv... | Lapotor/libretime | installer/vagrant/ubuntu.sh | Shell | agpl-3.0 | 551 |
#!/bin/bash
set -e
export LC_ALL=C
# Begin configuration section.
# End configuration options.
echo "$0 $@" # Print the command line for logging
[ -f path.sh ] && . ./path.sh # source the path.
. parse_options.sh || exit 1;
if [ $# != 3 ]; then
echo "usage: common/make_dict.sh vocab dir_out m2m_aligned"
ech... | phsmit/kaldi-recipes | common/make_dict_fix2.sh | Shell | apache-2.0 | 1,668 |
#!/bin/bash
source ../../test-utils.sh
outdir=cmd
outdir_del=cmd_del
exec_count=0
last_result=""
function cleanup {
[ -d $outdir ] && \
run_bigmler delete --from-dir $outdir --output-dir $outdir_del
rm -f -R $outdir_del $outdir .bigmler*
}
def_inputs="[\"split-field\", \"000004\"], [\"objective\", \"00000... | jaor/examples | model-per-category/test/test.sh | Shell | apache-2.0 | 5,825 |
#! /bin/bash
set -e
source config.sh
echo
echo "Closing firewall for ${VM_NAME}"
gcloud compute firewall-rules delete --quiet ${VM_NAME}-www
echo
echo "Deleting VM: ${VM_NAME}"
gcloud compute instances delete --quiet --zone=${ZONE} ${VM_NAME}
| rvenugopal/container-vm-guestbook-redis-python | stop-containers.sh | Shell | apache-2.0 | 249 |
# 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 in writing, ... | tensorflow/minigo | ml_perf/scripts/bootstrap.sh | Shell | apache-2.0 | 1,563 |
#!/bin/bash
this="${BASH_SOURCE-$0}"
bin=$(cd -P -- "$(dirname -- "$this")" && pwd -P)
if [ -f "${bin}/../conf/env.sh" ]; then
set -a
. "${bin}/../conf/env.sh"
set +a
fi
APP=TriangleCount
APP_DIR=${DATA_HDFS}/${APP}
INPUT_HDFS=${DATA_HDFS}/${APP}/Input
OUTPUT_HDFS=${DATA_HDFS}/${APP}/Output
# either stan... | ElfoLiNk/spark-bench | TriangleCount/bin/config.sh | Shell | apache-2.0 | 907 |
#!/bin/bash
# vim: filetype=sh:tabstop=2:shiftwidth=2:expandtab
readonly PROGNAME=$(basename "$0")
readonly PROGDIR="$( cd "$(dirname "$0")" ; pwd -P )"
readonly ARGS="$@"
readonly TODAY=$(date +%Y%m%d%H%M%S)
# find project root directory using git
#readonly PROJECT_ROOT=$(readlink -f $(git rev-parse --show-cdup))
r... | pinterb/armor | demo/armor-up.sh | Shell | apache-2.0 | 1,682 |
sudo rpm -Uvh thingsboard-1.4.rpm | volodymyr-babak/thingsboard.github.io | docs/user-guide/install/resources/1.4.0/thingsboard-centos-installation.sh | Shell | apache-2.0 | 33 |
#!/bin/sh
# Expecting MESOS_SOURCE_DIR and MESOS_BUILD_DIR to be in environment.
env | grep MESOS_SOURCE_DIR >/dev/null
test $? != 0 && \
echo "Failed to find MESOS_SOURCE_DIR in environment" && \
exit 1
env | grep MESOS_BUILD_DIR >/dev/null
test $? != 0 && \
echo "Failed to find MESOS_BUILD_DIR in environme... | enachb/mesos | src/tests/no_executor_framework_test.sh | Shell | apache-2.0 | 538 |
#!/bin/bash
##
# Copyright 2018 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 appli... | google/model-viewer | packages/render-fidelity-tools/scripts/compare-fidelity-to-ref.sh | Shell | apache-2.0 | 1,059 |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://blog.linuxeye.com
#
# Notes: OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+
#
# Project home page:
# http://oneinstack.com
# https://github.com/lj2007331/oneinstack
Install_MySQL-5-5()
{
cd $oneinstack_dir/src
src_url=http://cd... | bolabola/lnmp | include/mysql-5.5.sh | Shell | apache-2.0 | 6,778 |
export PYTEST_MARKER="-m cassandra"
export DOCKER_DEPS="cassandra3"
export CASSANDRA_HOST="cassandra3"
export WAIT_FOR_HOST="cassandra3"
export WAIT_FOR_PORT=9042
export CASS_DRIVER_BUILD_CONCURRENCY=4
| beniwohli/apm-agent-python | tests/scripts/envs/cassandra-newest.sh | Shell | bsd-3-clause | 202 |
#!/usr/bin/env 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 ... | ofrobots/grpc | tools/jenkins/run_jenkins.sh | Shell | bsd-3-clause | 3,394 |
#!/bin/bash
echo "Hosting alice from bob_alice.py on port 10001"
socat TCP-LISTEN:10001,reuseaddr,fork EXEC:"python ./bob_alice.py --check_parameters alice" &
echo "Hosting bob from bob_alice.py on port 10002"
socat TCP-LISTEN:10002,reuseaddr,fork EXEC:"python ./bob_alice.py --check_parameters bob" &
echo "Hosting ... | disconnect3d/jhtc_ctf_workshops | 2017/lab_dh/setup.sh | Shell | mit | 861 |
#!/bin/sh
# URL for the primary database, in the format expected by sqlalchemy (required
# unless linked to a container called 'db')
: ${DATABASE_URL:=}
# URL for solr (required unless linked to a container called 'solr')
: ${SOLR_URL:=}
# Email to which errors should be sent (optional, default: none)
: ${ERROR_EMAIL:... | JoseSalgado1024/ckan_distribuilble | scripts/.make_conf.sh | Shell | mit | 3,030 |
#!/bin/sh
for D in `find . -maxdepth 1 -mindepth 1 -type d | sort`;
do
(cd $D ; cargo check --features serialize_structs,deserialize_structs )
done
| rusoto/rusoto | rusoto/services/test-features.sh | Shell | mit | 153 |
#!/bin/sh
# cdiff.sh - Convenience wrapper for colordiff
#
# Copyright (C) 2003-2015 Ville Skyttä <ville.skytta@iki.fi>
# Based on cdiff version 1.4 by eivind@FreeBSD.org
#
# 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 th... | rfdonnelly/colordiff | cdiff.sh | Shell | gpl-2.0 | 2,196 |
#!/bin/bash
# Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.md or http://ckeditor.com/license
# Export language files to .po (gettext) format.
set -e
echo "CKLangTool - export translations to .po files."
echo ""
. ./_common.sh || exit
TARGETDIR=po
if [ ! ... | SeeyaSia/www | web/libraries/ckeditor/dev/langtool/export_po_files.sh | Shell | gpl-2.0 | 1,237 |
#!/system/bin/sh
mount -o remount,rw /system
if [ ! -f /system/xbin/su ]; then
#make necessary folders
mkdir /system/etc/init.d
mkdir /system/app/SuperSU
#extract SU from ramdisk to correct locations
rm -rf /system/bin/app_process
rm -rf /system/bin/install-recovery.sh
cp /sbin/su/supolicy /system/xbin/
cp /... | Zero015/UniKernel | build_kernel/ramdisk/sbin/arbb.sh | Shell | gpl-2.0 | 2,949 |
#!/bin/sh
# Set by TESTS_ENVIRONMENT in Makefile.am
abs_top_srcdir=$ABS_TOP_SRCDIR
abs_top_builddir=$ABS_TOP_BUILDDIR
if [ ! -f $abs_top_builddir/bin/gegl ]; then
echo "Skipping test-unsharp-crop due to lack of gegl executable"
exit 77
else
GEGL_TILE_SIZE=8x8 GEGL_PATH=$abs_top_builddir/operations GEGL_USE_OPEN... | OpenCL/GEGL-OpenCL | tests/mipmap/unsharp-crop.sh | Shell | gpl-3.0 | 1,058 |
#!/bin/sh
if [ "x${PMF_VERSION}" = "x" ]; then
PMF_VERSION="3.0.0-dev"
fi | Chris--A/phpMyFAQ | scripts/version.sh | Shell | mpl-2.0 | 77 |
#/bin/bash
#
# compile_frag.sh
# fastFrag
#
# Created by gregory tomlinson on 2011-03-19.
# Copyright 2011 the public domain. All rights reserved.
#
# just a one liner to compile, based on the location of the closure jar from my machine
java -jar ../../website/tools/closure_compiler.jar --js=../js/fastFrag.js -... | gregory80/fastFrag | scripts/compile_frag.sh | Shell | unlicense | 357 |
#!/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
# "Li... | apache/arrow | ci/scripts/python_wheel_macos_build.sh | Shell | apache-2.0 | 6,233 |
#!/bin/sh
read -p "Enter the old version: " oldVersion
read -p "Enter the new version: " newVersion
tmpFolderRootName=/tmp/$RANDOM
folderName=${tmpFolderRootName}/rest-assured.wiki
updateFiles() {
if [[ -z "$filesToUpdate" ]]
then
echo "Couldn't find any files to update."
exit 0
fi
for file in ${files... | paweld2/rest-assured | update_wiki.sh | Shell | apache-2.0 | 1,207 |
#!/bin/sh
CLAMSCAN_WRAPPER=${CLAMSCAN_WRAPPER-}
die() {
rm -rf test-db
exit $1;
}
scan_failed() {
if test "X$unrar_disabled" = "X1" && test `grep -v '\.rar' $1 | grep OK | wc -l` -eq 0
then
echo "***" >&2;
echo "*** UNRAR is disabled, won't be able to detect unrar files!" >&2;
echo "***" >&2;
else
echo "... | nmacs/lm3s-uclinux | user/clamav/unit_tests/check_clamscan.sh | Shell | gpl-2.0 | 1,807 |
#!/bin/bash
#set -x
source $LIBMESH_DIR/examples/run_common.sh
example_name=subdomains_ex1
options="-d 1 -n 40"
run_example "$example_name" "$options"
options="-d 2 -n 30"
run_example "$example_name" "$options"
options="-d 3 -n 15"
run_example "$example_name" "$options"
benchmark_example 1 "$example_name" "-d 1 ... | dschwen/libmesh | examples/subdomains/subdomains_ex1/run.sh | Shell | lgpl-2.1 | 433 |
#!/bin/sh
cp contrib/contributing.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
| ranpafin/phpoker | contrib/setup.sh | Shell | apache-2.0 | 91 |
#!/bin/bash
######## Mounting Drives ###############
# Setting variables to allow quick customisation:
FISYS="ext4"
mtoptions="noatime,nodiratime"
echo "Attaching disks to $HOSTNAME"
cp /etc/fstab /etc/old.fstab`date +%d-%m-%y---%H-%M-%S`
dmesg | grep -e "\[sd[a-z]" | awk '{print $3;}' | sort -u > /tmp/diskdeviceoutp... | Microsoft/Azure-DDP | bash/makefilesystem.sh | Shell | apache-2.0 | 1,445 |
#!/usr/bin/env bash
# A simple package manager for RethinkDB dependencies
#
# Each package is a shell script that can override these functions:
#
# pkg_install: Build and install the package into $install_dir
# If a build step is necessary, first copy the source from $src_dir into $install_dir/build
#
#... | rethinkdb/rethinkdb | mk/support/pkg/pkg.sh | Shell | apache-2.0 | 11,975 |
#!/bin/bash
##########################################################################
#Aqueduct - Compliance Remediation Content
#Copyright (C) 2011,2012
# Vincent C. Passaro (vincent.passaro@gmail.com)
# Shannon Mitchell (shannon.mitchell@fusiontechnology-llc.com)
#
#This program is free software; you ca... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/STIG/rhel-5/prod/GEN003820.sh | Shell | apache-2.0 | 3,167 |
#!/bin/sh
# a basic test of rm -ri
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your optio... | houwentaoff/coreutils | tests/rm/rm5.sh | Shell | gpl-3.0 | 1,558 |
#!/bin/bash
# Exit the script if any command returns a non-true return value (http://www.davidpashley.com/articles/writing-robust-shell-scripts/)
set -e
# sudo apt-get install npm nodejs-legacy
# npm config set prefix ~
npm install -g grunt-cli
npm install -g bower
bower install
npm install
grunt prod
| dtsuran/community-app | build.sh | Shell | mpl-2.0 | 306 |
#! /usr/bin/env bash
set -e
PORT="${brooklyn.console}"
URL="http://localhost:${PORT}"
$1 launch --port "$PORT" --persist disabled 2>&1 | tee brooklyn.log > /dev/null 2>&1 &
# Wait for the launched server to answer.
MAX_POLLS=10
POLL_WAIT=2
MAX_WAIT=$((MAX_POLLS*POLL_WAIT))
echo "Waiting up to ${MAX_WAIT}s for serve... | tomzhang/clocker | examples/src/test/resources/run-brooklyn.sh | Shell | apache-2.0 | 598 |
#!/bin/bash
# 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 applic... | knodir/kubernetes | cluster/validate-cluster.sh | Shell | apache-2.0 | 3,675 |
#!/bin/bash
set -euo pipefail
echo " - Checking if natives changed in commit $TRAVIS_COMMIT.."
NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
if [ "$NATIVE_CHANGES" != "" ]; then
echo " - Configuring GIT user"
git config --global user.email "travis-ci"
git config --glo... | PlanetWaves/clockworkengine | trunk/private/upload_native.sh | Shell | apache-2.0 | 1,085 |
#!/usr/bin/env bash
# This script is inspired from **scikit-learn** implementation of continous test
# integration. This is meant to "install" all the packages required for installing
# pgmpy.
# License: The MIT License (MIT)
set -e
sudo apt-get update -qq
sudo apt-get install build-essential -qq
if [[ "$DISTRIB" =... | liquidmetal/pgmpy | continous_integration/install.sh | Shell | mit | 1,022 |
#!/bin/bash
#Bash disables history in noninteractive shells by default, but we turn it on here.
HISTFILE=~/.bash_history
set -o history
cd /opt/QA/sources/suricata/ && (cd libhtp && git clean -xdf)
git clean -xdf
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
CFLAGS="-ggdb -O0" --e... | pevma/SQARD-S | staging-area/tests/ubuntu/sequence/01-generic/20-configure/02-configure.sh | Shell | gpl-2.0 | 476 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.