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 |
|---|---|---|---|---|---|
#
# UTILITY FUNCTIONS
#
### PATH VARIABLES
GISLAB_PATH_ADMIN="$GISLAB_ROOT/admin"
GISLAB_PATH_CUSTOM="$GISLAB_ROOT/custom"
GISLAB_PATH_SECRET="$GISLAB_ROOT/secret"
GISLAB_PATH_SYSTEM="$GISLAB_ROOT/system"
GISLAB_PATH_STORAGE="/storage"
GISLAB_PATH_APPLICATIONS="$GISLAB_PATH_STORAGE/applications"
GISLAB_PATH_BACKUP="$G... | gislab-npo/gislab | system/functions.sh | Shell | gpl-3.0 | 1,536 |
#!/bin/bash
# Copyright (c) 2013, Lucas Hope <lucas.r.hope@gmail.com>.
# Copyright other contributors as noted in the AUTHORS file.
#
# This file is part of cl-czmq - a re-binding of the C binding for
# the zmq transport layer (czmq).
#
# This file is licensed under the terms of the LLGPL.
#
# This library is free soft... | lhope/cl-czmq3 | src/ffi.sh | Shell | gpl-3.0 | 944 |
#!/bin/bash
myCgate="/var/CommuniGate"
myLogFile="/var/CommuniGate/spamassassin/spam-result.out"
myDate=`date +%Y-%m-%d\ %H:%M:%S`
echo "Date $myDate " $@ >> $myLogFile
#Get the fileid of the message file
QueuePath=$3
NewFile=`/bin/basename $QueuePath`'.tmp'
FinalFile=$NewFile'.sub'
SAUser=$1
echo $SAUser
# Formu... | communigate/communigate-cpanel-adaptor | sso/scanspam.sh | Shell | gpl-3.0 | 1,158 |
#!/bin/bash
set -e
# Disable formatting warnings in flake8, as we use `black` to handle that.
formatting_warnings=E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5
# shellcheck disable=SC2046
flake8 --max-line-length=88 --ignore="$formatting_warnings" $(git ls-files '*.py')
| frida/glib | .gitlab-ci/run-flake8.sh | Shell | lgpl-2.1 | 296 |
#!/bin/bash
./autogen.sh
./configure
( cd man && make fakechroot.1 )
pod2readme man/fakechroot.pod README
rm -f README.bak
make dist
| solderzzc/fakechroot | makedist.sh | Shell | lgpl-2.1 | 137 |
#!/bin/bash
source /home/stack/devstack/openrc neutron service
#service chain node and spec creation
gbp servicechain-node-create --service-profile base_mode_fw_vm --config 'custom_json:{"mimetype": "config/custom+json","rules": [{"action": "log", "name": "tcp", "service": "tcp/80"}, {"action": "log", "name": "tcp",... | jiahaoliang/group-based-policy | devstack/exercises/nfp_service/fw_base_vm.sh | Shell | apache-2.0 | 1,753 |
#!/bin/bash -ex
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2018] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#... | helensch/ensembl-rest | bin/production/start_rest_server.sh | Shell | apache-2.0 | 3,651 |
#export CHARGIFY_SUBDOMAIN=wsmoak-eur-test
#curl -u $CHARGIFY_API_KEY:x -H Accept:application/json -H Content-Type:application/json -X POST -d @create-subscription-blank-vat.json https://$CHARGIFY_SUBDOMAIN.chargify.com/subscriptions.json
#curl -u $CHARGIFY_API_KEY:x -H Accept:application/json -H Content-Type:applica... | wsmoak/chargify | create-subscription.sh | Shell | apache-2.0 | 2,479 |
#!/bin/bash
function usage {
echo "Usage: $0 [OPTION]..."
echo "Run Keystone's test suite(s)"
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local environment"
echo " -f, --force ... | ntt-pf-lab/backup_keystone | run_tests.sh | Shell | apache-2.0 | 3,616 |
#!/bin/bash
set -e
IFS=
function fail {
echo "$1"
exit 1
}
# child field_name finds a the first top-level YAML field named field_name in the input
# and sends through any lines under that field, stripped of extra leading space
function child {
target="^(- )?$1:"
prefix=0
while read -r line; do
... | pachyderm/pfs | etc/testing/circle/check_buckets.sh | Shell | apache-2.0 | 1,028 |
#!/bin/bash
# This script signs all of Santa's components, verifies the signatures,
# notarizes all of the components, staples them, packages them up, signs the
# package, notarizes the package, puts the package in a DMG and notarizes the
# DMG. It also outputs a single release tarball.
# All of the following environm... | google/santa | Conf/Package/package_and_sign.sh | Shell | apache-2.0 | 9,247 |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
pwd
php $(dirname $DIR)/artisan migrate:refresh --force && php $(dirname $DIR)/composer.phar dump-autoload && php $(dirname $DIR)/artisan db:seed -vvv --force
cd - > /dev/null 2>&1
| eivind88/b3 | scripts/populate-db.sh | Shell | bsd-3-clause | 269 |
#!/bin/bash
set -e
help() {
cat <<- EOF
Usage: TAG=tag $0
Creates git tags for public Go packages.
VARIABLES:
TAG git tag, for example, v1.0.0
EOF
exit 0
}
if [ -z "$TAG" ]
then
printf "TAG env var is required\n\n";
help
fi
if ! grep -Fq "\"${TAG#v}\"" version.go
then
printf "version.... | HatsuneMiku3939/redis | scripts/tag.sh | Shell | bsd-3-clause | 684 |
#!/usr/bin/env zsh
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2021 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the f... | phy1729/zsh-syntax-highlighting | highlighters/main/test-data/parameter-expansion-shwordsplit.zsh | Shell | bsd-3-clause | 2,123 |
#!/usr/bin/env bash
if [ -z ${DIR+x} ]; then
#running by itself
source ../constants.sh
else
#running from dendro_full_setup_ubuntu_server_ubuntu_16.sh
source ./constants.sh
fi
#save current dir
setup_dir=$(pwd)
# # =====================
# # = PM2 Service setup =
# # =====================
#
# info "Setting up PM2... | feup-infolab/dendro-install | scripts/Services/dendro.sh | Shell | bsd-3-clause | 4,614 |
#!/bin/sh
set -x
git submodule update --init --recursive
# build muduo
cd third_party/muduo
SOURCE_DIR=`pwd`
BUILD_DIR=${BUILD_DIR:-../build}
BUILD_TYPE=${BUILD_TYPE:-release}
INSTALL_DIR=${INSTALL_DIR:-../../}
BUILD_NO_EXAMPLES=${BUILD_NO_EXAMPLES:-1}
mkdir -p $BUILD_DIR/$BUILD_TYPE && \
cd $BUILD_DIR/$BUILD_TYP... | decimalbell/muduo-beanstalk | bootstrap.sh | Shell | mit | 510 |
#!/bin/bash
FN="TxDb.Dmelanogaster.UCSC.dm6.ensGene_3.4.6.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.9/data/annotation/src/contrib/TxDb.Dmelanogaster.UCSC.dm6.ensGene_3.4.6.tar.gz"
"https://bioarchive.galaxyproject.org/TxDb.Dmelanogaster.UCSC.dm6.ensGene_3.4.6.tar.gz"
"https://depot.galaxyproject.org/sof... | mdehollander/bioconda-recipes | recipes/bioconductor-txdb.dmelanogaster.ucsc.dm6.ensgene/post-link.sh | Shell | mit | 1,422 |
#!/bin/sh
test_description='Test merge without common ancestors'
. ./test-lib.sh
# This scenario is based on a real-world repository of Shawn Pearce.
# 1 - A - D - F
# \ X /
# B X
# X \
# 2 - C - E - G
GIT_COMMITTER_DATE="2006-12-12 23:28:00 +0100"
export GIT_COMMITTER_DATE
test_expect_success ... | AndyA/git-andya | t/t6024-recursive-merge.sh | Shell | gpl-2.0 | 2,991 |
#!/bin/bash
#
# Clean-Junk Script: Javilonas, 24-04-2015
# Javilonas <admin@lonasdigital.com>
#
for i in `find . -type f \( -iname \*.rej \
-o -iname \*.orig \
-o -iname \*~ \
-o -iname \*.bkp \
-o -iname \*.ko \
-o -iname \*.c.BACKUP.[0-9]*.c \
-o -iname \*.c.BASE.[0-9]*.c \
-o -iname \*.c... | javilonas/Enki-SM-G901F | clean-junk.sh | Shell | gpl-2.0 | 422 |
#!/bin/bash
scriptpath="../../../../../home/release/video_refactoring/trunk/maintenance/wikia/VideoHandlers"
#scriptpath="../../../../../usr/wikia/mac/maintenance/wikia/VideoHandlers"
TMPFILE=`mktemp /tmp/$0.XXXXXX` || exit 1
echo "Getting list of wikis..."
echo "select
wiki_id, wiki_id, wiki_dbname, wiki_name
from v... | SuriyaaKudoIsc/wikia-app-test | maintenance/wikia/VideoHandlers/vm69_migrate_missed_wikis2.sh | Shell | gpl-2.0 | 1,270 |
#!/bin/bash
echo "copying README.html to ~ckingsf/www/software/sailfish . . . "
scp README.html robp@linux.gp.cs.cmu.edu:~ckingsf/www/software/sailfish/
echo "done.\n" | homologus/Pandoras-Toolbox-for-Bioinformatics | src/sailfish/PublishREADMEToWebsite.sh | Shell | gpl-3.0 | 168 |
# Compatible with ranger 1.5.3 through 1.6.*
#
# Change the prompt when you open a shell from inside ranger
#
# Add this line to your .bashrc for it to work.
[ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) '
| mathstuf/ranger | doc/examples/bash_subshell_notice.sh | Shell | gpl-3.0 | 210 |
#!/bin/sh
# Copyright 2016 Telefonica Investigacion y Desarrollo, S.A.U
#
# This file is part of fiware-cygnus.
#
# fiware-cygnus 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 the
... | Fiware/context.Cygnus | cygnus-ngsi/resources/ngsi-examples/notification-json-geom.sh | Shell | agpl-3.0 | 2,090 |
#!/bin/bash
#
# Copyright (C) 2007 National Institute For Space Research (INPE) - Brazil.
#
# This file is part of TerraMA2 - a free and open source computational
# platform for analysis, monitoring, and alert of geo-environmental extremes.
#
# TerraMA2 is free software: you can redistribute it and/or modify
# it ... | TerraMA2/terrama2 | install/install-3rdparty-macos-sierra.sh | Shell | lgpl-3.0 | 5,550 |
#!/bin/sh
export JBOSS_HOME="$(dirname "$0")/server/wildfly-${version.wildfly}"
UNAME=`which uname`
if [ -n "$UNAME" -a "`$UNAME`" = "Darwin" ]
then
BROWSERS="open"
else
BROWSERS="xdg-open gnome-www-browser x-www-browser firefox chromium chromium-browser google-chrome"
fi
echo "starting Camunda Platform ${project.... | camunda/camunda-bpm-platform | distro/wildfly/assembly/src/start-camunda.sh | Shell | apache-2.0 | 992 |
rm -rf target/release
mkdir target/release
cd target/release
git clone git@github.com:grails-plugins/grails-spring-security-ldap.git
cd grails-spring-security-ldap
grails clean
grails compile
#grails publish-plugin --snapshot --stacktrace
grails publish-plugin --stacktrace
| saffron-technology/grails-spring-security-ldap | release.sh | Shell | apache-2.0 | 275 |
#!/bin/bash
# Create log directory, with appropriate permissions
if [[ ! -d "/var/log/kolla/storm" ]]; then
mkdir -p /var/log/kolla/storm
fi
if [[ $(stat -c %a /var/log/kolla/storm) != "755" ]]; then
chmod 755 /var/log/kolla/storm
fi
| stackforge/kolla | docker/storm/storm-base/extend_start.sh | Shell | apache-2.0 | 243 |
#! /usr/bin/env atf-sh
atf_test_case revert_package
revert_package_head() {
atf_set "descr" "xbps-install(8): do a full workflow of reverting a package version"
}
revert_package_body() {
mkdir -p some_repo pkg_A
touch pkg_A/file00
# create package and install it
cd some_repo
echo first V1.0 > ../pkg_A/file00
... | stpx/xbps | tests/xbps/xbps-install/revert_tests.sh | Shell | bsd-2-clause | 1,307 |
#!/usr/bin/env sh
TOOLS=../../build/examples/SED_HS
$TOOLS/test_video.bin SED_HS_test_backup.prototxt SED_HS_quick_iter_100000_best test_list.txt GPU 0.75 3 | chenqi1990/MyCaffe | examples/SED_HS/test_video.sh | Shell | bsd-2-clause | 158 |
mkdir dist
ghc -odir dist -hidir dist --make -O Benchmark.hs -o dist/benchmark -fforce-recomp
dist/benchmark
| sebastiaanvisser/labels | bench/run.sh | Shell | bsd-3-clause | 110 |
#!/bin/bash
FN="moex10stprobeset.db_8.7.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/moex10stprobeset.db_8.7.0.tar.gz"
"https://bioarchive.galaxyproject.org/moex10stprobeset.db_8.7.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-moex10stprobeset.db/biocondu... | blankenberg/bioconda-recipes | recipes/bioconductor-moex10stprobeset.db/post-link.sh | Shell | mit | 1,475 |
#!/bin/bash
FN="FANTOM3and4CAGE_1.26.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/FANTOM3and4CAGE_1.26.0.tar.gz"
"https://bioarchive.galaxyproject.org/FANTOM3and4CAGE_1.26.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-fantom3and4cage/bioconductor-fantom3a... | bebatut/bioconda-recipes | recipes/bioconductor-fantom3and4cage/post-link.sh | Shell | mit | 1,327 |
#!/bin/sh
# Copyright (C) 2010-2015 OpenWrt.org
. /lib/functions/leds.sh
boot="$(get_dt_led boot)"
failsafe="$(get_dt_led failsafe)"
running="$(get_dt_led running)"
upgrade="$(get_dt_led upgrade)"
set_state() {
status_led="$boot"
case "$1" in
preinit)
status_led_blink_preinit
;;
failsafe)
status_led_off
... | HenryGiraldo/source | target/linux/lantiq/base-files/etc/diag.sh | Shell | gpl-2.0 | 761 |
#!/bin/sh
# Copyright (C) 1999-2006 ImageMagick Studio LLC
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see http://www.imagemagick.org/script/license.php.
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ... | ipwndev/DSLinux-Mirror | user/imagemagick/src/tests/rwblob_SUN_gray.sh | Shell | gpl-2.0 | 359 |
#!/bin/bash
mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" "-p${MYSQL_PASSWORD}" --add-drop-table --no-data "$MYSQL_DB" | grep -e '^DROP \| FOREIGN_KEY_CHECKS' | mysql -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" "-p${MYSQL_PASSWORD}" "$MYSQL_DB"
| witzig/mailtrain | setup/sql/drop.sh | Shell | gpl-3.0 | 268 |
#!/usr/bin/env 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 applica... | rnaveiras/kubernetes | test/cmd/core.sh | Shell | apache-2.0 | 93,432 |
#!/bin/bash
ifconfig srlocal inet6 add db04::1/64
route -6 add db02::0/64 gw db04::99
| licko/vpp-1701-licko | vnet/etc/scripts/sr/srlocal.sh | Shell | apache-2.0 | 87 |
#!/bin/bash -u
set -e
#
# Copyright (c) 2012 Tresys Technology LLC, Columbia, Maryland, USA
#
# This software was developed by Tresys Technology LLC
# with U.S. Government sponsorship.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Lice... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/SSG/dev/groupowner_shadow_file.sh | Shell | apache-2.0 | 858 |
#!/bin/bash
export DISABLE_ASMLIB=true
export CXX=g++
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib"
if [ "$(uname)" == "Darwin" ]; then
Makefile=makefile_mac
else
Makefile=makefile
fi
make -f $Makefile
cp bin/kmc bin/kmc_dump bin/kmc_tools "${PREFIX}/bin/"
| dmaticzka/bioconda-recipes | recipes/kmc/build.sh | Shell | mit | 318 |
#!/bin/sh
./tracemerge erf:trace1.erf \
erf:../../test/traces/100_packets.erf \
pcap:../../test/traces/100_packets.pcap || exit 1
rm -f trace1.erf
| repu1sion/odp_libtrace | tools/tracemerge/test-tracemerge.sh | Shell | gpl-2.0 | 151 |
#!/bin/sh
. ./systemTesting.sh
testname="`basename $0 .sh`"
if test "${UPDATE_MODE}x" = "x"; then
printf "$testname: ";
fi
if ! which Snac 1> /dev/null 2>&1; then
export PATH="$PATH:../../build/bin"
if ! which Snac 1> /dev/null 2>&1; then
echo "Snac could not be found"
exit 1;
fi
fi
if runTest $testname "... | geodynamics/snac | Snac/tests/test-basic.sh | Shell | gpl-2.0 | 589 |
#! /bin/sh
# Usage: wake <host> [<MAC address>]
#
# <host> can be a host name or a dotted-quad IP address.
# If the <MAC address> is not given, it is taken from ethers(5).
# For this to work, if you give a host name as first argument, ethers
# has to contain host names (as opposed to IP addresses).
#
# Unless you have... | Bytewerk/uClinux-ipcam | user/sendip/contrib/wake.sh | Shell | gpl-2.0 | 1,160 |
#
# Short shell script for making an SFS user/group if it does not exist
# alread on FreeBSD.
#
GROUP=sfs
USER=sfs
PW=pw
NAME='SFS User'
$PW groupshow $GROUP >/dev/null 2>&1
if [ $? -ne 0 ]
then
$PW groupadd $GROUP
L=`$PW groupshow $GROUP`
echo "Added sfs group: $L"
fi
$PW usershow $USER >/dev/null 2>&1
... | vonwenm/pbft | sfslite-1.2/contrib/mk-sfsuser-freebsd.sh | Shell | gpl-2.0 | 477 |
# This file isn't used as a test script directly, instead it is
# sourced from t8001-annotate.sh and t8002-blame.sh.
check_count () {
head= &&
file='file' &&
options= &&
while :
do
case "$1" in
-h) head="$2"; shift; shift ;;
-f) file="$2"; shift; shift ;;
-*) options="$options $1"; shift ;;
*) break ;;
... | github/git-msysgit | t/annotate-tests.sh | Shell | gpl-2.0 | 13,051 |
#!/bin/sh
# Ensure "ls --color" properly colors "normal" text and files.
# I.E. that it uses NORMAL to style non file name output and
# file names with no associated color (unless FILE is also set).
# Copyright (C) 2010-2014 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/o... | houwentaoff/coreutils | tests/ls/color-norm.sh | Shell | gpl-3.0 | 3,104 |
#!/bin/bash
# Copyright 2014 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... | AlexeyKupershtokh/kubernetes | cluster/gce/util.sh | Shell | apache-2.0 | 40,610 |
#!/usr/bin/env sh
cd $RECIPE_DIR/../..
$PYTHON setup.py build_ext --target=ndt install --single-version-externally-managed --record=record.txt || exit 1
| mwiebe/dynd-python | conda/ndt.recipe/build.sh | Shell | bsd-2-clause | 155 |
# Version name is "nightly" or a version number
ARG_DEFS=(
"--version-name=(.*)"
"--old-version=(.*)"
)
echo "##### "
echo "##### cdn/publish.sh"
echo "#####"
function init {
CDN_DIR=$HOME/ionic-code
../clone/clone.sh --repository="ionic-code" \
--depth="1" \
--directory="$CDN_DIR" \
--branch="gh... | jgw96/ionic | scripts/cdn/publish.sh | Shell | mit | 1,235 |
#!/bin/bash -xe
export DISPLAY=:99
export GOVUK_APP_DOMAIN=test.alphagov.co.uk
export GOVUK_ASSET_ROOT=http://static.test.alphagov.co.uk
env
function github_status {
STATUS="$1"
MESSAGE="$2"
gh-status alphagov/govuk-content-schemas "$SCHEMA_GIT_COMMIT" "$STATUS" -d "Build #${BUILD_NUMBER} ${MESSAGE}" -u "$BUILD_... | ggoral/whitehall | jenkins-schema.sh | Shell | mit | 1,602 |
## History wrapper
function omz_history {
# Delete the history file if `-c' argument provided.
# This won't affect the `history' command output until the next login.
zparseopts -E c=clear l=list
if [[ -n "$clear" ]]; then
# if -c provided, clobber the history file
echo -n >| "$HISTFILE"
echo >&2 Hi... | thekostya/dotfiles | .oh-my-zsh/lib/history.zsh | Shell | mit | 1,595 |
#!/bin/bash
if [ "$#" -ge 1 ]; then
export TAO_DOMAIN="$1"
elif [ "$TAO_DOMAIN" == "" ]; then
echo "Must supply the path to an initialized domain, or set \$TAO_DOMAIN."
exit 1
fi
set -o nounset
set -o errexit
gowhich() {
WHICH=$(which which)
echo -n "$(PATH="${GOPATH//://bin:}/bin" $WHICH "$1")"
}
TAO="$(gowh... | kevinawalsh/cloudproxy | go/scripts/run_processes.sh | Shell | apache-2.0 | 693 |
#!/usr/bin/env bash
plan 84
TMPFILE="$TEST_PT_TMPDIR/parse-opts-output"
TOOL="pt-stalk"
PT_TMPDIR="$TEST_PT_TMPDIR"
source "$LIB_DIR/log_warn_die.sh"
source "$LIB_DIR/parse_options.sh"
# ############################################################################
# Parse options from POD using all default values.
#... | fipar/percona-toolkit | t/lib/bash/parse_options.sh | Shell | gpl-2.0 | 11,207 |
#! /bin/sh
# Run only when the interface is not "lo":
if [ "${1}" = "lo" ]; then
exit 0
fi
if [ "${2}" = "up" ]; then
# Restart Vidalia because it does not automatically reconnect to the new
# Tor instance. Use kill+start as:
# - X-GNOME-AutoRestart does not exist in Lenny's Gnome
# - we do not start V... | david415/tails | config/chroot_local-includes/etc/NetworkManager/dispatcher.d/60-vidalia.sh | Shell | gpl-3.0 | 481 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: bootmisc
# Required-Start: $local_fs mountvirtfs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Misc and other.
### END INIT INFO
. /etc/default/rcS
#
# Put a nologin file in /etc to prevent people from logging i... | BlackHole/oe-alliance-core | meta-oe/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | Shell | gpl-2.0 | 1,610 |
# hints/netbsd.sh
#
# Please check with packages@netbsd.org before making modifications
# to this file.
case "$archname" in
'')
archname=`uname -m`-${osname}
;;
esac
# NetBSD keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
# so Configure doesn't find them (unless you abandon the nm scan).
# Also, Ne... | rhuitl/uClinux | user/perl/hints/netbsd.sh | Shell | gpl-2.0 | 4,318 |
#!/bin/bash
# Generate test result data for xstormy16 GAS testing.
# This script is machine generated.
# It is intended to be run in the testsuite source directory.
#
# Syntax: build.sh /path/to/build/gas
if [ $# = 0 ] ; then
if [ ! -x ../gas/as-new ] ; then
echo "Usage: $0 [/path/to/gas/build]"
else
BUILD... | mattstock/binutils-bexkat1 | gas/testsuite/gas/xstormy16/allinsn.sh | Shell | gpl-2.0 | 21,814 |
# Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
... | crtrott/lammps | src/USER-QUIP/Install.sh | Shell | gpl-2.0 | 1,489 |
#!/bin/sh
#
# Copyright 2012 Facebook
#
# 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... | taisukeoe/facebook-android-sdk | scripts/configure_unit_tests.sh | Shell | apache-2.0 | 1,769 |
#!/bin/bash
# Nexcess.net Turpentine Extension for Magento
# Copyright (C) 2012 Nexcess.net L.L.C.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at y... | miguelangelramirez/magento.dev | util/dump-active-vcl.sh | Shell | gpl-2.0 | 1,138 |
#!/bin/sh
# Adapted from https://gist.github.com/lasconic/5965542
QTDIR=$1
for F in `find $QTDIR/lib $QTDIR/plugins $QTDIR/qml -perm 755 -type f`
do
for P in `otool -L $F | grep -E -e "[^:]$" | awk '{print $1}'`
do
if [[ "$P" == *//* ]]
then
PSLASH=$(echo $P | sed 's,//,/,g')
install_name... | utecht/simcraft_shaman | qt/fix_qt51_osx_paths.sh | Shell | gpl-3.0 | 407 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ hgu95d.db
| ostrokach/bioconda-recipes | recipes/bioconductor-hgu95d.db/pre-unlink.sh | Shell | mit | 56 |
#!/usr/bin/env bash
set -eu -o pipefail
rm -rf built
ngc
# This is to mainlt copy the index.html to be packaged into the server.
cp -r src/* built/src
# Bundle the server which hosts all the server side apps.
webpack --config webpack.server.config.js
# Bundle the clients into individual bundles.
webpack --confi... | pk-karthik/framework-js-angular | packages/platform-server/integrationtest/build.sh | Shell | mit | 346 |
#!/bin/sh
# Copyright (c) 2015-2019 Contributors as noted in the AUTHORS file
#
# This file is part of Solo5, a sandboxed execution environment.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and th... | Solo5/solo5 | scripts/virtio-run/solo5-virtio-run.sh | Shell | isc | 6,233 |
#!/bin/bash
# called by Travis CI
set -ex
WP_CLI_BIN_DIR=${WP_CLI_BIN_DIR-/tmp/wp-cli-phar}
# Disable XDebug to speed up Composer and test suites.
phpenv config-rm xdebug.ini
composer install --no-interaction --prefer-source
CLI_VERSION=$(head -n 1 VERSION)
if [[ $CLI_VERSION == *"-alpha"* ]]
then
GIT_HASH=$(git... | miya0001/wp-cli | ci/prepare.sh | Shell | mit | 935 |
#!/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... | eocleo/AlbumCore | AlbumDemo/Pods/Target Support Files/Pods-AlbumDemo/Pods-AlbumDemo-frameworks.sh | Shell | mit | 3,719 |
#!/bin/sh
pip install -U tox==2.3.0 coveralls==1.1
coverage erase
tox
coverage combine
coverage report -m
coverage html
| avara1986/gozokia | tests.sh | Shell | mit | 120 |
#!/usr/bin/env bash
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`.
# Please modify the CONSTANT variables to fit your configurations.
PUMA_CONFIG_FILE=config/puma.rb
PUMA_PID_FILE=tmp/pids/puma.pid
PUMA_SOCKET=tmp/sockets/puma.sock
. ~/.bash_profile
puma_is_running() ... | Coursemology/coursemology.org | puma.sh | Shell | mit | 1,514 |
g++ weltraumquiz.cpp -std=c++11 -I/usr/include/SDL2/ -lSDL2main -lSDL2 -lSDL2_image -o weltraumquiz
| krother/cplusplus_abv_zedat | projekte_ss2017/weltraumquiz/build.sh | Shell | mit | 102 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2844-1
#
# Security announcement date: 2014-01-15 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:49 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - djvulibre:3.5.23-3+squeeze1
#
# La... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2014/DSA-2844-1.sh | Shell | mit | 630 |
#!/usr/bin/env bash
set -e
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
CUR_DIR=`pwd`
if [ -f "$BASE_DIR/_scripts/local.env" ]; then
set -o allexport
source "${BASE_DIR}/_scripts/local.env"
set +o allexport
# printenv
echo "ENV"
else
echo
echo "!! Didn't find ${BASE_DIR}/_scripts/loc... | stevepartridge/geocodio | _scripts/env.sh | Shell | mit | 569 |
#!/bin/bash
#
# Configures displays using xrandr.
#
xrandr --output eDP1 --mode 1920x1080 --output DP2 --mode 1920x1080 --dpi 82 --above eDP1
| hkjn/scripts | configure_displays.sh | Shell | mit | 142 |
#!/bin/bash --login
# Xcode 8 or later seems to have a dependency on the system ruby.
# xcodebuild is screwed up by using rvm to map to another non-system
# ruby.
# This script's executed by /bin/bash --login
rvm use system
unset RUBYLIB
unset RUBYOPT
unset BUNDLE_BIN_PATH
unset _ORIGINAL_GEM_PATH
unset BUNDLE_GEMFI... | SCENEE/relax | test/travis_ci.sh | Shell | mit | 434 |
#!/bin/bash
source .env
echo "Removing previous images and containers..."
project=$(basename $(pwd))_
docker rm -f $(docker ps -aq)
docker rmi -f ${project}server
docker rmi -f ${project}backend
docker rmi -f ${project}db
if [ "$TEST_MODE" = "true" ]; then
echo "Removing previous volumes..."
docker volume ls... | clemtoy/pyng | reset.sh | Shell | mit | 572 |
#!/usr/bin/env bash
# Check If Grafana Has Been Installed
if [ -f /home/vagrant/.grafana ]
then
echo "Grafana already installed."
exit 0
fi
touch /home/vagrant/.grafana
echo "deb https://packagecloud.io/grafana/stable/debian/ stretch main" > /etc/apt/sources.list.d/grafana.list
curl -s https://packagecloud.... | jordanramstad/homestead | scripts/install-grafana.sh | Shell | mit | 478 |
#!/bin/bash
export HUBOT_SLACK_TOKEN=your-slack-api-token
export HUBOT_SLACK_TEAM=yourTeamName
export HUBOT_SLACK_BOTNAME=ebichan
export HUBOT_NEWRELIC_APP_ID=000000(your newrelic app id)
export HUBOT_NEWRELIC_ACCOUNT_ID=yourNewRelicAccountID
export HUBOT_NEWRELIC_API_KEY=yourNewRelicAPIKey
bin/hubot --adapter slack... | msmyoshida/ebichan | ebichan-start.sh | Shell | mit | 328 |
#!/bin/bash
/home/tweet.sh/tweet.sh dm "@$1" $2
| varocarrascosa/home-assistant | cmds/twitternotify.sh | Shell | mit | 48 |
#!/bin/bash
# Copyright (c) 2015-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# ******************************************************************************
# This is an end-to-end test intended to run on CI.
# Y... | infernojs/create-inferno-app | tasks/e2e-simple.sh | Shell | mit | 9,238 |
#!/bin/bash
source ~/.bashrc
source ../lib/main.sh
#add-repo "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
#update-repo
sudo apt-get update && sudo apt-get upgrade
install vim-gtk
install git
install curl
source ../resources/media.sh
source ../resources/tools.sh
source ../resources/dotfiles_jcies... | jcieslar/ubuntu_setup | bin/install.sh | Shell | mit | 546 |
#!/bin/bash
# TODO:
# * add: update a swagger spec
# * import: batch create endpoints from swagger spec
# * inventory: show known endpoints (akin to `rake routes`)
# * clone: use an existing git repo of fuction endpoints
# * commit to git on deploy
# * doc how to wrap common things (auth, etc) into a node package to de... | xtoddx/neuro | neuro.sh | Shell | mit | 7,468 |
#!/bin/bash
# ----------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016 copyright pamtrak06@gmail.com
# ----------------------------------------------------
# SCRIPT : runi.sh
# ALIAS : edockerruni
# DESCRIPTION : run command "docker run -it" interacti... | pamtrak06/edocker | scripts/runi.sh | Shell | mit | 2,381 |
#!/usr/bin/env bash
THIS_DIR=`dirname $(readlink -f $0)`
source ${THIS_DIR}/common.sh
spark-submit --master local[2] --class interretis.intro.streaming.NetworkWordCount ${ARTIFACT_PATH} $@ | MarekDudek/spark-certification | src/main/scripts/network-count.sh | Shell | mit | 190 |
#!/bin/sh
sudo gem install fastlane --no-ri --no-rdoc --no-document
fastlane upload_beta --verbose &
# Output to the screen every minute to prevent a travis timeout
export PID=$!
while [[ `ps -p $PID | tail -n +2` ]]; do
echo 'Uploading..'
sleep 60
done | coach-plus/ios | travis/upload_beta.sh | Shell | mit | 259 |
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
# add a function path
fpath=($ZSH/functions $ZSH/completions /usr/local/share/zsh/site-functions/ $fpath)
... | nsfmc/oh-my-zsh | oh-my-zsh.sh | Shell | mit | 2,976 |
cd ..
cd ..
cd bin
./caffe time --model=../models/vgg_face/deploy.prototxt --weights=../models/vgg_face/vgg_face_train_iter_10000.caffemodel > time_log_cpu.txt 2>&1 | diharaw/EmoLib | scripts/benchmark/time_cpu.sh | Shell | mit | 164 |
#!/bin/bash
rm -rf testrepo
mkdir -p testrepo
cd testrepo
git init
date > readme.txt
git add .
git commit -m 'master'
git checkout -b 'education'
date > foo.txt
git add .
git commit -m 'foo1'
git checkout -b 'developer'
date > bar.txt
git add .
git commit -m 'software engineer'
git tag 'acme.com'
git checkout mast... | jangroth/git-cv | make-test-repo.sh | Shell | mit | 588 |
echo "changing directory to Tasks"
cd $GOPATH/src/github.com/thewhitetulip/Tasks
echo "creating table"
cat schema.sql | sqlite3 tasks.db
echo "building the go binary"
go build -o Tasks
echo "starting the binary"
./Tasks
| thewhitetulip/Tasks | install.sh | Shell | mit | 221 |
sudo apt-get install gparted
| UedaTakeyuki/gc_setups | gparted.setup.sh | Shell | mit | 29 |
#!/bin/bash
USAGE="sh solr_setup.sh {create|reload|delete} core-name"
cmd=$1
core=$2
echo $USAGE
function upload {
upload_core=$1
curl http://localhost:8983/solr/resource/solr.$upload_core/schema.xml \
--data-binary @solr/$upload_core\_schema.xml \
-H 'Content-type:text/xml; charset=utf-8'
... | pgorla/million-books | solr_setup.sh | Shell | mit | 1,158 |
#!/usr/bin/env bash
debug=${1:-false}
# Load help lib if not already loaded.
if [ -z ${libloaded+x} ]; then
source ./lib.sh
fi;
# Set dotfilesdir var if not declared.
if [ -z ${dotfilesdir+x} ]; then
dotfilesdir="$(dirname "$(pwd)")"
fi;
botintro "Sourcing directories and files to handle."
# Declare array of di... | aaronbates/dotfiles | setup/files.sh | Shell | mit | 919 |
### Restore from bareos
###
### Create example bootstrap file
cat <<EOF >$VAR_DIR/bootstrap.txt
### Example Bareos bootstrap file
###
### Only the exact Volume name is required, other keywords are optional.
### The use of FileIndex and Count keywords speeds up the selection enormously.
### The Volume name to use
Vol... | dr-slump/larantuka | ansible/bareos/roles/rear/templates/40_restore_backup.sh | Shell | mit | 5,326 |
#!/bin/bash
set -e -o pipefail
cd ${CURR_DIR}/issue1037-better-dependency-messages
temp_file=$(mktemp $(basename $0).XXXXXX)
expected_file="$CURR_DIR/expected-issue1037-output"
function cleanup {
rm $temp_file
}
trap cleanup EXIT
$DUB upgrade 2>$temp_file && exit 1 # dub upgrade should fail
if ! diff "$expect... | grogancolin/dub | test/issue1037-better-dependency-messages.sh | Shell | mit | 411 |
# Update local config in case it's not already loaded
source $HOME/.dotfiles.local
# Variables
args="$@"
debug=false
# Functions
source $DOTFILES_HOME/script/function/log.sh
while getopts ":vdh:" opt; do
case $opt in
v|d) debug=true ;;
:) fail "-$OPTARG requires an argument" ;;
esac
done
if [ -d "$DOTFILES_HO... | ahaasler/dotfiles | script/update.sh | Shell | mit | 1,503 |
#!/usr/bin/env bash
#Credit: https://github.com/geodocker/geodocker-hdfs
set -eo pipefail
source /sbin/hdfs-lib.sh
template $HADOOP_CONF_DIR/core-site.xml
template $HADOOP_CONF_DIR/hdfs-site.xml
# The first argument determines wether this container runs as data, namenode or secondary namenode
if [ -z "$1" ]; then
... | biggis-project/biggis-hdfs | files/sbin/start.sh | Shell | mit | 825 |
#! bash/bash
### Includes
source ~/bash/scripts/helpers/index.bash
source ~/bash/scripts/git/index.bash
### Local variables
help=false
branch=''
### Parse arguments
while getopts ":h" opt; do
case "${opt}" in
h) help=true;;
esac
done
### Check arguments
if [ "$help" != false ]
then
utils_hel... | comodinx/bash-utilities | scripts/git/rebaseDevelopment.bash | Shell | mit | 663 |
#!/usr/bin/env bash
docker build --rm -t wolffaxn/postgresql .
| wolffaxn/dockerfiles | postgresql/build.sh | Shell | mit | 64 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3639-1
#
# Security announcement date: 2016-08-03 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:10 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - wordpress:4.1+dfsg-1+deb8u9
#
# Last ... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/i386/2016/DSA-3639-1.sh | Shell | mit | 749 |
#!/bin/bash
# (Just a temporary test, this file isn't actually used anywhere).
# Apply database migrations
echo "Apply database migrations"
python3.5 manage.py migrate
# Start server
echo "Starting server"
python manage.py runserver 0.0.0.0:8000
| raymestalez/django-react-blog | backend/docker-entrypoint.sh | Shell | mit | 248 |
### GPAW installation script for Puhti
### uses --prefix to set a custom installation directory
# version numbers (modify if needed)
gpaw_version=cuda
gpaw_commit=111567ee39dd48e106b36b1aab4e6bc1b9961cae
libxc_version=4.3.4
# installation directory (modify!)
tgt=$USERAPPL/appl/gpaw/1.5.2-$gpaw_version
# setup buil... | mlouhivu/build-recipes | gpaw/examples/puhti-1.5.2-cuda/build.sh | Shell | mit | 1,044 |
#!/bin/sh
export Cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
export OS=Linux
export ARCH=x86_64
make cleanAll
make -j$Cores release
export ARCH=x86
make -j$Cores release
export OS=Windows_NT
make -j$Cores release
export ARCH=x86_64
make -j$Cores release
make package
export OS=Linu... | H4tch/ConnectFour | tools/Release.sh | Shell | mit | 323 |
#!/usr/bin/env bash
# http://stackoverflow.com/questions/15807845/list-files-and-show-them-in-a-menu-with-bash
# Select file
# Usage:
# result = $(selectFile $DIRECTORY)
# echo "result: "$(basename $result)
selectFile ()
{
prompt="Select target kernel version:"
options=( $(find "$1" -maxdepth 1 -print0 | xargs -0) )
... | lekkas/kernel-dev-scripts | initramfs_create_chroot.sh | Shell | mit | 849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.