blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
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... |
05286ba696b8111cd510912e4a3fee0ed98441d9 | 497 | #!/bin/bash
#@author Filip Oščádal <oscadal@gscloud.cz>
dir="$(dirname "$0")"
. $dir/_includes.sh
FILES="id_rsa id_rsa.pub"
if [ -z "${PASS}" ]; then
info "Manage keys (interactive) ..."
read -s -p "Enter password:" PASS
echo -ne "\n"
export PASS
else
info "Manage keys (automatic) ..."
fi
for i in $FILES... |
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" ... |
a7998fec1790566a4e321104284bb8abd6c593fe | 734 | #!/bin/bash
docker network create --driver bridge --subnet 172.19.0.0/16 hdnet
docker run -t -i -p 9864:9864 -p 9866:9866 -d --network=hdnet --name=slave1 effeerre/hadoop
docker run -t -i -p 9863:9864 -p 9865:9866 -d --network=hdnet --name=slave2 effeerre/hadoop
docker run -t -i -p 9862:9864 -p 9867:9866 -d --network=h... |
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
|
93840ffcec69bf54d2f30d321bd9b1842c57eae9 | 261 | chmod +x ./samples/TodoApi/App_Build/build_image.sh
./samples/TodoApi/build_image.sh
chmod +x ./samples/SignalRNotifier/build_image.sh
./samples/SignalRNotifier/build_image.sh
chmod +x ./samples/WebNotifier/build_image.sh
./samples/WebNotifier/build_image.sh
|
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
|
691171df65b57acfc54fa43c507735f7fd745c0e | 146 | #!/bin/sh
LD_PRELOAD=/usr/local/lib/libacc_preload.so DYLD_INSERT_LIBRARIES=/usr/local/lib/libacc_preload.dylib DYLD_FORCE_FLAT_NAMESPACE=y bash
|
3c32ccb434beb17fdc05a9f1aa05097426442322 | 396 | #!/usr/bin/env bash
source "$REPO_PATH/lib.sh"
install_function() {
pushtmp
# Version can be found here: https://www.speedtest.net/apps/cli
version=1.2.0
url="https://install.speedtest.net/app/cli/ookla-speedtest-${version}-linux-x86_64.tgz"
curl -L "$url" | tar xvz "speedtest"
sudo install -m 755 speedtes... |
c02e4d1221e10cdf7af93370761e6f290a27a98a | 2,016 | #!/usr/bin/env bash
pgsql_in_docker=false
pgsql_container=usql-pgsql
if [ "$pgsql_in_docker" != true ]; then
PGHOST="${PGHOST:-127.0.0.1}"
port=$(docker port "$pgsql_container" 5432/tcp)
PGPORT=${port##*:}
else
PGHOST="${PGHOST:-$pgsql_container}"
PGPORT=5432
fi
PGUSER="${PGUSER:-postgres}"
PGPASS... |
cb03ad3d33684ef0b7fd5a78f2f29cef4627ba45 | 459 | #!/usr/bin/env bash
if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
# develop => edge
[[ "${TRAVIS_BRANCH}" == "develop" ]] && TAG="edge"
# master => latest
[[ "${TRAVIS_BRANCH}" == "master" ]] && TAG="latest"
# tags/v1.2.0 => 1.2
[[ "${TRAVIS_TAG}" != "" ]] && TAG="${TRAVIS_TAG:1:3}"
if [[ "$TAG" != "" ]];... |
18cda9422ae9861849250276b755963a28ae3036 | 3,688 | #https://httpd.apache.org/docs/2.4/install.html
#Installing on Ubuntu/Debian
sudo apt install apache2
sudo service apache2 start
#Ubuntu
#The binary is called apache2 and is managed using systemd, so to start/stop the service use
# systemctl start apache2 and systemctl stop apache2, and use systemctl status apache2 an... |
a865f0db1d9592efbb3edab259a1f3576e687de8 | 180 | cmd() { printf '%s\r' "$@" > /dev/ttyUSB0 && read -rd $'\n' rx < /dev/ttyUSB0 && printf '>%s\n' "$rx"; }
# cmd() { printf '%s\r' "$@" > /dev/ttyUSB0 && hexdump -C < /dev/ttyUSB0; } |
2833645f350bf8a6d4fa2d3dcc881311bf3ec1ba | 5,545 | #!/bin/bash
# --------------------------------------------------------------------------------------------------------
# Name : Account Manager IAM Access Group Policies
#
# Description: Add policies to an access group that allow management of the resoruce groups,
# users, and access groups in an IBM Cloud account.
#
#... |
26c71664f72fb2024e614c975f37a2c065107cea | 899 | #!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ETHLOGGER_CHART_DIR="$SCRIPT_DIR/../helm/ethlogger"
tmpdir=$(mktemp -d)
trap "rm -rf $tmpdir" EXIT
render() {
local outdir=$1
helm template \
ethlogger \
--namespace ethlogger \
--set networkName=de... |
0b65b2ec9cc86d92727a31aa1bb9b89f397eb244 | 71 | #!/bin/bash
create-mindLAMP-platform-v1.sh us-east-2 active-passive-10
|
9dd8a937f48b72827cb9ea1cd73ec639503454a7 | 260 | #!/bin/bash
vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
php app/console cache:clear --no-warmup --no-optional-warmers --env=dev
php app/console cache:clear --no-warmup --no-optional-warmers --env=prod
|
60883c85661fed783e77b1b37b4d4d79bf2945be | 181 | #!/bin/bash
if [ $# -gt 0 ];then
exec "$@"
else
tmux new-session -d -x "23" -y "80" -s "skuska" "echo start;sleep 60;echo stop" && \
tmux set -g status off && tmux attach
fi
|
11e3e5d0276ff1f17a82ef36222e7b1984d58fe9 | 6,621 | #!/bin/bash
. ./wvtest/wvtest.sh
pid=$$
TAX=./host-dhcpvendortax
WVSTART "dhcpvendortax test"
# Check regex matches
WVPASS $TAX -l label -v "AastraIPPhone55i" >test1.$pid.tmp
WVPASSEQ "$(cat test1.$pid.tmp)" "dhcpv label Aastra IP Phone;55i"
WVPASS $TAX -l label -v "AXIS,Network Camera,M3006,5.40.13" >test1.$pid.tmp... |
27f31941876edacaf423e623d2cda806be93012b | 637 | #!/bin/bash
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ $# -lt 2 ]; then
echo "Usage: livecheck.sh <category> <number>";
echo "Does a live check using curl and \
prints \"found <number>\" and exits with error 0 on match, otherwise error 1";
echo "Attention: Do not use for ... |
53492658f58d57346ab96a4d768595ceda63a49e | 111 | #!/bin/sh
./removeTrash.sh
git add .
echo "What did you change?"
read comment
git commit -m "$comment"
git push |
dcc81647bd21fa680a3d46564f868bcadb07e97a | 1,340 | #!/bin/bash
echo "All commands are prefixed with \"chore-\".
READ COMMANDS
burndown
Get a burndown report.
completions-needed
Get the number of completions needed to achieve high confidence in the
average chore duration.
get-completion-id
Get the database identifier of the active completion of a chore.... |
773c5147f98d8ed9b1688a8350cece5907878378 | 136 | #!/usr/bin/env bash
source activate RNAit
${CONDA_PREFIX}/bin/nginx &
${CONDA_PREFIX}/bin/uwsgi --ini ${RNAIT_ROOT}/etc/uwsgi.conf &
|
c3eb09f3b79abe738f9ef546fa852ae5c073bc19 | 203 | #!/usr/bin/env bash
yum update
yum -y install openldap compat-openldap openldap-clients openldap-servers openldap-servers-sql openldap-devel
systemctl start slapd.service
systemctl enable slapd.service
|
b935532ae60009731210c28acff670ca34829a89 | 279 | #!/bin/bash
dataFile="$(dirname $0)/data_$(date +%s).json"
cat > $dataFile <<EOT
{
"plaques":[1,2,5,6,7,100],
"total":100
}
EOT
curl -i \
--request POST \
--data @$dataFile \
--header "Content-Type:application/json" \
--url http://localhost:8080/demand
rm -f $dataFile
|
aca3b5b902f330dc805df39e6b689076bf6db2a9 | 62 | #!/bin/bash
docker rmi chyld/dev
docker build -t chyld/dev .
|
d3895c118799d98a6454fcd0647d3906448c0e72 | 1,860 | #!/bin/bash
# Monitor Openshift V3 persisent storage usage
project=$1
your_token='thisisyourtokenpleasekeepitsecure'
url='https://api.mycompany.openshift.com'
if [ -z $1 ]; then
echo "Project name is required"
exit 3
fi
export KUBECONFIG=/usr/local/nagios/libexec/kubeconfig
message_text="Disk Usage:"... |
70e88b5d490b8b40dab4807a55211685387d9e5e | 160 | #!/bin/bash
##
#$ -N file3test
#$ -pe mpi 2
#$ -q amd8.q
#$ -cwd
#$ -l h_rt=2:15:00
mpirun -np $NSLOTS $HOME/COMS7900ParallelSort/code/timingcode/file3test
|
e0db9be2b1df272acdd096ca5f8f757af5d0b887 | 1,108 | #!/bin/bash
source environ.sh
UNSTABLE
DEPENDS llvm
GIT=https://github.com/ids1024/rust.git
GIT_BRANCH=compile-redox
DIR=rust
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
function rustbuild_template {
case $1 in
build)
cp ${BUILD}/../ports/rust/* "${BUILD}/${DIR}"
... |
71f45bccc8066b4f5bbc03e799a1dbef7d8d5116 | 1,472 | #!/bin/bash
set -ex
export MASTER_IP=10.10.103.100
export CLUSTER_NAME=100-server
export USER=100-emma
export CONTEXT_NAME=100-context
#now we have v1.0.1 available
export VERSION=v1.0.3-dir
#strogly recomand to be MASTER_IP:5000
export REPO=dalanlan
#Seems that we should run as root
sudo ./make-ca-cert.sh ${MASTER... |
2acd5e264524c306e36277cbe7f2103561a4e202 | 224 | #!/bin/sh
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
CONFIG=pocket2rm.yaml
if [ $# -eq 1 ]; then
CONFIG=$1
fi
rm -f $HOME/.config/pocket2rm.yaml
ln -s $ABSDIR/../confs/$CONFIG $HOME/.config/pocket2rm.yaml
|
c25d94576ceb7a75a8497b64ec013b29265c761c | 791 | #echo 'var roles = ["default.starship", "SuperAdmin"];for (var i = 0; i < roles.length; i++) { print({"role": roles[i]}, {"$addToSet": {"users": {"$each": adminIds}}}.toString());}for (var j = 0; j < adminIds.length; j++) { print({"adminId": adminIds[j]}, {$set: { "adminId": adminIds[j], ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.