blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
54dd5704078f93ad135ec7d7d24a1f7d1768c2dd | 65 | /usr/local/Cellar/apache-flink/1.8.1/libexec/bin/start-cluster.sh |
38709089bffa61c52df123d6269fff87b490d617 | 1,444 | #!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lice... |
950b5d7376ab9d48fc58f3708ad3eaf6846f0e5b | 306 | #!/bin/bash
#SBATCH -N 8
#SBATCH -p RM-shared
#SBATCH -t 1:00:00
#SBATCH --ntasks-per-node 1
set -e
cd /pylon5/ci5fp2p/zzpsu/ds340w/encode_imputation/data
module load hadoop
start-hadoop.sh
hdfs dfs -mkdir spark_data
hdfs dfs -put spark_data/ml_data.csv spark_data/ml_data.csv
spark-submit spark_ml.py |
afe6c5fb95135ddbacd8f4884a76207a98dc3c3f | 3,424 | #!/bin/bash
pam_case=$1
threads=$2
mpi=$3
VERSION=2018
if [ -z "$mpi" ]; then
mpi="impi"
fi
if [ -z "$threads" ]; then
threads="1"
fi
start_time=$SECONDS
extension="${pam_case##*.}"
case_name="${pam_case%%.*}"
echo "downloading case ${pam_case}..."
wget -q "${STORAGE_ENDPOINT}/pamcrash-benchmarks/${pam_cas... |
8d1a4c607f5c9d97dbd9d96db1f616f09f052729 | 280 | #!/bin/bash
#
#SBATCH -n 4 #number of cores
#SBATCH -t 0-12:00 #runtime in D-HH:MM format
#SBATCH -p serial_requeue #general
#SBATCH --mem-per-cpu=8000
#SBATCH -o log.out
#SBATCH -e log.err
cd ~/physics/research/nowak/indirect-rec/src
julia run_local_p_known.jl
|
fd27672d24ac76ccd3fadf058198a037ec5e1247 | 428 | #export LANG=ru_RU.KOI8-R
#export LANG=ru_RU.CP1251
export JAVA_HOME=/usr/
export APP_HOME=$(pwd)
export LIB_PATH=$APP_HOME/lib
export ODBC_PATH=$LIB_PATH/ojdbc14.jar
export COMMONS_PATH=$LIB_PATH/commons-net-3.3.jar
export MAIL_PATH=$LIB_PATH/javax.mail.jar
export APP_PATH=$LIB_PATH/md_operator.jar
cd $APP_... |
9acffff25e009b1493cd83281b597db39bc99424 | 910 | #!/bin/bash
# REV04: Tue Jan 7 10:11:48 WIB 2020
# REV03: Tue Jul 2 12:44:23 WIB 2019
# REV02: Mon Jul 1 02:07:00 WIB 2019
# REV01: Sun Jun 30 17:54:17 WIB 2019
# START: Thu Jun 27 19:27:34 WIB 2019
#
# Copyright (C) 2019 Rahmat M. Samik-Ibrahim
# http://RahmatM.Samik-Ibrahim.vLSM.org/
# This program is free script... |
802a23cb3f4aca3efb4f5b97c7230ab9c8453ebb | 23 | cat <<-EOF
Moing.
EOF
|
b7342a1518e72d14b1b29ed58b870da06e795e1f | 133 | #!/bin/bash
sbt \
clean \
++2.11.12 \
plugin/publishSigned \
clean \
++2.12.6 \
plugin/publishSigned \
sonatypeRelease
|
7c066ce60dfa74e4d2063d1d5cd42e441840d578 | 266 | #!/bin/bash
#Set hard coded values to reduce manual arguments here, dont forget to add them to the launch_scan script
#CxServer=https://<your checkmarx site>
#project_prefix="CxServer\\SP\\Company\\<your company>\\"
#LocationType=folder
#LocationPath=/repo_to_scan |
a429889ec8f2cd408aac9f4cfdee0f98660d68d5 | 839 | #!/bin/bash
OUTPUT_DIR=/data/mdesnoye/pedestrian/vu_estimation/eth/spectral_saliency
INPUT_DIRS=(/data/mdesnoye/pedestrian/eth/hima/Crossing \
/data/mdesnoye/pedestrian/eth/hima/Lowenplatz \
/data/mdesnoye/pedestrian/eth/hima/Linthescher \
)
#export CPUPROFILE=/home/mdesnoye/tmp/vu_saliency.prof
INPUT_DIR_FILE=${OUT... |
c0b420e93442b2ed8f61f3e0163b6041bbf47c24 | 93 | #!/bin/bash
echo "number"
read x
if [ $x -eq 5 ]
then
echo "five"
else
echo " not five"
fi
|
6f4d3b1a533d927d83456717212e57eeb7be3ef0 | 224 | #!/bin/bash
for file in "$@"
do
if [ -d "$file" ]; then
echo "$file is a directory"
ls "$file"
elif [ -f "$file" ]; then
echo "$file is a regular file"
head -n 5 "$file"
fi
done
|
6692cf300ba26c14419de07d884d101380dd048b | 1,041 | #!/bin/bash -xe
export PROJECT_ROOT_DIR=`pwd`
# Set up or download tools
./tools/extract-tools.sh
# TODO(rqou): Less hacky
export PATH=$PATH:$PROJECT_ROOT_DIR/tools/arm-toolchain/bin:$PROJECT_ROOT_DIR/tools/emscripten-bin:$PROJECT_ROOT_DIR/tools/emscripten-bin/llvm/bin
if [[ -z "LLVM" ]] ; then
export LLVM_DIR="$P... |
60295182f3c757d52d1425de07fdd606bb257018 | 367 | alias ytmp4='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio" --merge-output-format mp4'
alias ytmkv='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio" --merge-output-format mkv --write-subs --sub-format "ass/srt/best"'
export PS1="\[\e[01;32m\]\u\[\e[m\][\[\e[01;31m\]\h\[\e[m\... |
7d78f5b4e2729e8a474e4e46c52c2035c7af3005 | 3,371 | #!/bin/bash
image=/tmp/i3lock.png
screenshot="scrot $image"
$screenshot
#~/.config/i3/scripts/im-painteffect -p 1 -e 0 -t yes $image $image
#~/.config/i3/scripts/im-turbolence -s 300 -d 200 -c together $image $image
#~/.config/i3/scripts/im-spots -s 10x10 -t circle -B 20 -C 20 $image $image
#convert $image -blur "8x4... |
88e11b43e600f2784622d23368b0290e5e0530d2 | 579 | ## for DE between resistant and sensitive (TCGA)
Rscript --vanilla other_scripts/runDEAnalysis.R --sampleSheet files/sample_sheet.csv --model ~response --counts_raw files/table_raw_counts.csv --deaObjectFile ../objects/deaObjectFile
## for DE between the two clusters in the data (organoids)
Rscript --vanilla other_scr... |
82ab847ac1ce458eaf1e6bfcd76ad6b2cd00e64a | 47 | #!/bin/bash -eu
docker build -t eks-kubectl .
|
d99a9eb9ce43f0e9af093074c0185200ad801349 | 296 | #!/usr/bin/env bash
set -e
function package_manager_install {
apt-get install -y "$1"
}
export -f package_manager_install
function package_manager_update {
apt-get update
}
export -f package_manager_update
function bash_profile_file {
echo "$HOME/.bashrc"
}
export -f bash_profile_file
|
1303a6f1e5a8aaeb9eceea99944d2ed41d7d3d62 | 28 | echo 1999
echo False
exit 1
|
8e6bc90ca7f09d08779df049dafd88e7454dccd1 | 450 | #!/usr/bin/env bash
# Reset
NC='\033[0m' # Text Reset
# Regular Colors
RED='\033[0;31m' # Red
GREEN='\033[0;32m' # Green
YELLOW='\033[0;33m' # Yellow
BLUE='\033[0;34m' # Blue
PURPLE='\033[0;35m' # Purple
CYAN='\033[0;36m' # Cyan
WHITE='\033[0;37m' # White
... |
1939edd0636ff595239432f9582d604ad536c0ec | 2,499 | #!/bin/bash
function get_input(){
printf "\n -----${BLUE}EE Docker test${NC} ----- \nbegin prepare your docker env.[default value is the first item]\n"
read -p "Project id:" proj_id
if [ -z $proj_id ] ; then
exit 0
fi
if [ $proj_id -lt 2000 ] || [ $proj_id -gt 4999 ] ; then
echo "error id : ${proj_... |
c1bef78f05e1127d2a9478d809545246e08c10c4 | 81 | AUTH0_AUDIENCE=https://attendus.auth0.com/api/v2/
AUTH0_DOMAIN=attendus.auth0.com |
26670da8dad3db26ae9386247fb7f2f4a7c075f5 | 44 | !/bin/bash
sudo /sbin/service httpd restart
|
3d5f1116a4c85132d540a0b033d028f4889403bf | 947 | #!/usr/bin/env bash
path_current="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # https://stackoverflow.com/questions/59895
. "${path_current}/printing.sh"
# https://stackoverflow.com/questions/9376904
find_up() {
# Recursively list a file from current directory up the tree to root
[[ -n $1 ]] || { echo "fi... |
72bab10b7cb7f1f32b398b5a7a1eacc7f61c7475 | 770 | #!/bin/sh
gsettings set org.gnome.desktop.interface monospace-font-name 'Monospace 9'
gsettings set org.gnome.desktop.interface font-name 'Cantarell 9'
gsettings set org.gnome.desktop.interface document-font-name 'Sans 9'
gsettings set org.gnome.desktop.thumbnail-cache maximum-size 1024
gsettings set org.gnome.desktop.... |
760969bd978df1fccbbcf26fda66287a22852b1e | 714 | #!/bin/bash
echo 'Uninstalling Twister OS Patcher by FlameKat53 and MobileGamesMotionYT...'
echo 'Thanks for using me! You can install me again at "https://bit.ly/patchtwist"'
cd ~
#Checks to see if these files exist and replace or remove them
if [ -d ~/patcher/ ]; then
rm -r ~/patcher/
fi
if [ -f ~/.local/share/app... |
aa7f80fb8720a19902b1da7b59cf4b288b52062c | 117 | rm -rf /opt/ANDRAX/bin/flasm
make
strip flasm
cp -Rf flasm /opt/ANDRAX/bin/flasm
chmod 755 /opt/ANDRAX/bin/flasm
|
b5c8548f201ae904e4392b96975744f6e99f30e7 | 34 | #!/bin/bash
docker rm demo-nginx
|
41ec84374f43a3b0ab90fb7e1ab7670ca2a560b2 | 1,793 | #!/bin/bash
export K8S_NODE="worker-h09"
export OVS_LOG_LEVEL="info"
# quay.io/zshi/ovn-daemonset:arm-20210222
# build on aarch64, ovn-k8s PR:2005
# quay.io/zshi/ovn-daemonset:arm-20210301
# build on aarch64, ovn-k8s PR:2005, ipsec_* entrypoint script
# quay.io/zshi/ovn-daemonset:arm-2042-20210402
# build on aarch6... |
8d279a96d360d2092b8ece5a9c13dae604a3c940 | 1,296 | # sway config file
# vim: ft=sh
#
# output configuration
# internal monitor
output eDP-1 res 2256x1504
output eDP-1 subpixel rgb
output eDP-1 scale 1.2
#output eDP-1 pos 0 0
output eDP-1 pos 1440 1590
# enable/disable laptop screen based on lid switch
bindswitch lid:on output eDP-1 disable
bindswitch lid:off output e... |
9fce944749b9d1d1dbc64f579d5d988fff01bab9 | 1,309 | #!/bin/bash
#
# theucoind The TheUCoin core server.
#
#
# chkconfig: 345 80 20
# description: theucoind
# processname: theucoind
#
# Source function library.
. /etc/init.d/functions
# you can override defaults in /etc/sysconfig/theucoind, see below
if [ -f /etc/sysconfig/theucoind ]; then
. /etc/sysconfig/th... |
78f615ae3a1235dd662c31ce07115c46f78a1c3c | 252 | #!/bin/bash
# ensure we can install it
conda install -y --channel file:///anaconda/conda-bld --override-channels argh
# delete it from the channel (since this is a test repo after all...)
anaconda -t $ANACONDA_TOKEN remove -f $CONDA_USER/argh/0.26.1
|
77efae13fc29f71b68d7a410f10b4d17d889f01f | 2,123 | #!/bin/bash
if [[ "$AWS_REGION" == "" ]]; then
ZONE=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone)
if [[ "$ZONE" == "" ]]; then
echo region lookup failed, must specify AWS_REGION
exit 1
fi
AWS_REGION=${ZONE:0:${#ZONE}-1}
fi
if [[ "$1" != "" ]]; then
... |
350af42c4b03785575c4234baf13ee3681ca7332 | 52 | for i in `ls`
do
if [ -f $i ]
then
echo $i
fi
done
|
78f42b5cd44517834cac116e36ed06f329e09008 | 140 | #! /usr/bin/env sh
/Users/student/.nvm/versions/node/v6.9.5/bin/node /Users/student/Desktop/Incase-I-break-the-server/workers/htmlfetcher.js |
4152c9d480500f0cb47b5f44840799d50d4431d9 | 2,583 | #!/bin/bash
# Script to aws configuration
# @author sandeep thakare
# @since 21st May 2018
echo 'Check pyhon version'
python --version
echo '--------------------------------------------------------------------------------------'
echo 'Download the installation script from pypa.io'
curl -O https://bootstrap.pypa.io/... |
b17b2f4e5d1c2c9c4fec09b77575f8b3510398b4 | 42 | S3_KEY=
S3_SECRET=
S3_BUCKET=
DEVISE_KEY=
|
8edf81251e7bd2074357a42ebb7ce3ffd3729bea | 55 | ACCEPT_EULA=Y
SA_PASSWORD=jYo8F3Tn7@
MSSQL_PID=Standard |
5f936db08667837b9bf120230f91e3be2240decd | 419 | #!/bin/bash
export DISPLAY=:10
Xvfb :10 -screen 0 1366x768x24 -ac &
PIDS[0]=$!
#google-chrome --remote-debugging-port=9222 &
#PIDS[1]=$!
node server &
PIDS[2]=$!
sleep 2
npm test
RESULT=$?
cat ./coverage/net/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
for i in "${PIDS[@]}"
do
if ! kill $i > /dev... |
b2e2243517442108ecdc530103bf79c99a01a80e | 2,855 | pkgname=swt
pkgver=3.7
pkgrel=1
pkgdesc="An open source widget toolkit for Java"
_date=201106131736
arch=(i686 x86_64)
url="http://www.eclipse.org/swt/"
license=('EPL')
depends=('java-runtime>=6' 'gtk2>=2.20.1' 'libxtst')
#optdepends=('libgnomeui' 'xulrunner' 'mesa')
#makedepends=('openjdk6' 'libxtst' 'mesa' 'libgnomeu... |
2655346f0620017882212ea8f8dc91ae6e5ea0c2 | 614 |
# term
export COLORTERM=${COLORTERM:=truecolor}
# editors
export EDITOR="nvim"
export VISUAL="$EDITOR"
export SUDO_EDITOR="$EDITOR"
export GIT_EDITOR="$EDITOR"
export ALTERNATE_EDITOR="vim"
# -- asdf
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
# export ASDF_DIR="$HOME/.asdf"
# exp... |
99a70c1f739528ec8f2d234e7937c15a42c4df71 | 185 | #!/bin/sh
echo $SSH_KEY > ./tmp
tr '_' '\n' < ./tmp > ./id_rsa
chmod 600 ./id_rsa
rm ./tmp
echo sleep 30
sleep 30
/usr/local/bin/gunicorn --workers=10 --timeout 600 -b :$1 server:app |
198c4fef1750597500958a5cc9d3baad8b18a5ee | 151 | export ANSIBLE_FORCE_COLOR=true
ansible-playbook playbooks/apt-upgrade.yml -i devshop-inventory.php --extra-vars "devshop_version=$DEVSHOP_VERSION" -v
|
a3b7518d86590e50577c0c6c5ca3654f83b09437 | 30,932 | #!/bin/bash
#Purpose: The script will read a file containing a list of tables, one table per row
# in the format of SCHEMA.TABLE_NAME.COLUMN. The COLUMN is an optional entry.
# If a COLUMN is specified sqoop will use that column to split the extract
# among the mappers using that column. It then calls a sqoop ... |
aaeee96db6375abd13cb83ecb4d5af6a7dca8f1c | 61 | rm -rf ./htmlcov
pytest --cov-report html --cov=calendarutils |
52dd326306ad517a768472807c8fa11d629347b2 | 3,648 | #!/usr/bin/env zsh
# ==================================================================
# Aliases
# ==================================================================
# ------------------------------ DEV -------------------------------
alias az='$HOME/bin/az'
# kubernetes
alias kube='kubectl'
#vs code
alias code='... |
346964bd842627467dfb8192e6993ea41b7b8bff | 865 | #!/bin/bash
var1=$(ls products)
#consult all products
for var in $var1
do
#make a test to know the repertoires
if [ -z $(echo $var | grep "tif") ]
then
var2=$(ls products/$var | grep "SAFE")
#make a test to know the repertoires
if [ -z $var2 ]
then
echo '---'
else
#Fist launch the c... |
02aa26b82b60c38c529ab22e83eb79ecb8713e1b | 58 | mysql -e "select count(*) from Metrics.aggregator_change"
|
95c140501f8c0c9db32a7378fd00f174d27f7b25 | 145 | #!/bin/bash
rosparam load objects/box.model box_description
rosrun gazebo spawn_model -param box_description -gazebo -model box1 -x 2.25 -z 0.75
|
06fc3cf58b0d3f04cfafb7fefd84238669556551 | 856 | ffmpeg -i /home/hongpeng/Desktop/research/AICity/Track3/train/S01/c003/vdo.avi -filter_complex "[0]split=8[s0][s1][s2][s3][s4][s5][s6][s7]; [s0]crop=1344:448:384:128[s0]; [s1]crop=384:448:0:256[s1]; [s2]crop=704:128:384:576[s2]; [s3]crop=960:64:512:64[s3]; [s4]crop=192:320:1728:128[s4]; [s5]crop=384:64:1088:576[s5]; [s... |
394c4cd761e4fa546c670485b5c6e6db0d5b848f | 56 | #!/bin/sh
make -s
chmod a+x lab
./lab
make clean -s
|
a336db18e02a2fbfbeb24606d41f6d200796e967 | 528 | #!/bin/bash
# Create directory for writing logs to, if it does not already exist
mkdir -p MemberLogs;
echo "Launching $NUM_SERVERS nodes"
for i in $(seq 2 3)
do
python3 "$(pwd)"/member/Member.py False 0 &
#python3 member/Member.py False 0 &
done
for i in $(seq 4 5)
do
python3 "$(pwd)"/member... |
8c0d902337892bb6b4eaffc8f10fda37acc4db7b | 43 | #!/bin/sh
cat - | /usr/bin/wierd-jnc "$1"
|
1cfa67e7cf13637662c86686148e283773e02658 | 42 | java -cp ./bin udp.ms.MSNode WebMS.config
|
cf4fbb8180cb1d3acd1c47bb8329d6d4c454c9cb | 234 | #! /bin/sh
python main.py --seed 2 --lr 5e-4 --beta1 0.9 --beta2 0.999 \
--batch_size 64 --z_dim 10 --max_iter_per_gen 40000 --max_gen 40\
--nb_preENDE 100 --niter_preEN 5000 --niter_preDE 5000\
--exp_name iteration_test
|
7b733b3ea6978bd35548f52a9d56efc725803a66 | 25 | ../src/get_primary_gpu.sh |
f1cf3a62171958efaf78e0924e190da7e32420f3 | 45 | PORT=3001
DB_URI=mongodb://HOST:PORT/DATABASE |
ab2db05c538747038e95a4366ddfc643dab7bd02 | 3,630 | #! /bin/bash
set -e
usage="Usage: './kubernetes_deploy.sh image-name selector namespace context rc' e.g. './kubernetes_deploy.sh myImageName app=myApp myNamespace . ./kubernetes/rc.json ./kubernetes/service.json'"
if [[ $# -lt 6 ]]; then
echo "Incorrect number of arguments, minimum of 6 required";
echo $usag... |
498badaf366952d0886a25a476098a2f02a33ccd | 845 | #!/bin/bash
set -e
make -C CH/chlib clean
make -C CH/chutil clean
make -C CH/xprlib clean
make -C CH_gui clean
make -C CHC/cchcil clean
make -C CHC/cchlib clean
make -C CHC/cchpre clean
make -C CHC/cchanalyze clean
make -C CHC/cchcmdline clean
make -C CHC/cchgui clean
make -C CHB/bchcil clean
make -C CHB/bchlib clean
m... |
18ed5db35fe229d313ec983a7a2cd0d35b51e7d1 | 70 | cd backend && yarn && npx prisma migrate up --experimental && yarn dev |
58a136f2e92e7121163487516a4ffe9d59bbfadb | 49 | #!/bin/bash
# kill pgrep java
kill `pgrep java`
|
cbd0da921a38c5b46b21adbd01848833672dffe9 | 372 | if [[ `uname` == "Linux" ]]; then
alias ls='ls -F --color=auto'
elif [[ `uname` == "Darwin" ]]; then
# Mac のとき
alias ls='ls -FG'
fi
alias python='python3'
source ~/dotfiles/git-prompt.sh
source ~/dotfiles/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\... |
462e8f961b014335fa246120a7d4f2d43e80ff31 | 365 | #!/bin/sh
# Make sure delete the gateway "echo-tcp-gateway" since it's already using the tcp port.
kubectl delete gateway echo-tcp-gateway
kubectl apply -f simple-tls-service-1.yaml
kubectl apply -f simple-tls-service-2.yaml
kubectl apply -f passthrough-sni-gateway-both.yaml
kubectl apply -f passthrough-sni-vs-1.yaml... |
c7081b80f004b71c50c6661f2b53f8b6982c7202 | 49 | cd bin/Release
sudo gacutil -i MySql.Data.dll |
1f46f450950605f015ed2c35a76f4097ccc52de5 | 1,086 | #!/bin/bash
set -o nounset
set -o errexit
shopt -s expand_aliases
#######################################
# Source helper utilities
source manage/utils.sh
log "Updating OS packages"
pkgupdate
log "Setting GB locale"
setlocales
#######################################
log "Installing SOAPlib Commandline Wrapper dependenc... |
92af40651f0de2d48817139988aa082e10516b15 | 342 | #!/bin/sh
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-h|--help)
help="true"
shift # past argument
;;
-n|--name)
export NAME="$2"
shift # past argument
;;
--default)
;;
*)
# unknown option
;;
esac
shift # past argument or value
done
gh repo create chimpwi... |
b1f2a9dacc9bbf8da11061286de93516c28cac2f | 5,315 | #!/bin/bash
readonly NOMADS=1
readonly SETTLED=2
readonly FREEMEN=3
FACTION=0
declare -a FAMILY
FACTION_OPTIONS="Nomads"
BASIC_OPTIONS="Grow"
GROW_OPTIONS=""
MY_CIV=""
declare -a OPTION_REQS
##NOMAD GROWTH
OPTION_REQS+=("Hunters Grow none Nomads")
OPTION_REQS+=("Gatherers Grow none Nomads")
OPTION_REQS+=("Warrio... |
2b7f1b1db3751318383787b2876189a7a8574a1c | 547 | #!/bin/bash
function move () {
timestamp=$(date +"%m-%d-%y")
dir=/tmp/record/$timestamp/
mkdir $dir
mv /tmp/record/*.jpg $dir
mv /tmp/record/*.avi $dir
cp /tmp/motion.log $dir
}
function copy (){
cp -r $dir /vmstore/userhome/securityCam/
}
function remount () {
umount -lf /mocaps
mount /mocaps
}
function cl... |
8e4c1240108a4cd8bf01d1be7aed527600ab7692 | 3,223 | #!/bin/bash
# $Id$
set -e
no_empty_builddir() {
'clear'
cat <<- -EOF-
${DD_BORDER}
${tab_}${tab_}${BOLD}${RED}W A R N I N G${OFF}
Looks like the \$BUILDDIR directory contains subdirectories
from a previous build.
Please format the partition mounted on \$BUILDDIR or set
a different build director... |
779df19e93b468a57ff1f78cdabf9e5b8192a3e6 | 480 | #!/bin/bash
home=/home/tor
n_segment=10
img_dir=$home/dataset/pascal/VOC2010/VOCdevkit/VOC2010/JPEGImages-ClassSegmented
img_list_filepath=$home/dataset/pascal/VOC2010/meta/split_voc2010_philipp/All_1928.txt
img_extension=.jpg
out_dir=$home/xprmnt/superpixel-generation/voc2010/dummy-segmentation
mkdir -p $out_dir
... |
f2767a5f98596145e3da4b66911dc9109b42ec01 | 95 | docker run -it --rm -v $(realpath .):/portal -p8010:80 --name task_maker node:latest /bin/bash
|
10559981e3185739a3f4add9c1ceafa6d4c9c452 | 349 | # m_matschiner Mon Jul 3 11:10:51 CEST 2017
# Generate the MCC tree for the analyses with all constraints.
if [ ! -f ../res/beast2/all_constraints/combined/rod_opsin.tre ]
then
java -jar ../bin/treeannotator.jar -burnin 0 -heights mean ../res/beast2/all_constraints/combined/rod_opsin.trees ../res/beast2/all_constrain... |
681cd7f251b53f6c4ec2fded6fbde18260de6e74 | 11 | man "date"
|
cbe6894ad52a09ca35304120fbcdc0f61f301f7f | 43 | #! /bin/bash
echo "Our First Git Push"
|
812ab0096a034620b6d299f59c077e53ce78b144 | 991 | #!/bin/sh
PACKAGE_NAME=ebox-package-installer
echo "Updating ${PACKAGE_NAME}.pot file"
xgettext --default-domain $PACKAGE_NAME --directory ../ \
--add-comments=TRANSLATORS: --language Perl -k__ -k__n -k__x -k__d \
--flag=__:1:pass-perl-format --flag=__:1:pass-perl-brace-format \
--copyright... |
cae0282700b3a0f70d2428fb71a6e8cbe5a55e72 | 434 | #!/bin/bash
basedir=/share/backup/apache_logs
date=`date +\%Y\%m\%d`
logs=`ls /var/log/httpd/*log-20* 2>/dev/null`
HostName=`hostname`
if [ "$logs" ]; then
ls $basedir > /dev/null
mkdir -p $basedir/$date
fi
#save all archived logs
for i in /var/log/httpd/*log-20*;
do
if [ -f $i ] ; then
mv $i $ba... |
7cf0640b558128a2c9c956ef6eb1cef6514d0c0c | 8,051 | #!/bin/bash
rm -rf /aqua/dtolley/UCODE_Linear_Uncert/Basecase
mkdir /aqua/dtolley/UCODE_Linear_Uncert/Basecase
mkdir /aqua/dtolley/UCODE_Linear_Uncert/Basecase/Calibration_1
mkdir /aqua/dtolley/UCODE_Linear_Uncert/Basecase/Calibration_2
mkdir /aqua/dtolley/UCODE_Linear_Uncert/Basecase/Calibration_3
mkdir /aqua/dtoll... |
b154e58210b6be329eb60bf0cfef11be49eb4bfa | 319 | export DATABASE_URL='postgresql://postgres:eva@localhost:5432/capstone'
# export TEST_DATABASE_URL='postgresql://postgres:eva@localhost:5432/capstone_test'
# export ENV=''
# export FLASK_APP=app
export AUTH0_DOMAIN='dev-epds.eu.auth0.com'
export ALGORITHMS=['RS256']
export API_AUDIENCE='capstone'
export EXITED='True'
|
e0af6e98ca6f3baaa6fa063717872a267c11e126 | 900 | #!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
set -x
[ -f "$0.done" ] && exit 0
BACKEND_SERVERS=`
for (( k = 1; k <= ${_COUNT}; k++ )); do
IPV4="$(getent ahostsv4 ${_PREFIX}$k | head -n1 | cut -d' ' -f1)"
echo " server ${_PREFIX}$k $IPV4:6443 check port 6443"
done
`
mkdir -p /etc/haproxy/ && ... |
d62a96798ed29b4c3ff1ba6f86650999e5670d8c | 372 | #!/bin/bash
# ifconfig
# 提取IP地址
ifconfig eth0 | egrep -o "inet [^ ]*" | grep -o "[0-9.]*"
# 获取当前系统分配到的名字服务器
cat /etc/resolv.conf
# 列出系统中开发的端口以及对应的服务信息
lsof -i
# 分两步提取信息
lsof -i | grep ":[0-9]\+->" -o | grep "[0-9]\+" -o | sort | uniq
# netstat -tnp 列出开放端口与服务
|
a4141e3835a56feb95a598f678e43013ed8c0058 | 126 | #!/bin/sh
ctags --file-scope=yes -R -f ~/tags/netctrl.tags ~/code/trunk/
cscope -bR -f ~/tags/netctrl.out -s ~/code/trunk/
|
131937c3e384391d3cb443c8bb1d68e0af101986 | 3,225 | #!/bin/bash
#--------init ENV-----------
. /etc/profile.d/modules.sh
module purge
# must come after module purge (else reset!)
export MODULEPATH=/cm/shared/modulefiles:$MODULEPATH
echo "MODULEPATH=" $MODULEPATH
echo "MODULE LIST loaded before task:"
module list
module load use.own
module load taskcenter/common
## Unc... |
82334faef9807dd668a26ab75ca8cedbc2b68404 | 25 | brew cask install droplr
|
8cbdc0e11094c52d29648c54e04f9468ca2a520a | 422 | #!/bin/bash
download_shell(){
sudo wget https://raw.githubusercontent.com/zjwda2016/ITC-136/master/refresh.sh
sudo chmod +x refresh.sh
sudo wget https://raw.githubusercontent.com/zjwda2016/ITC-136/master/stats.desktop
sudo chmod +x stats.desktop
sudo wget https://raw.githubusercontent.com/zjwda2016/ITC-136/master... |
8ec8de4f7db81461374e20c8044f9fef7817f725 | 146 | #!/usr/bin/env bash
mkdir -p output &&
echo -n "" > output/join_times.txt &&
spark-submit broadcast_join.py &&
spark-submit repartition_join.py |
772d85d1175e11fb74513bac0774d6cda4993a2c | 387 | #!/usr/bin/env bash
set -exu
echo "Installed versions"
python --version
python3 --version
pyenv --version
pyenv version
pyenv versions
pip --version
echo "Starting deployment"
pyenv global 3.7.1
pip3 install --upgrade pip poetry pre-commit bumpversion twine
npm install -g semantic-release @semantic-release/changelog \... |
f0d6837192f27ea2d61dd0f6545226fbb572fe0d | 180 | #!/bin/bash
# Stops the server, while preserving state.
set -e -o pipefail
sudo docker-compose -f docker-compose.yml -f docker-compose.client.yml -f docker-compose.demo.yml stop
|
5f68d20093da15bf35cc3a3812110736f3793883 | 550 |
declare -a _env
env-import() {
declare var="$1" default="$2"
if [[ -z "${!var+x}" ]]; then
if [[ -z "${2+x}" ]]; then
echo "!! Imported variable $var must be set in profile or environment." | >&2 red
exit 2
else
export $var="$default"
fi
fi
_env+=($var)
}
env-show() {
declare desc="Shows relevant... |
fb7ff7e7f683d988ad209d37cc0eea569afa9fc2 | 932 | #! /bin/sh -x
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Tap casks for betas, etc
brew tap caskroom/cask
brew t... |
d0afa928521f9da9874cfccf1bb9cd236f5a3745 | 11,226 | #!/usr/bin/bash
${*//I\[XjNz\!/3yVl^,} ${*%%I?au+5Tx} ""'e'$'\x76a'l "$( ${!*} print""\f "CmI9IlwwMzNbMzQ7MW0iCiBwPSJcMDMzWzM5OzFtIgogIGs9IlwwMzNbMzM7MW0iCiAgIG09IlwwMzNbMzE7MW0iCiAgICBoPSJcMDMzWzMyOzFtIgogICAgIGM9IlwwMzNbMzU7MW0iCiAgICAgIHB1PSJcMDMzWzM2OzFtIgogICAgICAgeD0iXDAzM1szMDsxbSIKICAgICAgICBvPSJcMDMz... |
0a8f4bceb8bee6c67c216c365aa3d0ac2c87bb17 | 254 | #!/bin/bash
local readonly _append_str="
if [ -f \"${HOME}/dotfiles/.zshenv\" ]; then
source \"${HOME}/dotfiles/.zshenv\"
fi
"
function f_load_zshenv() {
if [ -e ~/.zshenv ]; then
cp ~/.zshenv{,_org}
fi
echo "${_append_str}" >>~/.zshenv
}
|
a26ed066535fffea5c0e2b8a17b4fcf6e6a6ab15 | 789 | ########################
# Antigen
########################
source ~/.antigen/antigen.zsh
source ~/.zsh-themes/ghostwheel.theme
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bund... |
ba3762b01f7b055bf4df7e024f60b37d18765295 | 44 |
/i rm x tor-browser/stable
doCommand=false |
184e249ff80b596a81be05bc9025654512634c2e | 2,270 | # bindkey '^Y' yank-last-arg # No such func
zle -N yank-current yank_current
bindkey "^Y" yank-current
bindkey -a "^Y" yank-current
function yank_current() {
if ! [ "$BUFFER" ]; then
BUFFER="$(fc -ln -1)"
fi
printf "$BUFFER" | xsel --input --clipboard
}
zle -N prepend-sudo prepend_sudo
bindkey "^S"... |
6cc8eeb2a243e72e7319efef4f4bf2d7f3604fe0 | 159 | REACT_APP_NAME=REACT_APPS
REACT_APP_ENV=development
REACT_APP_URL=http://localhost:3000/
REACT_APP_API_URL=https://www.karomap.com/backend/
REACT_APP_API_KEY=
|
36a3a2863e055d7d04d7db318c08ee224824eae1 | 2,320 | #http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
date > /etc/vagrant_box_build_time
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
[puppetlabs]
name=puppetlabs
baseurl=http://stahnma.fedorapeople.org/puppetlabs/6/\$basearch
enabled=1
gpgcheck=0
EOM
cat > /etc/... |
cafb1d7e6478420c1e5d00fbb3d00af17bffc455 | 358 | #!/bin/zsh
case $1 in
1)
exit 1
;;
2)
exit 2
;;
3)
exit 3
;;
4)
exit 4
;;
5)
exit 5
;;
6)
exit 6
;;
7)
exit 7
;;
8)
exit 8
;;
*)
cd ../..
m... |
3a7f1f9f038706759f40499a71ee5970dffec510 | 2,153 | #!/bin/bash
# Copyright 2017 Rice University
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
c6ef3809973d56b1e6f4de1e5f85e506fdbdf706 | 2,462 | #!/bin/bash
# Enable debugging, useful when you want to figure out why
# this script is not behaving the way you expect it to do
DEBUG=0
# What do you want to call this service?
SERVICE_NAME="Factorio"
# Which user/group is running factorio?
# Running any public service as "root" is generally not recommended
USERNAM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.