blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
80962fc12b3169c30d0b6a6b7553bbecf3f28486
622
#!/bin/sh which py > /dev/null 2>&1 if [[ $? == 0 ]]; then echo "Running in Windows" PYTHON='python' py -3 -m venv testenv3 source testenv3/Scripts/activate else echo "Running in Linux" PYTHON=python3 python3 -m venv testenv3 source testenv3/bin/activate fi git stash ${PYTHON} -m pip i...
051b4732b13a8c940aea789c479f66b544a77702
54
cd rivescript-perl/ perl rivescript.pl -u ../eg/brain
3387b0683f1c60588c9405b6c70697f4f5fc7904
2,842
export HOMEBREW_CHANGE_ARCH_TO_ARM=1 export HOMEBREW_NO_INSTALL_CLEANUP=1 export HOMEBREW_NO_AUTO_UPDATE=1 export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 core_repo="$(brew --repository homebrew/core)" deps_file="$GITHUB_WORKSPACE/.github/deps/${ImageOS:?}_${ImageVersion:?}" # configure git git config --local user.ema...
8fb7e2f519edaf57040fe6806aa7397daebd4a74
611
#!/bin/sh # link bindings BINDINGS_CONFIG_FILE=$OPENHAB_DIR/configurations/bindings.list BINDINGS_CONFIG_DIR=$OPENHAB_DIR/addons # set current user as owner of config files chown -R `whoami` $OPENHAB_DIR/configurations if [ -f "$BINDINGS_CONFIG_FILE" ] then # Link each line of bindingsfile while read -r line do...
f59e5931ec28895435a9600059e5aad8a28d9bb1
157
#!/bin/bash set -xe git clone https://git.openstack.org/openstack/openstack-helm-infra.git git clone https://git.openstack.org/openstack/openstack-helm.git
fa6569696496174ade75dcf7f22e37f763285bc7
4,015
#!/bin/bash set -e -x echo "This test ensures that Director can be deployed in hybrid IPv4+IPv6 configuration" apt-get -y update apt-get -y install wget echo "-----> `date`: Starting docker" source bosh-ipv6-acceptance-tests/ci/docker-lib.sh export OUTER_CONTAINER_IP=$(ruby -rsocket -e 'puts Socket.ip_address_list...
074133de80920b0ac975e1c726fa5b0fe6752703
733
#!/bin/bash set -e eval $(opam config env) export Z3=z3-4.4.1-x64-ubuntu-14.04; export PATH=/home/travis/build/mitls/hacl-star/$Z3/bin:$PATH; export PATH=/home/travis/build/mitls/hacl-star:$PATH; export PATH=/home/travis/build/mitls/hacl-star/FStar/bin:$PATH; export PATH=/home/travis/build/mitls/hacl-star/kremlin:$PA...
ceb03aea2528f6aaeacc0ccd3b38183d02b25c14
5,706
#!/bin/bash clean="\e[0;32m[clean]\e[m" dirty="\e[1;31m[dirty]\e[m" localStatusUnknown=" " committed="\e[0;32m[ committed ]\e[m" uncommitted="\e[1;31m[uncommitted]\e[m" serverStatusUnknown=" " colorNONE="0;33" colorSVN="1;35" colorGIT="1;36" colorGIT_SVN="1;36" colorCurrentBranc...
ed883c1a7db637d11ab2513e9993597bcb44fe0b
96
#!/bin/sh -e image="mariadb-image" docker build -t $image . #docker run -it -p 3306:3306 $image
c5103ba71f6924f6fe68a980f5e8a7e3b282d806
174
#!/bin/sh /usr/sbin/networksetup -setdnsservers Wi-Fi 10.151.144.34 10.7.71.33 10.7.70.33 /usr/sbin/networksetup -setdnsservers Ethernet 10.151.144.34 10.7.71.33 10.7.70.33
e3f00edd186c13931d88e67d3ccb3dcfcabafee6
880
#!/bin/bash # # clab framework # (c) 2011, Antony Pavlov # # build script for openbios firmware. # OPENBIOS_BUILD_CFG=$1 if [ ! -f "$OPENBIOS_BUILD_CFG" ]; then echo "no file $OPENBIOS_BUILD_CFG" exit 1 fi OPENBIOS_BUILD_CFG=$(cd $(dirname $OPENBIOS_BUILD_CFG); pwd)/$(basename $OPENBIOS_BUILD_CFG) . $DIST_DIR/func...
f6db9e36c743af1f2233f22ff1fdec708cffb0e0
263
#!/bin/bash chmod -R 777 var/logs/ chmod -R 777 var/cache/ chmod -R 777 var/sessions/ php bin/console doctrine:schema:update --force rm -r var/logs/* rm -r var/cache/* rm -r var/sessions/* chmod -R 777 var/logs/ chmod -R 777 var/cache/ chmod -R 777 var/sessions/
4b18a0ed4dc5586b2760bbf3165cd4d5a3769548
97
#!/bin/bash set -e # proxy remote requests ember server --proxy http://0.0.0.0:5000 exit #EOF
1f11b52f1ae53e6414abbe72854da4e3bf15c7ab
117
conda config --append channels conda-forge conda install slycot control. pip install -r requirements.txt mkdir files
4e9bbc9aa420b42bc00e7ca9478e4d5e13efb7bd
454
#!/bin/bash # -------------------------------------------------------------------------- # Post-Update # Run this after any OSX update to make sure everything else is current # -------------------------------------------------------------------------- source $HOME/.dotfiles/scripts/brew.sh source $HOME/.dotfiles/scrip...
94c843599412f973b8fb6a703dcadac1550883e3
18
echo "I am v3112"
97e5dc75163458251f95e40be65e68ef07bb9e86
65
https://t2vabquga4.execute-api.us-east-1.amazonaws.com/dev/stream
3abf01200efba657a94654f06963901792ef6294
4,654
#!/bin/bash ## !IMPORTANT ## # ## This script is tested only in the generic/ubuntu2004 Vagrant box ## If you use a different version of Ubuntu or a different Ubuntu Vagrant box test this again # echo "[TASK 0] Setting TimeZone" timedatectl set-timezone Asia/Shanghai echo "[TASK 1] Setting DNS" cat >/etc/systemd/reso...
14061dfedbee7f471cf4f7d308b0112dc638d28e
145
#!/usr/bin/env bash OUTFILE=/scp/install.synergycp.com/bm/integration/whmcs/synergycpbasic.zip zip -r "$OUTFILE" . -x ".git*" ".idea/*" "bin/*"
591dcc5fcf953978e6544e47a9e87861a0da5719
2,589
#!/bin/bash # version 0.3.0 # If submitting jobs to a cluster with SGE, set the variables # below and the environment variables starting with #$. Otherwise, you # can submit arguments to commandline #$ -cwd #$ -j yes #$ -V #$ -N name #$ -pe mpi 4 echo "Hostname: $HOSTNAME" echo "Task started `date`" echo "if runni...
67f8334ae7ea8f90a79c621f7027aae8bf237a08
1,126
#!/bin/sh #----------------------------------------------------------------------- # Helper functions (miscellaneous) #----------------------------------------------------------------------- CONSOLE_CYAN="\033[1m\033[36m"; CONSOLE_NORMAL="\033[0m" CONSOLE_YELLOW="\033[1m\033[33m" printMsg() { printf "${CONSOLE_CYAN}#...
9e260db75fa4f92132f1b8737c4803ce1800da66
137
REACT_APP_API_URL= REACT_APP_DRIVE_SIGN_IN_URL= REACT_APP_CLIENT= REACT_APP_DRIVE_CLIENT_ID= REACT_APP_DRIVE_SCOPE= REACT_APP_SKIP_EMAIL=
e767ebd2cd63b0907f545ba2a6339c986ab8c638
268
#!/bin/sh curl \ --header "Content-type: application/json" \ --request POST \ --data '{"symbol": "TSLA", "url": "http://finance.yahoo.com/news/best-selling-car-norway-tesla-113037330.html", "notes": "Norway loves Tesla"}' \ http://localhost:8080/research_links/add
ea171fdb3a59d1f9149d4ca1c396a90b7fd51254
104
#!/bin/bash case $BLOCK_BUTTON in 1) mpc -q prev ;; esac echo  pkill -SIGRTMIN+12 i3blocks
a80035722e952ce14cf8ba645aaa9c0971cf39a5
1,383
#!/bin/bash setup_target() { TARGET_LAUNCH="cd ~/qemu-img; bash boot.sh \"$1\" \"$2\" \"$3\"" TARGET_CONNECT="ssh localhost -p 7777" TARGET_SCP="scp -r -P 7777 localhost" } launch_target() { local i for i in `seq 1 10`; do QEMU_EXIST=`ps aux | grep qemu-system | grep ubuntu | wc -l` if [ "$QEMU_EXIST" == "1...
a3d906e44f3a2ec683fcfed69739f659dda712aa
599
#!/bin/sh dmenu_cmd() { rofi -i -fuzzy -dmenu -p "$1" } power_options="lock\\nlogout\\nsuspend\\nhibernate\\nreboot\\npoweroff" selected_power_option=$(printf "%b" "$power_options" | dmenu_cmd "power") [ -z "$selected_power_option" ] && exit case "$selected_power_option" in "lock") lock ;; "logout") ...
036fe2f3b25087da7be706fd4af2352def6c53b1
399
#!/bin/bash x=$0 y=`expr $x : '\(.\)'` if [ "$y" != "/" ] ; then x=`pwd`/$x fi x=`echo $x | sed "s+/\./+/+g" | sed "s/\/\//\//g"` SYN_PRGM=`expr $x : ".*/\([^/]*\)"`; export SYN_PRGM; SYN_HOMEDIR=`expr $x : "\(.*\)/[^/]*/[^/]*"`; export SYN_HOMEDIR; . $SYN_HOMEDIR/bin/config/...
e23d22a53acdd97efc77dccce6cbcf6d29fe5258
264
source ./usage.sh # sets the default usage function for all files in this directory # 'example' must be given as argument if [ -n "${1:-}" ] && ! [ "${1}" = 'usage' ]; then declare usageFiles="" # disable file listing for arguments after 'example' argument fi
1b5f98b4808809aae66adae812380ffc9f8b2388
707
#!/usr/bin/env bash/scratch/meliao/spredixcan_mashr/input_extracted module load gcc/6.2.0 module load python/3.5.3 python3 /gpfs/data/im-lab/nas40t2/abarbeira/software/genomic_tools/gtex/src/misc/check_log.py \ -jobs_folder jobs_en_mashr_eqtl \ -logs_folder logs_en_mashr_eqtl \ --name_subfield_regexp "(.*)__PM__(.*)...
15a45b9017327ec221ca25070161f413ff3a48a2
333
#!/usr/bin/env bash dotnet restore src/EventStore.ClientAPI.NetCore/project.json dotnet restore test/EventStore.ClientAPI.NetCore.Tests/project.json dotnet build src/EventStore.ClientAPI.NetCore/project.json dotnet build test/EventStore.ClientAPI.NetCore.Tests/project.json dotnet pack src/EventStore.ClientAPI.NetCore/...
281ad6f704e5a368e1cea69ffe7b971885f8d9a2
51
#!/usr/bin/env sh kubectl-open_svc __complete "$@"
61d81df11b0a24f48fdc47f964f2c297cad3bc20
90
#!/bin/bash PATH=$PATH:/om/user/ksitek/scripts/mrtrix3/release/bin python mrtrix_dti.py
dddf09c058caa518123bd8280f6fd5cc4865a9c5
61
#! /usr/bin/env bash ln -s ${PWD}/gitconfig $HOME/.gitconfig
90c60cc118f94e726c74f26e6cd94d092cdc0009
2,066
COLMAP=$1 SCANPATH=$2 WORKPATH=$3 set -e PTPATH="$SCANPATH/colmap/" if [ -f $PTPATH/cloud_total.ply ] then echo "$PTPATH already exists -- skipping" exit 0 fi rm -rf $WORKPATH # copy all the input images to a separate folder IMGPATH="$WORKPATH/tmp_imgs/" rm -rf $IMGPATH mkdir -p $IMGPATH cp $SCANPATH/*.png ...
c5f2dab40eb7803faf87beb79d4d4e0a88e6dc71
5,245
#!/bin/bash ## USER SETTINGS RUN_PIPELINE='/home/gbsuser/tassel-5-standalone/run_pipeline.pl' ENZYME='KpnI-MspI' KEYFILE='key.txt' #TAXA='IBMGBSTaxaList.txt' #TNAME="IBM" INPUT_DIR='fastq/' REFSEQ='/home/gbsuser/nipponbare_ref/IRGSP-1.0_genome.fasta' VCFTOOLS='/home/gbsuser/tool/vcftools_0.1.13/cpp/vcftools' ## ANAL...
3cf24bb28838a0e8c23ef215d396cc6e9e54bf4f
329
export SWALS_SRC='../../src' source ${SWALS_SRC}/test_run_commands # Clean existing binary rm ./circular_island_testcase rm -r ./OUTPUTS # Build the code make -B -f make_circular_island > build_outfile.log # Run the job eval "$OMP_RUN_COMMAND ./circular_island_testcase > outfile.log" # Plot it and report tests Rscrip...
273ca3345c493d3417c3f2d25efdc716e68d24c7
687
#!/bin/bash # Create a safe temporary file to write to FILE=$(mktemp /tmp/tab_check.XXXXXXXXXX) || exit 2 # Check for tabs in the repo and output the filenames to the temp file if [ -e "/etc/lsb-release" ]; then # Linux grep options grep -IrlP "\t" . | grep -Ev "(^...git|kitchen|./ubuntu-bionic)" > "${FILE}" else...
62c94c866dd4562bb5c0d10cbbfa8e49c14c1820
1,070
#!/bin/bash set -e ############################################################################### # 0. Usage and assertions usage () { echo "Concatenator script of sample XMLs." echo "@groodri, 2021" echo -e "\nUsage:\n$0 [XML folder] [output folder] [-h, --help]\n" echo "Please provide a folder with XML files ...
9aff5a61d277ca075c3f7bdc7da35804cee67883
693
#install java apt-get update apt-get install openjdk-8-jre -y #update-alternatives --config java #note that default broker.id = 0 export ZOOKEEPER_VERSION=3.4.11 export SCALA_VERSION=2.12 export KAFKA_VERSION=1.0.0 export KAFKA_HOME=/opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION" export KAFKA_DOWNLOAD_URL=https://archiv...
6491846abacb37530536f90d0e8a18b0759512c2
969
#!/bin/bash set -euo pipefail # More info: https://github.com/GoogleContainerTools/container-diff if (( $# < 1 || $# > 2 )); then echo "Need 1 or 2 arguments: <img1> <img2>" exit 1 fi if (( $# == 1 )); then container-diff analyze $1 --type=history 2>&1 | tee -a analyze-history.txt container-diff ana...
c416e7804f519bb0376378275c1a2beaf2af6dfd
1,064
#!/usr/bin/bash source admin-openrc cmd_openstack=$(which openstack) cmd_grep=$(which grep) # Create the glance user $cmd_openstack user list | $cmd_grep glance if [ $? = 0 ] then echo "glance service already available" else openstack user create --domain default --password pramati123 glance fi # Add the adm...
26c013c2dc134b870efefc50b98c8232e7af8a35
123
#! /usr/bin/bash # here-doc in bash: cat << heredoc This is one line This is two line : ' multi-line comment' heredoc
8d32c639d75ef086bbac484c4b992ff53ce407a3
358
#!/usr/bin/env bash # # for debugging/exploration #echo "Debugging the track: $(runghc --ghc-arg="-i src" src/AC/Dec13.hs 1-debug test/data/dec13_input.txt)" echo "Solution for problem 1: $(runghc --ghc-arg="-i src" src/AC/Dec13.hs 1 data/dec13_input.txt)" echo "Solution for problem 2: $(runghc --ghc-arg="-i src" src...
069339ffa61db352e8a2260f5d2b2602f8b0818a
1,857
BUILD_NUM=LOCAL CONNECTIONSTRING=Endpoint=sb://iothub-ns-bpnsgte-ev-5534530-72f3a51912.servicebus.windows.net/;SharedAccessKeyName=service;SharedAccessKey=eLDdComO5qtprghsA1ibGYP0Puq/iDwDHhq1yquvM4M=;EntityPath=bpnsgte-evc-iothub URLSERVER=https://internal-app2-dv.banpunext.co.th/evc-bo-api/iot/charger/transaction HOS...
743579b9b550006815e6139add531de0a78bc6b4
666
run () { curl -X $1 -H "Content-Type: application/json" -d "$3" "http://localhost:5000/api/$2" } echo STARTING TESTS----------------- rm data.csv data=`jo token="dun-serb-thief-plank" category="cat" task="first" start_datetime="2019-04-01T09:00:00"` run POST start "$data" data=`jo token="debug password"` run GE...
c2e1f7920d2cad8b077e1d378edea5c999725696
11
../addfs.sh
d28b8b7703012d2afdb28ccca84a3e6cca1acebb
679
#!/bin/bash if [ -z "$(which fswatch)" ]; then echo "fswatch not installed." echo "In most distros, it is available in the inotify-tools package." exit 1 fi GITHUB_DIR="~/_/install" WATCH_LIST=".zshrc .p10k.zsh .fzf.zsh .fzf.bash .vimrc .gitconfig" for FILE in $WATCH_LIST; do echo $FILE ABS_PATH...
f8af47358856469b4f5672133eb6ea76cd553f07
180
COOKIE_SECRET=nodeplacesecret MONGO_ID=root MONGO_PASSWORD=nodejsbook PLACES_API_KEY=AIzaSyCx3OLgVcYfu6M-75rQcPVcLWPEsJqmock YOUTUBE_API_KEY=AIzaSyA2YCRN1XhAdSVjKi6jOBkFKIAlmVDrZ98
021f6d86dbf5cfccb1bbedb9991dd3968ff94c72
806
#!/bin/bash echo "Starting Execution of Test Suite" echo "--------------------------------" successes=$((0)) failures=$((0)) cd profiler for testDir in */; do testName="${testDir%?}" echo -n "Running test [$testName]: " cd $testName /usr/bin/time -f "\tUser Time: %U\n\tSystem Time: %S\n\tWall Clock: %E" ...
f74727b44e67363ad33f2d4246cddd82c42b581f
4,009
#!/bin/bash # The cp/rm steps are so that the packed biber main script is not # called "biber" as on case-insensitive file systems, this clashes with # the Biber lib directory and generates a (harmless) warning on first run # Have to explicitly include the Input* modules as the names of these are dynamically # constr...
e3b2650cf2c300af02681d5cd8f0d0e99e704ea8
346
#!/bin/bash # Whitelist Script for Phishing.Database # Contributed by Alex Williams - https://github.com/mkb2091 # WhiteList IPs uhb_whitelist -f ${TRAVIS_BUILD_DIR}/ips.list -o ${TRAVIS_BUILD_DIR}/ips.list -w ${TRAVIS_BUILD_DIR}/whitelist.me/whitelist.me # ********************** # Exit With Error Number # *********...
8f0a8f742f994ed83f44d6ef08dfc6ede764c4b0
687
#! /bin/bash echo "install the kernel & headers ..." echo "...... version 4.12.1 ......" rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org yum install -y https://github.com/malaohu/ruyo-shell/raw/master/CentOS6-X64-Kernel/4.12.1/kernel-ml-4.12.1-1.el6.elrepo.x86_64.rpm yum remove -y kernel-headers yum install ...
25972bb5d9ed8d7d18bfe732d15633a688504fd5
867
#!/bin/sh # # $NetBSD: opensmtpd.sh,v 1.3 2023/08/24 15:26:40 vins Exp $ # # PROVIDE: smtpd mail # REQUIRE: LOGIN # KEYWORD: shutdown # we make mail start late, so that things like .forward's are not # processed until the system is fully operational $_rc_subr_loaded . @SYSCONFBASE@/rc.subr name="smtpd" r...
6b6b005b309918de78b3dff928f15196cefc5e6a
193
#! /bin/sh # If database exists, migrate. Otherweise setup (create and migrate) bundle exec rake db:migrate db:seed 2>/dev/null || bundle exec rake db:create db:migrate db:seed echo "Done!"
50a74cc69d0507c8a10590f7beda0a2d6ffa8c99
1,771
#!/bin/bash # print usage message if wrong # of arguments if [ ${#} -ne 2 ]; then echo Usage: ${0} suite_file program >&2 exit 1 fi # conducts tests for filestem in $(cat "${1}"); do HASARGS=$((0)) HASINPUT=$((0)) ls -l | egrep "^.r.*${filestem}.out" > /dev/null if [ ${?} -ne 0 ]; then echo ...
bb0dfdd5badf2689d27a289043b47b6c9bae8f08
310
#!/bin/bash # This script converts a PAM file to a PPM file, viewable with xv. # if [ $# -ne 1 ] then echo "Usage: pam2ppm input-file.pam" exit $E_BADARGS fi export LD_LIBRARY_PATH=/projects/streamit/tools/pam-viewer /projects/streamit/tools/pam-viewer/pamtotga $1 > $1.tga tgatoppm $1.tga > $1.tga.ppm
6750a1828d28b79773e2a9e5853a7583e331600a
3,743
#!/bin/bash width=$1 height=$2 scale=$3 i=0 while [ $i -lt $width ]; do networkInArray+=(0) networkOutArray+=(0) let i=i+1 done function displaytime { local T=$1 local D=$((T/60/60/24)) local H=$((T/60/60%24)) local M=$((T/60%60)) local S=$((T%60)) (( $D > 0 )) && printf '%d days ' $D (( $H > 0 )) &&...
1e38b18cd7830d5a1cb6e82b1e1b62d61d9270d3
386
#!/bin/bash #git remote add origin git@github.com:xiaogangfan/framework.git #check parameters if [ "$#" -eq "1" ];then echo "param:$1" else echo "Usage: `basename $0` first parameter" echo "You provided $# parameters,but 1 are required." exit 2 fi #execute git command git status git add . git commit -...
2869a0beb7086f32ffa6aa88f74754d2e4ec7158
55
#/bin/bash java -cp dist/JFuzuli.jar Compiler.Main $1
6482ea6114d107b6dfb04648f8b04871f89d95bf
426
#!/usr/bin/env bash . config.sh GROUP=$1 if [ -z $GROUP ]; then echo "Please enter the Group you want to check, EX: ./new_consumer_group.sh logstash_group13" echo "Following are avalible new consumer groups:" $KAFKA/bin/kafka-consumer-groups.sh --list \ --bootstrap-server $BOOTSTRAP exit 0 fi...
d1b89c20c6708f590ced442dfe15df838fe519c3
819
#!/bin/bash #To create new user: usage(){ cat << EOF Usage format: ==================================================== password.sh [-u] <USER_NAME> [-p] <PASSWD> options: u - Pass Username p - Set Password ==================================================== EOF exit 0 } while getopts ":u:p:h" ...
a44246e23eb7b22250d7e1391b1ce113148b0452
283
#!/bin/bash cat << _end_ | gnuplot set terminal postscript eps color set output "grafico5.eps" set key right bottom set xlabel "Etiqueta eje X" set ylabel "Etiqueta Eje Y" plot 'Datos5.txt' using 1:2 t "Tiempos medidos" w l , 'Datos5.txt' using 1:3 t "Tiempos estimados" w l _end_
34ba6f0fe8f6f074e858889911f1805db8ce80d3
2,248
#!/bin/sh CATTER="" if type bat &> /dev/null; then CATTER="bat -p --paging=never --wrap=never" else CATTER="cat" fi eval $CATTER <<POKE  ▄▄▄▄ ▄▄   ▄▄ ▀[48;5;1...
663f1f5d2798ff1b2f0479b09fe024ff7d17f841
1,808
#!/bin/bash # для работы этого скриптта необходимо установить apt install imagemagick возможно понадобится sudo apt update # после установки выполните скрипт sh build_tile.sh map.png # папка с файлами пирамиды должна называться tiles и лежать в корне workspace (svg) if [ $# -eq 0 ] then echo "Please choose a sou...
53d891d9598688d9f48d2810b1553ef426dfa714
525
#!/bin/bash a=$1 n=$(find $a -maxdepth 0 -type f | wc -l) if [ $n == 0 ] then echo "There is no file $a located in your current directory" else b=$(echo $PWD) cd g=$(find Trash -maxdepth 0 -type d | wc -l) cd $b if [ $g == 1 ] then mv $a /home/nrhines/Trash echo "...
8a1bcd166c2031036c3fd2cde12eafeed168fe91
1,239
#! /bin/bash -ex # Publish a sha and/or branch to gh-pages. # # publish.sh <sha> # # Will cause the repo to be published under # https://fergald.github.io/virtual-scroller/versions/<sha> # and # # publish.sh <branch> # # will figure out the sha for that branch, publish that and # link versions/<branch> to that sha. if...
5a9e3535216d85d6b8a69cb5a6ba606ff789ff4b
66
#!/bin/sh #set home directory export HOME=/locations exec vorta
e839f64439a624857980cbb699244e5d131fb29a
142
start=$1 end=$2 mkdir ciku for((i=$start;i<=$end;i++));do link=`sed -n $i"p" download.list` wget -P ciku/ "$link" #sleep 1 done
9ae315eaa65da772e71b3b8b4b561fade6fd0918
529
# .bashrc # load global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc elif [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrc fi # load local definitions if [ -f ~/.bashrc.local ]; then . ~/.bashrc.local fi # get environment variables if [ -f ~/.env ]; then . ~/.env fi # test for an non-interactive she...
907051f9a8c2bfcaceda1f759315896600a62717
372
#!/bin/bash #PBS -q secondary #PBS -l nodes=1,flags=allprocs #PBS -l walltime=00:30:00 #PBS -N gs5_s_Ndet2_gsw0.0_89 #PBS -e gs5_s_Ndet2_gsw0.0_89.perr #PBS -o gs5_s_Ndet2_gsw0.0_89.pout module load openmpi/3.1.1-gcc-7.2.0 module load intel/18.0 cd ${PBS_O_WORKDIR}/run1s/ mpiexec ../../../../mainline/bin/qwalk gs5_s_N...
34e49ddd77346f389f108710f75fcee3f70b9dc8
454
#!/bin/sh # Start/stop/restart OpenSMTPD. # Start OpenSMTPD opensmtpd_start() { if [ -x /usr/sbin/smtpd ] then echo "Starting OpenSMTPD" /usr/sbin/smtpd fi } opensmtpd_stop() { smtpctl stop } opensmtpd_restart() { opensmtpd_stop sleep 1 opensmtpd_start } case "$1" in 'start') open...
3e3a7471c5b61c14713a6d1250a858e3c4fac958
34
MAPBOX_KEY = OPEN_WEATHER_KEY =
2fe1d1dd67c46a633bb9e8bf2e4935ae77e90013
326
#!/bin/bash # stop any old running servers echo $PATH #npm --version #npm ls express #node app/index.js curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash . ~/.nvm/nvm.sh nvm install node npm install express npm --version npm ls express nohup node /home/ec2-user/app/index.js > /dev/null ...
88e9018e85c798c4171447c2024ba64d0062bf6e
43
#!/bin/sh exec /usr/libexec/getty Pc ttyv4
4518d31bf28563ebb13b4a0af6efaf02b2f163dc
868
#!/bin/bash IMAGE=${1:-kurron/docker-firefox:latest} AUDIO_GROUP_ID=$(cut -d: -f3 < <(getent group audio)) VIDEO_GROUP_ID=$(cut -d: -f3 < <(getent group video)) USER_ID=$(id -u $(whoami)) GROUP_ID=$(id -g $(whoami)) # Need to give the container access to your windowing system xhost + CMD="docker run --env HOME=/hom...
c13a7a86ff7c1f7d8341d04976dffd7614e80a38
105
#!/bin/sh ffmpeg -f video4linux2 -i /dev/v4l/by-id/usb-046d_0809_F15A496F-video-index0 -f webm file.webm
b87d6def7b04d012ecaaa64233697aee661f4f7c
295
#!/bin/bash vmd -dispdev text -e sa.tcl #a will be pattern name #read -p "Enter pattern: " b b="k2l6" for a in water_data sasa radius_of_gyration rmsd hbonds_pnp hbonds_pnw do sed "s/PARAMETER/${a}/g;s/PATTERN/${b}/g" average_errorbars_new.py > run.py python3 run.py #rm run.py done echo "DONE"
c9e5e48ffcc65c7596af5182d0749541dd36196a
382
export issuer=urn:gov:gsa:SAML:2.0.profiles:sp:sso:localhost export assertion_consumer_service_url=http://localhost:4567/consume export idp_sso_target_url=http://localhost:3000/api/saml/auth2018 export idp_slo_target_url=http://localhost:3000/api/saml/logout2018 export idp_host=localhost:3000 export idp_cert_fingerprin...
09357402be7a58f40fba13c74d758223d1ff7b32
1,144
#!/bin/zsh typeset -A packages # suckless-tools = dmenu # xloadimage = background-image and fill borders with background-color # xscreensaver = lock workspace packages=(xmonad 'xmonad xmobar suckless-tools xloadimage xscreensaver' colordiff colordiff screen "screen" "rxvt-unicode-256color" "rxvt-unicode-256color" git ...
fa058cd3a9d91b8006dee0ffc2464d35edc90f00
1,394
#!/usr/bin/env bash # this script should be run from inside the extras/ subdirectory cd .. # move up one level into top-level extempore directory SRC_DIR=$PWD # uncomment this next line if you want to test the full "pull down LLVM" behaviour # unset EXT_LLVM_DIR if [ ! -f $SRC_DIR/extras/integration-test.sh ]; then...
41157b96dc3dbd0074062682ce3960d761b115d5
6,571
#!/bin/bash clear export START=$(date +%Y-%m-%d\ %H:%M:%S) echo "########## QUESTÃO 01 ##########" echo "Empacotar e compactar o diretório /etc no arquivo /tmp/bkp_etc.tar.gz" inspec exec https://raw.githubusercontent.com/instrutordocker/labs/master/lab12.1.tar.gz | tail -1 | awk -F" " '{ print $3,$4,$5,$6}' export...
932deda30afe74246833c92ea5c779e1eafb2e9a
184
#!/bin/bash # E_WRONG_ARGS=85 script_params="-a -h -m -z" number_expected=4 if [ $# -ne $number_expected ] then echo "Usage: `basename $0` $script_params" exit $E_WRONG_ARGS fi
4542e02031facddd4305fd21b5d60ad9a66dc7f3
1,817
#!/usr/bin/env bash set -e includeScriptDir() { if [ -d "${1}" ]; then for FILE in "${1}"/*.sh; do echo "-> Executing ${FILE}" . "${FILE}" done fi } cronLog() { echo "$(date '+%F %H:%M') Cron '$(basename ${0})': ${1}" } createFolder() { if [ ! -d ${1} ]; then m...
4fa39d6315b93d494936ee46a5daa25f3c144439
189
# Database configuration DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=workout_app DB_SCHEMA=public DB_USER=postgres DB_PASSWORD=postgres pg_dsn=postgresql://postgres:pass@url/db CF_TUNNEL=
8a0478ef7e2f126679a4dfdf28ef579e4a5434e2
711
#!/bin/sh # set -e export RESOURCE_GROUP="team12-challenge2-rg" echo "Creating resource group" az group create --name ${RESOURCE_GROUP} --location westus2 export EH_NAMESPACE="team12-eh-namespace" echo "Creating Event Hub Namespace" # Create an Event Hubs namespace. Specify a name for the Event Hubs namespace. az eve...
95fa6ed85cc24930252112a8fab49e88c3200942
164
#!/bin/bash for i in $(seq 1 27) ; do echo "downloading $i ..." wget -q http://download.java.net/jdk8/docs/api/index-files/index-$i.html -O api_$i.txt done
9dd51ef6b37a1ddf0cca0a2cfcf45b60618b48e8
225
#!/usr/bin/env bash set -eo pipefail if [[ "$DEBUG_CI" == "true" ]]; then set -x fi if [[ "$COVERAGE" == "true" ]]; then cd "${TRAVIS_BUILD_DIR}"/build lcov --list coverage.info coveralls-lcov coverage.info fi
12bfefcbc762720497bea0c25a7c67cadbc4a8bf
279
#!/bin/sh # # warreq - 2016 (c) UNLICENSE # list windows only for the current display (the one with the $(pfw)) # depends on: current-disp CUR_DISP=$(current-disp $(pfw)) for wid in $(lsw); do if [ "$CUR_DISP" = "$(current-disp $wid)" ]; then echo $wid fi done
28aad749678432b494903c366fbd462c6e876875
180
bosh delete-deployment -d paasta-on-demand-service --force bosh delete-release paas-ta-on-demand-release rm -r dev_releases rm -r .dev_builds/ rm -r paasta-on-demand-release.tgz
aeacceeb5896b10379dcfeb277ba140fd6c02982
780
#!/bin/bash set -ex # Vars SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_DIR=$SCRIPT_DIR/.. # Install tools echo "*** Install kubectl ***" sudo apt-get update && sudo apt-get install -y apt-transport-https curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - sudo t...
46a09938c921d81c5ecdc81b39cf22808093fa79
233
#!/bin/bash cd /Volumes/Drobo1/fred/OD_data while [ 1 ] do odfile=`date | sed -e "s/ /_/g" -e "s/:/_/g" `.OD.txt echo "(re)starting service w/ output saved to $odfile" /Volumes/Drobo1/fred/ODv2/dataServer 8578 $odfile 7252 done
a4e644f526ec4b49ac4835191653aa23f35b8845
1,246
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) # TODO: is there any specification about autostart directories/files? # is $XDG_CONFIG_HOME/autostart useful besides those .desktop? function autostart { if [ -s "$XDG_CONFIG_HOME/autostart.sh" ]; then . "$XDG_CONFIG_HOME/a...
0dc8e359d94ff138c6598d403de490097d838aea
4,764
#!/bin/sh #SBATCH --job-name test #SBATCH --nodes 2 #SBATCH --tasks-per-node=1 echo "Number of tasks,number of bins,number of elements,execution time" mpirun --mca btl_base_warn_component_unused 0 q2a_class4 10 mpirun --mca btl_base_warn_component_unused 0 q2a_class4 50 mpirun --mca btl_base_warn_component_unused 0 ...
a2f280e6498184f3b5437c1b555740bc078a35ea
135
#!bin/bash /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac -classpath ../../lib/max.jar -d derived **.java
f5484682d69d0b228d168c501116316c43739b4e
336
#!/bin/bash cd $(dirname $0) cat protocols/protocols.txt | while read line do if [ -z ${line// } ]; then continue fi split=($line) proto="protocols/${split[0]}" dst="generated/${split[1]}" set -x dotnet run -- $proto $dst { set +x; } 2>/dev/null done set -x cp generated/* ../../src/Backends/Wayl...
73c3449f34dfb4e535beb0062fbb4c2671ef9baa
71
#!/bin/sh rm -r 0. rm -r [1-9]* rm -r processor* rm -r postProcessing
d1c5f5502edd85456df8ff0a4fc6511f70c3dc5b
40
#!/usr/bin/env bash #display id echo $$
ace5307b1bd40a564e1919792646b7a14966495f
1,325
#!/bin/bash -x set -ex echo 'neal ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/neal sudo chmod 0440 /etc/sudoers.d/neal sudo apt update # Kill it with fire sudo apt remove -y nano sudo apt install -y \ zsh \ openjdk-11-jdk \ build-essential \ python3 \ python3-pip \ python3-venv \ tmux \ ...
4e5629d32d583dfbf3cd6579f3d362a20135413f
93
docker run -d -v "$PWD":/data -p 3000:3000 node-cnpm:alpine sh -c "cd data && npm run start"
ac2adae486975a6eac3a0f4e3e69fc3eeca91e5f
361
#!/bin/bash if [ -n $1 ] && [ "$1" == "-task" ];then echo "Задание" echo "15. Удалить все повторяющиеся пробелы и символы табуляции в начале и конце и в середине каждой строки файла" echo echo fi cat file.txt |sed -e 's/^[ \t]*//' -e 's/^[ \t]*//;s/[ \t]*$//' exit 0