code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/bash
#
# Copyright (c) 2016 Intel Corporation
#
# 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... | ashaarunkumar/spark-tk | python/sparktk/tests/runtests.sh | Shell | apache-2.0 | 2,946 |
#!/bin/bash
# Copyright 2017 The Bootkube-CI 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 ... | charter-ctec/charter-nfv-demo | scripts/openstack/boot_vm_newton.sh | Shell | apache-2.0 | 2,529 |
#!/bin/bash
#/*
# Copyright 2009-2013 by The Regents of the University of California
# 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 from
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sjaco002/incubator-asterixdb | asterix-app/scripts/asterix/startnc.sh | Shell | apache-2.0 | 1,383 |
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: env.bash $
#
# IBM Data Engine for NoSQL - Power Systems Edition User Library Project
#
# Contributors Listed Below - COPYRIGHT 2014,2015
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the... | odaira/capiflash | env.bash | Shell | apache-2.0 | 2,936 |
for x in `seq 0 5`; do
fname=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero | dd of=../${fname} bs=1M count=4 iflag=fullblock
done | akiradeveloper/dmtest | src/test/resources/REPRO_150_script.sh | Shell | apache-2.0 | 272 |
#!/bin/sh
set -e
# We currently get one warning when running Python in dev mode:
# astroid/node_classes.py:90: DeprecationWarning: The 'astroid.node_classes' module is deprecated and will be replaced
# by 'astroid.nodes' in astroid 3.0.0
# Turn off dev mode until astroid gets fixed or there's a way to suppress warnin... | ICTU/quality-time | components/shared_python/ci/quality.sh | Shell | apache-2.0 | 902 |
## Install dependencies on Ubuntu or OS X (using Homebrew)
norm_option_value()
{
if [ "$1" = on ] || [ "$1" = ON ] || [ "$1" = yes ] || [ "$1" = YES ] || [ "$1" = y ] || [ "$1" = Y ] || [ "$1" = 1 ] || [ "$1" = true ] || [ "$1" = TRUE ]; then
echo ON
elif [ "$1" = off ] || [ "$1" = OFF ] || [ "$1" = no ] || [ ... | BioMedIA/MIRTK | Scripts/install_depends.sh | Shell | apache-2.0 | 11,825 |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $(dirname $DIR)
php composer.phar update eivindarvesen/b3 --prefer-dist
cd -
| eivind88/blablablog | scripts/updateB3.sh | Shell | bsd-3-clause | 160 |
#!/bin/bash
rsync -arz --delete metrics.torproject.org::metrics-recent/relay-descriptors/consensuses in
rsync -arz --delete metrics.torproject.org::metrics-recent/relay-descriptors/server-descriptors in
| gsathya/metrics-tasks | task-6498/download.sh | Shell | bsd-3-clause | 204 |
#!/bin/sh
export P=`pwd`
cd $P/..
./configure
cd $P
| virtdb/virtdb-gtest | gyp/configure.sh | Shell | bsd-3-clause | 52 |
# if using GNU screen, let the zsh tell screen what the title and hardstatus
# of the tab window should be.
if [[ $TERM == "screen" ]]; then
if [[ $_GET_PATH == '' ]]; then
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
fi
if [[ $_GET_HOST == '' ]]; then
_GET_HOST='echo $HOST | ... | drahnr/oh-my-zsh | plugins/screen/screen.plugin.zsh | Shell | mit | 2,083 |
#!/bin/bash
tar -xzf env.tar.gz
source bin/activate
python resnet.py -b 64 -r $3 -d $2 -e 30 -s 10 -o $1
| dthain/cctools | apps/wq_hypersweep/script.sh | Shell | gpl-2.0 | 106 |
#!/bin/bash
# Set path to phantomjs
export PATH=$PATH:./bin/`uname`/
while test $# -gt 0; do
case "$1" in
-a)
shift
echo "Running all tests..."
casperjs/bin/casperjs test 001_failed_login.js
casperjs/bin/casperjs test 002_successful_login.js
casperjs/bin/casperjs test 003_create_user.js
casperjs... | joansmith/structr | structr-ui/src/test/javascript/run_tests.sh | Shell | gpl-3.0 | 804 |
#!/bin/bash
mkdir -p syn_yos
~/yosys/yosys -s sum.yos
| esonghori/TinyGarbled | circuit_synthesis/sum/compile_yos.sh | Shell | gpl-3.0 | 54 |
#!/bin/bash
# Authors:
# Petr Vobornik <pvoborni@redhat.com>
#
# Copyright (C) 2012 Red Hat
# see file 'COPYING' for use and warranty information
#
# 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 F... | encukou/freeipa | install/ui/util/prepare-dojo.sh | Shell | gpl-3.0 | 4,738 |
#!/bin/bash
SHELL=/bin/zsh exec /bin/zsh --login
| mirceal/beekeeper | test/helpers/switch_to_zsh.sh | Shell | apache-2.0 | 49 |
#!/bin/bash
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
if [ -z "$MY_PATH" ] ; then
# error; for some reason, the path is not accessible
# to the script (e.g. permissions re-evaled after suid)
exit 1 # fail
fi
if [ -z "$1" ] ; then
e... | karinepires/vaultier | bin/vaultier_start.sh | Shell | bsd-3-clause | 1,299 |
#!/bin/sh
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
for cmd in gen-signedexchange gen-certurl; do
if ! command -v $cmd > /dev/null 2>&1; then
echo "$cmd is not installed. Please ... | nwjs/chromium.src | third_party/blink/web_tests/http/tests/loading/sxg/resources/generate-test-sxgs.sh | Shell | bsd-3-clause | 5,646 |
#!/bin/bash
FN="genomewidesnp6Crlmm_1.0.7.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/genomewidesnp6Crlmm_1.0.7.tar.gz"
"https://bioarchive.galaxyproject.org/genomewidesnp6Crlmm_1.0.7.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-genomewidesnp6crlmm/biocondu... | Luobiny/bioconda-recipes | recipes/bioconductor-genomewidesnp6crlmm/post-link.sh | Shell | mit | 1,475 |
#!/bin/bash -uxe
VAGRANT_USER=${VAGRANT_USER:-vagrant}
VAGRANT_USER_HOME=${VAGRANT_USER_HOME:-/home/${VAGRANT_USER}}
SUDOERS_FILE="/etc/sudoers.d/${VAGRANT_USER}"
# KEY_URL=https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
# wget --no-check-certificate -O authorized_keys "${KEY_URL}"
VAGRANT... | danchr/vagrant-provision-zimbra | centos6/vagrantize.sh | Shell | mit | 3,456 |
#! /bin/bash
maim scr_$(date +%s).png
pacat -p .icewm/winoptions
| KERNELULTRAS/LegacyIce | antiX-20/configs/.icewm/contrib/screenshot.sh | Shell | gpl-2.0 | 65 |
#!/bin/sh
version=1
EmptyError(){
zenity --error \
--text="Password fields can't be blank!"
exit
}
bob=$(zenity --forms --title="Change Password" \
--text="Enter your current and new password" \
--separator="€%%" \
--add-password="Current Password" \
--add-password="New Password" \
... | PiNet/PiNet | Scripts/changePassword.sh | Shell | gpl-2.0 | 1,454 |
#!/bin/sh
echo -e "BASHISM" \
"something else \n"
#exec ${loclibdir}/tkcon.tcl \
# -eval "source ${loclibdir}/console.tcl" \
# -slave "package require Tk; set argc $#; set argv [list $*]; \
# source ${loclibdir}/xcircuit.tcl"
| Debian/devscripts | test/bashisms/fps.sh | Shell | gpl-2.0 | 253 |
#!/bin/bash
# Copyright (c) 2016, Hitachi, Erlon Cruz <erlon.cruz@fit-tecnologia.org.br>
# 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://ww... | Datera/cinder | tools/hooks/run_multi_backend_matrix.sh | Shell | apache-2.0 | 3,121 |
#!/usr/bin/env bash
default='solarized'
dir=`dirname $0`
if [ -d $dir/colors/$1 ]; then
theme=$1
else
echo "Theme $1 not found, using $default"
theme=$default
fi
if [ "$#" -ne 1 ]; then
theme=$default
fi
PROFILE=${1:-Default}
gconftool-2 -s -t string /apps/guake/style/background/color `cat $dir/colors/$them... | SnailB/guake-colors-solarized | set_dark.sh | Shell | mit | 504 |
#!/bin/bash
if [ 0$UID -gt 0 ]; then
echo Run as root.
exit 1
fi
print_help() {
cat <<HELP
usage: configure-proxy.sh [options]
options:
--answer-file=filename
Indicates the location of an answer file to be use for answering
questions asked during the installation process. See ma... | xkollar/spacewalk | proxy/installer/configure-proxy.sh | Shell | gpl-2.0 | 21,506 |
#!/bin/sh
test_description='test dumb fetching over http via static file'
. ./test-lib.sh
if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi
. "$TEST_DIRECTORY"/lib-httpd.sh
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5550'}
start_httpd
test_expect_success 'setup repository' '
... | vidarh/Git | t/t5550-http-fetch.sh | Shell | gpl-2.0 | 2,799 |
#! /bin/sh
# Copyright (C) 2011-2015 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | darrengarvey/automake | t/autodist.sh | Shell | gpl-2.0 | 2,701 |
if [ -f rixc ]
then
echo Clearing: rixc -- preventing unexpected test results
rm rixc
fi
if [ -f lex.yy.c ]
then
echo Clearing: lex.yy.c -- flex output
rm lex.yy.c
fi
if [ -f rix.tab.c ]
then
echo Clearing: rix.tab.c -- bison output
rm rix.tab.c
fi
if [ -f rix.tab.h ]
then
ech... | berong91/ride | ride-gui/ride_parser/clr.sh | Shell | gpl-3.0 | 451 |
#!/bin/bash
#PBS -l nodes=1:ppn=20
#PBS -l walltime=48:00:00
#PBS -N session1_default
#PBS -A course
#PBS -q GpuQ
export THEANO_FLAGS=device=cpu,floatX=float32
cd $PBS_O_WORKDIR
python ./rescore_with_lm.py -n -b 0.5 \
${HOME}/models/model_session0.npz \
${HOME}/models/model_session0.npz.pkl \
${HOME}/data/wiki.tok... | BladeSun/NliWithKnowledge | session3/score_nbest.sh | Shell | bsd-3-clause | 452 |
#!/bin/bash
## (GEN002780: CAT II) The SA will configure the auditing system to audit
## use of privileged commands (unsuccessful and successful)
echo '==================================================='
echo ' Patching GEN002780: Audit use of privileged command'
echo '================================================... | jpschaaf/hardening-script-el6 | scripts/gen002780.sh | Shell | gpl-2.0 | 380 |
#!/bin/sh
# This file is part of BOINC.
# http://boinc.berkeley.edu
# Copyright (C) 2008 University of California
#
# BOINC is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation,
# either version 3 of the Lic... | Simek/boinc | samples/example_app/MakeMacExample.sh | Shell | gpl-3.0 | 4,081 |
#!/bin/bash
#
# The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
# (the "License"). You may not use this work except in compliance with the License, which is
# available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR... | Alluxio/alluxio | integration/emr/build.sh | Shell | apache-2.0 | 1,292 |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.4
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# w... | amyvmiwei/chromium | third_party/sqlite/ltmain.sh | Shell | bsd-3-clause | 227,001 |
#!/bin/sh
./psk-v2 2>&1
| y-trudeau/openswan-patch-meraki | testing/crypto/psk-v2-10/runit.sh | Shell | gpl-2.0 | 26 |
#!/bin/sh
cachedir=/tmp/.webcache
uci_load network
subcategories() {
[ -s "$cachedir/graphs" ] || { # create a cache if it does not exists already
[ -d "$cachedir" ] || mkdir "$cachedir" 2>/dev/null 1>&2
(echo "Graphs:10:CPU:graphs-cpu.sh"
echo "Graphs:20:Bandwidth:graphs-bandwidth.sh"
echo "Grap... | innodrivers/p4a-openwrt | feeds/xwrt/webif/files/www/cgi-bin/webif/graphs-subcategories.sh | Shell | gpl-2.0 | 639 |
rm -f $MYSQL_TEST_DIR/var/slave-data/master.info
rm -f $MYSQL_TEST_DIR/var/slave-data/*relay*
| rhuitl/uClinux | user/mysql/mysql-test/t/rpl_rotate_logs-slave.sh | Shell | gpl-2.0 | 94 |
#!/bin/bash
load ../../helpers
export SWARM_MESOS_TASK_TIMEOUT=30s
export SWARM_MESOS_USER=daemon
MESOS_IMAGE=dockerswarm/mesos:0.24.1
MESOS_MASTER_PORT=$(( ( RANDOM % 1000 ) + 10000 ))
# Start mesos master and slave.
function start_mesos() {
local current=${#DOCKER_CONTAINERS[@]}
MESOS_MASTER=$(
docker_host ru... | pdevine/swarm | test/integration/mesos/mesos_helpers.bash | Shell | apache-2.0 | 1,414 |
#! /bin/sh
mkdir -p $out/nix-support
echo "Hello" > $out/text.txt
echo "doc none $out/text.txt" > $out/nix-support/hydra-build-products
| rohitasva/hydra | tests/jobs/build-product-simple.sh | Shell | gpl-3.0 | 137 |
#!/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... | aaronlevy/kubernetes | cluster/gce/util.sh | Shell | apache-2.0 | 40,613 |
#
# Copyright (C) 2011 OpenWrt.org
#
PART_NAME=firmware
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
return 0
}
platform_do_upgrade() {
local board=$(board_name)
case "$board" in
*)
default_do_upgrade "$1"
;;
esac
}
| chaojin/openwrt | target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh | Shell | gpl-2.0 | 234 |
#!/bin/bash
# Copyright 2016 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... | rawlingsj/gofabric8 | vendor/k8s.io/minikube/hack/jenkins/osx_integration_tests_xhyve.sh | Shell | apache-2.0 | 1,164 |
#!/bin/sh
IFS="
"
for line in `cat userlist`; do
test -z "$line" && continue
user=`echo $line | cut -f 1 -d' '`
echo "adding user $user"
useradd -m -s /bin/bash $user
cp -r /srv/ipython/examples /home/$user/examples
chown -R $user /home/$user/examples
done
| jupyterhub/oauthenticator | examples/full/addusers.sh | Shell | bsd-3-clause | 270 |
#!/bin/bash
fw_depends mysql postgresql mongodb nginx mono
sed -i 's|localhost|'"$DBHOST"'|g' src/Web.config
# extra cleaning
rm -rf src/bin src/obj
xbuild src/ServiceStackBenchmark.csproj /t:Clean
xbuild src/ServiceStackBenchmark.csproj /p:Configuration=Release
# xsp
MONO_OPTIONS=--gc=sgen xsp4 --port 8080 -nonstop ... | steveklabnik/FrameworkBenchmarks | frameworks/CSharp/servicestack/setup_xsp.sh | Shell | bsd-3-clause | 322 |
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Check if current architecture are missing any function calls compared
# to i386.
# i386 define a number of legacy system calls that are i386 specific
# and listed below so they are ignored.
#
# Usage:
# checksyscalls.sh gcc gcc-options
#
ignore_list() {
cat << EOF
#incl... | tprrt/linux-stable | scripts/checksyscalls.sh | Shell | gpl-2.0 | 7,600 |
#!/bin/sh
################################################################################
## ##
## Copyright (c) International Business Machines Corp., 2001 ##
## ... | richiejp/ltp | testcases/commands/logrotate/logrotate_tests.sh | Shell | gpl-2.0 | 11,743 |
#!/bin/bash
make
mkdir -p $PREFIX/bin
cp pbgzip $PREFIX/bin
| JenCabral/bioconda-recipes | recipes/pbgzip/build.sh | Shell | mit | 60 |
#!/bin/sh
test_description='previous branch syntax @{-n}'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
. ./test-lib.sh
test_expect_success 'branch -d @{-1}' '
test_commit A &&
git checkout -b junk &&
git checkout - &&
test "$(git symbolic-ref HEAD)" = refs/heads/main &&
... | Osse/git | t/t0100-previous.sh | Shell | gpl-2.0 | 1,724 |
#!/bin/sh
# Tests for lp_load() via testparm.
#
# The main purpose (for now) is to test all the special handlers
# and the macro expansions.
TEMP_CONFFILE=${LIBDIR}/smb.conf.tmp
TESTPARM="$VALGRIND ${TESTPARM:-$BINDIR/testparm} --suppress-prompt --skip-logic-checks"
test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
inc... | opinkerfi/winexe | source3/script/tests/test_testparm_s3.sh | Shell | gpl-3.0 | 1,822 |
#!/bin/bash
# Copyright JS Foundation and other contributors, http://js.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
#
# Unle... | grgustaf/jerryscript | tools/check-pylint.sh | Shell | apache-2.0 | 725 |
go test -db=sqlite3 -conn_str="./test.db?cache=shared&mode=rwc" | go-xorm/cmd | xorm/vendor/github.com/go-xorm/xorm/test_sqlite.sh | Shell | bsd-3-clause | 63 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ mgu74bv2cdf
| ostrokach/bioconda-recipes | recipes/bioconductor-mgu74bv2cdf/pre-unlink.sh | Shell | mit | 58 |
#!/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... | roofmonkey/kubernetes | hack/after-build/verify-generated-docs.sh | Shell | apache-2.0 | 2,489 |
#!/bin/bash
export CPATH=${PREFIX}/include
export LD_LIBRARY_PATH=${PREFIX}/lib
export LDFLAGS="-L${PREFIX}/lib"
./bootstrap
./configure --prefix=${PREFIX}
make
make install
| guowei-he/bioconda-recipes | recipes/pullseq/build.sh | Shell | mit | 176 |
#!/bin/sh -e
if ! /usr/bin/test -e config.guess; then
/usr/bin/wget -q -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
/bin/chmod a+x config.guess
fi
if ! /usr/bin/test -e config.sub; then
/usr/bin/wget -q -O config.sub 'http://git.savannah.gnu.org/gitw... | xyzz/vita-newlib | winsup/autogen.sh | Shell | gpl-2.0 | 577 |
#!/bin/sh
###############################################################################
#
# Author: Lasse Collin
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#
###############################################################################
# If xz wasn't built, t... | KubaKaszycki/kubux | xz-utils/tests/test_compress.sh | Shell | gpl-3.0 | 2,992 |
#!/bin/bash
NAME=hook
. ../build.inc
| dtzWill/ipcopter | docker/ipc-test/build.sh | Shell | isc | 39 |
#!/bin/sh
set -e
ROOTDIR=dist
BUNDLE=${ROOTDIR}/Mercury-Qt.app
CODESIGN=codesign
TEMPDIR=sign.temp
TEMPLIST=${TEMPDIR}/signatures.txt
OUT=signature.tar.gz
if [ ! -n "$1" ]; then
echo "usage: $0 <codesign args>"
echo "example: $0 -s MyIdentity"
exit 1
fi
rm -rf ${TEMPDIR} ${TEMPLIST}
mkdir -p ${TEMPDIR}
${CODE... | Jheguy2/Mercury | contrib/macdeploy/detached-sig-create.sh | Shell | mit | 1,261 |
#!/bin/bash
# Simple bash script to build basic lnd tools for all the platforms
# we support with the golang cross-compiler.
#
# Copyright (c) 2016 Company 0, LLC.
# Use of this source code is governed by the ISC
# license.
set -e
LND_VERSION_REGEX="lnd version (.+) commit"
PKG="github.com/lightningnetwork/lnd"
PACK... | LightningNetwork/lnd | scripts/release.sh | Shell | mit | 4,158 |
#!/bin/bash
# askYN.sh - Ask the user a yes/no question on stdout/stdin.
#
# Usage: askYN.sh [ "Question?" ]
#
# Exits with code 0 for yes, 1 for no.
#
# E.B. Smith - October 2013
set -eu
set -o pipefail
question="${1:-""}"
read -n 1 -r -p "${question} [y/N] "
echo ""
if [[ "${REPLY}" =~ ^[Yy]$ ]]; the... | BranchMetrics/ios-branch-deep-linking | scripts/askYN.sh | Shell | mit | 352 |
#!/bin/bash
# This is the initial script run for new nodes on the network to get them set up.
## Blender and utils install
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y blender htop tmux ufw
## UFW
sudo ufw allow 22 # SSH
sudo ufw allow 80 # HTTP
sudo ufw allow 8140 # Puppet
sudo ufw allow 443 ... | lnstem-renderfarm/puppet-blenderfarm | puppet/modules/blenderfarm/files/slave-setup.sh | Shell | mit | 1,038 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2016:2006
#
# Security announcement date: 2016-10-05 14:03:13 UTC
# Script generation date: 2017-01-13 21:13:57 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kernel-abi-whitelists.noarch:2.6.32-642.... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2016/CESA-2016:2006.sh | Shell | mit | 2,059 |
stemmer=$1
gramSize=$2
transcript_list=$3
for transcript in $transcript_list; do
python audio_features/tfidf.py $stemmer $gramSize $transcript
done
| amudalab/concept-graphs | keyphrase/tfidf.sh | Shell | mit | 151 |
#/bin/bash
### Volatility semi-automated memory image processing, for Windows images
### bsk for dfirnotes.org, Copyleft MIT License : https://github.com/DFIRnotes/rules/blob/master/LICENSE
### Requirements: SIFT 3 or volatility 2.5.x ; pictures needs PIL and dot available
### Run volatility framework anlaysis plugins ... | DFIRnotes/rules | vol7.sh | Shell | mit | 4,576 |
#!/usr/bin/env bash
#$ -cwd
#$ -l h_vmem=2G
#$ -sync yes
######################################################################
## job script "generic_submit_to_cluster.sh"
## so this is a generic shell script that can call a certain perl script
## with the given parameters.
## This is useful if you need to commit sev... | dmaticzka/GraphProt | bin/generic_submit_to_cluster.sh | Shell | mit | 969 |
nice python ./../topsy-crawler.py 1000 5 True negative/#prohibit '#prohibit' > logs/console_log_#prohibit.txt
nice python ./../topsy-crawler.py 1000 5 True negative/#forbid '#forbid' > logs/console_log_#forbid.txt
nice python ./../topsy-crawler.py 1000 5 True negative/#blackball '#blackball' > logs/console_log_#blackba... | nakul225/SMM-II | TwitterCrawl/Wordnet/negative.sh | Shell | mit | 3,019 |
#!/bin/bash
# working directory
cd /
# git clone
rm -rf /data/app \
&& mkdir -p /data/app \
&& git clone $GIT_REPO --branch ${GIT_BRANCH:-"master"} /data/app \
&& chown -R www-data:www-data /data/app
# document root
sed -e "s|^DocumentRoot .*|DocumentRoot \"/data/app$DOC_ROOT\"|g" \
-... | dortort/continuous-deployment | php/docker-entrypoint.sh | Shell | mit | 387 |
git clone -b 0.4.0-pami https://github.com/pami-inssjp/notifier.git notifier/app
| pami-inssjp/dos-debatics | docker/bootstrap.sh | Shell | mit | 81 |
set -e
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
if [ -d "$ZSH" ]; then
exit
fi
hash git >/dev/null 2>&1 && env git clone --depth=1 --quiet https://github.com/IsmailM/oh-my-zsh.git $ZSH || {
exit
}
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
fi
cp $ZSH/templates/zshrc... | IsmailM/oh-my-zsh | tools/install.sh | Shell | mit | 501 |
#!/bin/sh
# by: "John Hazelwood" <jhazelwo@users.noreply.github.com>
#
# build_users.sh - Do a docker build 1 or more user Dockerfiles.
# Extracts the image tag and username from the Dockerfile itself and uses those to name the user image.
#
# Without args: build all Dockerfiles found in jumper/users/ recursively
# arg... | jhazelwo/docker-jumper | jumper/build_users.sh | Shell | mit | 1,541 |
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh http://repo.webtatic.com/yum/el7/webtatic-release.rpm
rpm -ivh http://dl.atrpms.net/all/atrpms-repo-7-7.el7.x86_64.rpm
rpm -ivh htt... | JATool/JATool | manifests/script.sh | Shell | mit | 515 |
#!/usr/bin/env bash
cd ./api
forever start ./bin/www
forever start ./algorithm/hot.js
forever start ./algorithm/index.js
cd ../frontend/
forever start build/build.js | fengyuanzemin/graduation | run.sh | Shell | mit | 166 |
#!/bin/sh
set -eo pipefail -o nounset
## Get the hg19.genome file to sort
genome=https://raw.githubusercontent.com/gogetdata/ggd-recipes/master/genomes/Homo_sapiens/hg19/hg19.genome
wget --quiet $genome
## Get the hg19 cpg island file and process it
## unzip it,
## remove any lines that do not have a scaffolding i... | gogetdata/ggd-recipes | recipes/genomics/Homo_sapiens/hg19/hg19-cpg-islands-ucsc-v1/recipe.sh | Shell | mit | 1,186 |
#!/bin/sh
. @LEDCTRL@/ledctrl
silence_wifi
if test `cat /sys/class/net/eth0/carrier` -eq 0
then
logger -s "eth0 got no-carrier ..."
led_error
fi
| tobw/meta-jens | recipes-core/init-ifupdown/init-ifupdown/wifi/post_down.sh | Shell | mit | 149 |
#!/usr/bin/env bash
set -eo pipefail
# shellcheck disable=SC2120
setup_circle() {
echo "=====> setup_circle on CIRCLE_NODE_INDEX: $CIRCLE_NODE_INDEX"
sudo -E CI=true make -e sshcommand
# need to add the dokku user to the docker group
sudo usermod -G docker dokku
[[ "$1" == "buildstack" ]] && BUILD_STACK=tru... | elia/dokku | tests/ci/setup.sh | Shell | mit | 720 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2876-1
#
# Security announcement date: 2016-01-20 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:08 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - ecryptfs-utils:96-0ubuntu3.5
#
# Last ... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2016/USN-2876-1.sh | Shell | mit | 629 |
go_path=$(which go)
if [[ -x ${go_path} ]]; then
export GOPATH=$PROJECTS/go
export PATH=$PATH:$(go env GOPATH)/bin
fi
| Veraticus/dotfiles | go/path.zsh | Shell | mit | 122 |
#!/bin/bash
if [[ ! "$(mount)" =~ \ /var/lib/pgsql/data\ type ]]
then
echo "There is no mounted volume"
else
if [ -z "$(ls -A /var/lib/pgsql/data)" ]; then
/usr/pgsql-9.1/bin/initdb -D /var/lib/pgsql/data
echo "host all all 172.17.42.1/32 trust" >> /var/lib/pgsql/data/pg_hba.conf
echo "listen... | cdelaitre/ci | dockerimages/postgres91/postgres-start.sh | Shell | mit | 440 |
# Parses and retrieves a remote branch given a branch name.
#
# If the branch name contains '*' it will retrieve remote branches
# and try to match against tags and heads, returning the latest matching.
#
# Usage
# -antigen-parse-branch https://github.com/user/repo.git x.y.z
#
# Returns
# Branch name
-antigen-p... | typosquats/dotfiles | .antigen/src/helpers/parse-branch.zsh | Shell | mit | 755 |
#!/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... | MillmanY/MMPlayerView | Example/Pods/Target Support Files/Pods-MMPlayerView_Example/Pods-MMPlayerView_Example-frameworks.sh | Shell | mit | 3,723 |
#!/bin/bash
# release gem to rubygems
# exit on any error
set -e
#############################################################################
## defaults
readonly progname=$(basename $0)
readonly script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly main_dir=$( cd "${script_dir}" && cd .. && pwd )
... | m-31/vcenter_lib_mongodb | scripts/deploy_gem.sh | Shell | mit | 2,460 |
#!/bin/sh
# this tests whether all required args are listed as
# missing when no arguments are specified
# failure
../build/examples/test2 > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test62.out; then
exit 0
else
exit 1
fi
| mjkoo/tclap | tests/test62.sh | Shell | mit | 227 |
#!/usr/bin/env bash
# NOTE: Parsing curl to tac to circumnvent "failed writing body"
# https://stackoverflow.com/questions/16703647/why-curl-return-and-error-23-failed-writing-body
set -e
set -u
set -o pipefail
SCRIPT_PATH="$( cd "$(dirname "$0")" && pwd -P )"
DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
#... | cytopia/devilbox | .tests/tests/framework-wordpress.sh | Shell | mit | 7,197 |
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="mh"
# Uncomment the following line to use case-sensitive completion.
... | mattdodge/dotfiles | zsh/ohmy.zsh | Shell | mit | 3,119 |
#!/bin/bash
set -eux -o pipefail
# Gather a list of all top-level non-module subdirectories.
non_module_dirs=()
while IFS= read -r -d $'\0'; do
non_module_dirs+=("$REPLY")
done < <(find . -maxdepth 1 -type d -and -not -name "modules" -print0)
# Initialize all top-level non-module subdirectories.
for dir in "${no... | carterjones/infrastructure | terraform/lint.sh | Shell | mit | 767 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3052-1
#
# Security announcement date: 2016-08-10 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:34 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: i686
#
# Vulnerable packages fix on version:
# - linux-image-3.13.0-93-lowlatency:3.13.... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/i686/2016/USN-3052-1.sh | Shell | mit | 886 |
#!/bin/bash
for var in $(find . ! -path "./ConceptsOrigin*" -iname "*.cpp" -exec grep -L -e "NO CLANG FORMAT" {} \; );
do clang-tidy -fix $var -- -std=c++14 -stdlib=libc++ -I.;
done
for var in $(find . ! -path "./ConceptsOrigin*" -iname "*.hpp" -exec grep -L -e "NO CLANG FORMAT" {} \; );
do clang-tidy -fix $var --... | jbcoe/CppSandbox | tidy.sh | Shell | mit | 527 |
#!/bin/bash
timeout -k 5 $3 dOp $1
| keram88/gelpia_tests | src/dOp_wrapper.sh | Shell | mit | 36 |
#!/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... | abdullahselek/Lighty | Pods/Target Support Files/Pods-iOS Sample/Pods-iOS Sample-frameworks.sh | Shell | mit | 8,751 |
#! /bin/bash
set -ue
# The script is used to solve Jenkins auth problem on MAC OS
# Since we use automation to dual with deploy and package with jenkins.
# We have a lot of problem caused by user auth such as docker, mvn build ...
# Use this script we will make jenkins run under login user.
runInitCheck(){
sys_inf... | blueroc2003/opsscripts | jenkins/make_jenkins_use_current_user.sh | Shell | mit | 1,986 |
#!/bin/bash
export APP_INCLUDE=./require.php
export QUEUE=*
export COUNT=1
export VVERBOSE=1 # for debugging
export REDIS_BACKEND=localhost:6379
. /etc/rc.d/init.d/functions
start() {
/usr/bin/php ./resque.php
}
stop() {
ps -ef | grep resque | grep -v grep | grep -v resque-web | awk '{print $2}' | xargs kil... | firmy/resque | demo/php-resque.sh | Shell | mit | 1,135 |
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution ... | zerojay/RetroPie-Extra | scriptmodules/ports/firefox-esr.sh | Shell | mit | 1,285 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2688-1
#
# Security announcement date: 2013-05-23 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:34 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libxres:2:1.0.4-1+squeeze
#
# Last... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2013/DSA-2688-1.sh | Shell | mit | 624 |
#!/bin/bash
ULTRAWIDE=0
WIDE=0
NORMAL=0
TELE=0
ULTRATELE=0
COUNT=0
SUBCOUNT=0
COUNTNOEXIF=0
HEREIAM=`pwd`
# Function showhelp: shows a little help message
function showhelp {
echo -e "\n"
echo "Usage: stats_focal.sh [-d DIR] [-s STRING] [-f FORMAT]"
echo " -d DIR: root directory where the photos directories liv... | aremesal/photo-focal-stats-script | stats_focal.sh | Shell | mit | 6,067 |
#!/bin/sh
openssl aes-256-cbc -K $encrypted_4e8862369e3e_key -iv $encrypted_4e8862369e3e_iv -in travis-deploy-key.enc -out travis-deploy-key -d;
chmod 600 travis-deploy-key;
cp travis-deploy-key ~/.ssh/id_rsa; | Katrix-/AckCord | scripts/decrypt-keys.sh | Shell | mit | 210 |
#!/bin/bash
if [ "$TRAVIS_REPO_SLUG" == "JakobOvrum/hexchatd" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
git clone --recursive --branch=gh-pages https://github.com/${TRAVIS_REPO_SLUG}.git gh-pages
cd gh-pages
git config credential.helper "store --file=.git/credentials"
ech... | JakobOvrum/hexchatd | push-ddoc.sh | Shell | mit | 747 |
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd -P ..
P=src/main/resources/examples
for F in src/main/resources/examples/*.trig; do
F=${F%.*}; F=${F##*/}
echo "ASCII plots for $F.trig" > $P/$F.txt
echo >> $P/$F.txt
for Q in src/main/resources/queries/*.sparql; do
Q=${Q%.*}; Q=${Q##*/}
echo "$Q ... | tkuhn/nanolytics | scripts/run-examples.sh | Shell | mit | 449 |
#!/bin/bash
# Download and extract phpMemcachedAdmin to provide a dashboard view and
# admin interface to the goings on of memcached when running
if [[ ! -d "/srv/www/default/memcached-admin" ]]; then
echo -e "\nDownloading phpMemcachedAdmin, see https://github.com/wp-cloud/phpmemcacheadmin"
cd /srv/www/default
... | ezekg/theme-juice-vvv | scripts/provision/memcached.sh | Shell | mit | 584 |
# Backups, swaps and undos are stored here.
mkdir -p $DOTFILES/caches/vim
# Download Vim plugins.
if [[ "$(type -P vim)" ]]; then
vim +PlugUpdate +qall
fi
| unicell/dotfiles | init/50_vim.sh | Shell | mit | 158 |
#!/bin/sh
# Helper script to create feature branch (always branches from dev)
git checkout -b $1 dev | phtrivier/ube | scripts/git-start-feature.sh | Shell | mit | 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.