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
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
packer build -var-file="${DIR}/packer-vars.json" "${DIR}/packer.json"
| datapipe/generator-bakery | generators/cm-puppet/templates/build.sh | Shell | isc | 140 |
#!/bin/sh
#
# Verifies that go code passes go fmt, go vet, golint, and go test.
#
lintignore=golintignore
o=$(tempfile)
fail() {
echo Failed
cat $o
exit 1
}
echo Formatting
gofmt -l $(find . -name '*.go') 2>&1 > $o
test $(wc -l $o | awk '{ print $1 }') = "0" || fail
echo Vetting
go vet ./... 2>&1 > $o || fail
... | velour/ui | gok.sh | Shell | mit | 502 |
#!/bin/bash
cp index.html /var/www/
cp -r js /var/www
cp -r img /var/www/img
| IgorPelevanyuk/CatClicker-Knockout | deploy.sh | Shell | mit | 77 |
#!/bin/bash
# Set up your StartSSL certificates/keys for nginx-proxy
# This script expects your certificate and key files in this folder following
# the nginx-proxy naming convention.
# For example: foo.example.com.crt foo.example.com.key
# are the .crt and .key file for the domain foo.example.com
# Make sure script ... | daveenguyen/propitious-melting-pot | certs/script.sh | Shell | mit | 1,712 |
# (c) Liviu Balan <liv_romania@yahoo.com>
# http://www.liviubalan.com/
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
LIV_TUT_META_URL='http://www.liviubalan.com/git-log-command'
| liviubalan/liviubalan.com-vagrant-ubuntu | provision-shell/tutorials/000/069/meta.sh | Shell | mit | 260 |
#!/usr/bin/bash
# Hard variables
# Directory containing Snakemake and cluster.json files
snakefile_dir='/nas/longleaf/home/sfrenk/pipelines/snakemake'
usage="\nCreate directory with Snakemake files required for pipeline \n\n setup_dir -p <pipeline> -d <directory> \n\n pipelines: bowtie_srna, hisat2_rna, srna_telo\n\... | sfrenk/rna-seq_pipelines | utils/setup_dir.sh | Shell | mit | 2,550 |
#!/usr/bin/env bash
GEM_BIN=$1/ruby/bin/gem
export GEM_HOME=/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1
install_gems() {
echo $KIDSRUBY_INSTALLING_GEMS
${GEM_BIN} install htmlentities-4.3.0.gem --no-ri --no-rdoc 2>&1
${GEM_BIN} install rubywarrior-i18n-0.0.3.gem --no-ri --no-rdoc 2>&1
${GEM_BIN} install serial... | hybridgroup/kidsrubyinstaller-osx | install_gems.sh | Shell | mit | 784 |
#!/bin/bash
DATESTR=$(date +"%Y%m%d%H%M%S")
LOCAL_BACKUP_DIR=/home/rails/db_backups/dsi
function fetch_ntriples() {
FILE_NAME="$LOCAL_BACKUP_DIR/$1"
GRAPH_URI=$2
SOURCE_URI=http://46.4.78.148/dsi/data?graph=$GRAPH_URI
curl -s -H "Accept:text/plain" -f -o $FILE_NAME $SOURCE_URI
CURL_STATUS=$?
... | Swirrl/digitalsocial | backup_data_graph.sh | Shell | mit | 3,022 |
#LocalFolderPathStr=${PWD}
#LocalFilePathStr=$LocalFolderPathStr'/.pypirc'
#HomeFilePathStr=$HOME'/.pypirc'
#echo $LocalFilePathStr
#echo $HomeFilePathStr
#cp $LocalFilePathStr $HomeFilePathStr
python setup.py register
sudo python setup.py sdist upload | Ledoux/ShareYourSystem | Pythonlogy/upload.sh | Shell | mit | 252 |
#!/bin/sh
set -e
NEEDS_CONFIG=0
if [ "$#" -lt "1" ]; then
echo "Bad usage: check_reconf.sh [target_package] (optional configure arguments)"
exit 1
fi
if [ "$ONYX_ARCH" = "" ]; then
echo "ONYX_ARCH needs to be set!"
exit 1
fi
if [ "$HOST" = "" ]; then
echo "HOST needs to be set!"
exit 1
fi
if [ "$SYSROOT" = "... | heatd/Onyx | scripts/check_reconf.sh | Shell | mit | 948 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3345-1
#
# Security announcement date: 2015-08-29 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:32 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - iceweasel:38.2.1esr-1~deb8u1
#
# La... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/x86_64/2015/DSA-3345-1.sh | Shell | mit | 652 |
"$CLOUD_REBUILD" CDump 32 dll release same | xylsxyls/xueyelingshuang | src/CDump/version_release.sh | Shell | mit | 42 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2166-1
#
# Security announcement date: 2014-04-14 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:46 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libsnmp15:5.4.3~dfsg-2.4ubuntu1.2
#
... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2014/USN-2166-1.sh | Shell | mit | 706 |
#! /bin/bash
BASHRC="$HOME/.bashrc"
echo "# java setting" >> $BASHRC
echo "export JAVA_HOME=\$(/usr/libexec/java_home)" >> $BASHRC
echo "" >> $BASHRC
| terracotta-ko/BashScripts | installScript/java_config.sh | Shell | mit | 152 |
#!/bin/bash
cd "$(dirname "$BASH_SOURCE")" || {
echo "Error getting script directory" >&2
exit 1
}
./hallo.command
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | kiuz/Osx_Terminal_shell_script_collection | enable_spotlight.command | Shell | mit | 204 |
#!/bin/sh
# Compile script to compile against Elysion library
# Works for Mac OS X and Linux
FPC_BIN=`which fpc`
BIN_FOLDER="../bin"
LIB_FOLDER="../lib"
RES_FOLDER="../resources"
SRC_FOLDER="../source"
# Info.plist constants
BUNDLE_REGION="English"
BUNDLE_ICON="logo.icns"
BUNDLE_IDENT="com.mycompanyname"
BUNDLE_SI... | freezedev/survival-guide-for-pirates | scripts/build.sh | Shell | mit | 8,208 |
#!/bin/bash
# ./run pixel_inicio pixel_final pixel_paso frecuencia_inicio frecuencia_final
# frecuencia_paso resolucion_espacial Rt modelo path
COUNTERX=$1
while [ $COUNTERX -le $2 ]; do
if [ ! -d "/home/vdelaluz/ARTs/papers/cavity2D/data/SEL05/${COUNTERX}" ]; then
# Control will enter here if $DIRECTORY doesn't... | itztli/pakal | scripts/run.sh | Shell | mit | 1,003 |
#!/bin/bash
# Exit immediately if any commands return non-zero
set -e
# Output the commands we run
set -x
# This is a modified version of the Cloud Foundry Blue/Green deployment guide:
# https://docs.pivotal.io/pivotalcf/devguide/deploy-apps/blue-green.html
test $URL
# Update the blue app
cf unmap-route citizenship... | AusDTO/citizenship-appointment-server | bin/cideploy.sh | Shell | mit | 886 |
#!/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
channel() {
if [ -n "${TRAVIS}" ]; then
if [ "${TRAVIS_RUST_VERSION}" = "${CHANNEL}" ]; then
pwd
(set -x; cargo "$@")
fi
elif [ -n "${APPVEYOR}" ]; then
if [ "${APPVEYOR_RUST_CHANNEL}" = "${... | tomasvdw/bitcrust | serde_json/travis.sh | Shell | mit | 1,072 |
#!/bin/bash
set -ex
mkdir /chroot
mkdir /chroot/bin
mkdir /chroot/lib
mkdir /chroot/lib64
mkdir /chroot/dev
mkdir /chroot/tmp
mkdir /chroot/var
# # debootstrap
# debootstrap saucy /chroot
# busybox
cp /bin/busybox /chroot/bin/sh
cp /lib64/ld-linux-x86-64.so.2 /chroot/lib64/ld-linux-x86-64.so.2
cp /lib/x86_64-linux-g... | kevinwallace/sandstorm-shell | make.sh | Shell | mit | 1,231 |
. ~/hulk-bash/scripts/web.sh
. ~/hulk-bash/.aliases
| BennyHallett/hulk-bash | hulk.bash | Shell | mit | 52 |
((n|=2<<1)) | grncdr/js-shell-parse | tests/fixtures/shellcheck-tests/arithmetic3/source.sh | Shell | mit | 11 |
#!/bin/bash
set -xv
## MACS0429
export ending=OCFSRI
export SUBARUDIR=/gpfs/slac/kipac/fs1/u/awright/SUBARU/
export cluster="MACS1115+01"
. ${cluster}.ini
export config="10_3"
export lens='pretty'
export ending="OCFI"
export filter="W-J-B"
./do_coadd_pretty.sh ${cluster} ${filter} 'pretty' 'none' ${ending} 'no' 'n... | deapplegate/wtgpipeline | make_pretty_fgas_coadd.sh | Shell | mit | 6,379 |
#!/bin/bash
. 'functions.sh'
print "Building site............"
GIT=`which git`
# Clone repo and add symblink
if [ ! -d $ROOTFS/app/project/docroot ]
then
print "Downloading latest Drupal Core ..."
exec 'wget -O - http://ftp.drupal.org/files/projects/drupal-7.39.tar.gz | tar zxf -'
exec 'mv drupal-7.39 a... | cesarmiquel/mu-docker-drupal | build-site.sh | Shell | mit | 1,464 |
#!/bin/bash
# data in Empar_paper/data/simul_balanc4GenNonhSSM
#length1000_b100.tar length1000_b150.tar length1000_b200.tar
#length1000_b100_num98.fa
MOD=ssm
ITER=2 # number of data sets
bl=100
#prep output files
OUT_lik='likel_balanced4_gennonh_'$bl'_'$MOD'_E.txt'
OUT_iter='iter_balanced4_gennonh_'$bl'_'$MOD'_E.tx... | Algebraicphylogenetics/Empar_paper | scripts/process_balanced4_gennonh_ssm.sh | Shell | mit | 1,509 |
LIBEVENT_VERSION="2.1.11-stable"
LIBEVENT_SHA256SUM="a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d"
rm -fR libevent*
getpkg https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VERSION}/libevent-${LIBEVENT_VERSION}.tar.gz $LIBEVENT_SHA256SUM
tar zxvf libevent-${LIBEVENT_VERSION}... | mattbillenstein/ve | pkgs/available/libevent.sh | Shell | mit | 409 |
#!/bin/bash
# this causes the script to exit if any line causes an error. if there are badly-behaved bits of script that you want to ignore, you can run "set +e" and then "set -e" again afterwards.
set -e
# setting the variable stylefile to be the string on the RHS of =. you can't have spaces around the =, annoyingly... | mapzen-data/targeted-editing | scripts/import_db.sh | Shell | mit | 2,564 |
#!/bin/sh
# seems there are problems in tab-replacement
# this is the mac-version
sed 's/ / \& /g' ../temp/mpfr.d.column > ../temp/mpfr.d.amp
sed 's/ / \& /g' ../temp/mpfr.h.column > ../temp/mpfr.h.amp
sed 's/ / \& /g' ../temp/jur.d.column > ../temp/jur.d.amp
sed 's/ / \& /g' ../temp/jur.h.column > ../temp/j... | michal-fre/refugee-phrasebook.github.io | bash-scripts-for-pdf-generation/scripts/06_replace_tabulator_with_ampersand_MAC.sh | Shell | mit | 736 |
for f in $@
do
echo $f
out=`basename $f | sed 's/.fa$//g'`
echo blastp -outfmt '6 qseqid sseqid evalue' -num_threads 16 -query $f -db uniprot/uniprot_all.fasta -out "blast/$out.blast"
done
| Dill-PICL/maize-GAMER | cafa_sw/argot2/run_blast.sh | Shell | mit | 192 |
#!/bin/sh
usage() {
cat <<EOF
USAGE: \${DOTFILES}/shell/csh/launcher.sh <function> [arg ...]
FUNCTION:
exit <return_code>
EOF
}
# Print usage if not specify the function that need to run.
if [ $# -eq 0 ]; then
usage
exit 1
fi
# The function name is the first argument.
func_name=${1}
# Remove the first... | Johnson9009/dotfiles | shell/csh/launcher.sh | Shell | mit | 642 |
#!/bin/bash -ex
cd "$(dirname "$0")"
docker run --rm \
-v "$PWD/.:/work" \
-w "/work" \
ruby:2.5 bash -ec "
gem install -N parse_a_changelog
parse ./CHANGELOG.md
"
| conjurinc/summon-chefapi | parse-changelog.sh | Shell | mit | 183 |
#!/usr/bin/env bash
PIDFILE="$HOME/.brianbondy_nodejs.pid"
if [ -e "${PIDFILE}" ] && (ps -u $USER -f | grep "[ ]$(cat ${PIDFILE})[ ]"); then
echo "Already running."
exit 99
fi
PATH=/home/tweetpig/webapps/brianbondy_node/bin:$PATH LD_LIBRARY_PATH=/home/tweetpig/lib/libgif NODE_ENV=production PORT=32757 /home/twee... | bbondy/brianbondy.node | webfaction/watchdog.sh | Shell | mit | 545 |
#!/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... | sbishopwta/WTCalendarController | Example/Pods/Target Support Files/Pods-WTCalendarController_Example/Pods-WTCalendarController_Example-frameworks.sh | Shell | mit | 3,624 |
#!/bin/sh
_now=$(date +"%m_%d_%Y_%H_%M_%S")
PATH=$PATH:/usr/local/bin
export PATH
cd $HOME/Code/newspost/crawlers/crawlers && $HOME/Installs/envs/newspost/bin/scrapy runspider spiders/huffingtonpost.py -o feeds/huffingtonpost-$_now.json
wait
cd $HOME/Code/newspost/crawlers/crawlers && $HOME/Installs/envs/newspost/bi... | Newsrecommender/newsrecommender | ArticleRecommendationProject/Crawlers/crawlers/scripts/scrape_list_3.sh | Shell | mit | 689 |
#!/bin/sh
tokenizer()
{
STRNG="${1}"
DELIM="${2}"
while :
do
NEW="${STRNG%${DELIM}}"
while case "$NEW" in
*${DELIM}*);;
*)break;;
esac
do NEW="${NEW%${DELIM}*}"
done
TOKEN="${NEW%${DELIM}... | csitd/shell-utils | which.sh | Shell | mit | 732 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2950-5
#
# Security announcement date: 2016-05-25 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:27 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - samba:2:4.3.9+dfsg-0ubuntu0.14.04.3
... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/x86_64/2016/USN-2950-5.sh | Shell | mit | 794 |
#!/usr/bin/env bash
# Run a raspberry pi as ulnoiot gateway (wifi router and mqtt_broker)
#
# To enable this,
# make sure ulnoiot-run script is porperly setup (for example in /home/pi/bin)
# add the following to the end of /etc/rc.local with adjusted location of the
# run-script:
# export PATH="/usr/local/sbin:/usr/loc... | ulno/ulnoiot | lib/system_boot/raspi-boot.sh | Shell | mit | 1,840 |
#!/usr/bin/env bash
PYTHONPATH=. DJANGO_SETTINGS_MODULE=sampleproject.settings py.test --create-db
| RealGeeks/django-cache-purge-hooks | runtests.sh | Shell | mit | 99 |
docker run -d \
--name=sickbeard \
-v $(pwd)/data:/data \
-v $(pwd)/config/config.ini:/app/config.ini \
-p 8081:8081 \
chamunks/alpine-sickbeard-arm:latest
| chamunks/alpine-sickbeard-arm | run.sh | Shell | mit | 171 |
#!/bin/bash
#
# bash strict mode
set -euo pipefail
IFS=$'\n\t'
USAGE="Usage:\n
Requires AWS CLI tools and credentials configured.\n
./tool.sh install mySourceDirectory\n
./tool.sh create mySourceDirectory myAWSLambdaFunctionName myIAMRoleARN\n
./tool.sh update mySourceDirectory myAWSLambdaFunctionName\n
./tool.sh invo... | Vilsepi/after | backend/tool.sh | Shell | mit | 2,234 |
python -m unittest
| nrdhm/max_dump | test.sh | Shell | mit | 20 |
#!/bin/sh
echo "Stopping web-server ..."
COUNT_PROCESS=1
while [ $COUNT_PROCESS -gt 0 ]
do
COUNT_PROCESS=`ps -Aef | grep node | grep -c server.js`
if [ $COUNT_PROCESS -gt 0 ]; then
PID_PROCESS=`ps -Aef | grep node | grep server.js | awk '{print $2}'`
if [ ! -z "$PID_PROCESS" ]; then
echo "Killing web server P... | stefanreichhart/tribe | src/scripts/stopServer.sh | Shell | mit | 468 |
#! /bin/bash
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
| worp1900/niftySnippets | console/bash/mac/hideHiddenFilesInFinder.sh | Shell | mit | 84 |
#!/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... | victorwon/SwiftBus | Example/Pods/Target Support Files/Pods-SwiftBus Watch Example Extension/Pods-SwiftBus Watch Example Extension-frameworks.sh | Shell | mit | 3,785 |
#!/usr/bin/env bash
# Copyright (c) 2016 Ericsson AB
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, me... | PatrikAAberg/dmce | dmce-remove-relpaths.sh | Shell | mit | 1,477 |
#!/bin/bash
SCRIPT_PATH="${BASH_SOURCE[0]}";
if ([ -h "${SCRIPT_PATH}" ]) then
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
fi
pushd . > /dev/null
cd `dirname ${SCRIPT_PATH}` > /dev/null
SCRIPT_PATH=`pwd`;
popd > /dev/null
if ! [ -f $SCRIPT_PATH/.nuget/nuget.exe ]
then
... | Horusiath/Hyperion | build.sh | Shell | mit | 1,543 |
# Erase duplicate entries from history
export HISTCONTROL="erasedups"
# Increase history size
export HISTSIZE="10000" | ridobe/dotfiles | bash/environment.sh | Shell | mit | 118 |
#!/bin/bash
QBIN=$(which qdyn5_r8)
OK="(\033[0;32m OK \033[0m)"
FAILED="(\033[0;31m FAILED \033[0m)"
steps=( $(ls -1v *inp | sed 's/.inp//') )
for step in ${steps[@]}
do
echo "Running step ${step}"
if ${QBIN} ${step}.inp > ${step}.log
then echo -e "$OK"
cp ${step}.re ${step}.re.rest
else
echo -e "$FA... | mpurg/qtools | docs/tutorials/seminar_2017_03_08/data/2-fep/run_q_local.sh | Shell | mit | 396 |
#!/bin/bash
f="$1"
d="$2"
CURRENT_DIR=$( pushd $(dirname $0) >/dev/null; pwd; popd >/dev/null )
if [ ! -d $d ]; then
echo "$d is not found"
exit 2
fi
F="$d/$f"
if [ -f "$F" ]; then
s1=`wc -c "$f" | cut -d ' ' -f 1`
s2=`wc -c "$F" | cut -d ' ' -f 1`
if [ $s1 -eq $s2 ]; then
cksum1=`md5sum -b "$f" | cut... | pavel-voinov/ghost-tools | check_file.sh | Shell | mit | 693 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3663-1
#
# Security announcement date: 2016-09-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:13 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - xen:4.4.1-9+deb8u7
# - libxen-4.4:4... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/i386/2016/DSA-3663-1.sh | Shell | mit | 1,783 |
#!/usr/bin/env bash
mkdir -p target/sandboxjava9jlink;
/usr/lib/jvm/java-9-oracle/bin/javac \
--module-path ./../java9module/target/sandboxjava9module \
-d target/sandboxjava9jlink \
$(find ./src/main/java -name "*.java")
| banadiga/sandbox | java9jlink/javac.sh | Shell | mit | 237 |
python tile_grab2.py -b "35.247;32.130;42.786;37.676" -z 9 -i false -d "syria_satellite" -u "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v9/tiles/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic3BhdGlhbG5ldHdvcmtzIiwiYSI6ImNpcW83Mm1kYjAxZ3hmbm5ub2llYnNuMmkifQ.an57h9ykokxNlGArcWQztw" -f jpg
python tile_grab2.py -b "3... | geobabbler/tile-grab | scrape2.sh | Shell | mit | 1,769 |
#!/bin/mksh
# (c) alexh 2016
set -eu
printf "%s\n\n" 'Content-type: text/plain'
# Optional with use of 'check_interval'
WANTED_INTERVAL='10'
USER="$( /usr/bin/whoami )"
HOMES_DIR='/home'
WWW_DIR="/var/www/virtual/${USER}"
HOME="${HOMES_DIR}/${USER}"
VAR_DIR="${HOME}/var/git-publish"
SRC_DIR="${HOME}/git"
function... | alexh-name/git-publish | git-publish.sh | Shell | mit | 3,479 |
#export pid=`ps aux | grep python | grep hello_gevent.py | awk 'NR==1{print $2}' | cut -d' ' -f1`;kill -9 $pid
for KILLPID in `ps aux | grep 'python' | grep 'server01' | awk ' { print $2;}'`; do
kill -9 $KILLPID;
done
#ps aux | grep python | grep -v grep | awk '{print $2}' | xargs kill -9
| alexp25/d4w_app_lab | utils/rpi/app_exit.sh | Shell | mit | 296 |
#!/bin/sh
sqlite3 -echo db/test.db < db/schema_context_a.sql
| DDD-Hamburg/ddd-in-legacy-systems | scripts/setup-db.sh | Shell | mit | 61 |
#!/usr/bin/env bash
# build datatheme resources
# usage: $ bash ./publi.sh
# build & deploys datatheme resources to host s3 bucket
# usage: $ bash ./publi.sh put dev.afgo.pgyi
# dependencies:
# aws cli : http://aws.amazon.com/cli/
# nodejs : https://nodejs.org/
# bawlk : https://github.com/tesera/bawlk
datatheme_ro... | pulsifer/datatheme-mackenzie-pmd | publi.sh | Shell | mit | 1,549 |
# This is needed to render the menu properly, according to user's actions.
# The first menu option has an index of 0. The lower option is, the higher index it has.
selectable-update-current-index() {
# In case Arrow Down was pressed.
if [ "$1" == $SELECTABLE_ARROW_DOWN ]; then
# If there are n... | bound1ess/selectable | pieces/update-current-index.sh | Shell | mit | 1,010 |
#!/bin/bash
# This script overcomes a yucky bug in simplescalar's GCC, which
# prevents it from working on the user filesystem (due to a problem
# with the transition to 64-bit). Luckily /tmp is implemented differently
# and doesn'thave this problem so we copy the tree there and do the make there.
TMPNAME=/tmp/SS... | H7DE/Instruction-Level-Parallelism-CW | SSCA2v2.2/BuildForSimplescalar.sh | Shell | mit | 757 |
#!/usr/bin/env bash
# DETAILS: Invokes rsyncs with well known better options.
# CREATED: 06/29/13 16:14:34 IST
# MODIFIED: 10/24/17 14:36:30 IST
#
# AUTHOR: Ravikiran K.S., ravikirandotks@gmail.com
# LICENCE: Copyright (c) 2013, Ravikiran K.S.
#set -uvx # Warn unset vars as error, Verbose (echo each com... | rkks/scripts | bash/rsync.sh | Shell | mit | 5,109 |
#!/bin/bash
## To avoid regression ensure that all of these do not return (unknown)
# annot_t.js
printf "annot_t.js:9:21 = "
assert_ok "$FLOW" type-at-pos annot_t.js 9 21 --strip-root --pretty
# any.js
printf "any.js:3:15 = "
assert_ok "$FLOW" type-at-pos any.js 3 15 --strip-root --pretty
printf "any.js:4:2 = "
asse... | JonathanUsername/flow | tests/type-at-pos/test.sh | Shell | mit | 30,990 |
#!/bin/sh
#
# MediaWiki Setup Script
#
# This script will install and configure MediaWiki on
# an Ubuntu 14.04 droplet
export DEBIAN_FRONTEND=noninteractive;
# Generate root and wordpress mysql passwords
rootmysqlpass=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev | tr -dc 'a-zA-Z0... | digitalocean/do_user_scripts | Ubuntu-14.04/cms/mediawiki.sh | Shell | mit | 1,955 |
# Update the X font indexes:
if [ -x /usr/bin/mkfontdir ]; then
/usr/bin/mkfontscale /usr/share/fonts/TTF
/usr/bin/mkfontdir /usr/share/fonts/TTF
/usr/bin/mkfontscale /usr/share/fonts/OTF
/usr/bin/mkfontdir /usr/share/fonts/OTF
fi
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi
| panosmdma/SlackOnly-SlackBuilds | system/linux-libertine-fonts/doinst.sh | Shell | mit | 301 |
#!/bin/sh -e
usage()
{
echo "Usage: ${0} [--structure-only] DATABASE_NAME"
}
STRUCTURE_ONLY=false
if [ "${1}" = --structure-only ]; then
STRUCTURE_ONLY=true
shift
fi
DATABASE_NAME="${1}"
if [ "${DATABASE_NAME}" = "" ]; then
usage
exit 1
fi
if [ "${STRUCTURE_ONLY}" = true ]; then
FILE="${D... | FunTimeCoding/mysql-tools | bin/backup-database.sh | Shell | mit | 717 |
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tohome() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")"
if [ ! -e "$targetFile" ] || $skipQuestion... | EDiLD/dotfiles | src/os/create_symbolic_links.sh | Shell | mit | 3,621 |
#!/bin/bash
## This script installs the irace package, sets up the environment and launches
## irace. Then compresses its output as a tar.gz.
#SCENARIO is a irace's scenario file
SCENARIO=$1
# RUN is the run number to distinguish replications of irace
RUN=$2
shift 2
# RUN in condor starts at 0
let SEED=1234567+RUN
IR... | matthieu-vergne/jMetal | jmetal-experimental/src/main/resources/irace/run.sh | Shell | mit | 1,221 |
source ~/.functions_colors_shell.zsh
# functions and load-onces stuff for the environment
echo "function config"
source ~/.functions_shell.sh
source ~/.functions_colors.sh
source ~/.functions_dev.sh
source ~/.functions_osx.sh
source ~/.functions_graphics.sh
# Vim IDE settings
source ~/.bash_vim_append
test -e "${HO... | NewAlexandria/dotfiles | zsh/functions.zsh | Shell | mit | 514 |
#!/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... | monadis/PopupDialog | Example/Pods/Target Support Files/Pods-PopupDialog_Example/Pods-PopupDialog_Example-frameworks.sh | Shell | mit | 3,621 |
#!/bin/bash
mkdir $PREFIX/share
mkdir $PREFIX/share/gdal
cp data/* $PREFIX/share/gdal
cp LICENSE.TXT $PREFIX/share/gdal
mkdir $PREFIX/bin # HACK to get post-link script to copy.
| jjhelmus/conda_recipes_testing | gdal/gdal-data_1.10.1/build.sh | Shell | mit | 182 |
#!/usr/bin/env bash
PATH=/opt/usao/moodle3/bin:/usr/local/bin:/usr/bin:/bin:/sbin:$PATH
## Require arguments
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then
cat <<USAGE
moodle3_migrate.sh migrates a site between hosts.
Usage: moodle3_migrate.sh \$dest_moodledir \$src_moodlehost \$src_cfgdir
\$dest_moodledir ... | USAO/ansible-role-moodle3 | files/moodle3_migrate.sh | Shell | mit | 2,116 |
#!/bin/bash
# if config file doesnt exist (wont exist until user changes a setting) then copy default config file
if [[ ! -f /config/core.conf ]]; then
echo "[info] Deluge config file doesn't exist, copying default..."
cp /home/nobody/deluge/core.conf /config/
else
echo "[info] Deluge config file already exists, sk... | Toilal/stealthbox | .docker/deluge/home/deluge.sh | Shell | mit | 438 |
#!/usr/bin/env bash
phpize
./configure
make
sudo make install
make clean
php --re focusphp
| mylxsw/FocusPHP-Ext | startup.sh | Shell | mit | 92 |
#!/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}/PIC24_Dev_Board_Template.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=PIC24_Dev_Board_Template... | briandorey/PIC24-Dev-Board | Firmware/Template/PIC24 Dev Board Template.X/nbproject/Package-default.bash | Shell | mit | 1,459 |
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SESSION_NAME="$1"
source "$CURRENT_DIR/helpers.sh"
dismiss_session_list_page_from_view() {
tmux send-keys C-c
}
session_name_not_provided() {
[ -z "$SESSION_NAME" ]
}
main() {
if session_name_not_provided; then
dismiss_sessio... | disser/tmux-sessionist | scripts/switch_or_loop.sh | Shell | mit | 528 |
#!/bin/bash
STEP=$1
TEST=$2
case "$STEP" in
install)
echo "Installing..."
if [ -d vendor ]; then
chmod 777 -R vendor
rm -r vendor
fi
COMPOSER=dev.json composer install
;;
script)
echo "Run tests...";
if [ ! -d vendor ]; then
... | vtsykun/redis-message-queue | .builds/travis.sh | Shell | mit | 845 |
#!/bin/bash
set -x
set -e
source "/tools/common_rc/functions.sh"
apt-get update
# install SSHD
apt-get install -y --no-install-recommends ssh
# let root logins, disable password logins
sed -i \
-e 's/^#?UsePAM.*$/UsePAM no/g' \
-e 's/^#?PasswordAuthentication.*$/PasswordAuthentication yes/g' \
-e 's/^#?PermitRoot... | nfq-technologies/docker-images | php70-dev/build/setup_docker.sh | Shell | mit | 2,588 |
#!/bin/sh
# Capture the current version.
VERSION=`cat ./VERSION`
# Currently using YUI Compressor for minification.
YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar
# To use the YUI Compressor, Java is required (http://java.com).
JAVA=`which java`
if [ "$JAVA" == "" ]; then echo "Not found: java" ; exi... | m5n/uducada | build.sh | Shell | mit | 2,544 |
#!/usr/bin/env bash
set -e
function hr {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
while getopts ":u" opt; do
case $opt in
u)
docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; }
hr
echo 'Pulled the GenAMap docker image... | blengerich/GenAMap | scripts/dev_genamap.sh | Shell | mit | 2,991 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-RBM_DBM_4_inc_bin_PARAL_base
#SBATCH -e Deep-RBM_DBM_4_inc_bin_PARAL_base.err.txt
#SBATCH -o Deep-RBM_DBM_4_inc_bin_PARAL_base.out.txt
source /etc/profile.modules
module load gcc
module load matla... | aciditeam/matlab-ts | jobs/deepJobs_RBM_DBM_4_inc_bin_PARAL_base.sh | Shell | mit | 619 |
#!/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}/c_negador2.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=c_negador2.X.${IMAGE_TYPE}.${OUTPUT_SU... | tocache/picomones | UPC Microcontroladores 2018-1/Ejercicios en XC8/c_negador2.X/nbproject/Package-default.bash | Shell | cc0-1.0 | 1,383 |
java -Djava.ext.dirs=reggie-libs -Djava.util.logging.config.file=config/logging.properties -jar reggie-libs/start.jar config/start-reggie.config
| paawak/blog | code/jini/unsecure/jini-services/start-reggie.sh | Shell | gpl-2.0 | 145 |
#!/bin/sh -e
# Glen Pitt-Pladdy (ISC)
. ./functions.sh
depends_SLES() {
echo >/dev/null
}
depends_RHEL() {
[ -x /usr/bin/expect ] || yum install -y expect
}
trakapacheconf_SLES() {
CONFDIR=/etc/apache2/conf.d
CONF=$CONFDIR/t2016-$TRAKNS.conf
echo $CONF
}
trakapacheconf_RHEL() {
CONFDIR=/etc/httpd/conf.d
CONF=... | casep/isc_coding | trakautomation/do_TrakVanillaT2015_Install.sh | Shell | gpl-2.0 | 4,564 |
#!/bin/bash
#
###########################################################
# copie_clepub_veyon.sh
# Ce script est à lancer sur les clients veyon
# Il recupère la clé publique "teacher" du poste "maitre" veyon
# 20180327
##########################################################
DATE1=$(date +%F+%0kh%0M)
#Couleurs
ROUG... | jcmousse/clinux | se3/alancer/copie_clepub_veyon.sh | Shell | gpl-2.0 | 3,308 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/automation-instances.log"
# Grab all Instance IDs for REBOOT action and export the IDs to a text file
sudo aws ec2 describe-instances --filters Name=tag:reboot-time,Values=18-00 Name=tag:... | STARTSPACE/aws-ec2-start-stop-reboot-by-timetable | reboot/wd/reboot-wd-18.sh | Shell | gpl-2.0 | 785 |
#! /bin/sh
# Copyright (C) 2003-2018 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 ... | komh/automake-os2 | t/conff2.sh | Shell | gpl-2.0 | 1,205 |
#!/bin/bash
for jobdir in $(ls -l|grep ^d|awk '{print $9}');do
# Determine job type
jobtype=$(echo $jobdir|cut -d '-' -f4)
case $jobtype in
absperm)
sub="qsub -lwalltime=08:00:00 -lnodes=1:ppn=8 -N $jobdir -M tor@numericalrocks.com /home/steel/runscript-absperm.sh"
;;
rwabsperm)
... | simontakite/sysadmin | cluster/stallo/submitall.sh | Shell | gpl-2.0 | 759 |
#!/bin/bash
for f in sml/*.sml; do { time ../bin/yasmin $f ; } 2>&1 | tee logs/$f.txt ; done
exit
| mwcoomber/Yasmin | examples/run_tests.sh | Shell | gpl-2.0 | 100 |
#!/bin/sh
# Copyright (C) 1999-2005 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} ... | atmark-techno/atmark-dist | user/imagemagick/tests/rwfile_PPM_truecolor16.sh | Shell | gpl-2.0 | 365 |
#!/bin/sh
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public Licens... | twitter/bittern | lvm2/test/shell/lvmetad-lvm1.sh | Shell | gpl-2.0 | 972 |
#!/bin/bash
if [ -z $1 ]
then
exit 0
fi
ip=$1
rules=$2
trunk=$3
access=$4
general_rules='/etc/isida/isida.conf'
get_uplink=`grep 'uplink' $general_rules | cut -d= -f2 | sed -e s/%ip/$ip/`
ism_vlanid=`grep 'ism_vlanid' $general_rules | cut -d= -f2`
port_count=`echo $5 | sed -e s/://`
args=''
count=0
enum_pars=`cat $... | vlad-syan/isida | usr/local/sbin/fix_3528.sh | Shell | gpl-2.0 | 11,905 |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
Sig="/home/dai/tmp/Assignment#3/Size/Signature/BatchProcessing.m"
Rect="/home/dai/tmp/Assignment#3/Size/Rectangle/BatchProcessing.sh"
Eva="/home/dai/tmp/Assignment#3/Size/Evaluation/BatchProcessing.m"
MatlabExe="/opt/Matlab2013/bin/ma... | zhenglab/2015SpringCV | Assignments/Assignment3Solutions/戴嘉伦/Grab/Size/Batch_Size.sh | Shell | gpl-2.0 | 451 |
#!/bin/bash
RRD=/data/mirror/rrd
PNG=/data/mirror/www/size
for file in $RRD/*; do
tree=`basename $file`
tree=${tree/.rrd/}
rrdtool graph $PNG/$tree-week.png --imgformat PNG \
--end now --start end-1w \
"DEF:raw=$file:size:AVERAGE" "CDEF:size=raw,1048576,*" \
"AREA:size#507AAA" -l 0... | osuosl/osuosl-mirror-sync | mirror-stats/mirror-size-graph.sh | Shell | gpl-2.0 | 746 |
#! /bin/sh
modprobe ib_core
modprobe ib_uverbs
modprobe ib_addr
modprobe ib_umad
modprobe ib_cm
modprobe ib_mad
# modprobe ib_ipoib
modprobe ib_sa
modprobe iw_cm
modprobe ib_ucm
modprobe rdma_ucm
modprobe rdma_cm
| nminoru/pib | driver/load_ib_modules.sh | Shell | gpl-2.0 | 214 |
#!/bin/sh
if [ $# -gt 0 ]; then
echo $1 > .version
fi
buildid=$(( $1 + 1 ))
zipfile="Chroma.Kernel-r$buildid.zip"
. ./env_setup.sh ${1} || exit 1;
if [ -e .config ]; then
rm .config
fi
cp arch/arm/configs/aosp_defconfig .config >> /dev/null
make aosp_defconfig >> /dev/null
make -j$NUMBEROFCPUS CONFIG_NO_ERROR_... | artcotto/CharizardX_kernel_hammerhead | build.sh | Shell | gpl-2.0 | 965 |
#!/bin/bash
if [ $# -ne 2 ];then
echo "Usage: $0 <src_1> <src_2>"
exit 1
fi
mv $1 tmp
mv $2 $1
mv tmp $2
exit 0
| chapering/DTIStudy | dataproc_scripts/exchange_file.sh | Shell | gpl-2.0 | 117 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6