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
## # # this script makes the entire STEDT. # it takes a while to run (15-20 mins, depending) # # first, make all the volumes.. ./makeFascOnly.sh 2 x x $1 & ./makeFascOnly.sh 3 x x $1 & ./makeFascOnly.sh 4 x x $1 & ./makeFascOnly.sh 5 x x $1 & ./makeFascOnly.sh 6 x x $1 & ./makeFascOnly.sh 7 x x $1 & ./makeFascOnl...
dwbruhn/stedt
printutils/disExperiment1/shebang.sh
Shell
gpl-2.0
1,472
#!/bin/bash VERSION=`cat ../VERSION` SOURCE_DIR=snapfly-$VERSION TARBZ2=$SOURCE_DIR.tar.bz2 ORIGTBZ=$SOURCE_DIR.orig.tar.bz2 DEBPKG=$SOURCE_DIR.deb echo $SOURCE_DIR if test -d $SOURCE_DIR; then sudo rm -r $SOURCE_DIR fi if test -x $TARBZ2; then sudo rm $TARBZ2 fi echo -n "creating $TARBZ2 " svn export .. $SOURCE_DIR ...
Alwnikrotikz/snapfly
package/make_packages.sh
Shell
gpl-3.0
686
#!/bin/bash # Expected to have variables: # DEPLOYMENT_HOST # SSH_USER # PM_ENV # SRC_ARC if [ $DEPLOYMENT_HOST ] ; then echo "DEPLOYMENT_HOST is $DEPLOYMENT_HOST." else echo "DEPLOYMENT_HOST is not defined." exit 1 fi if [ $SSH_USER ] ; then echo "SSH_USER is $SSH_USER." else echo "SSH_USER is n...
ViLPy/Valamis
learn-puppet/src/main/resources/scripts/preparePuppetmasterEnv.sh
Shell
lgpl-3.0
1,060
#!/usr/bin/env bash # Use this script to test if a given TCP host/port are available # From https://github.com/vishnubob/wait-for-it - MIT License cmdname=$(basename $0) echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi } usage() { cat << USAGE >&2 Usage: $cmdname host:port [-s] [-t timeout] [--...
bdelacretaz/sling-adaptto-2016
sling-images/images/base/src/main/docker/slingroot/wait-for-it.sh
Shell
apache-2.0
3,722
#!/bin/bash set -e echo "### Dry run with input & output files set" echo "$ ./mk-docker-opts.sh -f ./sample_subnet.env -d here.txt" ! read -d '' EXPECTED <<EOF DOCKER_OPT_BIP="--bip=10.1.74.1/24" DOCKER_OPT_IPMASQ="--ip-masq=true" DOCKER_OPT_MTU="--mtu=1472" DOCKER_OPTS=" --bip=10.1.74.1/24 --ip-masq=true --mtu=1472"...
coreos/flannel
dist/mk-docker-opts_tests.sh
Shell
apache-2.0
2,011
#!/bin/bash # Assumption: everything has been built already, and if you're asking for # coverage, you've already installed the relevant package. set -e source toolversions.sh SCRIPT=$(readlink -f "$0") ROOT_DIR=$(dirname "$SCRIPT") APIS=() RETRY_ARG= COVERAGE_ARG= SMOKE_ARG= while (( "$#" )); do if [[ "$1" == "-...
evildour/google-cloud-dotnet
runintegrationtests.sh
Shell
apache-2.0
3,376
#!/bin/bash # base address for Bebop ADDR_BASE=192.168.42.1 # tmp folder for sdp files (relative path by default) SDP_DIR=${PAPARAZZI_HOME}/var/sdp_tmp # test if a complete IP address is passed as first argument if [ `grep -c '\.' <<< $1$2` == 1 ] then ADDR=$1$2 else ADDR=$ADDR_BASE fi pid=0 function quit { ...
RickHutten/paparazzi
sw/tools/parrot/bebop/start_mplayer.sh
Shell
gpl-2.0
912
#!/bin/sh # # ngIRCd -- The Next Generation IRC Daemon # Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors # # 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 versio...
vs49688/GameSpIRCd
autogen.sh
Shell
gpl-2.0
8,121
#!/bin/bash #Copy environment, join output and error, medium queue: #PBS -V #PBS -j oe #PBS -q long #PBS -l cput=2800:00:00 #PBS -m n #PBS -N JSPrnd # Go to the directory where the job was submitted from cd $PBS_O_WORKDIR /share/apps/opt/matlab/bin/matlab -nojvm -r "tic; [xmin,esWeights]=bruteforceESapproach('jrnd'), t...
tungufoss/alice.code
MATLAB/trials/old/CMA-ES/sol/stepbystep/runJSPrnd.sh
Shell
gpl-2.0
331
#!/usr/bin/env bash # Copyright 2015 Red Hat Inc., Durham, North Carolina. # All Rights Reserved. # # OpenScap Probes Test Suite. . ../../test_common.sh set -e -o pipefail function test_probes_symlink { probecheck "symlink" || return 255 DF="test_probes_symlink.xml" RF="results.xml" rm -f $RF ...
openprivacy/openscap
tests/probes/symlink/test_probes_symlink.sh
Shell
lgpl-2.1
1,914
#!/bin/bash # Copyright 2017 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 applicable law ...
zhangjm12/kubernetes
cluster/log-dump/log-dump.sh
Shell
apache-2.0
15,088
#!/bin/sh echo "----- update composition file" echo " COMPOSITION_FILE = $COMPOSITION_FILE" RUN_SERVICE_FILE=/opt/run_service echo "---- check if $RUN_SERVICE_FILE exists " if [ -f $RUN_SERVICE_FILE ]; then echo "--- $RUN_SERVICE_FILE exists " echo "--- variable : COMPOSITION_FILE=$COMPOSITION_FILE " SED_PA...
isandlaTech/cohorte-platforms
cohorte-home/docker/node/install/init_0.sh
Shell
apache-2.0
563
rm -f test.xml test.csv
vivovip/bpipe
tests/transform/cleanup.sh
Shell
bsd-3-clause
24
#!/bin/bash # Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
yonglehou/grpc
src/php/bin/run_tests.sh
Shell
bsd-3-clause
1,790
#!/bin/bash XTREEMFS=$1 TEST_DIR=$4 HADOOP_VERSIONS="1.2.1" VOLUME="$(basename $(dirname $(pwd)))" for VERSION in $HADOOP_VERSIONS; do echo "Test XtreemFS with hadoop $VERSION" #download and extract hadoop echo "Download Hadoop $VERSION..." wget -nv -O $TEST_DIR/hadoop-$VERSION.tar.gz http://archive.apa...
harnesscloud/xtreemfs
tests/test_scripts/hadoop_ssl_test.sh
Shell
bsd-3-clause
5,236
#!/usr/bin/env bash apt-get update apt-get install -y qemu-system-x86 apt-get install -y gdb apt-get install -y tmux echo "set auto-load safe-path /" > /home/vagrant/.gdbinit
kingsizeme/xv6
vagrantprov.sh
Shell
mit
177
#! /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 ...
hika-server/automake
t/test-driver-acsubst.sh
Shell
gpl-2.0
2,256
#!/bin/bash # # Written and maintained by the.arul@gmail.com (2014) # BUILD_DIR="./lib/iOS" IOS_SDK_VERSION= IOS_SDK_TARGET=6.0 #(iPhoneOS iPhoneSimulator) -- determined from arch IOS_SDK_DEVICE= XCODE_ROOT_DIR=/Applications/Xcode.app/Contents TOOLCHAIN=$XCODE_ROOT_DIR//Developer/Toolchains/XcodeDefault.xctoolchain...
RafaelAnt/L-Systems_VSL
contrib/assimp3.3.1/port/iOS/build.sh
Shell
lgpl-3.0
3,624
#!/bin/bash # # This script copies Validator.java from bazel-bin directory. # # Fall back to bazel build working directory if not using Maven BASE_DIR=$1 if [ -z "$BASE_DIR" ] then BASE_DIR=$BUILD_WORKING_DIRECTORY fi BAZEL_BIN_DIR=$BASE_DIR/bazel-bin AMP_VALIDATOR_GENERATED_DIR=$BASE_DIR/"src/main/java/dev/am...
erwinmombay/amphtml
validator/java/src/main/bin/copyValidatorJavaSource.sh
Shell
apache-2.0
557
#!/bin/sh # Below is a transcript of creating two emulated nodes and connecting them # together with a wired link. You can run the core-cleanup script to clean # up after this script. # create node 1 namespace container vnoded -c /tmp/n1.ctl -l /tmp/n1.log -p /tmp/n1.pid # create a virtual Ethernet (veth) pair, insta...
Benocs/core
src/daemon/examples/netns/twonodes.sh
Shell
bsd-3-clause
1,214
find ccm_app/*.js -type f -exec cat {} \; -exec echo "" \; > ccm.app.js cp ccm_app/__bootstrap.twipsy.js ./bootstrap.twipsy.js cp ccm_app/_bootstrap.popover.js ./bootstrap.popover.js /usr/bin/java -jar /Applications/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar -o ccm.app.min.js ccm.app.js rm ccm.app.js mv ccm.app...
clejer/concrete_
concrete/js/buildmin.sh
Shell
mit
338
#!/usr/bin/env bash # 1. Tags the successfully voted RC with # 'myriad-<version>-incubating'. # 2. Pushes the release tag to git. # 3. Deletes the previously tagged RC tags. # 4. Uploads the release artifacts to "release" SVN. # 5. Deletes the previously available RC artifacts from "dev" SVN. function askAndGo() {...
mohitsoni/incubator-myriad
support/apache-release/release.sh
Shell
apache-2.0
3,645
#!/bin/bash # Copyright 2014 Google Inc. 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 required by applic...
bwahn/kubernetes
cluster/aws/util.sh
Shell
apache-2.0
19,952
#!/usr/bin/env bash # Publishes TSLint to NPM based on the current version in package.json # This script must be run with yarn: "yarn run publish:local" # A user running this script must have Palantir NPM organization credentials set -e rm -rf tempPublish mkdir tempPublish git clone git@github.com:palantir/tslint.g...
andy-hanson/tslint
scripts/npmPublish.sh
Shell
apache-2.0
728
#! /bin/sh ############################################################################ # # NOTE: If you just want to build FFTW, do not use this file. Just use # the ordinary ./configure && make commmands as described in the installation # section of the manual. # # This file is only for users that want to generate t...
termoshtt/rust-fftw3
fftw-src/fftw-3.3.8/bootstrap.sh
Shell
mit
835
export JSFTP_COV=1 && rm -rf lib-cov && jscoverage lib lib-cov && mocha -R html-cov > coverage.html && unset JSFTP_COV
waganse/pj_admin
work/node_modules/grunt-ftp-deploy/node_modules/jsftp/test/coverage.sh
Shell
mit
119
#!/bin/sh # launch script # # JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/ DIR=`cd "\`dirname "$0"\`" && pwd` JAR_DIR="$DIR/../../../target" if [ -z "$JAVA_HOME" ] ; then JAVA_HOME=`readlink -f \`which java 2>/dev/null\` 2>/dev/null | \ sed 's/\/bin\/java//'` fi TOOLSJ...
aslakknutsen/fabric8
sandbox/apm/src/test/bin/apmTest.sh
Shell
apache-2.0
667
#!/bin/bash #test GET /api/11/project/name/config/key #using API v11, plain text # use api V11 API_VERSION=11 API_XML_NO_WRAPPER=true DIR=$(cd `dirname $0` && pwd) source $DIR/include.sh # now submit req runurl="${APIURL}/projects" test_proj="APIConfigTest" ## # setup: create project ## cat > $DIR/proj_create.pos...
tjordanchat/rundeck
test/api/test-project-config-key-v11.sh
Shell
apache-2.0
5,774
#!/bin/bash declare -i collsyst=$1 declare -i ptTrig=$2 declare -i ptAssoc=$3 declare -i averOpt=$4 declare -i reflOpt=$5 declare -i baselineOpt=$6 declare dirDzero=$7 declare dirDstar=$8 declare dirDplus=$9 declare -i localCode=${10} declare -i centralitybin=${11} declare -ai ptTrigMin=(3 5 8 16) declare -ai ptTrigM...
mazimm/AliPhysics
PWGHF/correlationHF/macros/DoAverages.sh
Shell
bsd-3-clause
2,938
#!/usr/bin/env bash file_has_changed () { if [ ! -f $1 ]; then return 1 fi for f in `git ls-files --modified`; do [[ "$f" == "$1" ]] && return 0 done return 1 } version_is_unique () { for v in `git tag -l`; do [[ "$v" == "v$1" ]] && return 1 done return 0 } on_master_branch () { [[ $...
UrbanRiskSlumRedevelopment/Maya
node_modules/lunr/build/release.sh
Shell
mit
1,764
download_tuf_metadata() { local tuf_dir=$1 local bucket=$2 mkdir -p "${tuf_dir}/repository" for role in "root" "targets" "snapshot" "timestamp"; do s3cmd get --force "s3://${bucket}/tuf/${role}.json" "${tuf_dir}/repository/${role}.json" done } metadata_expires_before() { local path=$1 local before=$...
ozum/flynn
script/lib/tuf.sh
Shell
bsd-3-clause
586
#!/usr/bin/env bash execname=$0 log() { echo "[${execname}] $@" >> /tmp/initialize-cloudera-server.log } #fail on any error set -e ClusterName=$1 key=$2 mip=$3 worker_ip=$4 HA=$5 User=$6 Password=$7 log "BEGIN: master node deployments" log "Beginning process of disabling SELinux" log "Running as $(whoami) on $...
ShawInnes/azure-quickstart-templates
cloudera-on-centos/scripts/initialize-cloudera-server.sh
Shell
mit
3,715
#!/bin/bash mkdir -p $PREFIX/bin $CC -g -o $PREFIX/bin/PReFerSim $LDFLAGS $CFLAGS PReFerSim.c -lm -lgsl -lgslcblas -O3
roryk/recipes
recipes/prefersim/build.sh
Shell
mit
120
#!/bin/bash set -x set -euvo pipefail cd /opt/ PACKAGE=meteor-spk-0.1.8 PACKAGE_FILENAME="$PACKAGE.tar.xz" CACHE_TARGET="/host-dot-sandstorm/caches/${PACKAGE_FILENAME}" # Fetch meteor-spk tarball if not cached if [ ! -f "$CACHE_TARGET" ] ; then curl https://dl.sandstorm.io/${PACKAGE_FILENAME} > "$CACHE_TARGET" f...
capensisma/Rocket.Chat
.sandstorm/setup.sh
Shell
mit
1,717
#!/bin/sh # Copyright 2010 Google 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 ...
stevejmason/AndroidAssetStudio
make.sh
Shell
apache-2.0
955
#!/bin/sh . "${TEST_SCRIPTS_DIR}/unit.sh" define_test "3 nodes, 2->3 unhealthy, all IPs assigned, split NoIPTakeover" export CTDB_TEST_LOGLEVEL=0 # We expect 1/2 the IPs to move, but the rest to stay (as opposed to # NoIPHostOnAllDisabled) required_result <<EOF 192.168.21.254 2 192.168.21.253 0 192.168.21.252 2 192...
SpectraLogic/samba
ctdb/tests/takeover/lcp2.022.sh
Shell
gpl-3.0
641
R CMD REMOVE --library=$PREFIX/lib/R/library/ AHEnsDbs
joachimwolff/bioconda-recipes
recipes/bioconductor-ahensdbs/pre-unlink.sh
Shell
mit
55
#!/bin/sh sed -n -e "s/.*campaign list.*[0-9]\( using \(gzip\)\)\? size: \([0-9]*\)kb/\3 \2/p" $1 |awk 'BEGIN { sum = 0; count = 0; gzip = 0 } { sum += $1; count ++; if ($2 == "gzip") gzip ++; } END { print "campaign list sent: " count " gzipped: " gzip " size: " sum "kb" }' sed -n -e "s/.*campaign '.*[0-9]\( using \(g...
RushilPatel/BattleForWesnoth
utils/campaignd_download_analyze.sh
Shell
gpl-2.0
535
#!/bin/bash # # CPU helpers # protect against multiple inclusion if [ $FILE_CPU ]; then return 0 else FILE_CPU=DONE fi source cpufreq.sh for_each_cpu() { cpus=$(ls $CPUROOT | grep "cpu[0-9].*") for cpu in $cpus; do $@ $cpu done } for_each_non_boot_cpu() { cpus=$(ls $CPUROOT | grep "cpu[1-9].*") for cpu in ...
bw-oss/linux
tools/testing/selftests/cpufreq/cpu.sh
Shell
gpl-2.0
1,255
#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 ALL_TESTS="loopback_test" NUM_NETIFS=2 source tc_common.sh source lib.sh h1_create() { simple_if_init $h1 192.0.2.1/24 tc qdisc add dev $h1 clsact } h1_destroy() { tc qdisc del dev $h1 clsact simple_if...
Linutronix/linux
tools/testing/selftests/net/forwarding/loopback.sh
Shell
gpl-2.0
1,589
#!/usr/bin/env bash function note() { local GREEN NC GREEN='\033[0;32m' NC='\033[0m' # No Color printf "\n${GREEN}$@ ${NC}\n" >&2 } set -e title='composite' echo -n -e "\033]0;$title\007" cd composite-service java -jar ./target/composite-service-1.0.0-SNAPSHOT.jar
anbu-vincent/Microservice-devopstest
composite-service/runcomposite.sh
Shell
mit
286
#!/bin/bash # Get the Bluemix Org ORG=${CF_ORG} # Get the Bluemix App name echo ${CF_APP} # Replace non-alpha , non-numeric characters in Org name ORG_ID=${ORG//[^a-zA-Z0-9_-]/-} # Create a custom host based on App name and Org name Host_ID=${CF_APP}"-"$ORG_ID echo "Prepared to push using" $Host_ID # Push using cf...
victorpaulo/YummyRation-Cloudant
app-deploy.sh
Shell
mit
495
#!/bin/bash -ev # # Installation Script # Written by: Tommy Lincoln <pajamapants3000@gmail.com> # Github: https://github.com/pajamapants3000 # Legal: See LICENSE in parent directory # # source ${HOME}/.blfs_profile # # Dependencies #************** # Begin Required #qt-4.8.7 # End Required # Begin Recommended # End Reco...
pajamapants3000/BLFS_scripts_etc
scripts/non-blfs/keepassx-0.4.3.sh
Shell
mit
1,842
. ../compilefuncs.sh rm -R -f bin mkdir bin rm -R -f obj mkdir obj compilenasmdbg ext2/ext2loader.asm mv obj/ext2loader.o /tmp/ext2loader.o ld -melf_i386 -o obj/ext2loader.o /tmp/ext2loader.o -Ttext 0x7C00 -e 0x7C00
openglfreak/Nevermind-OS
src/loader/compiledbg.sh
Shell
mit
218
#!/bin/bash if [ -f /media/hdd/mongodb/mongod.lock ]; then rm /media/hdd/mongodb/mongod.lock && /usr/bin/mongod --dbpath=/media/hdd/mongodb --repair; fi
ideascube/ansiblecube
roles/updateMook/files/mongo_repair.sh
Shell
mit
152
#!/usr/bin/env bash zip -r build.zip build/
CoinOffering/CoinOffering.Dapp
zip.build.dir.sh
Shell
mit
44
#!/bin/bash # pandoc --template mytemplate.tex --toc -V fontsize=12pt -o output.pdf input1.md input2.md pandoc --template template_a5_h.tex --toc -V fontsize=12pt -o fisica.pdf slide.md
inclusa/2eso
02_fq/01_unit/md/generator_a5.sh
Shell
mit
190
#!/bin/sh ~/env/py35/bin/python3.5 -m unittest discover tests
AlanCristhian/sugar
run_all_tests.sh
Shell
mit
62
# record from microphone and save to audio file # $1: audio file to record to # $2: (optional) timeout in seconds RECORD () { [ -n "$2" ] && local timeout="utils/timeout.sh $2" || local timeout="" [ $platform = "linux" ] && export AUDIODRIVER=alsa local cmd="$timeout rec -V1 -q -r 16000 -c 1 -b 16 -e signed...
alexylem/jarvis
recorders/sox/main.sh
Shell
mit
855
#!/bin/bash kubectl port-forward cockroachdb-0 8081:8080
herolynx/bouncer
db_proxy.sh
Shell
mit
57
#!/bin/bash /etc/init.d/php-fpm restart /etc/init.d/nginx restart #/etc/init.d/mysqld restart while true; do sleep 100; done
liaol/weixin-zhengfang
docker/run.sh
Shell
mit
125
#!/bin/bash # Requires: # openssh # libcap || libcap2-bin (debian/ubuntu) CURSE_ROOT="/opt/curse" CURSE_ALGO="ed25519" # Create curse system user account NOLOGIN=$(which nologin) getent passwd curse >/dev/null || useradd -r -m -d "$CURSE_ROOT" -s $NOLOGIN curse chmod 700 "$CURSE_ROOT" chown curse. "$CURSE_ROOT" # G...
mikesmitty/curse
cursed/setup.sh
Shell
mit
1,874
#!/bin/bash mpiexec -n 8 python3 ../source/cyclops.py --conv_tol=0.01 --coarse_timestep=0.1 --fine_timestep=0.001 --Nx=16 --working_dir=../test
AGPeddle/Cyclops
test/Gaussian_test.sh
Shell
mit
145
#!/bin/sh if [ $# -gt 0 ]; then exec $@ fi if [ -z "$CADDYFILE" ]; then exec /go/bin/caddy else exec /go/bin/caddy -conf $CADDYFILE fi
anduintransaction/Dockerfiles
caddy/entrypoint.sh
Shell
mit
149
#/bin/sh python2 setup.py sdist sudo pip-2.7 install -U --no-deps dist/`python2 setup.py --fullname`.tar.gz
baverman/snaked
install.sh
Shell
mit
109
#!/bin/sh #CLF_PARAMS="{'learning_rate': 0.05, 'min_child_weight': 240, 'subsample': 0.9, 'colsample_bytree': 0.67, 'max_depth': 6, 'initial_params': [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.8, 1.6, 2.4, 3.2, 4.0, 4.8, 5.6, 6.4, 7.2]}" #CLF_PARAMS="{'learning_rate': 0.05, 'min_child_weight': 240, 'subsampl...
WojciechMigda/KAGGLE-prudential-life-insurance-assessment
src/sub102.sh
Shell
mit
2,387
#!/usr/bin/env bash # Bash "strict" mode set -euo pipefail IFS=$'\n\t' # Finds all private key files (that are protected, based on mode bits) # and adds each to ssh agent for filename in ~/.ssh/*; do perms=$(stat $filename|sed -n '/^Access: (/{s/Access: (\([0-9]\+\).*$/\1/;p}') filetype=$(file $filename) if [[...
brennanfee/dotfiles
bin/ssh-add-keys.sh
Shell
mit
415
#!/bin/bash while getopts ":ut" flag; do case $flag in u) if [ "$type" != "" ]; then echo "You must specify -u or -t" exit 1 fi type="u" ;; t) if [ "$type" != "" ]; then ...
lyanchih/FreewayCrawler
utils/rename.sh
Shell
mit
1,611
#!/bin/sh CFLAGS="-std=c99 -Wall -Wextra -g" LDLIBS="-lGL -lm -lX11 -lXi" SRC_FILES="src/platform/linux/linux_main.c src/game.c src/rendering/opengl.c" OUTPUT_FILE=billiard AP_OUTPUT_FILE=asset_pack AP_LDLIBS="-lm" AP_SRC_FILES="src/assets/assets_pack.c" cd $(dirname "$0") ( flock -w 5 999 || exit 1 case "$1" i...
agelito/billiards
build.sh
Shell
mit
619
pecorian_conda_cmd() { # 2) select target # #で始まる行はコメントなのでgrepで削除 # なぜか空白行が含まれるので削除 # ターゲットとしてのすべての環境を追加 # 1列目のみを仮想環境名として抽出 local target="$( conda info -e | grep -v \# | sed -e '/^[<space><tab>]*$/d' | sed -e '$ a All_virtual_environment' | pip_peco target | cut -d" " -f1)" # common process local post_...
kenji0x02/pecorian
pecorian.d/conda.sh
Shell
mit
2,525
#!/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...
HONG321/EmoticonView
EmoticonView/Pods/Target Support Files/Pods-EmoticonView/Pods-EmoticonView-frameworks.sh
Shell
mit
3,885
# Update the X font indexes: if [ -x /usr/bin/mkfontdir ]; then ( cd /usr/share/fonts/misc ; mkfontscale . ; mkfontdir . ) ( cd /usr/share/fonts/TTF ; mkfontscale . ; mkfontdir . ) fi if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache -f fi
panosmdma/SlackOnly-SlackBuilds
system/gnu-unifont/doinst.sh
Shell
mit
249
#!/bin/bash #This calculator takes in the SSID and an optional MAC to calculate the wep key of a FIOS AP. ESSID=`echo -n $1 | tr [A-Z] [a-z]` #set -vx len=`echo $ESSID | wc -c` len=`expr $len - 1` rev="" while test $len -gt 0 do rev1=`echo $ESSID | cut -c$len` rev=$rev$rev1 len=`expr $len - 1` done ESSID=$rev MAC=$2 if...
ernestas-poskus/dot13
bin/fioscalc.sh
Shell
mit
746
posit_filter_tiny () ( echo "basename" ) # Single execution for the "tiny" report posit_exec_tiny () ( posit_external "$1" "$2" 2>/dev/null ) # Filter for the overall test output on mode "tiny" posit_all_tiny () ( posit_process "$1" ) # Header for each file report on mode "tiny" posit_head_tiny () ( : ) # Report for e...
Mosai/workshop
lib/workshop/posit/tiny.sh
Shell
mit
872
#!/bin/bash function intall.nginx () { sudo -i sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install nginx -y #Suggested packages: # libgd-tools geoip-bin fcgiwrap nginx-doc sudo unlink /etc/nginx/sites-enabled/default } function nginx.stock () { apt-get install nginx geoip-bin spaw...
escribano/hegel-old
lib/nginx.sh
Shell
mit
1,415
#!/bin/sh # # Purpose: Run a Java program # # $Id$ # #--------------------------------------------------------------------- # export JAVA_HOME=/c/PROGRA~1/Java/j2sdk1.4.2_08 [ $VERBOSE ] && echo "JAVA_HOME => $JAVA_HOME" ARGS=$* WRK=`pwd`; export WRK CLASSPATH="../lib/pdq.jar;../lib/braju.jar;.";...
DrQz/pdq-boneyard
java/examples/run.sh
Shell
mit
524
# a collection of functions for card-proxy service scripts # NOTE: keep the code 'dash' compatible CFG_PREFIX="/etc" PROXY_COMMON="${CFG_PREFIX}/card_proxy_common" # "Y" or "N" ENABLE_SERVICE_RESTART="Y" ENABLE_NGINX_CONFIG="Y" log_message () { # input vars: LOG_MODE LOG_FILE SCRIPT_TAG LOGGER_NAME local LE...
vnaydionov/card-proxy
service/functions.sh
Shell
mit
9,495
#!/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() { local source="${BUILT_PRODUCTS_DIR}/Pods-DZWeiboSDK_Example/$1" local ...
yishuiliunian/DZWeiboSDK
Example/Pods/Target Support Files/Pods-DZWeiboSDK_Example/Pods-DZWeiboSDK_Example-frameworks.sh
Shell
mit
2,360
#!/bin/bash #Get current working directory. cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" #This is a list of all storage node aliases and are space seperated. There is no limit on the number of items. #You will need to modify the below line for any of the scripts in this directory to work. #SSH cert-based authe...
FOGProject/fog-community-scripts
fog-libvirtd-testing/settings.sh
Shell
mit
4,385
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DLA-655-1 # # Security announcement date: 2016-10-15 00:00:00 UTC # Script generation date: 2017-01-01 21:09:21 UTC # # Operating System: Debian 7 (Wheezy) # Architecture: armv7l # # Vulnerable packages fix on version: # - mpg123:1.14.4-1+deb7u1 # # Last vers...
Cyberwatch/cbw-security-fixes
Debian_7_(Wheezy)/armv7l/2016/DLA-655-1.sh
Shell
mit
636
#network interface on which to limit traffic IF="eth0" #limit of the network interface in question LINKCEIL="1gbit" #limit outbound AsturCoin protocol traffic to this rate LIMIT="160kbit" #defines the address space for which you wish to disable rate limiting LOCALNET="192.168.0.0/16" #delete existing rules tc qdisc de...
KaTXi/ASTC
contrib/qos/tc.sh
Shell
mit
1,672
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for RHSA-2016:2672 # # Security announcement date: 2016-11-07 19:18:21 UTC # Script generation date: 2017-01-27 21:25:13 UTC # # Operating System: Red Hat 6 # Architecture: x86_64 # # Vulnerable packages fix on version: # - chromium-browser.x86_64:54.0.2840.90-1....
Cyberwatch/cbw-security-fixes
Red_Hat_6/x86_64/2016/RHSA-2016:2672.sh
Shell
mit
832
#!/bin/bash function start() { read -s -p "Enter SSH password [leave empty to not set]: " ssh_password printf "\n" read -p "Enter linked directory [default: ~/dev_php]: " linked_directory read -p "Enter container names links (e.g. mycontainer:name|another:name): " linked_containers nokey=0 if [ ! -f id_rs...
thestonefox/docker-devenv-php
docker.sh
Shell
mit
1,375
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DLA-651-1 # # Security announcement date: 2016-10-11 00:00:00 UTC # Script generation date: 2017-01-01 21:09:21 UTC # # Operating System: Debian 7 (Wheezy) # Architecture: x86_64 # # Vulnerable packages fix on version: # - graphicsmagick:1.3.16-1.1+deb7u4 # #...
Cyberwatch/cbw-security-fixes
Debian_7_(Wheezy)/x86_64/2016/DLA-651-1.sh
Shell
mit
703
#!/bin/bash # Copyright (c) 2012 Adam Matan <adam@matan.name> # See the file license.txt for copying permission. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . $DIR/prompt_common.sh SERVER_NAME="$Cyan""$SERVER_NAME""$Color_Off" PS1="\n\[\033[1;34m\]\342\226\210\342\226\210 \u @ $SERVER_NAME""$BBlue"" \w...
adamatan/bashrc_helpers
prompt/prompt_two_lines_blue.sh
Shell
mit
399
#!/bin/sh ## b = 9 CLF_PARAMS="{'int_fold': 7, 'learning_rate': 0.03, 'learning_rates': [0.03] * 200 + [0.02] * 500, 'min_child_weight': 240, 'subsample': 0.9, 'colsample_bytree': 0.67, 'max_depth': 10, 'initial_params': [-0.01, 0.1, 0.1, 0.1, -0.1, -0.08, 0.02, -0.08, -0.01]}" ## b = 8 CLF_PARAMS="{'int_fold': 7, 'le...
WojciechMigda/KAGGLE-prudential-life-insurance-assessment
src/sub104.sh
Shell
mit
909
mkdir -p ~/.fonts cd ~/.fonts curl -OL https://github.com/Lokaltog/powerline-fonts/archive/master.zip unzip master.zip
rhalff/vimrc
.vim/install_fonts.sh
Shell
mit
119
#!/bin/sh /opt/code/db/start_postgres.sh echo 'Migrating DB' python3 manage.py migrate -v 3 echo 'Migrating to test DB' # Copy the database, so we don't run migrations twice su-exec postgres psql -c "CREATE DATABASE test_$POSTGRES_DB WITH TEMPLATE $POSTGRES_DB" echo 'Loading fixtures' # Note the fixtures are not load...
jaimebuelta/django-docker-template
docker/db/prepare_django_db.sh
Shell
mit
414
#!/bin/sh GRIMA_HOME=$(dirname $0)/.. export GRIMA_HOME . ${GRIMA_HOME}/etc/common FILENAME="$1" if [ "${FILENAME}" = "" ]; then FILENAME="${GRIMA_DATA}"/grima-django-load.json fi exec grima-django-manage.sh dumpdata --natural | python.sh -mjson.tool > "${FILENAME}"
cdsi/grima
bin/grima-django-dump.sh
Shell
mit
276
#! /bin/bash # Usage : <vanilla.csv> <gpu.csv> IFS=',' paste -d',' $1 $2 | while read f1 f2 f3 f4; do if [ $f4 -ne 0 ]; then speedup=`bc -l <<< "$f2/$f4"` else speedup=0 fi echo "$f1 $speedup" done
nkcr/JavaGPU
Results/speedup_csv.sh
Shell
mit
216
#!/bin/bash if [ "$1" = "/usr/sbin/sshd" ]; then mkdir -p /var/run/sshd rm -rf /etc/ssh/ssh_host_* ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa fi env > /etc/labo-env if [ -n "$LABO_USER" ]; then useradd $LABO_USER usermod -aG sudo -s /bin/zsh ...
shun-getto-systems/labo
docker-entrypoint.sh
Shell
mit
637
# !/usr/bin/env bash # # Sets reasonable OS X defaults. # # Or, in other words, set shit how I like in OS X. # # The original idea (and a couple settings) were grabbed from: # https://github.com/mathiasbynens/dotfiles/blob/master/.osx # https://mths.be/osx # # Run ./set-defaults.sh and you'll be good to go. echo "S...
dubuqingfeng/dotfiles-mac
os/macos/set-defaults.sh
Shell
mit
37,518
# Name: Maverick Chan # Email: guanhao3797@gmail.com #!/bin/bash # Generates basic files like README, LICENSE & .gitignore # To start repository echo -e "\nProject title?" read title # Gets the size of the title # Corresponds with a header of same length title_size=${#title} header="" for i in $(seq "$title_size");...
mavenave/git-started
repogenerator.sh
Shell
mit
1,940
#!/usr/bin/env bash prog=$1 ###########error log info : ################ SEP="@@--@@--codebox--@@--@@" ERROR_1="you must provide a file!" ERROR_2="file does not exist!" ERROR_3="invalid language!" ERROR_LOG_1="INFO: ${ERROR_1} ${SEP} STATUS_CODE: 1 ${SEP} TIME_COST: 0" ERROR_LOG_2="INFO: ${ERROR_2} ${SEP} STATUS_COD...
hhstore/code-runner
backend/sh/run_code_ex.sh
Shell
mit
1,606
bash -lc "cd ../docs && rvm use 2.7.0 && bundler exec jekyll serve"
donkirkby/live-py-plugin
html/serve.sh
Shell
mit
68
SYSTEM_HEADER_PROJECTS="libc kernel" PROJECTS="libc kernel" export MAKE=${MAKE:-make} export HOST=${HOST:-$(./default-host.sh)} export AR=${HOST}-ar export AS=nasm export CC=${HOST}-gcc export CPPC=${HOST}-g++ export PREFIX=/usr export EXEC_PREFIX=$PREFIX export BOOTDIR=/boot export LIBDIR=$EXEC_PREFIX/lib export...
DevilGladiator/XeonOS
config.sh
Shell
mit
742
#!/usr/bin/env bash # # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. export LC_ALL=C.UTF-8 TRAVIS_COMMIT_LOG=$(git log --format=fuller -1) export TRAVIS_COMMIT_LOG OUTDIR=$BASE_O...
SyndicateLtd/SyndicateQT
.travis/test_06_script_a.sh
Shell
mit
1,593
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0` gcc basic-tutorial-2.c -o basic-tutorial-2 `pkg-config --cflags --libs gstreamer-1.0` gcc basic-tutorial-3.c -o basic-tutorial-3 `pkg-config --cflags --libs gstreamer-1.0` gcc basic-tutorial-4.c -o basic-tutorial-4 `pkg-config --cflag...
orangebook/FlyLab
example/demo-gstream/basic/build.sh
Shell
mit
1,022
#!/bin/bash # see http://redsymbol.net/articles/unofficial-bash-strict-mode/ # To silent an error || true set -euo pipefail IFS=$'\n\t' if [ "${1:-}" = "--debug" ] || [ "${1:-}" = "-d" ]; then set -x fi ############################################################################### # Questions part ###############...
ctjhoa/arch-install-script
install.sh
Shell
mit
6,933
#!/bin/bash # Try POH # author: Leonardone @ NEETSDKASU # ------------------------------- typeset -i n t x y d c b # typeset s # read n # c=0 # x=0 # b=0 # for ((;n;n--)); do # read t s # if (( $x > 0 )); then # d=$((t - b)) # y=$((d > x ? 0 : x - d)) # c=$((c + x - y)) # x=$y #...
neetsdkasu/Paiza-POH-MyAnswers
POH8/Yukata/Main.sh
Shell
mit
580
#!/bin/bash sudo apt-get install cifs-utils
qrsforever/workspace
shell/project/smbmount.sh
Shell
mit
47
#!/bin/sh # CYBERWATCH SAS - 2016 # # Security fix for RHSA-2012:1186 # # Security announcement date: 2012-08-21 20:48:20 UTC # Script generation date: 2016-05-12 18:10:57 UTC # # Operating System: Red Hat 6 # Architecture: x86_64 # # Vulnerable packages fix on version: # - katello.noarch:0.1.320-1.el6cf # - ka...
Cyberwatch/cbw-security-fixes
Red_Hat_6/x86_64/2012/RHSA-2012:1186.sh
Shell
mit
1,371
#!/bin/bash echo "Start at "$(date +%c) #scarica i json dalle API echo "> Downloading" ./downloadEvents.sh #lavora sui json scaricati echo "> Working on events JSON" node adjustEvents.js #converte caratteri unicode in HTML echo "> Converting unicode chars" cat data/eventi.json | uni2ascii -a H -q > eventi-temp.json...
nexacenter/mapo
init.sh
Shell
mit
1,222
#!/bin/bash -x # # Generated - do not edit! # # Macros TOP=`pwd` CND_CONF=V1_Experimental CND_DISTDIR=dist TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging TMPDIRNAME=tmp-packaging OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/OVMS.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX} OUTPUT_BASENAME=OVMS.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX...
collin80/Open-Vehicle-Monitoring-System
vehicle/OVMS.X/nbproject/Package-V1_Experimental.bash
Shell
mit
1,359
#!/bin/bash ### Patch a Debian DTB to enable the PRUs set -e LIVE="/boot/dtbs/3.8.13-bone59/am335x-boneblack" TEMP="debian-`uname -r`" ### FETCH DTB to DTS #dtc -O dts -o $TEMP.dts -I dtb $LIVE.dtb ### PATCH DTS #(sed todo) ### STORE DTS to DTB dtc -O dtb -o $TEMP.dtb -I dts $TEMP.dts cp -n $LIVE.dtb $LIVE.dtb.old ...
MFornander/kingjelly
scripts/patchdtb.sh
Shell
mit
344
#!/bin/bash # # Run test suite locally using CircleCI CLI. # set -eu JOBS=("$@") CIRCLECI_CLI_URL="https://github.com/CircleCI-Public/circleci-cli/releases/download/v0.1.16535/circleci-cli_0.1.16535_linux_amd64.tar.gz" CIRCLECI_CLI_SHASUM="f5f0abcb01bf41b792e4e8e945fc7b165e351323ae1ee1e625eeea947094d022" CIRCLECI_CLI...
publishlab/node-acme-client
scripts/run-tests.sh
Shell
mit
1,749
#!/bin/bash mkdir tmp || rm tmp/* cp .flowconfig tmp/.flowconfig start_flow tmp test_file () { local FILE=$1 cp "$FILE" "tmp/$FILE" echo "> autofix insert-type" "$@" assert_ok "$FLOW" autofix insert-type --in-place "$@" assert_ok "$FLOW" force-recheck "$FILE" echo "> cat $FILE" cat "$FILE" echo "> a...
gabelevi/flow
tests/autofix-boolean-literals/test.sh
Shell
mit
711
#!/bin/sh # Create app directory sudo mkdir -p /usr/src/apps # Bundle app source sudo cp -rf ../ParseServer /usr/src/apps cd /usr/src/apps/ParseServer sudo chown -R ubuntu /usr/src/apps sudo npm install pm2 start /usr/src/apps/ParseServer/start.sh --name="ParseServer" pm2 startup ubuntu sudo su -c "env PATH=$PATH:/...
AlTavares/babos.ios-server
scripts/copy-dir.sh
Shell
mit
385
# azure vm deallocate <resource_group_name> <vm_name> azure vm deallocate "$1" "$2"
marcosantana77/tset
stdy/azure/vmstop.sh
Shell
mit
84
#!/bin/bash # Check prerequisites if ! which ant > /dev/null 2>&1; then echo "Ant is not found in path" >&2 exit 1 fi if [ ! -f "${SAXON_JAR}" ]; then echo "SAXON_JAR is not found" >&2 exit 1 fi # Check capabilities if java -jar "${SAXON_JAR}" -nogo -xsl:../src/reporter/coverage-report.xsl 2> /dev/nu...
cirulls/xspec
test/run-bats.sh
Shell
mit
645