blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
d93e7de13b8fd2eea3efaf286c7f5dce1637f6eb
40
#!/bin/sh cd /home find -follow -type l
71505e9f0c6e07af49e9889bce1e43d9c100e93b
289
#!/bin/bash SOFILE=tmpAVJE.so if [ -f $SOFILE ]; then rm tmpAVJE.so fi module purge module load anaconda2 gcc/4.7.1 f2py -c --fcompiler=gnu95 daxpy_f.pyf daxpy.f90 #module purge #module load anaconda2 intel/2013 #f2py -c --fcompiler=intelem daxpy_f.pyf daxpy.f90 python main.py
01d91e42ca1b7d3986d712678a975a353a0b3add
15,697
test -n "$_lst_sh_" && return 0 readonly _lst_sh_=1 # # Portable string backed array library. # # @file # @see lst.md # # # Run lst() with RS set to the ASCII Line Feed character. # # @warning # The Line Feed character is White Space and thus subject to # special expansion rules, which affects the processing of # emp...
c986607a1497be564ac6fb55d2b2e088208517fe
2,213
#!/bin/sh outdir=data/ChIPexo_QC_runs N1=20000000 N2=50000000 seed=$1 ## venters TBP dr=/p/keles/ChIPexo/volume4/venters_data/sortbam rscripts/scripts/ChIPexoQual_run.R $dr/TBP_K562_Rep1.sort.bam $outdir/venters_TBP_K562_Rep1_subsample20.RData $N1 $seed rscripts/scripts/ChIPexoQual_run.R $dr/TBP_K562_Rep2.sort.bam $...
ccbbf61a6f4c6c5bb293f1c2967d393142a1184e
122
Adding a remote repository How to set your username and email Limiting log output by time Ignore files in git Dates in git
f9dae343d2da7eee133defa621d7c2fa4f62a31b
109
# Sort the data in descending order of the average monthly temperature in January. sort -t $'|' -k2 -n -r
e8c5c680cf8fcd6ad30f457cc90cbd8905eb9eae
447
cat 7-input.txt | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\([a-z]\)\1\1/\1--\1/g' | grep -E "^[^\[]*([a-z])([a-z])\1.*\[.*\2\1\2" | wc -l # Move all [] to the end (repeat 4...
a705833d6d29b8367d41a0a95d2192d87f7d5a5a
52
#!user/bin/sh echo "uid=mahlatyw,cn=gssapi,cn=auth"
7f43dd17a4661f27af88076b95606cfe425afdbd
309
#!/bin/sh python -u DeepSpeech.py \ --train_files data/cmu/next_train.csv \ --dev_files data/cmu/next_test.csv \ --test_files data/cmu/next_test.csv \ --train_batch_size 1 \ --dev_batch_size 1 \ --test_batch_size 1 \ --n_hidden 494 \ --epoch 10 \ --checkpoint_dir "$checkpoint_dir" \ "$@"
14626af2fc395883c77ec4cb6f02bf725816d8bd
1,092
#!/bin/bash set -o errexit set -o nounset INPUT=/bbx/input/biobox.yaml OUTPUT=/bbx/output METADATA=/bbx/metadata TASK=$1 # Ensure the biobox.yml file is valid sudo ${VALIDATOR}validate-biobox-file --input ${INPUT} --schema ${VALIDATOR}schema.yaml # Parse the read locations from this file READS=$(sudo /usr/local/bin...
03c196af0150a2214597468ac25c716a175cc61a
110
POSTGRES_USER= POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASS POSTGRES_DB= PGDATA=/var/lib/postgresql/data
32b6a698e66ef4d099a5d6dad2742b9a346ec04d
211
#!/bin/bash w=`zenity --entry --text="Leveys" --entry-text="1280"` if [ $? -ne 0 ]; then exit 0 fi h=`zenity --entry --text="Korkeus" --entry-text="1024"` if [ $? -ne 0 ]; then exit 0 fi publish $w $h $@
d5e908274f5b8b39c99d0a9165fc247ebc779bf4
9,525
#!/bin/bash #Politica y Privicidad »»»» HACKER-PC echo -e "----> ESTE SCRIPT ESTA EN DESARROLLO PRONTO AGREGARE UN MENU <----" sleep 3 clear function limpiar_pantalla { clear } limpiar_pantalla while : do opcion=0 echo echo echo -e " \e[0;34m ::: ::: ::: :::::::: ::: ::::::::::::::::::...
65385d2538cd1af1241ea0795f9c753afdeef553
883
#!/bin/sh set -e case $1 in purge) if which deluser >/dev/null 2>&1 ; then deluser --quiet --system sbws > /dev/null || true else echo >&2 "Not removing sbws system account because deluser command was not found" fi ;; esac # Automatically added by dh_installsystemd/11.5.3 if [ ...
da245858cb9123d1d6978220e455f92c76f600e9
1,024
#!/bin/bash mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby && cp Ruby.tmLanguage ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/Ruby-custom.tmLanguage mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Rails && cp Ruby\ on\ Rails.tmLanguage ~/Library/Application\ Su...
ec338f0d46e3fa100a300246235a235492d94e33
1,493
object Polymorphism { def main() : Unit = { if (42 == 42) { println("Ok"); } else { println("error"); } if (new A() == new A()) { println("error"); } else { println("Ok"); } if (new A() == new B()) { println("error"); } else { println("Ok"); } if ("f" + "oo" == "fo" + "o") { println("error"); } else { prin...
095f38d3a0a4f1f54795e083f3448cc20a770398
3,717
#!/usr/bin/env bash country_label="$(tr [A-Z] [a-z] <<< "$1")" days_ago=${2} gnuplot <<- EOF set print "-" data_file_name = '../data/total_history.csv' time_format = '%m-%d-%y' today_date = strftime(time_format, time(0)-18000) output_file_relative_path = sprintf('plots/total/${country_label} ${days_ago}...
8d30e1431a406a0fc343b0a2cc0b3e33e8a20202
615
#!/usr/bin/env bash mvn clean package docker_registry="10.58.9.201:5000" docker_name="motan-tenant" docker_tag=$(git log --format="%H" -n 1) docker_img="$docker_registry/$docker_name:$docker_tag" cp deploy.sh.bak deploy.sh chmod +x deploy.sh sed -i 's/${GIT_COMMIT}/'"$docker_tag"'/' deploy.sh docker ps | grep $dock...
af2c30d08032a9850f8c4c49618fd4510ded4310
1,500
#!/bin/bash echo long_file_name mkdir long_name cd long_name touch 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890...
b7425d392148dfa8fe019c2842e7b7f343e19fc8
29
#!/bin/sh ./runTests 2 12345
1c8c7e7198a3dcbb0cdbd03778826437b64e7489
6,219
# clear the pipes (revert to defaults) emulate -LR zsh source ~/.git-prompt.sh setopt PROMPT_SUBST # homebrew only needs to have this done if we're not on intel architecture arch=$(/usr/bin/arch) if [[ "$arch" -eq "arm64" ]]; then if [[ $(command -v brew) ]]; then else eval $(/opt/homebrew/bin/brew s...
6d6e9ff7f3f0b77725e8320c42a5ae91db05ac0c
1,072
#!/bin/ksh # ----------------------------------------------------------------------------- # This code has been developed in the service contract for C3S # # script for converting odb station files into gzipped ASCII format # # Limits for n should be adjusted depending on the server capacity # # (c) University of Vienn...
d01c068dbe6cc6537ba8f9862e647ed0633e1bb1
110
#!/bin/bash /data/scripts/loadPage.sh /usr/local/apache2/htdocs /usr/local/apache2/bin/httpd sleep infinity
27a953f7df43304fbe6e560c7c70d9369c19026a
70
#!/bin/bash for file in *.XML do sed -i '1,2d' "$file" done
47a03f8fc206456d2aea44783a7cc655aa7f6019
65
#!/bin/bash set -ex ncu -u -x "@types/node @types/vscode junk"
cd2dd8746dc450df3695be5de223dda8b378aede
1,056
TAG=6.3.0 FILEBEAT_TAG=6.3.0 ELASTIC_VERSION=6.3.0 ELASTICSEARCH_USERNAME=elastic ELASTICSEARCH_PASSWORD=changeme ELASTICSEARCH_PORT=9200 POSTGRES_VERSION=10-alpine POSTGRES_USER=pl POSTGRES_DB=playlist RABBIT_TAG=3 RABBIT_PORT=15672 RABBITMQ_ERLANG_COOKIE=synker-rabbit-cookie RABBITMQ_DEFAULT_USER=admin R...
0ddfc7104ee9a83f060d006faf8a264b57a6b8ed
294
#!/bin/sh # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # SUNWasu preremove script # DOCS_INSTALL_DIR=appserver/lib/install/docs for x in `/usr/bin/ls $BASEDIR/$DOCS_INSTALL_DIR` do /usr/bin/rm -f $BASEDIR/appserver/docs/$x done
da1e73abf5a158e2efb56f63d16bfa23e338173f
1,131
# Maintainer: Whyme Lyu <callme5long@gmail.com> pkgname=dnsproxy-bin pkgver=0.54.0 pkgrel=1 pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support" arch=('x86_64') url="https://github.com/AdguardTeam/dnsproxy" license=('Apache') provides=(dnsproxy) conflicts=(dnsproxy dnsproxy-adguard) source=( "https://gi...
cce605c6f0191031de3c6c790a1326344b84fbae
2,860
#! /bin/bash dquilt() { local quiltrc=${HOME}/.quiltrc-dpkg hasBin quilt || die EPACKAGE "Install quilt!!!" if [[ ! -f $quiltrc ]] ; then info "Write quilt configuration: $quiltrc" cat <<'EOF' >>$quiltrc d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done if [ -d $d...
34fe231f6bf6e4a66a737e55e32cdf6a44464439
882
#!/bin/bash STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".ts\{0,1\}$") if [[ "$STAGED_FILES" = "" ]]; then exit 0 fi PASS=true printf "\n\rValidating Typescript:\n\r" # Check for tslint which ./node_modules/.bin/tslint &> /dev/null if [[ "$?" == 1 ]]; then printf "\t\033[41mPlease ins...
e0f74a0a3d7a4df0411ff15bfc4367536e745fb5
6,879
echo "Welcome to Olympus, Ambidextrous" echo "" echo -n "Today is "; date "+%m-%d-%Y %H:%M:%S" echo -n "System status: "; uptime # Ambidextrous: Homebrew on Apple Silicon CPU=$(uname -p) if [[ "$CPU" == "arm" ]]; then export PATH="/opt/homebrew/bin:$PATH" export BREW_BASE="/opt/homebrew" export EDITOR=/opt...
77ec5b95e440bdf46b6847355235d08fb9e6c867
222
alias vim="nvim" alias watch_and=$HOME/watch_and/watch_and.sh function ws { tmux new -d -s $1 && # tmux doesn't really seem to care what is passed in tmux split-window -p 10 -t ${1}.0; tmux attach -t $1; }
3c18212763425734a053c289c36cd14cd52c48f8
258
#!/bin/bash registry=$1 docker login $registry docker tag votingweb:1.0-linux $registry/votingweb:1.0-linux docker tag votingdata:1.0-linux $registry/votingdata:1.0-linux docker push $registry/votingweb:1.0-linux docker push $registry/votingdata:1.0-linux
7833df5c3196f45d74352b5e466e831253175aad
29
sudo apt install screenfetch
6053742a402fdc1d00f19ed565e48931f3e07201
183
#!/bin/bash role=`id -u` if test $role -ne 0 then echo "运行脚本需要root权限" exit 1 fi yum install -y nodejs npm install -g jasmine npm install --save-dev frisby
a84c56cdcc705a9e49d7a4f384ac103744e2083c
1,149
#!/usr/bin/env bash # # Helper which exposes the path to the respective profile # configuration file # # Author: André König <andre.koenig@posteo.de> # SHELLTYPE="$(basename /$SHELL)" if [ $SHELLTYPE = "bash" ]; then if [ -f "$HOME/.bashrc" ]; then PROFILE_CONFIGURATION="$HOME/.bashrc" elif [ -f "$HOME/.bash_...
78b971d8caec1b3b04d554175b771e6e396fee7b
83
# Generate Makefile with CMake cmake CMakeLists.txt # Compile C++ unit tests make
818cc7945107377e77c90fd579fb77251609ae83
1,995
#!/bin/sh /etc/rc.common # Copyright (C) 2015 OpenWrt.org START=90 STOP=10 USE_PROCD=1 PROG=/usr/sbin/squid CONFIGFILE="/tmp/squid/squid.conf" MIMETABLE="/tmp/squid/mime.conf" validate_squid_section() { uci_load_validate squid squid "$1" "$2" \ 'config_file:string' \ 'http_port:port:3128' \ 'http_port_options...
21dcd089bbf27bee0201a460df1594892c7bab2d
4,155
# print both matching pattern 'p' and stdout, output is duplicated, space is optional sed ' p ' /etc/passwd #suppress stdout and print only if pattern matches, use -n switch to suppress stdout sed -n 'p' /etc/passwd #print first 5 line sed -n '1,5 p ' /etc/passwd #print till the last line from 5th line sed -n '5,$ ...
993137c0ec1004808cc067097441d5aefb757425
164
#!/bin/bash #show the number of arguments passed to this script and the list or arguments echo "Running: $0" echo "Arguments count = $#" echo "Arguments list: $*"
56f727b3aa31b440906fb8b460445f29b9c55b7a
440
#!/bin/bash EX_FOLDER="/usr/local/bin" SCRIPT_NAME="touchf" function script_install() { if [ ! -d $EX_FOLDER ] then mkdir $EX_FOLDER log "o1" fi cp $SCRIPT_NAME $EX_FOLDER/$SCRIPT_NAME chmod +x $EX_FOLDER/$SCRIPT_NAME log "o2" } function log() { case $1 in o1) msg="Directory $EX_FO...
7b6f34274e2e8051c79ac0efe8d0f257122b002b
143
APP_URL=http://localhost:3000 STORAGE_TYPE=local MONGO_URL= mongodb://dgiovanelli:DGio3010!@ds127655.mlab.com:27655/livinho-backend
663b2542a39a420a209913b47e92ad41dd22230c
62
echo "ifconfig -a" ifconfig -a echo "ifconfig -s" ifconfig -s
0f8d28a7f1351b1eaccacdf1a20c05ec117d44c9
3,401
#!/usr/bin/env bash scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" numblocksfile="$scriptdir/../numblocks" numblocks=$(cat $numblocksfile) echo "numblocks=$numblocks" catpersoncmd="cat $scriptdir/../data/persons_header.csv" catmailaddrcmd="cat $scriptdir/../data/mail_addresses_header.csv" catresaddrcm...
f01a0dbfd89ec786974462992ba81fcc6f62e825
1,996
#!/usr/bin/env bash # HeadURL: https://github.com/danielhoherd/homepass/blob/master/RaspberryPi/homepass.sh CONFIG_FILE=/etc/hostapd/hostapd.conf RELAY_TIME=100 DB=/root/homepass.db service hostapd stop ; sleep 1 ; pkill hostapd ; sleep 1 ; pkill -9 hostapd while true ; do aps=() #aps+=( $(sqlite3 "${DB}" "selec...
2a6d7cec1d21aec186fb48055114bca952a5bb12
525
#!/bin/bash # gfortran -c -g toms626_prb1.f >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling toms626_prb1.f" exit fi rm compiler.txt # gfortran toms626_prb1.o -L$HOME/libf77/$ARCH -ltoms626 -lcalcomp if [ $? -ne 0 ]; then echo "Errors linking and loading toms626_prb1.o" exit fi rm toms626_prb1.o # m...
08d5ff16348ff394abe27b191d2dc0f293b7cc33
280
#!/bin/bash #-*- coding: utf-8 -*- #2#::.. Last edit: - Wed Apr 12 13:54:46 EDT 2017 - by: - - ..::## #_# - VERSION=0.0.0.9 - #_# #@#120417#@# #2# #3#::..#####################_MAIN_#######################..::#3# # Author: __INDNYALL__# perl -pe "s/$1/\e[1;37;41m$&\e[0m/g" "$2"
e83412e26e82a4739c8c78d4a2e1b87b487c3ed8
1,409
#!/usr/bin/env bash # Check dependencies. set -e xargs=$(which gxargs || which xargs) # Validate settings. [ "$TRACE" ] && set -x CONFIG=$@ for line in $CONFIG; do eval "$line" done # Define variables. GH_API="https://api.github.com" GH_REPO="$GH_API/repos/$owner/$repo" GH_RELEASES="$GH_REPO/releases" AUTH="Auth...
e8ea86ce330677c8e7bb412485c3ce7045662ebb
1,651
#!/bin/bash # This script is intended to be used during the build of the bash language # server to initialize the explainshell database with a few thousand man pages. # This is a pretty slow process which takes ~30 minutes. # # This script assumes: # # - The current working directory is explainshell # - Everything tha...
8506bcc560906fa4d6203bd5fe4641c1341f2bdc
2,846
#!/bin/bash start() { printf "\n\n Building the Caligrafy development server...\n\n" docker-compose up --build -d prod-box if [ $? -eq 0 ]; then clear printf "\n\nCaligrafy Server successfully started.\n\n Hostname: http://localhost:8080 \n phpmyadmin: http://localhost:8077/ \n mysql usern...
e895860e7a8f3cafdf856a7893ab17ed78bdc274
121
#!/bin/bash xscreensaver-command --lock sleep 1 xset dpms force off if [[ $1 == '--suspend' ]]; then sudo pm-suspend fi
2ad8732a760f4ea0a463155fd4b474d30c4fb027
1,186
#!/bin/bash dir_name="mg1_shear100_2000" chunk_size=100 increment=50 iterations=40 rm -rf $dir_name mkdir $dir_name #location=$dir_name"/it_1" format="csv,fasta" alen="100" metagenome=IMG\ Data/76969.assembled.fna,IMG\ Data/76969.unassembled_illumina.fna reference="all_AP_WPS-2_bacterium.fna" #echo $location #python mg...
35cd6a9baec84207b63784903afe456f7e50c015
3,199
#!/bin/bash # lnmp之php-7.2.2的安装 # author ctocode-zwj <982215226@qq.com> # 判断用户或用户组是否存在,不存在则创建 user=www group=www #create group if not exists egrep "^$group" /etc/group >& /dev/null if [ $? -ne 0 ] then groupadd $group fi #create user if not exists egrep "^$user" /etc/passwd >& /dev/null if [ $? -ne 0 ] then u...
361cccf90ce0d8d55758add6a378824174022309
553
#!/bin/bash #script to build reference genome for HiSAT2 #Made by Jonas N. Søndergaard #Made on 171003 #UPPMAX commands (Uppsala Multidisciplinary Center for Advanced Computational Science) #SBATCH -A uppmax_proj_number #SBATCH -p core #SBATCH -n 2 #SBATCH -t 3:00:00 #load packages. bioinfo-tools is loaded on uppma...
b49d230224386325596921c0b201a59a46afdb3b
775
# Cache (redis) CACHE_HOST=cache CACHE_PORT='6379' # Database (mariadb) DB_HOST=database DB_PORT='3306' DB_KEYCLOAK_DATABASE=keycloak DB_KEYCLOAK_USERNAME=keycloak DB_KEYCLOAK_PASSWORD=keycloak DB_DIRECTUS_DATABASE=directus DB_DIRECTUS_USERNAME=directus DB_DIRECTUS_PASSWORD=directus # CMS headless (directus) CMS_DIRE...
7d08f5f70afd20f84ff6034f5be7f75001584642
294
#!/bin/bash xdg-icon-resource install --novendor --size 48 --mode system \ /usr/share/pwsafe/pwsafe.png xdg-desktop-menu install --novendor --mode system \ /usr/share/pwsafe/pwsafe.desktop [ -f /usr/share/man/pwsafe.1 ] && gzip /usr/share/man/pwsafe.1 exit 0
ec5fc66ed93fdb3dde8222c262390c61925c1182
757
#!/bin/bash if [ "$1" = "--hard" ] ; then echo "------------------------"; echo 'Hard restart activated'; cd dao-service mvn clean install -Dmaven.test.skip=true if [[ "$?" -ne 0 ]] ; then echo "------------------------"; echo 'Compilation failed on dao-service - restart stopped'; exit $rc fi ...
7b4ca3652fe0e58b371e337ce0c2cedcd1fa8a9e
1,513
#!/bin/bash script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" declare -a migrations migration=all function migrate { migrationType=$1 migrationNumber=$2 number=$(printf "%04d\n" $migrationNumber) echo "Running migration ${number} [${migrationType}]"; [[ $migrationType == "up" ]] &&...
85cda74fbcf9a510c87e4bfe3673bbb961921b8d
2,697
#!/bin/bash test_logstash_is_running() { running=1 grep -q Debian /etc/issue && (service logstash status |grep -q 'running') && running=$? grep -q CentOS /etc/issue && (initctl list |grep -q logstash) && (initctl status logstash |grep -q 'start/running') && running=$? grep -q CentOS /etc/issue && test -x /etc/...
9e2b226a50ea4fad2ea97350d8c640d05ad8962b
190
#!/bin/bash #first argument is the database name pwd='123456' db2user='db2ins0' dbname=$1 cd /home/$db2user echo $pwd | sudo -u db2ins0 -H sh -c "~/sqllib/bin/db2 create database "$dbname
e89d6b7500605abd24853c3d84ab3289385c0080
916
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ # Maintainer: perlawk pkgname=aescm pkgver=0.32 pkgrel=2 pkgdesc="aescm is a text file processor that expands embedded Scheme expressions in the input file. Unlike other text-embedded language processors, escm does not depend on a particular Scheme im...
e1702371a05bc603acda2e621ff6aa72371b64dc
1,968
#!/bin/sh # Build (and install) all KDE dependencies # Modified from the KDE Slackware script by Eric Hameleers <alien@slackware.com> # Set initial variables: CWD=$(pwd) TMP=${TMP:-/tmp} # Set the config option variables if they are not already set: [ -r ./alldeps.options ] && . ./alldeps.options # This avoids comp...
90298cb18b27fb773ed40b0374c6e8ede4d495b3
1,069
#!/usr/bin/env bash set -ex apt-get update apt-get install -y software-properties-common python-software-properties python3-pip add-apt-repository -y ppa:deadsnakes/ppa apt-get update && apt-get install -y python3.6 python3.6-dev export DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server-5.7 libmysqlclient...
b3306e575414a3bc2396504e8339770d548fac52
651
#!/bin/bash #apt proxy echo 'Acquire::http::proxy "http://aptproxy:3142";' > /etc/apt/apt.conf.d/02proxy echo 'Acquire::https::proxy "http://approxy:3142";' >> /etc/apt/apt.conf.d/02proxy #clean apt cache since we use apt-proxy-ng cat > /etc/cron.hourly/apt-clean << EOF #!/bin/bash apt-get clean EOF chmod +x /etc/cro...
5def4ad30809ca1386a7f66bd23df7e4bc30a2c1
708
#! /bin/bash #$ -cwd #$ -S /bin/bash #$ -q fast.q #$ -N GF_optlh #$ -M deleted@deleted.edu #$ -m e #$ -V hostname module load quantum-espresso/6.1 # ADS mpirun -np $NSLOTS pw.x -inp INPUT_ADS_GF_optlh-scf.in > OUTPUT_ADS_GF_optlh-scf mpirun -np $NSLOTS pp.x -inp INPUT_ADS_GF_optlh-pp-up.in > OUTPUT_ADS_GF_optlh-pp-...
6d197af76c497784ca41a2ce3c692be9a6b1f3d3
943
#!/bin/bash clear # ARG 1 sets Rpi to be WiFi access host # ARG 0 return to original set echo AAAA if [ "$1" = 1 ] then echo "WiFi HotSpot is being created" sudo cp /etc/network/interfaces.hostapd /etc/network/interfaces sudo cp /etc/sysctl.conf.hostapd /etc/sysctl.conf sudo cp /etc/dhcpcd.conf....
8c23d8b4216c315d8d70000bc5671bc1bd452bdd
1,479
#!/bin/bash install_dir="$HOME" dropbox_dir="$HOME/Dropbox/dotfiles" function link_folder { item=$1 backup_if_exist "$install_d10ir/$1" ln -s "$source_directory/$item" "$install_dir/$item" } function backup_if_exist { counter=1 while [ -d "$1.auto_backup$counter" ]; do counter++ done if [ -d "$1" ...
01b4a04a7eba90fcf71919f8328ec2f47d163716
488
baseàth="/" for f in $basepath/data/$1/*; do if [ -d "$f" ] then echo "" for file2 in "$f/*" do if [ -d "$file2" ] then echo "" else for f2 in $file2 do ext="${f2: -4}" if [[ ".xml" == $ext ]] then python3 $basepath/CVES/CVE-Scan/bin/converter.py ...
74b89a20f0f842af631d94418bf05a0e1ebe23da
134
#!/bin/bash . /afs/cern.ch/atlas/project/HSG7/root/current/x86_64-slc6-gcc48/setup.sh export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
42f8f31122789a0829e51540fe65c73675aa744b
603
#!/bin/sh # # swapmon - add / remove swap as needed # # PROVIDE: swapmon # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable swapmon: # #swapmon_enable="YES" # . /etc/rc.subr name=swapmon rcvar=swapmon_enable command="%%PREFIX%%/sbin/${name}" command_interpreter="/bin/sh" CON...
027fdafbb38a0dac45ea7c30509485df68229b55
670
#!/bin/bash today=$(date -I) name="koi-data" #"koi-$today" #download data from the Exoplanet Archive #query api: http://exoplanetarchive.ipac.caltech.edu/docs/program_interfaces.html wget "http://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=q1_q17_dr24_koi&select=kepid,kepoi_name,koi_period,...
703a994de449a663e496ef378aa6a63d5612e1a8
180
#!/usr/bin/env bash # NOT FOR PRODUCTION # This script is here to support development mode. export FLASK_ENV=development export FLASK_APP=qcweb flask run --without-threads "$@"
692562459a57d95a16c47dcb979d2647c26ad689
522
#!/bin/bash ADL_PATH=challenge/$1; echo "Division" echo "12109 1437" ./adele.pl -t $ADL_PATH/div.adl 24062020 1987 echo "707706 16" ./adele.pl -t $ADL_PATH/div.adl 24062020 34 echo "Primality" ./adele.pl -t $ADL_PATH/prime.adl 24062020 #not prime ./adele.pl -t $ADL_PATH/prime.adl 24062021 #not prime ./adele.pl -t $A...
d4dd28fbfcc8cf0435982154ca48a7009947efa5
1,608
#!/bin/bash # 0. Post-installation /root/shared/proxy.sh source /root/shared/hostnames.sh echo "source /root/shared/openstackrc" >> /root/.bashrc # 1. Install OpenStack Block Storage Service and dependencies apt-get install -y ubuntu-cloud-keyring echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-upda...
9e6f83d02afac295414f43b90a4fb540745d169f
716
# (c) Stanford University 2018 # Written by Mark Miller, 2/15/2018 # Shell script to put the mac_toolchain rpi-install in the right place. # This assumes git has been pulled. rpi_install_source="cs107e.github.io/guides/mac_toolchain/rpi-install.py" if [ -z "$1" ]; then rpi_install_dest="/home/rpi/bin/rpi-install.py...
32e8682f834435f38f28e6bc4c5d8ef7414f6d1d
565
#!/bin/sh # set -x . ../string.sh . ./test_utils.sh # ------------------------------- test_endswith_true() { printf "\"$1\" endswith \"$2\"" assertTrue $(endswith $1 $2) } test_endswith_false() { printf "\"$1\" endswith \"$2\"" assertFalse $(endswith $1 $2) } test_endswith_false "abcdef" "" test_en...
786ce8b01bcfcb20cf8fd1e3a3259c979eeb32a2
147
#!/usr/bin/env bash # Script required by git pre-commit hook APP_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )/" cd $APP_HOME
ea48e923ee9fce09a6b7ee2f6a84828cf3c42367
127
pathWindowsToUnix () { _TMP_PATH=$(echo "$1" | sed 's,\\,/,g') _TMP_PATH=/${_TMP_PATH:0:1}${_TMP_PATH:2} echo ${_TMP_PATH} }
43c5fccbda8e1d0c235fb648fc81f3791ec81c35
403
#!/bin/bash # To run the tests type ". run_regtests.sh" source RiboCensusrc SAMPLE=zymopure #SAMPLE=beaver if [ ! -d regtests/output ]; then mkdir regtests/output else rm -rf regtests/output/* fi echo python RiboCensus.py -i regtests/input -o regtests/output -s ${SAMPLE} -v 1 python RiboCensus.py -i re...
7cf28554db58397d67438594ac9e9f110f3b7a87
466
#!/bin/bash mkdir /root/.ssh && ssh-keygen -t rsa -b 2048 -P "" -f /root/.ssh/id_rsa echo -e "\n\nPublic key for Satis:" cat /root/.ssh/id_rsa.pub echo -e "\n\n" echo "Creating known_hosts..." for domain in $PRIVATE_DOMAINS ; do ssh-keyscan -t rsa $domain >> /root/.ssh/known_hosts done chown -R www-data:www-dat...
83811f8356062f1bf3c331c9a27edb76631a9ebe
127
#!/bin/sh d=$(date -I) git-archive --format=tar --prefix=juomapeli."$d".snapshot/ HEAD |gzip > juomapeli."$d".snapshot.tar.gz
ff2d4f3ae62e430f3a269467ea2f96f69b0b70b7
690
#!/bin/bash set -e set -x function missing_dep { echo "Missing dependency: $1, exting now!" exit 1 } command -v feh || missing_dep "feh" command -v scrot || missing_dep "scrot" command -v mogrify || missing_dep "mogrify (from imagemagick)" cp -s $(pwd)/bin/scrot-service-read ~/.local/bin/ mkdir -p ~/.local/sys...
e85187dd33e6c61eef4956682de942eec6cea1a5
61
REACT_APP_BACK_URI = https://spoticlone-backend.herokuapp.com
4d53588d1fbcd306d28c3731d06a1857eb3ad990
321
APISERVER=$(kubectl config view --minify | grep server | cut -f 2- -d ":" | tr -d " ") SECRET_NAME=$(kubectl get secrets | grep ^default | cut -f1 -d ' ') TOKEN=$(kubectl describe secret $SECRET_NAME | grep -E '^token' | cut -f2 -d':' | tr -d " ") curl $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure ...
5610ffe4ea79745a821c6b934f5c2c372c5e3b9a
6,893
python nmt_prior.py --config ../../configs/transformer/trans.deen_base.yaml data.subsample=10000 --name final.trans.deen_base_10000 python nmt_prior.py --config ../../configs/transformer/trans.deen_base.yaml data.subsample=10000 losses.mt.smoothing=0.1 --name final.trans.deen_base_ls_10000 python nmt_prior.py --config ...
654209fa4a3f04e07bf6190b89f5ffac5c3e7153
1,114
#!/bin/bash # CLI arguments: # 1 Address to the origin RTMP server (rtmp://[x.x.x.x]/ingest) # 2 The stream name (rtmp://x.x.x.x/ingest/[stream name]) # 3 The destination file prefix # Uses the following environment variables: # HLS_OUT Where to store HLS output files # LOG_PATH where to log to set -e RTMPSERVER=$1 ST...
5f8f9667d50d6f3d6ce35926624d3c9bc5c8f2c1
114
#!/bin/bash source ./script.inc source ./config.inc INFO Build LuaJIT cd luajit make OK LuaJIT Build Completed.
3fb037eb5885076cd839da7516ff781d88e002c3
510
APP_ENV=local APP_DEBUG=true APP_KEY=Ao4RBbdSCYzuioBIXTi3xRdMbfQpDgzK DB_HOST=127.0.0.1 DB_DATABASE=passwordmanager DB_USERNAME=root DB_PASSWORD=null CACHE_DRIVER=array SESSION_DRIVER=file QUEUE_DRIVER=sync REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=252...
63808bc3d6355f0237a708be14bb324b7cf58094
216
#!/bin/bash set -ex docker build -t cbata/hello-katib-quadratic-function . docker run -it --rm cbata/hello-katib-quadratic-function python main.py --x1 -1 --x2 3.5 docker push cbata/hello-katib-quadratic-function
a440054421892a4ffffce7e6c0484fdac3e7fd72
348
#!/bin/sh player_status=$(playerctl -p spotify status 2> /dev/null) if [ "$player_status" = "Playing" ]; then echo " $(playerctl -p spotify metadata artist) - $(playerctl -p spotify metadata title)" elif [ "$player_status" = "Paused" ]; then echo " $(playerctl -p spotify metadata artist) - $(playerctl -p spot...
d03deaac2766a9a798a3b3845fa185512b354a2c
1,061
#!/bin/bash set -eu PATH="/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin" CLOUDWATCH_MONITORING_SCRIPTS="CloudWatchMonitoringScripts-1.2.2.zip" echo "**** Installing Monitoring Helpers" # AWS specific configuration echo "** Installing CloudWatch helper scripts" echo "WARNING: This script will NOT add to crontab. You m...
2a25f8e1f08ce99cb8eb2ceb61b332014d31804a
80
#!/usr/bin/env bash ./readonly1.sh ./readonly2.sh ./readonly3.sh ./readonly4.sh
71147a7634c21924284db9b8dee79833ba7f1830
438
#!/bin/bash # Build and start Netron as a Python web server from local directory source=$(dirname ${0}) pushd ${source} > /dev/null [ -d node_modules ] || npm install rm -rf ./build/python python ./setup.py --quiet build popd > /dev/null PYTHON_VERSION=$(python -c "import sys; print('.'.join(str(x) for x in sys.version...
b68bd1d86958dbad87637c313e8d307bfcdd4e1d
158
EVENTS_FEED="http://www.yourhost.goes.here/rss/events.xml" NEWS_FEED="http://www.yourhost.goes.here/rss/news.xml" DARWIN_TOKEN="" TFL_APP_ID="" TFL_API_KEY=""
9fa8b36a0a6549aaa5942e20a4a4160ee0e14843
96
#!/bin/bash -e check 'bosh target' 'Current target is .*' true #> BOSH target should be set.
dafaca514b8254bc7354ccb99cd45e22ed5cee4a
377
#!/bin/bash set -e HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")") . "$HERE/_env" # https://medium.com/@clouddev.guru/how-to-fix-kubernetes-namespace-deleting-stuck-in-terminating-state-5ed75792647e NAMESPACE=$1 kubectl get namespaces "$NAMESPACE" --output=json | \ jq .spec.finalizers=[] | \ kubectl rep...
0e3725f6db6f86c05af2945de2b77cbf4429163d
205
# On some systems installing pdfminer fails because chardet is unavailable. # Install it first. python -m pip install chardet # Use Pip to install the pdfminer module. python -m pip install pdfminer.six
6a9178fadacd1dc18dba41d36cd280a65abc7729
631
#!/bin/bash echo "Setting mongodb repo" sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list' echo "Installing mongodb" sudo apt update sudo apt install -y...
581aa6a7b7d7e24db721da5aa8de659c566ddbb0
1,543
#!/bin/sh test_valid_hash() { TEMP_FILENAME=`mktemp` # Test a file bigger then the buffer-size dd if=/dev/urandom bs=$1 count=1 2>/dev/null >> $TEMP_FILENAME SUM=`shasum $TEMP_FILENAME | awk '{ print $1 }'` if test $# -eq 2 then dd if=/dev/urandom bs=$2 count=1 2>/dev/null >> $TEMP_FI...
a4998df09365ec4d197735afe60e99d0fc320b2c
23,833
#!/bin/bash #SBATCH --ntasks=1 #SBATCH --job-name=DF_pooled-varscan_bedfile_0870 #SBATCH --time='7-00:00:00' #SBATCH --mem=1000M #SBATCH --output=DF_pooled-varscan_bedfile_0870_%j.out # run VarScan (v.2.4.2) module load java module load samtools/1.9 samtools view -b -L /scratch/lindb/DF_2018_12_edit/bedfiles_DF_ref_ed...