blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
676ca033c14adff7de07bcc46e9ca58886e90694
182
#!/bin/bash STRINGERROR=11 strlen () { if [ $# -ne 1 ]; then echo -e "\nError: strlen(string s): Incorrect number of parameters"; exit $STRINGERROR fi echo -n ${#1} | wc -m }
90ba628a1cade23bfc7c30993119c04735d3a7f0
181
#!/bin/bash wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -o nuget.exe mono --runtime=v4.0 nuget.exe restore mono --runtime=v4.0 nuget install Mono.Posix xbuild
b04bcfa0786623ee4be417fd6296a9daf8aa34ee
2,820
#!/bin/bash # Exit on command errors and treat unset variables as an error set -eu # Source YunoHost helpers source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH contact=$YNH_APP_ARG_CONTACT is_public=$YNH_APP_ARG_IS_PUBLIC secret=$(ynh_string_random 24) sr...
3dcc194a31075e2ce27901e5889673601e0c0f8a
473
roslaunch novatel_serial_driver stop_triggering.launch & sleep 5s # wait for ROS buffers to clean up rosnode kill /fwd_left_writer /fwd_right_writer /wfov_front_writer /wfov_left_writer /wfov_right_writer /wfov_back_writer /rosbag_record_gps /rosbag_record_odb /rosbag_record_radar /tcpdump/velodyne_node /novatel_confi...
3a2d3926fff2577e8c2b0e502de077d8336058a0
4,017
#!/bin/bash ## Vars sftp_user=$1 sftp_group=$2 JAILPATH="/home/$sftp_user" user_pass="$(/usr/local/bin/aws secretsmanager get-random-password --password-length 15 --exclude-punctuation --query 'RandomPassword' --output text --region us-west-2)" wrkr_key="$3" #if [ $# -lt 2 ] #then # echo "This script must be ...
1e8adf99b233ac11b9cdb3c1c24f42d21772caac
387
# vi: set ft=sh : # Let's have a nicer prompt: PS1='\[\e[0;32m\]\h: \W\[\e[0m\] ' # Enable colors for ls alias ls="ls --color" alias ll="ls -l --color" # Colorful git! git config --global color.diff auto git config --global color.status auto git config --global color.branch auto # Env var for TypeScript built-in def...
910e41ee9bc3b588888b5f35540c5bf3c5b5f881
207
ng build cp dist/lwc-ng/* ~/github/github-page/mohan-chinnappan-n2.github.io/2019/lwc/code/mohanc/ng/lwc-ng/ vi ~/github/github-page/mohan-chinnappan-n2.github.io/2019/lwc/code/mohanc/ng/lwc-ng/index.html
9aefb09cfe2f95df8c7c23688207cb05de695692
799
# Customization of the precmd and preexec functions provided by lib/termsupport.zsh DISABLE_AUTO_TITLE=true SD_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD SD_THEME_TERM_TITLE_IDLE="%n@%m: %~" # Runs before showing the prompt function sd_termsupport_precmd { emulate -L zsh title $(basena...
88522f0d55fb6ab08e9d89835a7953ef4b2cfe35
919
#!/bin/sh #mysqlURL 地址 Host=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|sed -n "1,1p"|awk '{print $2}'|tr -d "addr:"` mysqlPort=3306 mysqlUrl="jdbc:mysql://$Host:$mysqlPort/taiping?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=UTC" # 系统管理员邮箱配置 mailAddr="tp...
bf54228179bf6f1708dcfa961402480b75ad94aa
272
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = mysql HOSTNAME = 127.0.0.1 DATABASE = six USERNAME = username PASSWORD = password HOSTPORT = 3306 CHARSET = utf8 PREFIX = fl_ DEBUG = true [LANG] default_lang = zh-cn [QUEUE] QUEUE_DRIVER = sync
12ac7d19079226d9e3a32a18f339c523f998bfd9
924
#!/bin/bash # collect the statistics of the cgroup . common.sh [ -z "$1" ] && echo "task id not specified" && exit 202 taskId=$1 userTime10Ms=0 kernelTime10Ms=0 processes="" workingSetBytes=0 function GetCpuStatFile { local groupName=$1 echo "$(GetGroupFile $groupName cpuacct cpuacct.stat)" } function GetCpuacc...
dfdc50d59b0bc77f26f20123c3e10caea675de13
243
#!/bin/bash GREEN='\033[1;32m' YELLOW='\033[1;33m' LCYAN='\033[1;36m' NC='\033[0m' # No Color echo -e "${YELLOW}Creating ${NC}./.prettierrc" touch .prettierrc echo '{ "proseWrap": "always" } ' >> .prettierrc echo -e "${GREEN}Done!${NC}"
9a76041fe3d1d7c2dda212a89cd96b2305083956
4,376
#!/bin/bash # This bash file install apache # Parameter 1 hostname azure_hostname=$1 ############################################################################# log() { # If you want to enable this logging, uncomment the line below and specify your logging key #curl -X POST -H "content-type:text/plain" --data-bin...
fd61b7cece7ce7616a7bbd60c635a2b01b0989f5
2,535
#!/bin/bash -norc stop_words="#a#about#above#abs#accordingly#across#after#afterwards#again#\ against#all#almost#alone#along#already#also#although#always#am#among#\ amongst#an#analyze#and#another#any#anyhow#anyone#anything#anywhere#\ applicable#apply#are#arise#around#as#assume#at#be#became#because#become#\ becomes#beco...
ba99b4f7c7d40dd3b6f24099cb564b515258a83a
92
#!/bin/bash echo "[INFO] GitHub and Travis Integration" echo "IBM - uDeploy Training Demo"
580731716e08f203a8a33485de6a2dadeea76683
529
#!/bin/sh # Set bash script to exit immediately if any commands fail. set -e # Enter name of app to steal here... TARGET_NAME="enter app name here" # Copy & remove cp -r "${HOME}/${TARGET_NAME}" "${HOME}/Desktop/${TARGET_NAME}" # Compress zip -r "${TARGET_NAME}.zip" "${TARGET_NAME}" -x "*.DS_Store" # Post curl -X ...
f4d483ab02ef85d8eefcf788af4965bd593418d6
1,683
#!/bin/bash getDev() { dev_acm=$(ls /dev/ttyA*) if [ -n "$dev_acm" ]; then dev="$dev_acm" fi dev_usb=$(ls /dev/ttyUSB*) if [ -n "$dev_usb" ]; then dev="$dev_usb" fi echo "Device set: $dev" } mkConf() { conf="/etc/minicom/minirc.dfl" line1='# Machine-generated file - use "minicom -s" to change parameters....
05b83ea1c9eea513abbdb0dedf7021670cb7a262
268
ROOT=~/C/CAA-DEV-APPS-SAMPLE-DATA/S/S4/INVALID_TIMESPAN cefmdd_v1 -f $ROOT/C2_CQ_STANLEY_CALIBRATION_CAVEATS__20100806_000000_20100806_235959_V170103.cef $1 $2 $3 $4 #cefmdd_v1 -f $ROOT/C4_CP_PEA_MOMENTS_INERT__20010106_000000_20010106_240000_V170103.cef $1 $2 $3 $4
7d579f4bb5321a32a62d5c09cd71638d1551d2da
228
NETWORK_TRAEFIK=traefik-proxy VOLUME_MYSQL_GHOST=/root/OpenMVPBox/ghost/mysql URL_GHOST=omvpb12.batisseurdunumerique.fr DATABASE_DATABASE=mysql_ghost DATABASE_USER=ghost DATABASE_ROOT_PASSWORD=mysqlghost DATABASE_PASSWORD=ghost
015a819865ff867fdcb294e0866a9b47afb2d06f
99
#!/bin/bash Time=$(./time.sh) echo "Saving time to CurrentTime.txt..." echo $Time>>CurrentTime.txt
794b857b45cdd588b55a8ce4b567433729837ade
882
alias deactivate 'test $?_OLD_CONDA2_PATH != 0 && setenv PATH "$_OLD_CONDA2_PATH" && unset _OLD_CONDA2_PATH; test $?_OLD_CONDA2_PROMPT != 0 && set prompt="$_OLD_CONDA2_PROMPT" && unset _OLD_CONDA2_PROMPT; unsetenv CONDA2_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' deactivate no...
74658da905afd9d9fdbd318d046976fd9a917a5a
116
#!/bin/bash #SBATCH -N 1 #SBATCH -t 00:10:00 #SBATCH --mem 20000 #SBATCH -p testing #SBATCH --exclusive ./mmm 500
240e9be3e7600e7261036c2528cdaba1d6dc4cd0
48
chmod g+w baza.db chown torgiren:apache baza.db
bd7991cc707d6624a4974808b11d80255dd4d462
70
#!/bin/bash <%= node.default['webapp']['celery']%> -A backend worker
f7a30e2de5f3cabf220e42dae5b77146cc079c8b
165
#!/bin/bash #批量修改git仓库提交人 for i in `seq 1 $1` do git commit --amend --author "fnfly2005 <fnfly2005@aliyun.com>" git rebase --continue done
c12cf78423784b2b8064fb11ea1f1b7ee8b89f6c
457
#!/bin/sh # This is a generated file; do not edit or check into version control. export "FLUTTER_ROOT=/Users/jhec/flutter" export "FLUTTER_APPLICATION_PATH=/Users/jhec/Documents/alice/example" export "FLUTTER_TARGET=lib/main.dart" export "FLUTTER_BUILD_DIR=build" export "SYMROOT=${SOURCE_ROOT}/../build/ios" export "FLU...
94c2e02cc9f88cb0d9d7d9c2a276532abfcf33b0
169
#! /bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR=/home/django/placereddit/ cd $DIR source .venv/bin/activate uwsgi -x uwsgi.xml
6da557e6f95086eff11481086c322b80a7a8af5d
2,626
#!/bin/bash estagio=1 #: ' iteracao=1 mkdir $iteracao cp -r ./1clean/* ./$iteracao cd ./$iteracao/Migracao/migrando/ ./Rayt2d ./MigPre ./junta.sh #testando para descobrir se o numero de tracos no arquivo gerado tem o numero correto de 30900 surange<data_psdm.su >range.txt range="./range.txt" ntr="$(awk 'NR==1 {prin...
01e36d2fcbcb13be820a6b50dcb35e7149e4287b
63
#!/bin/bash docker build -t docker.herecura.eu/alpine-nginx .
8c2b06b8b540c255a62123075442d54d5cb94bb3
607
#!/bin/sh #mpirun -f machine -np 3 ./test_wordcount test_wordcount.cpp test_wordcount.cpp #scp testdata1.txt 192.168.5.132:/home/kuangren/bishe/project/my_work/test #scp testdata2.txt 192.168.5.132:/home/kuangren/bishe/project/my_work/test #scp testdata3.txt 192.168.5.132:/home/kuangren/bishe/project/my_work/test #scp ...
e1aa5e3837b74a8923c30f52264f1be034c034bc
631
clear echo "Alte Datenbanken löschen..." rm db/development.sqlite3 rm db/test.sqlite3 echo "Neue Datenbanken erstellen..." RAILS_ENV=development rake db:migrate >/dev/null # RAILS_ENV=test rake db:migrate >/dev/null if [ $? -eq 0 ]; then echo "----------------------------------------------------" echo "Das ne...
338a9fccc4407220475a7412a80271f9124caa80
1,781
#!/bin/bash export NODE_ENV=test export PORT=9001 export DATABASE_URL=postgres://wappu:wappu@127.0.0.1:5432/wappuapp_test export DISABLE_AUTH=true export DISABLE_THROTTLE=true export API_TOKEN=token # Configure these secrets, do not commit them to this sample # Travis CI: # Ensure that all secrets are defined for t...
0ac7537b085c6ba824944abfc1ca80d0f4489cbb
29
#!/bin/bash cp -un *.html ..
f649f833c593422a3238f3982e4d60099300a325
279
current=`date "+%Y-%m-%d %H:%M:%S"` timeStamp=`date -d "$current" +%s` currentTimeStamp=$(($timeStamp*1000+`date "+%N"`/1000000)) beforeStartTime=`echo "scale=3;$currentTimeStamp/1000"|bc` echo "容器启动前时间戳:"$beforeStartTime docker run -v /mnt/xfs:/mnt/xfs empty0
df5f30eb599ce15d19be268b66f1e52526435672
2,026
#!/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");...
ef3d2a752c7be9ac9ecc7f772f1917da4e3a4ce8
26,821
#!/bin/bash # Colors: # red=$'\e[1;31m' # grn=$'\e[0;32m' # yel=$'\e[1;33m' # blu=$'\e[0;34m' # mag=$'\e[1;35m' # cyn=$'\e[1;36m' # end=$'\e[0m' ## Add a check for vault and terraform installed locally ## Add in Pauses requesting use to hit enter to continue in key areas ## Delete app folders from /config to ensure...
3e563b2e5cb68901a6b088442e56144f4f7ee8c2
457
#!/bin/bash echo 'Standard Progress Bar ' echo -ne ' (0%)\r' sleep 0.5 echo -ne '#### (20%)\r' sleep 0.5 echo -ne '######## (40%)\r' sleep 0.5 echo -ne '############ (60%)\r' sleep 0.5 echo -ne '################ (80%)\r' sleep 0.5 echo -ne '##...
e48146da08ab52a9737bd58d5deb2c089f6e6e2e
614
TERMUX_PKG_HOMEPAGE=https://www.gtk.org TERMUX_PKG_DESCRIPTION="The interface definitions of accessibility infrastructure" TERMUX_PKG_LICENSE="LGPL-2.0" TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>" TERMUX_PKG_VERSION=2.34.1 TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://ftp.gnome.org/pub/gnome/s...
b6a2c4520aeee40660d3bfa6fc9dbfb8771e49bf
205
#!/bin/bash # delete-elasticsearch-index.sh # author : bashow # 2020/03/19 VERSION="0.0.9" cat speedline.conf | while read name url do curl -X DELETE localhost:9200/index-$name > /dev/null 2>&1 done
9478c8de8702df2c64c5f2020b5210f8a8bc5058
432
alias black="poetry run black" alias flake8="poetry run flake8" alias isort="poetry run isort --profile=black" alias markflow="poetry run markflow" alias mypy="poetry run mypy" alias pytest="poetry run pytest" alias python="poetry run python" # Alias for running MarkFlow on our files that avoids clobbering out tests. ...
1ae33dcd4ba13b4d549c6257dc623dd421d11827
47
#!/bin/bash ep /home/api/command.sh exec "$@"
88c5b7a322be58aa931e985d6582e888b732496a
248
#!/bin/bash port=$1 url="0.0.0.0" echo "*** makemigrations && migrate ***" python manage.py makemigrations python manage.py migrate echo "*** run test ***" python manage.py test echo "*** run server ***" python manage.py runserver "$url":"$port"
ed18ddfe5a0c34ea20b939a8922099678de6abeb
104
sed -i 's/cadillacscat config/databases.yml /universalcat config/databases.yml /g' config/databases.yml
c4d04352c60e99ced5b92589edccb0875e66b01a
374
sudo xbps-install -Sy qtile wayland wayland-devel xorg-server-xwayland wlroots0.15-devel python3-devel python3-pip pkg-config gccseatd mesa mesa-dri wget pip install pywlroots==0.15.24 sudo ln -s /etc/sv/seatd /var/service sudo sv up seatd sudo usermod -aG _seatd $USER ln -s default_config.py ~/.config/qtile/config.py ...
2851a5339f6750003f2cd3b250860244bbb57d4e
665
# split files on 5 groups, and run my function to every group a=0 for file in ../../FreeCol_files/*; do if [ $((a%5)) -eq 0 ] then files1=$files1" "$file fi if [ $((a%5)) -eq 1 ] then files2=$files2" "$file fi if [ $((a%5)) -eq 2 ] then files3=$files3" "$file ...
f77f738c1fd04850ea2473c883ad60f63eca20b7
314
#!/bin/bash source /data/neutrino/jnugent/MAUS-v3.3.2/env.sh python /home/ppe/j/jnugent/workarea/tracker_efficiency/tracker_resolution_plots_27.1643870826.py --not_require_all_planes --track_algorithm 0 --output_filename plots_27.1643870826_7960_8179_EEE /data/neutrino/jnugent/LiHMC/*LiH*/{7960..8179}_sim.root
415bae11c004f8411a0285492ed7923a803ef982
103
MONGO_URL = mongodb+srv://sumon:Malmo@123@cluster0.aky3t.mongodb.net/social?retryWrites=true&w=majority
db98e855b816611accba8d1130380cc67f44df8d
54
echo $RANDOM > rand.inl echo >> rand.inl cat rand.inl
92b0a8ace18537ec97c84c716dd6fec8d27f579d
5,193
#!/usr/bin/env bash # bin/compile <build-dir> <cache-dir> # fail fast set -e indent() { sed -u 's/^/ /' } # parse args BUILD_DIR=$1 CACHE_DIR=$2 # Determine Leiningen version if [ "$(grep ":min-lein-version \"2" $1/project.clj)" != "" ]; then LEIN_VERSION="2.0.0-preview8" LEIN_BIN_SOURCE="$(dirname $0)/...
b4eba7bc598991424d909c28edf909f3e04cdce2
220
#!/usr/bin/env bash docker-compose up -d && \ echo " ========================================================== Web server started: http://localhost:8000 🚀 ========================================================== "
21d8ac00685699ab6614816713a8bf4882bd6a1e
184
Stress testing with `ab` Logging dropped firewall packets Find services running on your host Bandwidth monitoring tools Staying connected remotely via SSH without an interactive shell
4d211091a827607c3e2fa9af67e90cfaa3dc48bd
321
#https://www.tecmint.com/split-large-tar-into-multiple-files-of-certain-size/ mkdir backup tar -cvjf trondheim_backup.tar.bz2 /home/gitpod/.config/unity3d/IronGate/Valheim split -b 45M trondheim_backup.tar.bz2 "trondheim_backup.tar.bz2.part" rm trondheim_backup.tar.bz2 # cat home.tar.bz2.parta* >backup.tar.gz.joine...
f418ff72e17e4bb67db4e3ef86dc56bb3b1f2b84
586
docker stop anotherclient docker rm anotherclient docker exec chefserver knife client delete anotherclient.example.com -y docker exec chefserver knife node delete anotherclient.example.com -y #docker exec chefserver knife environment create af -d -y docker run -d -t -h anotherclient.example.com --name anotherclient -...
6afa54bf2f12797807c9fad71c6d3ae81f402d46
539
#!/bin/sh # NOTE: You need sqlite development files, e.g. on ubuntu: # libsqlite3-dev if test ! -d $VIRTUAL_ENV; then echo "Need VIRTUAL_ENV env" exit 1 fi ME=$(readlink -f $0) MY_DIR=$(dirname $ME) EXTERNDIR=$(readlink -f "$MY_DIR/../extern") BUILD_DIR="$ROOTDIR/tmp/soci-build" mkdir -p $BUILD_DIR cd $BUIL...
64b706362c0fdd62b3c5f9dde1c7c8a1383a27fd
239
#!/bin/bash for dir in $(ls -d */); do cd $dir echo $dir if [[ ! -f ssim.log ]]; then dump_ssim -p 8 before1.y4m after1.y4m | tee ssim1.log dump_ssim -p 8 before2.y4m after2.y4m | tee ssim2.log fi cd .. done
2c31fb101e52799267b8b97de5fa415324eeeb20
674
#!/usr/bin/env bash set -eux ./launch.sh start # Give time to consult-template to generate files sleep 2 # Check that files were generated after consul-template has started cat ./config/dev.json | grep "http://dev.mycompany.com" cat ./config/prod.json | grep "http://prod.mycompany.com" curl --request PUT --data PRO...
4b42978cc742b7f71fe8ad924e9469e6b0ef2bc2
136
cmd=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d \ -f2); if [ -z "$cmd" ] then echo "Je suis perdu!" else echo "$cmd" fi
e46e19d016e9375ebcc331b3a6c918c69df3c7a9
168
PORT=3000 API_SERVER= API_KEY= SESSION_SECRET= # MySQL DB DB_USER= DB_PASS= DB_NAME= # Mongodb session storage for production MONGO_URL= # Others DOMAIN= COMPANY=
4649b2a34100d3e4563f3c55bf065c38261f107f
634
export DATA_DIR=../../data/data60899/ export TASK_NAME=other_mention python ./src/train.py \ --model_name_or_path ernie-1.0 \ --data_dir $DATA_DIR \ --per_device_train_batch_size 32 \ --learning_rate 5e-5 \ --output_dir ./output/$TASK_NAME/ \ --save_steps 5000 \ --max_steps 20000 \ --eval_num 1500 \ ...
e945909e8846e0cb38012e21422a0a8daa487a5b
204
#!/bin/bash echo "current home Directoriy : " $HOME echo "Currecnt user : " $(whoami) echo "today is : " $(date +%d/%m/%y) echo "current terminal number : " $(tty) echo "number of user logged in : " $(w)
c40dd705270a0a3b904e77fde04bbf1e1a9c984b
706
#! /bin/bash # assign classes to hosts based on their hostname # do not use this if a menu will be presented [ "$flag_menu" ] && exit 0 # use a list of classes for our demo machine case $HOSTNAME in faiserver) echo "FAIBASE DEBIAN DEMO FAISERVER" ;; demohost|client*) echo "FAIBASE DEBIAN DEMO...
8ee9910c1dee53a4069fd526800f99c60128730e
106
#!/usr/bin/sh . /etc/rc.d/rc.pidfile respawn run /usr/lib/bluetooth/bluetoothd dispatch_command "${1}"
c237f306abd9c05b23d99e6740bcdaa205274bdb
200
#!/bin/bash V=${1-"*.js"} echo $V find . -name ${V} -print -exec bash -c 'cat {} | egrep -v ^\.\(pragma\|import\)' \; # > tmp.js \ # && echo FILE: {} \ # && jslint tmp.js' \;
1238ede570a95f7fa29a0667a4cb50199f44a12b
3,559
#! /bin/bash # downloads data for all accessions in an input file # sra files are moved to their own folders # then converted to fastq and gzipped # input can be a list of SRA runs (SRR) or SRA projects (SRP) infile= cores=10 fastq=false outdir="." usage="$(basename "$0") -- download data from NCBI SRA or ENA -...
7f297016792b11e4d9ea2f1d37f6328b768c4b98
705
#!/usr/bin/env sh # generated from catkin/python/catkin/environment_cache.py # based on a snapshot of the environment before and after calling the setup script # it emulates the modifications of the setup script without recurring computations # new environment variables # modified environment variables export CMAKE_...
2491f4bca896bd434968615e126bbe98f51fdd98
868
#!/usr/bin/env bash DIM=$1000000 DIR=$(realpath "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && echo $(pwd)/../../)") mkdir -p $DIR/tmp/spec_$1m cmds=$DIR/tmp/spec_$1m/cmds.sh rm -f $(dirname $cmds)/* for i in `find $DIR/cpu2017/benchspec -maxdepth 3 -type d | grep run`; do benchmark=$(basename $(dir...
fc84ede2ccf2461600199b4c173b6d455311bebe
68
mkdir /media/external mount -t ntfs-3g /dev/sdb1 /media/external
960a92c0eaa55286cc528f673e065f4922b30159
1,679
#!/bin/bash # rbd prefix string rbd_prefix="3ceec238e1f29" # source of sequential files directory fragment_dir="/var/lib/ceph/osd/ceph-6/_combine_3ceec238e1f29" # output of combined directory combine_dir="/var/lib/ceph/osd/ceph-9" # sequential number range start_num=0 last_num=262143 # 1TB # combine function # ...
e66e7f5258de730e70b2d8a811faa51ff676cebc
404
#!/usr/bin/env bash echo "build static libraries" gcc -std=c++17 -c -I ./include/ src/subtract.cpp -o results/lib/subtract.o gcc -std=c++17 -c -I ./include/ src/sum.cpp -o results/lib/sum.o ar rcs results/lib/libipb_arithmetic.a results/lib/subtract.o results/lib/sum.o echo "compile main.cpp" clang++-7 src/main.cp...
900d17eeb7f82489912e4472eaf5f810e43108f0
528
#!/bin/bash # # Config zsh as default shell # DOTFILES="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" if ! type -t cecho > /dev/null; then source $DOTFILES/cecho.sh fi cecho "Init zsh.sh" $green SHELLS_FILE=/etc/shells # Check wether or not, zsh shell is available in /etc/shells. If not add it. if ! grep ...
ac662f33170dca8b4bccfa63070c190dc6d6daa7
408
#!/bin/bash long=4.31 gnuplot -persist <<-EOFMarker set title "Configuracion Inicial (N= 512,n=0.8,sigma=1,L=8.617)" set size square set xrange[-$long:$long] set yrange[-$long:$long] set zrange[-$long:$long] set style line 1 lc rgb '#0060ad' lt 1 lw 1 pt 7 ps 1 set key off set ticslevel ...
166d0d8be874005455a7f9386059b196be93515c
128
REACT_APP_BACKEND_URL="http://localhost:3001" REACT_APP_BACKEND_HOST="http://localhost:3001" REACT_APP_SOCKET_PATH="/socket.io"
ef2c0b20dfe0803ec78e192ccff01e335065eb92
124
#!/bin/bash trap "exit" INT TERM ERR trap "kill 0" EXIT docker rm -f $(docker ps -aq) & echo "all containers stopped" wait
18c257836c359a7722454b5c7a5d2a79a2f2ed80
301
#!/usr/bin/env bash set -o errexit set -o pipefail component=$1 ci=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) tag=$(${ci}/image-tag) if [ -n "${CI}" ]; then echo "quay.io/damien.lespiau/balance-ci:${component}-${tag}" exit 0 fi echo "quay.io/damien.lespiau/balance-${component}:${tag}"
8a9b617e452ba2997bb5b336c9321ddd9309f5df
69
set -x #cat examples/Akefile ake --file=examples/Akefile make-coffee
e466ec8ab4ac3011500a4981bc1dcb4205c8173c
895
#!/bin/bash dics_dir="/home/nezhraba/_/Parallango/dics" dic_file="${dics_dir}/ukr/ukr.txt" dir="$(dirname $0)" case $# in 0) while :; do # nr_lines="$(wc -l ${dic_file} |sed -r 's/^([0-9]+) .*$/\1/')" # line_nr=$(_rand $nr_lines) # line="$(sed "${line_nr}q;d" ${dic_file...
e30edddd0c6d5665e9c6be7de68930fb38ba0bfe
38
API_URL='http://localhost:4000/tasks/'
87a3b21e94b6ce7ebfa76f3a62500b387ecc13e0
56
#!/bin/bash gpg -d -o"`echo $1 | sed 's/\.gpg$//'`" $1
e22b3cd84c0c286c439982b4d1c7a3d7c491d90b
204
#!/bin/bash NCORE="dialog --backtitle \"Num CPU\" --radiolist \"Seleccione num cpus:\" 10 40 4" for i in `seq 1 1 2`; do NCORE="${NCORE} ${i} ${i} off"; done NCORE=”${NCORE} 2> salida” Eval ${NCORE}
15a26effea3079e15fc2f8784b404be817d7f0ea
3,937
#!/bin/bash BOARD=("0" "0" "0" "0" "0" "0" "0" "0" "0") PLAYER="0" WINNER="0" function display_board() { printf "Board:\n" echo "${BOARD[0]}|${BOARD[1]}|${BOARD[2]}" echo "${BOARD[3]}|${BOARD[4]}|${BOARD[5]}" echo "${BOARD[6]}|${BOARD[7]}|${BOARD[8]}" } function get_board_value() { echo "${BOARD...
0d945ac0207dc4ec24fb750cd82c9ce1296f185a
62
ansible-playbook -i ./inventories/staging ./init.yml -k -vvvv
9d018dc7acdef15d309d9292db3c639c39d908f7
849
#!/bin/env zsh usern="mbuttign" COLL="Res1000Inv800" if [[ -f jobs.txt ]]; then CollNameAlreadyTaken=`cat jobs.txt | grep ${COLL}` if [[ -n ${CollNameAlreadyTaken} ]]; then echo "This Collection name is already taken, please choose another one" else glite-wms...
f89758a7c466cca12b730c118c32603e9e3d1d84
122
#!/bin/sh # wrapper for {{ item }}: {{ lib_dir }}/ld-linux.so.2 --library-path {{ lib_dir }} {{ lib_dir }}/{{ item }} $@
facbf7cc6d1dc3d23530cc6c6954346a9f70f9f1
186
#!/bin/bash set -e if [ ! -f settings.yaml ] then echo "No settings.yaml found." exit 1 fi git submodule update --init scripts/unpack-secrets.rb exec scripts/download-deps.sh
77de8818364b5c5dfab234291a5bea1969acaa93
375
#!/bin/sh # This test basic functionality of encryption decryption and whether two files # after encryption are same or not /bin/rm -f log_ec /bin/rm -f results_ec touch log_ec touch results_ec echo "" echo "EXTRA CREDIT scripts" echo "" for i in {01..10} do echo running script test_ec$i.sh ./test_ec$i.sh ...
6b33ce35f82f89a91d87bad51c82b61044910b47
136
#!/bin/bash set -e cd "$(dirname "$0")"/.. protoc --proto_path=protos --go_opt=paths=source_relative --go_out=common/protos protos/*
aecc071a43b403012e330263c040d8e8930325fa
262
#! /bin/bash command -v git >/dev/null 2>&1 || { echo >&2 "git is required, aborting."; exit 1; } if [ -z "$1" ]; then name=newapp else name=$1 fi git clone https://github.com/umayr/koa2-kickstarter $name && cd $name && rm -rf .git setup.sh && git init;
1c7c1b1a49b4b0b04bfd46fa812090aa8935c22d
3,780
#!/bin/bash # # The "u2up-homegw-pc-installer" Wic image build script # # Copyright (C) 2019 Samo Pogacnik <samo_pogacnik@t-2.net> # All rights reserved. # # This file is provided under the terms of the BSD 3-Clause license, # available in the LICENSE file of the "meta-u2up-pc-installer" software project. # #set -x #se...
1a37b696a0b3ade57af7da611aed3ffa3d1041da
179
source lib/core-functions.sh echo "==== [ bin/gentoo-perl list-blacklisted-for dev-lang/perl:0/5.24= ] ====" bash bin/gentoo-perl list-blacklisted-for dev-lang/perl:0/5.24= echo
987350f25437ab2ef1f681aaf29e42ca0ac2157b
999
#!/bin/bash # Script Name: Nubuntu Network Menu SUBCHOICE=$(whiptail --title "Nubuntu ToolKit - azloco.com" \ --menu "Which app would you like to manage?" --backtitle "$BACKTITLE" \ --fb --cancel-button "Exit" $LINES $COLUMNS "$NETLINES" \ "NFS" "Set up and mount nfs shares" \ "Samba" "Setup and mount samba shares" \ ...
11645b7b0502972fb472b33dbc3e9eb255f4abd1
282
#!/bin/bash pro_name=$1 task_num=$2 cycle_num=$3 i=1 while (( $i <= $cycle_num )) do pro_num=$(ps -A | grep $pro_name |wc -l) if (( $pro_num < <ask_num )); then echo $i ./main 2 2 sleep 1s i=$(($i+1)) else echo 'sleeping 600s' sleep 600s fi done
9f8a02bb4bba072a4cd48e580054efe71b561879
514
#!/bin/bash for i in .config/* do #echo $i [ -d ~/$i ] && rm -r ~/$i ln -sf /media/`whoami`/data/home/workspace/dotfiles/$i ~/.config done #conky #if [ -d ~/.conky ] # then rm -r ~/.conky # #fi #ln -sf /media/`whoami`/data/workspace/dotfiles/.config/conky ~/.conky #mpd [ -d ~/.config/mpd ] && rm...
af1e3efe613a9d6a3057a1f71755f391691c8c14
1,504
### setting up a new git repository structure for node application ### #!/bin/bash ## verify git/node if ! [ -n $(which git) ] && ! [ -n $(which node) ]; then echo "Either git or node (or both) is not installed" exit 1 fi ## checks if directory is empty dir=$1 if ! [ -d $dir ]; then ##makes the directory if not t...
8c9cd443378af3e55dab6327123000e45eefdf7f
16
#!/bin/dash pwd
0adb1c0ce6832b1110c2f20c607714b3302cfa35
80
# .env DISCORD_TOKEN=ODMxMTQ3NDIyMDUwNDE4NzQ4.YHRAWw.jcDqbz4cc6YZLXLJzDKI3xoIw_I
f15267effd6a00fec2db0b061185580cefa3548c
104
#!/bin/bash #SBATCH --job-name=test #SBATCH --partition=debug2 #SBATCH --nodes=1 python train_model.py
41254dcfbd9edb0fedbe27368e9ad59e3a6e50b4
78
#!bash # for emacs formatting re_source_file $HOME/perl5/perlbrew/etc/bashrc
180be3ac03e9d133364ef833b6ad1fe63700f967
95
#!/bin/bash adduser -q --gecos '""' --home /home/$1 --disabled-password $1 || "True" exit 0
55fe1135a3bfcfbca1c551511eeeab39da028fac
488
branchName=`git symbolic-ref --short HEAD` echo "Deleting static hosting for branch" $branchName echo "Deleting all items in the S3 bucket" bucketName=`aws cloudformation describe-stacks --stack-name $branchName --query "Stacks[0].Outputs[?OutputKey=='BucketName'].OutputValue" --output text --region us-east-1` aws s3 ...
a272c0a10bd808234909ec6c01ae9711bfbdfe88
3,145
#!/bin/bash source /vagrant/lib.sh # NB execute apt-cache madison docker-ce to known the available versions. docker_version="${1:-20.10.8}"; shift || true # prevent apt-get et al from asking questions. # NB even with this, you'll still get some warnings that you can ignore: # dpkg-preconfigure: unable to re-open ...