blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
0cb48429a5abf5b36390d3f58f68dad0b906564a
106
#!/bin/bash for i in `seq 1 100` do ( ./client 127.0.0.1 9999 ) & done wait echo hellworld
bf2354b56539d287ca5335417baa22911e63fca8
137
NODE_ENV=production JWT_SECRET="verysecret" #Database config DB_HOST=127.0.0.1 DB_PORT=3306 DB_USER=root DB_PASSWORD=pwd DB_NAME=dbname
5ae66a97adefc396db797fa3cca3713b9b19e1b0
38
#!/bin/bash java -jar Combats-2.6.jar
51ba71166da5fac58eebf6f0d5cc5d5830dbec60
605
#!/bin/sh RUN="0" echo "Running PP->QQ" NAME="mg5_pp_qq_default_$RUN" PROCESS="p p > q q" # Could be "add process p p > mu+ mu- g g" for instance ADDITIONAL_PROCESS= # Could be "MG5/run_card_jj.dat" for instance. By default, only the CMS card is added ADDITIONAL_CARDS="run_card_jj.dat" CMD="define q=u d s u~ d~ s~ g...
d022b5e0d5892c126126807f9f5596cb0561cb8d
5,814
#! /bin/bash # Script to switch configuration files and to turn # Hyperion LEDs on and off dependent on Network AVR # (such as Pioneer 1X2X series, Onkyo, and Denon) # Author: Dominic Wrapson, aka Hwulex # License: The MIT License (MIT) # http://choosealicense.com/licenses/mit/ # Exit script if try to use an uninitial...
b03fd09bf583ebd55fec11fbef3f9d660a3d4f1e
128
#!/bin/sh export HOME=$(pwd) export LD_LIBRARY_PATH=$HOME/lib:${LD_LIBRARY_PATH:-"/usr/lib"} exec $HOME/bin/htmlbutcher-demo
fe5fa99a1222dd512241fae62589b404f7ff0b8a
468
#!/bin/sh # # samurai.sh # # command line gateway to the samurai generator # ## set PHP command if [ -z "$PHP_COMMAND" ]; then if [ -x "@PHP-BIN@" ]; then PHP_COMMAND="@PHP-BIN@" else PHP_COMMAND=php fi fi ## set Samurai dir if [ -z "$SAMURAI_DIR" ]; then SAMURAI_DIR="@PEAR-DIR@/Sa...
f844efc2cd1d05191796a68d92000de72fa710da
334
#!/bin/bash SKI_DIR=${SKI_DIR-"$HOME/ski/"} if ! [ -f "$SKI_DIR/config/id_dsa_vm" ] ; then error_msg "Unable to read the SSH private key for the VM ($SKI_DIR/config/id_dsa_vm)."; fi scp -P $1 -i ${SKI_DIR}/config/id_dsa_vm -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null fsstress empty root@localhost:/ro...
b88e01ec0e42e0842419973717f723f8ea092257
206
#!/bin/sh if [ $# -eq 0 ]; then echo "usage $0 <bandcamp zip files>..." exit 0; fi while [ $# -ne 0 ]; do name=$(basename "$1" .zip) mkdir "$name" unzip -d "$name" "$1" shift done
30529f968e03e7a064cd6c81a2a42cec591d582b
296
#!/bin/bash # Check environment if [ -z "$QSS" ]; then echo "QSS environment variable is not set" exit 1 fi # Clean objects cd $QSS/src/QSS/app && mak clean && cln_dirs cd $QSS/tst/QSS/unit && mak clean && cln_dirs # Clean binaries for ext in a exe pyd so do rm -f $QSS_bin/*QSS.$ext done
34579bada2c28593e8047cdf79574caed5b8c365
336
#!/bin/bash count_cont=$1 echo "creating some $count_cont containers....." sleep 2; for i in `seq $count_cont` do echo "=================" echo "cteating www.day$i containers" sleep 1 sudo docker run -it --name www.day$i mano8888/mydoc /bin/bash echo "www.day$i containers has been created" echo "=====...
3397b64e23777383e7b657d460956ea1f3b9adfb
394
# Remove current bucket aws s3 rb s3://larpdb-cloudnine --force # Create the bucket via console # Bucket name: larpdb-cloudnine aws s3 sync s3://larpdb-master s3://larpdb-cloudnine # Download the backup from Heroku heroku pg:backups:capture -a larp-db-master heroku pg:backups:download -a larp-db-master pg_restore --ve...
2a47af01b5fc61bb53340861d1bf182e2b8450fd
216
#--------------set path for gcc set path=(/usr/bin $path) # ----------- MPICH configuration setenv MPICH_HOME /usr/local/mpich2 set path=($MPICH_HOME/bin $path) set path=($MPICH_HOME/sbin $path) setenv TMPDIR /tmp
dd1cf06ab592a7dada549fe855415286277b6131
469
#!/bin/bash if [ -z "$ARCH" ]; then ARCH=amd64 fi export ARCH=$ARCH mkdir -p $ARCH if [ ! -f .deps/prepared ]; then if which apt-get; then sudo apt-get update sudo apt-get install gcc libgl1-mesa-dev xorg-dev libgtk-3-dev libappindicator3-dev -y fi fi GOOS=linux \ GOARCH=$ARCH \ BIN_OUTPUT=$ARCH/w...
175f69f3e70772266edff1df5808935f99817177
58
echo hello echo this echo is echo a echo script ls ls -l
e42ea1b393e28fe08e20b5bea6ec7e9eeaaee5d8
1,082
#!/usr/bin/bash set -e model_root_dir=checkpoints # set tag tag=$1 # set device gpu=0 # set dataset who=test #who=valid if [ $tag == "baseline" ] || [ $tag == "gaussian" ]; then task=translation data_dir=sent batch_size=64 beam=4 length_penalty=0 elif [ $tag == "inside-conte...
16114d720ea8e514338c12ac3cd301865be12650
8,062
#!/bin/bash set -e ### Default parameter design=`pwd`/input/L1.txt execute='TRUE' ist='FALSE' # install package, default FALSE output='result/solit' # default work directory, remove low abundance < .1% and p__Cyanobacteria,p__Chloroflexi width=40 height=5 text_size=1 library=L1 g1=plate # Function for script descript...
98bd091e16bcde696e1d88b9b3a41c240d6bcddc
136
#!/bin/sh gperf -c -C -l -L ANSI-C -t -m 100 -I -H retrophies_lexer_hash -N retrophies_lexer_lookup --output-file=tokens.c tokens.gperf
0c5c0a6015f026b42c7028d82310eb7885f96255
230
#!/bin/sh # Run bundle install if Gemfile changes [ -f Gemfile ] && bundle install > /dev/null & # Run yarn install if package.json changes [ -f package.json ] && yarn install > /dev/null & # Run unit tests # bundle exec rspec
30de35eb2c59309beb3b6b744c9f173f00c0b5f5
232
#!/usr/bin/env bash ROOT="$(cd "$(dirname "$0")" && pwd)"/../ # format swift files # swiftformat $ROOT # format objc files # find $ROOT/ios/Classes/ -iname *.h -o -iname *.m | xargs clang-format -i -style=file flutter format lib
8cb852bc098c7f93986aa9db157d5f088d1fa809
137
#!/bin/bash yum update -y yum install httpd -y service httpd start chkconfig httpd on aws s3 cp s3://buketname/index.html /var/www/html/
26b1496419389a9b191c570ad8ee7b8700b535bf
1,041
#!/bin/bash # install java apt-get install python-software-properties make python-dev protobuf-compiler -y -q; add-apt-repository ppa:webupd8team/java; apt-get update -y -q; apt-get install oracle-java6-installer -y; # symlink the project directory somewhere more convenient ln -s /vagrant/ /home/vagrant/enclav.es; ...
107fa0fcd356e502f2281a1e98bbb2d2a6d24dea
21,027
WsRootDir=`pwd` MY_NAME=`whoami` CONFIGPATH=$WsRootDir/device/ginreen ARM=arm64 KERNELCONFIGPATH=$WsRootDir/kernel-3.18/arch/$ARM/configs CUSTOMPATH=$WsRootDir/device/ginreen RELEASEPATH=$1 BUILDINFO=$WsRootDir/build-log/buildinfo RELEASE_PARAM=all LOG_PATH=$WsRootDir/build-log BASE_PRJ=gr6750_66_r_n Mode_Path=$WsRootD...
d604d3fe5df2fc86811ed986c8254475ee3e56fa
773
#!/bin/sh # $FreeBSD: src/tools/regression/fstest/tests/link/03.t,v 1.1 2007/01/17 01:42:09 pjd Exp $ desc="link returns ENAMETOOLONG if an entire length of either path name exceeded 1023 characters" n0=`namegen` expect 0 mkdir ${name255} 0755 expect 0 mkdir ${name255}/${name255} 0755 expect 0 mkdir ${name255}/${nam...
af25efcee763e3596e0644fe6b35cb133883c905
5,478
########### BEGIN 2017-08-25 10:22:14 ############### ########### BEGIN 2017-08-25 08:44:50 ############### cd ./src mkdir -p adm chmod 777 adm echo>adm/route_adm_settings.php chmod 777 adm/route_adm_settings.php cat<<EOF > adm/settingshelper.class.php <?php class Adm_SettingsHelper extends Base_dblayerHelper { p...
8c1c0b4fd5aea1c210e975b89f6147d984f1c5be
1,663
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias cls='clear' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias fuck='$(thefuck $(fc -ln -1))' export LS_COLORS='no=00:...
1809825d7554824f0d38c539bc1b66a4666ebfed
429
#!/bin/bash #blah BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # $(dirname "$BASEDIR")/tests/single_command.sh $1 # $(dirname "$BASEDIR")/tests/multi_command.sh $1 # $(dirname "$BASEDIR")/tests/commented_command.sh $1 # $(dirname "$BASEDIR")/tests/exit.sh $1 # $(dirname "$BASEDIR")/tests/precedence_test...
ae2ec56bce4644497d233b0dccade2c58ba91959
103
###----------------ca-dr.sh----------------### cat data-hold/ca.txt | grep -E '\b[BWHO][LHIT][AISH]\b'
d9fd50a108dc38ec8c1d01cc80ff1f10ab1aad79
1,900
#!/usr/bin/env bash if [ ! -z `which brew` ]; then echo "brew is ok do updating...."; brew update; exit 0 fi ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #base brew install python brew install tree brew install coreutils brew install nginx brew install imagemag...
7fdb9649ef2e86c46df75d0ed696b16d6a34b978
225
#!/usr/bin/bash img=(`find /home/user/WallPapers/DistroTube/wallpapers/ -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' | cut -d':' -f1`) while true do feh --bg-scale "${img[$RANDOM % ${#img[@]} ]}" sleep 10m done
8f758e3bfec5c5ecce5270d9b4a229c059523547
2,805
cite about-plugin about-plugin 'Automatically start ssh-agent' dohdoh() { while read id_file; do fingerprints="$id_file $(key-to-fingerprint "$id_file")\n$fingerprints" done < <(ls ~/.ssh/id* | grep -v '\.pub$') echo -e $fingerprints | sed '/^$/d' } load-fingerprints-and-ids () { export finge...
05ca4f4642bd05f39823f46cbe5ffe092ac952a4
57
#!/bin/zsh curl -X DELETE http://127.0.0.1:1080/messages
5cdb8772d6308906f00ca4fb61f49433bb6de12f
348
#!/bin/bash cd "$(dirname "$0")" # CASP kubectl apply -f casp-server/deployments/casp-configmap.yaml kubectl apply -f casp-server/deployments/casp-secrets.yaml kubectl apply -f casp-server/deployments/casp-volumes.yaml kubectl apply -f casp-server/deployments/casp-server-stateful.yaml kubectl apply -f casp-server/dep...
694806f24e94bf622cff715126fe784589866450
299
#! /bin/sh alias urlencode='node -e "console.log(encodeURIComponent(process.argv[1]))"' open $(git remote -v | grep origin | awk '{print $2}' | sed -E 's#(git@|git://)#https://#' | sed 's#github.com:#github.com/#' | sed 's#\.git#/#' | head -n1)compare/$(urlencode $(git symbolic-ref --short HEAD))
f4b8cb3a7687e744e7ae964d0a3be9e3a4745214
1,870
#!/bin/bash set -euo pipefail f=$(cat $1) iterators=$(echo "$f" | sed 's/[\ ,.<>()]/\n/g' \ | grep Iterator | sort -u) cat <<EOF #include <stdint.h> #include <stdbool.h> #include <stddef.h> #define TYPE int TYPE *std__copy(TYPE*,TYPE*,TYPE*); TYPE *std__lower_bound(TYPE*,TYPE*,const TYPE); TYPE *std__upper_bound(...
cbfc7b6ccfca3c7724b3869e9a59c4b40a0c8f01
5,289
# !/bin/bash MAKFILE=Makefile echo "#$MAKFILE generated with prjmake.sh" >$MAKFILE echo "">>$MAKFILE echo 'export PROJECT_PATH=$(CURDIR)'>>$MAKFILE echo 'export CONFIG_PATH=Config'>>$MAKFILE echo "######################################################################">>$MAKFILE echo "# system variables">>$MAKFILE echo ...
7f01b1c3fdcb1f8086c1d5c5219665cff8dadab4
5,843
#!/bin/bash . ./jenkins_private_functions.sh # input Jenkinw workspace directory # this function is invoked in every job entry function set_global_env() { local relative_dir="azure-signalr-bench" local Jenkins_Workspace_Root=$1 if [ $# -eq 2 ] then relative_dir=$2 fi export JenkinsRootPath="$Je...
1924c2cab1376a4daf44d07a6b1df2c6ed2963d2
381
#! /usr/bin/env bash SUBPACKAGE_DIRS=( "core" "mosaic" "application" ) for PACKAGE_DIR in "${SUBPACKAGE_DIRS[@]}" do echo "publishing titiler-${PACKAGE_DIR}" pushd ./src/titiler/${PACKAGE_DIR} rm -rf dist python setup.py sdist twine upload dist/* popd done # Publish Titiler meta p...
226272762e5903dbf4336e0b9a36137190563b6b
2,489
# Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="crunch" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh...
f84074ab1d68f358321a14b0c2f8c81591b6bdce
1,325
#!/usr/bin/env bash ### every exit != 0 fails the script set -e set -u update-ca-certificates -f echo "Install noVNC - HTML5 based VNC viewer" mkdir -p $NO_VNC_HOME/utils/websockify wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.0.0.tar.gz | tar xz --strip 1 -C $NO_VNC_HOME #wget -qO- https://github.co...
78865249c55863c7bef516b4f1063f2a48d36b2f
892
#!/bin/bash usage() { echo "USAGE:" echo " ./ghostwriter <login> <password>" } setup_switcher() { echo "- installing keyboardSwitcher via brew..." brew tap lutzifer/homebrew-tap brew install keyboardSwitcher } revert_layout() { keyboardSwitcher select "$org_keyboard" } command -v keyboardSwitcher ...
fc3e54d242fe20d422ac4f089fe93f3336a68a1f
621
#!/usr/bin/env bash PRODUCTNAME='${pdn}' I18NDOMAIN=\$PRODUCTNAME CWD=\$(dirname $0) cd \${CWD} for d in ../../../.. ../..;do if [[ -d "\${d}/bin" ]];then export PATH="\${d}/bin:\${PATH}" fi done i18ndude=\$(which i18ndude) echo "Using \${i18ndude} in \${CWD}" # Synchronise the .pot with the templates....
d0c809c911943cd734c551c777fb3b06e7183336
618
# Maintainer: desbma pkgname=mpv-scripts pkgver=0.27.0 pkgrel=1 pkgdesc="Scripts for the mpv media player officially maintained by the mpv authors" arch=('any') url="https://github.com/mpv-player/mpv/tree/master/TOOLS/lua" license=('GPL') depends=('mpv') install=$pkgname.install source=("mpv-$pkgver.tar.gz::https://git...
13ac272d55554434ee1d8e4c319befa6b66a9f0c
3,107
#!/bin/bash # Datart # <p> # Copyright 2021 # <p> # 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 # <p> # http://www.apache.org/licenses/LICENSE-2.0 # <p> # Unless required by applicable law o...
9f3d46cdf1d8964fbd14410f2b3c2905fda6f271
3,062
#!/bin/sh usage() { cat << EOF usage: $0 options This script will check out Seam 3. OPTIONS: -a When performing a fetch use --all to retrieve all remotes -b Build and install parent, tools and bom modules -h Show this usage message -d Destination directory, otherwise the PWD is used ...
e6a071834fd71b4851aa784020a86982dcb1e8c3
308
#!/usr/bin/env bash for d in *; do cd $d/z-positive/ && \ sed -i '/traj_load_filename/s/None/"trajectory-bd-pos.in"/g' trajectory.in && \ cd ../../; cd $d/z-negative/ && \ sed -i '/traj_load_filename/s/None/"trajectory-bd-neg.in"/g' trajectory.in && \ cd ../../; done ' '''
04bf4c149b949a0d5ff97d965604e64a48df01bb
899
#!/usr/bin/env bash if [ $# -lt 2 ]; then echo "usage: $0 prefix threads frgs" exit fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #source ~/.bashrc #source ~/.profile region=$1 threads=$2 if [ $# = 3 ]; then runCA -p $region -d $region ovlErrorRate=0.40 utgGraphErrorRate=0.40 cnsErrorRate=0.4...
90ea16043c2e5bf0bdc0dfdac0e1cff763cf4e40
276
#! /bin/bash # nvm export NVM_DIR=$HOME/.nvm # This loads nvm [ -s $HOME/homebrew/opt/nvm/nvm.sh ] && \ . $HOME/homebrew/opt/nvm/nvm.sh # This loads nvm bash_completion [ -s $HOME/homebrew/opt/nvm/etc/bash_completion ] && \ . $HOME/homebrew/opt/nvm/etc/bash_completion
4a334c57209f7dd3b5f34769ee1bb17da4dd928c
864
#!/bin/bash read -p "Enter the hostname: " host read -p "Enter the user_name add to the $host:" name; read -p "Allow to use sudo access(yes/no):" sudo; ping -c3 $host &> /dev/null a=$(echo $?) if [ $a == 0 ] then echo "Connecting to $host"; else echo "You are not able to connect to the $host, Please Check"; exit 0 fi...
b6f7c9ba59ee0fcdf7a0fc7be91e48f096750389
530
#!/bin/bash tar xzf $TEMP --strip=1 -C $BIN_DIR bat-$VERSION-x86_64-unknown-linux-gnu/bat tar xzf $TEMP --strip=1 -C $MAN_DIR/man1 bat-$VERSION-x86_64-unknown-linux-gnu/bat.1 if [ -d ~/.config/fish/completions ]; then tar xzf $TEMP --strip=2 -C ~/.config/fish/completions bat-$VERSION-x86_64-unknown-linux-gnu/autocom...
7a27eb4a3e8c1a1ec79ac28b779871a27f7d4fe5
105
#!/bin/bash #/opt/usr/nx-ks/popup_timeout "Stop Remote Capture" 3 pkill -9 -f "nx-remote-capture-daemon"
4e436df695785bb87d16978e337fdfd0547e3593
176
setopt no_beep setopt nolistbeep setopt auto_pushd setopt share_history setopt hist_ignore_dups setopt hist_ignore_all_dups setopt hist_ignore_space setopt hist_reduce_blanks
e3a28c64ec4f4e6bd3fe23eb91b1e07a3d1c1a0f
3,551
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash...
132b0e3ada844ed24a9f8450a88c0ae9fabf7c9f
1,607
#!/usr/bin/env bash set -e IFS=$'\n' #click, play/pause [[ ${BLOCK_BUTTON:-0} = 1 ]] && playerctl play-pause player_status=$(playerctl status) pango_escape() { sed -e 's/&/\&amp;/g; s/</&lt;/g; s/>/\&gt;/g' } # exit 0 lets the block text be cleared if [ -z $player_status ]; then exit 0; fi if [ $player_status = Sto...
52f14316394ccf35860c1b0f9f3fb6940868555e
1,081
String Comparison Result string1 == string2 True if the strings are equal string1 != string2 True if the strings are not equal -n string True if the string is not null -z string True if the string is null (an empty string) Arithmetic Comparison Result expression1 -eq expression2 True if the expressions...
6ada0dd2c336be6b3cfec421208cf7f4f96eb788
466
#!/bin/bash /home/ubuntu/anaconda3/bin/python solve.py "XXT(coatesng_16384_10_1_100_49_0.6311_0(imagenet_train_raw_uint8))" \ "scrambled_train_labels.npy" \ --epochs 3 \ --eval_interval 1 \ --blocks_per_iter 1 \ --test_key "XYT(coatesng_16384_10_1_100_49_0.6311_0(imagenet_train_raw_uint8), coatesng_16384_10_1_100_49_0...
2fe999a1ebedadde6701da7d86bf2bc8160d6c3d
1,937
#!/usr/bin/bash # # Copyright (c) 2017, Inspur. All rights reserved. # ################################################################################ # # __stc_assertion_start # # ID: mn/tc_serviceip_pos001 # # DESCRIPTION: # 1. verify service ip is changed as the cmd execute # 2. verify the service ip is stored in ...
758f6212e91bba7adf5a13987e478d37563b2d0c
146
#!/bin/bash npm install bower install sed '1s;^;var emojis = ;' bower_components/emojilib/emojis.json > bower_components/emojilib/emojis.json.js
3342646ac67f20d1c7c0c8da6803ab336f7e5694
233
#! /bin/bash ls -l -1 | awk '{print $9,$8,$6,$7,$1}' file=$((0)) dir=$((0)) for i in $(ls -1) do if [ -f "$i" ] then ((file++)) fi if [ -d "$i" ] then ((dir++)) fi done echo "Files = $file" echo "Directories = $dir"
39f2385f54425e21f2569d2918cdc5a0c54d779b
3,307
# Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. #ZSH_THEME="kolo" #ZSH_THEME="blinks" #ZSH_THEME="agnoster" ZSH_THEME="dpoggi" #ZSH_THEME="lambda-bu" #ZSH_THEME="murilasso" setopt rmstarsilent # Ex...
ecf06a6341a370e4129e92986b8413f9d9a96592
48
java -cp ../target/ZeroMQ.jar com.examples.Pull
55f1794bbe72b1e8da1d1e5b246c7ba97061697d
848
#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_fixloop.dpatch by Nico Golde <nion@debian.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad tsocks-1.8beta5~/tsocks.c tsocks-1.8beta5/tsocks.c --- tsocks-1.8beta5~/tsocks.c 2002-07-16 00:50:52.000000000...
8a7681dd1ddad6c00cb0f3de76e74b0febfef3d0
175
#!/bin/bash export INDEX_SETTINGS="index_settings_search_known_drugs.json" export INDEX_NAME="known_drugs" export INPUT="${PREFIX}/knownDrugsAggregated" bash ./load_jsons.sh
6ede55d3ccfa604caf12a4a22155f4b50d7257b5
121
echo "Starting build for easy-post project" echo "Dir: $PWD" DIR=$PWD xbuild src/easypost.sln /p:Configuration=Release
44c8a78a4255fec84c622e5f54835dcd8febcd2b
1,048
#!/bin/bash command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. export FZF_COMPLETION_TRIGGER='~~' vf() { local out file key IFS=$'\n' out=("$( find $HOME/.local/* $HOME/.config/* -type f | fzf --query="$1" --exit-0 --expect=ctrl-b,ctrl-e)") key=$(head -1 <<< "$out...
dbfc6ae127784585834b35872adfc90276974816
880
#! /bin/bash ########################################### # ########################################### # constants baseDir=$(cd `dirname "$0"`;pwd) TARGET=$baseDir/docs TMPDIR=$baseDir/tmp # functions # main [ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return if [ ! -d $TMPDIR ]; then mkdir $TMP...
78667d03274f19bd10ea058ce01e8918c429088b
453
python generate_D3.py GTD_2016_Per-Population.csv scatter -x kills_per_pop_2016 -y wound_per_pop_2016 -r population_2016 -xs 0 80 -ys 0 40 -rs 3 35 -xt 20 40 60 80 -yt 0 10 20 30 40 -xl "per 100k" -yl "per 100k" -wm 800 100 60 -sfv lightblue 0.5 -ssv "#000000" 1 1 -t "Terrorism Victims: Killed and wounded per populatio...
b3871d4f384b02da327b65771d3c97acab32d08e
6,813
#!/bin/bash # Slackware build script for higan # Based on bsnes SlackBuild by Erik Hanson <email removed> # Maintained by Gabriel Magno <email removed> # Modified by Johannes Schoepfer <email removed> # Modified again & now maintained by B. Watson <urchlay@slackware.uk> # Copyright 2013 Gabriel Magno, Belo Horizonte...
b639627bf32f79500b542baf1aaefdfd8d7fe3cb
2,601
#!/bin/sh VERSION="$(basename $0) ver.1.0" USAGE="Usage: $(basename $0) <eth0|eth1> <port1|port2|...> <s=[0|10|100]> <d=[0|1]>" DESCRIPTION="Description: get or set the specified port's link status,auto-negotiation status,speed mode and duplex mode, s means speed(speed=0 means auto-negotiation),d means duplex(duplex=0...
394bd807321338fbf4c71d9dc8666e4ac1994def
148
#!/bin/sh python3 generate_alignment.py 25 9 $1 $2 & python3 generate_alignment.py 25 18 $1 $2 & python3 generate_alignment.py 25 25 $1 $2 & wait
d1017073e30a04f679bfe9b95162f23e12e46da2
833
# Variables pour la gestion des VMs VBOX_HOME=/cygdrive/c/Program\ Files/Oracle/VirtualBox VM_UBUNTU="ubuntu LVM" alias VBoxHeadless='$VBOX_HOME/VBoxHeadless.exe' alias VBoxManage='$VBOX_HOME/VBoxManage.exe' # cette fonction permet de démarrer la VM en arrière plan et d'afficher une progression dans l'attente de son ...
4a92e49352847a83b36a348a1441db7d3e25091b
925
#!/bin/bash PKG_NAME=$1 PKG_VERSION=2.14.19 PKG_DEPENDS="libIDL" PKG_MAINTAINER="Michael Meeks <michael@ximian.com>" PKG_SECTION="gnome" PKG_SHORTDESC="ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB) featuring mature C, C++ and Python bindings." buildpkg() { ../configure ${TARGET_CONFIGURE_OPTS} \ ...
f7a544f56b6299ea767cfafdc08ff50e50ce8d0c
600
#!/bin/bash cd "$GITHUB_WORKSPACE" || exit 1 export GITHUB_TOKEN="${INPUT_GITHUB_TOKEN}" GITHUB_REPOSITORY="${INPUT_GITHUB_REPOSITORY}" ISSUE="${INPUT_ISSUE}" SPLIT_GITHUB_REPOSITORY=(${GITHUB_REPOSITORY//\// }) ORGANIZATION=${SPLIT_GITHUB_REPOSITORY[0]} REPOSITORY=${SPLIT_GITHUB_REPOSITORY[1]} echo "INPUT_GITHUB_R...
fb748abd765007ea31c40bbc301cbd0839acc7fa
334
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" python3 -m compileall "$dir" dst="/usr/bin/autofan" echo 'dst' $dst echo 'dir' $dir if [ ! -d "$dst" ]; then mkdir "$dst" fi if [ ! -f "$dir/autofan.pid" ]; then touch "$dir/autofan.pid" fi cp -r $dir/* /usr/bin/autofan cp -r $dir/service/autofan.service /lib/sy...
a7e2f0eafbd626607b62b368f39d6731b19ad81d
345
#!/usr/bin/env bash set -euo pipefail main() { local input="$1"; shift cd "$input" find . -type f -print0 | while IFS= read -r -d "" file; do exiftool -j "$file" || true done | jq '.[]' | jq -s 'map( { (.SourceFile|tostring): . } ) | add' } output=$(main "$1") && echo "$outpu...
9a8c88239475288c9a7ec1a650652cbecf80bf43
139
#!/bin/bash g++ -O3 -Wall -march=native -std=c++11 -I. -I../../mylib -I../hilbert2 ./hilbert2_glsl.cpp -o hilbert2_glsl -lglut -lGL -lGLU
6174d58e8adb00709a25b6c48417a50f321180e7
728
#/bin/bash #时区 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock --systohc --utc #语言 echo en_US .UTF-8 UTF-8 >> /etc/locale.gen echo zh_CN.UTF-8 UTF-8 >> /etc/locale.gen locale-gen echo LANG=en_US.UTF-8 > /etc/locale.conf #引导 pacman -S --noconfirm wicd grub mkinit...
99ded11faf32851500858150c232a79d5ae712b1
1,004
#!/bin/bash mkdir -p /data/installers mkdir -p /data/ansible cd /data/installers/ rm -rf /data/ansible/* outfile='/var/log/userdata.out' # Install wget if [ ! -f /bin/wget ] ; then yum install wget -y >> $outfile fi # Install Ansible if [ ! -f /bin/ansible ] ; then echo "Installing Ansible" >> $outfile yum install ans...
58d7192620d62a64fcb2d4a9aad499c93aa3576f
1,240
#!/bin/bash THISDIR="$(cd `dirname "$0"` && pwd)" ROOTDIR="$( dirname "$THISDIR" )" CONFDIR="$ROOTDIR/conf" LIBDIR="$ROOTDIR/lib" NODEDIR="$HOME/tmp/node_install" source "$LIBDIR/utils.sh" main () { local version=$( cat "$CONFDIR/node.version" ) if [ -z $version ]; then fail "No Node.js version speci...
d5662e382a7c8b5ff73492e2789c49b1bef65c88
781
#!/bin/bash set -e CATTLE_GLOBAL_PROPERTY=${1:-"./resources/content/cattle-global.properties"} DEST=${2:-"/usr/bin"} install_binary() { local src=${1} local dest=${2} pushd /tmp #deletes the longest possible match from the left file=$(echo ${src##*/}) curl -sSL -o ${file} ${1} suffix=$(e...
7146bf31dd933614ffaf1420e6925d3ddbbef0cb
182
#!/bin/sh if [ -z "$1" ] || [ -z "$2" ]; then exit 1; fi psql events -c "insert into admins (uid, rid) values ($1, $2)" if [ "$?" -eq 0 ]; then echo "User $1 is now admin of $2"; fi
455b43d73e8519269d0c583782c8218c21b1f557
885
#!/bin/bash # This file will be automatically sourced at the installation of your plugin # Use only if you need to perform changes on the user system such as installing software jv_debug "Downloading websocketd" jv_pg_mm_www_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/www if [[ "$platform" == "linux" ]]; t...
81eaf5f07c8e5add321932c68efbd989c7a440c9
358
#!/usr/bin/env bash ssh root@192.168.0.226 -t "bash -ic './roboy_plexus'" > /tmp/soli_fpga.log #ssh root@192.168.0.223 -t "bash -ic ./ROS_MASTER_URI_receiver_armhf && source ~/.bashrc && ./roboy_plexus" > shoulder_left.log & #ssh root@192.168.0.223 "export ROS_MASTER_URI='http://192.168.0.226:11311'; source /opt/ros/...
00e3b828612c3f1d35616a4ce790d8514501fcfa
637
#!/bin/bash # Probably incomplete setup script that setups all the symlinks shopt -s dotglob DIR_DOTFILES=$HOME/dotfiles DIR_LINK_TO_HOME=`ls -a $DIR_DOTFILES/home_directory/ | grep \.[-a-zA-Z_0-9]$` DIR_BIN=`ls -a $DIR_DOTFILES/bin | grep \.[-a-zA-Z_0-9]$` DIR_I3=`ls -a $DIR_DOTFILES/.i3 | grep \.[-a-zA-Z_0-9]$` f...
ed692f9987887bae362106fd3473014395460d15
71
SKIP_PREFLIGHT_CHECK = true REACT_APP_BACKEND_URL=http://localhost:3000
9fa88a249bb491e9fe7d915bd29a1eae23cdaddb
80
for(( i=0; i<100; i++)) do if [ $((i % 2)) != 0 ]; then echo $i fi done
c620e38657ec32418b3bd32a8b83df96a9739e98
2,460
#!/bin/bash # Must be run as root user date > /root/setup_start.txt env > /root/setup_env.txt #setup jenkins directory mkdir /opt/jenkins chown ubuntu:ubuntu /opt/jenkins #update software repo lists apt-get -y update #upgrade all installed software apt-get -y upgrade # update hard and soft file limits sed -i.dist '...
9440966b034814c54018f0f8f8189abefc60d2a2
62
FTP_HOST= FTP_USER= FTP_PASSWORD= FTP_PORT= FTP_DEST= FTP_URI=
420d8fedf1d43e74d47617ea61da54055307194b
755
#!/bin/bash # LA exercise 2 - write a script that sets 4 variables. Populate the first two with some default value and use command # redirection to set the third and fourth value to the date/time of when the script was started and completed. Within # the script, be sure to display the values to the terminal when run. ...
74ac655d432d291d776c6f7eb1ef21f33559d7f0
189
#!/bin/bash set -e -x BIN_DIR=${BOSH_INSTALL_TARGET}/bin mkdir -p ${BIN_DIR} # Install the mysql client into the package zypper install -y mariadb-client cp /usr/bin/mysql "${BIN_DIR}"
9293679eb23772b17d36ec044eff12cbafc8b46d
1,033
#!/bin/bash # # Sample command: # mkisofs -r -D -graft-points \ # -path-list /var/lib/pulp/working/repos/rhel-server-rhscl-7-rpms-7Server-x86_64/distributors/export_distributor/realized/pulpiso-sR2vBE \ # -o /var/lib/pulp/working/repos/rhel-server-rhscl-7-rpms-7Server-x86_64/distributors/export_d...
35b384ebf3fefeb678637b4cd69be1269a766232
38
FLASK_APP=flaskr FLASK_ENV=production
50852e4633ebe214dda8e07a3a622fafaf610850
504
#!/usr/bin/env bash # Author: github.com/danielhoherd # License: MIT # Purpose: Format 'docker images' in a vertical style similar to mysql's \G # https://docs.docker.com/engine/reference/commandline/images/#formatting docker images --format="{{.Repository}}:{{.Tag}} .ID: {{.ID}} .Repository: {{...
4259342afc1477f4d8d268ad31cd718b04481a96
536
#!/usr/bin/env bash clear function Introduction { echo echo "Hello.....would you like to play a game?" echo echo "Try to guess how many files are in the current directory" echo } Introduction FileNumber=$(ls -1 | wc -l) until [[ $response -eq $FileNumber ]]; do read response if [[ $response -gt $FileNumber ]] t...
e7d61383a986e44630ec92b2d4b29056c39f76c4
504
#!/bin/bash # Copyright (c) 2016-19 Jetsonhacks # MIT License # Configure kernel to include tegra usb firmware # SOURCE_TARGET and KERNEL_RELEASE should be set in caller cd "$SOURCE_TARGET"kernel/kernel-$KERNEL_RELEASE cp /lib/firmware/tegra21x_xusb_firmware ./firmware/ # CONFIG_EXTRA_FIRMWARE="tegra21x_xusb_firmware"...
c353ec5ed6c4874a2e7d309b5c4dc754382e5dcc
674
#!/bin/bash #/bin/gunicorn_start NAME="genewiki_app" LOGFILE=/home/ubuntu/webapps/genewiki/logs/gunicorn.log LOGDIR=$(dirname $LOGFILE) DJANGO_SETTINGS_MODULE=genewiki.settings DJANGO_WSGI_MODULE=genewiki.wsgi DJANGODIR=/home/ubuntu/webapps/genewiki VENVDIR=/opt/genewiki-venv/bin/activate USER=deploy GROUP=deploy NU...
2999cc49674edd4dbb6488ba829669666ebdc76d
583
#!/bin/bash QUERY_CUSTOMIZATION=$2 cat <<EOF > $1 select * from ( select t.table_type, c.table_schema, c.table_name, c.column_name, c.ordinal_position, c.column_default, c.is_nullable, c.data_type, c.character_maximum_length, numeric_precision, numeric_scale from information_schema.columns c inner join inform...
ebb4de58fcd65540d7c825367440cf402019d5d6
195
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" . $DIR/db.sh pg_dump -h $PGHOST -p $PGPORT -U jbovlaste -s jbovlaste >/srv/jbovlaste/current/help/schema.txt
2785674c8ec8f55dc42d9342572779173a460c97
2,090
#!/bin/bash set -e # exit immediately if a command exits wiht a non-zero status if [ -z "$1" ]; then echo '------------------------------------------------------------' echo '' echo 'No playlist selected.' echo 'A playlist is a text file with a list of the filenames to play' echo 'Pla...
f8fdafde67ab6f8d82d5f7e4e7321a05177d2ebf
432
alias ls='ls --color=auto' alias la='ls -A' alias more='less' alias rdp='xfreerdp +aero +fonts +clipboard +menu-anims +window-drag /w:1600 /h:800 /sound /microphone /rfx /gfx-h264' alias rdpw='rdp /u:<username> /d:<domain> /v:<computer_name>' alias rdpf='xfreerdp +aero +fonts +clipboard +menu-anims +window-drag /w:16...