blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
7d8452932968f9e31e95ac75e85ab7d08471b7bd | 1,271 | #!/bin/bash
echo "HADOOP SERVICES"
$HADOOP_HOME/sbin/start-dfs.sh
$HADOOP_HOME/sbin/start-yarn.sh
echo "RUN jps - Java Virtual Machine Process Status Tool"
jps -lm
echo "Get basic filesystem information and statistics."
hdfs dfsadmin -report
echo "HBASE SERVICES"
$HBASE_HOME/bin/start-hbase.sh
echo "RUN jps - Java... |
c86f3dd0464d5e50fd92bc7f5ad71d40b4dd6aa1 | 6,385 | #!/bin/sh
# apk add \
# abuild apk-tools alpine-conf busybox fakeroot syslinux xorriso
# (for efi:) mtools dosfstools grub-efi
# FIXME: clean workdir out of unneeded sections
# FIXME: --release: cp/mv images to REPODIR/$ARCH/releases/
# FIXME: --update-latest: rewrite latest-releases.yaml with this build
set -e
sc... |
cd8bfdd1f35f16254ff74135efb2d8b75025312b | 818 | #!/bin/sh
START=`date +%s%N`;
echo "Data trans start at "$START
LOCAL_DIR=/tmp/hdfs
FILENAME=""
mkdir $LOCAL_DIR
FILE_ARRAY=($(hdfs dfs -du -h /input/lbs/recommend/user_click_sup_d/partitiontime=20140407 | awk '{print $3}'))
CYC=${#FILE_ARRAY[@]}
for((i=0;i<$CYC;i++))
do
HDFSFILEPATH=${FILE_ARRAY[i]}
FIL... |
e0fa28274cf01132a29abe974652ca6c4a9aa81e | 188 | #!/bin/bash
mkdir openenglishbible
cd openenglishbible
for x in index b{001..069}
do
# echo $x
wget --page-requisites http://openenglishbible.org/oeb/2016.1/read/$x.html
done
cd ..
|
b5d1b29164a331c3b9684310780d437a42fcfb6b | 616 | #!/usr/bin/env bash
set -euo pipefail -o posix -o functrace
git submodule foreach --recursive 'git fetch origin && git reset --hard origin/master'
if [[ ! -f .gitmodules ]]; then
echo "No registered submodules"
exit 0
fi
submodules=$(awk '$1 ~ /path/ {print $3}' .gitmodules)
if [[ ${#submodules} -eq 0 ]]; th... |
49be2effbc16ad9d9a3bea53fe8abdad71645a29 | 6,606 | #!/bin/bash
echo "Updating..."
sudo apt-get -y update
sudo apt-get -y upgrade
echo "Installing necessary libraries..."
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y jq
sudo apt-get install -y ruby-full
sudo apt-get install -y libcurl4-openssl-dev libxml2 lib... |
524107a7bf3ac09e7cfcb3d5baacce6d08dc0645 | 82 | #!/usr/local/bin/bash
true | false | true | false | false
echo ${PIPESTATUS[*]}
|
62129a9195ed8fb2d8409d314c16e35396d649b2 | 847 | #!/bin/sh
cat << EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-... |
256dc2a0acb9ae4def09d4221d20be83717b4d44 | 1,880 | #!/usr/bin/env bash
SLEEP_TIME=60
MAX_TRIES=5
SITE=${SITENAME:=sp}
#######################################################################
groupadd -g 1001 "${SITE}" || echo "* group $SITE already exists"
useradd -s /bin/bash -m -d /omd/sites/${SITE} -u 1001 -g "${SITE}" "${SITE}" || echo "* User $SITE already exists... |
96a5577ab12a6d814dbabbcd83b6d3f5223821c8 | 165 | #!/bin/sh
[ ! -f .tool-versions ] && echo "Couldn't find .tool-versions file" && exit 1
cut -d ' ' -f1 .tool-versions | xargs -I{} asdf plugin add {}
asdf install
|
aa84cd431a0af0cb213b358a1a4032b95969a7c9 | 355 | #!/usr/bin/env bash
set -e
cd $(dirname $(realpath $0))
scrot -e 'mv $f _lockbg.png'
convert _lockbg.png \
-blur 15x15 \
-family Hack -fill '#FFFFFF' -stroke black -strokewidth 1 -pointsize 32 \
-gravity south -annotate +0+200 'Type password to unlock' \
debian.png -geometry +0+0 -composite _lockbg.p... |
d8c8983ea470385da8085180ba35c32afce33313 | 5,518 | #!/bin/bash
# title: archinstaller - encrypted version
# author: andrew
# aim: build a arch installer for a Dell XPS 13 9360 with partial disk encryption
# last working run: 2020-03-09
# notes:
# - assumes sda is the install location and you have a connection to the internet
# - built for uefi - see bootctl
# - v... |
220ccd80bd44255eaa19e3d1ec7e20e6aab61a14 | 759 | #!/usr/bin/sh
cd jpas-z0p21
ls jpas-z0p21_*.txt > jpas-z0p21 && split jpas-z0p21 -nl/30 -d jpas-z0p21_
cd ..
cd jpas-z0p50
ls jpas-z0p50_*.txt > jpas-z0p50 && split jpas-z0p50 -nl/30 -d jpas-z0p50_
cd ..
cd jpas-z0p90
ls jpas-z0p90_*.txt > jpas-z0p90 && split jpas-z0p90 -nl/30 -d jpas-z0p90_
cd ..
cd jplus-z0p21
ls j... |
724b5f4515b0371be816b7d2edc2fbe5ec05704e | 239 | #!/bin/bash
#SBATCH --job-name=a1_1a
#SBATCH --ntasks=1
#SBATCH --partition=broadwl
#SBATCH --constraint=fdr
# Load Python and MPI modules
module load python/anaconda-2019.03
module load intelmpi/2018.2.199+intel-18.0
python3 a1_1a.py
|
a1b1444090ae5811032a79c71f16ad01dfa0ba97 | 277 | # build in local and replace the new build files to the cloud server
# yarn
npm run build
scp -i "/Users/andreassujono/Desktop/FOLDER/job/andreas-server/server.pem" -r $(pwd)/build ubuntu@ec2-18-141-202-3.ap-southeast-1.compute.amazonaws.com:/home/ubuntu/live/personal-website |
dd95abc688cb50308a425273e2634ac51a3d94c0 | 778 | ARCH=$(uname -p)
sudo yum install -y yum-utils rpmdevtools
yumdownloader --source httpd.$ARCH
file=$(echo httpd-*.amzn2.src.rpm)
rpm -i $file
sudo yum-builddep -y $file
cp mod_proxy_http_subreq_connection_reuse.patch rpmbuild/SOURCES
cp proxypass_nomain_flag.patch rpmbuild/SOURCES
patch -p1 -d rpmbuild <httpd_spec.pat... |
ee69f6cf9abce2cd75a5be5e4027225792e44071 | 163 | #!/bin/bash
fc-cache -fv
sudo -u gitlab_ci_runner -H TEXMFSYSCONFIG=/home/gitlab_ci_runner/.texmf-config /usr/local/texlive/bin/x86_64-linux/mktexlsr
/app/init $1
|
6fe59c5d4253a7ed489129eea754321f66f440a9 | 252 | #!/bin/bash
# We redirect stderr & stdout to conda's .messages.txt; for details, see
# http://conda.pydata.org/docs/building/build-scripts.html
{
"${PREFIX}/bin/jupyter-contrib-nbextension" install --sys-prefix
} >>"${PREFIX}/.messages.txt" 2>&1
|
c5dcaade6c3571f44bd98c4705dbf1ea2e25e261 | 3,854 | #!/bin/sh
#-------------------------------------------------------------------------
IMPALA_HOST=10.112.21.75
HIVE_HOST=10.112.21.76
HBASE_PUT_HOST01=hduser@10.112.21.45
HBASE_PUT_HOST02=hduser@10.112.21.46
HBASE_SCAN_HOST01=hduser@10.112.21.47
HBASE_SCAN_HOST02=hduser@10.112.21.48
HBASE_QUERRY_FILE=~/hbase_query.qr
... |
ef8014f11684f62650619a5df70e56ab9802e54e | 39 | DISCORD_TOKEN=**YOUR TOKEN GOES HERE**
|
1ee75c6208326f75a485b24218a84fbf82154367 | 1,350 | #!/bin/sh
############################################################################
# #
# Example of using dbus_snit library #
# #
#... |
bd8b9f464c30dc29f81e7aab4d363eedd8378c06 | 229 | #!/bin/bash
mkdir -p ./build
sudo rm -rf ./build/*
docker build -t jackb/cjdns-build:latest .
docker run --rm -v `pwd`/build:/build --entrypoint '/bin/bash -c "cp /src/cjdns/cjdroute /build/cjdroute"' jackb/cjdns-build:latest
|
196ea264531075d0c7ea454410c347d8a65c6c07 | 460 | #!/bin/env bash
set -o errexit
main() {
set -o xtrace
__install_lein
}
__install_lein() {
mkdir -p $HOME/bin
curl -sL -o $HOME/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod +x $HOME/bin/lein
echo 'export PATH=${HOME}/bin:${PATH}' > /home/travis/.bash_profile.d/l... |
fe4d0b36c8081cca389bfe159be7977395297c51 | 2,727 | #! /bin/bash
read -p "Do you want to update from git?[Y/n]" PULL
[ "$PULL" == 'Y' -o "$PULL" == 'y' ] && git pull
grep 'devMode' WebRoot/WEB-INF/oj.properties
read -p "Do you want to continue with this mode?[Y/n]" cont
[ "$cont" == 'n' -o "$cont" == 'N' ] && exit
read -p "Input the mysql username, press enter to use... |
103bf4dfe19d80c8a264f85788a34f031abaeeb1 | 3,768 | #!/bin/sh
#
# deathstar Boot
#
# chkconfig: 2345 90 60
# description: Death Star appliance boot strap \
### BEGIN INIT INFO
# Provides: deathstar
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start: 2345
# Default-Stop: 90
# Short-Description: sets up a few things and start... |
656bd6372b6670f646e1269b3b5840b58483f25d | 102 | virtualenv venv --python=python3.7
source venv/bin/activate
pip install -r requirements.txt
pip freeze |
63b0b450065390fc51a191d60b48f19194aa8dd7 | 666 | # bash-aliases
# Edit Xresources
alias exr='$EDITOR $HOME/.Xresources'
# Edit bash config
alias ebc='$EDITOR $DOTFILES/shell/bashrc && source $DOTFILES/shell/bashrc && echo "bash config updated !"'
# Edit bash profile
alias ebp='$EDITOR $DOTFILES/shell/bash_profile && source $DOTFILES/shell/bash_profile && echo "bash ... |
d9933a0d3c0c8ac97f0d9803a208d6bae7051a56 | 831 | #!/bin/bash -l
export GPUARRAY_FORCE_CUDA_DRIVER_LOAD=""
export HDF5_USE_FILE_LOCKING=FALSE
##GLOBAL_FALG
global_dir=/mnt/data/zhiye/Python/DNCON4_system
## ENV_FLAG
# source $global_dir/env/dncon4_virenv/bin/activate
## FEATURE_FLAG
feature_dir=/mnt/data/zhiye/Python/DNCON4/data/deepcov/feats/
output_dir=$global_dir/m... |
bead06afdff33cb377dd8538f997fc8c2d1f22b7 | 1,406 | #!/usr/bin/with-contenv bashio
# ==============================================================================
# This files check if all user configuration requirements are met
# ==============================================================================
# Check authentication requirements, if enabled
if bashio::c... |
b6eecf74356884f52c35a97184e10684a203c669 | 29 | adb reverse tcp:3001 tcp:3001 |
4de59d89afb0fe9f575f93111d2642a1ce0857dd | 344 | #!/bin/sh
#
# Starts the svscan process for the supervised apps.
# Runs as root
#
# Supervised apps will change ionice priority to 5/6 depending on app
# environment.
#
# The root svscan will continue to run with ionice 0.
exec \
{{ treadmill_bin }} \
sproc --cgroup . \
exec -- \
{{ _alias.s6_svsc... |
8169c222338341f60c8fd0fc9c486aa83cad48ca | 181 | #!/bin/bash
# Send a POST request to the given URL, and display the body of the response.
curl -sX POST -d "email=hr@holbertonschool.com&subject=I will always be here for PLD" "$1"
|
e4d91dfb814e4f967d7f34f3e28206f1d2efe19b | 516 | #=========================JamesKid==================================
#!/bin/bash
# Description: this program is the linux note from internet
# Editor: zhangshijie
# Email: 406358964@qq.com
# Version: 1.0
# History: 2014_01_16 creat ubuntu
#=========================================================... |
704f08aeeaf694f86af55a83d0f676b2be5e5896 | 2,283 | #!/bin/bash
#------------------------------------------------------------
# Switch between JDK versions
#------------------------------------------------------------
# Configuration scripts should be in user home directory.
#------------------------------------------------------------
# Scan options and arguments
#--... |
3cf5153a667a4f34ee57529036264ed51648f7ac | 863 | #!/bin/bash
clear
echo ""
echo "start script"
## Errors
# comprovem existeix plumber
if ! [ -f plumber ]; then
echo ""
echo "error: file \"plumber\" does not exist"
echo ""
exit 1
fi
# comprovem tenim dos parametres
if [ $# -lt 2 ]; then
echo ""
echo "error: test needs two parameters"
echo ""
exit 1
fi
# alg... |
7b06c84583b7142aeee5abe6d85eedcd2f418e1e | 54 | API_KEY = "AIzaSyBbIRPR39TbPYBKN9qQaoJknneAJN15RLg"";
|
2b540f855137262742f1c6104c91974bb54ead4e | 919 | #!/bin/sh
# usage: update-framework [path]
#
# e.g. update-framework ./path/to/FreeType.framework
#
# WARNING: recommend doing this from someplace version controlled, because it deletes files.
#
# fixes a pre-mavericks macOS framework to follow the convention specified here:
# https://developer.apple.com/library/archi... |
b287a53a3be0193dda7f29d55d2c6179ccd79b24 | 5,512 | # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See ht... |
7225550f5d83e04691d63cfeaccc6b15e6d0c975 | 1,102 | #!/bin/bash
set -e
DEBIAN_FRONTEND=noninteractive
echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get -y update
apt-get install -y r-base
apt-get install -y r-base-dev
apt-get install -y libcurl4-gnutls-dev # T... |
2c4190a92ef0cc2690a9dae69900cd3fac955f41 | 1,549 | #!/bin/bash
# Defined in ~/.bashrc, but can be overwritten
# PROJECT=mediacommons
# Defined in ~/.bashrc, but can be overwritten
# APP_DIR=/vagrant
# Defined in ~/.bashrc, but can be overwritten
# DRUSH=${APP_DIR}/source/mediacommons/bin/drush-6.7.0/drush
# Defined in ~/.bashrc, but can be overwritten
# HOST=mediac... |
6ceb37693b4dabf59c739bb9faf13957559db9fa | 110 | #!/bin/bash
if pgrep -x "picom" > /dev/null
then
killall picom &
sleep 0.5; picom -b &
else
picom -b &
fi
|
a034544c0a85a1c5acee4d472b108a8dc20d6b96 | 405 | i=`head -n 1 ~/.id`
let "i-=1"
echo $i
if [ -f runvasp.pbs ]; then
sed -i "2s/.*/#PBS -N $i /" runvasp.pbs
echo "success"
qsub runvasp.pbs
pwd
echo $i > ~/.id
JobSqlite.sh
if [[ `hostname` =~ owens.* ]];then
echo 'owens'
pwd >> ~/newlist
elif [[ `hostname` =~ ruby.* ]];then
echo 'ruby'
... |
58d81894ca86c209c3f2c1823b7a9465799c7f27 | 62 | #!/bin/bash
pebble build && pebble install --emulator basalt
|
148d9d090a583faa7db9bfa6aa74903547465a9b | 97 | APP_PORT=8080
DB_PORT=3306
DB_HOST=db
DB_USER=root
DB_PASS=root
DB_NAME=db_iot
SECRET_API=qwe1234 |
91ff6fee5897be7487b2af51e79a51d4c0b3d3a2 | 90 | #!/bin/sh
exec ../../../challenge_program/bin/textcrunchrhost_1 ./zip_decompression_1.zip
|
8e6025dea31247008805c654a2101702b8a67148 | 1,172 | #!/bin/sh
ROOT=<%=@web_root%>
while test "$1"
do
case "$1" in
OpenBSD|openbsd|OPENBSD)
ARCH=amd64
VERS=6.1
if test "$2"; then
if test "$2" = amd64 -o "$2" = i386; then
ARCH=$2
shift
fi
if echo $2 | grep -E '[0-9]\.[0-9]' >/dev/null; then
VERS=$2
shift
fi
if test "... |
c371ab3d4ee1d70be7a7d888a2dd85ce39ac5629 | 371 | #! /bin/bash
sudo apt-get -y install nfs-common
sudo echo "Domain = 192.168.4.5" >> /etc/idmapd.conf
sudo mount -t nfs 192.168.4.5:/home /home
df -hT
sudo echo "192.168.4.5:/home /home nfs defaults 0 0" >> /etc/fstab
sudo apt-get -y install autofs
sudo echo "/- /etc/auto.mount" >> /etc/auto... |
be4736622b8776c86a2324fe52b7a40ef71722a2 | 125 | #!/bin/bash
cd ~/server/tensorflow/
source ./bin/activate
source ./bin/activate.csh
cd -
echo 'load tensorflow success!!!'
|
edd2d80490b3bd77f5cb96929032e69d71e1936e | 151 | for seed in {1..5}
do
python trainer.py --seed $seed --run_name resnet101_PPO_seed_$seed --cnn_feat resnet101 --dataset tvsum --algorithm ppo
done |
1845abae0c2d5d7f8bb3c831a72f7c4f4a7e20ce | 4,200 |
# NAME:
# mongoctl - Manage MongoDB servers and replica sets using JSON configurations!
# INSTALL and CONFIGURE
# web page:
# - https://github.com/mongolab/mongoctl
# Installing mongoctl
# Dependency:
# - pip // https://github.com/mon... |
12ff1194982145b2797acad353d1eba1d03c7999 | 613 | #!/bin/bash
#change working directory
cd $HOME
#remove website files
echo "Removing node status page website files"
rm -r -f -v $DEBIAN_WEBSITE_DIR/banner.png
rm -r -f -v $DEBIAN_WEBSITE_DIR/bootstrap.css
rm -r -f -v $DEBIAN_WEBSITE_DIR/favicon.ico
rm -r -f -v $DEBIAN_WEBSITE_DIR/style.css
rm -r -f -v $DEBIAN_WEBSITE... |
939376a69efbaa650fe07320d9126f594ee3b99d | 2,946 | #!/bin/false
# Declares $PATH
#PATH=$PATH
# Sources defaults
source /usr/local/etc/bashrc
# Color Variables
CYAN="\e[1;36m"
PINK="\e[1;35m"
WHITE="\e[0;1m"
RESET="\e[0m"
BASE_COLOR=$WHITE
COLOR1=$CYAN
COLOR2=$PINK
# Variables for prompt customization
PROMPT_COMMAND=__prompt_command
# Dynamic prompt
__prompt_comma... |
59d5113a2588b19e825628185fbd2344eb6a795a | 1,871 | #!/bin/bash
#
# $Id: rc.conexantpciadsl 4231 2010-02-12 16:31:09Z gespinasse $
#
# Debugging. Comment it out to stop logging
DEBUG="yes"
msg() {
if [ "z$DEBUG" != "z" ] ; then
/usr/bin/logger -t red "CnxPCI ADSL: $*"
fi
/bin/echo "$*"
}
function wait_for_showtime() {
msg "waiting for sync"
... |
46a06b3ed6be102f187880c1cd8391cc161ce9f5 | 692 | #!/bin/bash
#$ -S /bin/bash
#$ -cwd
##$ -pe def_slot 1-4
#$ -t 1:10
unset LANG
idx=`head -n $SGE_TASK_ID RNA-seq-list | tail -1 | awk '{print $1;}'`
# step 9 http://bioinf.uni-greifswald.de/bioinf/wiki/pmwiki.php?n=IncorporatingRNAseq.Tophat
# discard intron containing alignments from the original bam file
bamtools... |
ec8fa5fcac66b5ffa9189f264ace9b69a408797f | 1,204 |
cmsenv
Syst=("Central"
"ElecID_up" "ElecID_down"
"ElecReco_up" "ElecReco_down"
"JEC_up" "JEC_down"
"JER_up" "JER_down"
"MuonID_up" "MuonID_down"
"MuonIso_up" "MuonIso_down"
"cferr1_up" "cferr1_down"
"cferr2_up" "cferr2_down"
"hf_up" "hf_down"
"hfstats1_up" "h... |
9bd555ef13118ac72be37bc21a38560fb123132f | 688 | #!/bin/bash
inputFolder="../TEST_docs_Parsed/"
humanSummary="../Test_Summaries/"
dirlist=($(ls -1 "$inputFolder"))
algoList=(1 2 3)
for algo in "${algoList[@]}"
do
for dir in ${dirlist[*]}
do
echo "----------------------------------------"
echo "Processing "$dir
dirName="$inputFolder$dir"
rougFileName="ROUG... |
33fb17f276656d5412a3436c94eb3b68da2f3079 | 141 | #!/bin/sh
find . -type f \( -name "*.pas" -o -name "*.cpp" -o -name "*.cs" \) | while read file; do enca -L russian -x UTF-8 "$file"; done;
|
c5c69218b4b7934a0e6a3fe2d868360b259569cb | 1,297 | #!/bin/bash
apt-get update
apt install docker.io -y
apt-get install -y docker-compose
apt install default-jre -y
#have to relogin as ubuntu user
usermod -aG docker ubuntu
# restart new session with docker group
#newgrp docker
#let docker run when server is restarted
systemctl enable docker
#create random passwor... |
b9c8d2828ecee317ce435a30f16a0a11e8e88fe8 | 582 | if [ -d /usr/java/default ]; then
export JAVA_HOME=/usr/java/default
elif [ -d /usr/lib/jvm/java-6-sun ]; then
export JAVA_HOME=/usr/lib/jvm/java-6-sun
elif [ -d /usr/lib/jvm/java-7-oracle ]; then
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
else
# Test if an interactive terminal (from: http://tldp.org/L... |
fc1d2d7940bc2352cc8b619ddb795e18f9cee0ee | 550 | #!/usr/bin/env bash
VOLUME=/usr/src/app
USER=user
GROUP=user
VOLUME_UID=$(stat -c "%u" $VOLUME )
VOLUME_GID=$(stat -c "%g" $VOLUME )
if [ "$VOLUME_UID" != "0" ]
then
getent group $VOLUME_GID
[ $? -gt 0 ] && groupadd --gid $VOLUME_GID $GROUP
getent passwd $VOLUME_UID
[ $? -gt 0 ] && useradd --create-ho... |
beb21c18c45bf680a20642017e8e2a0e4e5caddc | 68 | # platform = Red Hat Enterprise Linux 5
chown :root /etc/resolv.conf |
689af0f8b14c7c5f9ea129d6d465b3d1dade70a4 | 163 | #!/bin/sh
google-chrome '-app=https://owa.trioptima.local' --profile-directory=Default
#google-chrome '-app=https://tri-sto-ex03.trioptima.local/owa/#path=/mail'
|
7275f7b37e4963248d3186cd386b48f11693132c | 984 | # Output game stats
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
filename="../stats.txt"
DATE=`date +%c`
health=100
MAX_HIT=50
update_file() {
range_double=$(( MAX_HIT*2 ))
hit_amt=$(( $((RANDOM%range_double))-MAX_HIT ))
printf "\n\nOn "$DATE", " >> $filename
if [ $hit_amt -gt 0 ]; then
pr... |
8a6ef42a9dd1885f8bcd0531d965f091ac669524 | 516 | #!/bin/bash
searchStr=("$@")
echo "${searchStr[@]}"
whmPath=`grep "wrf_hydro_model" ~/.wrfHydroScripts | cut -d '=' -f2 | tr -d ' '`
cd $whmPath/trunk/NDHMS/
egrep -s "${searchStr[@]}" */*.inc
egrep -s "${searchStr[@]}" */*.F
egrep -s "${searchStr[@]}" */*/*.F
egrep -s "${searchStr[@]}" */*/*/*.F
egrep -s "${sear... |
ca1b231a96e821afffb081421cc413cb397b786f | 173 | set -e
npm run build
cd dist
sudo git init
sudo git add -A
sudo git commit -m 'deploy'
sudo git push -f https://github.com/Paklosha/createClientForm.git master:gh-pages
cd - |
1adeda11586b0c7424ecb163450a93c31c578ba7 | 2,065 | #! /usr/bin/env bash
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
# Generates the .syso file used to add compile-time VERSIONINFO metadata to the
# Windows binary.
function os::build::generate_windows_versioninfo() {
if [[ "${SOURCE_GIT_TAG}" =~ ^[a-z-]*([0-9]+)\.([0-9]+)\.([0-9]+).* ]] ; then
local major=$... |
91dbd7eb17ef6854047f00da31ac4419d0147ee3 | 617 | # namecon
# denizen lockstep
# copy the droplet ip from DO
# To connect to the root user of the droplet
ssh -i makeshift root@stopgap
# makeshift is the name of the ssh private-key that was generated in touchbase
# stopgap is the ip of the droplet that was copied from DO
# When you login for the first time... |
2782bad308d713c00dd54eb81ff3fd100d10390d | 86 | #!/usr/bin/env bash
function main {
pkg ensure databases/postgresql96
}
main "$@"
|
4df6a1e857ca302d4f6357ba02a66a3c606dc72d | 161 | #!/bin/bash
read -p "String 1:" str1
read -p "String 2:" str2
if [ "$str1" == "$str2" ]
then
echo "both are same"
else
echo "str1 and str2 are different"
fi
|
d02cf5024d2affa9adae42e91503f8d672722e15 | 2,492 | #!/bin/bash
# May want to make these customizable
CERT_PW=""
DEVCERT_PATH=/aspnet/https
DEVCERT_NAME=dotnet-devcert
#
TMP_PATH=/var/tmp/localhost-dev-cert
if [ ! -d $TMP_PATH ]; then
mkdir $TMP_PATH
fi
if [ ! -d $DEVCERT_PATH ]; then
mkdir -p $DEVCERT_PATH
chmod -R 755 $DEVCERT_PATH
fi
KEYFILE=$DEVCERT_... |
81c5f3ead8e5862f57e33eb6e801ee1a9fd59791 | 1,367 | #!/usr/bin/env bash
# This is a test for http://tracker.ceph.com/issues/8979 and the fallout
# from triaging it. #8979 itself was random crashes on corrupted memory
# due to a buffer overflow (for tickets larger than 256 bytes), further
# inspection showed that vmalloced tickets weren't handled correctly as
# well.
#... |
46c1a3e3de3bbaf601c4765cb14a487cb63096e6 | 1,142 | #!/bin/bash
set -e
setup_dir=/var/lib/setup_tool
tool_cmd=${1}
tool_name=$(basename ${2} | sed 's|.setup||' )
tool_path=${setup_dir}/${tool_name}
tool_file=${tool_path}/${tool_name}
main() {
case ${1} in
install)
setup_tool ${2}
source ${tool_file}
install_tool
create_version_file
;;
update)
s... |
579b6a49beff8920ce7b9cad4c827053f9ad46a0 | 186 | # this is a comment it shouldn't show
TK1 = value # nor should this
TK2 = value #this either
TK3 = value#thisisnotacomment
TK4 = #or this
# or this TK4 = "value"
#TK5 = VALUE |
fd4b96332714ca451f4f0708c32dde6c89d6f33b | 254 | #!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
# check hostcert is already generated (update vs install)
if [ ! -f /etc/grid-security/testCA-hostcert.pem ] ; then
arcctl test-ca init
arcctl test-ca hostcert
fi
fi
#DEBHELPER#
|
275a51d119d336aef6df61ca4c25d9bb49852c2d | 1,214 | BROKER_TYPE=MQTT
REPLY_TIMEOUT=2000
GATEWAY_REPLIES_TOPIC_SUBSCRIPTION=emi-gateway-replies-topic-mbe-backendname
MQTT_SERVER_URL=mqtt://localhost:1883
GOOGLE_APPLICATION_CREDENTIALS=gcloud-service-key.json
MONGODB_URL=mongodb://localhost:27017,localhost:27018,localhost:27019?replicaSet=rs0
MONGODB_DB_NAME=acssChannelAf... |
a37c406f1f53173665f3edf99fb7fece157b1e8a | 51 | #!/bin/bash
eval $(egrep -v '^#' .ENV | xargs) "$@" |
2b58fe33ee7f22745d273997da6cadfed4458f51 | 312 | #echo bills log with edit info
echo "Bills file was edited on $(date) by $USER $(uname -ns) " >> /var/log/bills.log
#changes the last update: string in file
sed -i "s/lastupdate:.*/lastupdate:$(date)/" ~/Documents/bills.txt
#saves a backup of file
cp ~/Documents/bills.txt ~/Documents/backups/bills_backup.txt
|
aa7a883119c89db31d45525d20eca67226a3f809 | 847 | bcftools=/software/hgi/pkglocal/bcftools-1.2/bin/bcftools
tabix=/software/hgi/pkglocal/htslib-1.2.1/bin/tabix
chrom=$1
o=out_bt_concat/$chrom.vcf.gz
o=out_bt/$chrom
if [ $(ls ../pipeline_UG3.3/out_UnifiedGenotyper/$chrom/*.vcf.gz | wc -l) -ne $(ls ../pipeline_UG3.3/out_UnifiedGenotyper/$chrom/*.vcf.gz.tbi | wc -l) ]... |
a4b46feb6d2eee128d1b3a2585e425e03f93a974 | 657 | #!/bin/bash
KUBES=~/.kubes
case "$1" in
clear)
unset KUBECONFIG
;;
info)
echo "KUBECONFIG=${KUBECONFIG}"
;;
list)
ls ${KUBES}
;;
*)
if [[ -d ${KUBES}/$1 && -e ${KUBES}/${1}/e... |
e48dfcb059154672cc967834116b6f7ff6bddb79 | 4,824 | mkdir -p AllMTPlots
#ALL
cp SystBySyst/ALL/InstrMET_systematics.root $CMSSW_BASE/src/UserCode/llvv_fwk/data/InstrMET_systematics/.
mkdir -p AllMTPlots/ALL
cd AllMTPlots/ALL
computeLimit --m 800 --in $CMSSW_BASE/src/UserCode/llvv_fwk/test/hzz2l2v/plotter_2017_03_21_forLimits.root --syst --index 17,17,17 --bins eq0jets,... |
aaa2dc82e04e18d8e0f858cfff9264370f14587f | 72 | #!/bin/bash
echo "Stopping all containers"
docker stop `docker ps -q`
|
1f6004dd872b7d3096d4b132ff21174c5c0ccf3f | 936 | #!/bin/bash -e
usage() {
cat << EOF
Usage: sudo $0 [mirror_url]
Example: sudo $0 http://archive.ubuntu.com/ubuntu
Replaces the apt mirror to the input mirror_url
EOF
}
# ARGS
FASTEST_MIRROR_URL=$1
if [ -z "$1" ]
then
FASTEST_MIRROR_URL=`cd $(dirname $BASH_SOURCE); ./helpers/ubuntu_mirror_test.sh`
echo $FASTES... |
c5600fe77a022fb72b83648b8fc57feb2326135b | 542 | #!/bin/bash
#we need to move the package.json file in so we can npm install during the build
FILE="package.json"
if [ -f $FILE ];
then
echo "File $FILE exists."
else
echo "File $FILE does not exist, copying..."
cp ../$FILE $FILE
fi
#copy in package json if it is different
cmp -s package.json ../package.json > ... |
075ed7564918e573bfa39418d9c7ab38200cdd81 | 1,759 | #!/bin/sh
set -e
NAME='Kodi'
EXECUTABLE='/usr/lib/kodi/kodi.bin'
PID_FILE="$HOME/.kodi/kodi.pid"
CTL='/sbin/initctl'
if pidof systemd > /dev/null
then
CTL='systemctl'
else
CTL='initctl'
fi
status() {
if [ -f "$PID_FILE" ] && [ "$(ps -p $(cat "$PID_FILE") -o comm= 2>/dev/null)" = "$(basename "$EXECUTABLE"... |
684bb82dd83ca057538052675c280cb7a5733315 | 633 | #!/bin/bash -l
# scripts to build the climate indices files for verification analysis
# plot an ensmble of forecasts for a give initial start time
# include the observation index on the plot
conda activate ferret
conda env list
cd postprocess_ci
mkdir indices
mkdir tmp
year=1982
year=$1 # pass to script at comman... |
767619c027fd3010a7b1412250223b7aa613e08b | 1,035 | #!/bin/sh
#
# Project : PDBMap
# Filename : get_pdb.qsub
# Author : R. Michael Sivley
# Organization : Center for Human Genetics Research,
# : Department of Biomedical Informatics,
# : Vanderbilt University Medical Center
# Email : mike.sivley@vanderbilt.edu... |
33854e8f6ef85ee5aa1354e258188e2846645534 | 2,033 |
export JSALT_ROOT=$(readlink -f `pwd -P`/../../..)
export TOOLS_ROOT=$JSALT_ROOT/tools
export KALDI_ROOT=$TOOLS_ROOT/kaldi/kaldi
export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/sph2pipe_v2.5:$PWD:$PATH
[ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/... |
cb7e5f9808ac516753c1e7d6d46ae46ade5ec1d4 | 1,758 | #!/usr/bin/env bash
LC_ALL=C
function cd_to_app {
cd "$(dirname "$(dirname "$(readlink -fm "$0")")")"
}
function log {
printf "$1\n"
}
function fail {
>&2 printf "$1\n"
exit 1
}
function git_version_fail {
local POSTFIX="Please ensure git 2.9 or greater is installed and is executable"
fail "$1\n${POSTFIX}"
}
... |
9e42678587dbb6677c213d8e25ef2eed3464e310 | 469 | #! /bin/bash
awk '{if($1=="School1"){count++; if(count%2==0){ans+=$2} } } END {print "School1: "ans/5.0} ' school_database.txt
awk '{if($1=="School2"){count++; if(count%2==0){ans+=$2} } } END {print "School1: "ans/5.0} ' school_database.txt
awk '{if($1=="School3"){count++; if(count%2==0){ans+=$2} } } END {print "Schoo... |
961d16bab45bc0bef43925e5f0270ae9262f66bf | 445 | #!/bin/bash
# Runs a backup of all important files:
# - RSync documents folder with local NAS
# - Sync dotfiles, commit, and push to remote
DATE=$(date)
# Backup with rsync
echo "Backing up to local NAS..."
rsync -azP "/home/zohar/Documents" $USER@192.168.0.142:/home/$USER/
# Sync dotfiles
echo "Sycning dotfiles...... |
ec9648dab89f1d8706392fe924c6339b0868def9 | 205 | #!/bin/bash
. ../../make_common
#ERL_LIBS=$(pwd):$ERL_LIBS
cd code
sed -i 's,_lib("kraken_test.hrl,("kraken_test.hrl,' src/*.erl
basic_rebar
sed -i 's,("kraken_test.hrl,_lib("kraken_test.hrl,' src/*.erl
|
3bb1bc6a6911fe76a19dcbe22e299af84805268e | 2,995 | #!/bin/bash -e
sudo apt install dnsmasq -y
fake_mac_address="12:34:56:65:43:21"
usb_ip_base="10.8.0"
static_usb_ip="${usb_ip_base}.1"
usb_interface_name="usb0"
boot_mount_point="/boot"
rootfs_mount_point="/"
echo "-- Enabling SSH"
touch "${boot_mount_point}/ssh"
echo "-- Configuring ethernet gadget"
if ! grep -q "... |
e0577521af93f991cdb7c52d2605ec25dd9ddbde | 4,300 | #!/bin/bash
set -e
set -o pipefail
{
BASE_PATH=$HOME/.gvm
GOPATH=$HOME/.go
GOBIN=$GOPATH/bin
GVMRC=$HOME/.gvmrc
VERSION_REPO=https://github.com/golang/dl.git
BASE_DOWNLOAD_URL=https://dl.google.com/go/
TARPATH=$BASE_PATH/tar
GOHOSTOS=linux
VERSION=
[[ ! -d $BASE_PATH ]] && mkd... |
dc8f737212b913fcf22ed5665b9189f289582e44 | 77 | PORT=
SLACK_WEBHOOK=
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379 |
f8ba1437f01a9cb1834c0e3291fb4ce6d4e52ba3 | 139 | mvn clean install
cp ear/target/entregamercadorias-ear.ear /Users/clovisleoncio/Desenvolvimento/wildfly-8.1.0.Final/standalone/deployments
|
1b8d3299ce2a2263261e063c1c91f02f1f831f1a | 135 | export COUCHDB_USERNAME=admin
export COUCHDB_PASSWORD=password
export COUCHDB_SERVICE_HOST=172.18.0.2
export COUCHDB_SERVICE_PORT=5984
|
04602277c7936f143dadf9b808d00baad5e146ab | 1,052 | #!/bin/sh
export LD_LIBRARY_PATH=/home/staff/lucas/mc723/hw_tools/systemc-2.3.1/lib-linux64/:$LD_LIBRARY_PATH
export PATH=$PATH:/home/staff/lucas/mc723/hw_tools/ArchC-2.2.0/installed/bin:/home/staff/lucas/mc723/hw_tools/mips-newlib-elf/bin/
echo
echo "gcc -Wall -pedantic /home/ec2014/ra033324/y4k/classes/mc723a/git_2... |
7028d914976a55a09b235a1f580a9956d8867d73 | 495 | #! /bin/bash
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]; then
echo "MDN Generator: [ US{1 XXX XXX XXXX} | UK{44 XXX XXXX XXXX} ] [size]"
echo "ERROR : Invalid Argument : Missing arguments!"
exit
fi
TIMESTAMP=`date "+%Y%m%d_%H%M%S"`
SIZE=$5
MDN="$1$2$3$4"
function main {
if [ -z "$SIZE" ]; the... |
0599690990fe991fc85eeecd30c1e43c21dde3ae | 2,101 | #!/bin/bash
# PROGRAMMER: Frederick Wachter
# DATE CREATED: 2016-05-20
# LAST MODIFIED: 2016-05-26
# PURPOSE: Create workspace variables for YuMi during initial setup
# Get the directory location of the YuMi folder
if [ -z "$1" ]; then
echo "Please input the path of where the yumi directory is located"
exit
fi
ech... |
075670f47cba6e31f852ea23bacd8ab70305e6ed | 855 | #!/bin/sh
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# manifest_content_expand.sh input-file output-file
#
# Split manifest lines, replacing the source path with the contents of the file
# at source pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.