blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
63a7e9de5459b6a6c5c02671d0528175b0d3ad18 | 1,261 | ######## important to set this before submission, maybe link here via a bash script from project folder.
project="WHII"
########
shopt -s expand_aliases
source ~/.bashrc
export PATH=${PATH}:/share/apps/R-3.0.2/bin
alias R=/share/apps/R-3.0.2/bin/R
output_directory="/cluster/project8/jonathan/testscripts/"$project"/summ... |
7f74a4619b652e50f21125151124dcacf5722b90 | 1,019 | #!/usr/bin/env bash
BREW_CMD=$(command -v brew)
if [ -n "$BREW_CMD" ]; then
CHRUBY_PATH="$($BREW_CMD --prefix)/share/chruby/chruby.sh"
else
CHRUBY_PATH=/usr/local/share/chruby/chruby.sh
fi
[[ ! -f "$CHRUBY_PATH" ]] && {
echo "You need to install chruby. Please follow the README to install: https://github.com/p... |
dc0306194d58b33682f3a0c84423c6563c0dac5a | 78 | #!/bin/bash
MODILE=`pwd`/llprofpm.so
php -e -d extension=$MODILE test.php
|
3e7e51e6791c70a8514907c368502257493821cf | 877 | #!/bin/bash
# Run within BIDS code/ directory:
# sbatch slurm_mriqc.sh
# Set current working directory
#$ -wd '/data/jux/cnds/amennen/rtAttenPenn/fmridata/Nifti/derivatives/logs/'
# #$ -cwd
#$ -t 12
#$ -j y
#$ -m ea
#$ -M anne.mennen@pennmedicine.upenn.edu
#$ -N fmriprep
#$ -w e
#$ -binding linear:4
#$ -pe unihost 4
... |
0ee5ab2d867c034328d16754b52e941687d2602e | 229 | DATABASE_CLIENT=mongo
DATABASE_NAME=strapi
DATABASE_HOST=mongodb
DATABASE_PORT=27017
DATABASE_USERNAME=strapi
DATABASE_PASSWORD=password
MONGO_INITDB_ROOT_USERNAME=strapi
MONGO_INITDB_ROOT_PASSWORD=password
HOST=0.0.0.0
PORT=1337 |
ff1a4016852509aee5ecec9e1e99b6a7b99b2b4c | 187 | #!/usr/bin/env bash
echo -e "\n ----- Tests ready to run when the code changes -----\n"
watchmedo shell-command --patterns="*.py" --recursive --command="scripts/test_suite.sh" --drop .
|
85352e794b2e38e5accc787c267ea02e52afee2b | 1,324 | #!/bin/bash
#
# Place this in a file named: Turnin.sh
#
# To run type: ./Turnin.sh
#
# If it says permission denied then you will need to change
# the permissions with the command: chmod 777 Turnin.sh
#
set -eu;
read -p "Enter Firstname: " FNAME;
read -p "Enter Lastname: " LNAME;
read -p "Enter Assignment Number: " ... |
891d736ffe34bbf6cc1baad819f9f9a60ec3d5ca | 121 | #!/bin/bash
for((Ns=2;Ns<=16;Ns++))
do
make clean
sed "s/Ns=2/Ns=${Ns}/g" params_temp.f90 > params.f90
make
./eigen
done |
950e9e0da517b5bc6e9aef61c5102240c97dedd2 | 4,436 | #!/bin/bash
x="teste"
menu ()
{
while true $x != "teste"
do
clear
echo "================================================"
echo "CRIAÇÃO DE CENÁRIOS OPENSTACK"
echo "Autora: Roseli da Rocha Barbosa"
echo ""
echo "1)Criação de redes"
echo""
echo "2)Criação de roteadores"
echo ""
echo "3)Adicionar interface ao roteador"
e... |
02a564cf27e6d908fd5e11e219fd005c8550c58f | 100 | #!/usr/bin/env bash
echo "I would issue cleanup for target environment here: ${targetEnvironment}"
|
8d43032ad99c34befc813ae8a62226a60144c528 | 245 | #!/bin/bash
docker stop cr && docker rm cr
docker run --security-opt=seccomp:unconfined --name cr -d busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
docker checkpoint create --leave-running=true cr checkpoint0
|
47fe2c0274057a80a96b97d3ed0547f366edb8ad | 2,450 | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=nose
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=1.3.3
pkgrel=1
pkgdesc="A discovery-based unittest extension (mingw-w64)"
arch=('any')
license=('LGPL-2.1')
url="http://readthedocs.org/docs/nos... |
5e649312cc7b4cd3b625715fa94607d4c9b02bc3 | 42 | #!/bin/bash
echo $1
echo -n $1 > simu.cfg
|
9fc521871e7697981754a2a5626e07ff74283259 | 335 | #!/bin/bash
VERSION="latest"
if [ $1 != "" ]; then
VERSION=$1
fi
echo "Building efsctl test docker image ..."
echo "VERSION is $VERSION"
# Build the app using version number specified as the first script parameter
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o efsctl main.go
docker build -t dsalin/efs... |
94b819685ad20c4e5762be44dfbd62a0e9421286 | 3,470 | #!/usr/bin/env bash
set -e
: ${AZURE_ENVIRONMENT:?}
: ${AZURE_TENANT_ID:?}
: ${AZURE_SUBSCRIPTION_ID:?}
: ${AZURE_CLIENT_ID:?}
: ${AZURE_CLIENT_SECRET:?}
: ${AZURE_CERTIFICATE:?}
: ${SSH_PUBLIC_KEY:?}
: ${METADATA_FILE:=environment/metadata}
metadata=$(cat ${METADATA_FILE})
export BOSH_AZURE_ENVIRONMENT=${AZURE_EN... |
430294c60987885f22a570aeebce63bb02220051 | 169 | #!/bin/sh
echo " "
echo "This command has been deprecated in favor of makekit."
echo "Please see the top level NEWS and README files for"
echo "more details."
echo " "
|
c384685ee2f1516192b52a6dbbd49721f4c9798d | 856 | # A function to echo in blue color
function blue() {
es=`tput setaf 4`
ee=`tput sgr0`
echo "${es}$1${ee}"
}
# Sweep over params
# This is separate from run-all.sh, which does not sweep
# Empty existing sweep output
rm -f sweep/temp_out
# 6 machines on NetApp, so increment NUM_WORKERS by 6
for VM_PER_MACHINE in 1 ... |
3d990b35bd94fee783e28b17f9aa98035959e210 | 329 | #!/bin/bash
[[ -z "$_isZSH" ]] && rm -rf ~/.oh-my-zsh/;sh $HOME/TERMUX/oh-zsh.sh
git clone \
https://github.com/zsh-users/zsh-autosuggestions.git \
$HOME/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
$HOME/.oh-my-zsh/plugins/zsh-syntax-highl... |
a234dad5ceff28f7ebc949b4fcb4f02e2ee410da | 492 | #!/bin/sh
\rm -f report.txt
javac -cp lib/textsummary.jar:lib/junit-4.12.jar:lib/hamcrest-core-1.3.jar -d testclasses testsrc/edu/gatech/seclass/textsummary/*
cd testclasses
jar -cf tests.jar edu/gatech/seclass/textsummary/MyMainTest.class
cd ..
cp testclasses/tests.jar lib/tests.jar
rm testclasses/tests.jar
java -cp l... |
45a2717abac48c2d0ac2acc22852336751f1192e | 272 | #!/bin/bash
export SERVER_KEY_FILE=./server.jks
export SERVER_KEY_PASS=test123
export SERVER_STORE_PASS=test123
export TRUST_FILE=trust.jks
export TRUST_STORE_PASS=test123
#export MONGODB_URI=mongodb://localhost:27017
java -jar ./out/artifacts/fsmtp_v3_jar/fsmtp-v3.jar
|
ed3d365df7e4c4f39236f969c73d0f80248e6a10 | 320 | #!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until mysql -hmysql -p"3306" -u"${database__connection__user}" -p"${database__connection__password}" -D"${database__connection__database}" ; do
>&2 echo "MySQL is unavailable - sleeping"
sleep 1
done
>&2 echo "MySQL is up - executing command"
exec "$@"
# Fake Programmer
|
7a676c0484c84b869fd1cd8aa8f9b61400e32fd1 | 1,314 | #!/bin/bash
# uso: ./virtual_machines_up NOMBRE_CARPETA_QUE_CONTIENE_LA_MAQUINA VIRTUAL
# el script levanta la máquina virtual mediante el comando vagrant up
#VIRTUAL_MACHINES_RELATIVE_HOMEPATH debe ser una carpeta dentro de $HOME donde se encuentran por carpetas distribuidas las maquinas virtuales, por ejemplo:
# ./v... |
54a12d9a07c81c9dd219fb450dd1241b58738eb4 | 371 | #1508671872
cd jre1.8.0_151
#1508671894
cd bin
#1508671899
dir
#1508671942
java /home/themrel/public_ftp/Nukkit/nukkit.jar
#1508671953
java*
#1508672012
java
#1508672335
java.sh
#1508672366
./java
#1508672430
./java -jar /home/themrel/public_ftp/Nukkit/nukkit.jar
#1508673195
cd jre1.8.0_151
#1508673200
cd bin
#15086732... |
5b7b1f5f7a692945022dc0d9651ad42c6ba7658f | 1,171 | # This updates Go to the latest version
set -e
# copied from: https://gist.github.com/davivcgarcia/2fea719c67f1c6282bc53df46f7add25#file-update-golang-sh Thanks!
# Checks if is running as root, and sudo if not
[ `whoami` = root ] || { sudo "$0" "$@"; exit $?; }
# Determines current local version
if [[ -f /usr/local/... |
f9c2c6c72ced3cc7b7f5c96f091ef6e62de55d45 | 209 | #!/bin/bash
#
# git-irb: interactive rebase going back N commits
# usage: git irb <N> [OTHER-ARGS] == git rebase -i HEAD~<N> [OTHER-ARGS]
set -e
N_COMMITS="$1"
shift
git rebase -i HEAD~"${N_COMMITS}" "$@"
|
40319af9c6bec78dc463633c37a093a8c3d4e8e1 | 231 | #!/bin/sh
ELISP="
(progn
(add-hook 'comint-exec-hook
(lambda () (set-process-query-on-exit-flag (get-buffer-process (current-buffer)) nil)))
(shell)
(delete-other-windows)
(menu-bar-mode 0))
"
exec emacs -nw --eval "$ELISP"
|
713a119c002429fc04583e4a3c8c207d5ad8d41c | 184 | rm testbase64.ign
rm testremote.ign
./igntool a testbase64.ign igntool
./igntool ar testremote.ign https://dl.k8s.io/v1.13.7/kubernetes-node-windows-amd64.tar.gz /k/kube1.13.7.tar.gz
|
275866fe9a81c5448af7e65509556eb02bb6821f | 4,600 | #
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
#
########################################
#... |
f4b06a0abab967db1299e43451397d7aa88ae1c8 | 1,071 | #
# .profile
#
# Author: Cameron Christensen
# Created: August 9, 2007
#
# .profile for terminal OSX sessions.
#
#set -x
#echo "************* .profile *************"
# EDITOR (Emacs takes too long to startup to be used as EDITOR)
export EDITOR=vim
if [ `hostname | cut -f1 -d "."` = gunship ]; then
#echo ""
xinp... |
d201be09db9205b33c6d8c2144ce3a45b9274cb2 | 927 | pkgname=julia-git-arrow-git
pkgver=2.6.2.0.0.9.g95efe95
epoch=1
pkgrel=2
pkgdesc="Arrow.jl"
url="https://github.com/JuliaData/Arrow.jl"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git)
provides=(julia-git-arrow "julia-git-arrowtypes-git=${pkgver}-${pkgrel}" julia-git-arrowtypes)
sour... |
8dcd1ac64989257ce6568695b24e58ec619756e9 | 445 | #!/bin/bash
if [ `id -u` -ne "0" ] ;then
echo "Sorry,Not Permit User!" >&2
exit 1
fi
USER=labunix
DEST=/home/${USER}/mydata
umount $DEST
cryptsetup luksClose luks
# header backup
LUKS_HEADER_BACKUP=luks.header
test -f ${DEST}/${LUKS_HEADER_BACKUP} && rm -f ${DEST}/${LUKS_HEADER_BACKUP}
test -f /home/luks.img ... |
57434c3d0a86a9c766d7bc9f240339ebfec63b36 | 113 | #! /bin/bash
print_title "FFMPEG: Uninstall"
sudo apt-get remove --purge ffmpeg -y
print_end "ffmpeg removed.."
|
0b4039f81057d5bf997c6cdba8a045837dacdcaa | 55 | PORT=4000
DB_CONNECTION=mongodb://localhost/Cars-rental |
6a6d3e5723ab8779204f5911d9a4e147deb6e305 | 367 | #!/bin/bash
#
# Entrypoint for yarrp containers
#
# For documentation see readme file.
#
# 2018, Chris Misa
#
USAGE="Usage: [docker commands] yarrp-debian <yarrp arguments> | batch <script>"
if [ "$1" = "batch" ]
then
if [ -z "$2" ]
then
echo $USAGE
exit 1
else
$2
echo "Script returned $?"
fi... |
5127cd4be07759e0d9b8b466350f42a639c1bb5a | 114 | cd small_index
rm -rf *.pid *.log
cd -
cd big_index
rm -rf *.pid *.log
cd -
cd master
rm -rf *.pid *.log
cd -
|
7988b50f6109270ce3e62a26bae8bd2e3881526c | 525 | #!/bin/bash
IDCONTAINER=$1
SAVEDIRECTORY=$2
CONTAINEREXIST=$(docker ps -q | grep $IDCONTAINER)
if [ "$CONTAINEREXIST" == "" ]; then
echo El contenedor no existe.
exit
fi
if [ ! -d "$SAVEDIRECTORY" ]; then
echo El directorio debe existir.
exit
fi
if [ ! -r "$SAVEDIRECTORY" ] || [ ! -w "$SAVEDIRECTORY" ]; then
... |
fb7349ab25f4158466a8b3228b434f8fe75c25bf | 48 | #!/bin/bash -x
ls -ltr
#python ./xi_iot_sdk.py
|
397f43de7405ab4aa2ccb3d6d93eeb92920c65b3 | 329 | #!/bin/zsh
secret=tls-certificate-secret
echo $secret
sed "s/auxsecret/$secret/g" replicated_secret.yaml > replicated_secret-$secret.yaml
NS=$(kubectl get ns | grep -v kube-system | awk '{ print $1 }' | tail -n +2)
#Get NS - kube-system
for i in $NS; do
echo $i
kubectl apply -f replicated_secret-$secret.yaml -n... |
c15c273fe461f9867f00381161c333a6baf4d63c | 236 | #!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
systemctl enable autohotspot
sed -i '/#nohook wpa_supplicant/c\nohook wpa_supplicant' /etc/dhcpcd.conf
echo "AutoHotspot has been enabled"
|
d809c54cd6c9a0cb648d722be56dcdcb947fda36 | 2,379 | #!/bin/bash
sleep 3
echo "...Start the competition"
rosservice call /ariac/start_competition
sleep 10
echo "...Spawn the green pump in the briefcase at as2"
rosrun gazebo_ros spawn_model -sdf -x 0.032085 -y -0.152835 -z 0.28 -R 0 -P 0 -Y 0 -file `rospack find nist_gear`/models/assembly_pump_green_ariac/model.sdf -refe... |
b4aee13a06f58f61fe16032dd78928b31d8692f2 | 351 | #!/bin/sh
# Similar to the "pidof" utility I've got used to from Debian, but
# only returns process IDs I can strace or kill. I hope. Also, this
# one is implemented as a wrapper on pgrep, which is available on
# more systems than the Debian-specific pidof.
uid=`id -u`
if test "$uid" = 0; then
exec pgrep "$@"
else
... |
088a3fb6b9ad8e7566603b4b95a5c33cd27a3056 | 87 | export NB=/home/neoe/oss/neoebuild/
java -cp $NB/neoebuild.jar neoe.build.BuildMain $*
|
bd77c6e1e727e94b0d91fd56134355a113b55cce | 817 | #!/bin/sh
# (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an in... |
6a873e0c8c2e39eb7bd528ceadf89cbe424c9e43 | 2,579 | #! /bin/sh
### BEGIN INIT INFO
# Provides: pg_wal_receiver
# Required-Start: networking
# Required-Stop: networking
# Default-Start:
# Default-Stop:
# Short-Description: Receive PostgreSQL transaction logs
# Description: Receive PostgreSQL transaction logs
# This allo... |
0b564da40295fbe5eba79854358a724f489ea421 | 24 | #!/bin/sh
# IP连接数
|
39a458526e7e4c146479e1b98dd541c4542d8c12 | 93 | #!/bin/sh
javac -d out/production/wolf_inns -cp lib/mariadb-java-client-2.2.3.jar src/*.java
|
7cf29c0183f5711ddfa860034d054c704a85674b | 375 | #!/usr/bin/env bash
cd ..
#rsync -avz --exclude=".git" ./jacala/bert-tensorflow/glue_data companyai8way@10.64.50.108:/home/companyai8way/ryan/bert
#rsync -avz --exclude=".*" --exclude=".git" ./ irteam@10.108.15.73::R/home1/irteam/ryan/dssm_tf
rsync -avzP --exclude='data_out' --exclude=".git" --exclude="bert_dssm" ... |
dc1a172b8afd0690f62bc6f5d518f4fd3d2fe9fc | 281 | #!/bin/sh
mkdir -p /entrypoint/start-scripts
for entrypoint in /entrypoint/start-scripts/start-*; do
chmod +x "$entrypoint"
"$entrypoint"
done
crond -c /config/cron/crontabs -L /logs/crond/crond.log -b -l 8 && supervisord --nodaemon --configuration /etc/supervisord.conf |
648e6f0a026a9f11de1555fbcd524f51c58af354 | 254 | #!/usr/bin/env sh
set -eu
ROFI_VERSION=$(rofi -version | sed 's/[^0-9]*\([0-9]*\.[0-9]*\).*/\1/g')
if [ "$(echo "$ROFI_VERSION >= 1.4" | bc)" = 1 ]; then
exec rofi "$@" -matching fuzzy -theme ~/.local/share/themes/Uhita.rasi
else
exec rofi "$@"
fi
|
905c34d695c4f8da2a6ebf2da62daa489a66b480 | 155 | rm -rf /var/jenkins
mkdir -p /var/jenkins
chmod 777 /var/jenkins
docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins:/var/jenkins_home jenkins/jenkins
|
c8afc8cd54a8fa58e1d775195258f9e5d1b1fbeb | 89 | #!/usr/bin/env bash
export FLASK_APP=bin/uwsgi.py
python -m flask run # --host=0.0.0.0
|
6540c530c626a98412a34ac72d21649ccd9fdf55 | 3,501 | #!/bin/bash
#===============================================================================
#
# Copyright © 2008-2018 xxx
#
# build shell script file.
#
# Author:
# E-mail:
# Date :
#
#-------------------------------------------------------------------------------
#
# EDIT HISTORY ... |
9c6b41dd3b492bce38174e7ad041ba40585935a5 | 1,259 | #!/bin/bash
# Create GDI+\TTF images for .NetCore
images=(runtime:2.1 runtime:2.2 runtime:3.0 aspnet:2.1 aspnet:2.2 aspnet:3.0 aspnet:3.1)
official=mcr.microsoft.com/dotnet/core/
yx=registry.local.com/dotnetcore/
proxy=http://192.168.1.123:11080/
rm -r gdi
mkdir gdi
cp sources.list ./gdi
for img in ${images[*]}
do
... |
9d74875da1499c9c60451e527b33df07ac2eecf8 | 115 | # Install devmem2
wget http://free-electrons.com/pub/mirror/devmem2.c
gcc -o devmem2 devmem2.c
mv devmem2 /usr/bin
|
115c8f7b3e97a78050c866f3642a094881b5d2e7 | 399 | #!/bin/sh
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
if [ $? -ne 0 ]; then
exit 1
fi
cargo install exa
if [ $? -ne 0 ]; then
exit 1
fi
cargo install fd-find
if [ $? -ne 0 ]; then
exit 1
fi
cargo install ripgrep
if [ $? -ne 0 ]; then
exit 1
fi
cargo install bat
if [ $? -ne 0 ]; t... |
3413a3b2fd40dad073251fc056a2872f707ce2cc | 4,788 | #!/bin/bash
#FUNCIONS
function creaDaemonEntorn()
{
systemctl stop dimoniRoot
systemctl disable dimoniRoot
rm /lib/systemd/system/dimoniRoot.service
systemctl daemon-reloadg
systemctl reset-failed
cat <<EOT >> /lib/systemd/system/dimoniRoot.service
[Unit]
Description=daemon root serv... |
d15d065dc29e0f4aeedbcaaa5b80c0e4d3092c74 | 66 | find docking/ligand/* | python compound_torsions_report.py | sort
|
1f6ef7fcaf969f68ed1823bac1a0e59ec1dd87d0 | 103 | #!/bin/bash
pagedjs-cli _site/cv/index.html -o pdfs/shun-zhang-cv.pdf
git add pdfs/shun-zhang-cv.pdf
|
d512f21496c09132f50c68de2ba1ccfcc9b64c57 | 1,325 | #!/bin/bash
if [ -z "$VERSION" ]; then
VERSION="2.2.3"
fi
JOBROOT=`pwd`
WD="$JOBROOT/VLC/$VERSION"
DUMPBIN_BIN="dumpbin"
LIB_BIN="lib"
rm -rf $WD
rm -f VLC-Blobs.zip
mkdir -p $WD
function create_vlc_blobs_for_arch () {
ARCH=$1
SRCZIP=$2
cd $WD
unzip $JOBROOT/$SRCZIP
mkdir $ARCH
... |
87c98856f757419ecef2e838c128a6b275326a89 | 1,325 | #!/bin/bash
SCRIPT="$0"
echo "script:${SCRIPT}"
SCRIPT_FOLDER=$(dirname $(readlink -f "$SCRIPT"))
echo "path:${SCRIPT_FOLDER}"
echo "start deploy crotab:"
if [ ! -e /var/spool/cron/ ];then
mkdir -p /var/spool/cron/
fi
#创建定时文件
touch /var/spool/cron/root
#添加执行权限
chown root "${SCRIPT_FOLDER}/cron.sh"
chgrp root "${SCRIPT... |
41170759590c8dd4e4b3d60d6a8754051aa8dce3 | 587 | #!/bin/bash
source /home/mgrossman/.bash_profile
procScriptDir=/data/grossman/pipedream2018/bin/scripts
dicomDir=/data/jet/grosspeople/Volumetric/SIEMENS/Subjects
niiDir=/data/jet/grosspeople/Volumetric/SIEMENS/pipedream2014/subjectsNii
subjectsAndTPs=`${procScriptDir}/auto/findDataToProcess.sh $dicomDir $niiDir`
... |
735c73306976dcbca5feb0d3faa01bfe8d125765 | 71 | #!/bin/bash
start cmd.exe /K "npm_update.b" && sh dockerComposeUp.sh $2 |
ef26e886ceedb74fd978c6262630a256734a0669 | 27 | ./"Project Euler Solutions" |
0c262b1ca285a5c09b19b550ade53295a98bf2fa | 1,238 | #! /bin/bash
INVOCATION_ORDER+=('bash_profile')
export INVOCATION_ORDER
# This prints the directory in the tab window
if [ $ITERM_SESSION_ID ]; then
export PROMPT_COMMAND='echo -e "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
fi
# This function checks through an array of vars. This lets us work out an ordering fo... |
46cf27a0e9519d53689956fba047c58387270851 | 160 | #!/usr/bin/env bash
#passing arguments
echo "Number of arguments passed: $#"
echo "Script name: $0"
echo "$1 has been copied to $2"
cp -R $1 $2
echo "$@"
ls
|
e4da8e6aa1191dd270fba9689b67f22de7de8dfa | 138 | #!/bin/bash
if [ ! -e $1 ]
then
echo "No such file."
exit
fi
[ -f $1 ] && echo "The file exists."
(echo; cat $1; exit 1)
exit 0
|
49920053de57fd0f262207223fc98ad364351895 | 244 | #!/bin/bash -e
#set -o xtrace
find ${1-.} -maxdepth 3 -type d -name .git \
-exec echo {} \; \
-exec echo '================' \; \
-execdir git remote update \; \
-execdir git log --oneline --graph ..@{upstream} \; \
-exec echo '' \;
|
131318d3aefa0ba97581857bc671d868824c91b3 | 265 | #!/bin/bash --login
module load BWA
read_group=$1
ref=$2
read1=$3
output=$4
cores=$5
echo "Command: bwa mem -t $cores -M -R $read_group -p $ref $read1 > $output"
date
echo OAR_JOBID = $OAR_JOBID
time bwa mem -t $cores -M -R $read_group $ref $read1 > $output
date
|
90ec90d12ce969881b2a5668cad0f797fea20c47 | 769 | {
"name": "Limited_resources",
"min total time steps": 80, "max total time steps": 95,
"min total servers": 2, "max total servers": 4,
"server settings": [
{
"name": "Limit",
"min storage capacity": 150, "max storage capacity": 220,
"min computational capacity": 12, "max computational ca... |
cdf29356a82d6883ba65bb850883e2a02fe95c0c | 1,180 | #!/bin/sh
#default values
HOST=""
PORT=""
USER=""
PASS=""
SFTP="1"
LOGDIR=""
while [ $# -gt 0 ]
do
case $1 in
-A)
shift
HOST="${1}"
shift
;;
-P)
shift
PORT="${1}"
shift
;;
-U)
shift
USER="${1}"
shift
;;
-W)
shift
PASS="${1}"
shift
;;
-S)
shift
SFTP="${1}"
... |
8bbb0f37c64fd440710cbf6528ed4147e51c3bc9 | 170 | #! /bin/bash
GCLOUD=$HOME/google-cloud-sdk/bin/gcloud
echo "Stopping Minecraft Server"
$GCLOUD compute instances delete --zone us-west1-b minecraft --quiet
echo "Done"
|
bf8a45fd3ad5fdde0a6a46d962e348ed36d71b36 | 1,818 | sh /bigdata/cjinfeng/00.RD/RILs/Transpostion/bin/RelocaTEi_GN107/shellscripts/step_2/0.bam2fa.sh
sh /bigdata/cjinfeng/00.RD/RILs/Transpostion/bin/RelocaTEi_GN107/shellscripts/step_3/0.te_repeat.blat.sh
sh /bigdata/cjinfeng/00.RD/RILs/Transpostion/bin/RelocaTEi_GN107/shellscripts/step_3/1.te_repeat.blat.sh
sh /bigdata/c... |
b32104b591bf08745e15a41fe416fdaa54ed9bad | 1,681 | #!/bin/bash
# ---------------------------------------------------------------------------
# this - test
# Copyright 2018, <root@PC>
# All rights reserved.
# Usage: this [-h|--help] [-h|--help] [-q|--quit]
# Revision history:
# 2018-03-20 Created by script_gen ver. 3.3
# ---------------------------------------------... |
29d56e0eaaf59e4f95899627f16db21f84819b48 | 7,852 | python svFitSubmitter.py -sd /hdfs/store/user/caillol/smhet2016_23may_merged/Out_DataBv1 -es=0 -ues=0 -res=0 -jes=0 --jobName smhet2016_svfitted_23may
python svFitSubmitter.py -sd /hdfs/store/user/caillol/smhet2016_23may_merged/Out_DataBv2 -es=0 -ues=0 -res=0 -jes=0 --jobName smhet2016_svfitted_23may
python svFitSubmit... |
be984778d19c4d4f2cef0b67d8693fed315062ca | 548 | #!/bin/sh
set -ex
cd "$(basename "$(dirname "$0")")"
CONTAINER_TAG='binaries-pack'
NEOVIM_VERSION='7685fc9ecd2a1a0b6c62fe56a14de8441d9f3a58'
RIPGREP_VERSION='13.0.0'
FD_VERSION='v8.2.1'
YADM_VERSION='a4d39c75045bfca9277284ff0513eb022237a88e'
docker build -t "$CONTAINER_TAG" \
--build-arg "NEOVIM_VERSION=${NEOVIM_V... |
69bde021592135929a15c58b098404cec15de30e | 150 | #!/usr/bin/env bash
sequelize-auto -o './sql_models' -d es4 -h es4.clmk2ccz7ewv.us-west-2.rds.amazonaws.com -u es4admin -p 3306 -x es4admin -e mysql;
|
1469ac834e8cadf1a4feae503ed196a29a94a59e | 20 | #!/bin/bash
pwd /n
|
b44c81b7182dfe058e609d5b0a6b893528a7820a | 831 | docker build -t tonyth00/multi-client:latest -t tonyth00/multi-client:$SHA -f ./client/Dockerfile ./client
docker build -t tonyth00/multi-server:latest -t tonyth00/multi-server:$SHA -f ./server/Dockerfile ./server
docker build -t tonyth00/multi-worker:latest -t tonyth00/multi-worker:$SHA -f ./worker/Dockerfile ./worker... |
b0912b36b3370964e3d1bc3cd458038509d12f39 | 448 | #!/usr/bin/env bash
set -e
TARGET_USER='nginx'
# Change uid and gid of user $TARGET_USER to match current dir's owner
if [ "$MAP_WWW_UID" != "no" ]; then
if [ ! -d "$MAP_WWW_UID" ]; then
MAP_WWW_UID=$PWD
fi
uid=$(stat -c '%u' "$MAP_WWW_UID")
gid=$(stat -c '%g' "$MAP_WWW_UID")
usermod -u $... |
d21c69b04965f16f889e01828c06446b2ef0361e | 14,090 | #!/bin/bash
######################################################################
# 2018-11-13-raspbian-stretch-lite
##################################################################
# if a GPS module is already installed and is giving GPS feed on the GPIO-serial port,
# it can generate error messages to the conso... |
3ff3e5d4694c61bd5477a25b3edf6edc6eada955 | 3,158 | # Wait for Wattlog
microsleep 10000000
# Load App
{{{timing}}}
am start -n com.nci.lian.client/com.nci.lian.client.ui.SplashActivity
microsleep 10000000
{{{timing}}}
###### swipe ##########
tapnswipe /dev/input/event1 swipe 20 1100 20 100
microsleep 2000000
###### tap ##########
tapnswipe /dev/input/event1 tap 105 663
... |
ae99b48532045ebc08f09bc82853e548ba58b41f | 132 | container_name="$(docker ps -a -f "name=react-start-node" --format "{{.Names}}" | head -1)"
docker exec -it "$container_name" bash
|
4853eafc5923469a7cf5393934ea8f20dd504d3d | 355 | #!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: $0 file-to-view"
exit 1
fi
if [ ! -f "$1" ]; then
echo "File '$1' doesn't exist!"
exit 1
fi
case ${1##*.} in
key) openssl rsa -noout -text -in $1 ;;
crt) openssl x509 -noout -text -in $1 ;;
csr) openssl req -noout -text -in $1 ;;
*)
echo 'Unknown ... |
841dbe1fedeb02bd356cfba2f90a8516a1c95c51 | 1,710 | #!/bin/bash
###################
#instalando Docker-CE
if ! grep -q "docker" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
echo "Adicionar chave GPG oficial do Docker"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#Use o seguinte comando para configurar o repositório estáve... |
86ccb818e6017902f17fb75328e89c8de30ca70c | 560 | # !/usr/bin/env bash
# build the docs
cd doc
make clean
make html
cd ..
# commit and push
git add -A
git commit -m "building and pushing docs"
git push origin master
# switch branches and pull the data we want
git checkout gh-pages
rm -rf .
touch .nojekyll
git checkout master doc/build/html
cp -r ./doc/build/html/* ... |
693d4f5646719a8b86791d5bafc5ff68e9e0c953 | 1,056 | #!/usr/bin/env bash
>&2 echo "Exception in thread "main" java.lang.UnsupportedClassVersionError: net/serenitybdd/cli/Serenity : Unsupported major.minor version 51.0"
>&2 echo " at java.lang.ClassLoader.defineClass1(Native Method)"
>&2 echo " at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)"
>&2 echo " at... |
a417208666120b51560276dadcbd311cf3d817ba | 3,589 | #!/bin/sh
NETWORK=${UNS_NET:-livenet} # default livenet
TOKEN="uns"
echo "network : $NETWORK"
echo "token : $TOKEN"
if [ "$NETWORK" == "livenet" ]; then
unlink /opt/uns/packages/core/bin/config/livenet/sandbox-plugins.js
cp /opt/uns/packages/core/bin/config/sandbox/plugins.js /opt/uns/packages/core/bin/config/li... |
aa048a7c01a9f81107ce3a32479fac192fb0886a | 32 | PYTHON_DEPS="jupyter-packaging"
|
a3f0bc2a3cf9dcaf07ff2d6c59aa60400115a1c9 | 82 | export study_id=2; export subject_id=154; bash analysis_for_one_subject_AFNI.sh;
|
ca39f21eb414b5ed695d7faa39d0702369341b78 | 1,635 | pkgname=freeradius-wpe
pkgver=2.0.2
pkgrel=3
pkgdesc="The premier open source RADIUS server - Wireless Pwnage Edition (WPE), demonstrating RADIUS impersonation vulnerabilities"
groups=('blackarch' 'blackarch-wireless')
arch=('i686' 'x86_64')
url='http://www.freeradius.org/'
license=("GPL")
provides=('freeradius')
depen... |
928ddcbba22787017025a1ec210af7b829d676b5 | 48 | GITHUB_AUTH=
MONGO_URI=
BASIC_USER=
BASIC_PASS=
|
e5495c3c17d61a82503ae01527c8022fa9100ca1 | 23,045 | #!/bin/bash
#40000/17= 249 12339252 0 webm none opus ' https' https://r4---sn-25glene6.googlevideo.com/videoplayback?expire=1565854214&ei=prVUXaVq14uTBu28p-gP&ip=148.163.76.139&id=o-AM91MlkMeUL6Om1jRs9AhcTdrxsjbBsUaN93JxHHaQSp&itag=249&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-... |
cb1322878a0ba8ade6bf09678485f7c3c8ba000d | 321 | #!/usr/bin/env bash
#stop and remove all containers
docker stop tut-memcache
docker rm tut-memcache
docker stop tut-app
docker rm tut-app
#remove the images
docker rmi memcached:1.5.10-alpine
docker rmi tut-app-image
docker images -qf dangling=true | xargs docker rmi
#remove the network
docker network rm tut-networ... |
c9230d5c7c7c0ab0d2b33514ac97bdea2b01cf59 | 368 | #!/bin/bash
# sudo add-apt-repository ppa:morgwai/tpbat
# sudo apt-get update && sudo apt-get install acpi tpacpi-bat tpbat-utils-acpi tlp
#
# This script updates the tlp thresholds for the battery to 96%/100% to maximise battery capacity
#
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user." 2>&1
exit 1
else... |
4078f41f16cd278b603ba0bd83f3b461c252431c | 1,034 | OUTPUT_DIR=/user/s1998230/assignment/task1
OUTPUT_FILE=output.out
# Hadoop won't start if the output directory already exists
hdfs dfs -rm -r $OUTPUT_DIR
hadoop jar /opt/hadoop/hadoop-2.9.2/share/hadoop/tools/lib/hadoop-streaming-2.9.2.jar \
-D mapreduce.job.name=s1998230_task1 \
-D mapreduce.job.output.key.c... |
603584b043f63a0f73905e11eb00682e331d1c0d | 420 | #!/bin/bash
show-stack () {
aws cloudformation describe-stacks --output table --stack-name $1
}
INFRA_ID=$(jq -r .infraID metadata.json)
STAGE=$1
NU=1
if [ -z $STAGE ]
then
echo "set the stage variable"
exit
fi
while [ $NU = 1 ];do
show-stack $INFRA_ID-$STAGE | grep CREATE_IN_PROGRESS && echo in_progress... |
87db8ddd13c88e2b9bd24b11c130b6b5535d47bd | 978 | #!/bin/bash
#
#
# usesless for exclude.txt ,i dont know :(
#
#
# mqnoy@2019
#
FILE_NAME="cacti_backup_$(date +\%d\_%m\_%Y).tar.gz"
#CACTI_LOCATION = "/usr/share/cacti/"
DST_PATH_BACKUPS="/home/backupcacti/"
#your directory
EXCLUDE_PATH="/home/_devops/exclude.txt"
echo "++++++++++++++++++++++++++++++++++++++++++++++... |
83d21081a4c8ab8dfa3197fdc7927bd5918cf32f | 1,716 | #!/bin/bash
#
export GUACAMOLE_HOME="$HOME/.guacamole"
export GUACAMOLE_EXT="$GUACAMOLE_HOME/extensions"
export GUACAMOLE_LIB="$GUACAMOLE_HOME/lib"
export GUACAMOLE_PROPERTIES="$GUACAMOLE_HOME/guacamole.properties"
set_property() {
NAME="$1"
VALUE="$2"
# Ensure guacamole.properties exists
if [ ! -e "$GUACAMOLE_PROP... |
e8d58172354f8f799ab603d075ddb151d92fa984 | 552 | #!/bin/bash
# Copy the contents into the structure used by an EPrints 3.4 ingredient.
# run ./make_ingredient.sh
# then place ingredients/archivematica under your EPrints 3.4 ingredients directory
# update your flavours/pub_lib/inc file to include ingredients/archivematica
# run epadmin update REPO
# apachectl gracef... |
a55d3aa3676f9aeee9d3007e3170d6cf4c45c894 | 477 | #!/bin/bash
set -e
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
sudo pip install -U pip
sudo pip2 install -U pip
sudo pip3 install -U pip
sudo pip install -U neovim
sudo pip2 install -U neovim
sudo pip3 install -U neovim
sudo docker pull alpine
sudo docker pull... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.