code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/sh
#
# Copyright (C) 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
#
# 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 this permission notice appear in all copies.
#
# THE SOFTWARE IS ... | execunix/vinos | external/bsd/bind/dist/bin/tests/system/rsabigexponent/ns1/sign.sh | Shell | apache-2.0 | 1,479 |
#!/bin/bash
#
# Canary repair/cleanup tests
#
# Usage: $1 = elassandra tarball filename
source $(dirname $0)/integ-test-lib.sh
if [ "$#" -ne 1 ]; then
echo "Expecting elassandra tarball filename as first argument."
exit 1
fi
# prevent issues
unset CASSANDRA_DATA
unset CASSANDRA_CONF
unset CASSANDRA_HOME
unset CASS... | strapdata/elassandra | integ-test/test-datacenter-groups.sh | Shell | apache-2.0 | 3,639 |
#!/usr/bin/env bash
# Copyright 2016 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... | frodenas/kubernetes | cluster/gce/gci/configure-helper.sh | Shell | apache-2.0 | 107,437 |
#!/bin/bash
nl=8
N=256
echo nl=$nl
echo N=$N
#compile cholesky
chpl --fast cholesky.chpl -o cholesky
echo 'Cyclic (C)'
./cholesky -nl $nl --dist=C --N=$N --messages --timeit
echo 'Cyclic with modulo unrolling (CM) aggregation minimum = 4'
./cholesky -nl $nl --dist=CM --N=$N --correct --messages --timeit --minimumFo... | chizarlicious/chapel | test/users/aroonsharma/scripts/docholeskybench.bash | Shell | apache-2.0 | 978 |
#
# Copyright 2008-2009 bebo, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | nassim-git/project-voldemort | bin/voldemort-config.sh | Shell | apache-2.0 | 1,101 |
#!/bin/sh
SCRIPT_PATH=$(realpath $0)
SCRIPT_PREFIX=$(dirname ${SCRIPT_PATH})
. ${SCRIPT_PREFIX}/common.sh
PID="$1"
OUTPUT_DIR="$2"
OUTPUT="$3"
MESSAGE="$4"
RESULT="$5"
BUILDBOX="$6"
SANDBOX="$7"
OUTPUT_DIR_TMP=$(dirname ${OUTPUT})
test -z "$PID" && exit 1
test -z "$OUTPUT_DIR" && exit 1
test -z "$OUTPUT" && exit 1
... | pgj/bead | backend/scripts/modules/watchdog.sh | Shell | bsd-3-clause | 967 |
#!/bin/bash
out=$(scl enable rh-mysql56 'mysql -V')
retcode=$?
echo "$out"|grep -o 'Distrib 5\.6\.'
exit $retcode
| sclorg/sclo-ci-tests | collections/rh-mysql56-rh/check-version/run.sh | Shell | bsd-3-clause | 118 |
for i in *.pdf; do
convert -density 300 $i $i.png
done
| jgcobb3/growth-yield-batch | scripts/blm/graphs/output/convert_to_png.sh | Shell | bsd-3-clause | 60 |
#!/bin/bash
set -e
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
repo="$1"
if [ -z "$repo" ]; then
echo >&2 'error: no repo specified'
cat >&2 <<EOUSAGE
usage: $0 repo [> README.md]
ie: $0 php > ../php/README.md
This script generates a stub README to standard out for the specified repo.
EOUSAGE
exit 1
fi... | ceejatec/docs | generate-repo-stub-readme.sh | Shell | mit | 4,285 |
#!/bin/sh
#
# Taginfo source: Languages
#
# update.sh DIR
#
set -e
DIR=$1
REGISTRY_URL="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry"
REGISTRY_FILE="$DIR/language-subtag-registry"
CLDR_URL="http://unicode.org/Public/cldr/latest/core.zip"
CLDR_FILE="$DIR/cldr-core.zip"
CLDR_DIR="... | geostonemarten/taginfo | sources/languages/update.sh | Shell | gpl-2.0 | 2,144 |
#!/bin/sh
# (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is not a license and does not gra... | FlatTargetInk/UMD_RISC-16G5 | ProjectLab2/Shadow_Register/Lab04/ipcore_dir/DEBUG_RAM/simulation/functional/simulate_ncsim.sh | Shell | gpl-3.0 | 2,971 |
#!/bin/bash
this_dir=`cd "\`dirname \"$0\"\`";pwd`
top_dir=${this_dir}/../
die() {
echo "$@" 1>&2 ; popd 2>/dev/null; exit 1
}
install_depends() {
yum install -y epel-release || die "cannot install epel"
yum install -y \
which make rpmdevtools gcc-c++ cmake boost-devel libxml2-devel libuuid-devel... | PivotalRD/libhdfs3 | rpms/build.sh | Shell | apache-2.0 | 3,047 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/Source.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=Source.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
PACKAG... | medo64/UsbAmps | Firmware/Source/nbproject/Package-default.bash | Shell | mit | 1,351 |
#!/bin/bash
set -ev
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_REPO_SLUG" = "SebastianM/angular2-google-maps" ]; then
#npm publish ./dist --tag next --access public
fi | rafalsobota/angular2-google-maps | scripts/npm-publish.sh | Shell | mit | 175 |
#!/bin/bash
for i in $(seq 1 5)
do
echo "$i of 5: bundle install --without development --path vendor/bundle"
bundle install --without development --path vendor/bundle
exit_code=$?
if [ $exit_code -eq 0 ]; then
break
fi
done
exit $exit_code
| ShinjiTanimoto/shirasagi | .travis.d/install.d/90-bundle-install.sh | Shell | mit | 255 |
#!/bin/sh
DIR=`dirname "$0"`
cd $DIR
# Delete database
flask db drop --yes-i-know
| hachreak/invenio-oauthclient | examples/app-teardown.sh | Shell | gpl-2.0 | 85 |
#! /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"; then
echo "Skipping short tests because we are only doing long tests"
exit 77
fi
dir=formatting
arg='texi cond.texi'
name='texi_cond'
[ -d "$dir" ] || mk... | nischu7/texinfo | tp/tests/test_scripts/formatting_texi_cond.sh | Shell | gpl-3.0 | 573 |
#!/bin/bash
# Test file importing
echo ++++++++++++ Testing imports that should fail ++++++++++++
../tools/import-mbox.py --dry --duplicates --source resources/fail
echo ------------ Should be zero records inserted --------------
echo
COUNT=$(grep '^From ' resources/pass/*.mbox | wc -l)
echo ++++++++++++ Testing imp... | quenda/ponymail | test/import_test.sh | Shell | apache-2.0 | 827 |
#!/bin/bash
export PYTHONPATH=..:~/wc/git/GitPython
exec python3 "$@"
| barry-scott/git-workbench | Source/Git/Experiments/run-py.sh | Shell | apache-2.0 | 71 |
#!/bin/bash
DOMAIN="ThreeWP_Activity_Monitor"
cp "$DOMAIN.pot" lang/$DOMAIN.pot
OPTIONS="-s -j --no-wrap -d $DOMAIN -p lang -o $DOMAIN.pot --omit-header"
xgettext $OPTIONS ThreeWP_*php
| mssdeepakkumar/fourchilli | wp-content/plugins/threewp-activity-monitor/pot.sh | Shell | gpl-2.0 | 186 |
#!/bin/bash
#
# Copyright (C) 2010, Nokia <ivan.frade@nokia.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# T... | slowfranklin/tracker | tests/libtracker-data/run-test-in-tmp-dir.sh | Shell | gpl-2.0 | 1,067 |
#!/bin/bash
RED=$'\033[0;31m'
NC=$'\033[0m' # No Color
echo "Why you so lazy >.<"
sleep 1
echo "Good thing I was bored and wrote this script for ya."
sleep 1
echo "OK Let's get started."
sleep 1
echo -e "What is your GitHub repo path? (ie. dev foundation is '${RED}Fadyazmy/developersfoundation${NC}')"
echo "Make sure... | SirLeonardIV/QHTC | init.sh | Shell | gpl-3.0 | 1,312 |
#!/bin/sh
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# A Bourne shell script for running the NIST RNG Validation Suite
#
# Before you run the script, set your ... | Yukarumya/Yukarum-Redfoxes | security/nss/cmd/fipstest/tls.sh | Shell | mpl-2.0 | 1,078 |
#!/bin/sh
# Spamd init script for Slackware 10.0
# August, 2th 2003
# Martin Ostlund, nomicon
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DAEMON=/usr/bin/spamd
NAME=spamd
SNAME=rc.spamassassin
DESC="SpamAssassin Mail Filter Daemon"
PIDFILE="/var/run/$NAME.pid"
PNAME="spamd"
DOPTIONS="-d --pidfile=$PIDFILE"
KI... | apache/spamassassin | spamd/slackware-rc-script.sh | Shell | apache-2.0 | 922 |
#!/usr/bin/env bash
set -e
PYTHON_CMD="$(which python)"
VIM="/usr/local/bin/vim"
PYTHON_VERSION=$($PYTHON_CMD -c 'import sys;print(sys.version.split()[0])')
echo "Using python from: $PYTHON_CMD Version: $PYTHON_VERSION"
echo "Using vim from: $VIM"
$VIM --version | head -n 3
set -x
tmux new -d -s vim
$PYTHON_CMD ./... | yslin/tools-zodlin | ubuntu/vim/.vim/lang/all/ultisnips/docker/run_tests.sh | Shell | apache-2.0 | 459 |
#!/bin/bash
function stop_msg {
echo -e "\n\e[32mStopping $1\n---------------------------------------------------------------\e[0m"
}
stop_msg "Jetty"
/opt/jetty/bin/jetty.sh stop
stop_msg "RabbitMQ"
/opt/rabbitmq/sbin/rabbitmqctl stop
stop_msg "Elasticsearch"
curl -XPOST 'http://localhost:9200/_cluster/nodes/_lo... | bings/lumify | docker/demo/stop.sh | Shell | apache-2.0 | 574 |
PKGURL=https://github.com/mik3y/usb-serial-for-android.git
PKGHASH=228c793
package_download $PKGURL $PKGHASH
package_patch
USBSER_LIBNAME=usb-serial-for-android
cd usbSerialForAndroid/src/main/java
# fix the place where the codes needs to go
mkdir src
mv com src
if [ -f $SYS_PREFIX/lib/$USBSER_LIBNAME.a ]; then
... | gale320/lambdanative | libraries/usb-serial-for-android/make.sh | Shell | bsd-3-clause | 1,321 |
#!/bin/bash
#
# Copy createdb.sh.example to createdb.sh
# then uncomment then set database name and username to create you need databases
#
# example: .env POSTGRES_USER=appuser and need db name is myshop_db
#
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
# CREATE USE... | jinnawat/laradock | postgres/docker-entrypoint-initdb.d/init_jupyterhub_db.sh | Shell | mit | 1,767 |
# heavily inspired by the wonderful pure theme
# https://github.com/sindresorhus/pure
# needed to get things like current git branch
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git # You can add hg too if needed: `git hg`
zstyle ':vcs_info:git*' use-simple true
zstyle ':vcs_info:git*' max-exports 2
zstyle ':vcs_... | SlyDen/dotfiles | zsh/prompt.zsh | Shell | mit | 1,969 |
#!/bin/sh
TEST_PURPOSE=goal
TEST_TYPE=umlXhost
TESTNAME=basic-pluto-09
XHOST_LIST="NIC NORTH EAST"
REF_CONSOLE_FIXUPS="kern-list-fixups.sed nocr.sed"
REF_CONSOLE_FIXUPS="$REF_CONSOLE_FIXUPS east-prompt-splitline.pl"
REF_CONSOLE_FIXUPS="$REF_CONSOLE_FIXUPS cutout.sed"
REF_CONSOLE_FIXUPS="$REF_CONSOLE_FIXUPS klips-de... | qianguozheng/Openswan | testing/pluto/basic-pluto-09/testparams.sh | Shell | gpl-2.0 | 1,075 |
#!/bin/bash
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License
# 2.0 and the Server Side Public License, v 1; you may not use this file except
# in compliance with, at your election, the Elastic License 2.0 or the... | ern/elasticsearch | distribution/docker/src/docker/cloud/plugin-wrapper.sh | Shell | apache-2.0 | 879 |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | jboeuf/grpc | tools/dockerfile/interoptest/grpc_interop_cxx/build_interop.sh | Shell | apache-2.0 | 1,249 |
#!/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 applicab... | jessfraz/test-infra | hack/autodeps.sh | Shell | apache-2.0 | 1,930 |
#*********************************************************************
# Blosc - Blocked Suffling and Compression Library
#
# Unit tests for basic features in Blosc.
#
# Creation date: 2010-06-07
# Author: Francesc Alted <francesc@blosc.io>
#
# See LICENSES/BLOSC.txt for details about copyright and rights to use.
... | gdementen/PyTables | c-blosc/tests/test_all.sh | Shell | bsd-3-clause | 436 |
#!/bin/bash
set -e
if [ -z $RD_COLLECT_SUB ]; then
echo "Please use: $(dirname $0)/rd_collect.sh <libjpeg|mozjpeg> *.y4m"
exit 1
fi
FILE=$1
BASENAME=$(basename $FILE)
rm $BASENAME.out 2> /dev/null || true
echo $BASENAME
tail -n+3 $FILE > $BASENAME-in.yuv
WIDTH=$(head -1 $FILE | cut -d\ -f 2 | tr -d 'W')
HEIGHT... | KyleSiefring/daala | tools/rd_collect_jpeg.sh | Shell | bsd-2-clause | 1,269 |
# fixme - the load process here seems a bit bizarre
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol
setopt auto_menu # show completion menu on succesive tab press
setopt complete_in_word
setopt always_to_end
WORDCHARS=''
zmodload -i zsh/complist
## case-insensiti... | TheDahv/dotfiles | zsh/oh-my-zsh/lib/completion.zsh | Shell | mit | 2,747 |
#!/bin/bash -e
echo "================ Installing openjdk-7-jdk ================="
apt-get install -y openjdk-7-jdk
update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
update-alternatives --set javaws /usr/lib/jvm/java... | harryi3t/u12jav | version/openjdk7.sh | Shell | mit | 511 |
#!/bin/bash
echo "line 1***"
sudo apt-get update
echo "line 2***"
sudo apt-get install default-jre -y
echo "line 3***"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "line 4***"
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.... | simongdavies/azure-quickstart-templates | yash-datalake/scripts/kibana_install_script.sh | Shell | mit | 2,480 |
#!/bin/sh
git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d' ' -f2-
| leapcode/leap_mx | pkg/utils/get_authors.sh | Shell | agpl-3.0 | 125 |
#!/bin/sh
#
# Build the Android libraries without needing a project
# (AndroidManifest.xml, jni/{Application,Android}.mk, etc.)
#
# Usage: androidbuildlibs.sh [arg for ndk-build ...]"
#
# Useful NDK arguments:
#
# NDK_DEBUG=1 - build debug version
# NDK_LIBS_OUT=<dest> - specify alternate destination for in... | joncampbell123/dosbox-rewrite | vs2015/sdl2/build-scripts/androidbuildlibs.sh | Shell | gpl-2.0 | 1,614 |
#!/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... | Hokutosei/kubernetes | cluster/update-storage-objects.sh | Shell | apache-2.0 | 3,625 |
#!/bin/bash
set -x -e
RM_DIR=${PREFIX}/share/Gcluster
mkdir -p ${PREFIX}/bin
mkdir -p ${RM_DIR}
cp -r * ${RM_DIR}
MCL_DIR="${PREFIX}/bin/mcl"
BLASTP_DIR="${PREFIX}/bin/blastp"
MAKEBLASTDB_DIR="${PREFIX}/bin/makeblastdb"
#export MCL_DIR BLASTP_DIR MAKEBLASTDB_DIR
#original path for mcl, blastp and makrblastdb
MCL_P=... | ostrokach/bioconda-recipes | recipes/gcluster/build.sh | Shell | mit | 1,552 |
#!/bin/sh
#
# Copyright (c) 2007 Frank Lichtenheld
#
test_description='git-cvsserver access
tests read access to a git repository with the
cvs CLI client via git-cvsserver server'
. ./test-lib.sh
if ! test_have_prereq PERL; then
skip_all='skipping git cvsserver tests, perl not available'
test_done
fi
cvs >/dev/nu... | wsp/git | t/t9400-git-cvsserver-server.sh | Shell | gpl-2.0 | 14,828 |
#!/bin/sh
test_description='basic update-index tests
Tests for command-line parsing and basic operation.
'
. ./test-lib.sh
test_expect_success 'update-index --nonsense fails' '
test_must_fail git update-index --nonsense 2>msg &&
test -s msg
'
test_expect_success 'update-index --nonsense dumps usage' '
test_expe... | tacker66/git | t/t2107-update-index-basic.sh | Shell | gpl-2.0 | 2,407 |
#!/bin/sh
./bootstrap.sh
./configure
make | jellever/Yara.NET | yara-3.5.0/build.sh | Shell | gpl-2.0 | 41 |
#!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='git ls-tree test.
This test runs git ls-tree with the following in a tree.
path0 - a file
path1 - a symlink
path2/foo - a file in a directory
path2/bazbo - a symlink in a directory
path2/baz/b - a file in a directory in a... | nodakai/git | t/t3100-ls-tree-restrict.sh | Shell | gpl-2.0 | 3,849 |
#!/usr/bin/env bash
# Copyright 2014 The Oppia 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 re... | sunu/oh-missions-oppia-beta | scripts/clean.sh | Shell | apache-2.0 | 838 |
#!/bin/sh
[ "${ACTION}" = "released" ] || exit 0
. /lib/functions.sh
case "${BUTTON}" in
BTN_0)
logger "reset pressed"
sync
reboot
;;
BTN_1)
logger "factory pressed"
jffs2_mark_erase "rootfs_data"
sync
reboot
;;
*)
logger "unknown button ${BUTTON}"
;;
esac
| baldo/freifunk-hamburg | target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh | Shell | gpl-2.0 | 285 |
#!/bin/sh
# Example for use of GNU gettext.
# This file is in the public domain.
#
# Script for cleaning all autogenerated files.
test ! -f Makefile || make distclean
# Brought in by autopoint.
rm -f ABOUT-NLS
rm -f config.rpath
rm -f m4/codeset.m4
rm -f m4/gettext.m4
rm -f m4/glibc2.m4
rm -f m4/glibc21.m4
rm -f m4/i... | FabianKnapp/nexmon | utilities/gettext/gettext-tools/examples/hello-objc-gnome/autoclean.sh | Shell | gpl-3.0 | 1,150 |
#!/bin/sh
test_description='Combination of submodules and multiple workdirs'
. ./test-lib.sh
base_path=$(pwd -P)
test_expect_success 'setup: make origin' \
'mkdir -p origin/sub && ( cd origin/sub && git init &&
echo file1 >file1 &&
git add file1 &&
git commit -m file1 ) &&
mkdir -p origin/main && ( cd or... | StephanieMak/git | t/t7410-submodule-checkout-to.sh | Shell | gpl-2.0 | 1,696 |
#!/bin/bash
export PATH=$PATH:/usr/bin/
printUsage() {
echo -e "\nCWD"; pwd;
echo -e "\nERROR. Usage: ./build.sh <platform> [args]";
echo -e "\nAvailable Platforms:";
echo -e "\tandroid";
echo -e "\tlinux";
echo -e "\twindows";
echo -e "\nOptional args:";
echo -e "\tclean";
echo -e "\trun\t(supported only on... | VajraFramework/Vajra | VajraFramework/build.sh | Shell | mit | 1,025 |
#!/usr/bin/env bash
EXEC_PATH="$PWD"
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_PATH"
cd ..
docker network create street_network
docker-compose up -d mymongo
sleep 3
cd "$SCRIPT_PATH"
mvn clean package -DskipTests=true
docker build -t gr2/ctlms .
cd ..
docker-compose down
#docker network rm street_net... | Justewi/CentralTrafficLightManagement | CTLMS/build.sh | Shell | mit | 342 |
#!/usr/bin/env bash
py.test --doctest-modules \
--ignore eli5/xgboost.py \
--ignore eli5/lightgbm.py \
--ignore eli5/catboost.py \
--ignore eli5/keras \
--ignore eli5/formatters/image.py \
--ignore tests/utils_image.py \
--cov=eli5 --cov-report=html --cov-report=... | TeamHG-Memex/eli5 | _ci/runtests_default.sh | Shell | mit | 331 |
#!/bin/sh
umask 000
rm -rf build dist
git ls-tree --full-tree --name-only -r HEAD | xargs chmod ugo+r
find src docs tests -type d | xargs chmod ugo+rx
./setup.py sdist bdist_wheel || exit 1
VERSION=$(./setup.py --version) || exit 1
twine upload dist/django_mailer-$VERSION-py2.py3-none-any.whl dist/django-mailer-$VE... | pinax/django-mailer | release.sh | Shell | mit | 333 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/Motor_Test.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=Motor_Test.X.${IMAGE_TYPE}.${OUTPUT_SU... | dbazor/BB_Slug | BetaCode/Motor_Test.X/nbproject/Package-default.bash | Shell | mit | 1,383 |
#!/bin/bash -e
adduser meteor --gecos "" --disabled-password
echo "meteor:password" | chpasswd
addgroup meteor sudo
echo 'meteor ALL = NOPASSWD : ALL' >> /etc/sudoers
| practicalmeteor/docker-meteor-dev | add/usr/local/bin/add-meteor-user.sh | Shell | mit | 168 |
#!/bin/bash
DIR="$(git rev-parse --show-toplevel)"
source $DIR/vars.sh
# run all services, but wait 5 seconds in between to allow linking to work properly
echo "running services..."
for service in $services; do
bash $DIR/services/$service/run.sh && sleep 5;
done
echo "services are now running" | coolhacks/docker-hacks | examples/tweedy-zebra/app-registry/run.sh | Shell | mit | 304 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/thread_tests
O... | DeepBlue14/rqt_ide | modules/thread_tests/nbproject/Package-Release.bash | Shell | mit | 1,467 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2706-1
#
# Security announcement date: 2015-08-06 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:44 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - icedtea-6-jre-cacao:6b36-1.13.8-0ubunt... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2015/USN-2706-1.sh | Shell | mit | 3,639 |
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_p... | bgold09/dotfiles | bash/prompt.bash | Shell | mit | 644 |
#!/bin/sh
# Simple shell script to backup selected directories
# Parent backup directory
backup_parent_dir="/var/backup_server/$(hostname -s)"
# Directories to backup
backup_me="/etc /var/www /var/named /var/log"
# Check and create backup directory
backup_date=`date +%Y_%m_%d_%H_%M`
backup_dir=${backup_parent_dir}/f... | milosz/shell-octo-adventure | scripts/backup_dirs.sh | Shell | mit | 599 |
rm *.o;make test INCLUDEMAIN=1 DEBUG=1 OBJECTS=vbl.o TARGET_NAME=vbl
| frranck/asm2c | asmTests/vbl/createTest.sh | Shell | mit | 69 |
#!/bin/sh
echo "$1" > prog.go
go run prog.go
| foliea/grounds-exec-deprecated | dockerfiles/exec-golang/run.sh | Shell | mit | 46 |
#!/bin/sh
#makes all bsnes binaries for distribution
#use bizwinmakedistro64.sh for 64bit (dont run it at the same time!)
./bizwinclean.sh
./bizwinmakeone.sh 64 performance compress
./bizwinclean.sh
./bizwinmakeone.sh 64 compatibility compress
#leave compatibility built as objs because thats more useful to us while ... | superusercode/RTC3 | Real-Time Corruptor/BizHawk_RTC/libsnes/bizwinmakedistro64.sh | Shell | mit | 329 |
# Makde directory and change into it
#
# Copyright (c) 2015, Kannan Thambiah <pygospa@gmail.com>
# Licensed under the MIT license
# Latest version: https://github.com/pygospa/dotfiles
function mcd() {
mkdir -p "$1" && cd "$1";
}
| pygospa/dotfiles | zsh/functions/mcd.zsh | Shell | mit | 234 |
#!/bin/bash
# Download/clone cabal
set -e
git clone git@github.com:sheyll/cabal.git
| sheyll/develop-cabal | local/Download.sh | Shell | mit | 87 |
#!/bin/bash
cd bower_components/fine-uploader
npm install && grunt build
| esbenp/fineuploader-client | postinstall.sh | Shell | mit | 75 |
#08_install_subversion
#this section will install subversion
sudo aptitude install -y subversion
| davidwparker/slicehost_scripts | scripts/08_install_subversion.sh | Shell | mit | 97 |
#!/bin/sh -e
# psql --variable=ON_ERROR_STOP=1 --username "$POSTGRES_USER" -c 'CREATE DATABASE postgres'
# psql --variable=ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname=main -c 'CREATE EXTENSION "uuid-ossp"'
# psql --variable=ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname=main -c 'CREATE EXTENSION "hstore... | earogov/talks_api | db/config/postgres-initdb.sh | Shell | mit | 322 |
USERWM=/Users/grc/git-repos/stumpwm/stumpwm
PATH=/Users/grc/bin:/opt/local/bin:$PATH
INFOPATH=/Users/grc/info:/usr/local/share/info/:/usr/share/info/:/usr/local/share/info/
export INFOPATH
#xset +fp ~/local/lib/X11/fonts
export LANG=en_GB.UTF-8
cd
| grc/dotfiles | xinitrc.d/00-userwm.sh | Shell | mit | 252 |
source bash+ :std
Config::Ini:read() {
[ $# -eq 2 ] ||
die "Usage: read file/path section.key"
local file="${1:?read requires file}"
local key="${2:?read requires key}"
git config -f "$file" "$key"
}
Config::Ini:write() {
[ $# -eq 2 ] ||
die "Usage: read file/path section.key"
local file="${1:?re... | ingydotnet/config-ini-bash | lib/config/ini.bash | Shell | mit | 462 |
#!/usr/bin/env bash
if [[ $# -ne 1 ]]; then
cat <<EOF
Usage: ./to_sty.sh <source-file>
Converts lines of the form
("\\aleph" ?ℵ)
into
\DeclareUnicodeCharacter{2135}{\aleph}
EOF
exit 1
fi
while read first rest; do
# Check and remove the leading question mark.
[[ $rest =~ ^\\?...$ ]] || continue... | Christoph-D/latex-unicode-math-mode | to_sty.sh | Shell | mit | 540 |
#!/bin/bash
dir=$1
sample=$2
poretools fasta --type 2D $dir > $sample.fasta
demultiplex.py --barcodes /zibra/zika-pipeline/barcodes/barcodes.fasta $sample.fasta
| zibraproject/zika-pipeline | barcodes/demultiplex.sh | Shell | mit | 163 |
#!/bin/bash
browserify ../../proxy.js -o static/proxy.js
browserify test.js -o static/test.js
| substack/schoolbus | example/form/make.sh | Shell | mit | 94 |
#!/bin/bash
set -ex
mkdir -p ../../data/print_reads
cwltool --outdir ../../data/print_reads ../../community-workflows/tools/GATK-PrintReads.cwl print_reads.json
| Duke-GCB/bespin-cwl | examples/tools/print_reads.sh | Shell | mit | 165 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-588-2
#
# Security announcement date: 2016-08-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:17 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - mongodb:1:2.0.6-1.1+deb7u1
#
# Last ... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2016/DLA-588-2.sh | Shell | mit | 605 |
#!/bin/bash
# TODO secure % wildcard to docker host if possible
SQL_WITH_USER="
CREATE USER '${MYSQL_DRUPAL_USER}' IDENTIFIED BY '${MYSQL_DRUPAL_PASSWORD}';
CREATE DATABASE ${MYSQL_DRUPAL_SCHEMA};
GRANT ALL PRIVILEGES ON ${MYSQL_DRUPAL_SCHEMA}.* TO '${MYSQL_DRUPAL_USER}'@'%';
FLUSH PRIVILEGES;
"
# First time setup
if... | jamesbrink/docker-drupal | assets/bin/start_drupal.sh | Shell | mit | 1,929 |
#!/bin/bash
TESTS_DIR=$( cd $( dirname "$0" ); pwd )
REPO_DIR=$( dirname $TESTS_DIR )
PHPUNIT=$REPO_DIR/vendor/bin/phpunit
PHP=/usr/local/php54/bin/php # PAY ATTENTION! Your php probably resides under path that differs from mine.
if [ ! -x $PHPUNIT ]; then
echo 'Run `composer install` to obtain phpunit executable'... | ob-ivan/dropbox-proxy | tests/run.sh | Shell | mit | 379 |
#!/bin/bash -e
echo "Starting docker"
if hash systemctl 2>/dev/null; then
sudo systemctl start docker
else
sudo service docker start
fi
for IMAGE in $(echo $PULL_IMAGES | sed "s/,/ /g")
do
echo "Pulling image $IMAGE"
sudo docker pull $IMAGE
done | vuminhkh/tosca-runtime | cli/src/main/resources/csars/bootstrap/daemon/scripts/start_docker_daemon.sh | Shell | mit | 255 |
#!/usr/bin/env bash
NAME=${1:-testing}
openssl req \
-newkey rsa:4096 \
-days 1001 \
-nodes \
-x509 \
-subj "/C=US/ST=California/L=Oakland/O=Express-o/OU=web/CN=localhost" \
-extensions SAN \
-config <( cat $( [[ "Darwin" = "$(uname -s)" ]] && echo /System/Library/OpenSSL/openssl.cnf || echo /etc/ssl/op... | positlabs/express-o | dev/certs/generate_local_ssl.sh | Shell | mit | 867 |
#!/bin/sh
git tag -l release/* | \
tail -n1 | \
cut -d"/" -f2
| volinthius/dodo | bin/dodo-version.sh | Shell | mit | 71 |
#!/usr/bin/env sh
pushd /Users/titlis/aws-mturk-clt-1.3.1/bin
./loadHITs.sh $1 $2 $3 $4 $5 $6 $7 $8 $9 -label /Users/titlis/webprojects/69_sinking-marbles-explanation//sinking_marbles_explanation -input /Users/titlis/webprojects/69_sinking-marbles-explanation//sinking_marbles_explanation.input -question /Users/titlis/w... | thegricean/sinking-marbles | experiments/10_sinking-marbles-explanation/sinking_marbles_explanation-postHIT.sh | Shell | mit | 524 |
#!/bin/sh
set -e
cd $HOME
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
deactivate
wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.8-linux_x86_64-portable.tar.bz2
tar -jxvf pypy-5.8-linux_x86_64-portable.tar.bz2
cd pypy-5.8-linux_x86_64-portable
echo 'Setting up aliases...'
... | saghul/pyuv | .travis/before_install.sh | Shell | mit | 1,119 |
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;
function doIt() {
rsync --exclude-from exclude.txt -avh --no-perms . ~;
source ~/.bash_profile;
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sur... | peakxu/dotfiles | bootstrap.sh | Shell | mit | 409 |
#!/bin/bash
NOW=`date +%Y%m%d%H%M%S`
NT="-D mapreduce.map.output.collector.delegator.class=org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator"
INPUT="/wc-input-4000000000-4"
OUTPUT="/wc_output_$NOW"
RUN="hadoop"
EXAMPLE="/usr/lib/hadoop/hadoop-examples-1.0.3-Intel.jar"
VTUNE="/tmp/vtune"
echo "... | sproblvem/profiling-suit | run/test.sh | Shell | mit | 627 |
#!/bin/bash
set -e
cd bzr-fastimport
sudo python setup.py install
echo "bzr-fastimport installed."
echo "ready to run!"
| levibostian/launchpad-2-github | setup.sh | Shell | mit | 124 |
BUILD=../build
RSTEST=../upstream/RSTest
RSTEST_ARGS="-isystem $RSTEST/ $RSTEST/RSTest.c"
RSIMG=../
RSIMG_ARGS="-isystem $RSIMG/ $RSIMG/RSImg.c"
mkdir -p $BUILD
echo 'Building...' && \
$CC \
-std=c99 \
-Wall \
-O3 \
$RSTEST_ARGS \
$RSIMG_ARGS \
-o $BUILD/runtests... | ReclaimSoftware/RSImg | test/test.sh | Shell | mit | 406 |
#!/usr/bin/env bash
# Le damos a gdb el sabor de intel para desensamblar código
echo "set disassembly-flavor intel" > ~/.gdbinit
# Creamos el directorio ~/bin. Se añade al PATH por el fichero ~/.profile
mkdir -p ~/bin
# Copiamos el fichero gcc2 a ~/bin y le damos permiso de ejecución
cp /vagrant/provisioning/gcc2 ~/... | rgallart101/VagrantLinuxExploit | provisioning/vagrant_script.sh | Shell | mit | 348 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2656-2
#
# Security announcement date: 2015-07-15 00:00:00 UTC
# Script generation date: 2017-02-06 21:04:26 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - firefox:39.0+build5-0ubuntu0.12.04.2
#... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2015/USN-2656-2.sh | Shell | mit | 1,057 |
#!/bin/bash
cd ../src/calculate_features_advanced/
python social_I.py
cd ../..
| bt3gl/NetAna-Complex-Network-Analysis | scripts_features_adv/run_social_I.sh | Shell | mit | 80 |
#!/bin/bash
#
# This creates an EnvironmentFile
# that is used by the slack-notify-start-stop.service`
#
######################################################
# Note!!
# returns \n = \\\\\\\\n
ENVIRONMENT_FILE="/etc/slack-webhooks/slack_environment_file"
ROOM=dev_ops
USER=ubuntu
EMOJI=ubuntu
LEVEL=info
TITLE="Serve... | patmandenver/slack-webhook | examples/systemd/start-stop-ExecStartPre/slack_stop_create_EnvironmentFile.sh | Shell | mit | 2,095 |
#!/bin/bash
set -x #echo on
. ./scripts/build/createGroup.sh
. ./scripts/build/createUser.sh "servercontainer"
mkdir -p /home/servercontainer/servercontainer
cp -Rf /tmp/servercontainer/ServerContainer-master/* /home/servercontainer/servercontainer
find /home/servercontainer -type d -exec chmod 755 {} \;
find /h... | Danack/ServerContainer | scripts/bootstrapAmazon.sh | Shell | mit | 508 |
#!/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... | apolo2/LTCocoaPodTest | Example/Pods/Target Support Files/Pods-LTCocoaPodTest_Example/Pods-LTCocoaPodTest_Example-frameworks.sh | Shell | mit | 3,731 |
#!/bin/bash
set -eEux
set -o pipefail
# Import Tenable's GPG key.
rpm --import tenable-2048.gpg
# Install the package.
rpm -Uvh Nessus-7.0.3-es7.x86_64.rpm
| cleanerbot/docker-nessus | nessus-app/install-nessus.sh | Shell | mit | 159 |
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the... | Faryn/CycleMaps | Pods/Target Support Files/Pods-CycleMaps/Pods-CycleMaps-frameworks.sh | Shell | mit | 8,747 |
#!/bin/bash
w | awk '{ print $1 " " $2 }' | grep -v ":" | grep -v "USER TTY" | grep -v '^$'
| engagespark/pushabutton | assets/write-message-to-logged-in-user.sh.parameters.user-tty.choices.sh | Shell | mit | 93 |
#!/bin/bash
set -e; set -o pipefail
# Original author: Xyne
# http://xyne.archlinux.ca/notes/network/dhcp_with_dns.html
function print_usage() {
echo "usage: $0 <WAN interface> <subnet interface> <up|down>"
}
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root." >&2
exit 1
fi
if [[ -z $3 ]]; then
p... | lorenzo-stoakes/kernel-scripts | kerndev-nat-launch.sh | Shell | mit | 685 |
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
colorflag="--color"
export LS_COLORS='no=00:fi=00:di=01;31:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*... | cameronmalek/dotfiles | zsh/config.zsh | Shell | mit | 1,849 |
#! /bin/sh
if [ "$GITHUB_TOKEN" ] && [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH"x = "master"x ] ; then
echo "---- deploy doc branch ----"
cd docs
rm -rf .git
git init
git checkout -b gh-pages
git add .
git -c user.name='travis' -c user.email=$NPM_EMAIL commit -m "update: docs-branch"
git p... | ElemeFE/vue-amap | scripts/git-page.sh | Shell | mit | 415 |
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
sudo -v
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Disable press-and-hold for keys in favor of key repeat.
defaults writ... | jbielick/dotfiles | macos/set-defaults.sh | Shell | mit | 3,086 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.