blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
2ec7855f91b1a744e120d92af2fa5f8bd1aa89b5
332
#!/usr/bin/env bash source script.sh function catch() { case $1 in 0) echo "all tests succeeded" ;; 1) echo "installLiveServer() failed"; ;; *) echo "fubar! Something went wrong." ;; esac exit $1 } # try ( installLiveServer || exit 1 ) cat...
f1ce261ce654222ca80476e5517e0189281a4b66
451
#!/bin/bash for kit in $@; do if [[ $kit == "shield" ]]; then SHIELD_ENABLED=1 fi if [[ $kit == "blobstore-webdav" ]]; then BOSH_MANAGED_BLOBSTORE=1 fi if [[ $kit == "db-internal-postgres" ]]; then BOSH_MANAGED_POSTGRES=1 fi echo $kit done if [[ $BOSH_MANAGED_POSTGRES == 1 && $SHIELD_ENABLED...
75290565fd2e9ab5e555b127bb22ece7a2da27f3
61
sudo sh git_clones.sh sudo sh update.sh sudo sh ptf_tools.sh
82e298c9d141f14e4785fe10b6791ebce9704208
217
#!/usr/bin/env bash MODELS="/usr/local/share/models/" docker run -it \ -v $(pwd):/usr/local/src/ \ -v $MODELS:$MODELS \ -v $DATA_DIR:$DATA_DIR \ tensorflow/tensorflow \ bash -c "export DATA_DIR="$DATA_DIR"; bash"
281415bc1994f117cab5f3d7a4cdfbbf820b7755
599
# /bin/bash # Exit script on command fail set -e # Auto export variables set -a # Exit if there are any parameter reference not passed as argument set -u # Tag as latest and push both versions echo "Tag suizman/dform:`cat version | sed '/^\s*$/d' | tail -n1` as suizman/dform:latest" docker tag suizman/dform:`cat ...
9df6c00274b5a92eaf6c01dac8a89c9e1a892ace
549
#!/bin/bash set -e git checkout master git remote update origin git reset --hard origin/master NEW_VERSION=`python2 updateLatest.py` BRANCH_NAME=version-${NEW_VERSION} git checkout -b ${BRANCH_NAME} python2 kodi-addons/addons_xml_generator.py git add plugin.video.9anime git add addons.xml git add addons.xml.md5 git...
fdf44ce2303844ff9d2232fcf8370f0399e98b19
1,009
#!/usr/bin/zsh # save config echo "CUDA_VISIBLE_DEVICES=0,1,2,3 python -u main.py \ --output_dir debug-exp/ \ --do_train \ --train_batch_size 24 \ --eval_batch_size 128 \ --bert_model albert-xxlarge-v2 \ --learning_rate $1 \ --num_train_epochs $2 \ --model_load_dir $3 \ --model_save_dir $3 \ --scheduler $4 "...
458da17595f6c2994ea4aeb57c9f870300198de5
85
#!/bin/bash PCF_RABBIT_VERSION="1.15.3" RELEASE_ID="265855" PRODUCT_SLUG="p-rabbitmq"
3c96934b2bb44071c9df0ed855fd5ee09abc153f
430
#!/bin/bash data=gcn4 data_root=../../data/$data fold=1 hidden=4 result_root=$HOME/scratch/results/kd_prediction_fisher/$data kernel_dir=$result_root/kernel_matrix if [ ! -e $kernel_dir ]; then mkdir -p $kernel_dir fi save_file=$kernel_dir/kmat-f-$fold-h-$hidden.pkl python explicit_fisher.py $data_root/${data}.t...
f0b5b236c9bb3d41966926fb056d6d0b1b5d6c9b
567
#!/bin/bash DCLIB="../../tool/lib/dataclayclient.jar" if [ ! -f $DCLIB ]; then echo "[ERROR] dataClay client lib (or link) not found at $DCLIB." exit -1 fi if [ -z $COMPSSLIB ]; then echo "[ERROR] COMPSSLIB variable with valid COMPSS path is undefined" exit -1 fi if [ ! -f $COMPSSLIB ]; then echo "[ERROR] COMPSs...
cbe4020f0000741622a325a8eb526f457b42e5ee
342
#!/bin/bash # Helper to automatically attach to TMUX on ssh # See # https://stackoverflow.com/questions/7114990/pseudo-terminal-will-not-be-allocated-because-stdin-is-not-a-terminal # https://stackoverflow.com/questions/1376016/python-subprocess-with-heredocs export cmd="ssh -t -i $1 -o StrictHostKeyChecking=no $2@$3 t...
db593ec949c1c00afdba754b80c31a6e7ffad24f
273
#! /bin/bash cd $(dirname "$0") image="$(echo $1 | cut -d '.' -f1)" checksum="$(md5sum iso/$image.iso | cut -d ' ' -f1)" packer build -var "iso_checksum=$checksum" "$image.json" mkdir -p "images/$image" mv output-qemu/packer-qemu "images/$image.qcow2" rm -rf output-qemu
8c34ed91817b3685d2f6d6490866a402cca4cb29
3,122
#!/bin/bash VERSION=$1 ENT="$HOME/code/pandora_enterprise" OPEN="$HOME/code/pandorafms" OS="Centos" ARCH="x86_64" EL="el7" EXT="demo" TARGET_URL="http://atlantis.artica.es" DOCKER_PATH="$OPEN/extras/docker/centos8/" OSTACK_IMAGE="pandorafms/pandorafms-open-stack-el8" OBASE_IMAGE="pandorafms/pandorafms-open-base-el8" P...
9de523f04bb2c7412fc5f60c5bca18cb4d066d65
915
#!/bin/bash #SBATCH --time=16:00:00 #SBATCH --nodes=1 #SBATCH --ntasks=20 #SBATCH --account=fogelson #SBATCH --partition=kingspeak #SBATCH -C "c20" #SBATCH -o runner07.out #SBATCH -e runner07.err # find number of threads for OpenMP (adapted from CHPC code) # find number of MPI tasks per node export TPN=$(echo $SLURM_T...
6f9fe3be9ad2aed7169f1566be1a1dcb0147b821
4,996
#!/bin/bash # # ./run.sh [--preserve-tmp] casename # # Create a temporary directory in the current working directory and run the integration # tests. Currently supported cases are: # # - serial: runs the serial versions of rangular and rmcdhf # - mpi: runs the MPI versions of rangular/rmcdhf, but with a short MPI_TMP (...
017e4af2f12614a6c95dba45e2b730f78ec5fd8d
5,324
netstat -lnp|grep 80 ./apache/bin/apachectl start sestatus sudo chmod 4755 ../httpd chmod 4755 ../httpd sudo chmod 4755 ../httpd dir dir dir tar -xzf httpd-2.4.27.tar.gz cd httpd-2.4.27 cd .. mkdia apache mkdir apache cd httpd-2.4.27 ./configure --prefix=/home/2017/y2017g48/apache make make install ./apache/bin/apac...
39263f4b1927e824d963679903a8ff414215fe7c
137
#!/bin/sh pylint src/ && flake8 src/ && pydocstyle --add-select=D203,D212,D205,D200 --add-ignore=D211 --match='(?!__init__).*\.py' src/
44b223516235c0eb769aca3b94828a6933a9ca04
2,423
#!/bin/bash # btrfs filesystem with options in fstab: # nofail,user,user_subvol_rm_allowed,compress=lzo # mount cmd: mount /dev/... # unmount : umount /dev/... set -o errexit set -o nounset cmd=$(basename $0) do_help() { cat <<EOF usage: $cmd help: print this message $cmd init <src>: initialize current dir t...
5833b1c2c905226c98e7c188169562d5de1b02b2
175
DJANGO_SETTINGS_MODULE=simpleapp.settings.production MYSQL_DATABASE=app-db MYSQL_USER=user123 MYSQL_PASSWORD=123456 MYSQL_ROOT_PASSWORD=123456 MYSQL_PORT=3306 MYSQL_HOST=mysql
2f3ac9252d904a1554628d153a305eeaf3aac6e4
2,507
#!/bin/bash . $(dirname $0)/sqoop_utils.sh setJava BASE_PATH="/project/awg/cms/phedex/catalog/csv" #BASE_PATH="cms-catalog" JDBC_URL=$(sed '1q;d' cmsr_cstring) USERNAME=$(sed '2q;d' cmsr_cstring) PASSWORD=$(sed '3q;d' cmsr_cstring) me=`basename $0`_$$ if [ -n "$1" ] then START_DATE=$1 else START_DATE=`date +'%F' -d...
3e89c252fa67910445770399df05bea9c0086aa8
448
#! /bin/sh #to prevent some possible problems export AS_JAVA=/usr/local/jdk1.8.0 GLASSFISHPATH=/home/glassfish/bin case "$1" in start) echo "starting glassfish from $GLASSFISHPATH" sudo -u gladmin $GLASSFISHPATH/asadmin start-domain domain1 ;; restart) $0 stop $0 start ;; stop) echo "stopping glassfish from $GLASSFI...
6c3dc9e778798669e050016370e3975678355695
597
#!/bin/sh if [ "$#" -ne 2 ]; then printf "Usage: ./rsync-data.sh EXTERNAL_IP INTERNAL_IP\n\nBefore: copy all internal ips of the task managers to the slaves file!" fi IP=$1 INTERNAL_IP=$2 sed "s/JOBMANAGER_PLACEHOLDER/${INTERNAL_IP}/g" flink-conf.yaml > flink-conf-amazon.yaml rsync -avz ../flink-dist/target/fli...
88ae5a25f02d63affa6025a79f90887af3a995a5
152
cd /var/www/ /usr/bin/git pull composer install php artisan migrate php artisan compile:templates cd /var/www/frontend bower update gulp less gulp js
d8047ecf19dec110fee138be7138a5e0bceb38d3
635
#!/bin/bash # # prepare-ipxe copies the right images to /tftpboot, later when the # shared volume is created, rundnsmasq will copy them there to # /shared/tftpboot. We do this as a two-step operation to ensure all # the expected images are available at build-time. Otherwise the CI # jobs that build these images could s...
b0e0bbfd05d34c742f4d3babfd54a8f40689a01a
3,220
#!/bin/sh #IN_IMAGE_DIR=$OUT_DIR/target/product/rpi4/ #IN_BOOT_FILES=$ANDROID_BUILD_TOP/vendor/brcm/rpi4/proprietary/boot/ #OUT_IMAGE_FILE=$HOME/raspberrypi/omni-$ROM_BUILDTYPE.img if [ -z $ROM_BUILDTYPE ]; then echo "missing ROM_BUILDTYPE" exit 0 fi options=$(getopt -o ho:i:b: -- "$@") [ $? -eq 0 ] || { ...
801a8349ee83dae6d021604412dbd3831bb59a24
3,372
#!/usr/bin/env bash # Covtype train_file="covtype.scale.train.small" test_file="covtype.scale.test.small" train_file_path=$(readlink -f datasets/$train_file) test_file_path=$(readlink -f datasets/$test_file) global_data=true perform_test=true # Init weights use_weight_file=false weight_file= # Data parameters: num_t...
1a7f4573be59f36862fa823a3ebf3790bbd74c49
935
#!/bin/bash function check_dataset_info(){ if [[ -z "${DataSetsCli_name}" ]]; then echo "DataSetsCli_name is undefined" exit else MY_DATASET_NAME="${DataSetsCli_name}" fi } function check_mount_point(){ if test -f "$MOUNT_POINT"; then echo "MOUNT_POINT exists" else mkdir $MOUNT_POINT f...
eeaeaffc95cb0816080e14de729c5bd39bbc471e
148
#!/bin/bash CTYPE="content-type:application/json" URL='http://localhost:15672/api' curl -i -u guest:guest -H $CTYPE -XDELETE $URL/vhosts/samtests
3f66740d209f672815f813e227f691f58793183e
202
#!/bin/bash set -e # Build Revolve cd /revolve mkdir -p build && cd build cmake .. -DCMAKE_BUILD_TYPE="Release" make -j4 # Install the Python dependencies cd /revolve pip3 install -r requirements.txt
cb60a7f8efb8f6dd37e284c15c78ae4ca7c6bf28
60
touch -A -000001 -a bomb.txt | stat -f %a bomb.txt | cat -e
7235ed330121cb3af3b7c85eaa7e399d81cfecf9
399
wget https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.9.0/github-markdown.min.css wget https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js wget https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.js wget https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.css wget h...
d9a1ae5c33a327230693bc22bd4bd34c85cb31e7
15,873
#!/bin/bash #SBATCH --partition=cpu_short #SBATCH --mail-type=BEGIN,END,FAIL #SBATCH --mail-user=nt1598@nyu.edu #SBATCH --ntasks=3 #SBATCH --cpus-per-task=1 #SBATCH --mem-per-cpu=32G #SBATCH --time=00-12:00:00 #SBATCH --output=serial_test_%j.log#!/bin/bash module add samtools/1.9 module add bedtools/2.26.0 # parse s...
f5effb6f2e7e1552c64a29ca81445640cadb8aa9
485
# force a build clean every time rm ~/.cache/nim/main_d/* rm ios_triangle/src/* # build it for iOS /p/Nim/bin/nim c -f --os:ios -c --noMain:on main.nim # copy all support files into the ios project cp ~/.cache/nim/main_d/*.c ios_triangle/src/ cp nimbase.h ios_triangle/src/ cp file_compat.h ios_triangle/src/ cp ../glf...
d6ee2e1faf7219e656643f4244078d23b6b0c1ae
2,614
# # Copyright 2022-2023 Advanced Micro Devices Inc. # # 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...
ae497418c588190b9750a47c901a715f80eddd6f
232
#!/bin/bash set -e rm -f results.txt for i in extra/burst/*.png; do echo $i; ./mcq.py $i; done #for i in extra/burst/*.png; do echo $i; ./mcq.py $i; feh research.png; done #for i in extra/burst/*.png; do echo $i; ./mcq.py $i; done
9c216f999d7142ae58fa1c9b619d8acf53c44672
162
export PATH=~/projects/tools/Arm_A9_linaro_4.8.3/bin:~/projects/tools/lz4:$PATH export ARCH=arm export CROSS_COMPILE=arm-gnueabi- ./makeMtk -t s7511 r drvgen k
ff6283956ba1125bf30208063121a53908d19e8b
56
#!/bin/bash #This is my prelab :) echo 'Hi Evveryone'
b83da1603ea7caa4d4d82e115b81ba1c4ea22cb3
64
#!/bin/bash PROC=4 mpirun -np ${PROC} ./himeno/bmt_L_2x2x1.out
d11191e65203a0563d5f1b8fd1a18b0f3443ed37
104
#!/usr/bin/env bash cd "$(dirname "$0")" php tests.php && php --no-php-ini test_unloaded.php exit $?
1ae7904fab11f82e7b26dacf58da5aff9d53c279
369
#!/usr/bin/env bash ./raftexample3 --id 1 --cluster http://127.0.0.1:12379,http://127.0.0.1:22379,http://127.0.0.1:32379 > node1.log & ./raftexample3 --id 2 --cluster http://127.0.0.1:12379,http://127.0.0.1:22379,http://127.0.0.1:32379 > node2.log & ./raftexample3 --id 3 --cluster http://127.0.0.1:12379,http://127.0...
e02c7c86cb37272d445688f57e55d635edbfdb4d
67
#! /bin/bash echo " Hello World " echo " this is my first script"
c10bd7e61041cf65934db4d97828cda4cd20f05b
6,524
#!/bin/sh # # File: llnms-scan-asset.sh # Author: Marvin Smith # Date: 12/13/2013 # # Purpose: Runs the scanners on the specified asset. # #----------------------------------------# #- Print Usage Instructions -# #----------------------------------------# usage(){ echo "`basename $0` [o...
0c46e3f5515aa9171a2a6796770f40a48f1c04d6
327
#!/bin/bash COMPONENTS_PATH=~/.config/conky/themes/personal killall conky sleep 10 & # Load left panel # conky -c ${COMPONENTS_PATH}/left-panel.conky & conky -c ~/.config/conky/themes/conky-blue/conkyrc & # Load right panel conky -c ${COMPONENTS_PATH}/right-panel.conky & # conky -c ${COMPONENTS_PATH}/zenzire.conky & ...
3186a9da601dfb23e6e035f29ee9da4bb7548cab
69
#!/bin/sh exec dotnet run --project "$(dirname "$0")/../JsonEncode"
ec4300d204bc3b7a933460b78e0067ba509829b4
1,206
#!/usr/bin/env bash #USAGE: checkPyImport packagename # #EXAMPLES: # #Should return Success and an exit code of 0 # checkPyImport os # # #Should return Failure, exit code 1 -- "Douglas Adams" != "Monty Python" # checkPyImport slartibartfast # # #In a script where you don't want the stdout, do something like: # c...
d65ce154dd39375c719740d49e8c60bfbd65d877
2,046
#! /usr/bin/env bash # This script must be sourced # # Set up the environment to deploy to a Riff AWS docker swarm # Takes 1 argument, the swarm environment name (staging, beta, etc) # defaults to 'staging' # After this script is sourced: the python environment is activated, # a tunnel to an aws docker manager is cre...
b721f0b338a3b6eff823392ffd7bbf091e87f021
314
# Load ~/.bash_prompt, ~/.exports, ~/.aliases, ~/.functions for file in ~/.{bash_prompt,exports,aliases,functions,git-completion}; do [ -r "$file" ] && source "$file" done unset file # Case-insensitive globbing (used in pathname expansion) shopt -s nocaseglob export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8
a564ad28c55263eb345b723f08eb8a3a82a737bc
202
#get MSCOCO dataset #(1) install gsutil via: curl https://sdk.cloud.google.com #Make local dir: mkdir train2017 #(3) Synchronize via: gsutil -m rsync gs://images.cocodataset.org/train2017 train2017
8c949714b6aaafc710a4e16a9b629873304eaf89
979
#!/bin/sh # Copy and build source files to VM370 # STOP MSYS2 rewriting directory paths in the docker container export MSYS2_ARG_CONV_EXCL="vm370:;/opt" docker kill vm370 docker pull adriansutherland/vm370:builder docker run --rm -d -p 3270:3270 -p 8038:8038 -p 3505:3505 --name vm370 adriansutherland/vm370:builder # ...
7840ee1d66c584addcea70c884a80d715b626b42
1,387
WORKSPACE_DIRECTORY="$(dirname "$0")/.." echo WORKSPACE_DIRECTORY # set the build version if specified if [ -z ${BUILD_NUMBER+null} ]; then echo "No build number set. This is okay - will build without modifying “Info.plist” or badging icon." else /usr/libexec/PlistBuddy -c "Set CFBundleVersion ${BUILD_NUMBER}...
a39c754f0aa801e00f0da2c5b3bb804747429207
8,109
#!/bin/bash # problem 5 in 1D # generate figs locally cd resultsp51DKn1e-9 ../../../glvis-3.3/glvis -run ../create_parallel_M1Philippe_1Dfigures.glvs cd ../resultsp51DKn1e-9Efield ../../../glvis-3.3/glvis -run ../create_parallel_M1Philippe_1Dfigures.glvs cd ../resultsp51DKn0.0001 ../../../glvis-3.3/glvis -run ../create...
784c35aa18e0c6ca35de8550fd891b7cd7991f63
2,754
#!/usr/bin/env bash function check_version() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } # Define some paths BUILD_ENV="$HOME/work/build_env" # Load cmake module load cmake # Create the directory to work in source=$(pwd) mkdir -p $BUILD_ENV # If PostgreSQL isn't present, download and install it...
f6f4ee6832f6bd60173d773b2e575a767d3ec732
1,100
#!/usr/bin/expect #Shell command to transfer file using scp on Linux #Don't support windows yet for now #Usage # localFIle remoteAddr remoteFile user password isToRemote set localFile [lindex $argv 0] set remoteAddr [lindex $argv 1] set remoteFile [lindex $argv 2] set user [lindex $argv 3] set password [lindex $argv ...
6bffcdf3f59474451cdf6809c3fe74046fee3f7a
150
#!/bin/bash for filename in $(ls $1) do echo "$filename" | grep "\.old$" > /dev/null if [$?!='0'] then mv "$1/$filename" "$1/$filename.old" fi done
dc22d73bc0f93b31bcde4982fdb573158a0d3384
13,804
#!/bin/sh # SET IMAGE FOLDER PERM chmod 777 /usr/local/nginx/html/images -R # INIT printf "$(date '+%Y/%m/%d %H:%M:%S') [info] _ _ _ _ \n" printf "$(date '+%Y/%m/%d %H:%M:%S') [info] __| | __ _| |_ __ _ _ __| |___ ___(_)\n" printf "$(date '+%Y/%m/%d %H:%M:%S') [info] / _ |/ _ |...
2f766b1f1046a97c7b7c1d42a7776694e2c93a19
2,260
#!/bin/bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi tmp_dir=$(mktemp -d) cd $tmp_dir git clone https://github.com/diddledan/one-script-wsl2-systemd python3 -c "import configparser; config = configparser.ConfigParser(); config.read('/etc/wsl.conf'); config['boot']['command'] = \"/usr/bin/env -i...
b0831dd0cf663326603c6fa827dc522fa9109c40
1,117
#export LD_LIBRARY_PATH="/home/feihu/anaconda3/lib:$LD_LIBRARY_PATH" #export LD_INCLUDE_PATH="/home/feihu/anaconda3/include:$LD_INCLUDE_PATH" #export CUDA_HOME="/usr/local/cuda-10.0" #export PATH="/home/feihu/anaconda3/bin:/usr/local/cuda-10.0/bin:$PATH" #export CPATH="/usr/local/cuda-10.0/include" #export CUDNN_INCLUD...
ca89547c3dfd355e5010889618b37f556a1753d2
743
#!/bin/bash source values.bash echo -e "\n`date +%T` Выполняется импорт индекса json\n" echo "drop table if exists jsonindex; \ create table jsonindex ( \ item char (20) primary key, \ pos bigint, \ len int); \ load data local infile '"$WORK_FILES_PATH"index.csv' \ into table jsoninde...
9107337afba8b79af12f91c528d02c24b40563eb
334
#!/bin/sh set -e base_url='https://vbb-gtfs.jannisr.de/latest/' # todo: use https://gist.github.com/derhuerst/745cf09fe5f3ea2569948dd215bbfe1a ? download () { curl -L --compressed --etag-compare "$1.etag" --etag-save "$1.etag" $base_url$1 -o $1 } download 'routes.csv' download 'trips.csv' download 'stop_times.csv' ...
3ad57401ba7df650a7bc320c7f72b52d07e876eb
87
echo "Running QEMU..." qemu-system-i386 -s -S -kernel build/kernel echo "QEMU Exiting"
c3dc6add2917a0c544e23c772f5023445bada462
207
#!/bin/sh if [ "$1" = "watch" ]; then cargo watch -s "clear; ./doc" else cargo doc --quiet --document-private-items --target-dir target/doc_priv echo "file:$PWD/target/doc_priv/doc/lay/index.html" fi
f8c2250dae42889e06bb7a59315088cd10a175f3
3,008
#! /bin/sh # # Copyright 2007. Petar Zhivkov Petrov # pesho.petrov@gmail.com # usage() { echo "Usage: $0 clientName serverName" echo " $0 -v" } countChars() { _count="`echo "$1" | sed -e "s/[^$2]//g" | tr -d "\n" | wc -c`" return 0 } readPassword() { while [ true ]; do stty -echo read -p "$1" _pass...
32d04fe07043c855a7fc3aad6c24ffd10244e7c8
54
python adult.py python ionosphere.py python glass.py
48fa684eaa6790a9f1e498c7f2b2c4b5a181983d
8,347
#!/bin/bash #ramsal # Global variables # ANSI colors c_black='\u001b[30m' c_red='\u001b[31m' c_green='\u001b[32m' c_yellow='\u001b[33m' c_blue='\u001b[34m' c_magenta='\u001b[35m' c_cyan='\u001b[36m' c_white='\u001b[37m' c_no='\u001b[0m' # config CFG_SSID="tor" CFG_PWD="" CFG_GW_IP="192.168.42.1" CFG_GW_MASK="255.255...
4e10aa019c537252e6bf7c34653bf319f03ab7d3
1,210
#!/usr/bin/env bash if [ "$(uname)" == "Darwin" ]; then #!/bin/sh ## https://github.com/auth0/react-native-lock/blob/master/bin/cocoapods.sh ios_dir=`pwd`/ios if [ -d ios_dir ] then exit 0 fi podfile="$ios_dir/Podfile" template=`pwd`/node_modules/react-native-oauth/ios/Podfile.template echo...
5d1415f95887de72647a612a0a4c7bd77156a3f9
1,455
yum -y update cp /root/rpms/pam_radius_auth.so /usr/lib64/security/ mkdir /etc/raddb/ cp /root/rpms/server /etc/raddb/ cp /root/rpms/openvpn /etc/pam.d/ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm rpm -Uvh /root/rpms/epel-release-7-1.noarch.rpm yum -y install openvpn easy-rsa cp /...
33a205edc670f00042f699ffb59c9888ec78b956
497
# ==================================================================================== # Temporary script to ensure IP routes persist due to issues with GCP CentOS image # https://github.com/GoogleCloudPlatform/compute-image-pacompanyXages/issues/475 # ===================================================================...
8a9a222ad1fa839d1372b3ca6f65326c90bd5b22
599
#! /usr/bin/env bash #========================================================================= # Copyright (c) 2015, 2016 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>. # # MIT license: https://github.com/GsDevKit/GsDevKit_home/blob/master/license.txt #===========================================================...
ca83ae19600b10dbb924dc6328fe501183a1f761
310
# create build folder npm run build # go to build folder cd build # clone index.html to 200.html -> rediect to ixdex page whenever get error route cp index.html 200.html # start deploy vis Surge # the command means deploy current folder to domain hungfe-photo-app.surge.sh surge . hungfe-photo-app.surge.sh
717e3c1ec9426e7fe8ef68e6c3a5db1224efb0c9
925
#!/bin/bash VERSION="0.2.0" target=./dist/gitCloud-v$VERSION if [ -d "$target" ] then while true; do read -p "Do you wish to rm $target directory? (y/N)" yn case $yn in [Yy]* ) rm -rf $target; break;; [Nn]* ) exit;; * ) echo "Please answer yes or no.";; esac done fi mkdir $target...
f76848a6bbdc4c24563b9f728ad4ec7b4d5e99a3
339
#!/bin/bash echo -e "Removing previous SAML metadata directory, if any" rm -Rf "${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/saml-md" echo -e "Creating SAML metadata directory" mkdir "${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/saml-md" chmod +x "${PWD}/ci/tests/saml2/run-saml-server.sh" "${PWD}/ci/tests/saml2/r...
3260242662bc84abc1a7e794ab7d9ac9e0b8f95d
1,064
# 需要打开 VS 的开发环境控制台:比如:【x86 Native Tools Command Prompt for VS 2019】 ################################################################################# # 编译 DLL # For vs2019 # 关闭输出版权信息 /nologo # 方法一: # 在 LINK 的时候加上 /DEBUG 信息,就可以包含 调试信息了 # Compile cl /c /Od /Zi /EHsc /GS- /MDd /nologo /Fd:get_rand.pdb get_rand.cpp # ...
578dc9f72e4c227fcdffdc31a9878f1e33cf16e8
273
#! /bin/bash psql --command="DROP SCHEMA IF EXISTS public CASCADE;" --command "CREATE SCHEMA IF NOT EXISTS public;" postgresql://mkcpnwwitfdhwg:4c33a4a1a2174440fb72e647bfa5f2e21a601005bcde7a746951aa7b85624e22@ec2-54-160-18-230.compute-1.amazonaws.com:5432/de1quki1fi6ccr
3ae9c6338915b191412fc5db1d80a31df029617a
120
if is_shell zsh; then source "${__config_dotfiles_dir}/submodules/base16-shell/scripts/base16-tomorrow-night.sh" fi
886e05c2565f9c3c903193a06a10e95497b485f6
3,103
#!/usr/bin/env bash mongo_version=$1 SECONDS=0 cd ../work echo "Beginning Ansible MongoDB deployment" #create ansible.cfg since command line version isn't working echo '[defaults]' > ansible.cfg echo 'host_key_checking = False' >> ansible.cfg echo "$(date +"%F--%k:%M:%S")...if python does not exist on VM, install...
7a1141e6195c33c8f6e0e0931669b8852f2b0078
174
#!/bin/ksh while true do clear ps -ef sleep 2 done #Unix AIX does not have "top" command to see processes on real time, so I did the little script to make a similar thing.
0b41244113396e3eb54f0a93590244e34be2b7a4
97
npm install firebase-functions@latest firebase-admin@latest --save npm install -g firebase-tools
28e2beb59a2afb6e7b69ae6fd5b7f1c4c8137593
99
#!/bin/sh APPDIR=`dirname $(readlink -f $0)` cd $APPDIR rm ../*.bag rm ../data*.txt rm ../*.png
24391a813234402a1b99c8aca2eb2669c60405fc
2,101
#!/bin/bash printf "\nReady to check HTTP and HTTPS sites.\n\n" read -p "Please enter the domain name, then press enter: " DOMAIN ## Format DOMAIN in all lowercase DOMAIN=$(printf $DOMAIN | tr "{A-Z}" "{a-z}") ## Confirm domain name printf "\n" read -n1 -rsp "Is this the correct domain? $DOMAIN [Y|N] " CONFIRM ## F...
ed81315b5a9ea80178fb61867526372732691a16
2,327
#!bin/bash # importing and generating key pair if [[ ! -f $HOME/KEY ]]; then mkdir ~/KEY fi if [[ ! -f $HOME/KEY/CC17key.pem ]]; then openssl genrsa -out $HOME/KEY/CC17key.pem 2048 fi openssl rsa -in $HOME/KEY/CC17key.pem -pubout > $HOME/KEY/CC17key.pub sed -e '2,$!d' -e '$d' $HOME/KEY/CC17key.pub >> $HOME/KEY...
983f94e0ba3c04d67e2201421776e4863fb72737
568
#! /bin/sh # $Id: debian8_install_dev_pkgs.sh 43921 2019-09-19 14:44:17Z katargir $ # Install development packages neccessary to build GBench from sources on Ubuntu 10 # Run this script under root priveleges # Compiler, make etc. apt-get -y install git build-essential # To build wxWidgets apt-get -y install libgtk2....
90bc5ece81723c01b3419e0516a40c5bc4b1071b
64
#!/usr/bin/env sh /usr/bin/env git rev-parse --abbrev-ref HEAD
5db87cffcedaa517e60060e425a83e75d88c7402
48
#!/usr/bin/env sh cd /tmp minecraft-launcher &
a2c84a8137759edc53140e60b9e6974b7f905c95
830
#!/bin/bash dir=/core/ rm pngs -R > /dev/null 2>&1 mkdir -p pngs timestep=0.1 simtime=0.5 timesteps=$(echo $simtime/$timestep | bc) #timesteps=1 startDS=2 # specific to NDTEMP numElements=4 maxDatasets=$(echo $numElements*$timesteps | bc) element=1 frame=1 for ds in $(seq 2 $numElements $maxDatasets);do echo $...
7ab3f48cab4b270d1e580586bfc56b5fea8ff4f2
132
sh scripts/addstock.sh 10 1 100000 | ./cv & sh scripts/addstock.sh 10 1 500000 | ./cv & sh scripts/addstock.sh 10 1 800000 | ./cv &
18e591056707054d974ca18ad50a47fc0b9aa7c4
79
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
3f05720df8ff2f1aa7a728191db77f30f9e14083
49
#!/usr/bin/env bash exec cut -c "1-$(tput cols)"
cdc1a40252537cfb25f20abbdf4c62f30fdaa8ce
191
dir="dataset" metadata="metadata.pkl" if [ ! -f "$metadata" ]; then cd utils python parse_metadata.py cd .. fi if [[ ! -e "$dir" ]]; then cd utils; python create_dataset.py; cd .. fi
663a75140973a75154bcbdd68252afc34abb5349
236
cd /netshare1/home1/people/hansun/RNAseqMSMS/6-tandem-viruses/inputxml2 sh 20091217_Velos1_NaNa_SA_10k_run2_Hela_GluC_SecF_pH05.sh sh 20091010_Velos1_NaNa_SA_Hela_GluC_SECD_pH_11real.sh sh 20091006_Velos1_NaNa_SA_Hela_GluC_SECB_pH_3.sh
f9905b066fb83e7c8e3f50915aacb8618ffc4bff
92
awk -F"|" '{ avg=($6-$5);print $1"$"$2"$"$3"$"$4"$"$5"$"$6"$"avg}'|sort -nk7 -t "$"|tail -3
0000b6cd2193b5e96739283eabacae74df090276
132
#!/usr/bin/env bash source /configuration/template/lib.sh e_header Setting up ${TEMPLATE} copy_composer_json e_success All done
525f42e2bb62c6abc3621007c95801ee807c0ca1
6,377
#!/bin/bash set +x # Installation script for ubuntu15.04 remote host. function InstallAll() { InstallBasicPackages InstallShadowsocks InstallOwncloud InstallZnc if false; then ChangeHostname "vultr.guest" "pitaya" # Only Used for vultr cloudprovider CreateUser "deyuan" # Optionll...
01f8468e895f13742d3ffbb04b4ea3af9ba01bba
168
world_name="Agora" mkdir -p `dirname "$0"`/backup tar cfzv `dirname "$0"`/backup/`date +%F-%H-%M-%S`.tar.gz "$world_name" "$world_name"_nether "$world_name"_the_end
158f1499d67725427cb97d22633d76c3a3670e86
6,837
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups ...
2cad85f0fd84849202bda632e72dfe2903563952
356
#!/bin/sh SECRET=$(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 50 | head -n1) sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \ -e "s/image_proxy : False/image_proxy : ${IMAGE_PROXY}/g" \ -e "s/ultrasecretkey/${SECRET}/g" \ /usr/local/searx/searx/settings.yml su-exec "$UID:$GID" pyth...
9981bfdd352c1ed6c47526c8cc8484366341daeb
1,251
if [ $# -ne 2 ]; then echo You provided an invalid number of arguments. Please provide two directories, the first of which contains TGA images. exit -1 fi if [ ! -d "$1" ]; then echo The first argument is not a valid directory exit -1 fi if [ ! -d "$2" ]; then echo The second argument is not ...
6b14923885c37ad3ea0b791b7a691a2ecae9e1f3
1,027
#update url's for packages as they are released #adding comments #adding more comments cd ~ mkdir vagrant_env cd vagrant_env rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm -K rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm ...
085f1eeeb014a14b872b86cdc6e3046e699082f6
108
#!/bin/bash ansible-pull -d /etc/tk1_playbooks -U https://github.com/mlin/tk1_playbooks.git -i 'localhost,'
6c589b0529d31dcbb66b0581c3be95ff671716c6
559
#!/bin/bash # extension for ~/.bashrc # Only source custom setting when in an interactive session [ -z "$PS1" ] && return # Export global variables export ENV_PATH=$HOME/.env export PATH=/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:$PATH export PATH=$ENV_PATH/bin:$PATH #export PATH=/usr/local/share/python:$PATH #...
d0afb8295631c23366b8f11968ff53daad9c948b
1,077
#!/bin/bash apt-get install vim if [ ! -f /home/fsmith/.vimrc ] then echo "set nu" >/home/fsmith/.vimrc echo "set mu" >>/home/fsmith/.vimrc echo "syntax on" >>/home/fsmith/.vimrc fi apt-get install git -y git config --global user.name "Frank Smith" git config --global user.email fsmith@cavium.com git conf...