blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
bdc3b31d06f598388a8c1b339444ae45385133a6
633
TDDIR=~/bio/apps/TransDecoder-v5.0.2/ TASSEMBLY=Trinity_CarIp_180309p1.fasta CDHITCDS=$TASSEMBLY.transdecoder.cds.cdhit97.fa TDGFF3=$TASSEMBLY.transdecoder.gff3 OUTBASE=TrinityORF_CarIp_180309p1_NR #OUTBASE=ORF_TD seqkit faidx $CDHITCDS echo $CDHITCDS.fai ruby get_gff_entries_from_faidx.rb $TDGFF3 $CDHITCDS.fai > ...
801f2cc31c00a0e4a0451148aeabd9641033d90f
371
#!/bin/bash set -e openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domain-selfsigned.key -out cert-selfsigned.crt -subj "/C=US/ST=PA/L=Collegeville/O=hoyodesmog.diegovalle.net/OU=/CN=hoyodesmog.diegovalle.net" wget -O - https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > intermediate.pem cat ce...
da8884e76cdab0ac883e8fc443272c0c82f684e1
463
echo "Welcome to lcm and and gcd" echo "Enter the first number :" read a echo "Enter the second number : " read b if [ $a -gt $b ] then num=$a den=$b else num=$b den=$a fi r=`expr $num % $den` totloop=$(( $a + $b )) for (( i=0; i< $totloop ; i--)) do if [ $r -ne 0 ] then num=$den den=$r r=`expr $num % $de...
88760b2d54c67be82d9d932ff24de0f60ce98233
287
#!/usr/bin/env bash set -eu COUNG="${1:-10}" CWD=$(pwd) echo "Creating $COUNG files in $CWD ..." for n in $(seq 1 $COUNG); do filename="${CWD}/file$( printf %03d "$n" )" kbytes=$(shuf -i 1-1024 -n 1) dd if=/dev/urandom of="$filename" bs=1 count=$(( kbytes * 1024 )) done
93e004e41a81b6c617c821d5ea27aabf71151c57
562
#!/bin/bash -ev sudo apt-get update -qq sudo apt-get upgrade -y -qq sudo apt-get install -y -qq devscripts debhelper autoconf build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git libssl-dev libboost-all-dev sudo apt-get install -y -qq miniupnpc libminiupn...
9c19f2ffc263d54fa3652a40aa0dfc8dd102441b
3,692
#!/bin/sh set -eu OKGREEN='\033[92m' FAIL='\033[91m' WARN='\033[93m' INFO='\033[94m' ENDC='\033[0m' function PassPrint() { echo "$OKGREEN $1 $ENDC" } function FailPrint() { echo "$FAIL $1 $ENDC" } function WarnPrint() { echo "$WARN $1 $ENDC" } function InfoPrint() { echo "$INFO $1 $ENDC" } OS=$(unam...
a88f19f8be41a082bb091adb4381b8b922ca74d2
360
#!/bin/bash #export JAVA_HOME=/usr/java/jdk1.7.0_71 mvn clean mvn package -Dmaven.test.skip=true cp target/mall-core-1.0-SNAPSHOT.war target/mall.war cp -r target/mall-core-1.0-SNAPSHOT target/mall rm -rf target/mall/WEB-INF/lib target/mall/WEB-INF/classes/{hibernate*,spring*} cd target/mall tar -zcf mall.tar.gz * mv ...
fe6719164f4a6e2c4f9cc0257403deb32ff71035
856
#!/bin/sh #gunzip -c BPI_M3_1080P.img.gz | dd of=/dev/mmcblk0 conv=sync,noerror bs=1k die() { echo "$*" >&2 exit 1 } [ -s "./env.sh" ] || die "please run ./configure first." . ./env.sh O=$1 if [ ! -z $O ] ; then BOARD=$O fi U=/tmp/${TARGET_PRODUCT} if [ ! -d $U ]; then mkdir -p $U fi TMP_FILE=/...
9f120fab295fc04441df1b86782e2c3497115b1d
172
source "$HOME/.dotfiles/scripts/env_common" source "$HOME/.dotfiles/scripts/env_no_zsh" source "$HOME/.dotfiles/scripts/rc_common" source "$HOME/.dotfiles/scripts/rc_bash"
6c5b6708174c4de1e5748568e042e865ddd1d866
221
#!/bin/bash # this is a useless script, but somehow i keep forgetting that there is the 'history' command if [[ "$PAGER" == "" ]]; then PAGER=less; fi perl -pe'$_=localtime($1)."|" if /^#(\d+)$/' ~/.bash_history | $PAGER
2779243cccf1630f1997aad8628b25f08abe45de
269
#!/bin/bash echo "Installing log.io Real-Time-Monitoring" npm install -g log.io --user "root" echo "Copy log.io configuration files" cp /var/www/provisioning/log.io/harvester.conf ~/.log.io/harvester.conf cp /var/www/provisioning/log.io/log.io /usr/local/bin/log.io
517d72c057fe106f90ad2bad5918cbc019175f57
2,022
#!/bin/sh submission="crc_run_100_RF.pbs crc_run_10_RF.pbs crc_run_11_RF.pbs crc_run_12_RF.pbs crc_run_13_RF.pbs crc_run_14_RF.pbs crc_run_15_RF.pbs crc_run_16_RF.pbs crc_run_17_RF.pbs crc_run_18_RF.pbs crc_run_19_RF.pbs crc_run_1_RF.pbs crc_run_20_RF.pbs crc_run_21_RF.pbs crc_run_22_RF.pbs crc_run_23_RF.pbs crc_ru...
4550070ce3d400d8b5111b98ac574a097acf69ee
572
#!/bin/sh cp /var/www/html/.env.example /var/www/html/.env chown www-data:www-data /var/www/html/.env sed -i "s/APP_ENV=.*/APP_ENV=production/" /var/www/html/.env sed -i "s/APP_DEBUG=.*/APP_DEBUG=false/" /var/www/html/.env sed -i "s/PUSHER_APP_ID=.*/PUSHER_APP_ID=$(openssl rand -hex 10)/" /var/www/html/.env sed -i "s...
8bbe18a4f105aff29f19fc8527f8403ef229f027
510
#!/bin/bash -l #PBS -l walltime=24:00:00,nodes=1:ppn=6,mem=12gb source ~/.bashrc cd /home/yangyh/lixx3899/kaggle-yelp/model python pca.py --data_folder "../feature/5_75" --data_set "21k" python pca.py --data_folder "../feature/5_75" --data_set "v3" python pca.py --data_folder "../feature/5_75" --data_set "colHist" py...
4f0bec7c4bc0fe202ecd7527095a78254d72b70c
131
#!/bin/bash # head before equal on visaCharges awk -f ~/sae.awk ~/txt/visaCharges grep -A1 '^=======' ~/txt/visaCharges | head -2
cc9326dba93b6e77390bd0325b36371d829935c1
299
if [ $# -ne 1 ] then echo "Wrong number of arguments!" fi python parse.py $1 | pandoc -s -c stylesheet/A4resume.css --from=markdown --to=html5 | sed "s/<\/h1>/<\/h1><div>/" | sed "s/<h2/<\/div><h2/" | sed "s/<\/h2>/<\/h2><div class=\"content\">/" | sed "s/<\/body>/<\/div><\/body>/" > resume.html
85f1217249a7224b5bf09dc6a130b5ac77dc7386
531
#!/bin/sh [ "${TERM:-none}" = "linux" ] && \ printf '%b' '\e]P00F130E \e]P13068c1 \e]P23f90cf \e]P35e74d6 \e]P4e6ba9c \e]P58bbae2 \e]P6a3c8e8 \e]P7d4dfe8 \e]P8949ca2 ...
cdaebc0cc70547ca58f2388c25e34b04b750fd04
94
#!/bin/bash log=output_bash.txt #o #echo "Ping $i" ping 8.8.8.8 -c 10 >> $log #done
3f9c73db2d5d146956f4f4f43562230154b4c1bf
39
# My Custom Aliases alias ll='ls -alF'
08504de05d1c4932cde97074dc86ad97327300d0
227
#!/bin/bash bash python.sh bash correction.sh echo "Output files: " ls output_generated/ echo "Exit code from python: " cat output_generated/exit_code_python echo "Exit code from diff: " cat output_generated/exit_code_diff
1ac3aedd2c0e099fae3fc1da21bda129182a0a22
2,333
#!/bin/bash # Compile opendpn3 lib for x86_64, ARM of Sierra FX30S or ARM of OWA cd $(dirname $0)/../../.. projectDirectory=$(pwd) projectBuildDirectory=${projectDirectory}/target if [[ $# != 2 ]] || [[ $1 != "--arch" ]] then echo "Invalid params calling to $0" echo "Usage: make.sh --arch [x86_64 | legato | o...
347a27d01808282d1a493a015b4abf6bb9cd049d
101
#!/bin/sh DOTFILES_HOME=~/dotfiles code --list-extensions > ${DOTFILES_HOME}/pkgs/code/extensions
3581cafebc65e617bc32035635b6168942279c2e
659
#!/usr/bin/env bash #Creates the file /var/run/holbertonscript.pid containing its PID #Displays To infinity and beyond indefinitely #Displays I hate the kill command when receiving a SIGTERM signal #Displays Y U no love me?! when receiving a SIGINT signal #Deletes the file /var/run/holbertonscript.pid and terminates it...
c9997c51f7d4ce0de884331031628028ef957bd1
170
Incorrect time on dual boot systems Executing scripts on system boot Get hardware stack details with `lspci` Cancel a system shutdown Monitor System Memory using `vmstat`
6a5bf771ed853c3ff373bddeacb16b89c4ce5e47
1,006
#!/bin/bash source $(dirname "$0")/uninstall-common.sh function main() { echo "Uninstalling Homebrew" local tmp_ruby=1 if ! ruby --version > /dev/null 2>&1 ; then echo "Installing Ruby for uninstall script" sudo apt-get install ruby -y -q tmp_ruby=0 fi echo "Running Homebrew uninstall script" whiptail --title "...
01342ce6b162ebef9b253b4c92d53f34d6341517
4,703
#!/bin/bash dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${dir}/helpers.bash" # dir might have been overwritten by helpers.bash dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) TEST_NAME=$(get_filename_without_extension $0) LOGS_DIR="${dir}/cilium-files/${TEST_NAME}/logs" redirect_debug_logs ${L...
d3780a77fe6a4a0b6ff69ba12c02fcb05d729e4e
2,783
#!/bin/bash # This generates new BigQuery dataset for use in cloudsql by the workbench # and dumps csvs of that dataset to import to cloudsql # End product is: # 0) Big query dataset for cdr version cdrYYYYMMDD # 1) .csv of all the tables in a bucket # Example usage, you need to provide a bunch of args # ./project.r...
9043b7b7e9ac06fa915f7f319f45f3220b07d778
2,798
#!/bin/bash #------------------------------------------------------------------------------ # FILE: setup-environment.sh # CONTRIBUTOR: Jeff Lill # COPYRIGHT: Copyright (c) 2016-2017 by Neon Research, LLC. All rights reserved. # # NOTE: This script must be run under [sudo]. # # NOTE: Variables formatted li...
9de739765fc6f2c78caca63ec9b8199fc39254ba
160
#!/bin/bash echo "Starting mfbot, a Docker image by Cilix" cd /var/opt/mfbot/webinterface python3 MainProgram.py & cd /var/opt/mfbot ./MFBot_Konsole_x86_64
be46c6f24f3d4d0fc63264e1b06df17b42409fe9
484
#!/bin/bash set -eu this_dir=$(readlink -e "${0%%/*}") gitconf="$this_dir/jenkins-gitconfig" if [[ ! -r $gitconf ]]; then echo >&2 "set up a gitconfig at $gitconf for Jenkins to use" exit 1 fi jenkins_home="$this_dir/home" mkdir -p "$jenkins_home" 2>/dev/null || true sudo docker run -p 8080:8080 -p 50000:50000 ...
b2604bb3de6d23819edb16834a9de36f5248f8f9
76
# NGROK Authetoken NGROK_TOKEN={{ NGROK_TOKEN }} # Application Credentials
f99c7f6270679a789a5e5a850f59f9611b73d321
985
#!/bin/bash # # Install Kubernetes # ref. https://qiita.com/nnagashima/items/d7deb00d086b6e276eea # Letting iptables see bridged traffic # ref. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#troubleshooting cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf br_netfilter EOF cat ...
35a17e06272e659e909d21700373409e41ebe8c5
205
#!/bin/bash # Run this in the directory above where the git repositories are to check status for all of them find `pwd` -maxdepth 1 -type d | while read dir; do echo $dir; cd $dir; git status; cd ..; done
a06c710fd9d708b1ea235081dcffe41a705fe256
1,300
#!/bin/sh set -eu systemctl | grep -q "${PROJECT_NAME}.service" && systemctl stop ${PROJECT_NAME}.service [ -f "${API_SOCKET}" ] && chown ${API_USER}:${API_GROUP} "${API_SOCKET}" # Generate systemd unit file cat <<EOF > "/etc/systemd/system/${PROJECT_NAME}.service" # This file is automatically generated, do not alte...
75bf96e1efe62f169eba759073bd414b139edfde
1,348
########################################################### ###################### General Setup ###################### ########################################################### ### Paths ################################################# # Point to the path of your PHP applications code on your host PHP_CODE_PATH_H...
9967b192161d8233a8f889dcd21123294c328b4e
849
#!/bin/bash # Author: Kutiavin Vladimir # Date: 11/02/21 # Description: Scan logs file and find line what you need sudo cp /var/log/messages . sudo chown vagrant:vagrant messages while true do echo What messages you want pull? echo echo Press 1 for pull error messages echo Press 2 for pull warn messages echo Pr...
a9c21240d14bf2be8e004384a81b53c302d5d9c8
632
#!/bin/bash cd "$( dirname "${BASH_SOURCE[0]}" )/.." meson build.mac/build ninja -C build.mac/build rm -rf ./build.mac/Moonlight.app mkdir ./build.mac/Moonlight.app mkdir ./build.mac/Moonlight.app/Contents mkdir ./build.mac/Moonlight.app/Contents/MacOS mkdir ./build.mac/Moonlight.app/Contents/Resources cp ./build.m...
602716889baeca8962faecca89482a4410abf2fa
317
#!/usr/bin/env bash arg=${1:?"need an argument"} if [ -L "$arg" ]; then echo "$arg is a symbolic link" elif ! [ -e "$arg" ]; then echo "$arg does not exist" elif [ -f "$arg" ]; then echo "$arg is a regular file" elif [ -d "$arg" ]; then echo "$arg is a directory" else echo "$arg is unknown" fi
27df30cdf3e44081d029bb28f39eabe2a5ca628d
475
sudo apt-get update sudo apt-get install unzip mkdir -p /mnt/data/training_images mkdir -p /mnt/data/validation_images wget https://mawahstorage.blob.core.windows.net/aerialimageclassification/imagesets/balanced_training_set.zip wget https://mawahstorage.blob.core.windows.net/aerialimageclassification/imagesets/ba...
867478bedcd281eeb4f516e40307c6f186fb9e1a
1,080
## Install the additional packages ## sudo apt-get install -y python-software-properties nano git curl ## Install nodejs ## sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install -y nodejs sudo ln -s /usr/bin/nodejs /usr/bin/node ## Install MongoDB ## sudo apt-key adv --keyserver hkp:/...
23592c7f1d49db5a1e4a113f15960e3c4233d379
291
#!/bin/sh # usage : ./case.sh fileName #ofURLinFile echo Hello Nahyun FILENAME=$1 NUMURL=`cat "$FILENAME" | wc -l` count=0 RANDNUM=$[ $RANDOM % $NUMURL + 1 ] cat $FILENAME | while read LINE do if test $count -eq $RANDNUM then open "$LINE" break fi count=`expr $count + 1` done
0bfce887b65015a2f1b48823d1d5715c4eef3ae6
1,285
#!/bin/bash # Download Jamendo album (single tracks not supported yet) in FLAC format (YA RLY!) inurl="$1" albumid="`echo "$inurl" | sed -e 's/.\+\/list\/a\([0-9]\+\)\/.\+$/\1/'`" foldername="`echo "$inurl" | sed -e 's/.\+\/list\/a\([0-9]\+\)\/\(.\+\)$/\1_\2/'`" # get metadata artist_name="`wget -O - -q "http://api...
80e28d6badf0408302c223985c5d0a359e60fd56
84
#!/bin/bash cd ../platform java -jar target/data-cleaner-jar-with-dependencies.jar
540f74942ce178a19349068e997369b627c2d6d8
308
ll() ls -lF $* la() ls -aF $* lg() ls -lgF $* g() grep $* m() more $* j() jobs source() . $1 pd() pushd $* pp() pushpj $* s() subpj $* pspj() pushspj $* realias() . $RUSSTLIB/aliases.sh repushd() . $RUSSTLIB/pushd.sh revspms() . $RUSSTLIB/vspms.sh logout() . $RUSSTLIB/logout.sh reprofile() . $HOME/.profile
6dc22a4973513853026a9c2a20bdc6e35f16aa3f
2,169
# 10107233 - Nicole Fitzgerald (ninkle) 10183626 - Raasil Khan (Raasil) 10161819 - Stefan Sokic (StefanSokic) 10102143 - Sabrina Quazi (sabrinaquazi) #- Delete any previous rules in the INPUT, FORWARD and OUTPUT tables # sudo iptables –D INPUT 1 #- Enable ssh only from computers in the range 130.15.0.0 to 130.15.255....
307315afe30c18dd34af9303853c75b3200b72c0
393
#!/bin/sh MDIR=/usr/local/lib/modules /sbin/insmod $MDIR/debugfs2.ko /sbin/insmod $MDIR/regfs.ko /sbin/insmod $MDIR/acq400_dspfs.ko ln -s /sys/kernel/debug/dsp1/ /dev/dsp1 cat /usr/local/CARE/CUSTOM_FB9816/custom_fb9816-regdef > /dev/dsp1/.create mkdir /etc/acq400/14/ ln -s /dev/dsp1/* /etc/acq400/14/ /usr/local/...
0685418fd62806a4dc47a0e9f53926010471e874
110
#! /usr/bin/env bash mcli() { host="${1:-localhost}" port="${2:-11211}" nc "${host}" "${port}" }
712c8d9f681fab4378ee283b372f593d6e2529c8
71
#!/bin/bash set -ex sd "@BFC_APP_DOMAIN@" "$BFC_APP_DOMAIN" main.py
882582e995c59040527cf117c63874577f1679e1
333
#!/bin/bash cmake3 -DCMAKE_INSTALL_PREFIX=/home/physics-tools/CRPropa3_trunk \ -DCMAKE_BUILD_TYPE="Release" \ -DENABLE_OPENMP=ON -DENABLE_OPENMP=ON -DENABLE_ROOT=ON \ -DCFITSIO_INCLUDE_DIR="/usr/include/cfitsio" \ -DQUIMBY_INCLUDE_DIR="$tools/heplibs/quimby/include" \ -DQUIMBY_LIBRARY="$tools/heplibs/quimby/lib/libQui...
33c12deca65bb2cf3246b589f55612bcbf91fbdc
3,986
#! /bin/bash date=`date +%Y-%m-%d` date_dump=`date +%Y%m%d` dayofweek=`date +%u` dayofmonth=`date +%d` dayofmonthnextweek=`date +%d -d "7 day"` dir='/home/kibini/kibini_prod/bin/' dir_log='/home/kibini/kibini_prod/log/crontab/' dir_kib2='/home/kibini/kibini2' dir_data='/home/kibini/kibini_prod/data' # POUR KIBINI2 :...
5ee537985b5420ceb6e6a6726a709f289dd90c2f
3,409
#!/bin/bash clear echo "================================================================================" echo " Airplane-Sleep Installer v1.0 by Patrick Kantorski" echo "================================================================================" echo " This installer only installs trusted Homebrew p...
7f5c6623f0384671536db7bd1be8c23c6a0b7a56
665
#!/bin/bash set -u export FTP_LIST=get-me export OUT_DIR=$PWD export NCFTPGET=/rsgrps/bhurwitz/hurwitzlab/bin/ncftpget export STEP_SIZE=2 export PBS_DIR=pbs if [[ -d $PBS_DIR ]]; then rm -rf $PBS_DIR/* else mkdir $PBS_DIR; fi NUM_FILES=$(wc -l $FTP_LIST | cut -d ' ' -f 1) if [[ $NUM_FILES -lt 1 ]]; then echo...
a63c441b1a91b43bd7123033c2e2e882850a8525
472
#!/usr/bin/env bash # LOADS HOSTS API SERVICE INTO SYSTEMD SERVICEFILE=homerouting_api.service API_FPATH=~/extras/pitools/api/homerouting/${SERVICEFILE} LIB_FPATH=/lib/systemd/system/${SERVICEFILE} # Copy the service file to lib sudo cp ${API_FPATH} ${LIB_FPATH} # Set permissions on it - owner has r/w perms, everyone...
dbf394c83d6db13a76d59de9e906d2d780f18734
1,667
#!/bin/bash if [ $# = 0 ]; then yesterday=`date +%Y%m%d -d "-1days"` else yesterday=$1 fi export JAVA_HOME=${JAVA_HOME} export HADOOP_HOME=${HADOOP_HOME} export HADOOP_CONF_DIR=${HADOOP_CONF_DIR} baseDir=$(cd "$(dirname "$0")"; pwd) source $baseDir/../weblogHeader.sh echo $yesterday ycLocalDestDir=${WEBL...
ba745097fc1e97f21f99ba2000277a8187ee2774
509
#!/bin/sh -eux # Create the MySQL database mysql --user=root --password=$MYSQL_ROOT_PASSWORD < /docker-entrypoint-initdb.d/mysql-scripts/dcapi.sql echo "dcapi.sql done" # Set up database for dc api mysql --user=root --password=$MYSQL_ROOT_PASSWORD htrcvirtdb < /docker-entrypoint-initdb.d/mysql-scripts/dcapi_schema....
7f2a8e1fe4683962f8d74d2b429ce0acdf9239f4
535
#! /bin/bash function fileSort () { ls ~/Downloads | while read -r i do if [ -f ~/Downloads/"$i" ] then fy=$(date -r ~/Downloads/"$i" +%Y) fmonth=$(date -r ~/Downloads/"$i" +%b) fday=$(date -r ~/Downloads/"$i" +%d) fname=${fmonth}_${fday} if [ ! -d ~/Downloads/$fy ] then `mkdir ~/Downloads/$fy` fi ...
e47985bfe66d6b49435b79929b3439612af7544c
131
#! /bin/bash ./generate_projects_aarch64.sh cd _compiler/gmake2 make config=debug_aarch64 make config=release_aarch64 cd ../..
368cc8791b990e2539e72465e523e581b732e560
83
#!/bin/bash rm -rf /run/httpd/* /tmp/httpd* exec /usr/sbin/apachectl -DFOREGROUND
8371003bf9799de55bc1a10610caf2dc40c63ff9
359
#!/bin/bash ENV_NAME=ml-web-demo # create environment if ! conda env create --file environment.yml --name ${ENV_NAME} then exit fi source ~/anaconda3/etc/profile.d/conda.sh conda activate ${ENV_NAME} python_base=~/anaconda3/envs/${ENV_NAME}/lib/python3.7 cd ${python_base} || exit # fix _gdbm module not found erro...
53bc87a7b80b2139a30ae7e4a4d5e0e795b53106
487
#!/bin/bash set -e set +h . /etc/alps/alps.conf SOURCE_ONLY=y URL=http://search.cpan.org/CPAN/authors/id/B/BH/BHALLISSY/Font-TTF-1.06.tar.gz NAME="perl-modules#font-ttf" VERSION=1.06 cd $SOURCE_DIR wget -nc $URL TARBALL=`echo $URL | rev | cut -d/ -f1 | rev` DIRECTORY=`tar tf $TARBALL | cut -d/ -f1 | uniq` tar -xf...
0351aca1301f51dcdc4c1948466b98547b1751c4
125
#! /bin/sh wget -nv https://agents.sealights.co/sealights-java/sealights-java-latest.zip unzip -o sealights-java-latest.zip
9a0c93dc0ce790b9fb26521405c5144279e4a912
135
gom run pStore.go -endpoint=http://127.0.0.1:5000 -put -name=test123 -value=test123; gom run pStore.go -endpoint=http://127.0.0.1:5000
0487bd4770ff5757eeb955f2dfc92f360f225ca5
329
#!/bin/bash H=0 T=0 count=10 declare -A coinCombination for ((i=1; i<=10; i++)) do flip=$((RANDOM%2)) if [ $flip -eq 0 ] then ((H++)) else ((T++)) fi done coinCombination["H"]=$(($(($H*100))/$count)) coinCombination["T"]=$(($T*100/count)) echo "percentage of Heads Tails :" ${coinCombinat...
c5a2e95b6a728dc384ffa3431248498e0eaee7aa
176
#!/bin/bash ### go to the script directory cd $(dirname $0) ### import test PO files ./import-pingus.sh ./import-kturtle.sh #./import-kdeadmin.sh #./import-office-desktop.sh
301c62dbfc64b008ca30ba12a187917d2f75b831
3,029
#!/bin/sh echo "Installing the FreeSWITCH source" DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y ntpdate libapache2-mod-log-sql-ssl libfreetype6-dev git-buildpackage doxygen yasm nasm gdb git build-essential automake autoconf 'libtool-bin|libtool' python uuid-dev zlib1g-dev 'libjpeg8-dev|libjpeg6...
da4c9136e8a6e00e052c24e865bdd25578a34f6b
4,171
#!/usr/bin/env bash # Given a region definition file, a spectral definition file # and an output beam, produces folders with smoothed maps and # noise for each region, in sindex-ready format. function showhelp { echo "setup_regions [options] regions.fits data ncomp outbeam outprefix" } function rel2abs { if [[ $1 =~ ...
5c6d0f4fac3b100a33697e5f7707dd5829252d3d
2,042
#!/usr/bin/env bash # TODO: # - Ensure root directory. set -eo pipefail cd "${BASH_SOURCE%/*}/.." die() { local exit_code=1 local OPTIND=1 local opt while getopts "c:" opt; do case "$opt" in c) exit_code="$OPTARG" ;; esac done shift $((OPTIND - 1)) echo "ERROR:" "$@" >...
151290d27fa2884e9dd9bb92aea81cb728b40036
734
#! /bin/bash -e #Log output exec > >(tee /var/log/Setup-Fileshare.log|logger -t user-data -s 2>/dev/console) 2>&1 if [ "$#" -ne 1 ] then echo "Not Enough Arguments supplied." echo "Setup-Fileshare <FSVIEWUserPassword>" exit 1 fi FSVIEWUserPassword=$1 export TERM="xterm" shift source /opt/microfocus/EnterpriseDe...
23910d4215cdc5ab36c92c09bde706ebce4f7fbc
5,270
'TOKEN' = '1157983371:AAEzM_LHvpEyLRHAGnpHZfa0tZkH_Nfm0H8' 'ADMIN_ID' = 354668710 'USER_1_ID' = 277352270 'USER_1_LOGIN' = 'Leddavlet' 'USER_2_ID' = 354668710 'USER_2_LOGIN' = 'lidrudakova' 'PLANT_1' = "<Plants plant_id=1, name='Фиалка', description='Домашняя фиалка представляет собой низкорослый травянистый многоле...
efd5dae36315c2dab515434eb41c8d12029c2bc8
302
#!/bin/bash -x #TAKE INPUT FROM USER read -p "Enter The Range Of Harmonic Number:" number #VARIABLE harmonic=0 #CALCULATE HARMONIC NUMBER for (( index=1; index<=number; index++ )) do harmonic=$(echo "scale=2; $harmonic + 1 / $index" | bc) done #DISPLAY RESULT echo "Harmonic Number is: $harmonic"
30e5c595f6bcaf8e92ca4fb32ff9881e537ec34e
229
BNET_ID=0d329b457dab446aa2cad0b8ca9184f2 BNET_SECRET=DUTL6klVwDEIGLWHNNJ5aYAJAmHDwqQZ TSM_KEY=CFPkbWtTtzkeAnBzt0dY8_BELq_U8Kl9 MONGO=mongodb+srv://express:express@cluster0-sdkay.mongodb.net/spreadsheet?retryWrites=true&w=majority
6fd8b79ea8461aa2b761ae40aac5379d3243405d
112
#!/bin/bash rm -rf /Applications/Numbers.app rm -rf /Applications/Pages.app rm -rf /Applications/Keynote.app
6b9625c90e4640c33016cdb4b649abbc8e4177be
438
/srv/archgenxml/agx27/bin/archgenxml --cfg agx.conf imioprojectcore.zargo #manage generated.pot #cp temp/i18n/generated.pot ../locales/agx.pot #copying workflows #cp temp/profiles/default/workflows.xml ../profiles/default cp -r temp/profiles/default/workflows ../profiles/default #change the workflow name sed -i 's/ti...
9fefd2c9e62c67791783223e08c3d83b95755136
1,126
#!/bin/sh # Filename: hgmergevim # Purpose: mercurial merge script for vim # Authors: grml-team (grml.org), (c) Michael Gebetsroither <gebi@grml.org> # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. #####################################################...
ea16dd04402e0ae54b76228f9dfc85f58cf352c7
157
#!/bin/sh if [[ $# != 2 ]] then echo "Usage ./level.sh <#> <name>" exit fi mkdir $1.$2 unzip $2.zip -d $1.$2 unzip -n $232.zip -d $1.$2 rm $2*.zip
043c8ab5ebe80378943aee2d4ae54b9dab05a4f8
214
#!/bin/bash do_check_install_py_modules(){ test -z ${TGT_DIR:-} && TGT_DIR=$PRODUCT_DIR do_check_install_poetry $TGT_DIR cd $TGT_DIR poetry config virtualenvs.create true poetry install -v cd - }
7e3a58bd882736c8066b87f021c52d9eecc6b086
94
make ./generator ./calc < $1 > expected_output.txt ./calc2 < $1 > output.txt ./test make clean
441d041916f3081708b193cf5b5c05030ca59629
42
#!/bin/sh mount -a mount -o remount,rw /
6833dcac43bce355cd4f308df98c745d343d847f
16,340
#!/system/bin/sh # #WBG WIFI script # usage() { echo "usage: Please follow WBG user guide to setup your test environment" } # init local variables SUCCESS="0" INVALID_OPT="1" ERR_HEADER_VERSION="2" ERR_OPENFAILED="3" ERR_XDIGIT="4" ERR_NOMATCH="0xff" Rateindex=1; fWlanStatus() { WirelessToolPath="/system/bin...
5efc34115ea876322c9f985740deb32a1c491443
1,070
#!/bin/bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you ...
f4ee0abbd93ebd76cedb1000eab752f2dd1cf469
746
#!/usr/bin/env bash current_script_dir() { ( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) } die() { local -r message=$1 exit_code="${2:-1}" printf "%s (status code: %d)\n" "$message" "$exit_code" >&2 print_stack_trace >&2 } check_num_args() { local -ri num_args=$1 shift if [[ $# -ne "$n...
e0c8aa051525e68925e7f71887ddb5d009d80cb8
191
cd $HOME/.homesick/repos/serverip git pull options="-batch -ui text" local="-root $HOME" serverip=$(cat ip.txt) remote="-root ssh://$serverip" unison ignore $options $local $remote -path $1
6dfa504ee95f836feba5b1e7c5e658c90ff50dda
863
#!/bin/sh {{ ansible_managed | comment }} userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmod...
c18dd7fa526531704692f8476340b809b02c49c0
346
#!/bin/bash #Usage: sh pseudochrom.sh <path to input files> #lmc297@cornell.edu cd $1 mkdir original_contigs for f in *.fasta do cp $f original_contigs sed -i 's/^>NODE.*/NNnnNNnnNNnnNNnn/' $f sed -i "1i >${f}" $f awk '/^>/{print s? s"\n"$0:$0;s="";next}{s=s sprintf("%s",$0)}END{if(s)print s}' $f > ${f%.fasta}_pseudo...
8416f3dcc6e9114915db987e3ea3b36e157e0f6f
2,395
#!/bin/sh export LC_ALL=C NO_XFAIL=1 LINTED_DIRECTORIES="apps shared build/test/unit" JSHINT_EXECUTABLE="node_modules/.bin/jshint" JSHINT_XFAIL_LIST="build/jshint/xfail.list" JSHINT_ARGS="--reporter=build/jshint/xfail $JSHINT_ARGS" excluded_list=".jshintignore" jshint_information() { echo "Please read https://githu...
84f4a7393c58834dd4aee055b3effe013be4a950
72
export FLASK_APP=/code/show/App.py gunicorn -w 4 -b 0.0.0.0:6666 App:app
399bda6527ee0dab469bc75ce2fa6ee3fb04a2e9
1,353
#!/bin/bash function add_rule_if_not_there() { criterion1=$1 criterion2=$2 iptables_command=$3 iptables -L | grep $criterion1 | grep $criterion2 > /dev/null if [ "$?" != "0" ]; then `$iptables_command` fi } # external Riak access <% (Array(p('riak_cs.ips')) + [p('stanchion.ip')]).each do |ip| %> ad...
f3f8cc556c48465c82bb1777f7f303a01009d588
63
#!/bin/sh ruby render_template.rb exec nginx -g "daemon off;"
2509911faf7a43ba8f2ed7c8047fb16a11caec52
1,759
nginxDir="/-/soft/nginx"; # exit2fail 上个命令退出值 退出提示[操作失败] 退出码[1] function exit2fail () { if [[ "$1" -ne "0" ]];then if [[ -z "$2" ]];then echo "操作失败"; else echo "$2"; fi if [[ -z "$3" ]];then exit 1; else exit $3; ...
441ad958aa6225f3fca1f196e4b09a9463b747d4
282
load ../../harness @test "55550c4ea9d2" { check 'a :=125714767049824149692591022447776120720 + 101567630983950960348789225192990141955 ; skip' '⇒ skip; skip, {a → 227282398033775110041380247640766262675} ⇒ skip, {a → 227282398033775110041380247640766262675}' }
fc638d32b570e0384116be2894fe93e9c94620c8
1,935
#!/bin/sh cat << EOF This script is deprected and will be modified or removed. It has planned to make more powerful program for this. Please contact author on mail (stefan at lugons dot org) for more information. You also can help author of that script to make better solution for that by sending mail. Thanks in a...
7212c44fd407eb84a2b5b8923dbc82952fa6af01
721
#!/bin/bash #PBS -l mem=6gb #PBS -t 0-5 ### Motif score calculation: matrix score **0.86 ### Combined with Homer Known motifs wk_dir=/gpfs/home/hdiao/jycATAC/6_GeneGroupMotifAnalysis/byGroup_bed preparsed_dir=/gpfs/home/hdiao/resources mm10_genome=/gpfs/group/databases/Mus_musculus/UCSC/mm10/Sequence/Bowtie2Index/gen...
965a0d6d1c650136ffb487af9dc30e62f0dce269
129
#!/bin/sh mkdir -p /cgroup/cpu mount -t cgroup -o cpu none /cgroup/cpu if [ -e /sk/boot.sh ] then cd /sk sh boot.sh fi
e44c08ac93576c268771dcc247894a9718b71e59
69
#!/bin/sh telnetd startup.sh echo enable > /sys/class/tty/tty/enable
56d9e5a138629cae3730e0fe9568fa4b0538f100
474
#!/usr/bin/env bash cd /home/ec2-user/myApplication/project-venv/ source /home/ec2-user/myApplication/project-venv/bin/activate git clone https://github.com/nikhilpatil29/simpleDjangoApp.git pip3 install django python3 /home/ec2-user/myApplication/project-venv/simpleDjangoApp/manage.py migrate python3 /home/ec2-user/my...
fe60d9c81befb0d98859a802887a9819816d4834
519
#!/bin/bash # strip line number info0rmation from log files to compare # build logs and debug cmake issues # Example: # ./nln.sh build-sx.log > bb.log if [ -f "$1" ]; then awk '/Unvectorized/{next}/incorrect ftrace/{next}/and ignored.$/{next}/clause simplified.$/{next}/fatil(/{echo "ERROR";echo "FATAL";print;next}/...
064efcebbffa3a382a85913e11a04caa9d073002
97
#!/bin/bash python3 -m venv .venv source ./.venv/bin/activate pip install -r requirements.txt
349f4a2c2a7b666831b0f2b5ef8dfcf877a34d57
955
#!/usr/bin/env bash CURRENT=$(cat VERSION) NEXT=$(echo "puts \"${CURRENT}\".next" | ruby) read -p "Bump and release $NEXT [Y OR y]? " -n 1 -r if [[ ! $REPLY =~ ^[Yy]$ ]]; then echo -e "\nExiting." exit 1 fi # set version in VERSION file echo "$NEXT" > VERSION # update ISO 8601 date in gemspec sed -ri "s/[0-9...
6a6c7f7f2dee6e6e9e3e8e64cd64ce93f0d0668f
238
curl -LOJ "https://docs.google.com/document/d/1RDHUoyH5QxxF7JvButmt87r1XV5ULhx2soarF4ge86w/export?format=docx" for f in *.docx; do pandoc "$f" -t markdown -s -o "${f%.*}".md --wrap none python3 post_process.py "${f%.*}".md done
4d3a05716a5091446cd8043e4624996b721a067d
643
#!/bin/bash # terminal xrdb -merge ~/.Xresources #rofi borde sed -i "/selected-active-background:/ cselected-active-background: $(xrdb -query | grep '.color12:' | awk '{print $NF}');" $HOME/.config/rofi/themes-rofi.rasi #dunst frame_color='"'$(xrdb -query | grep '.color10:' | awk '{p...