blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
012d77ab8be175ec3faa3dd74d09ef49e8fafa15
116
#!/bin/bash apg-conv -st ascii -dt crlf:ascii -s ./lf.txt -d ./crlf.txt hexdump -C ./crlf.txt rm ./crlf.txt exit 0
a3f3fb0713560b23f3520ea0671fc21800114be6
41
app-get update-y app-get install-y nginx
76a5052bdb47296cb92570f3257b685927573cea
535
#!/bin/bash path="$1" file="" touch temp.txt key=`cat $path | wc -l` #echo $key while IFS= read -r line do for (( i=0; i<${#line}; i++ )); do char=${line:$i:1} ascii=$(printf "%d" "'$char") if [ $ascii -ge 0 ] && [ $ascii -lt 32 ] then file+=$char continue else if [ $ascii -lt $key ] then ...
ee525fdf07b3fba9ce7feb6f91abf7b65b013d4a
78
#!/bin/sh exec google-chrome-stable 'http://clients3.google.com/generate_204'
fde56e55c8b1c38274e98eb7fb5fcc72158df59f
457
#!/bin/bash case "$1" in 1) echo "ansible-playbook ios_25.yaml -i inventory" ansible-playbook ios_25.yaml ;; 2) echo "ansible-playbook ios_template.yaml" ansible-playbook ios_template.yaml ;; 3) echo "ansible-playbook nc_example.yaml" ansible-playbook nc_example.yaml ;; 4) echo "ansible-playbo...
45e4fe1e981c699e8186d13cce84f75ccb77f48b
275
#!/usr/bin/env bash export COVERAGE_DIR="$PWD/coverage" for gem in gems/*; do (cd "$gem" && bundle exec rspec "$@") || exit $? done bundle exec ruby -rsimplecov <<-RUBY SimpleCov::Formatter::HTMLFormatter.new.format( SimpleCov::ResultMerger.merged_result ) RUBY
b34cac9c2a616697cc3b9f927329a38d93b5e9dd
274
#!/bin/bash # # bash script for single-point rimp2 energy on molekel # # # Input section # title=$1 basis=$2 define << EOF >define.out a coord * no b all $basis * eht n t * cc freeze end denconv 1d-8 memory 6000 jkbas * ricc2 ccsd(t) * * scf conv 8 iter 300 * EOF
cc0abe65cbb9ecf38805576df51d7960d4ae45bf
1,347
#!/bin/bash ##################################################################################### # # # Script to start the Container.sh # # ...
1d89fcc7c25317a1757cc9e0e0dc491ccb9f66ca
57
bundle exec mutant --include lib --use rspec "MealPlan*"
e60bc8ad1695e55dad5157b70640ee8e59398b9f
74
#!/usr/bin/env bash # Destruir container docker. cd - docker-compose down
c2a14de081c1874716f0bc3cea0d3e63254ee1df
162
#!/bin/sh e=$( echo -n I | hexdump -o | awk '{ print substr($2,6,1); exit}' ) if [ "$e" -eq 1 ]; then echo yes 1>&2; fi if [ "$e" -eq 1 ]; then exit 0; fi exit 1
cd53d65d77c5c61b143da0868b9d98c166fdcc4f
717
#!/usr/bin/env bash # dump kafka topic: fm_impression cur=/data/cpc/hzh SPARK_HOME=/usr/lib/spark-current queue=root.report.biz.cpc jars=( "$cur/lib/spark-streaming-kafka-0-8-assembly_2.11-2.1.0.jar" "$cur/lib/jedis-2.1.0.jar" "$cur/lib/config-1.2.1.jar" ) $SPARK_HOME/bin/spark-submit --master yarn --que...
9fe4dc9163925f44911c340cbb948564ddaa0056
172
#!/usr/bin/env bash set -e pushd "$(dirname "$0")" > /dev/null cp .clang-format.standard .clang-format clang-format -i src/* test/* rm .clang-format popd > /dev/null
763b58e019670119d640d0a7d988b9a86a8e6667
834
#!/bin/bash # Paths SCRIPT=$(realpath $0) SCRIPT_ROOT_PATH=$(dirname $SCRIPT) LIBRARY_PATH="${SCRIPT_ROOT_PATH}/../libs" # URLs OPENFRAMEWORKS_SOURCE_URL="http://openframeworks.cc/versions/v0.9.3/of_v0.9.3_linux64_release.tar.gz" function main() { # Create library directory mkdir ${LIBRARY_PATH} # Download OpenF...
50c2f0273414836cdf393c113637161004722ec7
91
./relocalize_folder /home/pold/Downloads/img_00195.png /home/pold/Downloads/for_pres/ 1000
543848846bc55c92501b9f6818444c0220198b22
870
#!/bin/sh ORIGIN=`git remote -v | grep -i origin | grep -i fetch | cut -d : -f 2 | cut -d / -f 1` UPSTREAM=`git remote -v | grep -i upstream | grep -i fetch | cut -d : -f 2 | cut -d / -f 1` if [ "$UPSTREAM" = "" ]; then echo "An repository named 'upstream' doesn't exist" echo -n "Type the name of the reposito...
6441f5a07df6c08dbe2bb075ce666f452885d006
184
#!/bin/sh make -C /Users/usmarpadow/Documents/projects/mapproject/qt/build-mapviewer-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/ -f qml_location_mapviewer.xcodeproj/qt_makeqmake.mak
45ed129c251db7a5c2d4d0973583b15e981ae907
887
#!/usr/bin/env bash # Install base part apt-get -y update apt-get -y install git cron nano curl htop apt-transport-https # Install php 5 sudo add-apt-repository ppa:ondrej/php -y apt-get -y update apt-get -y upgrade apt-get -y install php5 php5-gd php5-fpm php5-mysql libapache2-mod-php5 php5-mcrypt # Install Apac...
db15138aa0141bea4e0aeb4e787f40142e224393
767
#!/bin/sh echo "Usage: $0 [-s src_dir] [-d dst_dir]" SRCDIR=webpage DSTDIR=text #set -- $(getopt s:d: "$@") while [ $# -gt 0 ] do if [ "$1" == "-s" ] ;then SRCDIR=$2 elif [ "$1" == "-d" ] ;then DSTDIR=$2 fi shift done echo "SRCDIR=$SRCDIR" echo "DSTDIR=$DSTDIR" mkdir -p $DSTDIR # 处理当前目录 FILES=$(ls $SRCD...
44ca0fb42af379bebed9dee4b0a280dec636530b
347
#!/bin/sh cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/CleanFunctions cd cylinder_snappyHexMesh #cleanCase cd ../cylinder_pimpleFoam #cleanCase #rm -rf 0 cd ../cylinder_Re1000 cleanCase rm -rf 0 cd ../cylinder_Re500 cleanCase rm -rf 0 cd ../cylinder...
26b4912b74cfce8892ff172bac3b5b293b940aa8
652
#!/bin/bash set -xe pwd env cf api $PWS_API --skip-ssl-validation cf login -u $PWS_USER -p $PWS_PWD -o "$PWS_ORG" -s "$PWS_SPACE" cf apps set +e current_app="green" next_app="blue" result=`cf apps | grep "$PWS_APP_HOSTNAME.$PWS_APP_DOMAIN" | grep "$PWS_APP_SUFFIX\-\-green" |wc -l || true` if [ $result -ne 0 ] th...
68c2d2fd9049be2c419c6f3ca9f08b5755f6bf87
1,175
EXP="exp2" ja_file="${EXP}.ja" data_dir="$EXP" rm -f "$ja_file" mkdir -p "$data_dir" INFECTION_RATES=($(seq 0.01 0.01 0.10)) QUARANTINE_LENGTHS=(0 1 7 100) # Construct base run of this job baserun="time python run.py" baserun+=" --random_seed 123" baserun+=" --regenerate_graph" baserun+=" --num_sim 100" baserun+=" ...
fbbfd71e638015696260e12ba5652da6afdb9347
185
#!/bin/bash export Bucket=`aws cloudformation list-exports --output text --query "Exports[?(Name=='basiq-blink-s3-bucket')].Value"` aws s3 sync dist s3://$Bucket/v1/ --acl public-read
be92663cf960b848651d5c65f07c475fe33bca86
357
#!/bin/sh PYTHON=`which python` WHOAMI=`$PYTHON -c 'import os, sys; print os.path.realpath(sys.argv[1])' $0` BIN=`dirname $WHOAMI` ROOT=`dirname $BIN` APPS=${ROOT}/apps BOILERPLATE=${APPS}/boilerplate APP_PATH=`$PYTHON -c 'import os, sys; print os.path.realpath(sys.argv[1])' $1` APP_NAME=`basename $APP_PATH` echo ...
cebc3a05343ad199db67426efeaa2c8bd4250e12
976
#--------------------------------------------------------------------- # Function: InstallBasics # Install basic packages #--------------------------------------------------------------------- InstallBasics() { echo -n "Updating currently installed packages... " yum -y update &>/dev/null echo -e "${green}done...
1970f52cad155c9be42ccfd629b384aee7a53eca
346
#!/usr/bin/env bash if [ -z $INVOICER_HOSTPORT ]; then INVOICER_HOSTPORT='localhost:1666' fi CHECK_INVOICER=`curl "http://$INVOICER_HOSTPORT/api/healthcheck" -D headerfile 2>/dev/null; head -1 headerfile | grep -c 200 ; rm headerfile` if [ $CHECK_INVOICER == 1 ]; then echo "Online" exit 0 else echo "...
77722506ecb53ba600dd0f63d24beb49f41e7cea
9,376
#!/usr/bin/env bash show_help() { if [[ $# == 0 ]]; then cat << INFO HELP_INFO --------- Please enter one or more of the following options: ${0} -h | --help ${0} -h modulename | --help ###for list modules type "-h modules" ${0} -m ...
aeac6678db4550620e9a607bd9f05f49bc3904ab
72
for i in {0..5}; do python grid_search.py $i --iforest --ocsvm done
4ecc2e7db5e45f1129e72ec0f02f923a5646d3da
376
#!/bin/bash FILE=${1} if [[ -z "${FILE}" ]] ; then echo "Please give the midi file name!" exit -1 fi MP3FILE=${FILE%%.mid}.mp3 WAVFILE=${FILE%%.mid}.wav fluidsynth --gain=5 -F ${WAVFILE} /usr/share/sounds/sf2/FluidR3_GM.sf2 ${FILE} && lame --preset standard ${WAVFILE} ${MP3FILE} && rm ${WAVFILE} &&...
d55a90c5a4045a4715e74cd9b624368b789be0ef
907
#!/bin/sh # (c) syscl 2016-2019 # Handy script to mount EFI/ESP partition in macOS #================================= GLOBAL VARS ================================== BOLD="\033[1m" RED="\033[1;31m" GREEN="\033[1;32m" BLUE="\033[1;34m" OFF="\033[m" # EFI identifier gESPID="" if [[ $# -eq 1 ]]; then # we mount it r...
60a79ad859b703f8edd9bf2bf7be8499a765e292
42,814
# (C) 2001-2016 Altera Corporation. All rights reserved. # Your use of Altera Corporation's design tools, logic functions and # other software and tools, and its AMPP partner logic functions, and # any output files any of the foregoing (including device programming # or simulation files), and any associated documen...
36b0db2c7a33507a29e3896eb39044b76b8eab44
56
raccoon::core::__module__() { true # Not implemented }
d797d7176c7c3c3cc8541a1211d7978d35c9f563
2,320
#!/bin/bash awk 'BEGIN { FS=","; printf("Name,Lat,Lon,CI60,CI50,CI40,CI30,CI20,CI10,Rank,Canton,Name,House2009, House1985, App2009, App1985, Tax2010\n"); while (getline < "coordinates.csv" > 0) { cities_name[$1] = $1; cities_lat[$1] = $2 + 0.0; cities_lon[$1] = $3 + 0.0; } ...
10e4e6f18c4a0a58690acbff63c6e1e462d6e5dc
1,238
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' script_pwd="$(dirname -- "${0}")" # shellcheck source=./../support/git_in_initialized_repo.sh . "${script_pwd}/../support/git_in_initialized_repo.sh" git_in_initialized_repo || exit 1 ### # `recover_commits` # # Search the reflog (`man git-reflog`) for commits with c...
751a7352c453ec2c54631832209ee5d9eae0ac66
114
oc new-app mongodb-ephemeral -p MONGODB_USER=testdrive -p MONGODB_PASSWORD=r3dh4t1! -p MONGODB_DATABASE=testdrive
3839f45f2259dad69f8ac9e5ea56f62eba91fd4b
1,245
# Maintainer: Limao Luo <luolimao+AUR@gmail.com> _pkgname=mcobj pkgname=$_pkgname-git pkgver=20120930 pkgrel=1 pkgdesc="Exports minecraft worlds to .obj or .prt" arch=(i686 x86_64) url=https://github.com/quag/$_pkgname license=(custom) makedepends=($_pkgname-lib go git) optdepends=(minecraft) provides=($_pkgname=0.14)...
ea9b9b71eb1257f8cb04aff1ad5e9d987a06bf69
258
#!/usr/bin/env bash # see https://www.ssh.com/ssh/keygen for details export key_algorithm="rsa" # one of rsa, dsa, ecdsa, ed25519 export key_size="4096" export key_comment="hcnp" export key_file="id_${key_algorithm}_hcnp" export key_file_dir="${HOME}/.ssh"
f64b1ce75a247218ecde9546bce4422cc65d601b
850
#!/bin/sh # show all tags for specified repository registry='https://registry.hub.docker.com' usage() { echo "Usage: $0 [-r registry] [namespace/]repository" >&2 } set -- `getopt r: $*` if [ $? != 0 ]; then usage exit 1 fi for OPT in $*; do case $OPT in -r) registry=$2 shift 2 ...
6002cc271201a4bfbdf2c0f06276b5d7f6e6db2b
5,143
poweroff vim /etc/network/interfaces ls cd mail/ ls init 0 init 0 init 0 ls ls | egrep -v "ldap|mail" ls | egrep -v "ldap|mail" | xargs rm -rf ls ls cd mail/ ls cd .. ls ls cd ldap/ ls cd ls dpkg-reconfigure keyboard-configuration service keyboard-setup restart init 0 ip a vim /etc/resolv.conf init 0 ls cd mail/ ...
ff9aada1eb01e1c9ddf02eed2f2585fc29fa425d
1,377
# # Translated from http://gist.github.com/31934 # autoload -U colors # colors # setopt prompt_subst parse_git_branch() { # git rev-parse --git-dir &> /dev/null git_status="$(git status 2> /dev/null)" branch_pattern="On branch ([[:alnum:]/_-]*)" nobranch_pattern="HEAD detached at" remote_pattern="Your branch...
0f5107c6109dc07d18651455d6acbc46589de915
746
LuisAPIHostName=https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/e9a8bce6-f328-40ab-989b-386fcddb0dc7?subscription-key=2e582de70bfb41d6b2356367575a4ef6&verbose=true&timezoneOffset=0&q= LuisAPIKey=2e582de70bfb41d6b2356367575a4ef6 LuisAPIHostName=westus.api.cognitive.microsoft.com LuisAppId=e9a8bce6-f328-40ab-98...
cfecb4fd11319c5be406562c794c641e002e4211
314
#!/bin/bash board_dir=$1 search_pattern=$2 find board\/$board_dir \ -iname "*.[chs]" \ -exec grep -inH --color=auto $search_pattern {} \; find arch\/arm \ -iname "*.[chs]" \ -exec grep -inH --color=auto $search_pattern {} \; grep -irnH --color=auto --exclude-dir=board --exclude-dir=arch $search_pattern .
75d224b7511e3831a1867b05c249cbf12a50f9e9
3,549
#!/bin/bash set -u set -o errexit set -o pipefail BLINE='beeline -u "'"$BEELINE_CONNECT"'"' DB_NAME=aarau1 SRC_BASE_DIR=/user/hive/warehouse/$DB_NAME.db INPUT_BASE_DIR=/user/aarau1/input OUTPUT_BASE_DIR=/user/aarau1/output export AVRO_JAR=/opt/cloudera/parcels/CDH/jars/hive-exec-1.1.0-cdh5.7.2.jar export HADOOP_CLA...
a5517f425f76976c295a70ac0b3ccb6b8bc121b4
104
MONGODB_URI=mongodb://heroku_kskzb0zr:qjdgkiscoon5cf1g1eprvg1o6o@ds031845.mlab.com:31845/heroku_kskzb0zr
e90d774d42cedd3f785a8ff4aa1f4a05b8320b8e
113
#!/bin/bash decksh go10.dsh | pdfdeck -sans Go-Regular -mono Go-Mono -pagesize 1920,1080 -stdout $* - > go10.pdf
70f801c843688d47e10a402c35eb634ec1fc894b
170
#!/usr/bin/env zsh set -e local DOWNLOAD_URL="https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" cd ~/local/bin wget $DOWNLOAD_URL -O jq chmod +x ./jq
ba30ef1f845222b5a84bf3a25924bd6574f9b678
265
#!/bin/bash # MAKESPEC -- bash script to generate spectral EoS files for list of input parameters given in infile # USAGE: makespec inputparams.in infile=$1 i=0 while IFS= read -r params do geteos_spec -p $params -t $i i=$(($i+1)) done < <(tail -n +2 $infile)
39822dc34115120df26e73e6b007cead5fee4099
6,535
#!/bin/bash # Nagios plugin to monitor Puppet agent state # # Copyright (c) 2011 Alexander Swen <a@swen.nu> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copie...
17f8fb4470a31eacee3c0a6c0aaed7d6790c29be
1,183
#!/bin/bash FRUIT=(apple banana cherry damson elderberry fig guava hawthorn ilama jackfruit kumquat lemon mango nectarine olive papaya quince raspberry strawberry tangerine ugli vanilla wolfberry xigua yew ziziphus) COUNT=20 DICT="/usr/share/dict/words" WORDS=($(grep "^[a-z]\{6\}$" "$DICT" | shuf | head -n $COUNT)) ...
1b698707cc04f7130f1a964f077d1cd52912b28a
531
#!/bin/bash if [ $# -ne 2 ]; then echo "Incorrect usage!" echo $0" <exec> <path>" exit 1 fi HERE=$(dirname $0) SERVER=$HERE/backend/server CURL=/usr/bin/curl #killall server RESPONSE=`$CURL localhost:8083/ping 2>/dev/null` if [ "$RESPONSE" != "pong" ]; then cd $HERE/backend ./server --daemon cd - # ...
c2178d20af20b2ae2fcfa6b361bfcec3946741fb
1,236
export PATH=$PATH:/Applications/veonim.app/Contents/MacOS export TERM="xterm-256color" bindkey -v ############################## # My super awesome zshrc. # ############################## # Environment and shell options. # # setopt INC_APPEND_HISTORY SHARE_HISTORY HIST_IGNORE_DUPS HIST_IGNORE_ALL_DUPS HIST_REDUCE_...
8017940699b2285de0f374cb07792b7135163e9b
274
# might not need sudo here if you run this as privileged in Vagrantfile sudo apt-get install git -y sudo apt-get install golang-go -y sudo apt-get install mercurial -y export PATH=$PATH:/usr/local/go/bin export GOPATH=/home/vagrant/dev go get github.com/go-martini/martini
62a90e237ce8044637d3936130c5d46744f416eb
134
#!/usr/bin/env bash # generated from catkin/cmake/templates/script.bash.in "/root/ros_catkin_ws/src/ros/rosbash/scripts/rosrun" "$@"
7e6886b2e5347277a060ea91c1e3dc377cecc13c
77
#!/bin/bash mysql -uroot -proot -hlocalhost -P3306 < /vagrant/db/schema.sql
19643b42c1bc26cce309bd6fb73e7b9d5cad7c84
1,905
#!/bin/bash set -e echo $(hostname) cd $(dirname $0) export RUNTIME_DIR=../../../runtime/ci/ export RUNTIME_DIR_CLEAN=true export CATTLE_LOGBACK_ROOT_LEVEL=error export CATTLE_DB_CATTLE_DATABASE=mysql : ${CATTLE_DB_CATTLE_MYSQL_PORT:=13306} export CATTLE_DB_CATTLE_MYSQL_PORT # Uncomment this if you're impatient #e...
247a81c5d9765c9d73963ac3b0e90eda13cf7bb3
5,057
plutil -convert json -o Ac.json Ac.plist; plutil -convert json -o Ag.json Ag.plist; plutil -convert json -o Al.json Al.plist; plutil -convert json -o Am.json Am.plist; plutil -convert json -o Ar.json Ar.plist; plutil -convert json -o As.json As.plist; plutil -convert json -o At.json At.plist; plutil -convert json -o Au...
5578ae76b8cf6f4551ce49aafac971924f605d3e
856
#!/bin/sh # get resource echo " collector: scraping starts" PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs /usr/local/bin/casperjs --web-security=no --ssl-protocol=any --ignore-ssl-errors=yes ./weeklyspider.js PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs /usr/local/bin/casperjs --web-security=no --ssl-protocol=any -...
cc1e11d0c4c4941ca12510f84204376ffe340f1a
3,935
#!/bin/bash ## ## Configure the GitLab access parameters ## export GITLAB_URL="https://gitlab.fbi.h-da.de" export GITLAB_USR="" export GITLAB_TKN="" ## ## Configure the namespace-id, i.e. the ## id of the path (groups and sub-groups) ## of the newly created project. For the ## path /distributed-systems/lab 2017/2018 ...
6ff793581f58c4dab0bc04787b0e6f2543de4eb7
914
#!/bin/bash DEFAULT_BROWSER=chrome DEFAULT_ENV=PDR_DOCKER while [[ $# -gt 0 ]] do key="$1" case $key in -b|--browser) BROWSER=$2 shift ;; -e|--env) TEST_ENV="$2" shift ;; *) # unknown option ...
cd82268ba1fa01d80edc57e9c2b4652861f8dfaa
139
#!/bin/sh ./devops/build.sh if [ $? -eq 0 ]; then docker-compose up --build -d else echo "Ocorreu um erro ao buildar o app =(" fi
c37ee313cf98cadfe58161daf0a12c0990222cc8
211
#!/bin/bash if ! [ -x "$(command -v ffmpeg)" ]; then echo 'Error: ffmpeg is not installed.' >&2 exit 1 fi for i in $(find . -name "*.ogg" -type f); do echo "$i" ffmpeg -n -i "$i" "${i%.*}.wav" done
064dc84560abe4e60aabcd54d18b1fbc9cf364e0
1,237
#!/bin/bash clear #QP=$1 #NumberFrames=$2 #mbmapXxX=$3 #InputFile=$4 echo %####################################################################### echo MV QP=$1 , MV Resolution=$2 echo %####################################################################### #%%%%%%%%%% deleting .265 videos from previous run rm ./HM_...
a0fcc902e8a828fdb4e8c585013e94cd81df8307
828
#!/bin/bash -f # **************************************************************************** # Vivado (TM) v2018.2 (64-bit) # # Filename : simulate.sh # Simulator : Xilinx Vivado Simulator # Description : Script for simulating the design by launching the simulator # # Generated by Vivado on Wed Dec 05 20:52:13 ES...
d08bf2c2eca21ca2318dcb7754094594286358d2
850
#!/bin/bash echo APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') if test -z "$APACHE_USER" then echo "Error: apache user not found "$APACHE_USER exit else echo "Apache user: "$APACHE_USER fi WHOAMI=$(whoami) if test -z "$WHOAMI" then echo "Error: whoam...
7bb5fa064f0223ec978a5bc79ea420de9a9cec99
18,466
#!/usr/bin/env bash #The drush drupal8 installer drops by himself the database if exists ## Anyway if we need to create ti from scratch, just put true to the following variable INSTALL_DATABASE="True" LOCALE="fr" # On http://docs.drush.org/en/master/install/ they note that: ## Drush 9 (coming soon!) only supports one ...
f09ef992b8f5000c29108d350fb47a0ff1111a82
306
#!/bin/bash set -e ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" CRAN_MIRROR=${CRAN_MIRROR:=http://cran.rstudio.com/} echo "options(repos=structure(c(CRAN=\"$CRAN_MIRROR\")))" > ~/.Rprofile echo "R_LIBS_USER=$ROOTDIR/dependencies" > ~/.Renviron exec Rscript $ROOTDIR/run_all_tests.r
bde1f2c3d149a67a8633b47922e701f6a4eaf5e0
2,986
#!/usr/bin/env bash # Copyright 2019 Google LLC # # 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 a...
579ba0935ebe4f94944375d10cbdc356d93c0be1
192
#!/bin/sh <%= @command %> dependencies --install net-ssh <%= @command %> dependencies --install net-scp <%= @command %> dependencies --install excon <%= @command %> dependencies --install fog
65e9f8ae2feb17711d65319060742afb136c0f2d
1,885
#!/bin/bash # panel setup PANEL_HEIGHT=16 PANEL_FONT_FAMILY= PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*" PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-lemon-medium-*-*-*-10-*-*-*-*-*-*-*" PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1" #PANEL_FONT_FA...
65fa756277b50caeb2233d73ba803feb7321b015
90
#!/bin/sh clang-format -i main.cpp clang-format -i header.hpp clang-format -i header.cpp
8efcab35f0260c3971f3972fd684deef21554663
239
javac -Xlint:all SimpleArray.java javac -cp .:../../../resources/junit-4.12.jar TestSimpleArrayMore.java java -cp .:../../../resources/junit-4.12.jar:../../../resources/hamcrest-core-1.3.jar org.junit.runner.JUnitCore TestSimpleArrayMore
ed4cadc5c154323138c1f728d0cbc224b5b70057
1,193
#!/usr/bin/env bash # vim:ft=sh # shellcheck source=/dev/null # Enforce Homebrew to the PATH HOMEBREW_PATH="$HOME/.homebrew" RUBY_PATH=$(if [[ -d $HOMEBREW_PATH/Cellar/ruby ]]; then dirname $(find $HOMEBREW_PATH/Cellar/ruby/*/bin -name "ruby" -print -quit); fi) GEMS_PATH=$(if [[ -d $HOMEBREW_PATH/lib/ruby/gems ]]; the...
631f2d0faf2df5a14118c7c6fc5ce5d3afd59f93
1,009
CUDA_VISIBLE_DEVICES="" python ../tf_cnn_benchmarks.py --local_parameter_device='cpu' --job_name="ps" --worker_hosts="10.0.0.24:43222,10.0.0.24:43223" --ps_hosts="10.0.0.24:42222" --model=$5 --variable_update="distributed_replicated" --task_index=0 & CUDA_VISIBLE_DEVICES=$1 python ../tf_cnn_benchmarks.py --num_gpus=$2...
f65f6c0531d391e389ecd9ac15a131a6e69d202d
78
# MONGO DB DB_USER= DB_PASS= DB_HOST=localhost DB_PORT=27017 DB_NAME=todolist
827a81b95e7d41a21f79e74468e99b6006941a0a
514
#!/bin/bash cqlsh -e "truncate retail.fraudulent_credit_card_use_by_state" capstone cqlsh -e "truncate retail.num_times_fraud_cc_used_in_diff_state" capstone cqlsh -e "truncate retail.fraudulent_cc_by_owner_state" capstone cqlsh -e "truncate retail.amount_spent_by_fraud_cc" capstone cd /root/PBC-Chicago-Capstone-2015...
2aad4f468ab89178e04599e65d18285610983fb0
564
#!/bin/bash source ./utilities/progressbar.sh || exit 1 # Define array of dependencies dependencies=(libcurl4-gnutls-dev libyaml-dev libicu-dev libzip-dev unzip git) ### START DO NOT EDIT AREA ### echo "Installing dependencies ..." dependencies_count=${#dependencies[@]} i=0 draw_progress_bar $i ${dependencies_coun...
1add21d7269970e18ac1c7f19ac4185c49470f4c
3,578
#!/bin/bash module load bedops/2.4.37 shopt -s expand_aliases alias bedops='bedops --ec --header' alias bedmap='bedmap --ec --header --sweep-all' alias closest-features='closest-features --header' ## Parameters trait_snps=$1 # bed/starch file with p-val or log10 bf in column 5 # tr...
eccf3cf94cdadb2370771dc35aa14e7a84a9634d
1,502
#!/bin/bash ###################################################################################### export path=/Users/lynchlab/Desktop/ErinFry/BrainTranscription/Realigning export pathFasta=${path}/data/genome_sequences export pathAnnot=${path}/data/ensembl_annotations export pathOrtho=${path}/data/ensembl_ortho expo...
59ac805bf98b413b9c2be8fd89d75cb8911fd33f
1,327
#/bin/bash -xv : ' cURL通常将下载文件输出到stdout,将进度信息输出到stderr,要想避免显示进度信息,使用--silent ' # -O将下载数据写入文件而非标准输出(URL必须是指向远程文件的),--sileent选项使得curl不显示进度信息 curl www.baidu.com --silent -O # -o用来将下载的数据写入指定名称的文件中,--progress指定显示进度条 curl www.baidu.com --progress -o index.html # 断点续传 # 以指定偏移量进行断点续传,偏移量以字节为单位 curl URL/file -C offset # 让CURL...
958f2416672e3697551e75d84a34b8f301d6cb27
163
#!/bin/bash BASEDIR=$(dirname $0) CURDIR=$PWD cd $BASEDIR git submodule init git submodule update cp ./pom.xml ./volley/ cd ./volley/ mvn clean install cd $CURDIR
3e8220bddadf8f74c74b21706f854036e2435a29
1,150
#!/bin/bash # Your job will use 21 nodes, 588 cores, and 3528gb of memory total. #PBS -q windfall #PBS -l select=21:ncpus=28:mem=168gb:pcmem=6gb ### Specify a name for the job #PBS -N wikiparse ### Specify the group name #PBS -W group_list=msurdeanu ### Used if job requires partial node only #PBS -l place=free:shar...
e24cd6fb473204283c0b3e9efd018d18b979b122
831
#!/bin/bash #$ -l h_rt=%(timelimit)s #$ -N %(runname)s #$ -o %(qsublogname)s #$ -j y #$ -v PATH,PYTHONPATH,LD_LIBRARY_PATH #$ -S /bin/bash %(extra_qsub_params)s echo ----------------------------------------- echo Start: host `hostname`, date `date` if [ -n "$SGE_TASK_ID" ]; then if [ "$SGE_TASK_ID" != "undefined" ...
15fb30e45e99f8e511ef1e959e391701658ba1c9
192
#!/bin/bash FILE=hw4 latex $FILE #bibtex $FILE #latex $FILE #latex $FILE dvips -t letter $FILE.dvi -o $FILE.ps ps2pdf $FILE.ps rm $FILE.log $FILE.aux $FILE.dvi $FILE.ps $FILE.blg $FILE.bbl
271c29f70f7a6c563367b06e3dfceaba6892dafe
92
#!/bin/sh docker container run -d -p 8000:80 -v `pwd`/server:/var/www/html php:5.6-apache
874a879954f9371d1ce28cd5369f407d7456b9a9
184
#!/usr/bin/env bash # This command references the tracksim cli python command and was installed by # the user. To remove the command run `tracksim deregister` ###TRACKSIM_PATH### $@
c86e6c2fde6eb7d7ce69e1a31990d3bcebf2af2f
249
#!/bin/bash set -e set -u set -o pipefail echo "Welcome to GlobaleTraining.com" for x in $(seq 10);do echo $x if [[ $x -eq 5 ]]; then cat /etc/passwd | grp nologin | wc -l echo " A B C" echo $MESSAGE ehco "Found 5!!" fi done
b948fdb35eaa01a3358827e83043bd35b217ed2b
327
#!/bin/sh # This script is used to build the ig500IronCalibExample on unix systems. # Example: ./build.sh gcc -Wall ../../src/ig500IronCalibExample.c -I../../../sbgIronCalibration/src/ -I../../../sbgCom/src/ ../../../sbgIronCalibration/libSbgIronCalibration.a ../../../sbgCom/libSbgComSerial.a -o ../../ig500IronCalibE...
a9909cc9d1e64b129247ae2aacfbd72686fa0113
2,694
#!/bin/sh set -e function info() { >&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Info]" "$@" } function warning() { >&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Warning]" "$@" } function error() { >&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Error]" "$@" } info "NGinx reverse proxy setting" SECRET_FILE="/run/secre...
36a0ab7bb7ebfc3207f5d3dfaeaa5b115a5f1257
99
#!/usr/bin/env bash python3 learn.py boatsimulator_no_obstacle_external --run-id=103 --load --slow
c2526332a464ecc5f2c60819f38fe3fb9201066e
2,188
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net> pkgbase=jbig2dec pkgname=('jbig2dec' 'libjbig2dec0' 'libjbig2dec-devel') pkgver=0.19 pkgrel=1 pkgdesc='Decoder implementation of the JBIG2 image compression format (msys)' url='https://jbig2dec.com/' arch=('any') license=('AGPL') depends=('libpng16') makedepends=...
8f0b0213c218bab65fd2dd5663b42097233b8fcf
133
cd ../mytools ./preempt 1 3 2 100000 0 7 2 #./preempt 2 3 2 100000 0 7 2 #./preempt 3 3 2 100000 0 7 2 #./preempt 3 3 2 100000 1 7 2
a77729b00c4302ba17f7d976e2b723e07f5dc875
6,218
#!/usr/bin/env bash # speech data preparation script # this script assumes that the BTEC raw files (btec-{train, dev-concat, test1, test2}.{fr,en,mref.en}) # are in ${raw_data_dir} # and the Voxygen credentials (wsclient.cred) are in experiments/btec_speech/voxygen raw_data_dir=data/raw/btec.fr-en raw_audio_dir=${raw_...
b60549d4b4bd60b2d4205431ffaf44836b95813a
1,846
#!/bin/bash # builds the software for release - should be run using composer. # this is quick and dirty - hopefully we'll switch to use github actions at some point. composer install --no-dev --optimize-autoloader # make folder if not exists mkdir build # remove existing files if exists rm build/geocore-ce.zip buil...
c3813e2210ceacd68f057eaca3deb7bc1aa6aed4
333
#!/bin/bash -x image_tarball="${1:-/home/vagrant/poky/build}/tmp/deploy/images/qemux86-64/container-build-appliance-qemux86-64.tar.bz2" docker_build_dir="$(realpath $(dirname $0)/../misc/docker/build_appliance/)" cp ${image_tarball} ${docker_build_dir} \ && sudo docker build -t yocto-build-appliance-x86_64 ${docke...
c0a17859f73aa14642fd31e11ab64bb995ac7f3a
1,622
export ZSH=/home/omelkonian/.oh-my-zsh # ZSH_THEME="random" CASE_SENSITIVE="true" # ENABLE_CORRECTION="true" # COMPLETION_WAITING_DOTS="true" plugins=(git colored-man-pages colorize extract history cabal pip zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh HIST...
fa908b34b0fbd33a5d9099c0c68d4a15c7caac37
392
#!/bin/bash # Joshua Bearden # CS2750 PA2 # Date 19/09/2017 if [ $# -gt 0 ] then total=$1 else total=20 fi for (( i = 1 ; i < $(($total+1)) ; i++ )) do if [[ $(( $i % 3 )) -eq 0 && $(( $i % 5 )) -eq 0 ]] then echo fizzbuzz elif [[ $(( $i % 3 )) -eq 0 ]] then echo fizz elif [[ $(( $i %...
13608e7d38169cabb5599df679d506e6dad4cec6
1,508
#!/bin/bash COMUM="--group_reporting=1 --directory=$PWD/fiotest --iodepth=1 --ioengine=mmap --filename_format=CAPPcache.\$jobnum --output-format=normal,terse" sequencia="1 2 4 8 12 20 26 28 36 44 56 60 76 92 124 220" cache=12000 nvCPUs=$(nproc --all) maxPG2=$((nvCPUs - 4)) for ncores in $sequencia; do if [ $ncores...
e65bce56a39db2fec3a9c66ace0c554ccfa6a737
1,050
#!/bin/sh -e PHP=$(which php) MYSQL=$(which mysql) # SETTINGS FROM Postfixadmin _settings=$($PHP --no-php-ini -d open_basedir=NULL << 'EOF' <? include('/usr/share/webapps/zarafa-postfixadmin/config.inc.php'); echo $CONF['configured'] . "\n"; #1 echo $CONF['database_host'] . "\n"; #2 echo $CONF['da...
7af4876d73df38b77bea465d62f9b3a6e793cd6c
147
#!/bin/bash -xev echo "Download table_scene_lms400.pcd" wget https://raw.github.com/PointCloudLibrary/data/master/tutorials/table_scene_lms400.pcd
8282951bda4e4c7f6965ba318b759f84f1264d11
1,977
#!/bin/bash source $msrg/scripts/msrg-set-env.sh source msrg-set-input.sh $1 echo "Directory: $i" echo "FASTQ file: $i.fastq" echo "Organism: $organism" echo "Adapter: $adapter" echo "Cutoff: $cutoff" echo "Window: $window" echo "Reference Dir: $refdir" #Define value of the flag # 0 for Wolbachia, 1 for virus and ...