blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
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... |
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 && ... |
272a9989eba12e7e298497cb96a5a17d76d4ad55 | 81 | g++-4.6 -O3 -Wall -pedantic -pthread main.cpp && g++-4.6 --version && nm ./a.out |
e787a14ec4ec0dfca1d2ce7079ab55025a98857f | 34 | #!/bin/bash
killall JPOQrCodeDemo
|
b4d0d620808c78cbc824b91ec9bc8d42c3d84a8e | 794 | #!/bin/bash
set -e
if [ "$1" = "-l" ]; then
curl -s "https://github.com/git/git/releases" \
| sed -n -E 's,.*"/git/git/releases/tag/v([-0-9.rc]+)".*,\1,p'
elif [ "$1" = "-L" ]; then
curl -s "https://github.com/git/git/tree/master/Documentation/RelNotes/" \
| awk -F'[><]' '/\.txt</ {print substr($5,1,lengt... |
8ec4ce483486f11f103c9215d9a3b7e63b85ee68 | 85 | #!/bin/sh
filelist=`ls`
echo $filelist
for file in $filelist
do
echo $file
done
|
a6c62fb8a3797c32e684fda2f08e7edf10979198 | 415 | #!/usr/bin/env roundup
#
# This file contains the test plan for the cleanup command.
# Execute the plan by invoking:
#
# rerun stubbs:test -m booking-application-server -p cleanup
#
# Helpers
#
[[ -f ./functions.sh ]] && . ./functions.sh
# The Plan
# --------
describe "cleanup"
it_works_without_arguments(... |
3f04ea9f7c7ab41a8de970211484df07c0a30633 | 1,041 | #!/bin/bash
source activate nlp1
echo "--epochs 100 --lr 0.01 --lamb 0.1 --model RAN --batch_size 100 1"
python main.py --cuda --plot --epochs 100 --lr 0.01 --lamb 0.1 --model RAN --batch_size 20
echo "--epochs 100 --lr 0.01 --lamb 0.1 --model RAN --batch_size 100 2"
python main.py --cuda --plot --epochs 100 --lr 0.0... |
4ff564707201ca5d8c303de7027b4eb4c7a33481 | 1,002 | #!/bin/bash
if [ "$#" -lt 5 ]; then
echo "Illegal number of parameters"
echo "Usage: ./run_champsim.sh [BINARY] [N_WARM] [N_SIM] [TRACE] [OPTION] [TRACE DIR]"
exit 1
fi
BINARY=${1}
N_WARM=${2}
N_SIM=${3}
TRACE=${4}
TRACE_DIR=${5}
OPTION=${6}
if [ ! -f "bin/$BINARY" ] ; then
echo "[ERROR] Cannot fin... |
4b995d18ce116b2f7f4addd061f7e1cf3a51f9c5 | 728 | while getopts p: flag
do
case "${flag}" in
p) halidePath=${OPTARG};;
esac
done
echo "***** Compiling Halide implementation *****"
g++ ./src/ger_Blas_Halide.cpp -g -L ${halidePath}/bin -I ${halidePath}/include -I ${halidePath}/tools -lHalide -ldl -lpthread -std=c++11 -o ./bin/ger_Blas_Halide
echo "*****... |
bfb86c5ada32c95f8ad31735fc19cf98c1714dd1 | 307 | chmod +x udp_client_remote.sh
gcc -o udp_client udp_client.c
#Usage: ./udp_client -a <IP-ADDRESS> -b <NUM OF BYTES> -p <PORT NUMBER>
#Considering 4 bytes of data, that can be changed with the -b flag.
#REMOTE: snares - 02, connecting to server in snares - 05
./udp_client -a 128.105.37.225 -b 4 -p 8995
|
c37d3a72f5ef87e350ecd2468cf7c70eaa9784bd | 112 | MONGODB_URL = mongodb+srv://root:sotkfkdgo*0tnr@hsimongodb.gjbk9.mongodb.net/logindb?retryWrites=true&w=majority |
6bb780fa0977a21009daef7f04fe9f08944ee552 | 49 | #!/bin/sh
docker build -t grossnik/uhop-spark .
|
716e884245891ea876a76087dc16ca090b753ad5 | 852 | rm -rf rfflsrc
rm -rf astrosrc
mkdir astrosrc
cd astrosrc
git clone "https://github.com/derpferpmerp/astroUNL.git"
cd ../
mkdir rfflsrc
cd rfflsrc
curl -O -L "https://github.com/ruffle-rs/ruffle/releases/download/nightly-2021-06-08/ruffle-nightly-2021_06_08-web-selfhosted.zip"
unzip "ruffle-nightly-2021_06_08-web-sel... |
43bbba7978719c8f87eac8bcbbae01634d4eb665 | 106 | ATLAS_URI = mongodb+srv://Gowri:1cgowrishankar@cluster0-vr1py.mongodb.net/test?retryWrites=true&w=majority |
a3dae8e72243286c44e5ec648d7bdb0891f115d5 | 252 | brew install nvm
. "$DOTFILES_DIR/system/.nvm"
nvm install 5.5
nvm use 5.5
nvm alias default 5.5
# Globally install with npm
packages=(
tern
js-beautify
eslint
babel-eslint
eslint-plugin-react
)
npm install -g "${packages[@]}"
|
15f290875229f5032d0ff2bc5d06865526702798 | 1,088 | #! /bin/bash
while :
do
echo "-------------------------------------------------------"
echo "*************************menu Temps**************************"
echo "tapez 0 pour quitter"
echo "-day"
echo "-week"
echo "-before-week"
echo "-month"
echo "-year"
echo "-help"
echo "veuillez saisir votre commande"
echo "-------... |
55411fac5f5505599e1a39c0e1fab6b46460af0a | 827 | ## need to add DisplayGroup
SERVER=shark:9040
./runlesclients.sh 56001 20 2 -s ../../../config/load_test_world/club_test_client.py -n club --login $SERVER &
sleep 40
sleep 2
./runlesclients.sh 51001 20 1 -s ../../../config/load_test_world/group1_test_client.py -n group1 --login $SERVER &
sleep 20
sleep 2
./runlescl... |
b09f5d4dbdc85ef17cfe9e5665778caa2949cc1a | 212 | #!/bin/bash
brew install autoconf automake libtool pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba
curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
|
d065294c5ac8859f76132e04be8c85506c198ca9 | 513 | #!/bin/sh
usuario='null'
# Ciclo necesario para que se pida el usuario mientra no sea 'fin'
while [ "$usuario" != 'fin' ]; do
echo "Introduzca un usuario (introduzca fin sin quiere finalizar el programa):"
# Se hace que se ingrese un nombre de usuario
read usuario
# Se busca si esta present... |
27a6a9d82cca6d30d1b3ad2d106581050ccb06c2 | 1,880 | #!/bin/sh
# _______ ______ ______ __ ___ _______ .______ __ .__ __. _______.___________. ___ __ __
# | \ / __ \ / || |/ / | ____|| _ \ | | | \ | | / | | / \ | | | |
# | .--. | | | | | ,----'| ' / | |__ ... |
2372db400fde3c3add6af90ce05de42061ff224b | 42 | #! /bin/bash
mpirun -np 16 game_of_life
|
bf9f353d6b74c2836f9b8f75ed5c7dc54a2752de | 278 | #!/usr/bin/env bash
CDIR=`pwd`
if [ ! -e "hmwk.scala" ]; then
echo "You must be in the base directory of the repo in order to run this"
fi
git submodule update --init --recursive
ln -s datafiles/*.data .
ln -s datafiles/students_*.txt .
ln -s datafiles/categories_*.txt .
|
fa611652b5d6dee4b7bbafaeb2a05a26f1ba4529 | 177 | #!/bin/bash
set -e
# elastic search
systemctl start elasticsearch
# kibana
systemctl start kibana
# filebeat
systemctl start filebeat
# metricbeat
systemctl start metricbeat |
c88c71d3eb50cae260f6e81610b89b4684eb10fe | 292 | #/bin/bash
python3 train_finetune.py --gt_path=/app/SynthText/gt.mat \
--synth_dir=/app/SynthText \
--ic13_root=/app/icdar2013 \
--label_size=96 \
--batch_size=16 \
--test_batch_size=16 \
--cuda=True \
--pretrained_model=model/craft_mlt_25k.pth \
--lr=3e-5 \
--epochs=20 \
--test_interval=40
|
7daba34e9ea83ce8b3eb5fe46d6ec31500505764 | 351 | #! /usr/bin/env bash
clear
SOURCE=$1.c
INPUT=$2
OUTPUT=$3
gcc $SOURCE
if [ $? -ne 0 ]; then
echo "Compilation Error! Please Debug!"
exit 1
fi
clear
echo "Compilation Successful!"
echo
echo "Program Input:"
echo "===================="
cat in
echo
echo "Program Output:"
echo "===================="
./a.out < $INP... |
79da48e64729d67456b7e42b105d6b2c4eee6155 | 3,361 | #!/usr/bin/env bash
set -e
root="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
project="`cat $root/package.json | grep '"name":' | head -n 1 | cut -d '"' -f 4`"
registry="`cat $root/package.json | grep '"registry":' | head -n 1 | cut -d '"' -f 4`"
registry_url="https://index.docker.io/v1/repos... |
e8cdcd1db1253c76e559225eff2b4f48a7ab7102 | 4,051 | sudo yum update
ls
rails
sudo install rails
rails new
apt get install rails
rails new example
sudyo yum rails
gem install rails
gem install ruby
gem install rails
rvm
rvm 2.1.1
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
type rvm | head ... |
ccfc74f582fc6fbf640b437af208fa1c8d47310f | 228 | echo enter a number
read n
num=n
s=0
while [ $n -ne 0 ]
do
d=`expr $n % 10`
if [ $d -eq 0 ]
then
s=`expr $s + $d`
fi
n=`expr $n / 10`
done
if [ $s -eq num ]
then
echo perfect number
else
echo not a perfect number
fi
|
2e85a30ef3a182a5d048f8692578968ef4ef48fb | 1,581 | #!/bin/bash
#
# script to list all the repos, or repos for a given tag in given domain
# Maintainer: prabhjot@atsgen.com
#
# new tag with which image needs to be tagged
TAG=''
DOMAIN='atsgen'
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
usage() {
echo "$0 ... |
41b8cc770ccfd0f919b7823f2905169af6cbff35 | 963 | # **************************************************************************** #
# #
# ::: :::::::: #
# libft_creator.sh :+: :+: :+: ... |
65cc3b5e4385c3665abb88ee3a7ccfe5a0fa0ef7 | 169 | #!/bin/bash
echo "terminal.."
echo "configuring top workspace.."
. ~/ros/projects_ws/devel/setup.bash
echo "launching.."
rosrun cic_motion_model cic_motion_model_node
|
c17b9af5d5fa373cfc8ddc16dfb390bf5b23055f | 839 | #!/bin/bash
ENV=$1
IMGTAG=$2
if [[ $ENV = 'online' ]]; then
docker login -u=wdcloudtoc -p=wdcloudInf@2019 registry.cn-beijing.aliyuncs.com
docker build -t registry.cn-beijing.aliyuncs.com/wdcloudinf/aitiaozhan-c-mobile:${IMGTAG} -f deploy/Dockerfile .
docker tag registry.cn-beijing.aliyuncs.com/wdcloudin... |
82778bea3f3ecdc7073c75d95b90a10f90b29141 | 84 | # find sources
web_dir=`ck find wfe:cknowledge.org`
cd $web_dir
npm install gulp
|
e14af180fc38a74afff881e30e83342c9eeee952 | 522 | #! /usr/bin/env bash
if [ -f ~/.dotfiles/config/environment.sh ]; then
# shellcheck source=./config/environment.sh
. ~/.dotfiles/config/environment.sh
fi
# If not running interactively, don't do anything else
[[ $- != *i* ]] && return
if [ -f ~/.dotfiles/config/interactive.sh ]; then
# shellcheck source=./conf... |
f520e3453eb2f4a062d15f5daaf937089e956dee | 159 | echo "Will now install install_amass
"
sudo apt-get update
sleep 2m
#
sleep 3
sudo snap install amass
echo "install_amass
has been installed"
sleep 3
|
c683374c49ef810f6ece2309640ce40c9c6f2ed0 | 1,210 | #!/usr/bin/env bash
mkdir -p bin # for silencing the next line, in case the folder does not exist
rm -r bin
mkdir -p build
touch build/touched # for silencing the next line, in case the folder was just created
rm -r build/*
cd build
echo "Building CEF3SimpleSample::Independente"
g++ -c ../CEF3SimpleSample/Independent... |
86dac3b31f7a4f1849b24fcfb24f2c1ec98bae61 | 1,929 | #!/var/vcap/packages/bash-4.3/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables
jobName="rdpgd-service"
vmName="<%= name %>" # BOSH VM name
vmIndex="<%= index %>" # Index within cluster
deploymentName="<%= spec.deployment %>"
domai... |
4f83398f100f673af7b4bfffcab8220d3bb257e4 | 1,341 | #!/bin/bash
# Start the Google Cloud web development server in `wptd-dev-instance`
# (started using ./run.sh).
DOCKER_DIR=$(dirname $0)
source "${DOCKER_DIR}/../commands.sh"
source "${DOCKER_DIR}/../logging.sh"
source "${DOCKER_DIR}/../path.sh"
WPTD_PATH=${WPTD_PATH:-$(absdir ${DOCKER_DIR}/../..)}
WPTD_CONTAINER_HOS... |
d902ab22a0cc058673873c5fdfb1a49c35983da5 | 536 | #!/bin/sh
# this is to cut out a piece of the vstep and present this as a wiggle.
if [ $# -ne 5 ]
then
echo "usage: vstepregion2wiggle.sh <vstepfile> <width> <chrom> <start> <end>"
exit 1
fi
name=`basename $1`" - wiggle portion"
echo "track type=wiggle_0 name=\""$name"\" visibility=\"full\" description=\""$name... |
b58864323d3128f2754308a67c871bd31a437fdc | 256 | ### Lambda Function Variables
JWT_ISSUER=JAWS
JWT_SECRET=JAWSJAWSJAWS123
#### AWS Variables
AWS_ADMIN_ACCESS_KEY=123123
AWS_ADMIN_SECRET_ACCESS_KEY=456456
AWS_LAMBDA_ROLE_ARN=arn:aws:iam::28933237018:role/jaws_lambda_role
AWS_LAMBDA_REGIONS=us-east-1
|
ccbcbc3928214f91db725b9043b4bead6a0392cf | 30 | #!/bin/bash
bash -c ./basic.sh |
ce670395653c5d6b235d04183ae4589a62b83063 | 628 | #!/bin/sh
# prepare-commit-msg hook does:
# - Add placeholder
# - Insert placeholder at default text in commit body
# - Append placeholder for conflict merge commits only
# - Massage commit message
# - Delete default text in commit body
# - Add line after branch
# - Add semver instructions to commit message
# - Re... |
299e4abaf6626ebad4a540bfb4181360214f110b | 1,593 | #!/bin/bash
#
# this script rolls a pair of six-sided dice and displays both the rolls
#
# Task 1:
# put the number of sides in a variable which is used as the range for the random number
# put the bias, or minimum value for the generated number in another variable
# roll the dice using the variables for the range ... |
bfd44f3e641a1b07e93c8e39e3d377ca37f2c77e | 9,626 | #!/bin/sh
# load helpers
source ${0%/*}/hlp.sh
# stricter scripting env: switches that turn some bugs into errors
set -o errexit
set -o pipefail
# set -o noclobber, so bash does not overwrite with >, >> or <>
set -o nounset
# -allow a command to fail with !’s side effect on errexit
# -use return value from ${PIPESTA... |
b4be1ebd962a128801036c9cb068fd998d275455 | 108 | # Digital ocean personnal access token
export DO_PAT=""
# Minecraft server parameters
export BACKUP_NAME=""
|
1363b8efbc68998274036024dbcc5b806783c33e | 172 | #!/bin/sh
set -e -o pipefail
bin_dir=$(dirname "$0")
if [ "$CSMITH" = "" ] ; then
CSMITH="csmith"
fi
$CSMITH $@ > csmith.c
"$bin_dir/dwarf-orc-crosscheck.sh" csmith.c
|
214cecc3e339fbeb864e78bab15360fe456dccc6 | 1,526 | #!/bin/bash
# bash uploadLymphHm.sh <options>
# Authors: Alina Jasniewski, Joseph Balsamo
# Functions
# function: usage(brief)
function usage() {
echo "Usage: $ ./uploadLymphHm.sh [options] -h <host> -f <filename>"
if [ $1 == false ]
then
echo " Options:"
echo " -f <filename>: filename of t... |
c61785e6f505357099d16c2c773183dc87736e33 | 80 | #!/bin/bash
curl --unix-socket $1 -i -X PUT 'http://localhost/api/v1/vm.pause'
|
b9717bb1147f347d8a140bd8aaeb10d3d7d01b1f | 1,777 | #!/bin/bash
IFS="\n"
read -p "Enter the username for azure account access : " username
read -s -p "Enter password for azure account access : " password
echo ""
unset IFS
# Install applications to the virtual machine through apt-get
sudo apt-get update
sudo apt-get -y ugrade
sudo apt-get -y install fail2ban
sudo apt-ge... |
ff32de5d3a032116e10f6b7f6bb50e31a2415f47 | 489 | [ -e ~/.ssh/config.d ] && find ~/.ssh/config.d -print -quit | grep -q . && (
#newestconfig=$(ls -t ~/.ssh/config.d/ | head -1)
newestconfig=$(find ~/.ssh/config.d/* -printf '%T+ %p\n' | sort -r | head -n1 | awk '{print $2}')
if [ "$newestconfig" -nt ~/.ssh/config ]; then
[ -e ~/.ssh/... |
3cccb620bb112a48f47cc8ad210bf2ecd6148d42 | 833 | ################################################################################
# Author: Pete Clark
# Email: pete[dot]clark[at]gmail[dot]com
# Version: 0.1 (05/24/2011)
# License: WTFPL<http://sam.zoy.org/wtfpl/>
#
# This oh-my-zsh plugin adds smart tab completion for
# TaskWarrior<http://taskwarrior.org/>. It uses t... |
d36b890e581b9e5d74e85f4696cb689915f967a8 | 93 | #!/bin/bash
node node_test.js &
sleep 1
ab -n 2000 -c $1 -q http://127.0.0.1:8124/
kill $!
|
2c805dc290b3f565ed5482563f3fb645a7546cfe | 981 | # 1 vim
vim file1
# 1.1 命令模式
dd # 删除一行
# 1.2 底行模式
:set nu/nonu #显示/不显示行号
:/world (n N) nohl # 查找world (前一个 后一个)取消高亮
:shift+g / gg # 到文件尾/头
# 2 awk 逗号分隔找出第二列所有值并去重
cat all_part| awk -F, '{print $2}'| sort -u > all_part_uni
# 3 sort
sort a.txt b.txt | uniq -d # 将a.txt b.txt文件进行排序,uniq使得两个文件中的内容为唯一的,使用-d输出两个文件中次数大于1的内... |
259b882d8539168e61aadb05d39ed76a525dc92a | 2,779 | ## aliases
alias edit='vim -N -O'
alias murder='kill -9'
if [ "$(uname)" == "Darwin" ]; then
alias ll='ls -laG'
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
alias ll='ls -la --color=auto'
fi
## places
alias ndn='cd ~/git/ndn/perl';
alias remix='cd ~/git/remix-theme-editor';
alias dpsignup='cd ~/... |
dc5caeb7b3e5fc63b98c788ddb105af43705bd95 | 4,892 | #!/bin/bash
set -x #echo on
#############################
#
# copyright 2018 Open Connectivity Foundation, 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
#
# h... |
af86eac383db092615d735c5a8e029e700c01cb5 | 2,592 | #!/bin/bash
ARDDIR=${HOME}/Sync/acli_xac_joystick_tinyusb
export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json"
export ARDUINO_DIRECTORIES_DATA="${ARDDIR}/data"
export ARDUINO_DI... |
414345e36e20be82856fbd2952cdee7e424288ad | 363 | #!/usr/bin/env bash
autoload -U +X bashcompinit && bashcompinit
{% if install.gcloud_sdk %}
# gcloud sdk zsh autocompletion
[[ -f /usr/share/google-cloud-sdk/completion.zsh.inc ]] && source /usr/share/google-cloud-sdk/completion.zsh.inc
{% endif %}
{% if install.vault %}
# vault zsh autocompletion
complete -o nospac... |
20fa5741688a324ffa25091ebbe3affb9a506529 | 860 | #!/bin/bash
# $1: input video
# $2: output video
#ffmpeg -ss 00:00:10.000 -to 00:00:28.000 -i /home/hugh/pkg/local/DeepFaceLab/Alpha_test_demo.mp4 -map 0:v:0 -map 0:a:0? -b:v 3M -c:v libx264 -pix_fmt yuv420p /home/hugh/pkg/local/DeepFaceLab/Alpha_test_demo_cut.mp4 -y
#ffmpeg -i /home/hugh/pkg/loca... |
313842b4d8c2f236fe91bd73cd5964ec239f6dff | 381 | #!/bin/bash
# Mysql DB backup
# jesse_108@163.com
dateStr=`date "+%Y-%m-%d"`
year=`date "+%Y"`
month=`date "+%m"`
host="onlinein02.mysql.rds.aliyuncs.com"
db="db_name"
passwd="pwd"
username="username"
folder="/alidata/backup/backup/${year}/${month}"
mkdir -p $folder
fileName="${folder}/backup_${dateStr}.sql"
mys... |
dc2c82af56cbebf580447506f223cd4436d3e72a | 123 | POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=142505
POSTGRES_DB=WeatherApp
PORT=5000 |
96b41a1133b9e76a291934f825c064ecf161112f | 30 | PORT=3000
DB_CNN=
JWT_SECRET=
|
29f6d6103e7a5b63fe60501220dfaf8ef663d5ca | 53 | #!/bin/bash
ssh -XC mi11k1@eee x2x -east -to :0.0
|
b7d160e5c3bbf1233f2f140001613d1479695929 | 1,619 | #!/bin/bash
cd `dirname $0`
echo `pwd`
JDBC_FILE=../WEB-INF/classes/jdbc.properties
JDBC_URL=`cat $JDBC_FILE | awk -F= '{if ($1=="jdbc.url") print $2}' | awk -F@ '{print $2}' | sed -e 's/\:/\//2' | sed 's/^[ \t]*//g' | sed 's/[ \t\r\n]*$//g'`
JDBC_PASS=`cat $JDBC_FILE | awk -F= '{if ($1=="jdbc.password") print $2}'... |
24840f881e361917842c362a961ff523449db64a | 1,018 | #!/usr/bin/env sh
# args for EXTRACT_FEATURE
export PYTHONPATH=.:..::/home/tian/lisa-caffe-public-lstm_video_deploy/python
#ln -s /home/tian/lyn/DeconvNet-master/caffe/examples/sketch/snapshot_nyu/
#ln -s /home/tian/lyn/DeconvNet-master/caffe/data/
TOOL=../../lib/caffe-action/build/install/bin
MODEL=../../models/IsoGD... |
0a9e0c0002e74f689dc6bd57390ee738645b3cc2 | 105 | #!/bin/bash
# removes all external data files
rm drugs.csv
rm names.txt
rm packages.csv
rm packages.txt
|
c821981c629d4c2d9bb89746dd6d9f8713f25198 | 788 | #!/usr/bin/env bash
# Path to this file
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Path the script was called from
IPWD="$(pwd)"
# Import shared vars
. ${DIR}/_shared-vars.sh
echo
echo "+++ Run automate deployment script. +++"
echo
if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ... |
d6ed25f1b42df60e9df471aed458977a0ed7668b | 3,579 | #!/bin/sh
cd `dirname $0`
source ./config.sh
exec_dir mission_overdue_rate
TARGET_TABLE=ef_assess_point_data_value_info
#DATA_NAME=任务逾期率
DATA_NO=RWYQL
function import_table() {
find_mysql_data "
set names utf8;
INSERT INTO ${TARGET_TABLE}
(data_no,data_name,first_index_type,... |
2ee635ed72d5c2e678b4545d96334527be2a7fa2 | 2,223 | #!/bin/bash
#
# Update my macports installation.
#
# It assumes that macports is installed in /opt/macports/latest.
#
# I run this daily.
#
# License: MIT Open Source.
# Copyright (c) 2017 by Joe Linoff
# ================================================================
# Includes
# ====================================... |
bbb024b4b629fe9b7d70afa2f9cea1fe50e46429 | 802 | read -p "Enter your server's public IP: " __ADDRESS__
export __PATH__=$PWD
export __UUID__=$(uuidgen)
export V2RAY_LOCATION_ASSET=.
export V2RAY_LOCATION_CONFIG=./server
sudo apt-get update
sudo apt-get install -y unzip
curl -o v2ray.zip -L https://github.com/v2ray/v2ray-core/releases/download/v4.21.3/v2ray-linux-64... |
c3b1eeb99470c807b99e2e47c655bcd8bc2aee9d | 296 | #!/bin/bash
echo 'TitleText: "Bandwidth vs Packets Dropped"'>1.xg
echo 'XUnitText: "Bandwidth"'>>1.xg
echo 'YUnitText: "Packets Dropped"'>>1.xg
echo ''>>1.xg
for i in {1..10}
do
a=$(echo "$i*0.2"|bc -l)
ns 1.tcl $a
echo $a $(awk -f 1.awk 1.tr)>>1.xg
done
xgraph -lw 2 -bg white 1.xg &
nam 1
|
1b3cfa2fdbb133a42011e5d44597a71bb6c350bc | 593 | #!/bin/sh
#<url:file:///~/Dropbox (Personal)/projects/stuff/bash/acksed>
# usage:
# acksed "\/gis\/" "\/gis_frontend\/"
# acksed -n "\/gis\/" "\/gis_frontend\/"
while getopts ":n:" opt; do
case $opt in
n)
dry_run="True"
;;
\?)
dry_run="False"
;;
esac
done
if [ $dry_run = "True" ]; then
match=$2
re... |
95afb74ead874382825e157af54975a8dffaf558 | 537 | #!/bin/bash
schema="tv_report";
getArray() {
local i=0
array=() # Clear array
while IFS= read -r line # Read a line
do
array+=( "$line" ) # Append line to the array
done < "$1"
}
getArray "./${schema}-tables-list.txt"
for tname in "${array[@]}"
do
echo "===== [${schema}.$tname] start loadi... |
8a9996749f4ab95937e4bb4dc5b794cf14cef168 | 722 | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev... |
e2e2ed180966c121f84367f0c161d4c24f47e6a3 | 122 | #!/bin/sh
set -e
echo "Starting rsyslog..."
/etc/init.d/rsyslog restart
echo "Starting sshd..."
/etc/init.d/ssh restart
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.