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
declare -a cleanupARR
declare -a cleanupLBARR
declare -a dbInstanceARR
aws ec2 describe-instances --filter Name=instance-state-code,Values=16 --output table | grep InstanceId | sed "s/|//g" | tr -d ' ' | sed "s/InstanceId//g"
mapfile -t cleanupARR < <(aws ec2 describe-instances --filter Name=instance-sta... | MitPat/Environment_FinalMP | cleanup.sh | Shell | gpl-3.0 | 1,938 |
#!/bin/bash
function send_tcp_message()
{
local address=$1
local port=$2
local message=$3
exec 3<>/dev/tcp/$address/$port
echo -e "$message" >&3
}
send_tcp_message $1 $2 $3
## Ref https://gist.github.com/akhin/6fe3987af338f8a55ca31eea0733e480
| tonight-halfmoon/shabang | elementary/tcp/tcp_client.sh | Shell | gpl-3.0 | 254 |
#!/bin/bash
#samples bamlistdir sitesfile anc
sbatch /n/holylfs/LABS/edwards_lab/ashultz/HFWGReseq/whole-genome-reseq/ANGSD/run_SAF_100MB.sbatch AU_90 /n/holylfs/LABS/edwards_lab/ashultz/HFWGReseq/whole-genome-reseq/BamLists_NoRel /n/holylfs/LABS/edwards_lab/ashultz/HFWGReseq/genome/bedfiles/genome_subset_100MB_shuff... | ajshultz/whole-genome-reseq | ANGSD/submit_SAF_subpops_100MB.sh | Shell | gpl-3.0 | 5,897 |
#!/bin/sh
rm -rf to-compress
rm -f to-compress.tar.gz
tar -xf linux-4.13.tar.gz
cp -va linux-4.13 to-compress
cp -va linux-4.13 to-compress/copy
rm -rf linux-4.13
| phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/compress-gzip-1.2.0/pre.sh | Shell | gpl-3.0 | 164 |
#! /bin/bash
# Verify the script is being runned as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Verify ruby is installed
if ! type "ruby" > /dev/null; then
echo "makefile-gen depends on ruby to work"
exit 1
fi
# Copy the script to /usr/bin
cp srcs/makefi... | kayofeld/makefile-gen | install.sh | Shell | gpl-3.0 | 474 |
#! /bin/bash
echo Tripartite bell scenario in probability space
echo Two binary measurements per party
# The results show that there are no non-trivial inequalities on the
# target subspace.
# For testing inside Travis:
set -e
set -x
here=$(dirname $BASH_SOURCE)
data=$here/data
subs="AB Ab aB ab AC Ac aC ac BC Bc... | coldfix/pystif | example/bell/pspace.sh | Shell | gpl-3.0 | 690 |
paths=$@
if [[ "$paths" == "" ]]; then
paths=wallet-db-user
fi
for i in $paths; do
mkdir "$i"
rscoin-user --wallet-path "$i" update
rscoin-user --wallet-path "$i" list
done
| input-output-hk/rscoin-haskell | admin/initDemoUser.sh | Shell | gpl-3.0 | 183 |
#!/bin/sh
set -e
OS=$(uname -s)
PROJECT=strusWebService
# set up environment
case $OS in
Linux)
;;
Darwin)
if test "X$CC" = "Xgcc"; then
# gcc on OSX is a mere frontend to clang, force using gcc 4.8
export CXX=g++-4.8
export CC=gcc-4.8
fi
# forcing brew versions (of gettext) over Mac versions
... | Eurospider/strusWebService | dist/travis/script.sh | Shell | mpl-2.0 | 2,878 |
#!/usr/bin/env sh
# Open a Bash shell into the workspace Docker container
cd laradock && docker-compose exec --user=laradock workspace bash
| WaveHack/OpenDominion | bin/02-login.sh | Shell | agpl-3.0 | 141 |
#!/bin/sh
source venv/bin/activate
ping
exec gunicorn -b :5000 --access-logfile - --error-logfile - VKUpdate:app
| stsouko/MWUI | vk_update/boot.sh | Shell | agpl-3.0 | 114 |
python pq.py printParallelParams | parallel 'gs -q -dSAFER -sDEVICE=bbox -dFirstPage=1 -dLastPage=1 -f "{}" 2>&1 | grep %BoundingBox | sed -e s/%%BoundingBox://g | tr -s " " "\t" | sed -e s/^/{/.}\\t/g'
| alexbyrnes/FCC-Political-Ads_The-Code | fpa/get_bboxes.sh | Shell | agpl-3.0 | 204 |
#!/bin/bash
set -ex
VENV_ROOT=$WORKSPACE/venvs
mkdir -p $VENV_ROOT
rm -rf $WORKSPACE/logs
if [ ! -d "$VENV_ROOT/analytics-tasks" ]
then
virtualenv $VENV_ROOT/analytics-tasks
fi
if [ ! -d "$VENV_ROOT/analytics-configuration" ]
then
virtualenv $VENV_ROOT/analytics-configuration
fi
TASKS_BIN=$VENV_ROOT/analyt... | open-craft/edx-analytics-configuration | automation/run-automated-task.sh | Shell | agpl-3.0 | 1,454 |
#!/bin/bash
#
for file in $1/*.tif
do
if test -f "$file"
then
echo "processing $file..."
/usr/local/bin/sipi --file $file --format jpx ${file%%.*}.jp2
fi
done | dhlab-basel/Sipi | test_tifs.sh | Shell | agpl-3.0 | 173 |
#!/bin/bash
cd /opt/superdesk/client &&
npm install &&
#bower --allow-root install &&
grunt --force server --server='http://localhost:5000/api' --ws='ws://localhost:5100' &
cd /opt/superdesk &&
bash ./scripts/fig_wrapper.sh honcho start
| hlmnrmr/liveblog | docker/start-dev.sh | Shell | agpl-3.0 | 238 |
#!/usr/bin/env bash
echo "Are you sure that the files"
echo " * 'lib/core/libimagrt/src/version.rs'"
echo " * 'scripts/version-updated'"
echo "contain the right version setting?"
echo "If yes, pass '--I-AM-SURE-VERSION-IS-UPDATED' as parameter"
[[ "--I-AM-SURE-VERSION-IS-UPDATED" == $1 ]] || exit 1
CRATES=(
./li... | matthiasbeyer/imag | scripts/release.sh | Shell | lgpl-2.1 | 2,302 |
#!/bin/sh
#
# A simple RTP server
# sends the output of autoaudiosrc as alaw encoded RTP on port 5002, RTCP is sent on
# port 5003. The destination is 127.0.0.1.
# the receiver RTCP reports are received on port 5007
#
# .--------. .-------. .-------. .----------. .-------.
# |audiosrc| |alawenc| ... | dgerlach/gst-plugins-good | tests/examples/rtp/server-alsasrc-PCMA.sh | Shell | lgpl-2.1 | 1,619 |
# Manage authentication keys.
_ku_cmd xxx 'manage xxx'
function _ku_xxx() {
# Help message
function _ku_help() {
echo ''
echo 'Usage: kuero keys:COMMAND [options] help'
echo ''
echo 'add # add a key for the current user'
echo 'clear # remove all authentication keys from the current u... | jclo/kuero | src/client/lib/template-kuero-cmd.sh | Shell | lgpl-2.1 | 1,326 |
#!/bin/bash
echo -e "Creating javadoc...\n"
./gradlew javadoc
echo -e "Publishing javadoc...\n"
cp -R html/javadoc $HOME/javadoc-latest
echo -e "Installing requirements...\n"
cd docs
pip3 install -r requirements.txt
echo -e "Generating static HTML pages for documentation...\n"
make html
echo -e "Publishing doc... | shivenmian/loklak_server | .utility/push-docs-to-gh-pages.sh | Shell | lgpl-2.1 | 1,028 |
#!/bin/bash
coverage run -m pytest && coverage html -d coverage
| adamreeve/npTDMS | coverage.sh | Shell | lgpl-3.0 | 64 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Default
CND_DISTDIR=dist
CND_BUILDDIR=build
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=nio.bin
OUTPUT_BASENAME=nio.bin
PACKAGE_TOP_DIR=nio/
# Functions
fun... | dalmirdasilva/ArduinoNIOLibrary | nbproject/Package-Default.bash | Shell | lgpl-3.0 | 1,370 |
#!/system/busybox sh
CONF_FILE="/data/userdata/anticensorship"
CURRENT_MODE="$(cat $CONF_FILE)"
echo $CURRENT_MODE
if [[ "$1" == "get" ]]
then
[[ "$CURRENT_MODE" == "" ]] && exit 0
[[ "$CURRENT_MODE" == "0" ]] && exit 0
[[ "$CURRENT_MODE" == "1" ]] && exit 1
# error
exit 255
fi
if [[ "$1" == "s... | ValdikSS/huawei_oled_hijack | scripts/E5885/anticensorship.sh | Shell | lgpl-3.0 | 543 |
alias lg='lazygit'
alias gs='git status'
alias gl='git log'
alias ga='git add'
alias gr='git rm'
alias gd='git diff'
alias gdc='git diff --cached'
alias gg='git grep --break --heading --line-number'
alias gcm='git commit'
alias gcmm='git commit -m'
alias gcma='git commit --amend'
alias gpl='git pull --rebase'
alias gps... | synaptiko/.files | zsh/git-aliases.zsh | Shell | unlicense | 3,160 |
#! /bin/bash
# exercise the query state functions
curl_sparql_request <<EOF \
| jq '.results.bindings[] | .[].value' | fgrep -q 'true'
# prefix xsd: <http://www.w3.org/2001/XMLSchema-datatypes>
select ((( xsd:gYearMonth('1976-02-05:00') = '1976-02-05:00'^^xsd:gYearMonth) &&
( xsd:gYearMonth('1976-02Z') = ... | dydra/http-api-tests | extensions/sparql-protocol/temporal-data/gYearMonth.sh | Shell | unlicense | 1,260 |
#!/bin/bash
# set $GEM_HOME/bin/ for CocoaPods.
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:$GEM_HOME/bin"; export PATH
version=$(cat version)
echo "make clean build"
make clean build | ruby files/extra/reduce-logs.rb
if [ ${PIPESTATUS[0]} -ne 0 ]; then
exit 99
fi
# --------------------------------------... | tekezo/Seil | make-package.sh | Shell | unlicense | 3,507 |
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | blakebarnett/kops | addons/prometheus-operator/sync-repo.sh | Shell | apache-2.0 | 1,185 |
#!/bin/sh -e
# Copyright 2015 realglobe, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | realglobe-Inc/edo-auth | script/install_edo-auth.sh | Shell | apache-2.0 | 1,280 |
#!/usr/bin/env bash
source /etc/profile.d/chruby.sh
chruby ruby
function cp_artifacts {
mv $HOME/.bosh director-state/
cp -r director.yml director-creds.yml director-state.json cpi-release/ director-state/
}
trap cp_artifacts EXIT
: ${BAT_INFRASTRUCTURE:?}
: ${BOSH_SL_VM_NAME_PREFIX:?}
: ${BOSH_SL_VM_DOMAIN:?}
... | mattcui/bosh-softlayer-cpi-release | ci/bats/tasks/deploy-director-softlayer.sh | Shell | apache-2.0 | 1,560 |
#!/bin/bash
mkdir -p mashupcamp_editor/static
cp ../mashupcamp_editor/README.txt mashupcamp_editor/
cp ../mashupcamp_editor/app.yaml mashupcamp_editor/
cp ../mashupcamp_editor/article.py mashupcamp_editor/
cp ../mashupcamp_editor/article.html mashupcamp_editor/
cp ../mashupcamp_editor/main.py mashupcamp_editor/
cp ../... | jscud/sippycode | simple_releases/mashupcamp_editor.sh | Shell | apache-2.0 | 496 |
#!/bin/sh
set -e
source ./shared.functions.sh
START_DIR=$PWD
WORK_DIR=$START_DIR/../../../../../.macosbuild
mkdir -p $WORK_DIR
WORK_DIR=$(abspath "$WORK_DIR")
INDY_SDK=$WORK_DIR/vcx-indy-sdk
VCX_SDK=$START_DIR/../../../../..
VCX_SDK=$(abspath "$VCX_SDK")
export IOS_TARGETS=$3
source ./mac.05.libvcx.env.sh
cd ../../... | Artemkaaas/indy-sdk | vcx/libvcx/build_scripts/ios/mac/mac.06.libvcx.build.sh | Shell | apache-2.0 | 2,909 |
#!/bin/sh
./server.py -p 8092 -d config &
| ekivemark/BlueButtonDev | oidc/pyoidc-master/oidc_example/op2/start.sh | Shell | apache-2.0 | 42 |
#!/bin/bash
# Copyright 2015 Insight Data Science
#
# 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 ... | InsightDataScience/pegasus | config/flink/setup_single.sh | Shell | apache-2.0 | 2,088 |
#!/bin/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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | googleinterns/k8s-topology-simulator | run-all.sh | Shell | apache-2.0 | 1,023 |
#!/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... | jhseu/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/cpu_py35_full/nightly_release.sh | Shell | apache-2.0 | 2,333 |
#!/bin/bash
jflex --nobak -d "$(dirname $0)/../src/org/dflow/compiler/parser/" dflow.l
bison -o "$(dirname $0)/../src/org/dflow/compiler/parser/ApplicationParser.java" application.y
bison -o "$(dirname $0)/../src/org/dflow/compiler/parser/DataModelParser.java" datamodel.y
| leonardo-fernandes/dflow | org.dflow.compiler/src-parsers/generate-parsers.sh | Shell | apache-2.0 | 274 |
#!/bin/bash
# Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | googleapis/python-appengine-admin | .kokoro/build.sh | Shell | apache-2.0 | 1,765 |
#!/usr/bin/env bash
#===----------------------------------------------------------------------===#
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://... | apple/swift-format | Scripts/format-diff.sh | Shell | apache-2.0 | 1,502 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
STARTTIME=$(date +%s)
OS_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${OS_ROOT}/hack/lib/init.sh"
os::log::install_errexit
EXAMPLES=examples
OUTPUT_PARENT=${OUTPUT_ROOT:-$OS_ROOT}
pushd ${OS_ROOT}/Godeps/_workspace > /dev/null
godep_path=$(pwd)
pushd src... | sgallagher/origin | hack/gen-bootstrap-bindata.sh | Shell | apache-2.0 | 1,050 |
#!/bin/sh
wget https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-03-25/2021-03-04-raspios-buster-armhf-lite.zip | javier-ruiz-b/docker-rasppi-images | rpi-image-builder/download-raspios.sh | Shell | apache-2.0 | 145 |
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | kubeflow/training-operator | scripts/setup-tf-operator.sh | Shell | apache-2.0 | 1,595 |
#!/bin/bash
set -e
# Sends JSON message '{"command":"function", "arg1": "Hello world"}' to user '1234' with namespace 'custom-api'.
# Returns false if no user '1234' is connected. Returns true otherwise.
curl -X POST -d 'user=1234&event=custom-api&message={"command":"function", "arg1": "Hello world"}' http://localho... | EducationalTestingService/halef-messenger | examples/http-post.sh | Shell | apache-2.0 | 347 |
#!/bin/bash
# Copyright 2016 Port Direct
#
# 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... | portdirect/harbor | docker/openstack/openstack-magnum/common-assets/opt/harbor/magnum/manage/env-keystone-admin-auth.sh | Shell | apache-2.0 | 2,247 |
#!/bin/bash
#
# controller-build - Build the SDN controller
#
# Copyright (C) 2016 HCL Technologies
#
# Author: Paolo Rovelli <paolo.rovelli@hcl.com>
#
if [ $# -ne 1 ]; then
echo "Usage: controller-build <config.json>"
exit 0
fi
. $(dirname $(readlink -f ${0}))/../utils/spinner-utils.sh
CONTROLLER_URL=$(jq -r... | demx8as6/CENTENNIAL | 02-MWTN-PoC/test/test-env/controller-odl/controller-build.sh | Shell | apache-2.0 | 1,637 |
#!/bin/bash
### It dockerizes automatically ###
cd /home/TolaActivity
git stash
git pull origin master
docker-compose build
docker-compose up
| mercycorps/TolaActivity | docker.sh | Shell | apache-2.0 | 146 |
#! /usr/bin/env bash
#
# This script builds all the YAMLs that Knative container-freezer publishes.
# It may be varied between different branches, of what it does, but the
# following usage must be observed:
#
# generate-yamls.sh <repo-root-dir> <generated-yaml-list>
# repo-root-dir the root directory of t... | knative-sandbox/container-freezer | hack/generate-yamls.sh | Shell | apache-2.0 | 2,400 |
#!/usr/bin/env bash
# Copyright 2013, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | cloudnull/rcbops_virt_builder | rebuild-env.sh | Shell | apache-2.0 | 10,414 |
#create a fork, clone it and set its upstream value
#1. get github authentication token:
# https://github.com/settings/applications#personal-access-tokens
# Click generate personal toke
token=""
##############################
# Creates fork of taulia repo
# Clones repo source code in current folder/repoName
# Con... | leni-kirilov/scripts | bash/github_fork.bash | Shell | apache-2.0 | 1,212 |
#!/bin/sh
JDBC_IMPORTER_HOME=/data-importer
bin=$JDBC_IMPORTER_HOME/bin
lib=$JDBC_IMPORTER_HOME/lib
echo '{
"type" : "jdbc",
"jdbc" : {
"schedule" : "0 0/2 * * * ?",
"statefile" : "statefile.json",
"url" : "jdbc:jtds:sqlserver://dbserver:1433;databasename=dbname;",
"user" : ... | vinayakbhadage/data-importer | bin/dataimport.sh | Shell | apache-2.0 | 1,118 |
#!/bin/bash
NET_OC_CONF_DOC="https://raw.githubusercontent.com/fanyueciyuan/eazy-for-ss/master/ocservauto"
rm -f ocservauto.sh
wget -c --no-check-certificate http://git.io/p9r8 -O ocservauto.sh
[ ! -d /etc/ocserv ] && mkdir /etc/ocserv
cd /etc/ocserv
[ -f /etc/init.d/ocserv ] && rm -f /etc/init.d/ocserv
[ -f ocserv-... | satifanie/anyconnect | eazy-for-ss-master/ocservauto/ocservautofordebian.sh | Shell | apache-2.0 | 757 |
#!/usr/local/bin/bash
#
# Destroy an existing VM and its ZVOL
# See the README.md file for general documentation
#
# This script takes one argument:
# - the VM name, with an optional path prefix
### Constants
# The zfs mount point where are stored the ZVOLs
zvol_path='tank/vm/disks/'
# The zfs pool where are stored t... | tonin/vbox-helpers | vbox-vm-destroy.sh | Shell | apache-2.0 | 2,206 |
#!/bin/bash
# Copyright 2015 Backstop Solutions Group, 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 la... | BillWeiss/2015PuppetCampMaterials | precommit/40_site-modules-Puppetfile.sh | Shell | apache-2.0 | 1,428 |
#!/bin/bash
DATA_PATH=$1
[ $# -lt 1 ] && DATA_PATH=fio_file
CWD=$(pwd)
trap "wait && exit" SIGINT SIGTERM
# Gather system snapshot
[ ! -e linux_summary ] && git clone https://github.com/jschaub30/linux_summary
cd linux_summary
git pull
./linux_summary.sh
HOST=$(hostname -s)
SNAPSHOT=$CWD/linux_summary/${HOST}.html
... | jschaub30/fio_scripts | collect.sh | Shell | apache-2.0 | 2,155 |
#!/bin/bash
if [ "$#" -lt 3 ];
then
echo "Usage: <nworkers> <nthreads> <path_in_HDFS>"
exit -1
fi
# кладём дату в HDFS
hadoop fs -mkdir $3/data
hadoop fs -put ../data/clean_train.txt.train $3/data
hadoop fs -put ../data/clean_train.txt.test $3/data
# TODO: не забыть вынести путь до DMLC в переменную (или вычислять)... | SammyVimes/san_francisco_crimes | hadoop/dmlc.sh | Shell | apache-2.0 | 1,495 |
# -----------------------------------------------------------------------------
#
# Package : github.com/containerd/continuity
# Version : v0.0.0-20200228182428-0f16d7a0959c
# Source repo : https://github.com/containerd/continuity
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer ... | ppc64le/build-scripts | g/github.com__containerd__continuity/github.com__containerd__continuity_rhel_8.3.sh | Shell | apache-2.0 | 5,141 |
#!/bin/bash -x
echo "##################### EXECUTE: kurento_ci_container_dnat_hook_handler #####################"
# Path information
BASEPATH="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" # Absolute canonical path
PATH="${BASEPATH}:${PATH}"
exec >> hook.log
exec 2>&1
echo "Arguments: $*"
event=$1
container=$2
echo... | Kurento/adm-scripts | kurento_ci_container_dnat_hook_handler.sh | Shell | apache-2.0 | 1,943 |
function install_runurl {
if [ ! -a /usr/bin/runurl ]; then
wget -qO/usr/bin/runurl run.alestic.com/runurl
chmod 755 /usr/bin/runurl
fi
}
| ekoontz/whirr | core/src/main/resources/functions/install_runurl.sh | Shell | apache-2.0 | 150 |
#! /bin/bash
# shellcheck disable=SC2206
# 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... | apigee/devrel | references/product-recommendations/setup_bigquery.sh | Shell | apache-2.0 | 1,280 |
#!/usr/bin/env bash
###############################################################################
# Copyright 2020 The Apollo 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... | jinghaomiao/apollo | docker/build/installers/install_release_deps.sh | Shell | apache-2.0 | 1,120 |
#!/bin/bash
#
# Push the current fuzzilli image (built from the Docker/ directory) to the GCE docker registry.
#
set -e
source config.sh
docker tag fuzzilli gcr.io/$PROJECT_ID/$CONTAINER_NAME
docker push gcr.io/$PROJECT_ID/$CONTAINER_NAME
| googleprojectzero/fuzzilli | Cloud/GCE/push.sh | Shell | apache-2.0 | 242 |
#!/bin/sh
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2016 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may ... | rdkcmf/rdk-sysint | lib/rdk/logRotateDaemon.sh | Shell | apache-2.0 | 13,919 |
#!/usr/bin/env bash
#
# Copyright 2009-2019 OpenEstate.org.
#
# 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 applicab... | OpenEstate/OpenEstate-PHP-Export | i18n-compile.sh | Shell | apache-2.0 | 1,848 |
#!/bin/bash
readonly ROOT="${ROOT:-.}"
readonly FILENAME=${FILENAME:-$(basename $(pwd))}
readonly TARGET_DIR=$(mktemp -d)
readonly TARGET="${TARGET_DIR}/${FILENAME}.zip"
zip -r "${TARGET}" "${ROOT}" -x bin/\* -x ./target/\* -x .project -x .settings/\* -x .classpath > /dev/null
if [ "${?}" -eq 0 ]; then
echo "Proje... | rpelisse/weld-se-log-issue | src/main/bash/compress-project.sh | Shell | apache-2.0 | 391 |
#!/bin/bash
nTop=$1
for protFile in $( ls sparseData2/protInfo_expr*.csv ); do
# echo - $protFile -:
cat $protFile.desc
echo -n ";"
python3.5 ../../getAUC.py $protFile $nTop
done
| ameenetemady/DeepPep | gatherResults.sh | Shell | apache-2.0 | 182 |
#!/bin/bash
set -e
ROOT="tests"
for f in $ROOT/*.sysl; do
f=`basename $f`
$GOPATH/bin/sysl -v pb --mode textpb --root $ROOT -o $ROOT/$f.out.txt /$f
done;
rm $ROOT/*.out.txt
$GOPATH/bin/sysl -v sd -a 'Project' $ROOT/sequence_diagram_project.sysl
rm _.png
$GOPATH/bin/sysl -v sd -s 'WebFrontend <- RequestProfile' -o... | ANZ-bank/Sysl | scripts/test-gosysl.sh | Shell | apache-2.0 | 653 |
#!/bin/bash
# Copyright 2021 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# The version of tbb installed on manylinux2014 is too old to support the
# parallel STL li... | google/iree | build_tools/github_actions/install_tbb_manylinux2014.sh | Shell | apache-2.0 | 1,774 |
#!/bin/bash
DATA_DIR=../data
BIN_DIR=../bin
SRC_DIR=../src
pushd ${SRC_DIR} && make; popd
sh ./create-lowercase-phrases-data.sh
set -x
$BIN_DIR/distance $DATA_DIR/lowercase-vectors-phrase.bin
| dav/word2vec | scripts/demo-phrases.sh | Shell | apache-2.0 | 195 |
#!/bin/sh
case `uname -s` in
HP-UX)
OS="Unix";;
SunOS)
OS="Unix";;
IRIX*)
OS="Unix";;
Linux)
OS="Unix";;
*)
OS="Windows";;
esac
./make/${OS}/make.log_presentation.sh $*
#
# -- end:
#
| kit-transue/software-emancipation-discover | log_presentation/make.log_presentation.sh | Shell | bsd-2-clause | 203 |
# Aliases in this file are bash and zsh compatible
# Don't change. The following determines where YADR is installed.
yadr=$HOME/.yadr
# YADR support
alias yav='yadr vim-add-plugin'
alias ydv='yadr vim-delete-plugin'
alias ylv='yadr vim-list-plugin'
alias yup='yadr update-plugins'
alias yip='yadr init-plugins'
# PS
a... | neanias/dotfiles | zsh/aliases.zsh | Shell | bsd-2-clause | 3,964 |
#!/bin/bash
## First, setup the ace hack
# copy blang file
cp blang.js ace-master/lib/ace/mode/
cp xtend.js ace-master/lib/ace/mode/
cd ace-master
npm clean
npm install
node Makefile.dryice.js
cd ..
rm -rf www/ace
cp -r ace-master/build/src/ www/ace
## Then, generate the actual documentation
# Rebuild source
cd ... | UBC-Stat-ML/blangSDK | doc/build.sh | Shell | bsd-2-clause | 1,055 |
#!/bin/bash
if [ "`whoami`" != 'postgres' ] ; then
echo "Please run this script as the user 'postgres'."
exit 2
fi
if [ $# != 3 ] ; then
echo "Usage: $0 database original_user new_user"
echo "Example: $0 FB2010_05 joachim gazebo"
exit 1
fi
DB=$1
ORIGINAL_USER=$2
NEW_USER=$3
echo "CREATE DATABASE $DB OWNER ${NE... | strawlab/flystockdb | support/scripts/restore_x.sh | Shell | bsd-2-clause | 433 |
#!/bin/bash
$1/planet-dump-ng --generator "planet-dump-ng test X.Y.Z" --changeset-discussions discussions.osm.bz2 --changeset-discussions-no-userinfo discussions-no-userinfo.osm.bz2 --dump-file $1/test/liechtenstein-2013-08-03.dmp
| zerebubuth/planet-dump-ng | test/discussions.xml.case/cmd.sh | Shell | bsd-2-clause | 232 |
#!/bin/bash
# 50-genresp.sh
# Generates responses for iRODS' setup_irods.sh script.
# Zone SID, agent key, database admin, and admin password are all randomized.
RESPFILE="/opt/irods-aws/setup_responses"
EC2_INSTANCE_ID=$(ec2metadata --instance-id)
echo "irods" > $RESPFILE # service account user ID
e... | DICE-UNC/contrib | ec2-irods4.0.3-idw2/per-instance/50-genresp.sh | Shell | bsd-3-clause | 1,898 |
#!/bin/sh
#
# Copyright (c) 2011, University of Konstanz, Distributed Systems Group
# 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 cop... | sebastiangraf/treetank | scripts/svnToGit/02.sh | Shell | bsd-3-clause | 1,759 |
#!/bin/bash
cd "/export/home/ssakdeo/softwares/Tomcat 7/apache-tomcat-7.0.5/apache-tomcat-7.0.5/webapps/WISE/WEB-INF/classes"
/export/home/ssakdeo/softwares/jdk1.6.0_10/jre/bin/java -classpath ../lib -jar email_scheduler.jar /WISE
| ctsidev/SecureWise | latest binaries/run scripts/scripts with other functions/email_schedule.sh | Shell | bsd-3-clause | 232 |
#!/usr/bin/env bash
set -x
set -o pipefail
set -e
diff <(./minn.awk -v group=10 example_input.txt) <(echo 'SNP BP P'; echo 'line6 31529180 0.120407155')
diff <(./minn.awk -v group=10 -v key=2 example_input.txt) <(echo 'SNP BP P'; echo 'line1 31528339 0.329333277')
diff <(./minn.awk -v group=5 -v key=2 example_input... | glennsb/minn | test.sh | Shell | bsd-3-clause | 734 |
#!/usr/bin/env bash
# go to the clang-format dir because this is where the .clang-format file is
# located
cd "$( dirname "${BASH_SOURCE[0]}" )"
# format files
clang-format -style=file ../input/coding_conventions.hpp > ../output/coding_conventions.hpp
clang-format -style=file ../input/coding_conventions.cpp > ../outp... | ekiwi/xpcc-playground | format/clang-format/format_coding_conventions.sh | Shell | bsd-3-clause | 408 |
#!/bin/bash
set -e -u -o pipefail
usage() {
echo "Usage:"
echo "$0 -h|--help"
echo "$0 -f|--flow1-prio {0..7} -F|--flow2-prio {0..7} -t|--flow1-time-ms {0..50} -T|--flow2-time-ms {0..50}"
}
[ -z "${TOPDIR+x}" ] && { echo "Please source envsetup before running this script."; exit 1; }
# Chassis ETH2: Switch port ... | openil/sja1105-tool | src/helpers/configs/rate-limiting/scheduling.sh | Shell | bsd-3-clause | 2,485 |
#!/usr/bin/env bash
set -e
pip_cache="$HOME/.cache"
docker_pip_cache="/tmp/cache/pip"
cd tests
docker build --build-arg PYTHON_IMAGE=python:3.6 -t python-linters .
docker run \
-e LOCAL_USER_ID=$UID \
-e PIP_CACHE=${docker_pip_cache} \
-v ${pip_cache}:$(dirname ${docker_pip_cache}) \
-v "$(dirname $(pwd))":... | beniwohli/apm-agent-python | tests/scripts/docker/isort.sh | Shell | bsd-3-clause | 545 |
# run all examples just to ensure they don't throw any errors
node ./examples/simple/render.js ./examples/stylesheet.xml /tmp/map.png
node ./examples/simple/blank.js & PID=$!; sleep 2; kill $PID
node ./examples/simple/simple.js & PID=$!; sleep 2; kill $PID
node ./examples/simple/simple_pool.js & PID=$!; sleep 2; kill $... | springmeyer/node-mapnik-heroku | test/run_examples.sh | Shell | bsd-3-clause | 1,091 |
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}.img"
IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')"
BOOT_PARTUUID="${IMGID}-01"
ROOT_PARTUUID="${IMGID}-02"
sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=${ROOT... | WLANThermo/pi-gen | export-image/03-set-partuuid/00-run.sh | Shell | bsd-3-clause | 439 |
#!/bin/bash
#############################################################################
# Copyright (c) 2018, Intel Corporation #
# All rights reserved. #
# ... | egeor/libxsmm | samples/edge/analyze_test_matops_out.sh | Shell | bsd-3-clause | 2,934 |
#!/bin/bash
# iOS
npx react-native bundle \
--platform ios \
--dev false \
--entry-file index.js \
--bundle-output bundle/devlauncher.ios.bundle
tee > ios/EXDevLauncherBundle.cpp <<EOF
// NOTE: Autogenerated using 'yarn bundle' in 'expo-dev-launcher' package
#include "EXDevLauncherBundle.h"
const ... | exponent/exponent | packages/expo-dev-launcher/write_embedded_bundle.sh | Shell | bsd-3-clause | 731 |
#!/bin/bash
#script takes the merged bam files generated by call.chipreadhandler.sh
# and calls macs peaks under standard definitions - qsub script written on the fly
OUTDIR=/magnuson-lab/jraab/analysis/swi_snf_final/output/macs_peaks/
INPUT=/magnuson-lab/jraab/analysis/swi_snf_final/data/chip/processed/input.sorted.b... | jraab/raab_swisnf_2015 | code/callMacsNormal.sh | Shell | mit | 936 |
#!/bin/bash
set -eu
: ${1:? Usage: $0 RELEASE_VERSION}
SCRIPTS=`dirname "$0"`
RELEASE_VERSION="$1"
if [[ ! "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: RELEASE_VERSION must be in X.Y.Z format, but was $RELEASE_VERSION"
exit 1
fi
function contains-line() {
grep --line-regexp --quiet... | orfjackal/datatree | scripts/release.sh | Shell | mit | 2,097 |
#!/usr/bin/env bash
ENV_NAME=$1
echo "--- Setting up hostname ---"
sudo rm /etc/hostname
sudo echo "$ENV_NAME" >> /etc/hostname
sudo echo "127.0.1.1 $ENV_NAME" >> /etc/hosts
sudo hostname $ENV_NAME
hostname
echo "--- Updating packages list ---"
sudo apt-get update
echo "--- Installing base packages ---"
sudo... | mandado/Lagrant | vagrant/scripts/init.sh | Shell | mit | 445 |
#!/bin/bash
fur favicon "favicon.png" --text="api" --color="n" --font="p" --shape="i" --font-size="92" --format="png" | fur-labo/fur-examples | example/08-apeman-api/render_favicon.sh | Shell | mit | 118 |
#!/bin/bash
#
# SCRIPT: generic_rsync.bash
# AUTHOR: Randy Michael
# DATE: 11/18/2007
# REV: 1.0
# PURPOSE: This is a generic shell script to copy files
# using rsync.
#
# set -n # Uncomment to check script syntax without execution
# set -x # Uncomment to debug this script
#
# REV LIST:
#
#
############################... | quchunguang/test | bookshell/chapter7/generic_rsync.bash | Shell | mit | 732 |
source $stdenv/setup
export DESTDIR=$out
mkdir -p $out/usr/bin
genericBuild
| SymbiFlow/nixpkgs | pkgs/os-specific/linux/cramfsswap/builder.sh | Shell | mit | 78 |
#!/usr/bin/env bash
# ddns_updater.sh: Checks DDNS sites and updates the IPs if needed.
# author: patrice@brendamour.net
# bomb on any error
set -e
# make sure basic paths are set
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
CDW=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
. ${CDW}/functions
SQLITE_DB=${CDW}/../a... | ab77/netflix-proxy | scripts/ddns_updater.sh | Shell | mit | 1,337 |
#!/usr/bin/env bash
printf "%$(tput cols)s\n"|tr " " "="
echo "Starting vagrant machine"
printf "%$(tput cols)s\n"|tr " " "="
vagrant up
printf "%$(tput cols)s\n"|tr " " "="
echo "Starting ssh session"
printf "%$(tput cols)s\n"|tr " " "="
vagrant ssh | christian-rizza/vagrant-tutorial | vagrant-ssh.sh | Shell | mit | 251 |
#!/bin/bash
# run_lstm_1c.sh is like run_lstm_1b.sh but changing from the old LSTM
# implementation to our new 'fast' LSTM layer. The xconfig changes from
# 'lstm-layer' to 'fast-lstm-layer'. It's as good as or maybe slightly better
# than the old setup.
# steps/info/chain_dir_info.pl exp/chain_cleaned/lstm1c_sp_b... | michellemorales/OpenMM | kaldi/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh | Shell | gpl-2.0 | 10,427 |
#!/usr/bin/env bash
cd ../../default
drush updb -y
cd ..
find . -maxdepth 1 -type d -name "mercy.edu.*" -exec sh -c '(cd {} && drush updb -y )' ';'
| eleanorw13/development | sites/all/scripts/deploy-prod.sh | Shell | gpl-2.0 | 148 |
#!/bin/sh
cat <<EOF
Usage: t-seqall <additional-sbagen-options-if-required>
Please note: These tone-sets are based on data from a document that
appeared on USENET, from someone who appears to have measured the
frequencies used on some of the Monroe Institute tapes. Although the
frequencies were measured, the relativ... | jave/sbagen-alsa | scripts/t-seqall.sh | Shell | gpl-2.0 | 5,331 |
#!/bin/sh
#==============================================================================
# Copyright (c) Linux Test Project, 2014
# Copyright (c) 2015 Red Hat, 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... | richiejp/ltp | testcases/kernel/containers/netns/netns_helper.sh | Shell | gpl-2.0 | 9,605 |
#!/bin/bash
#
# MIT Alexander Couzens <lynxis@fe80.eu>
set -e
SDK_HOME="$HOME/sdk"
SDK_PATH=https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/
SDK=lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64
PACKAGES_DIR="$PWD"
echo_red() { printf "\033[1;31m$*\033[m\n"; }
echo_green() { printf "\033[1;32... | pfzim/openwrt-packages | .travis_do.sh | Shell | gpl-2.0 | 5,819 |
#!/bin/bash -ue
# Copyright (C) 2013 Percona 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; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
#... | tempesta-tech/mariadb_10.2 | scripts/wsrep_sst_xtrabackup-v2.sh | Shell | gpl-2.0 | 39,189 |
#!/usr/bin/bash
pandoc KGDB.md -s -f markdown -t html -o KGDB.html
pandoc NOTES.md -s -f markdown -t html -o NOTES.html
pandoc README.md -s -f markdown -t html -o README.html
pandoc SKINNING.md -s -f markdown -t html -o SKINNING.html
| Wintermute0110/advanced-emulator-launcher | make_docs.sh | Shell | gpl-2.0 | 234 |
#!/bin/bash
# NIC IRQ affinity
# show IRQs for network interfaces
# cat /proc/interrupts | egrep "eth[0-9]+-Tx"
for i in {119..126}; do echo "Setting IRQ $i"; echo 00000100 > /proc/irq/$i/smp_affinity; done
for i in {129..136}; do echo "Setting IRQ $i"; echo 00000200 > /proc/irq/$i/smp_affinity; done
for i in {155..... | google-code/amico | utils/set_nic_irq_smp_affinity_multiqueue.sh | Shell | gpl-2.0 | 686 |
#!/bin/bash
MY_PATH="`dirname \"$0\"`"
if [ -f "$MY_PATH/build_number" ]
then
number=`cat $MY_PATH/build_number`
else
number=0
fi
if [ ! -f $MY_PATH/../build_number.h ]
then
# This is needed to build, so make sure it's available
echo "const int build_number = ""$number;" | tee $MY_PATH/../build_number.h
fi
if [ ... | daniel-holder/sleepyhead-cloud | sleepyhead/scripts/inc_build.sh | Shell | gpl-3.0 | 653 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "Release 1 IP, 10 connections killed, 3 fail"
setup_ctdb
ctdb_get_1_public_address |
while read dev ip bits ; do
ok_null
simple_test_event "takeip" $dev $ip $bits
count=10
setup_tcp_connections $count \
"$ip" 445 10.254.254.0 12300
setup_tcp_con... | lidan-fnst/samba | ctdb/tests/eventscripts/10.interface.012.sh | Shell | gpl-3.0 | 625 |
#!/bin/sh
#
# srecord - Manipulate EPROM load files
# Copyright (C) 2009, 2011 Peter Miller
#
# 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... | freyc/SRecord | test/01/t0169a.sh | Shell | gpl-3.0 | 1,426 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.