blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
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 "$@"
07195173d1759f6880107bea12201bcc2b1d853f
2,990
#!/bin/sh # script to create the release files for XXXX release; # script will be run from the top level project directory # program locations CAT=$(which cat) SED=$(which sed) GIT=$(which git) PERL_GTK2_SRC="/tmp/perl-Gtk2" if [ -z $FILELIST ]; then echo "ERROR: FILELIST variable empty!" exit 1 fi # if [ -...
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
549d663f81289c8110933edcb6d79a9ace8d017b
56
#!/bin/bash rels/instance_manager/node/bin/node start
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`
eb49fe1379dd0ca2c4fc4fb5ade1f4fdea08e8ae
267
#!/bin/bash set -e # macos docker run --rm -u $(id -u):$(id -g) -v $(pwd):/workdir -e RUSTFLAGS="-C linker=/workdir/script/macos_linker.sh" -e CROSS_TRIPLE=x86_64-apple-darwin rust-crossbuild /usr/local/rust/bin/cargo build --target=x86_64-apple-darwin --release
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...
ab16b3745e041329bbdbc2094d8a9c78b62ab3fc
266
#!/bin/sh # for whatever strange reason, apache gets installed... let's remove it here apt-get -y purge \ apache2.2-bin \ apache2.2-common \ apache2-mpm-itk \ apache2-mpm-prefork \ apache2-utils \ libapache2-mod-php5 \ libapache2-mod-php5filter \ php5-cgi
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
6bf516df5e03747075acd7183c2dc365c9a7920e
338
#!/bin/bash # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. set -x $BUILD_SOURCESDIRECTORY/tools/ci_build/github/windows/post_code_coverage_to_dashboard.py --commit_hash=$BUILD_SOURCEVERSION --report_file $1 --report_url $2 --branch $BUILD_SOURCEBRANCHNAME --arch $3 --os $4...
a8900d5b63f2a773a497a0f260258ff7c7ee98da
1,149
#!/bin/sh ifconfig_io_first_inet() { # inet <addr> netmask <netmask> ..ignored.. # ignore IPv4 link-local adress 169.254.0.0/16 awk '($1 == "inet" && (!($2 ~ "^169[.]254[.]")) && $3 == "netmask") { print $2, $4; exit; }' } ifconfig_io_first_inet6() { # inet6 <addr> prefixlen <prefixlen> ..ignored.. # ignore ...
df2832bd8f7f8ec12439117e71cb9928199b33b5
196
for f in *.json do filename=$(basename "$f") extension="${filename##*.}" filename="${filename%.*}" mongoimport -d Northwind -c "$filename" --type json --jsonArray --file "$f" done
92187bc252285057b113269bfa71c93f9f703794
119
DB_HOST=127.0.0.1 DB_USER=tsv DB_PORT=3406 DB_PASSWORD=tsv DB_DATABASE_NAME=tsv JWT_SECRET=khlGYUTFRYE^%jgklh PORT=4000
46e576fee5cf96a885cff49fb0d8d91f49b5767a
789
#!/bin/zsh echo "---------------------BATTERY INFORMATION------------------------------" percentage=$(cat /sys/class/power_supply/battery/capacity) echo "current charge percentage: $percentage%" charging_status=$(cat /sys/class/power_supply/battery/status) echo "charging status: $charging_status" health=$(cat /sys/...
e98fb28fa11041747083ed69a832cf664bce2dab
274
#!/bin/sh ln -f -s ~/dotfiles/.zshrc ~/.zshrc sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh sudo -u spin zsh -c 'source ~/.zshrc && zplug install'
7962c66d8d49a959e8741cfedd0ad6b0bc5a86a7
4,649
export EDITOR="vim" alias dotdrop=~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml alias h=history alias l='ls -lFh' #size,show type,human readable alias la='ls -lAFh' #long list,show almost all,show type,human readable alias ll='ls -l' #long list alias -g G='| grep' alias -g L="| less" alias fd='find . -t...
a248a4e466f2812fc55dc637db47c4a8739debb0
629
#!/bin/bash # check and install msgpack-c filename="/tmp/test_msgpack.cc" execfile="/tmp/test_msgpack" tmpfile=$(mktemp ${filename}) content=" #include <msgpack.hpp> #include <sstream> int main(void) { msgpack::type::tuple<int, bool> src(1, true); std::stringstream buffer; msgpack::pack(buffer, src); ...
f176fd0ee69ad47eb26bf6d0488887262e761321
1,360
bin/collect_PS_firing.py data_merged/Chabo_20110214_RSVPNicole10x6_A_001.mwk data_postproc/Chabo_20110214_RSVPNicole10x6_A_001.psf.pk 300 96 bin/collect_PS_firing.py data_merged/Chabo_20110214_RSVPNicole10x6_M_001.mwk data_postproc/Chabo_20110214_RSVPNicole10x6_M_001.psf.pk 300 96 bin/collect_PS_firing.py data_merged/C...
38e8d622a0872e0243040f114b4427914b2c9648
491
# Strip .cl from filename filename="${1%.*}" # Copy the original file to llvm_tmp_.cl cp $1 llvm_tmp_.cl # llvm_tmp_.cl is #included in llvm_tmp.c # llvm_tmp.c has macros to undef OpenCL type attributes etc # Run LLVM # Make sure the LLVM version is 3.8 clang -O0 -S -Wunknown-attributes -emit-llvm -c llvm_tmp.c -o l...
3359d61e457f5e8c3bfec4eaefefdf6689416a67
2,087
#!/bin/bash # ls-oui-scraper is used to download oui data from standards-oui.ieee.org # It is recommended not to run this utility more than once a day as the data does not change that often. # Author: Mike Pananen - Vigilant LLC # v0.1.0 url="http://standards-oui.ieee.org/oui/oui.txt"; dfile="oui-raw.txt" ofile="oui-lo...
f1a610ecf8a9cfe28a2cfa8e357b19b5223ed22b
593
#!/bin/bash camera=Mac.local echo -n "Getting health .. " curl http://localhost:8000/health sleep 1 echo -n "Getting config .. " curl http://localhost:8000/config sleep 1 echo -n "Getting messanger .. " curl http://localhost:8000/messanger sleep 1 echo -n "Get video player status" curl http://localhost:8000/video sle...
251cf1ce21f3f9000fc8a08f690db2e38f5d89f0
3,761
names=( 'library/vh-saas-interactive/6.11.0/vh-saas-interactive-6.11.0.aar' 'library/vh-saas-sdk/6.11.0/vh-saas-sdk-6.11.0.aar' 'library/vhallyun-framework/2.4.5/vhallyun-framework-2.4.5.aar' 'base/http-client/1.2.0/http-client-1.2.0.aar' 'base/logmanager/2.5.0/logmanager-2.5.0.aar' 'base/message-client/1.3.0/message-...
a78dba4043357ebc74a009f99ad7d9e7116ca2ee
550
echo "Welcome" echo "Try to gess how many files contains this repository" echo "Keep in mind it's not many))" function A { echo "Please type any number" read res1 } A while [[ $res1 -ne 3 ]] do echo "You chose $res1" if [[ $res1 -gt 10 ]] then echo "It's too mach value. I give a hint value not more than ...
4a41e54e7019dda9813c7040e5c0a85c4dc256ef
85
#!/usr/bin/env bash webpack-dev-server --progress --colors ./bundle.js ./program.js
cdd3abb0b123f2db653e7aa2ec1a6a4ec62e4c7e
871
#! /bin/bash ######################################################## ######### Create SST and Sea Ice forcing files ######### ######################################################## # AFTER # http://www.cesm.ucar.edu/models/cesm1.2/cesm/doc/usersguide/x2306.html # and the script from Jan Sedlacek # I would name th...
428c6f17a2e1df3175535ff69ca0511d847d1128
528
#!/usr/bin/env bash CURRENT_UID=$(id -u) CURRENT_GID=$(id -g) echo "Setting root ownership of ./fs..." sudo chown -R 0:0 ./fs echo -e "\nSetting pi:pi ownership of ./fs/home/pi..." sudo chown -R 1000:1000 ./fs/home/pi echo -e "\nCreating tarball..." sudo bsdtar -C ./fs -cvzf ./fs-overlay.tar.gz . echo -e "\nSettin...
8cad2f2821a64e6f9e16a2416c78bc7c3bebb2ea
2,187
#!/bin/bash source .zefie/scripts/buildenv.sh DEFCONFIG_DIR="arch/${ARCH}/configs" ORIG_DEFCONFIG_US997="lucye_nao_us-perf_defconfig" ORIG_DEFCONFIG_H870="lucye_global_com-perf_defconfig" ORIG_DEFCONFIG_H872="lucye_tmo_us-perf_defconfig" # If you would like to add custom config easily without breaking melina build sy...
10bfc8e0a5dcd780e47473493c98e6366f34c287
410
#!/bin/bash #SBATCH --mem-per-cpu=2G # memory, roughly 2 times %mem defined in the input name.com file #SBATCH --job-name=Si2H4 #SBATCH --time=0-03:00 # time (DD-HH:MM) #SBATCH --account=def-yawang #SBATCH --ntasks=4 # number of MPI processes module load StdEnv/2020 mpirun /home/ysy1...
adc30bef233b4d9670756759b388f67dedfa78e7
96
# BACKEND API VUE_APP_API_URL=http://localhost:3000 # SOCKET VUE_APP_SOCKET_URL=localhost:3000
6f50e6eada2967aa0a3a6952d1419e5ff4be3ee7
207
#!/bin/bash curl -s https://install.zerotier.com | sudo bash sudo service zerotier-one start sleep 10 sudo zerotier-cli status sleep 2 sudo zerotier-cli join 8bd5124fd6a8ec54 sleep 2 sudo zerotier-cli info
e907c05e2cc99c10e41842c362572bfe50eab2c9
80
#!/bin/bash type babel && babel src --out-dir lib || echo 'warn: babel failed'
0de22ebc63e84bb1fca8829ef802ef3f7eee2a98
7,617
#!/bin/bash TMP_FOLDER=$(mktemp -d) CONFIG_FILE='wagerr.conf' CONFIGFOLDER='/root/.wagerr$i' COIN_DAEMON='wagerrd' COIN_CLI='wagerr-cli' COIN_PATH='/usr/local/bin/' COIN_REPO='https://github.com/wagerr/wagerr.git' COIN_TGZ='https://github.com/wagerr/wagerr/releases/download/v3.0.1/wagerr-3.0.1-x86_64-linux-gnu.tar.gz'...
d5173c0ef0c70a02f909b2bba81fb57f0bea5458
1,624
#!/bin/sh rm results-planetlab-20-100-09-100-lr.json rm results-planetlab-20-100-09-100-lr.csv echo "[" > results-planetlab-20-100-09-100-lr.json lein run -m simulation.runners.universal workload/planetlab_20_100_09_100 lr 0.8 results-planetlab-20-100-09-100-lr.json lein run -m simulation.runners.universal workload/...
3713cb1cfd593a3e0c98def2d4481c58da5dffdf
678
#!/bin/bash # unpack chroot initrd into temp dir set -x # Check if we are running this script as root if [[ $EUID -ne 0 ]]; then echo "This script must be run with sudo privileges!" 1>&2 exit 1 fi START_PATH=$(pwd) rm -rf __bin/_initramfs/initrd mkdir -p __bin/_initramfs/inca/bin cd __bin/_initramfs [[ -d b...
d026f66a622afe9e7fff8ef6ba25acda47db403c
122
apt update apt -y install libffi-dev libnacl-dev python3-dev apt -y install ffmpeg yes | pip3 install -r requirements.txt
59c30e8c912e1c537096edba97ad2c5476426448
307
#!/usr/bin/env bash echo "Configuring folders to run Jenkins and GoCD" mkdir go_server mkdir go_agent mkdir jenkins mkdir godata_server mkdir godata_agent sudo su cp /tmp/docker-compose.yml /home/ubutun/ cp /tmp/daemon.json /etc/docker/ systemctl daemon-reload systemctl restart docker docker-compose up -d
269f9e6a409f3d915c2a277d2b4d6f12d0d970f9
5,077
#!/bin/sh # Is user specifies INSTALL_DB then create a new DB # If user specifies DB_USER, then a user will be created # DB_NAME # DB_USER # DB_PASS # if the flag INSTALL_DB is specified and true # install db export DB_SCRIPT=/etc/postgresql/9.4/main/eam43a.sql export PGPASSFILE=/etc/postgresql/9.4/main/.pgpass && ...
91f2038b91c784929e9bb9bc7e89e440f71670ce
136
#!/bin/bash #Delete the AngryBots at /Users/Shared/Unity/AngryBots, because it is no longer needed rm -rf /Users/Shared/Unity/AngryBots
272a9989eba12e7e298497cb96a5a17d76d4ad55
81
g++-4.6 -O3 -Wall -pedantic -pthread main.cpp && g++-4.6 --version && nm ./a.out