blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
8f5010e4961cb3f8917d1a717dcd92dc19f1f5d3 | 60 | #!/bin/bash
vboxmanage startvm "Win7Pro64" --type headless
|
b792b6347cf249f81af200c823f7a1b0d92dcfa5 | 154 | #!/bin/sh
#PBS -N n-8000-p-2-3
#PBS -j oe
#PBS -l walltime=2:00:00
#PBS -l select=1:ncpus=2
/home/juch/juch-s16/csci551/asst4/bin/gauss-eliminate 8000 2
|
424fc7bb78684a715d3a501de63c028a9df2f3c6 | 191 | #!/bin/bash
set -e
docker run \
--rm \
--name kong \
--net host \
--publish 8000:8000 \
elifesciences/kong:${IMAGE_TAG:-latest}
# stop+remove with:
# docker rm -f kong
|
8ac02564c1f3d8e89e18b6b8e68a39d356120332 | 153 | #!/bin/sh
export DINGOO_SDK=/usr/share/dingoo-sdk/dingoo_sdk
export MIPSTOOLS=/usr/share/dingoo-sdk/mipsel-4.1.2-nopic
export PATH=$PATH:$MIPSTOOLS/bin
|
7c93ee64ab5a023e543e5c9bc985c4d0d7c42f69 | 1,998 | #!/bin/bash
export AWS_PAGER=
# was already using mostly cfn, but this is a little better!
aws_sl='aws-vault exec stelligent_labs -- aws'
$aws_sl cloudformation deploy --template-file policy.cfn.yaml --stack-name su-lab-2-4-3-jdix --capabilities CAPABILITY_NAMED_IAM --region us-west-2
$aws_sl s3 cp ./data s3://ste... |
cf32bc5d2231e6849ca1d1f58f683f0b8963094e | 86 | docker build -t llindemann/postgresql:11.13 .
docker push llindemann/postgresql:11.13
|
7421d79f81a46884eb6df55d4605b55382e5e684 | 2,658 | #!/bin/bash
alias gichepi="git cherry-pick"
# DIFF
alias gidif_setgui="git config --global diff.external meldiff.py"
alias gidif_setcmd="git config --global --unset diff.external"
alias gidif="git diff"
alias gidif_noext="gidif --no-ext"
# SHOW
alias gisho="git show"
gishogui(){
# mvtodo: does not work on the firs... |
b9989693534913bfa72a45e5aa096c2c8f7f4cbe | 302 | #!/bin/bash
set -e
# install prerequisite package
sudo apt install prelink patchelf
# build llvm as native version
echo "build llvm"
export FUZZAN_MODE="1"
pushd LLVM
./build.sh 1
popd
# build libshrink
pushd etc/libshrink
./build.sh
popd
# build afl
echo "build afl"
pushd afl
./build-afl.sh
popd
|
3ec4d0cddb9f5cd5c61e66edfcc4bd285af8ca44 | 452 | #!/bin/bash
#©keithhedger Fri 13 Feb 12:10:33 GMT 2015 kdhedger68713@gmail.com
. /usr/share/yinstal/yapi
UIDGIDPAIR=$(findnextpair "system")
useradd -c "Network Time Protocol" -d /var/lib/ntp -ru $UIDGIDPAIR -s /bin/false ntp||true
cat > /etc/ntp.conf << "EOF"
server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
serve... |
1c844b2aeca5e7b4dd05c4088b6ffc52112b6efd | 50 | ../apps/fthDividerApp/op/scripts/initFthDivider.sh |
2921670e7b73387ddd0c5771df6bf6202d3931c4 | 3,612 | python process_ukbb.py 20002_1065.assoc.tsv 20002_1068.assoc.tsv 20002_1493.assoc.tsv
python process_ukbb.py 20002_1066.assoc.tsv 20002_1065.assoc.tsv 20002_1067.assoc.tsv
python process_ukbb.py 20002_1067.assoc.tsv 20002_1068.assoc.tsv 20002_1065.assoc.tsv
python process_ukbb.py 20002_1068.assoc.tsv 20002_1065.assoc.t... |
46d488e788c1cdf93d429d3f37e566b5c239b697 | 35 | DISTNAME=opensuse
RELVER=leap-15.5
|
ddd830d1234ef08399ef27d334dfe468c3ff92a8 | 503 | #Write a program to simulate a coin flip and print out "Heads" or "Tails" accordingly.
#!/bin/bash -x
echo "enter the number os time coin will be flip:"
read flip;
head=0;
tail=0
for((i=1;i<=$flip;i++))
do
a=$(((RANDOM % 2)+1))
echo $a;
if [ $a -gt 1 ]
then
head=`expr $head + 1`;
else
tail=`expr $tail + 1`;
fi
done
ech... |
ec761d34ad387b83abc2f86ce615dcc18d410d70 | 1,238 | #!/bin/bash
if [ -z "$HADOOP_ABBR" ]; then
echo "[FATAL]: -Please firstly run: \". path4hadoop.sh\" or \". path4gphd.sh\"!"
exit 1
fi
# Fetch absolute path to this script and current directory
pushd . > /dev/null
SCRIPT_PATH="${BASH_SOURCE[0]}";
while([ -h "${SCRIPT_PATH}" ]) do
cd "`dirname "${SCRIPT_... |
95def646763d26c43181401e7b5b1836ccb91dc7 | 122 | #!/bin/bash
user=pump_user
password=12345678
dbname=pump
mysqldump --user=$user --password=$password -R $dbname > dump |
3a9e3b60d835a24637b0f8da6938cc797074bb28 | 781 | #!/bin/bash
RUN_DIR=/var/vcap/sys/run/apache
LOG_DIR=/var/vcap/sys/log/apache
PIDFILE=/var/vcap/packages/httpd-2.4.18/logs/httpd.pid
case $1 in
start)
mkdir -p $RUN_DIR $LOG_DIR
chown -R vcap:vcap $RUN_DIR $LOG_DIR
#echo $$ > $PIDFILE
/var/vcap/packages/httpd-2.4.18/bin/htpasswd -bc /var/vcap/pac... |
0ef76889446ed03b9e283c3e8c717c615ef7ee53 | 53 | #!/bin/bash
mono BasicBot/bin/Debug/BasicBot.exe $1
|
8aeb135fceca3ab6252522dd92c20e3d1a4f6085 | 1,778 | #!/bin/sh +x
SCRIPT_NAME=`basename "${0}"`
VERSION=2.18
unmount_device() {
ATTEMPTS=0
MAX_ATTEMPTS=12
SUCCESS=
while [ "_${SUCCESS}" = "_" ]
do
if [ ${ATTEMPTS} -le ${MAX_ATTEMPTS} ]
then
echo "-> unmounting device ${1}..."
OUTPUT=`diskutil unmountDisk "${1}" 2>&1`
if [ ${?} -eq 0 ... |
7e61abb8b03136ba784b810721b06259df2a7eaa | 507 | #!/bin/bash
coherence=./coherence.sh
exp_folder=$PWD
experiments=(
circle
half
stripe
)
for experiment in "${experiments[@]}"; do
if [[ ! -d ${experiment} ]];
then
echo "Directory ${experiment} does not exist."
exit
else
echo "Launching experiment ${experiment} in detached screen..."
... |
bc1ab1d3d0878302396e9a3a6b091f9114c2a29d | 580 | #!/bin/bash
reverse=0
if [ "$#" -eq 1 ]; then
if [ $1 = "-r" ]; then
reverse=1
fi
fi
echo -en "\n"
for (( N = 1; N <= 250; N=N+1 ))
do
res=$((N%10))
if [ $res -eq 1 ]; then
printf '%03d-%03d | ' $((N)) $((N+9))
fi
file=$( printf '%03d' $N )
cnt=`ls ${file}*.cc 2>/dev/null | wc -l`
if [ $cn... |
a94e1cc049e23b8f59f100b70fe23dd3b8bd1410 | 948 | hive -e"
create table if not exists mergedaccounts (account string);
load data local inpath 'IniMergedCards' into table mergedaccounts;
insert overwrite local directory 'ResultIn'
select * from(
select t1.tfr_in_acct_no, t1.tfr_out_acct_no, t1.trans_at, t1.pdate, t1.source_region_cd, t1.dest_region_cd
from tbl_com... |
ba26d25a010f83fb31a62a201085cbc78abe89e5 | 1,252 | #!/bin/bash
export PPATH=`pwd`
mkdir -p "$PPATH/libs/$1"
export LIBPATH="$PPATH/libs/$1"
if [ -f $LIBPATH/libosmscout.a ] ;
then
echo "Library already compiled"
else
cd libosmscout
./configure --disable-shared --enable-static && make
cp ./src/.libs/*.a "$LIBPATH/"
cd ..
fi
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:... |
ef1fabe8d5dbae84662bd2e8f7297538ce57942f | 853 | #!/bin/bash
bspc config border_width 5
bspc config window_gap 20
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config top_padding 14
# Visual options
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointe... |
aced99ffa04a7402989d7066b29fc08d10cc7a9d | 31 | gcc -pthread main_ok.c -o main
|
2b64ab3ce683f522cb859e876828269de37102f7 | 1,472 | #!/usr/bin/env bash
# Copyright 2020 The gf-layers Project Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... |
a8e0f09f65da01ddd031167819080034bda1674f | 175 | #!/bin/bash
export REGISTRY=http://localhost:5000
export USERNAME=dev_user
export PASSWORD=123456
source ~/.rvm/scripts/rvm
rvm use 2.5.5
cd ../docker_view/ && bin/rails s |
f24012a60397ac1b8abf0aa4c6200a9d18f3b333 | 205 | # Author: Jose Cerrejon Gonzalez
#
# Dependencias: sudo apt-get install -y fbi
#
clear
PHOTODIR=$HOME/Betabeers_raspberrypi/slideshow_projects/
fbi -noverbose -a -t 10 -u `find $PHOTODIR -iname "*.jpg"` |
addde4cd8143eab97b025bc54a75acd59e412b35 | 96 | #!/bin/bash
drive_letter=$1
mount_folder="/mnt/${drive_letter,,}"
sudo umount ${mount_folder}
|
0035226cde4e2715cc3d63daac3ccd8e4161010d | 101 | #!/bin/bash -e
#SBATCH -t 3:00 -N 1 --mem=100M
#SBATCH --reservation=uva_course
mpirun ./primes-mpi
|
b8690ec131b57f16ce47343f2bc912acc797382f | 77 | #!/bin/bash
mysqldump -u openmrs --password=test -P 3316 > sql/openmrs.sql
|
d7e6a9b381a1c1bbca6db9e6699836cc181eb12b | 835 | #!/bin/sh
# This shell script runs some test for netCDF-4. It checks that the
# HDF5 versions of the example data files match (according to ncdump)
# the netCDF-3 classic versions.
# $Id$
set -e
echo ""
echo "*** Comparing HDF5 example data files with netCDF classic format versions."
echo "*** checking simple_xy..."... |
72644f9006c217663562308f1b4d37b968b58a38 | 604 | # CUDA
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# cudnn
export LD_LIBRARY_PATH=~/.cudnn/active/cuda/lib64:$LD_LIBRARY_PATH
export CPATH=~/.cudnn/active/cuda/include:$CPATH
export LIBRARY_PATH=~/.cudnn/active/cuda/lib64:$LIBRARY... |
37930ace18318d84c0a23b61565dc493c702e226 | 75 | DB_HOST=localhost
DB_USER=my_user
DB_PASS=root
DB_NAME=wet_bat
DB_PORT=5432 |
97dae11133d0831d4b53037766bc9413c1e7f29c | 3,718 | # ==============================
# Autoloadings
# ==============================
autoload -Uz add-zsh-hook
autoload -Uz compinit && compinit -u
autoload -Uz url-quote-magic
autoload -Uz vcs_info
# ==============================
# General settings
# ==============================
setopt auto_cd
setopt auto_list
setopt ... |
d4636264652620795a2fc5b379e8f9f3e180002e | 732 | #!/bin/bash -ex
if [ -z "$INPUT_PKGBUILD" ] || [ -z "$INPUT_OUTDIR" ] || [ -z "$GITHUB_SHA" ]; then
echo 'Missing environment variables'
exit 1
fi
# Resolve environment paths
INPUT_PKGBUILD="$(eval echo $INPUT_PKGBUILD)"
INPUT_OUTDIR="$(eval echo $INPUT_OUTDIR)"
# Prepare the environment
pacman -Syu --noconf... |
516cf2babd975dd4efeb9bae94f3ab082cd27845 | 131 | #!/bin/sh
mvn clean install "-Dmaven.test.skip=true"
java -jar "cloud-meter-server/target/cloud-meter-server-0.0.1-SNAPSHOT.jar"
|
26187086556c0a417d551a7e0e2fe9838b5f3d08 | 87 | #!/usr/bin/env bash
rm -rf ../qa-api/dist/admin/*
cp -rf dist/* ../qa-api/dist/admin/
|
21e2adbcba8cb65a9435cdf75c5ba33a2c9e0020 | 961 | #!/bin/bash
rootdir=$PWD
makesuse() {
local temp_dvd_dir=$rootdir/installer/tmpcd
local iso_output_dir=$rootdir/installer/output
local original_iso_dir=$rootdir/installer/original-iso
local action=$1
if [ $action == "-i" ]; then
rm -rf $temp_dvd_dir
elif [ $action == "-C" ]; then
... |
3c7bfbc32abce20e706ade9270863fab9a2bd546 | 1,554 | #!/bin/bash
set -e
S_BASE_ROOT="$(cd "$(dirname "$0")" && cd .. && pwd)"
cd $S_BASE_ROOT
if [ "$(basename $(echo $S_BASE_ROOT))" != "s_base" ]; then
echo "Can't run from this directory."
exit 1
fi
TARGET_SHA=$1
function base_fetch {
NAME=$1
VERSION=$2
rm -rf ./${NAME}
rm -rf ./${NAME}_cache
# UNCOMM... |
d8b5e7fa5c9f160d94b7ab72e49d802c1302037a | 712 | #!/bin/bash -x
cd /media/hh/disc_d/hh/code/openpose-master
path=/media/hh/disc_d/datasets/ICME2018_Occluded-Person-Reidentification_datasets/Occluded_Duke/
for split in 'bounding_box_train' 'bounding_box_test' 'query'
do
# image_dir = occluded_body_images
output_dir=${split}'_pose'
echo ${output_dir}
ch... |
aa1c08904f69a1b099e16df3072c7a1426400e9e | 196 | MORE
# 从第100行开始显示
more +100 test.txt
# 显示当前行号以及文件名
:f
GREP
# 特殊符号|需要加转义
cat final_tag.txt | grep 96BBF2BD2B11467F9B8AEE05B360116E\|VXPL2U6DL |
13cc0c020cd197041a46faeafb4369ab0d4fea18 | 690 | # .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
# Prompt override
PS1='[\u@\h \W'
# Git Auto-completion
if [ -f ~/.git-completion.bash... |
35e21a3395579f1803eee818d600ff9cf5b2ab2a | 74 | #!/bin/bash
OF=/var/my-backup-$(date +%Y%m%d).tgz
tar -cZF $OF /home/me
|
0d8c86ceefada93871f7d38510120c247910b5a1 | 424 | #!/usr/bin/env bash
usage() {
echo "Usage: $(basename $0) OLD_PORT NEW_PORT COMMAND_LINE"
echo
echo "Launch COMMAND_LINE, but intercept system calls to bind"
echo "to OLD_PORT and instead bind them to localhost:NEW_PORT"
exit 2
}
# Parameter defaults
mydir=$(readlink -f $(dirname ${0}))
export RE... |
cd8b452ec708f32438c7f6bb879867f9007d7341 | 385 | #!/bin/sh
#: Run a prometheus instance that collects metrics from a local nctl network.
cd $(dirname $0)
PROMETHEUS_TAG=prom/prometheus
echo "Genarating config."
./gen_prometheus_config.py > prometheus.yml
echo "Starting prometheus."
exec docker run \
-i \
--rm \
--net=host \
-p 9090:9090 \
-v $(pwd)/pro... |
d155173a0d28919a63b524097381ea240f16247c | 577 | #!/bin/bash
triggerDir=~/.trigger-await
triggerName=$1
startTime=$(date +%s)
echo Waiting for trigger $1. Press ENTER to skip...
while true
do
currentTime=$(date +%s)
timeSinceStart=$(expr $currentTime - $startTime)
# Check if the trigger file was modified after we started awaiting
triggerFileUpdated=$(find $t... |
2bec8dbee831f4285fdc07289cb2cb70f9bbce0e | 66 | git add .
git commit -m "Heroku deployment"
git push heroku master |
7dc3866b5f4ccd71e81647bb3ee38041d29544cc | 463 | #!/bin/bash
# if $HOME/bin doesn't exist, create it
if [ ! -d $HOME/bin ]; then
mkdir $HOME/bin
# in many cases the default ~/.profile will add $HOME/bin to path if it exists
if [ -e $HOME/.profile ]; then
. $HOME/.profile
fi
fi
# make sure $HOME/bin is in $PATH, otherwise this install script will not work
if [... |
9c194fe712f29e1192ad8e1f753d30d274533e71 | 140 | #! /bin/sh
type daps || {
echo "missing 'daps' binary, please install it"
exit 1
}
MyDC=DC-${1%.adoc}
daps --verbosity=3 -d ${MyDC} pdf
|
a196b7beaed5c227674916d5134ddd87374e80a1 | 162 | #!/bin/sh
nohup python consume.py --settings=settings_db_server &
nohup python process.py --settings=settings_db_server &
ps -ef | grep python | grep -v 'grep'
|
216a827b2662b3021156ada57e27526be6128deb | 586 | #!/bin/bash
API="http://localhost:4741"
URL_PATH="/jobs"
curl "${API}${URL_PATH}" \
--include \
--request POST \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${TOKEN}" \
--data '{
"job": {
"occupation": "'"${OCC}"'",
"type": "'"${TYPE}"'",
"pay": "'"${PAY... |
6228627f2efb1008ed37ca4d10c01cd4ce7687a7 | 82 | mysql pbnj -N </usr/local/bin/sql/getstring.sql | sed 's/,//g' | sed 's/NULL//g'
|
b2f02bdcd8d41886368530821688d2b8fabe2660 | 932 | #!/bin/bash
RUN_DATE="`date '+%s'`"
if [ $# -ne 1 -a $# -ne 2 -a $# -ne 3 ] ; then
echo "Usage: $0 <executable_path> [port [override_date_in_seconds_since_epoch]]" >&2
exit 2
elif [ $# -eq 3 ] ; then
RUN_DATE="$3"
fi
if [ -z "$2" ] ; then
PORT="3000"
else
PORT="$2"
fi
export PORT
if [ -f core ] ... |
743b6a1cacdf3ffce682fd6c771f5124dbd7dd43 | 119 | DJANGO_SECRET_KEY=0yj8sg%z5)g@inc=1c4^#)5=3hh8_zm(mv1uhzu=&n5a7ybuj!
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS="127.0.0.1" |
2ed7a82923e9ad0376cc102ca2e671962a8a0fcf | 798 | #!/bin/bash
SOURCE_LIST=$1
usage() {
echo "usage: ./gen-pot-files.sh <list file>"
}
dbg() {
echo $1
}
if [ "x$SOURCE_LIST" = "x" ] ; then
usage
exit 0
fi
DOMAIN=
OUT_FILE=
IN_FILE=
while read LINE
do
echo $LINE
if [ "x$LINE" = "x" ] ; then
echo "LINE is empty."
continue;
fi
FIRST_CHAR=${LI... |
9fbf87fde99f217948ea3f8ed538c2b5f5de67be | 185 | #!/bin/bash
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface wlan0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
|
eeb35bea22473cc94c5a42a5163d73889e77b041 | 283 | #!/bin/bash
tar czf abtest.tar.gz -C abtest .
scp abtest.tar.gz jonathan@femfs.jonathancunanan.com:/var/www
rm abtest.tar.gz
ssh jonathan@fem_fullstack << 'ENDSSH'
cd /var/www
rm -rf abtest
mkdir abtest
tar xf abtest.tar.gz -C abtest
rm abtest.tar.gz
cd abtest
npm install
ENDSSH
|
00d877a7be7e628bb5b053a7090528f77381d6c1 | 854 | #
# Lithium Site
#
# Copyright (c) 2014 Union of RAD - All rights reserved.
#
# The code is distributed under the terms of the BSD 3-clause
# License. For the full license text see the LICENSE file.
#
source $DETA/util.sh
role THIS
cd $THIS_PATH/config/nginx/includes
for NAME in app assets access; do
msg "Generati... |
046bbcabf0001a4c72691f8e75ad4bcdfd2810be | 268 | #! /bin/bash
#
# $1 - status type
#
case $1 in
full)
docker-compose ps
exit 0
;;
short)
docker-compose ps --quiet
exit 0
;;
list)
docker-compose ps --services
exit 0
;;
*)
echo -e '\n\n\nUsage: make status [full|short|list]'
exit 0
;;
esac
|
6de111450cbc0652474263fbec21942572e6749d | 1,172 | #!/bin/sh
set -ex
export PATH=$HOME/.local/bin:$PATH
dir=$(dirname $0)
sudo apt-get -qq -y install jq python3-pip
# "yq" the Python version, https://github.com/kislyuk/yq, requires jq
# Used to replace image url in the job template.
pip3 install yq
# "yq" the Go version, https://github.com/mikefarah/yq
#wget -q http... |
bf00760a126da4676ddc266e6c101ff5e4235bbc | 697 | #!/bin/bash
hexchat & HEXPID=$! >/dev/null 2>&1
echo $HEXPID
#
HEXWINID=$(xdotool search --onlyvisible --sync --pid ${HEXPID} | tail -1)
#
echo $HEXWINID
xdotool key --window $HEXWINID Return
HEXWINID=$(xdotool search --onlyvisible --sync --pid ${HEXPID} | tail -1)
xdotool windowactivate --sync ${HEXWINID} key --c... |
1135072d59f5adcfd1771b55cd1088d94bd42fb3 | 999 | #!/bin/sh
#
# v122_dashcache.sh
#
# Project: BluebirdCRM
# Author: Brian Shaughnessy
# Organization: New York State Senate
# Date: 2011-07-02
#
prog=`basename $0`
script_dir=`dirname $0`
execSql=$script_dir/execSql.sh
readConfig=$script_dir/readConfig.sh
drush=$script_dir/drush.sh
. $script_dir/defaults.sh
if [ $# -... |
8508ccbcb631351eb8c538c44534ff0d708718ff | 2,901 | #!/bin/sh
# Set Linux PATH Environment Variables
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
rm -rf /usr/local/netspeeder
echo -e "\033[34m================================================================\033[0m
欢迎使用 net-speeder 一键脚本
系统要求: CentOS 5... |
de39a50830379c66d06fbfde531c42f64df957b4 | 251 | #!/usr/bin/env bash
free -h
echo "_________________________________________________________________________"
sudo sync
sudo sysctl -w vm.drop_caches=3
sudo sync
echo "_________________________________________________________________________"
free -h
|
d267b7f818943675647f86d558e94dcc198ce82c | 180 | DEBUG=True
SECRET_KEY=S@#$GFQXC@#%WEXC@#$%1213
DB_ENGINE=postgresql
DB_NAME=vendor_development
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASS=postgres
FLASK_APP=run.py |
11604a4042001c7fc557491ddf0b312c0623fbe5 | 281 | #!/usr/bin/env bash
function main {
local shome="$(cd -P -- "${BASH_SOURCE%/*}/.." && pwd -P)"
source "$shome/script/profile" source normalize
local nm_color="${BASH_SOURCE##*-}"
exec fogg account fogg color dispatch "${nm_color}" "$@"
}
source sub "$BASH_SOURCE" "$@"
|
d682d4d78474910ee79b3118ba48a9de7fad2d14 | 628 | #!/bin/bash
HDPRole=${HDPRole:-"dnode"}
HADOOP_PREFIX=${HADOOP_PREFIX:-"/opt/hadoop"}
HADOOP_HDFS_NAMENODE=${HADOOP_HDFS_NAMENODE:-"/data/hdfs/namenode"}
# Read the HDPRole env, and based upon one of the five: format or bootstrap or start the particular service
# NN and ZKFC stick together
case $HDPRole in
pnnode)
... |
27b394536836b0efcaef4ce286c36609d5cc8d5a | 161 | #!/bin/bash
# remove build-only dependencies
apt-get -y remove build-essential zlib1g-dev libpcre3-dev libbz2-dev libssl-dev tar unzip wget
rm -r $BUILDDIR
|
d25598c271834e2a64f26fe77e9e04b2e922569f | 600 | #!/bin/bash
# Title: Creates a reverse ssh proxy tunnel.
# Crontab : * * * * *
# Author: MuzammilM
sshport=22
remoteport=1998
server=user@example.com
if ! [ -x "$(which autossh)" ]; then
echo 'Error: autossh is not installed.'
sudo apt-get install autossh -y
exit
fi
cnt=`ps aux | grep autoss... |
0e8febaf421d6dd330442b41ad7567d3a072307b | 220 | #!/bin/bash
#
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
git fetch -t
git clone ../compute-runtime neo
docker build -f scripts/docker/Dockerfile-arch-ppa-gcc-8 -t neo-arch-ppa-gcc-8:ci .
|
6862302b91f7e922487ade11f62a6f55fa8ac856 | 696 | #!/bin/bash
BUNDLE_FILE_BASE=fundoo-frontend
BUNDLE_FILE=$BUNDLE_FILE_BASE-$BUILD_NUMBER.tar.gz
SERVER_IP=18.119.109.3
APPS_HOME=/home/ec2-user/apps
FOLDER_NAME=fd-frontend
EC2_SSH_KEY=/var/lib/jenkins/jenkins_key.pem
rm -rf *.tar.gz
npm install
npm run build
cd dist/fundoo-notes-app
tar czf $BUNDLE_FILE *
scp -o Str... |
96049d1b30180314ca35ed888c336c01c4b4b143 | 78 | export PATH=$PATH:$PWD
dir=$PWD
function pratstar() {
python parent_GUI.py
}
|
a39f5f118b86cfe4c73f858e6e02c47f2d8082cf | 331 | # Start the Minecraft server in a background Screen session.
# Add this to crontab for automatic start as:
# @reboot /home/minecraft/minecraft/startminecraftbg.sh
BASE=/home/minecraft/minecraft/
JAVA=/usr/java/jre1.8.0_45/bin/java
cd ${BASE}/server
screen -d -m -S server $JAVA -Xms8G -Xmx8G -jar ../minecraft_server... |
16de37a6596a427acc83caf28bbd8c2a364f45ee | 1,989 | # ----------------------------------------------------------------------------
#
# Package : archaius
# Version : 2.2.13
# Source repo : https://github.com/Netflix/archaius.git
# Tested on : ubuntu_16.04
# Script License: Apache License, Version 2 or later
# Maintainer : Atul Sowani <sowania@us.ibm.com>
#
# Disclaimer:... |
8a5625233827580f1e10786fea69bd34d26bf8f9 | 1,520 | #!/bin/bash
# Create TFRecords with given vocabulary and sequence length.
# NOTE: replace instances of "DOC_FILTERED" with "TOKENIZED_TEXT" in this
# script to generate records for all texts (instead of filtered).
PIPELINE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$PIPELINE_DIR/... |
f369b2e986d16084f186c066d215f69732f5307f | 692 | #!/bin/bash
count=0
counter=1
filename="pipe_test.txt"
filename2="pipe_test2.txt"
echo $#
if [ $# -lt 2 ]; then
echo " Incorrect usage, please enter TWO PARAMETERS"
else
for x in "$@";do
if [ $count == 0 ]; then
echo "put into file"
eval "$x" > "$filename"
count=1
elif [ $counter == $# ]; then
echo "... |
c3e13dbefb1d3188d1d0360bd026e2f5f5028963 | 75 | #!/bin/sh
if [ ! -d ups ]; then mkdir ups; fi
gru lua/make-patch.lua "$@"
|
e5f14c831884a35bcc069b18451f18e5f182df82 | 102 | #!/usr/bin/env bash
# Build sensor manager
mkdir /etc/manager
cd /opt/manager
python setup.py install |
18cad490fc93d26567c73cfe6a06aa1372ecab67 | 40 | go build
sudo ./playadm -c playadm.json
|
a4241ebbaba25cb44034da0ee05d725e21ec6cf6 | 55 | #!/bin/sh
while true; do sleep 60 ; echo "ALIVE"; done |
2d33ac3e485778b1e55c65e2de7be1c1dee40127 | 712 | # General env vars
PYTHONPATH=./src
# CI env vars
DATA_SCIENCE_SERVICE_TOKEN=<authorization token for making calls to the data science_functions>
AFL_DATA_SERVICE=<hostname of the afl data service>
AFL_DATA_SERVICE_TOKEN=<authorization token for making calls to the afl data_functions>
PROJECT_ID=<name of the Google Cl... |
8878c4567b71970f3304f4532255c1d8d6c723b8 | 136 | TWILIO_ACCOUNT_SID=AC5d1d1f64e78a275baa28a4bbe4165f43
TWILIO_AUTH_TOKEN=c20fe233bb1edf24c63af20beb847b62
RACK_ENV=development
PORT=3000
|
db061250748c5d257b32f0caac3888de081dfc56 | 755 | #!/bin/bash
# Create new workspace for bootstrapping
terraform workspace new state
# Initialize provider for bootstrapping (Amazon S3)
terraform init remote-state
# Bootstrap state infrastructure
terraform apply -auto-approve remote-state
# Fill in backend info (requires envsubst from package gettext)
source <(terrafo... |
f47f0b2f7ed468b1fc7b4f092b3d325f4f578de9 | 93 | BYOBU_DARK="\#222222"
BYOBU_LIGHT=white
BYOBU_ACCENT=magenta
BYOBU_HIGHLIGHT=red
MONOCHROME=
|
35e86c172432150bf357101ffc76ae1bb7ad80e0 | 940 | #!/bin/sh
#
# Clones a git repository from repo.bundle file if it does not exist yet,
# simulates changes and creates an incremental backup bundle
# using backup-git.sh.
#
SRC_BUNDLE=${1:-"repo.bundle"}
REPO=${2:-"repoA"}
GBACKUP_DIR=${3:-"../src"}
BACKUP_DIR=${4:-"backups"}
GBACKUP_DIR=`readlink -f ${GBACKUP_DIR}`
B... |
cfb6b69d03599a778f78900317b1b8048e26f201 | 1,330 | #!/usr/bin/env bash
# Copyright (c) Guangsheng Bao.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Usage:
# e.g.
# bash prepare-randinit.sh iwslt17 exp_test
data=$1
exp_path=$2
input=doc
code=bpe
slang=en
tlang=de
echo `date`, exp_pat... |
82872d566f312d5cf18d114d26f56c95c08ffb48 | 261 | if [[ $(date +%w) -gt 15 ]]
then
echo "estamos en la segunda quincena del mes"
else
echo "estamos en la primera quincena del mes"
fi
if [[ $(date +%m) -gt 6 ]]
then
echo "estamos en la segunda mitad del ano"
else
echo "estamos en la primera mitad del ano"
fi
|
d64d3029b8add1fffd5691027bb0d3b6c72c00c4 | 134 | #!/bin/bash
# When doing the LSB tests, I need to replace the targetarch to comply for my arch.
sed -i -e 's/targetarch/x86-64/g' $1
|
d5c0112fa9a52d4dba5648c13923168d89a888d1 | 95 | MYSQL_RANDOM_ROOT_PASSWORD=yes
MYSQL_DATABASE=step3
MYSQL_USER=db_user
MYSQL_PASSWORD=password
|
f97ad2f2175647917419aaffe5ae2353cafc5465 | 723 | #!/bin/bash
if [ -z $(which jq) ]; then
echo "ERROR: This script requires jq!"
exit 1
fi
APISERVER="FQDN"
APIUSER="USERNAME"
APIPASS="PASSWORD"
# obtain a valid authentication token
TOKEN=$(curl -sX GET --header 'Accept: application/json' "https://${APISERVER}/Endpoint/api/authenticate?Username=${APIUSER}&Passwo... |
2e1636a5d1ac0780579721db24eb69bbcc51e799 | 1,068 | #!/bin/bash
Help()
{
# Display Help
echo "Runs PHPUnit tests for all PHP versions supported by this version of Smarty."
echo
echo "Syntax: $0 [-e|h]"
echo "options:"
echo "e Exclude a group of unit tests, e.g. -e 'slow'"
echo "h Print this Help."
echo
}
Exclude=""
# Get the options
whi... |
63198ba3d87eb9926423b67b35c3b08a7cd06f5c | 195 | #!/bin/bash
if [ -f "/etc/init.d/perfsonar-meshconfig-guiagent" ]; then
/etc/init.d/perfsonar-meshconfig-guiagent restart
else
systemctl restart perfsonar-meshconfig-guiagent
fi
exit 0
|
b45c0a411438bee1d50871f30120e2ff64dc3ec9 | 66,501 | #!/usr/bin/env bash
################################################################################
### Head: Link
##
# * https://github.com/samwhelp/skel-project-plan/blob/gh-pages/demo/sh/standalone/bin/demo-ctrl
# * https://github.com/samwhelp/play-ubuntu-20.04-plan/blob/master/prototype/bspwm/config/wallpaper/b... |
c9353ac39321cf0028674bbd8c234a0509aa40a8 | 780 | #!/bin/bash
iptables -F MESOSLEADER
iptables -D INPUT -p tcp --dport {{ mesos_leader_port }} -j MESOSLEADER
iptables -X MESOSLEADER
iptables -N MESOSLEADER
{% raw %}{{ range service "mesos-leader" "any" }}{% endraw %}
iptables -A MESOSLEADER -p tcp --dport {{ mesos_leader_port }} -s {% raw %}{{ .Address }}{% endraw ... |
95bd6ab8a40f9bb68c82f386718c512c75a53c0d | 555 | #!/bin/bash
if [ $# -eq 0 ]
then
echo "ERROR Parametros de entrada incorrectos. Debes indicar: anio"
exit -1
fi
export anio=${1}
echo "Borramos todos los ficheros brutos que tuvieramos de ese anio=${anio}..."
rm -f "/home/carloslinux/Desktop/DATOS_BRUTO/bolsa/YF_${anio}_*"
empresas="/home/carloslinux/g... |
7c4152b7452c9e616e9869e1d3b17f4ade9769c9 | 284 | #!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
if [ "$(id -u)" != "0" ]; then
echo -e "${RED}[ERROR]: Please, execute the script with sudo.${NC}"
exit 1
fi
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
|
5f7f75c5ae832a3eb21e5cf02ad50004124b0284 | 59 | cd ~/vim
git pl
cd ~/mysite
git pl
cd ~/backup
git pl
cd ~
|
a48b19de3eed352698f1fba76de804b01ae1e903 | 589 | # Contributor: Tocer Deng <tocer.deng@gmail.com>
pkgname=cherrypy2
pkgver=2.3.0
pkgrel=2
pkgdesc="A pythonic, object-oriented web development framework"
arch=('i686' 'x86_64')
url="http://www.cherrypy.org"
license=('BSD')
depends=('python2')
source=(http://download.cherrypy.org/cherrypy/$pkgver/CherryPy-$pkgver.tar.gz... |
b6a91ec6a3f667731a8af4488ab643fb21affaea | 151 | ssh -o ServerAliveInterval=60 -L 8900:localhost:8998 -L 8901:localhost:30070 -L 8902:localhost:22 credossh@credo-test-hdinsight-ssh.azurehdinsight.net
|
5a701d0a2ec6add1ddfb66443ec698d75fe3ea2f | 795 | #!/bin/bash
uid=$1
file=$2
url=$3
logger -p local3.info -t downloader "Downloading $file from URL $url"
if [ -d "/home" ];then
homedir=/home
else
homedir=$HOME
fi
fwdslogdir=$homedir/log/fwds
mkdir -p $fwdslogdir
echo "Downloading uid: $uid , File: $file , url: $url" > $fwdslogdir/download.txt 2>&1
#curl -u $ui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.