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
#
# 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, software
# ... | NJUJYB/disYarn | hadoop-common-project/hadoop-kms/src/main/sbin/kms.sh | Shell | apache-2.0 | 3,779 |
#!/bin/bash
files=(bash_profile gitignore inputrc pylintrc screenrc tmux.conf vimrc)
install-vim-deps() {
# pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# solarized
cd ~/.vim/bundle
git clone git://github.com/altercation/vim-colors... | csuttles/utils | home/linux-install.sh | Shell | apache-2.0 | 644 |
find src \( -name *.java -o -name *.xml -o -name *.js -o -name *.html -o -name *.css -o -name *.properties -o -name *.jsp \) -exec cat {} \; | wc -l
| alexript/balas | calc_src_lines.sh | Shell | apache-2.0 | 149 |
#!/bin/bash
cd /var/shopping-plaza.ru/common/cron
php -f ./news.php | rootree/shopping-plaza | common-files/cron/news.sh | Shell | apache-2.0 | 69 |
#!/bin/bash
exec 1> >(logger -s -t $(basename $0)) 2>&1
function shutdown()
{
date
echo "Shutting down Tomcat"
${CATALINA_HOME}/bin/catalina.sh stop
}
# Allow any signal which would kill a process to stop Tomcat
trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP
if [ ! -f ${CATALINA_HOME}/scripts/.tomc... | CALlanoR/virtual_environments | ansible/centos7_tomcat8/scripts/tomcat.sh | Shell | apache-2.0 | 554 |
#!/bin/bash
if [ $ANT_HOME ] ; then
EXE_ANT=$ANT_HOME/bin/ant
else
export ANT_HOME=$(pwd)/apache-ant-1.9.6
fi
echo ANT_HOME: $ANT_HOME
export MRUN_OPTS="$1"
if [ e$2 != "e" ] ; then
export MRUN_OPTS="$MRUN_OPTS $2"
fi
if [ e$3 != "e" ] ; then
export MRUN_OPTS="$MRUN_OPTS $3"
fi
echo ant... | OpenSourceConsulting/athena-meerkat | agent/runtarget.sh | Shell | apache-2.0 | 378 |
#!/bin/bash
for time in `cat hdfs.incon | awk '{print $1}' | uniq`
do
let min=100
for val in `cat hdfs.incon | grep "^$time " | awk '{print $2}'`
do
if [ $min -gt $val ]; then
min=$val
fi
done
echo $time" "$val
done
| songweijia/hdfsrs | experiments/precision/ana/hdfs.sh | Shell | apache-2.0 | 240 |
#!/bin/bash
###############################################
# Function to clean TMP files
###############################################
cleanup() {
rm -rf "${TMP_SUBMIT_SCRIPT}".*
}
###############################################
# Function to submit the script
###############################################
ERRO... | mF2C/COMPSs | compss/runtime/scripts/queues/commons/submit.sh | Shell | apache-2.0 | 1,834 |
#!/bin/sh
bash -c "
mkdir -p components-extras;
cd components-extras;
rm -rf scala-2.*.tgz;
rm -rf jdk*;
rm -rf OpenJDK*;
wget https://downloads.lightbend.com/scala/2.12.8/scala-2.12.8.tgz;
wget https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b04/OpenJDK8U-jdk_x64_linux_hotspot_8u212b04.ta... | thomsonreuters/CM-Well | server/cmwell-cons/app/get-3rd-components.sh | Shell | apache-2.0 | 332 |
#!/bin/bash
#
# Wrapper script needs improvement!
#
# @author Andre van Hoorn
BINDIR=$(cd "$(dirname "$0")"; pwd)/
JAVAARGS="-Dkieker.common.logging.Log=JDK -Djava.util.logging.config.file=${BINDIR}/logging.properties -Xms56m -Xmx1024m"
MAINCLASSNAME=kieker.tools.KaxViz
#echo java ${JAVAARGS} -cp "${CLASSPATH}" ${MA... | HaStr/kieker | bin/kax-viz.sh | Shell | apache-2.0 | 448 |
curl \
--cacert ca.crt \
--key client.key \
--cert client.crt \
https://localhost:3000
| trammell/test | mtls/client.sh | Shell | artistic-2.0 | 95 |
#!/bin/bash
for i in `seq 1 5`; do
mysql -h 127.0.0.1 -u root --password=1234 -e 'show databases;' && break
echo "[*] Waiting for mysql to start..."
sleep 5
done
echo "[*] Loading MySQL schema..."
mysql -h 127.0.0.1 -u root --password=1234 < ./db/schema.v0.sql
echo "[*] Loading MySQL dummy data..."
mysql ... | diegocepedaw/oncall | .ci/setup_mysql.sh | Shell | bsd-2-clause | 508 |
#!/bin/bash
printf "Checking average fishing mortality in \""`pwd`"\" ... "
declare -r FILENAME=`head -n 1 file_nam.tmp`
rm -f gmon.out
rm -f $FILENAME-p*.log
rm -f $FILENAME.ppp
rm -f $FILENAME-p*.par
rm -f variance
rm -f $FILENAME.p0*
rm -f fmin.log
rm -f $FILENAME-p*.bar
rm -f $FILENAME-p*.rep
rm -f $FILENAME-p*-t... | johnrsibert/tagest | 25mt/test/bin/testAverageFishingMortality.sh | Shell | bsd-2-clause | 1,217 |
#!/bin/sh
sbt 'project scalaFilter' 'docker:publishLocal'
sbt 'project generator' 'docker:publishLocal'
| Zeta-Project/zeta | api/createDockerImages.sh | Shell | bsd-2-clause | 105 |
#!/bin/sh
MYSELF=`which "$0" 2>/dev/null`
[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0"
java=java
if test -n "$JAVA_HOME"; then
java="$JAVA_HOME/bin/java"
fi
exec "$java" $java_args -cp $MYSELF org.openscience.cdk.nfp.SmiToFps "$@"
exit 1 | johnmay/efficient-bits | fp-idx/src/main/resources/smi2fps-stub.sh | Shell | bsd-2-clause | 237 |
#!/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}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | lovoo/LVForgivingAssert | Example/Pods/Target Support Files/Pods-LVForgivingAssert_Tests/Pods-LVForgivingAssert_Tests-frameworks.sh | Shell | bsd-3-clause | 3,584 |
#!/bin/sh
DCS_HOST=http://localhost:8080/dcs/rest
RESULT=clusters-from-raw-post.xml
curl $DCS_HOST -# \
--data-binary @clustering-with-raw-post-data.txt \
-H "Content-Type: multipart/form-data; boundary=---------------------------191691572411478" \
-H "Content-Length: 44389" \
-o $RESULT
echo Resul... | arnaudsj/carrot2 | applications/carrot2-dcs/examples/curl/clustering-with-raw-post.sh | Shell | bsd-3-clause | 340 |
#!/usr/bin/env sh
VG="valgrind --leak-check=full --error-exitcode=1"
SABIR=./sabir
./sabir-train dump test/data/* > test/model.tmp
$VG ./sabir -mtest/model.tmp test/bad_utf8.txt
rm test/model.tmp
exit 0
| michaelnmmeyer/sabir | test/bad_utf8.sh | Shell | bsd-3-clause | 207 |
#!/bin/bash
SCRIPTDIR=$(readlink -f $(dirname $0))
RISCV_TEST_DIR=$SCRIPTDIR/../software/riscv-tests
set -e
set -o pipefail
(
cd $(dirname $RISCV_TEST_DIR)
git submodule update --init --recursive $(basename ${RISCV_TEST_DIR})
cd ${RISCV_TEST_DIR}
sed -i 's/. = 0x80000000/. = 0x00000000/' env/p/link.ld
sed -i... | VectorBlox/risc-v | tools/generate_hex_files.sh | Shell | bsd-3-clause | 1,403 |
#!/bin/bash
cur_dir=`old=\`pwd\`; cd \`dirname $0\`; echo \`pwd\`; cd $old;`
prj=`basename $cur_dir | sed s/\.dep\..*$//`
fpm=php-fpm
fpm_config=$cur_dir/app/config/php-fpm.conf
fpm_pidfile=/var/run/php-fpm/$prj-php-fpm.pid
nginx=/usr/sbin/nginx
start_fpm(){
printf "starting php-fpm..."
$fpm -y $fpm_config -g $fpm_... | ideawu/iphp | tools/new_app_files/server.sh | Shell | bsd-3-clause | 1,071 |
#!/bin/bash
#
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
# Created ... | rtrouton/IT-CPE | code/lib/modules/code_sync.sh | Shell | bsd-3-clause | 4,916 |
#!/bin/sh
# Package
PACKAGE="horde"
DNAME="Horde"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
WEB_DIR="/var/services/web"
PATH="${INSTALL_DIR}/bin:${PATH}"
USER="nobody"
HORDE="${INSTALL_DIR}/bin/horde.sh"
PID_FILE="${INSTALL_DIR}/var/horde.pid"
start_daemon ()
{
start-stop-daemon -S -q -m -b -N 10 -x ${HORDE... | momiji/spksrc | spk/horde/src/dsm-control.sh | Shell | bsd-3-clause | 1,348 |
#!/bin/bash
dir=/home/mingfus/data/repositories/scalloptest/
bin=$dir/programs
datadir=$dir/data/encode65
list=$dir/data/encode65.list
result=$dir/plots/encode65/collect.B759/cov
scripts=./scripts
mkdir -p $result
rm -rf $scripts
for k in `cat $list | cut -f 1 -d ":"`
do
echo $k
nohup $bin/bamkit $datadir/$k.bam >... | Kingsford-Group/scalloptest | plots/collect.encode65.cov.sh | Shell | bsd-3-clause | 454 |
#!/bin/bash
FN="pasilla_1.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/pasilla_1.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/pasilla_1.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pasilla/bioconductor-pasilla_1.18.0_src_all.tar.gz"
)
MD5="03... | blankenberg/bioconda-recipes | recipes/bioconductor-pasilla/post-link.sh | Shell | mit | 1,287 |
#!/bin/bash
python generateProject.py
result=${PWD##*/}
EV3=".ev3"
fn=$result$EV3
rm ../$fn
zip ../$fn -x"README.md" -x"*.ev3" -x"*.svg" -x"*.py" -x"*.sh" *
cp ../$fn robot.ev3
| alan412/AnimalAllies_447 | makeBin.sh | Shell | mit | 178 |
# Function for setting a variable to a default value if not already set.
#
# @author Oktay Acikalin <oktay.acikalin@gmail.com>
# @copyright Oktay Acikalin
# @license MIT (LICENSE.txt)
function var.default () {
[ -z "${!1}" ] && declare -rg "${1}=$2"
} | oktayacikalin/project-service | lib/var.default.sh | Shell | mit | 261 |
/usr/bin/bcompare "$6" "$7" -title1="$3" -title2="$5"
exit 0
| yun-percy/Android_Commond_Tools | config/bcdiff.sh | Shell | mit | 62 |
#!/bin/bash
# Setub script for configuring Ubuntu 14.04 EC2 instance
# Install curl if not installed
sudo apt-get install -y curl
# Install git
sudo apt-get install -y git
# Yeoman scaffolding tool and angular-fullstack code generator
# http://yeoman.io/
#npm install -g yo generator-angular-fullstack
# Need libfontc... | pavel-r/dev-env-setup | setup.sh | Shell | mit | 1,124 |
#!/bin/sh
#
# Copyright (c) 2010, Will Palmer
# Copyright (c) 2011, Alexey Shumkin (+ non-UTF-8 commit encoding tests)
#
test_description='Test pretty formats'
. ./test-lib.sh
sample_utf8_part=$(printf "f\303\244ng")
commit_msg () {
# String "initial. initial" partly in German
# (translated with Google Translate),... | spritetong/msysgit-git-utf8 | t/t4205-log-pretty-formats.sh | Shell | gpl-2.0 | 8,756 |
#!/bin/sh /etc/rc.common
user_name=admin
user_home=/tmp/greendownload
green_dl_path="$(/bin/config get green_download_path)"
green_volume_uuid="$(/bin/config get green_volume_uuid)"
mount_point=/tmp/jffs2_green_download
work_dir=$user_home/work_dir
ftp_work_dir=$work_dir/ftp
bt_work_dir=$work_dir/bt
emule_work_dir=$... | paul-chambers/netgear-r7800 | package/green-download/files/green_download.sh | Shell | gpl-2.0 | 9,820 |
#!/bin/bash
if [ -z "$TERMINUS_TOKEN" ]; then
echo "TERMINUS_TOKEN environment variables missing; assuming unauthenticated build"
exit 0
fi
# Exit immediately, but don't expose $TERMINUS_TOKEN
set -e
set +x
git clone --branch master https://github.com/pantheon-systems/terminus.git ~/terminus
cd ~/terminus && compo... | pantheon-systems/solr-for-wordpress | bin/install-terminus.sh | Shell | gpl-2.0 | 384 |
set -x -e o pipefail
GH_MYMAKE_ARGS="-fPIC"
HYPERROGUE_USE_GLEW=$GH_HYP_GLEW
export HYPERROGUE_USE_GLEW=${HYPERROGUE_USE_GLEW: -1}
HYPERROGUE_USE_PNG=$GH_HYP_PNG
export HYPERROGUE_USE_PNG=${HYPERROGUE_USE_PNG: -1}
HYPERROGUE_USE_ROGUEVIZ=$GH_HYP_RVIZ
export HYPERROGUE_USE_ROGUEVIZ=${HYPERROGUE_USE_ROGUEVIZ: -1}
if... | zenorogue/hyperrogue | .github/workflows/build.sh | Shell | gpl-2.0 | 651 |
#
# Copyright (c) 2003, 2015, 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... | FauxFaux/jdk9-jdk | test/sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh | Shell | gpl-2.0 | 2,351 |
#!/bin/bash
if [ $# -eq 0 ]
then
tests=($(ls -d test*))
else
tests=()
for arg in "$@"
do
if [ -d "$arg" ]
then
tests+=($arg)
fi
done
fi
echo "The pdf for the following tests will be created:"
echo " ${tests[@]}"
echo ""
if [ ! -d pdf ]
then
mkdir pdf
fi
... | trianam/tkLayoutTests | TestRoutingOuter/createPdf.sh | Shell | gpl-2.0 | 514 |
# *******************************************************************************
# *******************************************************************************
# ** **
# ** ... | JKT-OSSCLUB/ProActio | Proactio/cron/atransaction.sh | Shell | gpl-2.0 | 3,046 |
#!/bin/sh
#
# srecord - manipulate eprom load files
# Copyright (C) 1999, 2003, 2006-2008 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 vers... | freyc/SRecord | test/00/t0030a.sh | Shell | gpl-3.0 | 1,340 |
#./run_parser.sh <parser_name> <db_name> <version> <input_file_name>(default value: "") <is_promiscous>(default 0, 1:promiscous) <default_attribute>(if applicable)
#./run_parser.sh uniprot uniprot_sprot Feb_5_09 uniprot_sprot.dat.gz 0
#./run_parser.sh uniprot uniprot_trembl Feb_5_09 uniprot_trembl.dat.gz 0
#./run_par... | emreg00/biana | scripts/parsing/parse_external_dbs.sh | Shell | gpl-3.0 | 1,516 |
#! /bin/bash
g09 < $1 > $1.out
grep "^ Energy= " $1.out | sed s/" Energy= "/""/ | sed s/"NIter=.*"/""/
| matthiaslein/WellFARe-FF | run-gauss.bash | Shell | gpl-3.0 | 106 |
#!/bin/sh -e
BEATS_VERSION="1.2.3"
wget -q "https://download.elastic.co/beats/winlogbeat/winlogbeat-${BEATS_VERSION}-windows.zip"
unzip "winlogbeat-${BEATS_VERSION}-windows.zip"
| Graylog2/graylog-plugin-beats | vagrant_winlogbeat/download.sh | Shell | gpl-3.0 | 179 |
#!/bin/sh
HOME=$DEBUG_REAL_HOME steam steam://install/400
echo $? > ~/install-exit-status
unzip -o pts-portal-1.zip
mv pts-portal-1.dem $DEBUG_REAL_HOME/.steam/steam/steamapps/common/Portal/portal
echo "#!/bin/bash
. steam-env-vars.sh
cd \$DEBUG_REAL_HOME/.steam/steam/steamapps/common/Portal
./hl2_linux -game porta... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/portal-1.1.2/install.sh | Shell | gpl-3.0 | 436 |
#!/bin/bash
set -e -o pipefail
help() {
echo
echo 'Usage ./setup.sh ~/path/to/MANTA_PRIVATE_KEY'
echo
echo 'Checks that your Triton and Docker environment is sane and configures'
echo 'an environment file to use.'
echo
echo 'MANTA_PRIVATE_KEY is the filesystem path to an SSH private key'
... | tgross/triton-mysql | examples/triton/setup.sh | Shell | mpl-2.0 | 6,099 |
#!/bin/bash
source shell_functions.sh
function ventclient ()
{
for i in {1..4}
do
./ventclient &
done
wait
}
function ventserver ()
{
(sleep 2 ; echo) | ./ventserver
}
SERVER=ventserver
CLIENT=ventclient
run
| zeromq/f77_zmq | examples/vent.sh | Shell | lgpl-2.1 | 228 |
# Usage: ./update.sh <ogg_src_directory>
#
# Copies the needed files from a directory containing the original
# libogg source that we need for the Mozilla HTML5 media support.
cp $1/include/ogg/config_types.h ./include/ogg/config_types.h
cp $1/include/ogg/ogg.h ./include/ogg/ogg.h
cp $1/include/ogg/os_types.h ./include... | sergecodd/FireFox-OS | B2G/gecko/media/libogg/update.sh | Shell | apache-2.0 | 542 |
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | renyi533/tensorflow | tensorflow/tools/ci_build/linux/mkl/build-dev-container.sh | Shell | apache-2.0 | 10,960 |
#!/bin/sh
#
# Initialize the db with some data for testing
#
# reset the db
echo "Resetting the db....."
./surfapi.sh drop --db
MONGOLAB_TEST=mongodb://localhost/test
./sajavadoc.sh $MONGOLAB_TEST /java/jdk/1.7 -sourcepath /fox/tmp/javadoc/src-jdk7 \
-subpackages java \
-subpackages javax \
-subpackages ... | rga78/surfapi-heroku | initdb.sh | Shell | apache-2.0 | 3,755 |
#!/usr/bin/env bash
# Copyright 2017 Telstra Open Source
#
# 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 ap... | carmine/open-kilda | base/hacks/shorm.requirements.download.sh | Shell | apache-2.0 | 1,148 |
#!/bin/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
# "License");... | wu-sheng/sky-walking | test/plugin/scenarios/spring-tx-scenario/bin/startup.sh | Shell | apache-2.0 | 1,011 |
function f () {
<ref>a=1
}
a=1 | jansorg/BashSupport | testData/psi/resolve/varDef/GlobalVarDefFromFunction.bash | Shell | apache-2.0 | 35 |
#!/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... | mbookman/solutions-google-compute-engine-cluster-for-grid-engine | cluster_properties.sh | Shell | apache-2.0 | 2,054 |
#!/bin/bash
# A simple script triggered by keepalived when VIPs are moved
# around. When VIPs are moved to this node, explicit route for
# each VIP is added - this assures that any connection to VIP
# will use by default local-ipv4 as source address. Without this
# explicit route VIP address is used which causes issue... | radez/tripleo-image-elements | elements/keepalived/bin/keepalived_vip_change.sh | Shell | apache-2.0 | 992 |
#! /bin/bash
COMMON_PATH=../common
WORK_PATH=.
. $COMMON_PATH/start-kata.sh
| ssledz/gitsvnkata | kata-3-checkout-svn-project-5-last-commits/start-kata.sh | Shell | apache-2.0 | 77 |
add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt-get install openjdk-8-jdk -y
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
version="4.10.4"
wget http://archive.apache.org/dist/lucene/solr/$version/solr-$version.tgz
tar xzf solr-$version.tgz
chmod 777 solr-4.10.4/example/solr/collection1/conf/sche... | juliandunn/chef-server-1 | dev/scripts/provision-solr.sh | Shell | apache-2.0 | 401 |
#!/bin/bash
set -e
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Pull requests do not affect the public Serenity/JS Handbook"
npm run prebook:publish
exit 0
fi
if [[ $TRAVIS_BRANCH != 'master' ]]; then
echo "Building from a branch does not affect the public Serenity/JS Handbook"
npm run prebook:publi... | InvictusMB/serenity-js | scripts/travis/after_script.sh | Shell | apache-2.0 | 403 |
#!/bin/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
# "License"); y... | argv0/cloudstack | scripts/vm/hypervisor/xenserver/setup_heartbeat_file.sh | Shell | apache-2.0 | 2,258 |
#!/bin/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 applicable law ... | fabianofranz/kubernetes | hack/make-rules/helpers/cache_go_dirs.sh | Shell | apache-2.0 | 2,453 |
#!/bin/bash
#valgrind --tool=memcheck --leak-check=yes -v \
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all --undef-value-errors=no \
applications/argonnite_kmer_counter/argonnite -k 43 -threads-per-node 1 ~/dropbox/mini.fastq &> valgrind.log
| sebhtml/biosal | scripts/memory-management/run-valgrind.sh | Shell | bsd-2-clause | 269 |
#!/bin/sh
# Test redux installation.
set -e
scriptdir=$(realpath $(dirname $0))
workdir=$(mktemp --tmpdir --directory)
# avoid breaking inside the source dir
cd $workdir
trap "rm -rf $workdir" 0
expected=$(mktemp --tmpdir=$workdir redux-man-XXXXXX)
cat - > $expected <<EOS
redo.1
redo-ifchange.1
redo-ifcreate.1
r... | gyepisam/redux | redux/install-man-test.sh | Shell | bsd-2-clause | 2,663 |
#!/usr/bin/env bash
set -e
set -x
CURRENT_BRANCH="6.x"
function split()
{
SHA1=`./bin/splitsh-lite --prefix=$1`
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f
}
function remote()
{
git remote add $1 $2 || true
}
git pull origin $CURRENT_BRANCH
remote auth git@github.com:illuminate/auth.git
remote b... | jerguslejko/framework | bin/split.sh | Shell | mit | 2,858 |
#! /bin/sh
# Copyright (C) 2010-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 2, or (at your option)
# any later version.
#
# This program ... | kuym/openocd | tools/automake-1.15/t/libobj15a.sh | Shell | gpl-2.0 | 1,069 |
#!/bin/bash
#--------------------------------------------------------------#
# #
# amber-jumps.sh #
# #
# This file is part of the Amber project ... | grvmind/amber-cycloneiii | trunk/sw/tools/amber-jumps.sh | Shell | gpl-2.0 | 3,738 |
# usage ./update_windows_myRUN.bat_scripts.sh examples_list language_list
# language = C | Java | CS
if [ "$1" = "" ]; then
echo "*** usage : ./update_windows_myRUN.bat_scripts.sh examples_list language_list"
exit;
fi
if [ "$2" = "" ]; then
echo "*** usage : ./update_windows_myRUN.bat_scripts.sh examples_list la... | SanderMertens/opensplice | examples/Dev_scripts/update_windows_myRUN_scripts.sh | Shell | gpl-3.0 | 2,207 |
#!/bin/bash
VERSION=`grep '^version_number' launcher_version_number.py | cut -f 2 -d '"'`
ARCHITECTURE=`uname -m | sed s/x86_64/amd64/g | sed s/i686/i386/g`
./package_linux_version.sh $VERSION $ARCHITECTURE
TMP="tmp_debian_build"
alias sudo=""
sudo rm -fr $TMP
sudo rm -f *.deb
TARGET=$TMP/opt/Strudel
mkdir -p $TAR... | monash-merc/cvl-fabric-launcher | package_ubuntu_version.sh | Shell | gpl-3.0 | 1,543 |
#!/bin/bash
# Ensures that all NetCore files in the repository are parsable.
cd `dirname $0`/..
find . -name "*.nc" | xargs ./src/Frenetic.d.byte -parse-only | similecat/freneticEx | tools/checksyntax.sh | Shell | lgpl-3.0 | 159 |
#!/bin/bash
#
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | spxtr/bazel | src/test/shell/bazel/bazel_example_test.sh | Shell | apache-2.0 | 6,238 |
# Copyright 2015 The Kythe Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | bzz/kythe | kythe/cxx/extractor/testdata/test_common.sh | Shell | apache-2.0 | 905 |
#!/bin/sh
#
# Copyright (c) 2006-2016 Varnish Software AS
# All rights reserved.
#
# Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
#
# 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 m... | feld/Varnish-Cache | tools/vtest.sh | Shell | bsd-2-clause | 7,308 |
# first arg is config file
if ! [[ "$1" ]]; then
echo "error: no config file provided"
exit 1
fi
# second (optional) arg is nstudies limit
if [ "$2" ]; then
nstudies=$2
echo $nstudies
fi
config=$1
if [ $nstudies ]; then
python setup_db.py $config
# load nexson files
python load_nexson.py $co... | OpenTreeOfLife/ottreeindex | otindex/scripts/run_setup_scripts.sh | Shell | bsd-2-clause | 859 |
#!/bin/bash
set -ex
set -o pipefail
export SYSTEMD_PAGER=cat
dd if=/dev/urandom of=/var/tmp/testimage.raw bs=$((1024*1024+7)) count=5
# Test import
machinectl import-raw /var/tmp/testimage.raw
machinectl image-status testimage
test -f /var/lib/machines/testimage.raw
cmp /var/tmp/testimage.raw /var/lib/machines/testi... | heftig/systemd | test/TEST-25-IMPORT/testsuite.sh | Shell | gpl-2.0 | 3,560 |
#! /bin/sh
if test z"$srcdir" = "z"; then
srcdir=.
fi
command=run_parser_all.sh
one_test_logs_dir=test_log
diffs_dir=diffs
if test "z$LONG_TESTS" != z"yes" && test "z$ALL_TESTS" != z"yes"; then
echo "Skipping long tests that take a lot of time to run"
exit 77
fi
if test "z$TEX_HTML_TESTS" = z"yes"; then
e... | mwcampbell/texinfo | tp/tests/test_scripts/indices_index_entry_in_footnote.sh | Shell | gpl-3.0 | 732 |
#!/bin/bash
if [ $# -lt 1 ]; then
echo "usage: $0 <rev>"
echo "error: must specify a version number"
exit 1
fi
VERSION=$1
TOP_DIR=$(cd $(dirname $0)/../../ && pwd)
TMP_DIR=/tmp/build-libroxml-$(date +"%y%m%d%H%M%S")
LIBROXML_MAJOR=$(sed -n 's#.*MAJOR_VERSION.*, \(.*\))$#\1#p' $TOP_DIR/configure.ac)
LIBROXML_MINOR... | mahmudur85/libroxml | data/scripts/make_debian_source.sh | Shell | lgpl-2.1 | 2,100 |
#!/bin/sh
# SUMMARY: Test the wireguard example
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=wireguard
clean_up() {
rm -f ${NAME}*
}
trap clean_up EXIT
# Test code goes here
moby build "${LINUXKIT_EXAMPLES_DIR}/${NAME}.yml"
exit 0
| furious-luke/linuxkit | test/cases/000_build/100_examples/070_wireguard/test.sh | Shell | apache-2.0 | 315 |
#!/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... | xzturn/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/gpu_py36_full/pip_v1.sh | Shell | apache-2.0 | 2,737 |
#!/usr/bin/env bash
if [[ $# -lt 1 ]]; then
echo "Usage: $0 TRINO_VERSION" >&2
exit 1
fi
set -euo pipefail
# Retrieve the script directory.
SCRIPT_DIR="${BASH_SOURCE%/*}"
cd ${SCRIPT_DIR}
TRINO_VERSION=$1
SERVER_LOCATION="https://repo1.maven.org/maven2/io/trino/trino-server/${TRINO_VERSION}/trino-server-${T... | losipiuk/presto | core/docker/build-remote.sh | Shell | apache-2.0 | 1,564 |
#!/bin/bash
FN="rgu34acdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/rgu34acdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/rgu34acdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rgu34acdf/bioconductor-rgu34acdf_2.18.0_src_all.tar.gz"
... | joachimwolff/bioconda-recipes | recipes/bioconductor-rgu34acdf/post-link.sh | Shell | mit | 1,303 |
#!/bin/bash
FN="signatureSearchData_1.6.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.13/data/experiment/src/contrib/signatureSearchData_1.6.0.tar.gz"
"https://bioarchive.galaxyproject.org/signatureSearchData_1.6.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-signaturesearchdata/biocondu... | phac-nml/bioconda-recipes | recipes/bioconductor-signaturesearchdata/post-link.sh | Shell | mit | 1,343 |
#!/bin/sh
java -cp ./axis.jar org.apache.axis.utils.tcpmon 8081 localhost 8080
| marktriggs/nyu-sakai-10.4 | webservices/axis/test/basic/tunnel.sh | Shell | apache-2.0 | 80 |
#!/usr/bin/env bash
# if `docker run` first argument start with `-` the user is passing jenkins swarm launcher arguments
if [[ $# -lt 1 ]] || [[ "$1" == "-"* ]]; then
# jenkins swarm slave
JAR=`ls -1 /usr/share/jenkins/swarm-client-*.jar | tail -n 1`
# Set master URL - jmaster name defined in docker-compose ... | lynochka/JenkinsAsCodeReference | dockerizeit/slave/start.sh | Shell | bsd-3-clause | 1,066 |
#!/bin/bash
# set ORIGIN to current git origin
ORIGIN=$(git remote -v | awk '$1=="origin" && $3=="(push)" {print $2}');
VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g');
# target folder: /dist/site, make it clean and step into
rm -fr dist
mkdir dist dist/site
cd dist/sit... | sam019/element-react | build/scripts/release.sh | Shell | mit | 622 |
#!/bin/bash
sed -e "s@^#\!/usr/bin/python\$@#\!/usr/bin/python -Es@" -i $@
| ignatenkobrain/firewalld | fix_python_shebang.sh | Shell | gpl-2.0 | 76 |
#!/bin/sh
#
# Copyright 2015 The SageTV Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | JasOXIII/sagetv | build/build3rdparty.sh | Shell | apache-2.0 | 2,680 |
#!/bin/bash
rm -r autom4te.cache
aclocal -I ./m4/
echo "autoconf!"
autoconf configure.ac > test_conf
if [ $? -eq 0 ]
then
echo "configure!"
chmod +x ./test_conf
# example on guinan, which has "normal" defaults for a workstation or server
./test_conf MPIFC=mpif90 FC=mpif90 CUDA_LIB="-L/usr/local/cuda/lib... | QuLogic/specfem3d | utils/remake_makefiles.sh | Shell | gpl-2.0 | 410 |
#!/bin/bash
REPO=${REPO:-docker.io}
SOURCE_DIR=$(dirname ${BASH_SOURCE})
DSN_PYTHON=${DSN_PYTHON:-$HOME/rDSN.Python}
function prepare_file()
{
# wget https://github.com/mcfatealan/rDSN.Python/tree/master/release/linux/MonitorPack.7z
tar -cvzf ${SOURCE_DIR}/MonitorPack.tar.gz -C ${DSN_PYTHON}/src apps/rDSN.monit... | imzhenyu/rDSN | deploy/docker/build-image.sh | Shell | mit | 512 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "event scripts"
shellcheck_test "${CTDB_SCRIPTS_BASE}/events.d"/[0-9][0-9].*
| SVoxel/R7800 | git_home/samba.git/ctdb/tests/shellcheck/event_scripts.sh | Shell | gpl-2.0 | 134 |
#!/bin/sh
set -e
# check to see if casperjs folder is empty
if [ ! -d "$HOME/casperjs-1.1.3/bin" ]; then
wget https://github.com/n1k0/casperjs/archive/1.1.3.tar.gz -O $HOME/casper.tar.gz;
tar -xvf $HOME/casper.tar.gz -C $HOME;
else
echo 'Using cached directory for casperjs.';
fi
| Mertiozys/thelia | tests/travis/install-casperjs.sh | Shell | lgpl-3.0 | 287 |
#!/bin/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
# "License"); ... | szha/mxnet | tests/nightly/test_distributed_training-gpu.sh | Shell | apache-2.0 | 1,731 |
#!/bin/sh
# plugin_test_3.sh -- a test case for the plugin API.
# Copyright (C) 2008-2016 Free Software Foundation, Inc.
# Written by Cary Coutant <ccoutant@google.com>.
# This file is part of gold.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public... | h4ck3rm1k3/binutils-gdb | gold/testsuite/plugin_test_3.sh | Shell | gpl-2.0 | 2,290 |
#!/bin/sh
export PARROT_ALLOW_SWITCHING_CVMFS_REPOSITORIES="yes"
export HTTP_PROXY=http://cache01.hep.wisc.edu:3128
export PARROT_CVMFS_REPO='*.cern.ch:pubkey=<BUILTIN-cern.ch.pub>,url=http://cvmfs-stratum-one.cern.ch/cvmfs/*.cern.ch;http://cernvmfs.gridpp.rl.ac.uk/cvmfs/*.cern.ch;http://cvmfs.racf.bnl.gov/cvmfs/*.cer... | nhazekam/cctools | apps/parrot_atlas/parrot.atlas.sh | Shell | gpl-2.0 | 508 |
########################################################################
# Bug #729843: innobackupex logs plaintext password
########################################################################
. inc/common.sh
start_server
mkdir $topdir/backup
logfile=$topdir/backup/innobackupex_log
# Don't use run_cmd_* or inn... | metacloud/percona-xtrabackup | test/t/bug729843.sh | Shell | gpl-2.0 | 628 |
#!/bin/bash
MESON_VERSION="0.40.1"
fw_depends python3
fw_installed meson && return 0
pip3 install meson==$MESON_VERSION
touch $IROOT/meson.installed
| saturday06/FrameworkBenchmarks | toolset/setup/linux/systools/meson.sh | Shell | bsd-3-clause | 154 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | jgriffiths1993/kubernetes | hack/jenkins/e2e.sh | Shell | apache-2.0 | 17,308 |
#!/usr/bin/env bash
cd "$(dirname $0)"
export LC_ALL=C
data="../../assets"
echo "Checking for unused graphics..."
for dir in space exterior; do
cd "$dir"
echo -e "\n Unused planet $dir gfx"
for img in *.png; do
if ! cat ../${data}/*.xml | grep -qF "<$dir>$img"; then
echo " $img"
... | kjoenth/naev | dat/gfx/planet/check.sh | Shell | gpl-3.0 | 685 |
#!/bin/sh
## Copyright (C) 2005 Victorian Partnership for Advanced Computing (VPAC) Ltd
## 110 Victoria Street, Melbourne, 3053, Australia.
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software... | bmi-forum/bmi-pyre | VMake/Config/glib2-config.sh | Shell | gpl-2.0 | 1,740 |
#!/bin/bash
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditio... | wangyikai/grpc | src/php/bin/run_gen_code_test.sh | Shell | bsd-3-clause | 1,863 |
ADMIN_USER_NAME=${ADMIN_USER_NAME:-"wsadmin"}
WSADMIN_PASS=$(cat /tmp/PASSWORD)
/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -user $ADMIN_USER_NAME -password $WSADMIN_PASS -lang jython -f $1 $2
| WASdev/ci.docker.websphere-traditional | docker-build/9.0.5.x/scripts/run_py_script.sh | Shell | apache-2.0 | 193 |
#!/bin/bash
#
# Contains a simple fetcher to download a file from a remote URL and verify its
# SHA1 checksum.
#
# Usage: fetch.sh <remote URL> <SHA1 checksum>
set -e
# Pull the file from the remote URL
file=`basename $1`
echo "Downloading $1..."
wget -q $1
# Generate a desired checksum report and check against it
ec... | christiangalsterer/httpbeat | vendor/github.com/elastic/beats/dev-tools/packer/docker/xgo-image/base/fetch.sh | Shell | apache-2.0 | 381 |
#!/bin/sh
exec_mess() {
/usr/libexec/mame/mess \
-artpath "$HOME/.mess/artwork;artwork" \
-ctrlrpath "$HOME/.mess/ctrlr;ctrlr" \
-inipath $HOME/.mess/ini \
-rompath $HOME/.mess/roms \
-samplepath "$HOME/.mess/samples;samples" \
-cfg_directory $HOME/.mess/cfg \
-comment_directory $HOME/.me... | necrophcodr/void-packages | srcpkgs/mame/files/mess.sh | Shell | bsd-2-clause | 1,414 |
#!/usr/bin/env bash
if [ "$2" != "" ]
then
echo >&2 "Usage: $0 [<version>]"
exit 1
fi
MW_DIR=$(cd $(dirname $0)/../..; pwd) # e.g. mediawiki-core/
NPM_DIR=`mktemp -d 2>/dev/null || mktemp -d -t 'mw-update-oojs'` # e.g. /tmp/mw-update-oojs.rI0I5Vir
# Prepare MediaWiki working copy
cd $MW_DIR
git reset resources/lib... | kylethayer/bioladder | wiki/maintenance/resources/update-oojs.sh | Shell | gpl-3.0 | 1,155 |
#######################################
# Pacman #
#######################################
# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
alias pacupg='sudo pacman -Syu'
alias pacin='sudo pacman -S'
alias paclean='sudo pacman -Sc'
alias pacins='sudo pacman -U'
alias paclr='sud... | lstolowski/oh-my-zsh | plugins/archlinux/archlinux.plugin.zsh | Shell | mit | 5,152 |
#!/bin/bash
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script does some preparations before build of instrumented xkbcommon.
# Do not warn about undefined sanitizer symbols in object files.
se... | chromium/chromium | third_party/instrumented_libraries/xenial/scripts/pre-build/xkbcommon.sh | Shell | bsd-3-clause | 578 |
# copy the active line from the command line buffer
# onto the system clipboard (requires clipcopy plugin)
copybuffer () {
if which clipcopy &>/dev/null; then
echo $BUFFER | clipcopy
else
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
fi
}
zle -N copybuffer... | kristiankubik/dotfiles | zsh_plugins/copybuffer/copybuffer.plugin.zsh | Shell | mit | 346 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.