blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
d29392dc13d69915560c83e947cc98939fb9368b
159
#!/bin/sh hdfs dfs -rm -r ./outstat hadoop jar ./twitterstat.jar pdccourse.twitter.TwitterStat -D mapred.reduce.tasks=1 /pub/followers.db ./outstat
859e17462acc266ca079019f9865f65ab431460a
69
BOT_ID="45d0fe0ae6fd5bb192868ccda9" LT_SUBDOMAIN="howisthispossible"
b6196aca2e5ec3a8dab4fa1579b2e6a2b741fed3
12
rm -r ./db/*
7d57329bb3ecbf06a0c18d212a717354df33d772
97
#!/bin/sh autoreconf -v --force --install || exit $? [ "$NOCONFIGURE" ] || exec ./configure "$@"
47330c6fafb54ba38c2945d9a5b8a76555d108d3
9,473
# directory for all the PreTrained weights PreTrainedRoot='./PreTrainedWeights' img_size=1280 exp_name=yolov4_p6_rad_id8F1_0129 echo "start evaluation" export CUDA_VISIBLE_DEVICES=4,5,6,7 for SPLIT in 'test';do test_ims_root='data/vinbigdata/images/test' test_info_file='data/vinbigdata/annotations/vinbig_test.json...
49aa2b6c0b384614c2df29a7666c9cf1d508780e
107
#!/bin/bash set -ue mkdir -p bin find . -name "*.java" | xargs javac -d bin java -classpath bin Homework3
2dfd90e77a5ab39a35811bdb96ad73ad08889ba3
449
#!/bin/sh # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !!! THIS FILE IS MANAGED BY SALT !!! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! alias grepconf='grep -vE "^#|^$|^[\w]+#"' alias grep='grep --color' alias sudox='sudo cp ~/.Xauthority /root && sudo ' export LS_OPTIONS='--color=auto -h' eval "`dircolors`" alias ls='ls $LS...
0a327b43402e6e3d37408a1b9da96be5139fabc3
943
#!/bin/bash # # Configure and start Fabric CA server. # # This is a bootstrap script for the Fabric CA docker container, # see the ../docker-compose-fabric-ca.yaml config. set -e SCRIPT_PATH=`dirname $0` echo $FABRIC_CA_SERVER_HOME echo $FABRIC_CA_SERVER_CSR_HOSTS echo $FABRIC_CA_SERVER_CA_NAME mkdir -p $FABRIC_CA_...
f352e24f95947e500141f05f5de86f71950deb25
21,658
#!/usr/bin/env bash COLOR_BOLD_YELLOW="\033[1;33m" COLOR_BOLD_BLUE="\033[1;34m" COLOR_BOLD_MAGENTA="\033[1;35m" COLOR_BOLD_CYAN="\033[1;36m" COLOR_RESET="\033[m" CONFIG=config/artful DEFAULT=default CONFIG_DST=$HOME/.config BIN=$HOME/bin function recipe { echo echo -e $COLOR_BOLD_MAGENTA$1 $COLOR_RESET echo...
9064b754792b6314b7de89eac59b40e33bcad517
548
#file location $HOME/project/sqoop/sqoop_create_hive_table.sh #Provide argument as the table that need to be imported. #Error if table already exists . /$HOME/project/conf/mysql.properties #--map-column-hive image=String \ echo username - $mysql_user echo database name - $mysql_dbname echo "Table name passed is:: $1" ...
4232ffcd37661a4a82c90c7bebc4c6eb6be20b52
4,336
#!/bin/bash # title : grive.sh # description : A sandbox to play a little bit with google drive api # author : Korby (https://github.com/korby) # date : feb. 2018 access_token="" # If stdin is not empty, get token from it if [ ! -t 0 ]; then while read line do access_token=$line done ...
e834b81ce1f51efbeae856b5c2fa73838a78cee3
855
# -x Print commands getting executed # -e exit on error set -xe # Prerequisites: # * oh-my-zsh setup # * presence of ~/.zshrc file # Install asdf by git clone of master branch git clone https://github.com/asdf-vm/asdf.git ~/.asdf # Add path to zsh # ./configurations/zsh-asdf-setup file contains necessary configuratio...
598ee62f8d76bbd949949da93b1056e7c4b357ec
4,350
#!/bin/bash # Translates trivial ISSM tests from MATLAB to JavaScript for INFILE in "$@"; do if ! [[ $INFILE == *.m ]]; then echo "Error: Invalid input file detected. Only MATLAB files are accepted as input." echo "Instead, found $INFILE." echo "Exiting..." exit fi OUTFILE...
20ff2247ef19e02465900fb75d278d7ed3b9efb3
1,794
#!/bin/bash ####### Download real time version of CMORPH. ftpsite=ftp://ftp.cpc.ncep.noaa.gov/precip/CMORPH_RT/GLOBE/data ## Working directory is the root directory where data will be downloaded. workdir=/path/to/keep/your/data ####################################################################### cd $workdir ...
ed84a0eb4478546f2471691f7e8efa3c986f5454
2,757
#! /bin/sh ############################### # hadd the root-files, produced by VHbb submitStep2.py to have one flat tree per dataset # Specify INDIR -- directory of root files to hadd # OUTDIR -- directory of merged root files # Optionally set CLEAN_UP=1 to remove input files to hadd on the go # ...
ab435cd8e008177b7e20c1a44b156ba0499dd973
184
#!/bin/bash echo "Monitoring logs" touch /var/www/logs/nginx-access.log /var/www/logs/nginx-error.log /var/www/logs/supervisord.log #Tail logs to stdout tail -f /var/www/logs/*.log
604967317e226558c5582558ffee3b6c32b90dff
136
/Users/sajeedbakht/Documents/kafka25/bin/zookeeper-server-start.sh /Users/sajeedbakht/Documents/kafka25/config/zookeeper.properties
5f5c96a70dbba5ac9df8b1c760a493c6cabfdb0e
382
#!/bin/bash symlink="/dev/camera" mountpoint="/mnt/camera" photopath="$mountpoint/DCIM/100PHOTO/" # Wait for symlink. iter=0 while [ ! -e $symlink ] do sleep 0.5 iter=`expr $iter + 1` if [ $iter -gt 8 ] then exit fi done sudo mount -o uid=panther,gid=users $symlink $mountpoint export XAUTHORITY=/home/panther/....
b34ba7156a5aa17d664c5a2f59112808f3891159
607
#!/bin/bash url_geo_france="https://data.opendatasoft.com/explore/dataset/code-postal-code-insee-2015@public/download/?format=shp&timezone=Europe/Berlin" url_geo_europe="https://ec.europa.eu/eurostat/cache/GISCO/distribution/v2/countries/download/ref-countries-2016-20m.shp.zip" wget -O code-postal-code-insee-2015.zi...
660cba6552b2853b1e72d6ab84c9ec8b9ccd3a0f
62
#!/usr/bin/env bash set -e docker build -t scw-wiki:1.35.0 .
b6e030a55b5d3d138012c7f2e6399e0ad10ce78a
91
mongoimport --db aniladvantagedb --collection medicines --drop --file ./medicines_seed.json
f434df3a4f44e8f6de8446602b6b06eaeb8b13bb
521
#!/bin/sh # Manage a simple todo list using bash FILE=~/Documents/todo date=`date` if [ -w "$FILE" ] then echo "You have existing things in your todo:" while IFS= read -r varname; do printf '%s\n' "$varname" done < "$FILE" echo "Do you want to clear your todo yes/no" read choice if [ $choice="yes" ] ...
42f7f71e4e7163c128e297ad9051017d736408c8
486
#!/usr/bin/env bash # Add Homebrew stuff to PATH if [ -d /usr/local/Cellar ]; then export PATH=/usr/local/bin:$PATH export PATH=$PATH:/usr/local/sbin fi export PATH="$HOME/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH" export PATH="/Applications/Vice/tools:$PATH" export PATH="$PATH:`yarn global bin`" # Setup so...
314a47862690a75c897cd50ba3ab2bfdb78697c0
2,245
#!/bin/bash # # Given the results directories for previous KVM-based torture runs, # check the build and console output for errors. Given a directory # containing results directories, this recursively checks them all. # # Usage: kvm-recheck.sh resdir ... # # This program is free software; you can redistribute it and/o...
0a603e84551e5b2da4c88c478a498ed674f3d516
772
#!/bin/bash set -e set -x VERSION=2.6 # based on: https://gist.github.com/pistol/5069697 # ncurses wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz tar xvzf ncurses-6.1.tar.gz cd ncurses-6.1 ./configure --prefix=$HOME/local make -j8 make install cd .. # libevent git clone git://github.com/libevent/libeve...
653ea320056e346448211d3ecca18cb74b22528f
606
#!/usr/bin/env bash # Exit when any command fails set -o errexit # Exit when an undeclared variable is used set -o nounset # Exit when a piped command returns a non-zero exit code set -o pipefail # Check we have have root privs if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 exit 1 fi ...
88f60a47c580a7588c46303ef74a811e65f1fabc
39
#!/bin/sh mvn clean wildfly-swarm:run
54bfa998d4542f5ffbc73cd6c72f69ade620f698
35
BROWSER=none ESLINT=1 API_ENV=mock
685064f117e99437ac1e1e8ed234f1478cc6a559
372
#!/bin/bash #PBS -q secondary #PBS -l nodes=1,flags=allprocs #PBS -l walltime=00:30:00 #PBS -N gs1_s_Ndet2_gsw0.0_47 #PBS -e gs1_s_Ndet2_gsw0.0_47.perr #PBS -o gs1_s_Ndet2_gsw0.0_47.pout module load openmpi/3.1.1-gcc-7.2.0 module load intel/18.0 cd ${PBS_O_WORKDIR}/run1s/ mpiexec ../../../../mainline/bin/qwalk gs1_s_N...
4151c18c56fdd6e9e71801473e96a63dfbf51a17
292
#!/bin/bash ORNG='\033[0;33m' NC='\033[0m' W='\033[1;37m' LP='\033[1;35m' YLW='\033[1;33m' LBBLUE='\e[104m' cd tools/SocialFish echo -e "${ORNG}" figlet -f mini "Neos Spoofer" echo -e "${NC}" cd tools/Neos_Spoofer sleep 1 wine Neos\ Email\ Spoofer.exe sleep 2 cd /opt/TigerShark ./tigershark
3808ae264b824209a3d8a30ea6bc872b8a003116
406
#!/bin/sh echo "" echo ">>> VERSION" uname -a echo "" echo ">>> USER GROUPS" groups echo "" > /exec/const.py && \ echo "KEY = \"$KEY\"" >> /exec/const.py && \ echo "PIN = $PIN" >> /exec/const.py cp -n /default_config.json /config/last_config.json echo "" echo ">>> CONST" cat /exec/const.py echo "" echo ">>> CON...
7b5352f1c85603618623085b1084eb7efa4ffcaf
376
#!/bin/bash ######################################################################### # File Name: clean.sh # Author: shift # mail: open_shift@163.com # Created Time: 2015年03月03日 星期二 21时30分34秒 ######################################################################### #delete cacu rm -f cacu #delelte *.o rm -rf add/*.o...
54cf6882411d91971ca58ce7df1a92acb8ab67cd
108
#!/bin/bash IMAGE="/tmp/i3lock.png" scrot $IMAGE convert $IMAGE -blur 5x3 $IMAGE i3lock -i $IMAGE rm $IMAGE
f0fd9237a7428902c5489d67c5b311b6097a1e31
226
#!/bin/bash sudo apt update sudo apt install zsh zsh-common zsh-doc zsh-autosuggestions command-not-found cp ~/.bashrc ~/.bashrc.bkp cp ~/.zshrc ~/.zshrc.bkp cp bashrc ~/.bashrc cp zshrc ~/.zshrc chsh -s /bin/zsh byobu-enable
8e16c8de154ef9a47703c08338fadee72631f83d
63
../../tools/ifacegen2/ifacegen2.debug.exe ObjectProxy *.cpp *.h
e1ca194080fb54c70f287cbc75b840e2070b8b5e
67
NODE_ENV = development PORT = 8000 USERNAME = Cha PASSWORD = 123456
e10dd99f493d5e82a6ee4f027142254c44e3cb81
1,080
# Generate a source tarball including submodules if [ -z "${1}" ] ; then echo No tag or branch given exit 1 fi ver=${1} # Remove initial v from tag name for use in filenames if [ ${ver:0:1} = 'v' ] ; then fver=${ver:1} else fver=${ver} fi if [ -r scitokens-cpp_${fver}.orig.tar.gz ] ; then echo scito...
2e587cf93378d1a083bb65a98cfe1fd521c6a11a
4,301
#!/bin/bash log_start(){ echo "#####################################################################" echo "Spawning *** $1 *** on" `date` `hostname` echo --------------------------------------------------------------------- } log_end(){ echo ----------------------------------------------------...
fdb24f61756cd45999db9330e906d7e13eec825b
256
#!/bin/bash set -eu source $(dirname "$0")/activate source $(dirname "$0")/os function keystone_credentials { os_setup tobiko-keystone-credentials "$@" } if [ $(basename "$0") == keystone-credentials ]; then keystone_credentials "$@" fi
b75aa1605e68d6ed5e02224cac8359b367a04ac4
1,279
#!/bin/bash # Copyright 2019 Google Inc. All Rights Reserved. # # 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.org/licenses/LICENSE-2.0 # # Unless required by ...
c3a5fdabec83c454ddd001d0723ff4c16947425a
44
DB_USER= DB_PASS= DB_NAME= DB_HOST= DB_PORT=
ad713720bba2c2a5fe177e1972f9c11b577d1053
5,746
#!/usr/bin/env bash INSTANCE_NAME="neural-politician" set -e # Exits immediately if a command exits with a non-zero status. if [ "$1" == "create" ]; then # https://cloud.google.com/compute/pricing gcloud compute instances create ${INSTANCE_NAME} \ --machine-type n1-standard-4 --zone us-east1-d \ ...
30119e214552db09ca7beecaf87993a95dd0b0cb
94
#!/bin/zsh exec docker build \ --rm \ --force-rm \ -t skyper \ .
b9cc6fe2424cd8432e518e81acbe9c9e71666730
190
#!/bin/sh workspace_dir=$1 output_dir=$2 curl http://download.osgeo.org/geos/geos-$VERSION.tar.bz2 -s -o - | tar xjf - cd geos-$VERSION ./configure --prefix=$output_dir make make install
faba30b3fd506316bc4c638f178e589a0e0f6aa7
260
# fill with your values and rename to '.env' - for use with 'foreman start' # NOTE for deployment on heroku you need to specify 'BASE_URI' only BASE_URI=http://localhost:3000 BASE_URI_EXTERNAL=http://<your-external-ip>:3000 PORT=3000 MONGO_URI=localhost/myDb
8f29fa73cf6e3d417e83a8b6ab2ced4a21a9dafb
164
#!/bin/bash sudo sh -c 'echo "vagrant ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vagrant' sudo chown -R root:root /etc/sudoers.d/ sudo chmod 0440 /etc/sudoers.d/*
6a3fd6bc4cd426546798bca63bfaf36f1ee6b7a6
332
#!/usr/bin/env sh # make the script fail for any failed command set -e # make the script display the commands it runs to help debugging failures set -x svn checkout https://svn.php.net/repository/phpdoc/modules/doc-pt_BR doc-pt_BR 1> /dev/null \ && tree -L 2 \ && mkdir -p out \ && ./generate-html.php > out...
82bf13d95b91902b54946b3c511fbb6772b317db
72
#!/bin/bash service nginx start while [[ true ]]; do /bin/bash done
c7feb99a324b9b6033f6503cccd6553783dfafb2
394
#!/bin/sh for p in cat echo forktest grep init kill ln ls malloctest mkdir rm sh stressfs usertests wc zombie do clang -g -I../ulib/include -target x86_64-none-unknown-elf -msoft-float -fno-builtin -nostdinc -nostdlib -c -o $p.o $p.c ld.lld -N -Ttext 0x1000 -e main -o $p $p.o ../target/x86_64-unknown-rxv64-elf/releas...
f9f0fe7a5e64a3966fb76c96cffbc20f3d0eb9eb
54
cp -rf * ../apache-tomcat-8.5.47/webapps/constellation
b42bfc10326eea4ee97b321ac215a97e4d967306
84
#!/bin/bash exec env WINEPREFIX="$HOME"/.wine32/ LC_ALL=C WINEARCH=win32 wine "$@"
52d390b14f3e43b8c4fa3cd222221da5e5659490
258
#!/bin/bash # copy the flags file to a ccls file # in same directory cp .clang_complete .ccls # add text "clang" to the beginning of the file # so that ccls will recognize it as a compile_commands file echo "$(echo 'clang' | cat - .ccls)" > .ccls # Done!
eb927a23d22d54697b78dc0d231d366df0191b59
232
#!/bin/bash echo "Updating system..." apt-get -y update apt-get -y upgrade apt-get -y install python-dev python-pip libffi-dev apt-get -y install postgresql postgresql-contrib libpq-dev cd /vagrant pip install -r requirements.txt
cf2b4bb12d26197a4314856ec796863c12f40408
140
#!/bin/bash # ###TO_DEMO### echo 1 > /tmp/zoo_demo_1/myid ZOO_PATH=../../../zookeeper/bin $ZOO_PATH/zkServer.sh start ./conf/zoo1.conf
a529acff2ea793a69d6c5c058fed53e9b91b4bd1
45
docker stack deploy flume -c docker-stack.yml
cb9ec29fd554ccd674ff1b22a9b83189e33dc98d
4,314
#!/bin/ksh ############################################################################### # Name of Script: exverf_precip_verfgen_06h.sh.sms # Purpose of Script: To generate 06h precipitation Fractions # Skill Scores statistics for various operational models to be used by the # Forecast Verification System # Argu...
2788263e6d1d4e6b6afb916d7ec48ed8162f8ca8
168
#!/bin/sh my-keyboard-reset >/dev/null xsetroot -cursor_name left_ptr unclutter --keystroke --jitter 8 --ignore-scrolling & redshift & compton & sxhkd & exec bspwm
8ca3a8140c6f7c15abf8d2a623774327519a37ba
363
#!/bin/bash set -x EXPORTER_VERSION=0.6.0 url="https://github.com/prometheus/haproxy_exporter/releases/download/${EXPORTER_VERSION}/haproxy_exporter-${EXPORTER_VERSION}.linux-amd64.tar.gz" PROGRAM_PATH="$ROOTFS/etc/prometheus/exporter" mkdir -p ${PROGRAM_PATH} curl -Ls ${url} | tar --strip 1 -C ${PROGRAM_PATH} -xzvf -...
edccf51b5a6e73670c89efdbd1e5294b9ba40ff5
1,483
#!/bin/bash name=$(basename $0) # runcmd # Parameters # $1 ... : params are the command to run runcmd() { [ $# -eq 0 ] && return echo "$@" eval "$@" } [ $# -ne 1 ] && { echo "Usage : ${name} pathname-to-driver-to-test.ko" exit 1 } DRV=$1 sudo rmmod ${DRV::-3} 2>/dev/null runcmd "sudo insmod ${DRV}" lsmod|grep ${...
69900f5b5c67abcdd91adb09f69f60762611ea72
360
#!/bin/bash echo "Remove old Hastur agent, if present..." /etc/init.d/hastur-agent.init stop || echo "No old Hastur-agent. No problem." update-rc.d hastur-agent.init remove || echo "No old Hastur-agent. No problem." rm -f /etc/init.d/hastur-agent.init rm -rf /opt/hastur || echo "No /etc/hastur. No problem." # This...
fbaad4b2b89f5226cf101735c05c685af501a9e1
375
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' pm_zypper_remove_docker() { # https://docs.docker.com/install/linux/docker-ce/fedora/ info "Removing conflicting Docker packages." #dnf -y remove docker > /dev/null 2>&1 || true } test_pm_zypper_remove_docker() { # run_script 'pm_zypper_remove_docker' ...
b54696d30d2af1301ac72b513cd28df9b36a30d4
1,275
grep full support/target_regions.tab | while read chr start end code gene; do for pheno in control_psoriasis control_coeliac control_crohns control_AITD control_ms control_t1d control_allAID; do #for pheno in control_allAID; do #for pheno in control_crohns; do script=cluster/submission/C${code}_${pheno}...
a90d2e9a84469d2b5b6c738ddb4cae504250d349
1,145
#!/bin/bash set -o errexit set -o pipefail # GLOBALS readonly WIP_PATH="$HOME/.wip" readonly WIP_TMP="$HOME/.wip.tmp" readonly CMD_LS="ls" readonly CMD_ADD="add" readonly CMD_RM="rm" readonly CURRENT="$(pwd -P)" readonly BASE="$(basename $CURRENT)" # set signal trap trap "rm -f $WIP_TMP" EXIT SIGINT SIGTERM usage()...
dd036eb945e8f4b1c2a0c4d90c72f6eedb79853a
47
#!/bin/bash gcc -o ControlBreak controlbreak.c
c5c0734e6b7f2f2c14852b013dc2ac37a4384059
840
#!/bin/bash clustername=$1 servicename=$2 prevtime=$(sudo aws ecs describe-services --cluster $clustername --service $servicename |jq '.services[].events[0].createdAt') pattern='(.*has reached a steady state.*)' count=0 while true do getcurrstatus=$(sudo aws ecs describe-services --cluster $clustername --service $...
e284691ff9175da64dcd66f8eb4dac6b3a181c6c
77
for f in *.py do echo "Testing module: "${f} python ${f} --test done
b02497dce1d8bc4fb3d1d2fa092b16451150fa4b
60
mkdir -p BuildLinux cd BuildLinux cmake .. cmake --build .
f133343d632007506e862c283fa3352a861269be
8,034
############################################################################## # # # ░█▀▀░▀█▀░█░░░█▀▀░░░░█▀▀░█░█ # # ░█▀▀░░█░░█░░░█▀▀░░░░▀▀█░█▀█ # # ░▀...
b05474b8a1b146dd7a7b8db2d9ccf0ec950cb1f0
1,036
#!/bin/bash # You should run this only ONCE if there's no "movie_data" folder # To run this you should past a train and test folder, like this: # $ ./get_full_dataset.sh TRAIN_DATA_DIR TEST_DATA_DIR # Note: you should consider that each folder must have pos and neg directories TRAIN_DATA_DIR=$1 TEST_DATA_DIR=$2 RE...
4553f0c55f706929c1cc2e8cbd972d88bef33aba
1,028
#!/bin/bash -x OUTPUT_DIR=${OUTPUT_DIR:-out} mkdir -p $OUTPUT_DIR export TEST_ACCEPTANCE_START_SBO=scenarios export TEST_OPERATOR_INDEX_IMAGE=${OPERATOR_INDEX_IMAGE_REF:-quay.io/redhat-developer/servicebinding-operator:index} export TEST_OPERATOR_CHANNEL=candidate operator_index_yaml=$OUTPUT_DIR/operator-index.yaml ...
0a51d511f2e71dc84afa0aaa0863de567766f9c3
88
export GOOGLE_APPLICATION_CREDENTIALS="credentials/voice-recognition.json" python app.py
832d4063be074e9a17fdba4bf8426730bc198651
1,616
#!/bin/bash # inspired by https://gist.github.com/domenic/ec8b0fc8ab45f39403dd set -e # Exit with nonzero exit code if anything fails set -x # Print vars and statements SOURCE_BRANCH="master" TARGET_BRANCH="master" pwd # debug # Pull requests and commits to other branches shouldn't try to deploy, just build to ver...
bfc91f3e3e07408b7f806628e32dd9928c74fa86
845
docker build -t szczellak/multi-client:latest -t szczellak/multi-client:$SHA -f ./client/Dockerfile ./client docker build -t szczellak/multi-server:latest -t szczellak/multi-server:$SHA -f ./server/Dockerfile ./server docker build -t szczellak/multi-worker:latest -t szczellak/multi-worker:$SHA -f ./worker/Dockerfile ./...
a24794be94c0aa5fdd7f479975ee3d358f1dcbaa
46
#!/bin/bash # komentarz echo 'hello world'
20b1603412596848ecd42c782d30931d8b15f99e
172
#!/usr/bin/env bash export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" sudo yum localinstall /mnt/gitlab-ce-13.6.1-ce.0.el7.x86_64.rpm -y sudo gitlab-ctl reconfigure
86c3e365c54f276265b99e4876c4d783891f46cb
346
#!/bin/sh DEVICES=$(bluetoothctl devices) SELECTION=$(echo "$DEVICES" | awk -F' ' '{print $3}' | rofi -dmenu -i -p "connect to which device?") if [ -z "$SELECTION" ] then exit 0 fi ID=$(echo "$DEVICES" | grep "$SELECTION" | awk -F' ' '{print $2}') if [ -z "$ID" ] then exit 0 fi echo "connecting to $SELECTION..." b...
fb93b34f836782e093b97e52edb4b01d9a8ca40b
179
echo "resourcegroup: " read rg azure group deployment create --template-file ../templates/az-puppetagent-vm.json --parameters-file ../templates/az-puppetagent-parameters.json $rg
e76732dd3ad83aec03c5cc912319351a68044519
1,554
#!/bin/bash set -e if [[ "$1" == apache2* ]] && [ "${FWD_REMOTE_IP,,}" == "true" ]; then a2enmod remoteip -q echo 'RemoteIPHeader X-Forwarded-For' > $APACHE_CONFDIR/conf-available/docker-ci-apache.conf a2enconf docker-oc-apache -q fi if [ "${ENABLE_CRON,,}" == "true" ]; then cron echo 'Cron enabled.' fi if...
bbfa738a85e665cf078c4917a19f89f0c8255788
619
#!/bin/bash is_open=$(wmctrl -l -x | grep 'Drop Down Terminal.DropDownTerminalWindow') wm_id=$(xdotool getactivewindow) wm_class=$(xprop -id "$wm_id" | grep WM_CLASS) is_focused=$(echo $wm_class | grep DropDownTerminal) function send_command { dbus-send --type=method_call \ --dest=org.zzrough.GsExtensio...
91bff9fcc9d8662e49556f0a668cdc2e1223cd77
618
#!/bin/bash sudo killall -r S20infinite-loop sudo apt update #conf cp /tmp/site.conf /etc/apache2/sites-available/site.conf a2ensite site.conf #ssl enabling sudo a2enmod ssl rewrite sudo mkdir /etc/apache2/ssl # Cert sudo openssl genrsa -out /etc/apache2/ssl/test.key 2048 sudo openssl req -new -x509 -key /etc/apac...
685c4ea2df1ac56d805519033df5abc0c35ccf97
2,458
#!/usr/bin/env bash # # Renames specifiex file(s) by using exif data (via exiv2). # to $year/$month/$year-$month-$day/Wilber_$year$month$day_$imageNumber.$ext # # The only thing configurable at this point is the prefix using the -p option # # Requires exiv2 for meta data extraction and setting the file's timestamp # de...
3da62be794d9ea4e482b7f56c23f408969101545
4,004
#!/bin/bash #desc# setup a new test function usage { echo "usage: $0 -t testName [-H] -i {pd|qa|local|hostName} [-p alt-port] [-o [-u testUser]] [-U url] $0 -I testName eg. jj+test1, jj+mailtest, ... (CSRT_TEST_NAME) -i initialize a new test (CSRT_API) -I to initialize a new test when CSRT_API ...
dee410df514502fdc7bf4f89d80b838ed6d65627
193
List current logged on users with `w` Removing old kernels in Debian based systems Check the HDD with `badblocks` Basic service management with `systemd` Get hardware stack details with `lspci`
7a72de1b2b9d0d13aabe8af7fa9f25eca87194f1
256
#!/bin/bash PYMOD_DIR=$(pwd)/pythonModules mkdir ${PYMOD_DIR} PYTHONPATH=${PYTHONPATH}${PYMOD_DIR} easy_install --install-dir ${PYMOD_PY} intervaltree echo "PYTHONPATH=${PYTHONPATH}${PYMOD_DIR}:" >> ${HOME}/.bash_profile source ${HOME}/.bash_profile
55b96a70199d09d13164e73a3ecdf2d0cb07e948
57
DS_DIR="config/deploy-scripts" DOCKER_IMAGE="ruby:latest"
cede115cdbbc68241f29d7760971ddceca11aa0b
4,438
#!/bin/bash # Copyright 2013-present Barefoot Networks, Inc. # # 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.org/licenses/LICENSE-2.0 # # Unless required by applicab...
d85c88113bba1a915b394d66a7be084964a1a2c7
348
# -*- mode: sh; sh-shell: bash -*- # ~/bin/latest # We shall fail with names that contain whitespaces # If you need it, use GNU ls, sed, xargs, etc. ext="${1:+\.(}$1${1:+)$}" perm="-${2:-.}" perm="^${perm//[^rwx.-]/}" # do not forget '^' res=$(ls -ltA | grep -E "$ext" | grep -E -- "$perm" | sed q | awk '$0=$9') [[ ...
85994ce77a83f0ac0f0897ba9417cb5c6f266673
233
#!/bin/bash dir=$1 if [[ "$dir" == "" ]] then dir="." else if [ ! -d $dir ] then mkdir -p $dir fi fi python currentquotes.py ../uploads/Individual-Positions-2017-06-01-123026.CSV $1 $2
f4cc8d00d7f987c1002bcb1bfa9d22d9a816238a
409
echo "Cloning Vundle repository to $HOME/.vim/bundle/Vundle.vim" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim echo "Done." echo "Deleting old Vundle configuration if present." sed -i '/" BEGIN VUNDLE/,/" END VUNDLE/d' $HOME/.vimrc echo "Inserting new configuration from vundle.txt." ca...
c312d8057d456d695519e309aa3c0a696598e640
955
#!/usr/bin/expect -f spawn scp -P 2233 /Users/andrejfilin/.ssh/id_rsa.pub "andrejfilin@192.168.0.4:" expect { "yes/no" { send "yes\r" expect "assword:" { send "transport2013\r" spawn ssh -p2233 andrejfilin@192.168.0.4 expect "assword:" send "transport2...
9dcacd9291dcda8eb46922c3d36832ebce46e7d8
576
#!/bin/bash export MASTER=$1 export SERVICE=postgres924 function usage { echo "USAGE: $0 <master_fqdn>" } if [ -z $MASTER ]; then usage exit 1 fi if [ ! -f /var/pgsql/data92/recovery.conf ]; then echo "Script can only be run on a Postgres replica. Missing recovery.conf." echo usage exit 3 fi svcadm d...
783a8f470dfe7fd8ec5c9cd2c683a88ac5e0aae1
881
#!/bin/zsh files=(uart uartInterpreter interrupts GPIO timers stepper i2c i2c_interpreter) #files=(uart uartInterpreter interrupts GPIO timers stepper) if [ ! -d build ]; then echo "Creating build/ dir..." mkdir build fi if [ -d build ]; then echo 'Cleaning previous build files...' rm -rf build/* fi avr-gcc -s...
0139d94e6fb7e5e0fdbf1b96176e983223dd357b
890
#!/bin/bash # this is a demo script for training the movielen # get data if it doesn't exist if [[ -f ua.base && -f ua.test ]] then echo "start demo using movielen data" else echo "The demo require input file ua.base, ua.test from ml-100K in current folder, please get them from www.grouplens.org" exit fi...
018e5a6547cb540aa7fa5e0d7d6067613e13f244
285
#!/usr/bin/env bash npx sequelize model:create --name employee --underscored \ --attributes name:string,gender:enum:'{male,female,other}',birth:date,joined_date:date npx sequelize model:create --name User --underscored \ --attributes firstName:string,lastName:string,email:string
542b7cd127146fa65062edc80bf4b7cf8dffaee7
2,667
#!/usr/bin/env bash # # https://pkg.jenkins.io/redhat-stable/... # http://www.unix.com/shell-programming-and-scripting/249212-sed-command-replace-line-file-using-line-number-output-pipe.html # https://unix.stackexchange.com/questions/69112/how-can-i-use-variables-when-doing-a-sed # # Date: Sun Dec 31 21:40:01 PST 2017 ...
2fd6551c9bb92767416ce849031a58ceb0029792
895
if hash xbuild 2>/dev/null; then echo 'cool, xbuild is installed' else echo 'You need to install xbuild to continue with the installation progress.' echo 'http://www.mono-project.com/download/stable/' exit 1 fi mkdir -p ~/.config/nvim/config/ ln -s -f ~/.dotfiles/nvim/init.vim ~/.config/nvim/init.vim ln -s -f ...
e8e509a997519a1f6501d8c3b6bff40e1611a275
1,384
#!/bin/bash # source: https://gist.github.com/phatblat/1713458 # Save script's current directory DIR=$(pwd) set -e set -u set -x echo "############################" echo "# V-REP Robot Simulator #" echo "############################" echo "" echo "http://www.coppeliarobotics.com/downloads.html" echo "" echo "TO R...
9d6701904dbdbb181f073c98f0df7614a65f41fb
808
cp /vols/lhcb/ss4314/cutonProbnnmu/FUMSB_NOTsimultaneous_NewTCK_PIDoptimisation_extremeweights/haddtuples/*probmu35.root tuplestotry/ cp /vols/lhcb/ss4314/cutonProbnnmu/FUMSB_NOTsimultaneous_NewTCK_PIDoptimisation_extremeweights/haddtuples/*probnnmu035.root tuplestotry/ cp /vols/lhcb/ss4314/preparesignalweights/prep...
2aea3566cce27dcd8adc5632b2e7fca33e5b2617
79,029
#!/bin/sh #All commands for transcriptome project #1 Iso-seq data processing (@venus) ##PATH set: you should have python2.7 biopython2.7 phmmer in your corresponding PATH set -x ##parameters list=$1 thread=$2 minCCSlength=50 species=rheMac8 tissue=brain npass=5 ##scripts smrt_dir=/rd1/user/...
e11926f54ac7b57a5fcda4ceb56d4f0001fe84ad
100
#!/bin/bash touch "$2" setfattr -n user.plus3dos.header -v 1 "$2" cp --preserve=xattr "$1" "$2" $3