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 # stop immediately on error
umask u+rw,g+rw # give group read/write permissions to all new files
# register the functional image to the structural (and bias correct)
# TODO: this could be improved by either
# 1) using fieldmaps
# 2) using ANTs, see the new awake fMRI pipeline
# ----... | neuroecology/MrCat | pipelines/rfmri_macaque/rsn_registerFunc2Struct.sh | Shell | bsd-3-clause | 5,357 |
jekyll serve --destination ../../pages
| FinalTheory/wireless-network-reproduction | doc/index/serve.sh | Shell | bsd-3-clause | 39 |
#! /usr/bin/env bash
set -e -u -o pipefail
here="$(dirname "$BASH_SOURCE")"
source "$here/arch_common.sh"
build_root="$1"
git_url="https://aur.archlinux.org/keybase-bin.git"
src_prefix="."
setup_arch_build $build_root $git_url $src_prefix
keybase_bin_repo="$build_root/arch/keybase-bin"
cd $keybase_bin_repo
makepk... | keybase/client | packaging/linux/arch/build_test_package.sh | Shell | bsd-3-clause | 322 |
#!/usr/bin/env bash
umask u+rw,g+rw # give group read/write permissions to all new files
set -e # stop immediately on error
# ------------------- #
# GENERAL DEFINITIONS
# ------------------- #
source $MRCATDIR/setupMrCat.sh
anaDir="/Volumes/rsfMRI/anaesthesia/analysis"
fingerprintDir="$anaDir/fingerprint"
mkdir -p... | neuroecology/MrCat | pubs/offlineTUS/ExtractFingerprint.sh | Shell | bsd-3-clause | 11,719 |
JARS=/var/local/destress/jars
java -cp .:${JARS}/lucene-core-4.0.0.jar:${JARS}/lucene-analyzers-common-4.0.0.jar:${JARS}/lucene-queryparser-4.0.0.jar LiveJournalSearch
| berkeley-dsc/destress | LuceneSearch/run_lj_search.sh | Shell | isc | 168 |
#!/bin/sh
if [ $# -ne 0 ]
then
echo "Tente: $0"
exit 1
fi
sort -t: -n -k 3 /etc/passwd | awk -F: '{ print $1 " (" $3 ")" }'
exit 0
| jonatascb/TrabalhosSO2 | trabalho4/parte1/exercicio11.sh | Shell | mit | 142 |
#!/bin/bash
module_builder -pysrv -makefile ./GenomeFeatureComparator.spec
mv makefile.template Makefile | msneddon/narrative_method_store | test/data/test_repo_1/service/init.sh | Shell | mit | 104 |
#!/usr/bin/env bash
echo "Normal:"
node ../dist/cli.js visual.css --config=visual-config.json
echo -e "\n\nVerbose:"
node ../dist/cli.js visual.css --config=visual-config.json --formatter verbose
| gaidarenko/stylelint | scripts/visual.sh | Shell | mit | 198 |
# If no data file option is given, describe script purpose and input.
if [ -z $1 ] || [ -z $2 ]
then
echo;
echo "# Command syntax is : 'sh FASTQ_ambiguousToN.sh [dataset] [outfile]'";
echo "# ";
echo "# [dataset] : FASTQ read file input.";
echo "# [outfile] : Destination file for FASTQ entries.";
ec... | darrenabbey/ymap | scripts_seqModules/FASTQ_ambiguousToN.sh | Shell | mit | 1,650 |
#nice options for bash scripts
set -o pipefail # trace ERR through pipes
set -o errtrace # trace ERR through 'time command' and other functions
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errexit ## set -e : exit the script if any statement returns a non-true return val... | lpantano/mypubs | mirna/mirannotation/mirannotation.sh | Shell | mit | 5,775 |
#!/usr/bin/env bash
rm -rf gh-pages
git clone git@github.com:ringcentral/ringcentral-js-widget.git -b gh-pages gh-pages &> /dev/null
rm -r gh-pages/*
rm -r gh-pages/.babelrc
rm -r gh-pages/.gitignore
rm -r gh-pages/.jscsrc
npm run build
cd gh-pages
if [[ $(git status -s) != '' ]]
then
git config user.email "int... | ringcentral/ringcentral-js-widget | packages/ringcentral-widgets-docs/release.sh | Shell | mit | 556 |
#!/usr/bin/env bash
# constants
DOKKU_ROOT=${DOKKU_ROOT:=~dokku}
DOKKU_LIB_ROOT=${DOKKU_LIB_PATH:="/var/lib/dokku"}
PLUGIN_PATH=${PLUGIN_PATH:="$DOKKU_LIB_ROOT/plugins"}
PLUGIN_AVAILABLE_PATH=${PLUGIN_AVAILABLE_PATH:="$PLUGIN_PATH/available"}
PLUGIN_ENABLED_PATH=${PLUGIN_ENABLED_PATH:="$PLUGIN_PATH/enabled"}
PLUGIN_CO... | pmvieira/dokku | tests/unit/test_helper.bash | Shell | mit | 6,210 |
#!/bin/bash
#USE: 'manyPsmc2Plot.sh'
#runs the plotting tool in psmc through every single applicable file in the current directory
#you'll probably need to change the file path since I set it up for my own use
for filename in *.psmcfa.psmc; do
perl ../../psmc-master/utils/psmc_plot.pl -pR "$filename.plot" "$fi... | shaunBarker/bioinformaticsScripts | manyPsmc2Plot.sh | Shell | gpl-2.0 | 351 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2009-2017 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | anatol/tup | test/t6012-broken-update5.sh | Shell | gpl-2.0 | 2,585 |
#!/bin/bash
if [ -z "$MONGO_DIR" ]; then
echo "Need to set MONGO_DIR"
exit 1
fi
if [ -z "$MONGO_TYPE" ]; then
echo "Need to set MONGO_TYPE"
exit 1
fi
if [ -z "$MONGO_COMPRESSION" ]; then
echo "Need to set MONGO_COMPRESSION"
exit 1
fi
if [ -z "$MONGO_BASEMENT" ]; then
echo "Need to set MONGO... | Percona-QA/toku-qa | tokudb/software/mongodb/sysbench-mongodb-singledb/run.load.bash | Shell | gpl-2.0 | 5,156 |
#!/bin/bash
##
## call with five arguments, e.g.
## sh get_hdrs_INS.sh "SINFO" "sinfoni" 2012 11 05 ## this would download all non-existing headers from the given date for SINFONI
## or
## sh get_hdrs_INS.sh "SHOOT" "xshooter" 2008 11 13 ## from the beginning of the XSHOOTER age
## sh get_hdrs_INS.sh "MIDI" "midi" 2004... | qleo/esodb | scripts/get_hdrs_INS.sh | Shell | gpl-2.0 | 3,076 |
#!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='git apply should handle files with incomplete lines.
'
. ./test-lib.sh
# setup
(echo a; echo b) >frotz.0
(echo a; echo b; echo c) >frotz.1
(echo a; echo b | tr -d '\012') >frotz.2
(echo a; echo c; echo b | tr -d '\012') >frotz.3
for i in 0 1 2 3
d... | vmiklos/gsoc2008 | t/t4101-apply-nonl.sh | Shell | gpl-2.0 | 548 |
#!/bin/bash
RUNPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PYTHONPATH=$RUNPATH/SuperBuild/install/lib/python2.7/dist-packages:$RUNPATH/SuperBuild/src/opensfm:$PYTHONPATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RUNPATH/SuperBuild/install/lib
python $RUNPATH/run.py "$@"
| paulinus/OpenDroneMap | run.sh | Shell | gpl-3.0 | 292 |
#!/bin/bash
./fittertestcomp --Ice.Config=../etc/generic_config,../etc/specific_config & | rajathkumarmp/robocomp-robolab | experimental/fitterTestComp/bin/startfitterTestComp.sh | Shell | gpl-3.0 | 88 |
#!/bin/sh
# Copyright (c) 2009 Mark Leslie
# Copyright (c) 2009-2021 The Open Source Geospatial Foundation and others.
# Licensed under the GNU LGPL version >= 2.1.
#
# 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 th... | kalxas/OSGeoLive | bin/load_postgis.sh | Shell | lgpl-2.1 | 4,006 |
#!/bin/bash
#########################################
######### Install Dependencies ##########
#########################################
#sudo apt-get -y install libncurses5 libncurses5-dev libcurses-ocaml # for sudo users only
current_working_dir=$(pwd)
tools_dir=${current_working_dir}/$(dirname $0)
cd $tools_dir
... | bajibabu/merlin | tools/compile_unit_selection_tools.sh | Shell | apache-2.0 | 4,402 |
#!/bin/bash
# MSYS_NO_PATHCONV fixes paths on Docker Toolbox on Windows using Git Bash / Mingw
# Harmless everywhere else.
export MSYS_NO_PATHCONV=1
# Maintain original behavior of loading annotations.
# If you don't want to load annotations, just run these two init scripts
# separately, without parameters.
./init_thre... | Goodly/TextThresherTester | init_docker.sh | Shell | apache-2.0 | 365 |
#!/bin/bash
##
#
# run tests.
#
# start testing:
if [ -z "${VLET_INSTALL}" ] ; then
VLET_INSTALL=".."
fi
export CLASSPATH=junit.jar:vletTests.jar:ant-junit.jar
ant -f runtest.xml $1 -Dvlet.install=..
| skoulouzis/vlet-1.5.0 | source/core/nl.uva.vlet.vrs.tests/bin/runtest.sh | Shell | apache-2.0 | 214 |
#!/bin/bash
/usr/bin/libreoffice --nologo --norestore --invisible --headless --accept='socket,host=0,port=8100,tcpNoDelay=1;urp;'
| keensoft/alfresco-docker-template | libreoffice/startoo.sh | Shell | apache-2.0 | 131 |
#!/bin/sh
# Environment variables
FLB_BIN=`realpath ../../../build/bin/fluent-bit`
FLB_RUNTIME_SHELL_PATH=`realpath $(pwd)/../`
FLB_RUN_TEST=`realpath $FLB_RUNTIME_SHELL_PATH/../lib/shunit2/shunit2`
# Colorize shunit2
bold=$(tput bold)
normal=$(tput sgr0)
SHUNIT_TEST_PREFIX="$bold==========> UNIT TEST: $normal"
# 1.... | fluent/fluent-bit | tests/runtime_shell/in_tail/run_tests.sh | Shell | apache-2.0 | 16,418 |
#! /bin/sh
# Provision of this shell script should not be taken to imply that use of
# GNU eqn with groff -Tascii|-Tlatin1|-Tkoi8-r|-Tutf8|-Tcp1047 is supported.
# $FreeBSD: soc2013/dpl/head/contrib/groff/src/preproc/eqn/neqn.sh 151546 2005-10-20 10:53:15Z ru $
# Default device.
case "${LC_ALL-${LC_CTYPE-${LANG}}}" in... | dplbsd/soc2013 | head/contrib/groff/src/preproc/eqn/neqn.sh | Shell | bsd-2-clause | 589 |
RECS=/replay_logdb/rec_*
for rec in $RECS
do
FILES=$(ls $rec | grep "klog.id.[0-9]\{4,\}$")
for f in $FILES
do
echo "cleaning $rec/$f" >&2
rm $rec/$f
done
done
| andrewjylee/omniplay | test/cleanup.sh | Shell | bsd-2-clause | 166 |
#!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
BUILD_DIR=${SRC_DIR}
# This list of files needs to have CRLF (Windows)-style line endings translated
# to LF (*nix)-style line endings ... | kosyak/naclports_samsung-smart-tv | ports/freeimage/build.sh | Shell | bsd-3-clause | 1,743 |
#!/bin/bash
# This script is used to create the server.crt, server.key, dhparam.pem files
echo
echo "########################################################"
echo "#### Create Certificates ####"
echo "########################################################"
echo
openssl genrsa -des3 -out... | DnD-Enterprises/kids-vocab | bin/create-ssl-cert.sh | Shell | mit | 995 |
#!/bin/sh
# run as user asterisk by default
ASTERISK_USER=${ASTERISK_USER:-asterisk}
if [ "$1" = "" ]; then
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
else
COMMAND="$@"
fi
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
# recreate user and group for asterisk
# if t... | andrius/alpine-asterisk | centos/1.6.2.24/docker-entrypoint.sh | Shell | mit | 791 |
g++ $1 -g -I ../../Halide/include -L ../../Halide/bin -lHalide -lpthread -ldl -std=c++11
| rbaghdadi/COLi | benchmarks/halide/compile_using_halide.sh | Shell | mit | 89 |
#!/bin/bash
if [ -z $2 ]; then
echo "usage: $0 host actionTypeId"
else
(echo '{"id":1, "method":"Actions.GetActionType", "params":{"actionTypeId":"'$2'"}}'; sleep 1) | nc $1 2222
fi
| t-mon/guh | tests/scripts/getactiontype.sh | Shell | gpl-2.0 | 187 |
#!/bin/sh
# Adds shortcuts to your Gnome menu to run and update
# the local Git checkout if the user wants to have it
# 2009-04-27 Thomas Perl <thpinfo.com>
DESKTOPFILE=~/.local/share/applications/gpodder-git-version.desktop
DESKTOPFILE_UPDATER=~/.local/share/applications/gpodder-git-update.desktop
GITCHECKOUT=`pwd`
... | timabell/gpodder | doc/dev/install-desktopentry.sh | Shell | gpl-3.0 | 1,365 |
#!/bin/sh
# Copyright 2010-2012 RethinkDB, all rights reserved.
# This script is for generating a changelog file for the Debian source package. git-dch is problematic, so we generate a stub changelog each time.
# The script omits automatic base-finding and presently expects to be run from the root of the repository.
# ... | rocio/rethinkdb | scripts/gen-changelog.sh | Shell | agpl-3.0 | 1,605 |
# Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
#
# This file is part of Orion Context Broker.
#
# Orion Context Broker is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of ... | McMutton/fiware-orion | test/heavyTest/heavyTest.sh | Shell | agpl-3.0 | 22,767 |
#!/bin/bash
PROJECT=$(readlink -f $(dirname $0)/../..)
CENTOS_DIR=${PROJECT}/package/centos
VERSION=0.8.1
if [ $# -gt 0 ] ; then
VERSION=$1
fi
#SOURCES
cd $PROJECT
git archive --format=tar.gz master > ${CENTOS_DIR}/rpm/SOURCES/hyperd-${VERSION}.tar.gz
cd $PROJECT/../hyperstart
git archive --format=tar.gz master... | gao-feng/hyper | package/centos/make-rpm.sh | Shell | apache-2.0 | 536 |
#!/bin/bash
FN="EGSEAdata_1.14.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/experiment/src/contrib/EGSEAdata_1.14.0.tar.gz"
"https://bioarchive.galaxyproject.org/EGSEAdata_1.14.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-egseadata/bioconductor-egseadata_1.14.0_src_all.tar.gz"... | Luobiny/bioconda-recipes | recipes/bioconductor-egseadata/post-link.sh | Shell | mit | 1,297 |
#!/bin/bash
FN="yeast2probe_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/yeast2probe_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/yeast2probe_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-yeast2probe/bioconductor-yeast2probe_2.18.0_src_a... | Luobiny/bioconda-recipes | recipes/bioconductor-yeast2probe/post-link.sh | Shell | mit | 1,424 |
#!/bin/bash
FN="RNASeqRData_1.8.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/RNASeqRData_1.8.0.tar.gz"
"https://bioarchive.galaxyproject.org/RNASeqRData_1.8.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rnaseqrdata/bioconductor-rnaseqrdata_1.8.0_src_all.t... | bebatut/bioconda-recipes | recipes/bioconductor-rnaseqrdata/post-link.sh | Shell | mit | 1,303 |
#!/bin/sh
OS=`uname`
PHP=`which php`
if [ "$OS" == "Linux" ]; then
#for linux
cd /var/www/mikbill/admin/res/mon/
else
#for BSD
cd /usr/local/www/mikbill/admin/res/mon/
fi
$PHP ./switch_threads.php
| hakerillo66/mikbill_distr | DISTR/update/mikbill/admin/res/mon/scripts/switches.sh | Shell | gpl-2.0 | 220 |
#!/bin/sh
echo "/* WARNING! All changes made in this file will be lost! Run 'generate_parser_code.sh' instead. */
static const char* _tokens[] = {"
for t in `grep "\"[a-zA-Z_]*\"" sqlscanner.l | sed -e "s/\(^[^\"]*\)\"\([^\"]*\)\".*$/\2/g" | sort | uniq` ; do
if [ "$t" = "ZZZ" ] ; then break ; fi
echo "\"$t\",";
do... | TheTypoMaster/calligra-history | kexi/kexidb/parser/extract_tokens.sh | Shell | gpl-2.0 | 336 |
#!/bin/bash
if [ -z "$MAMBO_PATH" ]; then
MAMBO_PATH=/opt/ibm/systemsim-p8/
fi
if [ -z "$MAMBO_BINARY" ]; then
MAMBO_BINARY="/run/pegasus/power8"
fi
if [ ! -x "$MAMBO_PATH/$MAMBO_BINARY" ]; then
echo "Could not find executable MAMBO_BINARY ($MAMBO_PATH/$MAMBO_BINARY). Skipping hello_world test";
exi... | qemu/skiboot | test/hello_world/run_mambo_hello_world.sh | Shell | apache-2.0 | 1,409 |
#!/bin/bash
set -eo pipefail
go version
# Run `go list` BEFORE setting GOFLAGS so that the output is in the right
# format for grep.
# export packages because the test will run in a sub process.
export packages=$(go list ./... | grep "github.com/dgraph-io/badger/v3/")
if [[ ! -z "$TEAMCITY_VERSION" ]]; then
expor... | tsandall/opa | vendor/github.com/dgraph-io/badger/v3/test.sh | Shell | apache-2.0 | 3,475 |
DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; pwd -P )"
export BASEDIR=${DIR}/..
export INSTALL_PREFIX=${DIR}/local
export PATH=${INSTALL_PREFIX}/bin:$PATH
export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib64:${INSTALL_PREFIX}/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=${INSTALL_PREFIX}/lib64/pkgconfig:${INSTALL_PREFIX}/lib/p... | dune-community/dune-xt-super | environments/debian-minimal/PATH.sh | Shell | bsd-2-clause | 592 |
#! /bin/sh
# $Id: lc3b_test.sh,v 1.1.1.1 2012/03/29 17:21:01 uid42307 Exp $
${srcdir}/out_test.sh lc3b_test modules/arch/lc3b/tests "lc3b arch" "-a lc3b -f bin" ""
exit $?
| Multi2Sim/m2s-bench-parsec-3.0-src | tools/yasm/src/modules/arch/lc3b/tests/lc3b_test.sh | Shell | bsd-3-clause | 172 |
#!/bin/bash
FN="MafDb.ESP6500SI.V2.SSA137.hs37d5_3.7.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.9/data/annotation/src/contrib/MafDb.ESP6500SI.V2.SSA137.hs37d5_3.7.0.tar.gz"
"https://bioarchive.galaxyproject.org/MafDb.ESP6500SI.V2.SSA137.hs37d5_3.7.0.tar.gz"
"https://depot.galaxyproject.org/software/bio... | jfallmann/bioconda-recipes | recipes/bioconductor-mafdb.esp6500si.v2.ssa137.hs37d5/post-link.sh | Shell | mit | 1,565 |
#! /bin/sh
# Update public/js/900-oss-framework.js from OSS-Framework
DIR="$( cd "$( dirname "$0" )" && pwd )"
DEST="${DIR}/../public/js/900-oss-framework.js";
SOURCE="${DIR}/../library/OSS-Framework.git/data/js";
echo "/**
* This file is a combination of other JavaScript files from the OSS-Framework.
*
* See: ... | sysbot/IXP-Manager | bin/update-oss-js.sh | Shell | gpl-2.0 | 1,087 |
#!/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 "Lice... | vax11780/spark | bin/stop-slaves.sh | Shell | apache-2.0 | 1,270 |
#!/bin/bash -xe
# Copyright (C) 2011-2013 OpenStack Foundation
#
# 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... | anbangr/osci-project-config | nodepool/scripts/prepare_node_devstack.sh | Shell | apache-2.0 | 1,417 |
if [ -z "$FIRMWARE2" ]
then
echo "ERROR: no tk firmware" 1>&2
exit 1
fi
echo1 "removing TCOM Webinterface"
rm -rf "${FILESYSTEM_MOD_DIR}/usr/www/tcom"
echo1 "copying AVM Webinterface"
mkdir "${HTML_LANG_MOD_DIR}"
"$TAR" -c -C "${DIR}/.tk/original/filesystem/usr/www/all" --exclude=html/de/usb . | "$TAR" -x -C "${HTM... | bs-github/freetz | patches/devices/04_XX/W701V/200-tk-firmware.sh | Shell | gpl-2.0 | 1,171 |
#!/usr/bin/env bash
#
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network $named $time
# Should-Stop: $network $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start an... | AlphaStaxLLC/os-ansible-deployment | playbooks/roles/galera_server/files/mysql_init.sh | Shell | apache-2.0 | 5,735 |
#!/usr/bin/env bash
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | houming-wang/kubernetes | hack/local-up-cluster.sh | Shell | apache-2.0 | 42,787 |
#! /usr/bin/env sh
echo "POST B_A running"
exit 0
| zhangzhehust/htcondor | src/condor_tests/job_dagman_always_run_post-B_A_post.sh | Shell | apache-2.0 | 50 |
#!/bin/bash
set -e
# This entrypoint is used to play nicely with the current cookiecutter configuration.
# Since docker-compose relies heavily on environment variables itself for configuration, we'd have to define multiple
# environment variables just to support cookiecutter out of the box. That makes no sense, so this... | jondelmil/cookiecutter-django | {{cookiecutter.repo_name}}/compose/django/entrypoint.sh | Shell | bsd-3-clause | 749 |
#!/bin/bash
FN="ChimpHumanBrainData_1.32.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/experiment/src/contrib/ChimpHumanBrainData_1.32.0.tar.gz"
"https://bioarchive.galaxyproject.org/ChimpHumanBrainData_1.32.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-chimphumanbraindata/bioco... | cokelaer/bioconda-recipes | recipes/bioconductor-chimphumanbraindata/post-link.sh | Shell | mit | 1,347 |
#!/bin/sh
#
# /**-------------------------------------------------------------------**
# ** CLooG **
# **-------------------------------------------------------------------**
# ** check_run.sh **
... | VanirLLVM/toolchain_cloog | test/check_run.sh | Shell | lgpl-2.1 | 3,259 |
#!/bin/bash
# Program:
# This program xwalk install web app
#
#Copyright (c) 2013 Intel Corporation.
#
#Redistribution and use in source and binary forms, with or without modification,
#are permitted provided that the following conditions are met:
#
#* Redistributions of works must retain the original copyright n... | JianfengXu/crosswalk-test-suite | wrt/wrt-packertool-tizen-tests/packertool/Crosswalk_Tizen_Packaging_Tool_Install_test.sh | Shell | bsd-3-clause | 2,905 |
#!/bin/sh
docker ps -a | awk '{print $1}' | xargs --no-run-if-empty docker rm
| cicorias/IgniteARMDocker | rmContainer.sh | Shell | mit | 78 |
#!/bin/bash
mkdir -p $PREFIX/etc/conda/activate.d/
echo "export ASSEMBLY_STATS_SOURCE_DIR=$PREFIX/opt/assembly-stats" > $PREFIX/etc/conda/activate.d/rjchallis-assembly-stats-sourcedir.sh
chmod a+x $PREFIX/etc/conda/activate.d/rjchallis-assembly-stats-sourcedir.sh
mkdir -p $PREFIX/etc/conda/deactivate.d/
echo "unset A... | cokelaer/bioconda-recipes | recipes/rjchallis-assembly-stats/build.sh | Shell | mit | 1,012 |
#!/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")... | nickwallen/metron | metron-platform/metron-common/src/main/scripts/zk_load_configs.sh | Shell | apache-2.0 | 1,747 |
#! /bin/bash
for arch in $(scripts/arch-symbols --list) ; do
symbols="$(scripts/arch-symbols $arch)"
for config in $(scripts/guards $symbols < config.conf) ; do
config=${config#config/}
flavor=${config#*/}
echo "kernel-$flavor ($arch)"
echo Provides: $(scripts/guards $symbols $flavor p \
< rpm/old-p... | openSUSE/kernel-source | scripts/old-packages.sh | Shell | gpl-2.0 | 440 |
#!/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... | memo/tensorflow | tensorflow/tools/ci_build/ci_parameterized_build.sh | Shell | apache-2.0 | 20,632 |
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# Automates bisecting cucumber tests in a portable way; usage:
#
# git bisect start GOODGITSHA BADGITSHA
# git bisect run /path/to/bisect_cucumber.sh
#
# XXX: store this file outside source control first, e.g. by copying it over
# to /tmp,... | neilbu/osrm-backend | scripts/bisect_cucumber.sh | Shell | bsd-2-clause | 781 |
#!/bin/sh
. ../../dttools/test/test_runner_common.sh
prepare()
{
exit 0
}
run()
{
cd syntax
if ../../src/makeflow_analyze -k variable_issues.makeflow
then
exit 1
else
exit 0
fi
}
clean()
{
exit 0
}
dispatch "$@"
# vim: set noexpandtab tabstop=4:
| nhazekam/cctools | makeflow/test/TR_makeflow_020_syntax_variable_issues.sh | Shell | gpl-2.0 | 266 |
#!/usr/bin/env bash
cd "$(dirname $0)"
export LC_ALL=C
data="../../outfits"
# XML elements which use the directories.
store="gfx_store"
space="gfx"
echo "Checking for unused graphics..."
for dir in store space; do
cd "$dir"
echo -e "\n Unused outfit $dir gfx"
for img in *.png; do
[[ $img =~ -end.pn... | kjoenth/naev | dat/gfx/outfit/check.sh | Shell | gpl-3.0 | 869 |
#
#
# Copyright 2015 Comcast Cable Communications Management, 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 app... | PSUdaemon/traffic_control | traffic_router/core/src/main/scripts/preremove.sh | Shell | apache-2.0 | 826 |
#!/bin/bash
fw_depends python2
sed -i 's|127.0.0.1|'${DBHOST}'|g' app/app/models/db.py
pip install --install-option="--prefix=${PY2_ROOT}" -r $TROOT/requirements.txt
rm -fr web2py
git clone --recursive --branch R-2.10.3 https://github.com/web2py/web2py.git
cp -r app/app/ web2py/applications/
cp app/routes.py web2p... | grob/FrameworkBenchmarks | frameworks/Python/web2py/setup.sh | Shell | bsd-3-clause | 376 |
#!/bin/sh
PHP_BIN=${2:-"php"}
rm -rf ~/.pdepend/*
$PHP_BIN "$(which pdepend)" --jdepend-xml=/tmp/jdpa0.xml --summary-xml=/tmp/suma0.xml "$1"
$PHP_BIN "$(which pdepend)" --jdepend-xml=/tmp/jdpa1.xml --summary-xml=/tmp/suma1.xml "$1"
$PHP_BIN src/bin/pdepend --jdepend-xml=/tmp/jdpb0.xml --summary-xml=/tmp/sumb0.xml "$1... | DLoBoston/simply.fund | wp-content/plugins/charitable-authorize-net/includes/libraries/anet_php_sdk/vendor/pdepend/pdepend/scripts/compare.sh | Shell | gpl-2.0 | 512 |
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | jagosan/kubernetes | hack/verify-generated-stable-metrics.sh | Shell | apache-2.0 | 928 |
#!/bin/sh
set -e
hostname=$1
if [ "$hostname" = "" ]; then
hostname="localhost"
fi
mkdir -p /etc/docker/certs.d/$hostname:5011
cp ./nginx/ssl/registry-ca+ca.pem /etc/docker/certs.d/$hostname:5011/ca.crt
mkdir -p /etc/docker/certs.d/$hostname:5440
cp ./nginx/ssl/registry-ca+ca.pem /etc/docker/certs.d/$hostname:5440/... | cloudfoundry-incubator/garden-shed | vendor/github.com/docker/distribution/contrib/docker-integration/install_certs.sh | Shell | apache-2.0 | 1,693 |
#!/usr/bin/env bash
set -ex
# The script does automatic checking on a Go package and its sub-packages,
# including:
# 1. gofmt (http://golang.org/cmd/gofmt/)
# 2. go vet (http://golang.org/cmd/vet)
# 3. unconvert (https://github.com/mdempsky/unconvert)
# 4. race detector (http://blog.golang.org/race... | jcmincke/dcrd | run_tests.sh | Shell | isc | 1,510 |
#!/bin/bash -eux
# MySQL or MongoDB partition
if [ -b /dev/xvdf ]; then
apt-get update -q
apt-get install xfsprogs -q -y
(echo n; echo p; echo 1; echo ; echo ; echo w;) | fdisk /dev/xvdf
mkfs.xfs /dev/xvdf1
fi
# Nginx partition
if [ -b /dev/xvdg ]; then
(echo n; echo p; echo 1; echo ; echo ; echo ... | innvent/parcelles | scripts/ubuntu/partition.sh | Shell | mit | 370 |
# Description: Scope of Variables in Functions
# Note
# 1. None
GLOBAL_VAR1=1
function hello() {
# GLOBAL_VAR1 is available here
echo $GLOBAL_VAR1
# GLOBAL_VAR2 is also available here since it is defined before functions invocation.
echo $GLOBAL_VAR2
# Error: GLOBAL_VAR3 is NOT available here s... | vikash-india/UnixNotes2Myself | linux/concepts/P033-Functions_ScopeOfVariables.sh | Shell | mit | 480 |
#!/bin/bash
set -euo pipefail
OUTPUT=${OUTPUT:-/dev/stdout}
IMAGE=${IMAGE-brettt89/silverstripe-web}
TAG=${1:-7.4-apache-buster}
DOCKER_BUILD_ARGS="--build-arg TAG=${TAG}"
BUILD_DIR="$(dirname "$(dirname "$(readlink -f "$BASH_SOURCE")")")/src"
declare -a TAG_ARRAY
IFS='-' read -r -a TAG_ARRAY <<< "$TAG"
PHP_VERSIO... | brettt89/silverstripe-web | build/build-image.sh | Shell | mit | 1,646 |
#!/bin/sh
echo Starting build process!
cd build
java -jar BuildTools.jar --rev 1.8.4 | colebob9/spigotbuilder | buildfiles/builder184.sh | Shell | mit | 84 |
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Cre... | cyberzac/h-dotfiles | git/aliases.zsh | Shell | mit | 688 |
#!/usr/bin/env bash
# coding: utf-8
set -e
prefix=/opt/indi
sudo dnf install -y cmake {libnova,cfitsio,libusb,zlib,gsl,libjpeg,libcurl,libtheora,fftw3}{,-devel}
pushd $(mktemp -d) && pwd
indiversion=1.8.1
# 1.7.5 and later not working with ASI120MM-S
# 1.8.1 is the last version this script works with
curl -L https:... | gronki/fedora-setup | build-scripts/build-indi-old.sh | Shell | mit | 1,427 |
#!/bin/bash
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
echo "Currently there are no files staged in git for validation."
echo -e "Run 'git help add' for more on staging files for a commit.\n"
exit 0
fi
GREEN='\033[32m'
RED_BG='\033[... | sudo-suhas/koa-webapp | pre-commit-eslint.sh | Shell | mit | 1,049 |
#!/usr/bin/env bash
HERE=$(dirname $0)
INFILE="${HERE}/opt-in.core.sh"
OUTFILE="${HERE}/opt-in.embed.sh"
ARCHIVE="${HERE}/opt-in.archive.sh"
README="${HERE}/README.md"
VERSION=$(cd $HERE && git describe --abbrev=0 --tags)
if [ ! -e $INFILE ]; then
echo "input file missing, aborting ...: ${INFILE}"
exit 1;
fi... | dvidelabs/opt-in | build.sh | Shell | mit | 2,852 |
#!/bin/bash
mkdir -p /opt
cd /opt
sudo yum -y update
# install nodejs
curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
sudo yum install -y nodejs git
# clone from github
git clone https://github.com/TroyCode/lunch-box-express.git
cd lunch-box-express
npm install
npm install -g forever
#... | TroyCode/lunch-box-express | bin/git-deployee.sh | Shell | mit | 531 |
#! /bin/bash
# Set the `JOBS` environment variable to configure how many `make` jobs can be
# executed simultaneously. If `JOBS` is not set, then the default is the number
# of cores on the system.
nproc=$(getconf _NPROCESSORS_ONLN)
JOBS=${JOBS:-$nproc}
BASE_DIR="$(/bin/pwd)/third-party"
set -e
echo "installing gte... | ILiedAboutCake/Rustla2 | api/deps.sh | Shell | mit | 1,540 |
#!/bin/bash
loc="`dirname \"$0\"`"
if [ ${#} == 1 ]
then
psql -U postgres -c "REVOKE CONNECT ON DATABASE ${1} FROM public;"
psql -U postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datname='${1}' and pid != pg_backend_pid();"
psql -U postgres -d postgres -c "drop database ${1}"
psql -U po... | flbuddymooreiv/pbp-helloworld | sql/reinitdb.sh | Shell | mit | 679 |
#!/bin/bash -u
[ -f ~/.bash/shutils.conf ] && source ~/.bash/shutils.conf
# globals
declare -g PROGNAME=${0##*/}
declare -g PROGVERSION="0.1.$(get_minor "$0")"
trap cleanup SIGHUP SIGINT SIGTERM EXIT
# Helpers
version() { printf '%s, versions %s\n\n' "$PROGNAME" "$PROGVERSION"; exit 0; }
cleanup() { printf 'cleanin... | Liambeguin/dotfiles | templates/args_and_cmds.bash | Shell | mit | 1,772 |
#!/bin/bash
# Set environment variables since cron doesn't load them
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export EC2_HOME=/usr
export EC2_BIN=/usr/bin/
export PATH=$PATH:$EC2_HOME/bin
export EC2_CERT=/home/ubuntu/.aws/cert-YOURCERTHERE.pem
export EC2_PRIVATE_KEY=/home/ubuntu/.aws/pk-YOURPKHERE.pem
export EC2_URL=h... | jojo080889/ebs-manage-snapshot | snapshot.sh | Shell | mit | 1,839 |
#!/bin/sh
/sbin/iptables -X
/sbin/iptables -F
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
| benkillin/linux-firewall | undo_iptables.sh | Shell | mit | 142 |
#!/bin/bash
# @Author: Jeremiah Marks
# @Date: 2015-02-10 20:32:45
# @Last Modified by: Jeremiah Marks
# @Last Modified time: 2015-02-10 20:40:07
ssh lrm "~/gitpull.sh"
| jeremiahmarks/dangerzone | scripts/bash/gitem.sh | Shell | mit | 176 |
#!/bin/bash
ver=8
cat www/assets/$ver/script/{jquery-1.7.1,jquery.easing,jquery.transition,jquery.fileClickjack,intro,MicroEvent,Rect,ImgInput,SpriteCanvas,SpriteCanvasView,InlineEdit,CssOutput,Toolbar,pageLayout,FeatureTest,featureTests,base}.js | node bin/uglify.js > www/assets/$ver/script/mainmin.js
~/dev/sass/bin/s... | DanCassiano/wikeditor | ferramentas/sprite-cow-master/bin/compress_assets.sh | Shell | mit | 407 |
#!/bin/bash
echo off
#CODE
BATCH_SIZE=${BATCH_SIZE:-30} # NO BIGGER THAN 30
NUMBER_OF_BATCHES=${NUMBER_OF_BATCHES:-50}
#TAGIDS=${TAGIDS:-6964} #MARKET FORCES
RANDOM_FACTOR=${RANDOM_FACTOR:-200} #Increase this value to migrate more randomly
SLEEP_TIME=${SLEEP_TIME:-1}
MIN_BATCH_NUMB... | guardian/flex-content-migrator | runMigrationScriptCODE_randomise.sh | Shell | mit | 1,565 |
set -e
appdir="/Applications"
apps=(
aerial
android-file-transfer
appcleaner
caffeine
dropbox
firefox
flux
google-chrome
spotifree
spotify
the-unarchiver
vitalsource-bookshelf
vlc
whatsapp
)
devApps=(
dbeaver-community
docker
filezilla
gitter
google-web-designer
intellij-idea-c... | mlin6436/cornerstone | macos/10-install-apps.sh | Shell | mit | 744 |
#!/bin/sh
#####################################################################
# usage:
# sh build.sh 构建默认的windows 32位程序
# sh build.sh darwin(或linux), 构建指定平台的64位程序
# examples:
# sh build.sh darwin amd64 构建MacOS版本的64位程序
# sh build.sh linux amd64 构建linux版本的64位程序
########################################################... | ms2008/poemoon | build.sh | Shell | mit | 1,411 |
#!/bin/bash
clang -emit-llvm tart.c -c -o tart.bc
clang -emit-llvm colart.c -c -o colart.bc
llvm-link-3.4 tart.bc colart.bc -o bootstrap.bc
llc-3.4 bootstrap.bc -o bootstrap.s
gcc bootstrap.s -o bootstrap.native
| organix/colart | build.sh | Shell | mit | 212 |
java -jar fbsCG.jar -fbs FlatBuffersSwiftTests/contacts.fbs -out FlatBuffersSwiftTests/contacts_fb.swift -lang swift -lib import
java -jar fbsCG.jar -fbs FlatBuffersSwiftTests/friends.fbs -out FlatBuffersSwiftTests/friends_fb.swift -lang swift -lib import
java -jar fbsCG.jar -fbs FlatBuffersSwiftTests/withLib.fbs -out ... | hassila/FlatBuffersSwift | generate.sh | Shell | mit | 370 |
#
# Profile setter for python
#
# Author: Duncan Macleod <duncan.macleod@ligo.org>
#
alias grep="grep --color=auto"
| duncanmmacleod/terminal-utils | etc/profile.d/grep.sh | Shell | mit | 117 |
#!/bin/bash
DESTDIR=${DESTDIR:-/opt/gvweb/}
set -e
go build gvweb
mkdir -p "$DESTDIR"
mkdir -p "$DESTDIR"/data/
chown nobody "$DESTDIR"/data/
install -p gvweb "$DESTDIR"
cp -ap static/ "$DESTDIR"
| noselasd/gvweb | etc/deploy.sh | Shell | mit | 202 |
#!/bin/bash -ev
#
# Installation Script
# Written by: Tommy Lincoln <pajamapants3000@gmail.com>
# Github: https://github.com/pajamapants3000
# Legal: See LICENSE in parent directory
#
# Time: < 0.1 SBU
# Dependencies
#**************
# Begin Required
#Xorg Libraries
#xcb_util-0.3.9
# End Required
# Begin Recommended
# E... | pajamapants3000/BLFS_scripts_etc | scripts/startup_notification-0.12.sh | Shell | mit | 1,363 |
#!/bin/bash
kill -SIGUSR1 $(ps -elf |grep auto_copy_daemon.py |awk '/python/ {print $4}')
sleep 1
| shoubamzlibap/small_projects | auto_copy/send_siguser1.sh | Shell | mit | 98 |
#!/bin/bash
# This hook executes jshint tests in a project if a phpcs.xml file is found
# in the project root directory.
exit 0
staged=$(git diff --diff-filter=AM --cached --name-only | grep "\.js$")
# Nothing to do
if [[ $staged = '' ]]; then
exit 0
fi
jshint_args=""
# Any extra arguments to jshint should go ... | dbestevez/dotfiles | src/config/githooks/pre-commit/10-jshint.sh | Shell | mit | 1,523 |
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2012 Olaf Lessenich
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | xai/scripts | scan-apacheerrors.sh | Shell | mit | 1,942 |
#!/bin/sh
# Clean up the results directory
rm -rf results
mkdir results
#Synthesize the Wrapper Files
echo 'Synthesizing example design with XST';
xst -ifn xst.scr
cp ROM01_exdes.ngc ./results/
# Copy the netlist generated by Coregen
echo 'Copying files from the netlist directory to the results director... | nczempin/NICNAC16 | ipcore_dir/ROM01/implement/implement.sh | Shell | mit | 972 |
#!/bin/bash
#
# Complete MySQL backup daily.
#
# VERSION :0.1
# DATE :2014-10-22
# AUTHOR :Viktor Szépe <viktor@szepe.net>
# LICENSE :The MIT License (MIT)
# URL :https://github.com/szepeviktor/debian-server-tools
# BASH-VERSION :4.2+
# DEPENDS :apt-get install util-linux
# ... | djeraseit/debian-server-tools | mysql/mysql-backup.sh | Shell | mit | 669 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.