blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
61547668744824a929450fca2e1897a634f562fb | 2,860 | #!/bin/bash
Install_PHP72()
{
echo "============================PHP72 Install start=================================="
if [ -d $INSTALL_DIR_PHP72/sbin ];then
echo "php72 has been installed"
return 0
fi
libmcrypt_url=https://cytranet.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/lib... |
4f89dbffd1da50b1d9ec6d12c1f8a32f3797e46c | 1,112 | #!/bin/bash
source /vm/script/bash/util/console.sh
# ----------------------------------------------------------------------------------------------------------------------
# Functions
# ----------------------------------------------------------------------------------------------------------------------
function cop... |
f312b6d9d4b043d2cdca985bc7174db4a312226b | 222 | #!/bin/bash -x
read year
if [[ ( $year%400 -eq 0 ) ]]
then
echo "leap year"
elif [[ ( $year%100 -eq 0 ) ]]
then
echo "not a leap year"
elif [[ ( $year%4 -eq 0 ) ]]
then
echo "leap year"
else
echo "not a leap year"
fi
|
e163085794c7b5ff3fe006c1f6324e798696a255 | 80 | #!/bin/bash
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
$SCRIPT_DIR/container phive $*
|
525fbc618fa3524089792009051cb2726ed852a9 | 10,178 | #!/bin/bash
mail_to="mymail@here.tld"
mail_cc=""
# prod_sid="kssp2"
prod_sid="$(ps -u oracle -o args | awk -F'_' '/ora_.mon_/ {print $3}' | head -n1)"
max_latency_micro_seconds=2000
iostat_check_interval=3
iostat_check_count=5
iostat_check_pause=10
sending_mail_interval=900
asm_luns_size_gb=500
sea... |
30a8994cb46b92d7f7232fe50c492ca19229dffc | 91 | #!/bin/bash
echo "start cron run"
cd /var/www/mr/docroot
drush elysia-cron
echo "end cron"
|
c74d45e8d65e3b9a13536b23bc974a7360502ca4 | 121 | #!/bin/bash
REGISTRY=10.6.199.182:5000
echo "==> fetching $1"
docker pull $REGISTRY/$1
docker tag -f $REGISTRY/$1 $1
|
d7e9fb8e2b2ff8db90f49c4c98f56285101ad3db | 1,599 | BASE_SITECORE_DOCKER_REGISTRY=scr.sitecore.com/base/
XP_SITECORE_DOCKER_REGISTRY=scr.sitecore.com/sxp/
XP_SITECORE_TAG=10.0-ltsc2019
MODULES_SITECORE_DOCKER_REGISTRY=scr.sitecore.com/sxp/modules/
SPE_SITECORE_TAG=6.1.1-1809
SXA_SITECORE_TAG=10.0.0-1809
XC_NONPRODUCTION_SITECORE_DOCKER_REGISTRY=scr.sitecore.... |
b9f8fcbfa9015457865d497dbe6778e47fcc8d79 | 2,647 | #!/bin/sh
intro () {
echo "Cet exercice vise à tester les fonctions de copie, déplacement, suppression. Des fichiers vont être installés dans le répertoire de l'exercice. Votre script devra copier les fichiers se terminant par \"jpg\" dans un répertoire (à créer) \"Images\", déplacer les fichiers intitulés \"notes... |
d59bae4c01f81701b6a6b6fdcfa6c4bef3c0dd7d | 104 | #!/bin/bash
case_directory=cases
for file in $case_directory/*
do
echo $file
prolog $file
done
|
ff7a1c800993c8167625e16c594d530831709119 | 170 | #!/bin/bash
listA=(dmjc blygjw eyzxdp hbjh hdcj yhzf zbzp)
for i in ${listA[@]};
do
eval "mongoimport -h 127.0.0.1 -d c5 -c "$i "--upsert ../data/"$i".dat"
done
|
a7fc2666380126578d32db54062ab588364b3374 | 121 | git pull origin master
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
e12ba3519aa36a3019061302e0c8e87b63715690 | 5,034 | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export LC_ALL=en_US.UTF-8
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/node:/usr/local/bin/TEE-CLC-11.0.0:$PATH"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'l... |
327b99fcdadee17102e07ee947d934cceb14c71d | 157 | echo "GENERATING BACKUP ON HEROKU"
heroku pgbackups:capture
echo "DOWNLOADING BACKUP FROM HEROKU"
curl -o latest.dump `heroku pgbackups:url`
echo "FINISHED"
|
22f6f769840a7576f18b878ce2ebf182dab6b4e2 | 531 | #!/bin/bash
#
# Test SWI
singularity run \
--app swi_pipeline \
--bind `pwd`:/wkdir \
baxpr-sct-singularity-master-v3.0.0.simg \
--outdir OUTPUTS_swi \
--swi_dir INPUTS_swi/swi_dir \
--mffe_dir OUTPUTS_mffe/MFFE \
--cord_dir OUTPUTS_mffe/CORD \
--warps_dir OUTPUTS_mffe/WARPS \
--swi_reg_param "step=1,type=seg,algo=sli... |
6b7422a431831a958720bd906e544a596401f548 | 157 | #! /bin/sh --
if [ "$1" = "-r" ]
then
date "+%Y_%m_%d__%H_%M"
elif [ "$1" = "-R" ]
then
date "+%Y_%m_%d__%H_%M_%S_%N"
else
date "+%Y_%m_%d"
fi
|
22fdeaf6db5792e69a6eab265bbd16f4b5c66929 | 43 | #!/bin/sh
# Start SSHD
/usr/sbin/sshd -D
|
9b9de253902544ed26af93fc980aca2ba22caaa3 | 1,611 | #!/bin/sh
rm -rf $HOME/.vim/bundle/vundle
for name in *; do
target="$HOME/.$name"
if [ -e "$target" ]; then
if [ ! -L "$target" ]; then
echo "WARNING: $target exists but is not a symlink."
fi
else
if [ "$name" != 'install.sh' ] && [ "$name" != 'README.md' ]; then
echo "Creating $target"
... |
89afcc9f3422e83487435b5bcdc21f04f5cfb29d | 197 | #!/bin/bash
./sub_jobs.sh wordcount "basic cb kvhint cbkvhint" \
uniform singlenode "32M 64M 128M 256M 512M 1G 2G 4G 8G 16G 32G 64G" "" \
5 1 "wc_uniform_singlenode_c64M-p64M-i512M-h20" $1
|
f39112289fe80bfbe9d2ab47990f06c6911fd3e7 | 253 | #!/bin/bash
set -e
while : ; do
make || true
kill "$oldgtkwave" || true
gtkwave --chdir /tmp/ --rcvar 'enable_vcd_autosave yes' --rcvar 'do_initial_zoom_fit yes' "$(realpath system.vcd)" &
oldgtkwave=$!
inotifywait -e modify *.v -r . || true
done
|
848385af0e0fb19654f03c6cdb36950e4311c069 | 255 | #!/usr/bin/env bash
function calc_docker_image {
local docker_registry=${DOCKER_REGISTRY:-""}
if [ -z "$docker_registry" ]; then
echo -n "$DOCKER_REPO/$DOCKER_ARTIFACT"
else
echo -n "$docker_registry/$DOCKER_REPO/$DOCKER_ARTIFACT"
fi
}
|
544f84acf27b89919182b76dcb7a180155185883 | 94 | add_path ~/.cargo/bin
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" |
46b7a50924478ab4ad86c5dbe241e1c649642e8b | 1,852 | # Usage: js.sh directory region
# region = se, no, dk
# EXAMPLE ./js.sh . se
#
# extracts and compresses js files to two files, one to be included before the
# html is loaded, and one after sweden.js, norway.js or denmark.js is used to
# implement E.locale, depending on region and the files are called before.js
# and a... |
b9021e1d5a1ff12018353997e4a43ec4b50206b0 | 6,440 | # $NetBSD: t_psshfs.sh,v 1.3 2007/12/29 23:07:17 jmmv Exp $
#
# Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved.
#
# 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... |
d952d0453f55af6f06a1ca8f8b987a2562a08648 | 103 | #NODE_ENV=production nodemon app.js --models.migrate='alter'
nodemon app.js --models.migrate='alter'
|
ab1e2e99d690d4733ae3dc5d2ed32f239d27d414 | 2,104 | #!/bin/bash
#This script is called by maven to deploy the secret after the maven validate phase.
#Note that for this script to succeed you must oc login first
oc whoami > /dev/null
if [ $? == 1 ]; then
echo "[ERROR] Not logged in, no 'apiman-gateway-keystore' secret is created"
exit 0;
fi
if [ ! -f "../elasticse... |
8793f6730235f1d2164e3a28578a0d0449632948 | 309 | ## Database
DB_URI="DB_URI_HERE"
## bcrypt
SALT_ROUNDS=10
## jwt
SECRET=THIS_SHOULD_BE_LONG_CRYPTO_RANDOM_STRING
EXP=7d
## CORS
# comment allowed origins to allow "*"
CORS_ALLOWED_ORIGINS="https://example.com http://example.com:8000"
# default max age is 0
CORS_MAX_AGE="3600"
## App settings
PORT="25000" |
ce96c2a11fef9af1b35e29f22a920303c029ec79 | 305 | #!/usr/bin/env bash
# Create dockerpath
dockerpath="ultraviolentlight/deployment_nginx_kubernetes"
# Authenticate & tag
echo "Docker ID and Image: $dockerpath"
docker login &&\
docker image tag deployment_nginx_kubernetes $dockerpath
# Push image to a docker repository
docker image push $dockerpath
|
626db70351d91a4ffbae5d89015803e50d939ace | 2,330 | #!/usr/bin/bash
pushd 0wt/
echo
echo $PWD
echo
python ~/github/scripts/general/src/general_find.replace.py plot_all.in.one_cask.thickness_dose.rate_t4045_bottom.py
python ~/github/scripts/general/src/general_find.replace.py plot_all.in.one_cask.thickness_dose.rate_t4045_top.py
python ~/github/scripts/general/src/genera... |
512a032065b2748d02920c32b641e8678fbf359f | 336 | #!/bin/bash
USAGE ()
{
echo "Usage: $NAME {start|stop} " >&2
}
case "$1" in
start)
/usr/lib/kafka/bin/kafka-server-start.sh /usr/lib/kafka/config/server.properties > /var/log/kafka/access_log 2> /var/log/kafka/error_log
;;
stop)
/usr/lib/kafka/bin/kafka-server-stop.sh
;;
*)
USAGE
exit 1
... |
d65e7746df47543b899038466dd97d9122340913 | 97 | . ./setenv.sh
gfsh -e "connect --locator=localhost[12345]" -e "shutdown --include-locators=true" |
5ea47394bfdca5e0033484820f4ef2e4d7bd2988 | 440 | #!/bin/bash
kubectl delete -f ../istio/samples/bookinfo/platform/kube/bookinfo.yaml
kubectl delete -f ../istio/samples/bookinfo/networking/bookinfo-gateway.yaml
kubectl delete -f ../istio/samples/bookinfo/networking/virtual-service-all-v1.yaml
kubectl delete -f ../istio/samples/bookinfo/networking/destination-rule-al... |
9d6b61fc601af0f5fafa4dbf23f6a4f3aa77c79e | 50 | #!/bin/sh
export PATH=${HOME}/.local/bin:${PATH}
|
04096e4c84c22f9fa45b064fbbc312852f7ff1a2 | 228 | java -jar /Users/liuxubin/.m2/repository/org/mybatis/generator/mybatis-generator-core/1.3.2/mybatis-generator-core-1.3.2.jar -configfile /Users/liuxubin/IdeaProjects/helloworld/src/main/resources/generatorConfig.xml -overwrite
|
5368d6dd42eaed318cdeac3d5be22ddcabcf8535 | 178 | #!/bin/bash
set -e
rm -f reports/*.jpg
rm -f reports/*.png
./build test_amplifier 1
./build test_delay 1
./build test_peakfollower 1
./build test_rms 1
firefox reports/index.html |
dbe425f0926c6a0a0102efad7404b4718e6f84c9 | 578 | #!/bin/bash
yarn unlink @ournet/domain
yarn unlink @ournet/api-client
yarn unlink @ournet/weather-domain
yarn unlink @ournet/places-domain
yarn unlink @ournet/images-domain
yarn unlink @ournet/horoscopes-domain
yarn unlink @ournet/news-domain
yarn unlink @ournet/topics-domain
yarn unlink ournet.links
yarn add @ournet... |
f3c951dfb9df961177cf572f00d7862636f5fb34 | 209 | #!/bin/bash
if [ "$1" = "" ];
then
e="fib karatsuba tutorial"
else
e=$1
fi
for example in $e
do
cd $example
if [ -f "_clean.sh" ];
then
./_clean.sh
else
make clean
fi
cd ..
done
|
ff6900a804ffdd3d1143b17d75479dbd163538d7 | 230 | #!/bin/sh
echo "=====> Installing openjdk-8"
sudo apt-get --yes install software-properties-common python-software-properties
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get --yes install openjdk-8-jdk
|
37c899de53ed99bfa1b227fc7f00a88f3c7e3b87 | 2,751 | #!/bin/bash
# Filename: sca_env.bash
# Purpose: Set environment variables to be used by the "Machine Learning and
# Artificial Intelligence Assistant” (MAI Assistant) application
# during deployment and at production runtime.
# The prefix "SCA" refers to Security Controls Assessors w... |
244046afdf6affd1681c9f8f694bff239c38ca43 | 46 | #!/bin/bash
echo P1-12=50% >/dev/servoblaster
|
492b6e58c96eed185c76ddc6f94a962196bed5b5 | 517 | #!/bin/bash
cd firmament
rm -r /mnt/data/google_6x_speedup_13pus_86400_sec_quincy_preemption_bounded_1024MB_rapid/
mkdir /mnt/data/google_6x_speedup_13pus_86400_sec_quincy_preemption_bounded_1024MB_rapid/
./build/src/simulator --flagfile=/home/srguser/firmament-experiments/configs/google_6x_speedup_13pus_86400_sec_quin... |
c067e3728d69afe04b3f6ec07b20c63b6aecf982 | 99 | #! /bin/sh
/venv/bin/python /app/manage.py migrate --noinput
/venv/bin/uwsgi --ini /app/uwsgi.ini
|
c4a0c94f6985163c78f220c448b112ec845af4f2 | 404 | PORT-5000
MONGO_URI=mongodb://localhost:27017/community-db
JWT_SECRET=b478968b71f0e3c737273385feef4e68dcd612bc1f752c57522b8961f73925eed3c90b
JWT_EXPIRE="60min"
# this is for the sendEmail variables get it from sendGrid website
EMAIL_SERVICE = sendGrid
EMAIL_USERNAME = apikey
EMAIL_PASSWORD = SG.KSJ5hFSyR4eeyBm-25y8... |
459c63f194b9e6ac61cc8bbca4aec89c92486fb8 | 272 | #!/bin/bash
# Print help message
printHelp() {
cat<<EOF
Preprocess images
Usage:
${0} <input-file> <output-file>
EOF
}
# Starting function
main() {
if [[ ${#@} != 2 ]]; then
printHelp
else
sed 's/,/ /g' $1 > $2
fi
}
# Start
main $@
|
0b3188dce637d88da5b75fff80ad34848b46ff55 | 69 | #!/usr/bin/env bash
/usr/bin/setxkbmap -option "caps:ctrl_modifier"
|
497514628bd209d3e34d4b26fb0cbf9afab9922a | 349 | 172.17.0.1 -> IP de l hote docker
consul agent -server -bootstrap-expect=1 -data-dir=consul-data -ui -bind=158.50.163.114 -client=172.17.0.1
cd apigateway
docker build -t afp/apigateway .
cd ..
cd afoevents
docker build -t afp/afoevents .
docker run -p 8080:8080 --name apig -d afp/apigateway
docker run -p 3100:3100 ... |
ef1779ef86ca7c5511b96087431c54c87f8c661a | 427 | pkg_origin=cosmos
pkg_name=bluez-firmware
pkg_version=1.2
pkg_description="Firmware for Broadcom BCM203x and STLC2300 Bluetooth chips"
pkg_upstream_url="http://www.bluez.org/"
pkg_license=('GPL2')
pkg_source=("http://bluez.sf.net/download/${pkg_name}-${pkg_version}.tar.gz")
pkg_shasum=('1cc3cefad872e937e05de5a0a2b390d... |
ae97a984992e124120fdaa0b53fdc656d602a500 | 649 | #!/bin/bash
set -e
wd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo Working directory: ${wd}
echo XDG_RUNTIME_DIR: ${XDG_RUNTIME_DIR}
echo Parameters: ${@}
ewd=$(echo ${wd} | sed -e 's/[\/&]/\\&/g')
params=$(echo ${@} | sed -e 's/[\/&]/\\&/g')
xdg=$(echo ${XDG_RUNTIME_DIR} | sed -e 's/[\/&]/\\&/g')
cat ${wd}... |
812bbb18c86141675a1a5474e86cc893b8bc88df | 372 | #!/bin/sh
if [ $# -ne 1 ] ; then
echo "Error arg, please input task id. eg: wap.ssp.dproc 32"
exit 0
fi
echo $1 > /proc/wap_proc/proc_dbg
cat /proc/wap_proc/proc_dbg
echo "========================== backtrace ========================="
#wap.ssp.procbt $1
shellcmdexe $1 0x2004
echo "========================== maps... |
9aec5ed0e0e4047a8ab73d0541285e400af39af9 | 772 | #! /bin/bash
# Train model and Test model
# Additional experiments [Increasing the hidden layer]
python ../sentence_classification.py --cell_type="RNN" --n_layer=4 --n_cell=32 --n_epoch=400 --dropout_keep_prob=0.7 --exp_name="add_exp01_4layer"
python ../sentence_classification.py --cell_type="LSTM" --n_layer=4 --n_ce... |
04e8a56b1e9925a1c873b98f74d3416037e634d9 | 2,447 | ########## functions
sdas () {
# Credit to mas90
user="$1"
shift
sudo -u "$user" XDG_RUNTIME_DIR=/run/user/`id -u "$user"` "$@"
}
# Update dotfiles on remote systems (how ~meta~ is that?)
update-dotfiles () {
for host in "${@}"; do
ssh "$host" '. ~/.dotfiles-location && cd $DOTFILES_DIR &&... |
6bd01d9e45e15cddabd4926cdd9942762cab57bc | 147 | #!/bin/bash
docker run -it -e USER -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION \
-v $(PWD):/app/ \
serverless-env
|
837a1913b8313c3cd34aad96d4c33e5734b1b9f5 | 59 | #!/bin/sh
ssh -p 2220 bandit3@bandit.labs.overthewire.org
|
f35e29c9c8968124499f2a834e8ab2cde5b57387 | 136 | #!/bin/bash
read -s -p "Enter the username : " username
if [ "$username" == "$USER" ]; then
echo "Hello"
else
echo "Try Again"
fi
|
065458ef236981e21bcf2d2fde52031313c0973a | 175 | #!/usr/bin/env bash
GH_EXE="$( dirname ${BASH_SOURCE[0]} )/gh.exe"
if [ -t 0 -a -t 1 -a -x /usr/bin/winpty ]; then
/usr/bin/winpty $GH_EXE "$@"
else
exec $GH_EXE "$@"
fi |
be2e04b3ad591208177ada13aa0fdfa606513235 | 901 | #!/bin/bash
# jobs runniing longer than a day
# column 7 will look like 13-18:54:10 with days as first. So if we
# just look for - we'll get everything longer than 1 day
LONGJOBS=`ps -ef | awk '$7 ~ /-/{print $2}'`
for i in $LONGJOBS
do
# by default cpu limit is unlimited. If user has set a soft
# limit, then don... |
cca8cdd63b1380dade49023aaa07212b42c067f0 | 45 | #!/bin/sh
CF_DIAL_TIMEOUT=30 /usr/bin/cf "$@" |
4a59120e714301387d2a829487cd8148e8af69cb | 406 | #!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P ); cd "$parent_path" # http://stackoverflow.com/questions/24112727/shell-relative-paths-based-on-file-location-instead-of-current-working-director
node ../../../scoreImporters/jamSheetsImporter 1rYzWKRbl1DTlyzn9AhSKo5f4onh01jnbFZqK1_wDaIM "Tuesday Ja... |
58d574010fc45c6318bf0eb0fbaf4d641037f64c | 2,117 | #!/bin/bash
OPTIONS=""
if [ "$1" == "ap" ];
then
OPTIONS="-agentpath:../../ap/build/libasyncProfiler.so=start,event=wall,collapsed,file=petclinic_collapsed.txt"
fi
if [ "$1" == "jfr" ];
then
OPTIONS="-XX:StartFlightRecording=filename=petclinic-benchmark-profile.jfr,dumponexit=true,settings=profile"
fi
if [ "$1" == ... |
1679216ae6383e136fa8d1d6a24f129182d95407 | 77 | #!/bin/sh
NOME="Susie"
unset NOME
echo $NOME # A variável não existe mais
|
310605b46a38e5eef7b116f0f9821b6664f90163 | 920 | #!/usr/bin/env bash
show_help(){
cat <<EOF
Usage: ${0##*/} [-hv] [-e ENVIRONMENT] COMMAND
Options
-h,--help display this help and exit
-e,--environment ENVIRONMENT work with ENVIRONMENT configuration
-v verbose mode
Commands
launch|start|up ... |
5f293531278accb8e73ed20119d7f9968dba3d27 | 768 | #!/bin/bash
for code in -1000 -10011 -10012 -10013 -1003 -11000 -11001 -11002 -11003 -11004 -11005 -11006 -12002 -13000 -13001 -13004 -13005 -13006 -13008 -2001 -2002 -2003 -2004 -2005 -2007 -2008 -2009 -2010 -2011 -2013 -2014 -2015 -2016 -2017 -2018 -2020 -2021 -4001 -4002 -4003 -4004 -4006 -4007 -5001 -6001 -7001 -7... |
0954926788e7e9f56886736776e2a2e1ab130723 | 724 | #!/usr/bin/env bash
set -o errexit -o nounset
target="/var/vcap/all-releases/jobs-src/garden-runc/garden/templates/bin/pre-start"
sentinel="${target}.patch_sentinel"
if [[ -f "${sentinel}" ]]; then
if sha256sum --check "${sentinel}" ; then
echo "Patch already applied. Skipping"
exit 0
fi
echo "Sentinel ... |
7c928ecd8032e1a18c36a9c9d1ab9d7713b5b794 | 16 | cd /sdcard
bash
|
fffadf4f56f82e3a2e5ceb5aa95bdbb89c1a0bf7 | 247 | #!/bin/bash
#
# ./scripts/smb_cramindex.sh &>> results/smb_cramindex.out
echo "cramindex with sambamba"
date
. etc/environment
for t in 47 31 15 7 ; do
cmd="$sambamba index -t $t -C $cram10s"
echo $cmd
$(/usr/bin/time -v $cmd)
done
date
|
e6ab1b16808afd98121bdaeb30986a8e88552a73 | 4,243 | #!/bin/bash
PROJECT_DIR=$1
show_logs=${AZHPC_SHOW_LOGS,,}
if [ "$SYSTEM_DEBUG" = "true" ]; then
set -x
AZHPC_OPTION="--debug"
show_logs="true"
printenv
fi
if [ "$AZHPC_CONFIG" = "" ]; then
echo "variable AZHPC_CONFIG is required"
exit 1
fi
if [ "$AZHPC_PIPELINE_DIR" = "" ]; then
echo "variab... |
85f0ea1743bd593b8725adc09d77841a324f4f56 | 168 | #!/bin/sh
docker run -d \
--restart=always \
--name=aria2 \
-p 6800:6800 \
-e "SECRET=0x0000" \
-e "UID=1000" \
-e "GID=985" \
-v /nas/downloads:/data \
aria2
|
ebbf3835bfee0a02a143691535f65f48f9bbe5f2 | 81 | #!/bin/bash
cat << EOF
---
default_process_types:
web: rackup $1/config.ru
EOF |
dd944ada12601b3e1a9f81770441e64490bfde83 | 224 | cd /export/a10/kitsing/neural_wfst
export PYTHONPATH="$PWD/src/python"
export THEANO_FLAGS="floatX=float32,mode=FAST_RUN,optimizer_excluding=local_shape_to_shape_i"
echo $SGE_TASK_ID
./train_lang.py $SGE_TASK_ID hungarian
|
789ebc8e371a91bc2d96013d4359de95ca6f1158 | 1,754 | #!/bin/bash
help() {
echo Usage:
echo -e "\t" v2ray help
# echo -e "\t" v2ray config : edit config.json
echo -e "\t" v2ray start : start the v2ray service
echo -e "\t" v2ray restart : start the v2ray service
echo -e "\t" v2ray stop : stop the v2ray service
echo -e "\t" v2ray status : show st... |
7c11b994619f993818f09eeb7cad1481f8ff1ca4 | 32 | alias rs='touch tmp/restart.txt' |
f4b92de3fb264b66d896caf85dec166e2a0a1169 | 61 | aws sts get-caller-identity
cd ../terraform
terraform destroy |
5a645c196e5319349ec8fad64c7f9437fbe77b49 | 660 | APP_ENV=local
APP_DEBUG=true
APP_KEY=hpusqCLQJ5plWLPGu7Ol6QITtjTafa7a
DB_HOST=localhost
DB_DATABASE=kppw30
DB_USERNAME=root
DB_PASSWORD=root
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_PORT=465
MAIL_USERNAME=1324888886@qq.com
MAIL_PASSWORD=etmhnfbcxuxihehf
MAIL_ENCRYPTION=ssl
ALIPAY_RE... |
cc0ab4e987f95410bacc3684a8eadb82f335f7ba | 111 | #!/bin/bash
for i in `seq 0 4096`;
do
/problems/995871fcb203d3e223e9e4aaa65e4053/bashloop $i | grep flag
done
|
1f9fbf6c27812d96bffff968b4e791560f7b44bd | 1,730 | #!/usr/bin/env bash
. lib.bash || exit
url_size() {
local url=$1
size=$(curl -fsS --head "$url" |
tr A-Z a-z |
awk -F: '/^content-length:/ {print $2}' |
tr -dc 0-9)
echo $size
}
algo=""
name=""
size=-1
url=""
use_ext=0
while getopts ":125u:s:" OPT; do
case $OPT in
1) algo=SHA1;;
2) algo=SHA256;;
5) alg... |
a230525a9179d4a57d209a9cd9be5aec753e8e09 | 372 | """for i in {0..100..-2};
do
mkdir $i;
cd $i;
echo "I am in directory: $PWD";
cd ../;
done
echo "completed""""i
"""for i in {100..0..2};
do
mkdir $i;
cd $i;
echo "I am in directory: $PWD";
cd ../;
done
echo "completed""""
for i in {0..100..2};
do
mkdir $((100-$i));
cd $((100-$i));
echo "I am in... |
85518b1e1c5ce327790af962e64bb2ea72389de5 | 402 | #!/usr/bin/env bash
$(dirname $0)/update.py && $(dirname $0)/ssh_cloudmaster.py 'sudo salt "fp-*" cmd.run "rm /home/lantern/wrappers_built /home/lantern/uploaded_wrappers /home/lantern/reported_completion"' && $(dirname $0)/ssh_cloudmaster.py 'sudo salt "fp-*" state.highstate' | tee hslog ; echo "If there is any print... |
e962b3851fd610c67f7623c4e2ab320b86a65346 | 1,079 | #!/bin/bash
waitTime=${1:-5}
script="${@:2}"
tz="-4"
if [ -z $script ]; then
echo "Usage: estPercent.sh <waitTime> <script>"
exit 1
fi
clear
echo "Wait for initial readings"
lastRead=$($script)
lastTime=$(date +%s)
i=0
function calcTime() {
dRead=`bc <<< "$thisRead - $lastRead"`
dTime=`bc <<< "$thisTime -... |
e809eaa6cf56618a0aa73fa9a0071fe4e8fd2782 | 4,533 | #!/bin/bash
#
# topmed_gcepull.sh -submit bamid -retry
#
# Copy remapped CRAM for a sample from GCE
#
. /usr/cluster/$PROJECT/bin/topmed_actions.inc
topmed_check_recab=/usr/cluster/$PROJECT/bin/topmed_check_recab.pl
me=gcepull
markverb=$me
if [ "$1" = "-submit" ]; then
shift
bamid=`GetDB $1 bamid`
MyRealHost ... |
330067784ff2755070a6ed95d28f5aaadabb89a8 | 262 | #!/usr/local/bin/bash
# Runs the speak_easy model with my default hard drive directories.
venv/bin/python speak_easy.py --train_dir='/Volumes/HD/SPEAKEASY_DATA/REDDIT/reddit_data/' --data_dir='/Volumes/HD/SPEAKEASY_DATA/REDDIT/reddit_data/data_25000_reddit' $@
|
bcb541b209f56e7dedb08d7cf6f9cb553a5eadf1 | 81 | #!/bin/bash
source ~/dev/bin/activate
python train/train_cebm.py --device=cuda:0
|
a534f8d6941be78f942c02c979e13b06e54eead1 | 1,134 | #!/usr/bin/env bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex
sudo apt-get install --yes --no-install-recommends \
g++-arm-linux-gnueabihf \
gcc-arm-linux-gnueabihf \
libc-dev:... |
c394dc2f124f3884ea5d7d0ca5bfa78d01cd457e | 3,040 |
##tranfer files into /data/finalproject/datafiles
unzip /data/finalproject/datafiles/On_Time_On_Time_Performance_2015_1.zip -d /data/finalproject/datafiles/unzipped
unzip /data/finalproject/datafiles/On_Time_On_Time_Performance_2015_2.zip -d /data/finalproject/datafiles/unzipped
unzip /data/finalproject/datafiles/On_T... |
585505f19b844094d58fd401caea802ed5cd7045 | 195 | #!/bin/bash
cd /root/ue/cmake_targets/ran_build/build/ && ./lte-uesoftmodem -O /root/ue/ci-scripts/conf_files/ue.nfapi.conf --L2-emul 3 --num-ues 1 --nums_ue_thread 1 --nokrnmod 1 > ue.log 2>&1
|
9bf87da053402d4af1e33bcdca45148ec31e0d36 | 531 | #!/bin/bash
# Ask user name
echo Sa!, kiu vi estas?
read varName
echo Bonvenon $varName
echo -------------------------------------------------
echo Tempo da login
echo -------------------------------------------------
read -p 'Username: ' userVar
read -sp 'Password: ' passVar
echo
echo Dankon $userVar nun ni havas ... |
b4efc5dee374a45679fe4d1d1a39622d2905f2d9 | 442 | INPUT=inputs/inputs.csv
OLDIFS=$IFS
IFS=,
[ ! -f $INPUT ] && { echo "$INPUT file not found"; }
while read application package
do
echo "application : $application"
echo "package : $package"
ls "bins/$application"
java -d64 -Xmx10000m -jar libs/model-generation.jar -project_cp "bins/$application" -project_pre... |
8cdbb965d27fec27028fefb132b709687c767a22 | 73 | apt-get install squid3
cp squid.conf /etc/squid/ -rf
service squid start
|
dd85391e1b6a320f518a21743b692900c12681ce | 449 | dir=~/dotfiles
olddir=~/dotfiles_old
files="bashrc bash_profile ctags gitconfig vim vimrc"
echo -n "Creating $olddir for backup of existing dotfiles in ~..."
mkdir -p $olddir
echo "done"
echo -n "Changing to the $dir directory..."
cd $dir
echo "done"
for file in $files;
do
echo "Moving any existing dotfiles from ~... |
fa2b227136332c0e69ee2d7e6c1d5c86923f5a18 | 3,737 | #!/bin/bash
# This is a very hackish script that tries to convert an Avro schema to a mySQL DDL
# (and with small modifications works fine for PostgreSQL and MS SQL Server)
# Sometimes works well, and sometimes fails miserably...
#
# My long-term plan is to look at Hibernate's DDL creation methods and see if I can g... |
bdf5d80c713af8fdca70e50d91d4fba92e3e908e | 7,808 | #!/bin/sh
if [ $# != 3 ]; then
echo "$0 <directory> <all | quick> <smbtorture4>"
exit 1
fi
SMBTORTURE4=$3
SUBTESTS=$2
##
## create the test directory
##
PREFIX=`echo $1 | sed s+//+/+`
mkdir -p $PREFIX || exit $?
OLD_PWD=`pwd`
cd $PREFIX || exit $?
PREFIX_ABS=`pwd`
cd $OLD_PWD
if [ -z "$TORTURE_MAXTIME" ]; then
... |
ec7ebb3206a79414ab15c8d0d349a8762cf2c4c8 | 792 | # Maintainer: Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>
pkgname=startupwmclassfixer
_gitname=StartupWMClassFixer
pkgver=0.1.1
_pkgver="v${pkgver}"
pkgrel=1
pkgdesc="Fix unrecognized, ugly or double icons in Linux."
arch=('i686' 'x86_64')
url="https://github.com/bil-elmoussaoui/${_gitname}"
license=('GPL-2.0')
prov... |
e779178b9b71e488b028cc818c899adbbd8a5593 | 2,134 | #!/bin/sh
export VERSION=0.7.5
./makeHelpTextC.sh
./makeManPage.sh
./makeLicense.sh
make bmcapture
make bmclient
make bmdb
make bmws
make bmsync
make clean
PACKAGE_DIR=package
sudo rm -rf $PACKAGE_DIR
BIN_DIR=$PACKAGE_DIR/usr/local/bin
mkdir -p $BIN_DIR
mv bmcapture $BIN_DIR
mv bmclient $BIN_DIR
mv bmws ... |
88d1f5d9dee14131804d6d593d5fd0744636ba2e | 1,241 | #!/bin/bash
# 脚本来安装配置mysql
# mysql.sh mysql_password
# author: Xiong Neng
echo "====================change root password===================="
mysqladmin -u root password $1 2>/dev/null
echo "====================grant privilege to remote================="
hostnm=$(hostname)
mysql -uroot -p$1 -e "grant all privileges ... |
4a09ec0f4afb49db31b619c5c02c6742f6c9dd1a | 178 | export container_name=chatbot
docker rm -f $container_name &> /dev/null && \
docker-compose up --remove-orphans --force-recreate --build -d $*
docker logs -f $container_name
|
eb9a63c5df8146239ff1e4a0d23aa4fa34533baf | 139 | #! /bin/bash
uwsgi --socket 127.0.0.1:5000 --wsgi-file wsgi.py --callable app --master --processes 4 --threads 2 --stats 127.0.0.1:5001
|
bf61ef54e2e8db819073f51ee7e2634665f0b1dc | 4,592 | #!/bin/bash
PORT=5439
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/
cd $DIR
# path of each script
POSTGRESQL_DATA=$DIR"../PostgreSQL/data/"
POSTGRESQL_SERVER_SCRIPT=$DIR"../PostgreSQL/postgres_script/script_server/"
POSTGRESQL_CLIENT_SCRIPT=$DIR"../PostgreSQL/postgres_script/script_client... |
4a2acc6690d9bb484a18d5ce25ce7733f57c7d42 | 63,914 | title=冥 Rockin' SWING REMIX
artist=164
effect=PHQUASE
jacket=jacket.png
illustrator=NAGI-SHIO
difficulty=Infinite
level=15
t=200
m=nofx.ogg;inf.ogg
o=0
bg=desert
layer=arrow
po=0
plength=15000
pfiltergain=50
filtertype=peak
chokkakuvol=50
icon=../sdvx02.png
ver=140d
--
beat=4/4
0000|00|--
0000|00|--
0000|00|--
0000|00... |
391c382e53a5659eb8c80a3a3bc61981ec73d0d4 | 69 | ssh -n $1 "nohup java -jar $2 $3 100 FIFO $4 $5" >> server_out/$4.out |
491a51496afb34b6685951e1bb51fadc7190da32 | 1,567 | #!/bin/bash
git init
git config --global user.name 'Jordan Iwase'
git config --global user.emaul 'jiwase@asu.edu'
git add japi.out
git add japi.py
git commit -m 'comment string'
git commit -am 'comment string'
git status
git status -s
echo 'hello there' > hello.txt
git status
git status -s
git add hello.txt
... |
8f8c8a18d6b744a1e86c1954ec1ee5781200f8a9 | 2,036 | #!/bin/bash
#Script:bshare_rsync.sh
#Author:damon
#DATE:2013/07/15
#REV:1.0
#Action:package rsync function into an api
SYNC_USER=""
SYNC_USER_ID=""
SYNC_PORT=
SYNC_AUTH="ssh -p $SYNC_PORT -i $SYNC_USER_ID"
RSYNC="/usr/bin/rsync"
function move_file(){
#3 parametes for this function
#move files by rsync
CP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.