blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
ae61ab1d88d185f65fb535a7854dc8eb67e3620a
203
#!/bin/bash echo 'Before:'; echo; # Show Memory free -m; # Clear the Random Access Memory echo; sudo sh -c "sync; echo '3' > /proc/sys/vm/drop_caches"; echo; echo 'After:'; echo; # Show Memory free -m;
db0a19f32da1042ec1d820829855e34267d0143c
155
clang++ -std=c++1y -stdlib=libc++ main.cpp -lsupc++ -Os -DLIBRARY="\"libc++\"" && ./a.out; g++ -std=c++1y main.cpp -Os -DLIBRARY="\"libstdc++\"" && ./a.out
5a1200909609f64b481c624e7c1d37f776c75feb
230
confirm() { local resp while true do echo -n "$* [y/n]" read resp case $resp in [yY]) return 0 ;; [nN]) return 1 ;; *) echo "Please enter y or n" esac done }
b0a734078ac7230310d0ae4cda006986334161a4
169
#proc2.sh #!/bin/bash echo "SUPPORTED FILESYSTEM TYPES:" echo --------------------------------------------------------- cat /proc/filesystems | awk -F'\t' '{print $2}'
a16233d8044485d0f0ddae1d6cefa7c281566a0d
1,328
#!/bin/bash export model=$1 export config_file=$GWS_PATH/software/slstr_calibration_ftp_retriever/config/slstr_cpa_level0_$model'.cfg' export lockfile=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/level0_lock.txt export output_dir=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/ export log_dir=$GWS_PATH...
1c00b21080b74bb0bd69d1e3320f1d9b31ace490
1,387
#!/bin/bash # shellcheck disable=SC2086 source settings.sh source bLOG.sh log_load pGO source tENV.sh CONT=$PROJ_CONT CONT_DIR=$PROJ_CONT_DIR CONT_MNT_DIR=$PROJ_CONT_MNT_DIR HOST=$PROJ_HOST HOST_DIR=$(pwd)$PROJ_HOST_DIR HOST_MNT_DIR=$(pwd)$PROJ_HOST_MNT_DIR IMG=$PROJ_IMG IP=$PROJ_IP LABEL=$PROJ_LABEL MODE=$PROJ_MOD...
18fb28691d534e2e2b84e184954e91341836cb2a
1,627
#!/usr/bin/env nix-shell #! nix-shell -i sh set -e set -o pipefail dotnet tool restore version_js="$(dotnet tool run nbgv get-version --format json)" export Version=$(echo $version_js | jq -r '.AssemblyInformationalVersion') echo Tag: $Version export PackageVersion=$(echo $version_js | jq -r '.NuGetPackageVersion') ...
c8eb79453daa6740377c606bface335f75a45789
1,168
#!/bin/sh VERSION_NUMBER=$1 MONICA_NAME="monica_$VERSION_NUMBER" ARTIFACT_ROOT="artifact" ARTIFACT_FOLDER="$ARTIFACT_ROOT/$MONICA_NAME" SQLITE_FOLDER="sqlite-db" ARTIFACT_SQLITE_FOLDER="$ARTIFACT_FOLDER/$SQLITE_FOLDER" DEPLOY_FOLDER="deployartefact" rm -rf $DEPLOY_FOLDER rm -rf $ARTIFACT_ROOT mkdir -p $ARTIFACT_FOLD...
6755d0f29579311926124000f3d1eb51608118d1
2,415
# vi: filetype=sh # bashrc might be sourced for non-interactive shells, in particular scp, # see http://lists.gnu.org/archive/html/bug-bash/2012-06/msg00028.html # scp breaks when it encounters output, so all echos etc. must be avoided, # and explicitly only happen when in interactive mode # # I also put aliases and a...
c2df705dad424b28c91889c320e192bdf89cb69c
321
#!/bin/sh -e # Instalar en /etc/network/if-up.d/addip2issue if [ "$METHOD" = loopback ]; then exit 0 fi # Only run from ifup. if [ "$MODE" != start ]; then exit 0 fi cat /etc/issue-original > /etc/issue /usr/local/bin/get-ip-address >> /etc/issue echo "" >> /etc/issue...
0482fe683466c30847f9a8b631a8f0d7584be4e1
57
#!/bin/bash exec python3 -m git-package-manager.gpm $@
204086142a87fa880ea8ecfd176756e006e6c721
1,508
#!/usr/bin/env sh function log { local message="${@}" echo "git-repo: ${message}" } function error { local message="${@}" echo "\033[1;31m$(log ${message})\033[0m" } function fatal { local message="${@}" error ${message} exit 1 } function start { local url="${@}" [[ "${OSTYPE}" == "darwin"* ]] &&...
c97b3b961eb7bc0907b852626e17e3e1a452b9e2
569
#!/bin/sh BASEDIR=$(dirname "$0") . $BASEDIR/env.sh # ------------------------------------ PID=`ps -ef | grep java | grep "=$SERVER_NAME" | awk '{print $2}'` if [ e$PID == "e" ] then echo "JBOSS($SERVER_NAME) is not RUNNING..." exit; fi # ------------------------------------ UNAME=`id -u -n` if [ e$UNAME != "...
b0b2895029e2740b4f2f5444e371945d775f09e6
413
#!/bin/bash set -e # This setup assumes you have antlr4 installed on your system # as described at https://github.com/antlr/antlr4/blob/master/doc/getting-started.md java \ -Xmx500M \ -cp "/usr/local/lib/antlr-4.8-complete.jar:$CLASSPATH" \ org.antlr.v4.Tool \ -Dlanguage=Go solidity-antlr4/Solidity.g4...
63324e9ff279780322b785290006a149ff190619
115
#!/bin/sh tmux new-session \; split-window -h \; split-window -v \; select-pane -t 1 \; split-window -v \; attach
2b92f5f26222b10f5d4646f207897290dee3b2e8
1,457
#/bin/bash #获取版本信息 ver="jdk_"`echo $1 | awk -F "-" '{print $2}'` version=`echo $1 | awk -F "-" '{print $2}'` #移动目录并解压 if [ ! -d "/opt/java" ]; then echo -e "\e[1;32m 已创建 /opt/java 目录 \e[0m" mkdir /opt/java fi if [ ! -f $1 ]; then echo -e "\e[1;31m 不存在 $1 , 请上传tar.gz文件到当前目录\e[0m" exit 1 else cp $1 /opt/java/...
d543d1ea132f522ddb71bdb0018adcc0ef55e1d1
4,002
#!/bin/bash verif=`ls /opt/vpn/x.509/server/ | grep tun1.conf` if [ -z $verif ];then echo "Vous n'avez pas encore de serveur, voulez-vous créer un ? oui/non" read reponse if [ $reponse == "oui" ];then server="server_x509" echo "choisissez une option" echo "1- client-to-client" echo "2- sans client-to-client...
ea8cc7e8694192f02e4c2ce322828f18393c6cc4
550
#!/bin/bash #SBATCH --nodes=1 #SBATCH --account=ucb164_summit1 #SBATCH --time=23:59:00 #SBATCH --qos=normal #SBATCH --partition=shas #SBATCH --ntasks=1 #SBATCH --array=1-2 #SBATCH --job-name=density_profile #SBATCH --output=./sbatch_out_files/%x.%j.out #SBATCH --mail-type=ALL #SBATCH --mail-user=eric.keenan@colorado...
da198eb04ad9cdc30bbd72a5e845b841ce8c3114
151
Incorrect time on dual boot systems Check the HDD with `badblocks` Get hardware stack details with `lspci` System uptime Finding Open Files With `lsof`
772dd88c6a767d488789d3f460d0b9f9ea036178
115
#!/bin/bash # run docker container sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk
da3d31f2dc98bf9bd4f8b3a998d8656a3584c2d5
501
#!/bin/bash mkdir -p releases name=beebfpga_$(date +"%Y%m%d_%H%M") release=releases/${name} echo "WARNING: Altera and Xilinx projects need manual compilation before release" pushd roms ./make_duo_bitstream.sh popd mkdir -p ${release}/de1 cp -a altera/output_files/bbc_micro_de1.[ps]of ${release}/de1 cp -a roms/tmp...
463d0a4a42ca92063e75a914a0141dc99df10a1f
724
#! /bin/bash echo echo "*******************************************************************" echo echo "Open another terminal window and run a netcat listener: nc -lvp 443" echo echo "Run the following command to spawn a shell once the reverse connection establishes:" echo echo "python -c 'import pty; pty.spawn(\"/...
139861f2cf26a9c084786dd04a63cbbb085fa0e0
483
#!/usr/bin/env bash echo "Login into ECR ..." $(aws ecr get-login --no-include-email) echo "Push docker image to ECR ..." ./gradlew docker dockerTag dockerPush -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI printf '{"SPRING_PROFILES":"%s","SPLUNK_TOKEN":"%s", "ENVIRONMENT":"%s", "REPOSITORY_URI":"%s"}...
775632d15439e56addd32a71b774a1cc890fb55c
705
#!/usr/bin/env bash cd /home/vishu/Softwares/Apache #put this in any directory you like wget http://central.maven.org/maven2/org/apache/avro/avro-tools/1.9.1/avro-tools-1.9.1.jar AVRO_TOOL_JAR=/home/vishu/Softwares/Apache/avro-tools-1.9.1.jar AVRO_PROJECT_FOLDER=/home/vishu/Learnings/Udemy/ApacheKafkaSeries/Confluent...
3704d0e239e14ba5177d77b24ec30684bd961d1f
844
#!/bin/bash #帧缓冲设备对应的设备文件是/Dev/fb* readelf test -h ##查看elf格式可执行文件信息 readelf -S elf ##查看段信息 ps -eLo ruser,lwp,psr,args |grep pid #查看进程所属cpu arm-linux-as #编译汇编文件,产生目标文件,供连接器ld连接 arm-linux-ld -T ld.lds #连接多个文件代码段,数据段,bss段到一个文件中 nm ##列出目标文件中的符号。 arm-linux-objcopy ##把一种目标文件中的内容复制到另一种类型的目标文件中 arm-linux-objdump ##显示一个或者多个目标文件...
7a2bcc28e33d89e856a5950963fc696e6657e332
145
#!/bin/bash DIR=`dirname $0 && pwd` cd $DIR #python ./scrobd.py $@ 2>&1 | tee -a debug.log python ./scrobd.py $@ || notify-send "Scrobd" "FAIL"
0ec0dc5f591d27ac68e9a828afa8d43f666d0d89
3,420
#!/bin/bash DIR="$1"; kdialog --title "Resize Images" --yesnocancel "Do you want to replace exisiting files ?" case $? in 0) # Replace exisiting files ! choice=`kdialog --title "Resize Images" --radiolist "target size:" 1 "1024px" on 2 "800px" off 3 "640px" off 4 "480px" off`; FILE="" let "nbfiles = $#...
ccdf0c6e187f85eb489edc80c3a86f8e62cd3b2f
2,404
#!/bin/bash ERROR="🛑" RED='\e[31m' NC='\e[0m' # No Color function command_exists { command -v "$1" &> /dev/null } if [ -z "$LC_ALL" ]; then if command_exists apt-get; then sudo apt-get install locales fi printf "\r${2-$ERROR} ${RED}ERROR Locales are not found.${NC} 🐧 Linux OS: You must to include...
999bd51c2769774021a04a1d3953f2084dc4ad2b
186
#!/bin/sh ES_HOST=${ES_HOST:-localhost} ES_PORT=${ES_PORT:-9200} echo "elasticsearch.url: "http://${ES_HOST}:${ES_PORT}"" >> /opt/kibana/config/kibana.yml exec /opt/kibana/bin/kibana
46dc4de26fcbb2680f6e5fc3e3f5419f1bb2487c
107
echo "Input your number" read digit while [ $digit -gt 0 ] do echo $digit digit=`expr $digit -1` done
0b3dacdbb3cd8d6cdb88a781a0dd8e2766e8d73c
861
#/bin/bash #DATA DO ARQUIVO DATA=`date +%F` #DIRETORIOS ROOT_DIR=/backup TMP_ROOT_DIR=/backup/tmp BKP_CONF_APACHE=/etc/apache2 BKP_CONF_MUNIN=/etc/munin BKP_CONF_FAIL2BAN=/etc/fail2ban BKP_WORDPRESS=/sites/wordpress BKP_CONF_FIREWALL=/etc/init.d/start_firewall.sh BKP_SCRIPTS=/root/scripts #COMANDOS MYSQLDUMP=/u...
7e4ee55de15c22ff201c890150ec8ef4015867c9
97
#!/bin/sh code-push release-react cm_driver android --targetBinaryVersion "~1.2.0" -d Production
1c8ee218c39c5a7b66d997049a289dc9cfcb2890
2,758
# # UniFi controllable switch - common functions # [ -z "$ROOT" ] && echo "Set ROOT before sourcing common.sh" 1>&2 if [ -e /var/etc/persistent ]; then DEVEL= # use /tmp to avoid littering persistent config # the controller re-adopts the device on reboot when needed # and this allows forgetting the device...
7367e10fec538e14c0faaccd85978f12e422bcb8
77
#!/bin/bash arr=($(cat)) for i in {3..7} do echo -n "${arr[$i]} " done
addd15d7cb62e4f0349f99d74b20cdc9fd9bcc23
588
#!/bin/bash # https://github.com/brotandgames/bagcli -- example location cli_help() { cli_name=${0##*/} echo " $cli_name Quick WordPress CLI Version: 1.0.0 https://github.com/russellmacshane/quick-wordpress Usage: $cli_name [command] Commands: backup Backup list List Backups restore Restore * ...
ac05f8a2e870ee67b0c2e148a2474d210f7cf347
1,554
#!/bin/sh if [ $# -ne 1 ]; then echo "usage: copy_gstreamer_framework dest" exit -1 fi # check that dest exists, if not, create it and the subdir "GStreamer.framework" DEST="$1/GStreamer.framework" PKG_DEST="$DEST/Versions/1.0" if [ ! -d $PKG_DEST ]; then mkdir -p $PKG_DEST fi GSTQT_PLUGIN="/Users/dan/eclipse-wo...
d2f0ddee4827d1855fd8d1788179419c10210702
52
./$1 880 1 159 963 340 963 0 617 583 0 0 1 >> $2/O1
fffb342b6690fa3451a9d939669560f75aaf2978
661
#!/bin/bash MSG="${1:-test msg}" CHANNEL="${2:-test-readonly}" USERNAME="user_b" PASSWORD="password" SERVER="https://testrocket" USERID="userid_of_user_b" # GET authToken AUTHTOKEN="$(curl -s ${SERVER}/api/v1/login -d "username=${USERNAME}&password=${PASSWORD}" | grep "authToken" | cut -d"\"" -f4)" # post message c...
f229b4f8a13c8602f5e43c8a32a949262e6dba47
423
#!/bin/sh # appliance group and use APPLIANCEGRP="rgm" # nagios paths rgmdir="/srv/rgm" linkdir="${rgmdir}/nagios" chown -R nagios:${APPLIANCEGRP} ${linkdir}* chmod 775 ${linkdir}/etc chmod 775 ${linkdir}/etc/objects chmod 775 ${linkdir}/var/log/spool/checkresults/ systemctl enable nagios.service &>/dev/null system...
cc17e64bb221a04a696d533937182b46d4c837c6
213
# Register the Microsoft RedHat repository curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo # Install PowerShell yum install -y powershell # List version pwsh -v
1b228e66dc186f49d961a2203523b1cb2f192e02
851
########################################################### ###################### General Setup ###################### ########################################################### ### DB #################################################### DB_CONTAINER_NAME=web-db DB_HOST_PORT=3306 DB_ROOT_PASSWORD=secret ### PHP ##...
37937c775386efea66461a8266f6a5f27579b126
416
#!/usr/bin/env bash set -e EXPLICIT=( rslsync ) ./installWithAurHelper.sh "${EXPLICIT[@]}" sudo pacman -D --asexplicit --quiet "${EXPLICIT[@]}" mkdir -p ~/.config/rslsync mkdir -p ~/.cache/rslsync cat > ~/.config/rslsync/rslsync.conf << EOF { "device_name": "$HOSTNAME", "storage_path": "$HOME/.cache/rslsync/", ...
3f052c1f87ed3c050f727e36ec1f51716e149558
32
#!/bin/sh mvn -Pzinc scala:run
8533b8e74c046a6c2cc18f54a0580545205bfdaf
3,314
#!/bin/bash # # Wrapper script to start DDAC cassandra daemon running on this node # Written by Madhu Kangara | initial version | v.1.0 | 05/28/2019 # DDAC_HOME=/apps/cassandra CASSANDRA_PIDFILE="${DDAC_HOME}/run/cassandra.pid" RETVAL=0 NEED_NEWLINE=0 CASSANDRA_USER=cassandra NAME="Apache Cassandra" OUTPUT_...
7e4f378c8ac38009e244a14e6a5135759dd3f477
277
compileToSparc.py -g -s init.s -c serial_io.c -C $AJIT_TOOLS_RELEASE/tools/ajit_access_routines/src -I $AJIT_TOOLS_RELEASE/tools/ajit_access_routines/include -E serial_io.elf -V serial_io.vars -H serial_io.hex -M serial_io.mmap -O serial_io.objdump -D AJIT -L LinkerScript.lnk
ce0d69bc004075b91002ec7cd55d6c9f2e7b52d4
679
#! /bin/bash # setup de la clave de la base de datos kdb5_util create -s -P masterkey #creamos usuarios /usr/sbin/kadmin.local -q "addprinc -pw kpere pere" /usr/sbin/kadmin.local -q "addprinc -pw kpau pau" /usr/sbin/kadmin.local -q "addprinc -pw kjordi jordi" /usr/sbin/kadmin.local -q "addprinc -pw kanna anna" /usr/sbi...
729c6753cb46d1592c2476d98a6eb09999615dc8
260
# Metrics http://demo.robustperception.io:9100/metrics # Demo python query_csv.py http://demo.robustperception.io:9090 'irate(process_cpu_seconds_total[1m])' python query_csv.py http://demo.robustperception.io:9090 'irate(node_memory_MemAvailable_bytes[1m])'
91cd3949bb0fec81ed69c543cda4c4a8e7f0195f
205
#!/bin/bash while true; do FILE=~/tmp/file7 if test -f "$FILE"; then echo "$FILE exists." else echo "INIT ..." touch /tmp/file7 fi echo "DONE" sleep 1d done
9d2ca3f9bd1880095fcebee6216f5f97ac7ecb26
134
docker run -d -P --net-alias hello --network rr_net lindison/hello-world:k8s docker run -it --network rr_net -P alpine nslookup hello
a4fa5366ae4b46a45889ea107d624a28a082b128
618
#!/usr/bin/env bash set -e # Stop Script on Error # save all env for debugging #printenv > /var/log/colony-vars-"$(basename "$BASH_SOURCE" .sh)".txt apt-get update -y echo '==> Install nginx' apt-get install nginx -y echo '==> Configure nginx' cd /etc/nginx/sites-available/ cp default default.backup # backup def...
30230bc6a0455af9dbb7fbbc1a8b6f0266e5315b
32,885
#!/bin/bash ####################################################################### # Copyright 2013--2018 Tom Scavo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
c6d59358de76870c9fed5627fe57570d1b57f3e1
115
# create item curl -X DELETE 'http://demo.9ci.io/api/payment/{id}' \ -H 'Authorization: Bearer {access-token}' \
c6087c1b87c67c34feb9038f1534015703af2f0e
66
DB_USER="" DB_PASS="" DB_HOST="" DB_PORT="" DB_NAME="hellomama_DB"
0a9a585c805a92a11fc7da856cbb3d70ce4181e0
107
git init git log git commit git pull cd/c/user/your_repository git init cd/c/user/your_repository git init
1d853bd5ea88ecb34b2274caa32e39f95feba9d0
2,342
#!/bin/bash set -e yum -y install cloud-init cat > /etc/cloud/cloud.cfg << EOT users: - default disable_root: 1 ssh_pwauth: 0 locale_configfile: /etc/sysconfig/i18n mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2'] resize_rootfs_tmp: /dev ssh_deletekeys: 0 ssh_genkeytypes: ~ syslog_fix_perms...
fba3e40159fa979c57fcc4b25f34dd17ebd5f37c
3,333
#!/bin/bash #### Constants #### # TEST_IMPORT_LIST=() TEST_FILE="test.sh" #### import #### # import django DJANGO_FOLDER_PATH="experiments/import/django/" DJANGO_APP_NAME="django" DJANGO_NUM_TRAILS=5 # import flask FLASK_FOLDER_PATH="experiments/import/flask/" FLASK_APP_NAME="flask" FLASK_NUM_TRAILS=5 # import ...
59eebadef474cb8d59f11146cfea3cc27fc1bbe7
282
#!/bin/bash esearch -db sra -query ERS1349730 | esummary | xtract -pattern DocumentSummary -ACC @acc -block DocumentSummary -element "&ACC" | cut -f 5 > acc/ERS1349730 bash /home/ubuntu/test/PSST/psst_2.sh -s acc/ERS1349730 -n snp.txt -d out/ERS1349730 -e jlever@bcgsc.ca -t 1 -p 1
1298ce057daa90b3270dfef5afadcb07e502a9f6
295
qmake -project \ CONFIG+=c++11 \ CONFIG-=app_bundle \ QT+=opengl \ QT+=gui \ "INCLUDEPATH += . Source/" \ "INCLUDEPATH += . Source/Rendering" \ "INCLUDEPATH += . Source/Interface" \ "INCLUDEPATH += . Source/Math" \ "INCLUDEPATH += . Source/Scene" qmake make
573ddff1d407b64f93524b1c3f7d12e278621646
147
#!/bin/bash # generate blocks-3-3 with 100 different random colors and shapes parallel -j 1 ./generate_all.sh 3 3 true 200 true /{} ::: {1..100}
f297d8bb9327a21d0ae23a154f573b758f5fc83b
1,048
#!/bin/bash set -e APT_PACKAGES=<<EOF vim \ wget \ open-ssh EOF APT_GUI_PACKAGES=<<EOF vlc \ wine \ texlive \ cairo-dock \ build-essential \ clang \ clojure \ python3 \ ipython3 \ ruby \ haskell-platform EOF case $OSTYPE in darwin*) # Install homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.gi...
96609e89f40e6068ff3786bc1be3b9b9609b8849
1,443
#!/bin/bash # Install Realtek wlan drivers # - only drivers for rtl8812au and rtl88x2bu devices are installed # - on older single core Raspis the compilation can take a long time (hours)! # - the drivers are installed using DKMS and will automatically be recompiled after a kernel update # which again might take a lon...
5e3c36ef83c8c0febd4e3c45148cdecb51f5efdb
63
export EDITOR='vim' export LESS='-R' export TERMINAL='termite'
069e00c976d5cf40f830ae820751753acc6e650d
455
#!/bin/sh # Refer to: http://blog.csdn.net/wzb56_earl/article/details/50625705 uptime_ts=`cat /proc/uptime | awk '{ print $1}'` dmesg | awk -v uptime_ts=${uptime_ts} 'BEGIN { now_ts = systime(); start_ts = now_ts - uptime_ts; #print "system start time seconds:", start_ts; #print "system start time:", st...
55849f079bf1957ac1a17a2e6359faf7f1f2f305
829
#!/bin/bash source conf/conf.sh source ../common.sh #logdir=/u/tiberius06_s/chuangw/logs/throughput cwd=`pwd` #echo $cwd if [[ $# -ge 2 ]]; then type=$1 logdir=$2 fi echo $logdir cd $logdir if [[ "$type" = "instant" ]]; then # find the latest log directory dir=`ls -t | sed /^total/d | head -1 | tr -d '\r\n'...
dc4a59edc83d69e94fda4835a515ac3a2fadc270
510
#!/usr/bin/env bash set -o errexit set -o pipefail set -o nounset cd "$(dirname "$0")" cd 'quickstart' echo 0 > /tmp/last set +o errexit while true ; do # shellcheck disable=SC2016 fswatch -o -r -m poll_monitor themes \ | xargs -n1 -IX /bin/bash -c 'now=$(date +%s) ; last="$(cat /tmp/last)" ; secs...
bc6309210bbe8b2ab02718dc065f2e1952ad9c02
5,265
#!/bin/bash ROOT=$(cd $(dirname "$0"); pwd) BINARYDIR=$(cd $(dirname "$0"); pwd)/build_output DEPLOYDIR=$(cd $(dirname "$0"); pwd)/ReleaseBinaries LIB=$(cd $(dirname "$0"); pwd)/lib CSHARP_BIN=$(cd $(dirname "$0"); pwd)/Languages/CSharp/lib if [ ! -d $BINARYDIR ]; then { mkdir $BINARYDIR } fi if [ ! -d $DEPLOYDIR ];...
ef41410af05df23d190f8794ba0a3116edf411b2
278
#!/bin/sh . "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/_bootstrap.sh" rc=0 if test -z "$(php --ri stomp | grep 'SSL Support => enabled')"; then echo 'stomp has not been compiled with SSL support' >&2 rc=1 else echo 'stomp has been compiled with SSL support' fi exit $rc
1a2ed4dcc46d68eae136b1cf9184f3f8134fab60
737
##%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i" colN=1 fileN=access.log pageN="guestbook\.html" #unique user agent awk -F\" '{print $6}' $fileN | sort | uniq -c | sort -fr awk -F\" '($6 ~ /Googlebot/){print $2}' $fileN | awk '{print $2}' awk -v page="$pageN" -F\" '($2 ~ /$page/){print $6}' $fileN #errors awk ...
785df5b9c592be3f065d08f2f891b0b60deb3ea6
2,038
#!/bin/bash # ----------------------------------------------------------------------------- # Tool to manage ONOS applications using REST API. # ----------------------------------------------------------------------------- node=${1:-$OCI} cmd=${2:-list} app=${3} export URL=http://$node:8181/onos/v1/applications expor...
7aa4b5a19c8aa0da721945a1c2712d55423f5dfc
1,871
#!/bin/bash canonicalize() { local _TARGET _BASEDIR _TARGET="$0" readlink -f $_TARGET 2>/dev/null || ( cd $(dirname "$_TARGET") _TARGET=$(basename "$_TARGET") while [ -L "$_TARGET" ] do _TARGET=$(readlink "$_TARGET") cd $(dirname "$_TARGET") _TARGET=$(basename "$_TARGET") d...
60a7860fa2b52c489398a3e681d4e6f8390eaa03
35
#!/bin/dash bindkey '^E' push-line
802edf98306e75d80a069994055fc42d741e4a98
21,789
#!/bin/bash set -x function is_true() { for arg do [[ x$arg =~ x(1|true) ]] || return 0 done return 1 } function is_false() { for arg do [[ x$arg =~ x(0|false) ]] || return 0 done return 1 } function wait_cloud_init() { # exit early if cloud-init log does not exis...
86d46e3d6b6798b120a1df2d43e5a1496fc1a3d8
35
#!/bin/bash docker build -t rdp .
e744382a11b9bad2b84270df4d02a02a835681e7
169
echo "Setup the GhostJS Container..." # Create the database in mysql Cluster # Create Containers kubectl create -f ghostjs.yaml kubectl create -f ghostjs-service.yaml
be72b55c1e186611b77a94d316f6cda0c88e07d7
986
#!/bin/bash # Type password when prompted to access the MySQL console for Infinite Options RDS function usage () { echo "usage:"; echo "--login, -l: log onto mysql server" echo "--create-groceries-table, -c: drop and create table in database, use with caution"; echo "--create-price_competitive-table, -...
dbed8e1a65cbe5ac956bfd03d5a18f0d62fb5133
331
read -p "Introduce la cantidad de litros de agua consumidos: " litros total=0 if [ $litros -le 50 ]; then total=$((total+20)) fi if [ $litros -gt 50 ] && [ $litros -le 200 ]; then total=$((litros/20)) total=$((total+20)) fi if [ $litros -gt 200 ]; then total=$((litros/10)) total=$((total+20+30)) fi echo "El total ...
537e99f22a0ff3e987994f72e273baf7d6001492
299
# copied # Read from the file file.txt and print its transposed content to stdout. awk '{for(i=1;i<=NF;i++){array[NR][i]=$i;}} END{for (col=1; col <=NF; col++) {for (row=1; row <= NR; row++) {if (row==NR){printf("%s", array[row][col]);}else {printf ("%s ",array[row][col])}}printf "\n";}}' file.txt
dcd4b1e20f1fe779f8c5492d1eaed2627f1196d9
234
#!/bin/bash # cat /storage/src/devops/cheats/commands/ipdb.txt | dmenu -fn Terminus:size=14 -c -bw 2 -l 20 -p 'Filter a ipdb command:' cat /storage/src/devops/cheats/commands/ipdb.txt | sort | rofi -dmenu -p 'Filter a ipdb command:'
d265fa4e2855943cb182315b5892111e1218b951
41
#!/bin/bash docker build -t bioselect .
8803f101047db9e7ce36f51bff3f905dcc7851cc
311
#!/usr/bin/env sh D=$(realpath $(dirname $0)/..) mkdir -p "$D/db-data" exec podman run \ --rm \ -e POSTGRES_DB=mafiasi-dashboard \ -e POSTGRES_USER=mafiasi-dashboard \ -e POSTGRES_PASSWORD=mafiasi-dashboard \ -v "$D/db-data:/var/lib/postgresql/data" \ -p 5432:5432 \ $@ \ docker.io/postgres:15
8c81d7fb33713fe59c155d4f22d440481788175f
156
#!/usr/bin/clitosis ## -*- shell-script -*- $ dconv -i ldn 157730.0 -f "%a %b %dth %H:%M:%S %Y" Thu Aug 21st 00:00:00 2014 $ ## dconv.057.ctst ends here
089c6f7f1fc2e1c7a11c59cdfe1e9e5818f9e0b0
1,120
#!/bin/bash # This service allows a remote tunneling over http using ssh # Primary use is to tunnel mqtt traffic over http # corkscrew is used to make the http clientside tunneling http://www.agroman.net/corkscrew/ # command to execute is: # ssh -i PInstance.pem ec2-user@ec2-54-89-176-127.compute-1.amazonaws.com -L 18...
c5995e57ecbcf0d852410d83f44391e07b2d022e
303
#!/bin/bash path=$(pwd) found="F" while [ $path != / ] && [ $found != T ]; do tmp=$(find "$path" -maxdepth 1 -mindepth 1 -name ".project_folder") n_found=$(echo $tmp | wc -w) if [ $n_found -gt 0 ]; then found="T" else path="$(dirname "$path")" fi done echo "$path"
4c947377d3b3dfa7522bb0479691444ea5584bae
1,340
#!/bin/sh # We do not need just to renew the Let's Encrypt certificate, # but also to upload to Azure WebApp and bind it. That's why we # add a renew hook that calls update-azurewebapp-tls.bash if ! grep -m 1 -q -- "--renew-hook" /etc/cron.d/certbot; then echo "init-letsencrypt.sh: Modifying certbot cron job for A...
242f4c472dabec6f50fda413f2347ef3fef60b96
860
# !/bin/sh # sed "s/pattern1/pattern2" replaces pattern1 with pattern 2 # ".*id=([0-9]+).*" matches any line containing id=NUMBER # \1 references the 1st capture group, ([0-9]+), i.e. NUMBER # in the end, only NUMBER is written to stdout. # -r enables extended regexp syntax, # https://www.gnu.org/software/sed/manual...
053e8584555fc45cdd6243e2cad3ef4c04bfe9de
38
SECRET= passEnc= StartUser= StartPass=
0b89e4d54f534575607a4b37483ecfe1a7f8ee7f
97
#!/bin/ash PATH=/usr/bin:/usr/local/bin:$PATH cd /NzbDrone/ /usr/bin/mono /NzbDrone/NzbDrone.exe
9991c48bde791c00ccc46fb0244c1240dac67f07
107
erlc map_parser.erl && erlc map_parser_test.erl && erl -noshell -s map_parser_test show_tests -s init stop
2a06c41b3b4a19b4fdc7a6211b43835dca773448
153
#!/bin/bash cbc-bucket-create people-sample --bucket-type=couchbase -u Administrator -P password; cbq -u Administrator -p password -f=people_sample.txt;
058a40acfcae8e7b1744e5bd5eac80dfc8025ebf
780
#!/bin/bash case "$1" in "build") docker build \ --rm \ --pull \ --no-cache \ -t study_python \ -f Dockerfile \ . ;; "run") docker run \ -it \ -v /etc/passwd:/etc/passwd:ro \ ...
67fae1874aa5bdd752570e7043b8e95eaa3dde9d
4,159
#!/bin/sh ### BEGIN INIT INFO # Provides: nscldaq # Required-Start: $network $time $named $remote_fs $syslog # Required-Stop: $network $time $named $remote_fs $syslog # Should-Start: nscldaq # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: NSCL data acquisition daemons #...
1323978304c5bfcd301d93869ecda0798b12be82
1,059
#!bin/zsh nn_nmap_tcp_all_ports(){ print -z 'sudo nmap --nsock-engine epoll --defeat-rst-ratelimit -n -vvv -sS -d -T4 -oA all_tcp_ports -p- ' } nn_nmap_tcp_sCV(){ print -z 'while read -r t; do host=${t%%:*};ports=${t##*: }; sudo nmap -sCV -p "$ports" -oA "${host}_sCV" -vvv -d "$host" ; done <<(/home/user/.sc...
6ce47cff7ea19cffeba09586fbe6b919d843f7ab
684
#!/bin/bash #install redis tools (for deb based linux) apt-get update && apt-get install ruby wget redis-tools -y #download and install redis cluster tool wget http://download.redis.io/redis-stable/src/redis-trib.rb -O ./redis-trib.rb chmod +x redis-trib.rb gem install redis ./redis-trib.rb create --replicas 1 $(ech...
6dbec48be590393f9e17628ed3f9a985791e3fe1
702
#!/bin/sh #https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=41812517 ASIP=$(docker inspect -f '{{.NetworkSettings.IPAddress}}' as) echo ASIP curl --user admin:admin http://$ASIP:8080/api/v1/clusters echo "====" echo "Create cluster" #curl --user admin:admin -i -H "X-Requested-By:ambari" -X POST ...
63153237addb32128c19d5f50be256b927a26e0f
964
#!/bin/sh INSTANTCLIENT="/etc/ld.so.conf.d/oracle-instantclient.conf" LIBRARY="lofar_lta-2.7.1" # Install dependencies (libaio) apt-get -qq update && apt-get -qq install -y libaio1 && rm -rf /var/lib/apt/lists/* # Download and extract curl http://www.astro-wise.org/losoft/$LIBRARY.tar.gz | tar xz && cd $LIBRARY # R...
93a64e6a0950b4ff906e634909ea8e7f0c19adde
508
#!/bin/bash service=$1 svcport=$2 oriname=$3 deployhome=/tsjr-data/deploy-java/ jar_name=tsjr-$service-$svcport cd /tsjr-data/deploy-java #if [[ ! -d $deployhome$jar_name ]]; #then # mkdir $deployhome$jar_name #fi mv $oriname $jar_name.jar nohup /tsjr-data/jdk1.8/bin/java -server -Xms512m -Xmx512m -Xss256k -XX:M...
1865b99523a47570ab63bc7c7f82c290443bb211
467
#!/usr/bin/env bash #checks if file exist if [ -e "holbertonschool" ] then echo "holbertonschool file exists" if [ -s "holbertonschool" ] then echo "holbertonschool file is not empty" if [ ! -d "holbertonschool" ] then echo "holbertonschool is a regular file" fi else echo "holbertonschool file is empty...
11d8b91bce4fc86aef5164d9e1c5bc9b7ba8ec62
502
#!/bin/bash if [[ $(hostname) == matlab* ]] then watch -n 5 "echo 'matlab1';echo; ssh matlab1 'ps aux | grep matlab | grep -v grep';echo;echo 'matlab2';echo;ssh matlab2 'ps aux | grep matlab | grep -v grep';echo; echo 'matlab3';echo;ssh matlab3 'ps aux | grep matlab | grep -v grep';echo;echo 'matlab4';echo;ssh matl...
86ce71731c6d55e2c16b39002fa9f928c8544046
417
#!/usr/bin/env bats load _test_base function setup { set_state_git } function teardown { unset_current_state } @test "run 'git secret' without command" { run git secret [ "$status" -eq 126 ] } @test "run 'git secret' with bad command" { run git secret notacommand [ "$status" -eq 126 ] } @test "ru...
b375847d6cbbbfb1cdf0b3e0a71b30c103fe1560
182
#!/bin/bash set -ex arachne_pnr=../../bin/arachne-pnr valgrind $arachne_pnr sb_up3down5.blif -o sb_up3down5_valgrind.txt icepack sb_up3down5_valgrind.txt sb_up3down5_valgrind.bin