blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
d100bfe78875a5df91c46d50fa78bcad2f31d06e | 617 | #! /usr/bin/env sh
# Exit in case of error
set -e
DOMAIN=prayer.thirdavenue.org TRAEFIK_TAG=prayer.thirdavenue.org STACK_NAME=prayer-thirdavenue-org TAG=prod docker-compose -f docker-compose.shared.admin.yml -f docker-compose.shared.base-images.yml -f docker-compose.shared.depends.yml -f docker-compose.shared.env.yml... |
b5820830e5a3459f8d3301d1fee18ad51f017b34 | 2,021 | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# locale
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# fix emacs-zsh integration
if [ -n "$INSIDE_EMACS" ]; then
export TERM=screen-256color
fi
# theme
if [ -n "$INSIDE_EMACS" ]; then
ZSH_THEME="pygmalion"
# ZSH_THEME="gentoo"
else
... |
93ff0e6574fc69a96dc892492d6ba3e859db7e5a | 4,519 |
#!/bin/sh
# ============================================================================
# Script to configure Splunk after first Deploy
# Version : 0.1
# ============================================================================
# ============================================================================
# Chec... |
0cd9c0b5603a0ef02d3627df81b315d06c7f914c | 179 | #!/bin/bash -x
read -p "The year to be checked: " year
if (( $year%4 ==0 && $year%100 !=0 || $year%400 ==0 ))
then
echo This is a leap year
else
echo This is not a leap year
fi
|
065b11262ffcf09a79753860013fed1d848c96ec | 615 | ###########################################
##
## Copyright (2019,) Institute of Software
## Chinese Academy of Sciences
## wuheng@otcaix.iscas.ac.cn
##
##########################################
VALUE=gcr.azk8s.cn
KEY=gcr.io
while read line
do
img=$(echo $line | awk -F":" '{print$1}')
ver=$(ec... |
a1a859aecd420cb0953d15192f68ea42afe07600 | 418 | cd
wget https://download.docker.com/linux/static/stable/x86_64/docker-17.12.0-ce.tgz
tar -xzvf docker-*.tgz
mkdir ~/bin
mv ~/docker/docker ~/bin
#apt
sudo apt-get update && sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL htt... |
a141acc23651755cee597db88ea2fa39189e227b | 1,016 | #!/bin/bash
TARGET_ENV=py-local
VE_VERSION="1.9.1"
VIRTUALENV_DIR="virtualenv-$VE_VERSION"
VIRTUALENV_PATH="$VIRTUALENV_DIR.tar.gz"
VIRTUALENV_URL="https://pypi.python.org/packages/source/v/virtualenv/$VIRTUALENV_PATH"
echo -e "Creating virtualenv in $TARGET_ENV."
curl -O $VIRTUALENV_URL
tar xvfz $VIRTUALENV_PATH
c... |
719079ff6002b052bcbded0bb3a439ff58aa22e1 | 152 | read char
case $char in
y)
echo YES
;;
Y)
echo YES
;;
n)
echo NO
;;
N)
echo NO
;;
esac |
5663d8addd9884964aedbfc399dff3251077683e | 3,801 | #!/bin/bash
# handler_build - builds PDF quotes and reports from XML files
#
# This script is part of the PenText framework
# https://pentext.org
#
# Copyright (C) 2016 Radically Open Security
# https://www.radicallyopensecurity.com
#
# Auth... |
c23e064c87afde5246b5fcdde281a64dd646aabb | 10,353 | #!/usr/bin/env bash
# DEPRECATED - use scripts from `lib` directory
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
LICENSE_PULLER_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/license-puller.sh"
export LICENSE_PULLER_PATH
# Unused outside of library.sh (init)
function start_docker() {
ech... |
b93d5d4aee3cb90568ac4aceb24b7d8f0ddf4c9d | 63 | #!/bin/bash -eux
pushd dp-search-reindex-api
make test
popd
|
8e890e6108fddbe5ddb17446115401457b669c64 | 39 | #github.com/DaniAngelov
paste -sd ';'
|
ede4ea14bb68a33fdd4f1ec957452f2da0a9adf5 | 335 | REACT_APP_APIKEY=AIzaSyAnpGTIXyR-nF3_aXYEhc_wwW5h8j3ExQk
REACT_APP_AUTHDOMAIN=truststreet-cd242.firebaseapp.com"
REACT_APP_DATABASEURL=https://truststreet-cd242.firebaseio.com
REACT_APP_PROJECTID=truststreet-cd242
REACT_APP_STORAGEBUCKET=truststreet-cd242.appspot.com
REACT_APP_MESSAGINGSENDERID=1008756843535
REACT_APP_... |
a15bb80b71ab3b02824cd8c012be0e75b4b7e24f | 99 | #!/bin/bash
#
cat - | ruby -ane 'puts $_ if $F[3].match(/^[ACGT]+$/) and $F[4].match(/^[ACGT]+$/)'
|
3f7f038525c721e9ba9a1f1207c0185471649fae | 336 | green=`tput setaf 2`
reset=`tput sgr0`
echo "${green}Creating initial migration ApplicationDbContext... ${reset}"
dotnet ef migrations add InitApplicationDbContext -c ApplicationDbContext -o Data/Migrations/AppMigrations
echo "${green}Updating database ApplicationDbContext ${reset}"
dotnet ef database update -c Appli... |
042e6dba2c3a40d2b2a31ce090714a15513f47bb | 78 | #!/bin/bash
wget -O config.ini $1
java -Xmx12g -jar easier.jar @./config.ini
|
3f06818a4b6fdb5b8801088f8d92c3c277dbb23e | 424 | #!/bin/bash
feat_ark=$1
prons=$2
op_feats_dir=$3
[ -f $feat_ark ] || exit 1
[ -f $prons ] || exit 1
mkdir -p $op_feats_dir/$seq_len
rm -f $op_feats_dir/$seq_len/*
python3 get_feat.py $prons $feat_ark $op_feats_dir $seq_len
#if [ ! -f $feats_dir/extracted ]; then
# [ -f $feats_dir ] && rm -rf $feats_dir
# python... |
4ce7951fd3cd59e289285b6368a446cc628ed9e2 | 103 | DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=beginningPHP
DB_USERNAME=user
DB_PASSWORD=pass
|
1a301dff7691e726cee74950a098a4ed3258a384 | 323 | #!/usr/bin/env bash
set -e
claat export -f md -o codelabs 1pvf74NCNr5ySykfTzbLhxoRrArZvOSWYN5-tIZHY1LI
claat export -f html -o docs codelabs/06a-software-verification/index.md
claat export -f md -o codelabs 1IC2_XaaSklTBX1XGbUEsebXAEIwrWrs0s_zqX8pMj78
claat export -f html -o docs codelabs/06b-wiki-milestone-4/index.... |
53e541c621e8f9383b88dd43b44961e8916a14ea | 312 | . ${DOTFILES_ROOT}/lib/os.sh
if test ${OS} = 'linux'; then
export PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:${MANPATH:-""}"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-""}"
else
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
|
b6caae99ac6c89045db86dbd4a03dfb599eb9e96 | 8,603 | #!/usr/bin/env bash
set -xe
NVIM_VERSION="0.9.1"
NODE_VERSION="18.16.0" # NodeJS LTS
# FZF_VERSION="0.35.0"
# LUA_LSP_VERSION="3.6.4"
# VSCODE_LLDB_VERSION="1.8.1"
NVIM_CONFIG_DIR=${HOME}/.config/nvim
NVIM_SHARE_DIR=${HOME}/.local/share/nvim
NVIM_LIB_DIR=${NVIM_SHARE_DIR}/lib
function reset_config_dir {
echo... |
fe86cbf10f97c4516902bb078f826dac8b55ad49 | 777 | #! /bin/bash
# set -x
unalias ls
UPLOADS="/uploads/datasets"
IMPORTS="/var/www/importeren/app/storage/exports"
for i in $(ls ${UPLOADS});
do
for ii in pits.ndjson relations.ndjson
do
j="${UPLOADS}/${i}/${ii}"
k="${IMPORTS}/${i}/${ii}"
# echo ${j}
# echo ${k}
... |
d98bc52247d6d5b8a14bb31bc4fd3cf4c24a1109 | 6,911 | #!/bin/sh
###############################################################################
# Tape hotplug agent for Linux 2.4 kernels
#
# Copyright (c) 2002 IBM Development Germany, Boeblingen
#
# the GNU Public License applies
#
# Author: Stefan Bader <Stefan.Bader@de.ibm.com>, 2002
#
# History:
# 2002-10-14 Stefan ... |
85003fcd15ff722b13eb65d9d0991c2652b1925d | 514 | #!/bin/bash
# flash a attiny45 with blinkm proprietary firmware
# firmware extracted from http://code.google.com/p/blinkm-projects/wiki/ReflashBlinkM
if [ -z "$1" ]
then
USB=/dev/ttyUSB0
else
USB=$1
fi
PGM="avrisp -b 19200"
#PGM=stk500
# lire fuses
avrdude -V -p t45 -c $PGM -P $USB -U lfuse:r:-:b -U hfuse:r:-... |
b2845df6cf9b6c2c865244fc6f228ce4e6593877 | 342 | #!/bin/bash
workdir=$(cd $(dirname $0); pwd)
mainpy=${workdir}/../main.py
### validate and timing
python -m hetu.launcher ${workdir}/../local_s1.yml -n 1 --sched &
python ${mainpy} --model $1 --dataset $2 --validate --timing --comm-mode PS --gpu 0 &
python ${mainpy} --model $1 --dataset $2 --validate --timing --comm-... |
6d05327d8e6cb889d7ec5b74d109d81763071b08 | 159 | #!/bin/sh
set -e
php vendor/bin/phpunit \
--coverage-clover build/logs/clover.xml \
--coverage-html build/coverage/html \
-c phpunit.xml.dist \
"$@"
|
5570b67ec04c80c7e659360006c8f9d25b6412f4 | 669 | #!/bin/bash
# Script to add georef line to ENVI header
# inputs are .ann and .hdr file name
# note: imaginary .bin files have wrong data type (float instead of complex)
#PARSE
long=$(cat $1 | grep -e "grd_pwr.col_addr" | awk '{print $4}')
lat=$(cat $1 | grep -e "grd_pwr.row_addr" | awk '{print $4}')
longpx=$(cat $1 |... |
281a27086b4d60eddb231e9fa25da2a7306a0580 | 3,736 | # allow shortcut ctrl-W to delete parts of path only
# e.g. a/b/c + ctrl-W -> results in a/b
autoload -U select-word-style
select-word-style bash
autoload -Uz compinit
compinit
if [ -f "$HOME/.config/bash-like/commonrc" ]; then
. "$HOME/.config/bash-like/commonrc"
fi
if [ -f "$MY_CONFIG_HOME/bash-like/append_pa... |
7a21fb9409fd7829e40b19867f64dceea43de95d | 138 | for ip in $(echo 10.11.1.{1..255});
do ping -c 1 -W 1 $ip | grep "bytes from" | grep -oP "\d+\.\d+\.\d+\.\d+" >> ./result.txt &
done
|
db707784202c321cb982a9a82ef6da9898e379ee | 221 | #!/bin/bash
cd /var/app/current/;
. ~/.nvm/nvm.sh;
aws s3 cp s3://intern-config-bcc-filkom-ub/serviceAccountKey.json ./
aws s3 cp s3://intern-config-bcc-filkom-ub/firebaseConfig.json ./
nvm install 14 --lts;
npm ci;
|
784871978066b08c12d44d6bc7df3f67f0001781 | 411 | #!/bin/bash
##################################################
# ent-convert.sh | Joshua Westgard | 2014-01-26 #
#------------------------------------------------#
# Converts the XML entities for greater than and #
# less than symbols into regular characters. #
##################################################
... |
7837a5db8ddced830309d259a94a42aac7c9f8d4 | 151 | #!/bin/sh
/Applications/KeyRemap4MacBook.app/Contents/Applications/KeyRemap4MacBook_cli.app/Contents/MacOS/KeyRemap4MacBook_cli \
select 2
exit 0
|
8b84c4fa4775d64c99928d37c01754f1bcbe3677 | 191 | singularity build mafreport.simg docker://shengqh/mafreport:latest
bbcp -f -w 4m --port 5031 -s 16 mafreport.simg shengq2@cqs3.accre.vanderbilt.edu:/scratch/cqs_share/softwares/singularity/
|
7e0f58c3f281a1c5b944bd02384b963c69c99ff2 | 144 | Cache your authentication details to save time
Locate a commit by its hash
Specify a commit by its ancestry
Interactive staging
Stashing changes |
7013367071a3f5283419857ad31f6fd1f1e7f2a3 | 1,152 | #!/bin/bash
# vyatta.sh
__SELF_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
# shellcheck disable=SC1090
. "${__SELF_DIR}/globals.sh"
if [[ "$DEBUG" == "1" ]]; then
CMD_WRAPPER="echo"
else
CMD_WRAPPER="/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper"
if [[ ! -e "$CMD_WRAPPER" ]]; then
echo "ERROR... |
94f80382170ecb7f0cecf901df1794ee03e37651 | 176 | #!/bin/bash
docker-compose run api-gateway knex migrate:latest --env test --knexfile knexfile.js
docker-compose run api-gateway knex seed:run --env test --knexfile knexfile.js |
8f5b6c6cec4092971c62ca63339c54e402ca7d89 | 46 | SKIP_PREFLIGHT_CHECK=true
process.env.CI=false |
c8210f4d704ba44f6dbc7b484fe04652dbc7507d | 141 | #!/usr/bin/env bash
set -Eeuo pipefail
if [ -e "$HOME/.fzf/install" ]; then
echo "⌨️ Update fzf"
"$HOME/.fzf/install" --bin
fi
|
c3292645f7e161018112a933343d9c3d30523ec4 | 61 | for a in `ls`; do cd $a; docker build -t $a . ; cd .. ; done
|
14e99936956cfe09c5bcf4c328b841ffb28a8e94 | 977 | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# ----- alias -------
# 以文件名查找文件
alias nfind="find . -type f -name"
# 查找当前目录下所有文件中是否包含特定字符串
alias sfind="find . -type f -name... |
04f5efbc6dedab9d6ff9729bf9502df728e3f084 | 7,905 | # Configuration
DEFAULT_JAVA='1.8'
DEFAULT_LOCALE='en_US.UTF-8'
# Environment
set +e +u +o pipefail
export \
ANDROID_HOME="$HOME/Library/Android/sdk" \
ANDROID_SDK_ROOT="$HOME/Library/Android/sdk" \
ANDROID_NDK_HOME="$HOME/Library/Android/sdk/ndk-bundle" \
ANT_HOME='/usr/local/opt/ant/libexec' \
GIT_PS1_SHOWDIRTY... |
e546f170102cc3968f93dd9aa180c61a6f0ee130 | 10,619 | #!/bin/bash
#
# Title: restore.sh
# Description: Restore backed-up date and install packages on SharkJack
# Execute with: bash ./restore.sh /path/to/backup.zip (e.g. "bash ./restore.sh /tmp/1-20200101-SharkJack-backup.zip")
# Copy the backup file to the Shark Jack's /tmp directory via SCP (e.g. "scp 1-20200101... |
e90acae0aa6cd480d9afc1006e49cb514b8c8183 | 1,220 | #!/bin/bash
# Start the first process
cd /beat
filebeat -e &
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start filebeat: $status"
exit $status
fi
# Start the second process
/usr/share/run_app.sh
status=$?
echo "Application stopped, wait 60 seconds to ship some logs"
sleep 60
if [ $status -ne 0 ]; then
... |
722f81e15a5b5d4f1ddfb760adde327f25797aab | 71 | #!/usr/bin/env sh
make -f /usr/local/etc/pandoc-bickham-makefile "$@"
|
72e748d39422d061def1d9d2ad9ffaf36548d2de | 23,736 | #!/bin/bash
#
# Script by Rishub Jain, adapted from Mario's biowulf1 script
#
#
# READ THIS BEFORE USING THIS SCRIPT:
#
# This script is designed to work with relion 1.3 and 1.4 on biowulf2. It is meant to run as if you have extracted particles using RELION, but if you didn't you can change things to make it still ... |
da1211be5b8c7d7817dcb57f52a24f580b0961c2 | 116 | #!/bin/bash
read -p "Digite seu nome: " nome
read -p "Digite sua idade: " idade
echo "$nome você tem $idade anos"
|
222d998012229e81ff6254efa481a65d6764e446 | 3,441 | #!/usr/bin/env bash
declare -r INSTALL_SCRIPT_LOCATION="${PWD}/home-assistant-install-scripts"
declare -r CURRENT_USER="${USER}"
sudo -s <<EOF
#constants
declare -r NORMAL_TEXT="$(tput sgr0)" &>/dev/null # No Color
declare -r RED_TEXT="$(tput setaf 1)" &>/dev/null
declare -r WHITE_TEXT="$(tput setaf 7)" &>/dev/null
de... |
07d47b1100a236cb480d1ce2587d236472b2d9a6 | 232 | #!/bin/bash
export PAINTER_SQA_ROOT=~/project/sqa
git remote rm origin
git remote add origin http://github.com/mm-project/qt_painter
git config --global user.name "levibyte"
git config --global user.email "kartol@gmx.com"
git fetch
|
706bb4e77b9e191834e249c409c890ed918a6542 | 36 | java -jar reference-service-1.0.jar
|
d33c4de0cccb3b5793f813412c22e523bd2ba9fc | 67 | #!/usr/bin/env zsh
source "$(brew --prefix asdf)/libexec/asdf.sh"
|
92a7aaee4c2fed59fa86434432c18ddcc79edd97 | 339,889 | #!/bin/bash
#SBATCH -J D_pmar=0.054_dist=100_repair_6_males=24_nmar=21
#SBATCH --time=07:00:00
#SBATCH -p broadwl
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
module load Anaconda3/5.1.0
python3 bowerbird_prog.py ../to_store/D_pmar=0.054_dist=100_repair_6_males=24_nmar=21/parameters/in_00D_pmar=0.054_dist=100_repair_... |
33721188fd3c15dfef10dc5a53bdb0a594e30622 | 886 | #!/bin/shell
curl "https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz" -O Python-2.7.14.tgz
tar zxvf Python-2.7.14.tgz
pathname=`pwd`
cd Python-2.7.14 && ./configure -prefix=${pathname}/Python-2.7.14 --enable-optimizations && make -j && make install
cd -
wget "https://pypi.python.org/packages/72/c2/c09362ab293... |
0006ad80d18d7b908b4dea748997d1804579a5e7 | 1,849 | #!/bin/bash
#
# 18.01.2018 - Adaptate for GL-AR300M
# Installation script for SSLstrip2 + DNS2proxy for the WiFi Pineapple NANO + TETRA.
# I consider this a dirty fix to get sslstrip2 running. It's needed because the upstream libraries are not up to date.
#
# Written by: Andreas Nilsen - adde88@gmail.com - https://www.... |
e87842258becf214ef1f9c690600923701cf8ea8 | 3,860 | #!/bin/bash
set -e
Usage() {
echo " "
echo "Usage: `basename $0` [options] -i <T1_image> -x <Binary Mask>"
echo ""
echo " Compulsory Arguments "
echo "-i <T1.nii.gz> : Image must include nii or nii.gz file extension "
echo "-x <binary brain mask> : Binary brain mask... |
e2af9fa800404581e26bbb2afa2806db52793e0f | 290 | #!/bin/bash -eu
source scripts-pipeline/util.sh
inputvars="\
dwiepi_dwi \
dwiepi_dwimask \
dwiepi_t2 \
dwiepi_t2mask"
setupdo $@
#epi.sh $(varvalues $inputvars) $3
run scripts-pipeline/epi.sh $dwiepi_dwi $dwiepi_dwimask $dwiepi_t2 $dwiepi_t2mask $3
log_success "Made '$1'"
|
dceb0a0ebe2261408269b0d5dd489710e68b3ede | 22 | #!/bin/sh
xcodebuild
|
113f93eae77746e7b2b0c7e4846d34eae4722f0c | 971 | #!/bin/bash
#required for processing files with spaces
#change default file separator
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
if [ "$#" -gt 0 ]; then
fbypath="$1"
files="$1"
else
fbypath="./"
files="./*"
fi
regex=[12]{1}[09]{1}[0-9]{2}
for f in $files
do
#check to see if filename contains a likely year
if [[ $f... |
476e347f41f8dc2461ab6753a85c166b92fbbe60 | 509 | #!/bin/bash --login
#PBS -l walltime=02:00:00
#PBS -l select=1:ncpus=32
#PBS -N split_lib
#PBS -A d411-training
cd $PBS_O_WORKDIR
module load miniconda/python2
# loading virtualenv
echo "loading virtualenv"
source activate qiime1
# setting temporary directory
export TMPDIR=~/qiime_tmp
time core_diversity_analyses.p... |
1367e741178c227e70bbe17ed385ce7a953b72fd | 782 | #!/bin/sh
#PBS -V
#PBS -m ae
#PBS -M cpraveen@gmail.com
#PBS -N mpi_test
#PBS -o pbs_out.txt
#PBS -e pbs_error.txt
#PBS -l nodes=1:ppn=4
#PBS -q test
cd $PBS_O_WORKDIR
echo "Job began"
echo "Working directory is $PBS_O_WORKDIR"
# Calculate the number of processors allocated to this run.
NPROCS=`wc -l < $PBS_NODEFILE`
... |
2242568815dbbfd3e0a91e4ad145e0b9e08f2aea | 45 | #!/bin/bash
python Motion_Control.py &
wait
|
8c2276ad1afabec50e8c86392fabdcc508a79b05 | 511 | #!/bin/bash
dirName=$1
faName=$2
##################################################################################################
# This script gets exons/introns fasta file and merge the sequences that related to the same gene.
#########################################################################################... |
676454c0c4a62de5a73ef7e9cd0a7abef10c4a3d | 216 | #!/bin/bash
#initalize swarm culster and genrate worker token command in a text file
sudo docker swarm init | tee -a workertoken.txt
sudo docker swarm join-token manager | tee -a manager.txt
sudp docker node ls |
a37fcfe2930fe7c10b68d44885a24dfaf68dd827 | 262 | #!/bin/bash
cd /home/user/fitbit/fitbit-support-services
echo "Updating Git.."
git pull origin master
echo "Building App.."
./gradlew build -x test
echo "Building Docker Image.."
./gradlew buildDocker -x test
echo "Restarting Container.."
docker-compose up -d
|
3cb96ff4fd42c5234e157559286548ac603493e0 | 5,743 | #!/bin/bash
##########################################################################
#Name: etcd.sh
#Version: v3.1.5
#Create_Date: 2017-4-19
#Author: GuoLikai(glk73748196@sina.com)
#Description: "编译安装管理etcd"
##########################################################################
App=etcd-v3.1.5-li... |
f702c54c1a8fd11de754d28c98b8af114101654f | 23 | #!/bin/bash -v
tree -x
|
ef10f294b74890e2885430415c428347f768a37f | 1,508 | # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: gucong <gucong43216@gmail.com>
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=embree-isa
pkgver=3.13.3
pkgrel=3
pkgdesc="A collection of high-performance ray tracing kernels (with build-time ISA detection)"
arch=('x86_64')
url="https://... |
718e47a85ca57173af00df225855d88251f9593d | 599 | #!/bin/bash
###
### Dump table structure and data
###
### @author Rich Zygler
###
### vars to hold program locations
PROG_CAT="/bin/cat"
PROG_DATE="/bin/date"
PROG_MYSQLDUMP="/usr/bin/mysqldump"
### other vars
DATA_FILE="/home/rzygler/scripts/db_tables_to_export.txt"
OUT_FILE="/home/rzygler/scripts/export.sql"
#... |
f20b046ff7fa7587b5b3413a4c6424f726751768 | 223 | #!/usr/bin/env bash
rm -rf ./build ./dist
python setup.py sdist bdist_wheel --universal
echo "--- uploading to PyPI with either your username or username=__token__ and an API token recorded."
twine upload dist/pykechain-*
|
3bcd497bf95ec47b5107d5f48016e63844d46c1f | 73 | #!/usr/bin/env zsh
leave () {
conda deactivate
# deactivate
}
leave |
8779eaa9917681f3e244ead3021d242f31ffb2d0 | 1,442 | #!/bin/bash
#Listing the instances
list_instance(){
T=$(aws ec2 describe-instances --query 'Reservations[*].Instances[*].[Tags[].Value,InstanceId]'|tr '"[],' " "|tr "\t" " ")
echo $T|tr " " "\n"|awk ' {print;} NR % 2 == 0 { print ""; }'| awk ' {print;} NR % 3 == 0 { print "******************"; }'
}
#Create New Instan... |
c1949727f632954e57d8515226f368e1cb9ffe00 | 126 | python -m rasa_nlu.train -c nlu_config.yml --fixed_model_name latest -o model --project default --data train_nlu.md --verbose
|
1de0b3a5aed43658c83a6712a86d1ff6e5b14cb4 | 363 | #!/usr/bin/env sh
# https://linuxconfig.org/how-to-configure-your-monitors-with-xrandr-in-linux
# enable only the default monitor #
run() {
xrandr \
--output DP-1 \
--off \
--output DP-2 \
--off \
--output eDP-1 \
--auto \
--output eDP-1 \
--primary \
--dpi 100
removeMonitor DP... |
3c06dedd7c5ca0ff13e2547069f8e0b4256cf5f3 | 308 | #!/system/bin/sh
SERVER=182.18.10.43:10080
sendmessage 0 #begin animation
sendmessage 1 0 0
sendmessage 2 "Downloading update package..."
cd /sdcard/
rm nfsupdate.zip
wget http://$SERVER/nfsupdate.zip
sendmessage 2 "Successfully downloaded."
sendmessage 3 #endanimation
sendmessage 5 "SDCARD:nfsupdate.zip"
|
c059f9bb36a4f95757b3a5261de9cef8ab28e43c | 209 | #!/bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo
echo "Usage:"
echo " $0 file.{h,cpp}"
echo
exit 1
fi
sed -i '/\/\/\ MechSys/,/^$/ s/.h"/.h>/' $1
sed -i '/\/\/\ MechSys/,/^$/ s/"/<mechsys\//' $1
|
5496f84954412e55e6afa9465cca7ead80c0c875 | 7,204 | #!/bin/bash
##############################################
#调用方法:部署脚本
##############################################
timestamp=`date "+%Y%m%d%H%M%S"`
echo ========================================init config.cfg date:${timestamp}====================================
echo ''> config.cfg
if [ "$1" == sit ]; then
echo... |
c08c08cc871559b817d5dfe7e7f88717ce9ece25 | 761 | #!/bin/bash
runningContainerCount="$(docker ps -q | wc -l)"
containerCount="$(docker ps -aq | wc -l)"
zero=0
options=("1: yes" "2: no")
if [ "$containerCount" -eq $zero ]; then
echo "There are no containers to remove."
exit;
fi
if [ "$runningContainerCount" -gt $zero ]; then
echo "There are still contai... |
76d7b98ef7e15d37d73c1493a272061053d0d0ac | 49 | #!/bin/sh
./home1.sh &
./home2.sh &
./home3.sh &
|
c5a9d99aabab6391c4555fa9228f876b07d1204a | 660 | export PATH=/opt/cuda/bin:$PATH
export PATH=/opt/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=/opt/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/openmpi/lib/:$LD_LIBRARY_PATH
source ~/.aliases
export JAVA_HOME=/usr/lib/jvm/java
case "$TERM" in
"dumb")
export PS1="> "
;;
xterm*|rxvt*|eterm*|screen*)
... |
28b7d0f57f3d145684b3e74cbeeaaef74cfa8fe6 | 461 | #!/usr/bin/env bash
# check zsh
if [ "$SHELL" == "/bin/bash" ]; then
echo "please install zsh first";
echo "try ./install_zsh.sh";
echo "aborting...";
elif [ "$SHELL" == "/usr/bin/zsh" ]; then
echo "installing oh-my-zsh";
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/too... |
0d392bcca427bc68c0bccc9a72e2600e6c5ba6c2 | 413 | PORT=80
HOST=0.0.0.0
NODE_ENV=development
APP_KEY=zTxvt_Ztbx-sreDZjoEto82PPPdTy54u
HASH_DRIVER=bcrypt
SMTP_HOST=mail.sanberdev.com
SMTP_PORT=465
SMTP_USERNAME=adonis.demo@sanberdev.com
SMTP_PASSWORD=sanbercodeadonis
CACHE_VIEWS=false
DB_CONNECTION=pg
PG_HOST=54.173.138.144
PG_PORT=5432
PG_USER=pwhrbolyjihcni
PG_PASSWOR... |
496362e3758d14a9873c6959fef3c11135fd5c14 | 275 | docker service create \
--name minidlna-service \
--network=host \
-e FRIENDLY_NAME=moby-dlna \
-e TZ=US/Central \
-e MEDIA_DIR=/data \
--replicas=1 \
--no-resolve-image \
--mount type=bind,src=//nfs/data/media/videos/,dst=/data \
forumi0721alpinearmhf/alpine-armhf-minidlna
|
17d56a0075a217fd5fb999f3a27067397ba25ba1 | 61 | source .bashrc
echo $FIREBASE_CONFIG | base64 --decode > .env |
13152b580b7f31346ebfcf9c3414f1ec1bfcb01c | 373 | #PBS -S /bin/bash
#PBS -N SRS024596-Ray-2012-09-08.1
#PBS -o SRS024596-Ray-2012-09-08.1.stdout
#PBS -e SRS024596-Ray-2012-09-08.1.stderr
#PBS -A nne-790-ab
#PBS -l walltime=48:00:00
#PBS -l nodes=8:ppn=8
cd $PBS_O_WORKDIR
echo "PBS_JOBID -> $PBS_JOBID"
source /rap/nne-790-ab/software/NGS-Pipelines/LoadModules.sh
Si... |
e9e197e7c7c1023bff6a85ea99ef694c855373d6 | 11,123 | #!/sbin/busybox sh
BB=/sbin/busybox
$BB mount -t rootfs -o remount,rw rootfs;
$BB mount -o remount,rw /system;
# first mod the partitions then boot
$BB sh /sbin/ext/system_tune_on_init.sh;
if [ ! -d /data/.siyah ]; then
$BB mkdir -p /data/.siyah;
fi;
# reset config-backup-restore
if [ -f /data/.siyah/restore_runn... |
2f556b07052dacdc1005c3138d9e63cfa3123241 | 81 | package () {
# Valid shell, but not valid for shallow parser
info "Foo\
bar"
} |
b191e43457152276a6256f76984a023816269559 | 144 | #!/usr/bin/env bash
pushd $(mktemp -d)
go mod init tmp
env GOPROXY=https://proxy.golang.org GO111MODULE=on go get -x k0s.io@$(<$OLDPWD/VERSION)
|
d6e2b07ba1bbdf5cacbb642ce48f2440c031ca97 | 62 | #!/bin/bash
notify-send "Activated sub-scheme 'docking.xdrv'"
|
662fef5b52ceb04d798e3da03ab7a40a10a4f8fc | 456 | #!/bin/bash
# Start and stop Confluence server
CONFLUENCE_DIRECTORY=<%= @dir %>
case "$1" in
start)
$CONFLUENCE_DIRECTORY/bin/start-confluence.sh
echo started.
exit 0
;;
stop)
$CONFLUENCE_DIRECTORY/bin/stop-confluence.sh
echo stopped.
exit 0
;;
rest... |
ae47e9368ee1a3276734ac30ff78116976a80e74 | 1,228 | #!/bin/zsh
# tarminal > yarn new:post (package.json)
printf "記事タイトルを入力してください >> "; read TITLE
printf "ファイル名を入力してください(sample.mdx) >> "; read FILENAME
printf "タグを入力してください\n"
printf "既存のタグは以下です\n\n"
ls -r content/article/
printf "\nタグ名 >> "; read TAGS
printf "カテゴリフォルダを入力してください\n"
printf "既存のカテゴリフォルダは以下です\n\n"
ls -r conte... |
e7bf6efb21c955b3b43ab600e4b76b4a61046ab2 | 575 | source $(dirname "$0")/../../rest.cfg
echo '<?xml version="1.0" encoding="UTF-8"?>
<LocationCreate>
<ParentLocation href="/content/locations/1/5" media-type="application/vnd.ez.api.Location+xml"/>
<priority>2</priority>
<hidden>true</hidden>
<remoteId>remoteId12345678</remoteId>
<sortField>PATH</so... |
0dbdbc33329d39adbf3389d16409d98b95f66433 | 1,423 | #!/bin/bash
address_qty=0
simple_start () {
docker run -d --name ethereum-node -v $HOME/ethereum:/root \
-p 8545:8545 -p 30303:30303 \
ethereum/client-go --dev --rpcapi personal,web3,eth --rpc --rpcaddr '0.0.0.0' \
--dev.period 5 --rpcport 8545 --ws \
--wsaddr '0.0.... |
b9a2af988f793709de839fa397a30c9167aa9769 | 526 | #!/bin/sh
set -e
sudo apt-get update || true
sudo apt-get --no-install-recommends -y install \
build-essential pkg-config runit erlang \
libicu-dev libmozjs185-dev libcurl4-openssl-dev
wget http://apache-mirror.rbc.ru/pub/apache/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz
tar -xvzf apache-couchdb-2.0.0... |
cecc2ec81c617c98a4003df508b10af66ce0b4f3 | 568 | # env vars
export EDITOR=/usr/bin/vim
# theme
ZSH_THEME="arrow"
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# if the init script doesn't exist
if ! zgen saved; then
# specify plugins here
zgen oh-my-zsh
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/yarn
zgen oh-my-zsh plugins/npm
zgen oh-my-zsh plug... |
a67f14c692891e4448dc19669f0d92600a04dde4 | 3,877 | #!/system/bin/sh
# This is for deleting amazon apps (it lets you choose what to delete.)
#
# By ANDROID2468
echo "mounting system as RW"
mount -o rw,remount /system
# alexa
while true
do
echo "Do you wish to delete alexa? [Y/n] "
read input
case $input in
[yY][eE][sS]|[yY])
echo "deleting alexa..."
rm -rf... |
dcfb257b59d99b9fbb539bda6ef5384655d20f9a | 11,313 | #!/bin/bash
#
# Obtains a Kerberos ticket.
#
# Changes:
# 20150227 [v 2.0]
# complete rewrite; removed some features that might turn out to be needed
# in the future
# 20200111 [v 2.1]
# added `--verbose` option
#
#
################################################################################
# sourcing check... |
11e7fc9fbad30733c48f21441d5a7ee1540f18ef | 5,286 | #--------------------------------------------------------------------------------------------------------
sed -i s/"#net.ipv4.conf.default.rp_filter=1"/"net.ipv4.conf.default.rp_filter=0"/g /etc/sysctl.conf
sed -i s/"#net.ipv4.conf.all.rp_filter=1"/"net.ipv4.conf.all.rp_filter=0"/g /etc/sysctl.conf
sysctl -p
#安装软件包
a... |
83ba3b315926ce0b4f05d4d19814391892834083 | 456 | TERMUX_PKG_HOMEPAGE=https://github.com/vasi/squashfuse
TERMUX_PKG_DESCRIPTION="FUSE filesystem to mount squashfs archives"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_VERSION=0.1.103
TERMUX_PKG_SHA256=bba530fe435d8f9195a32c295147677c58b060e2c63d2d4204ed8a6c9621d0dd
TERMUX_PKG_SRCURL=https://github.com/vasi/squashfuse/... |
00cb8eb1e6f216ee5474ace357ac9025d920c47c | 117 | roslaunch robots_config rosbridge_ssl.launch ssl:=true certfile:=/ssl/artrobot.cert keyfile:=/ssl/ssl.key port:=9092
|
2d6f98edba061a6f38f76ae48dd598a5586d6680 | 726 | #!/bin/bash
PLAYER=$1
# mouse input
case $BLOCK_BUTTON in
1) playerctl --player=$1 play-pause ;;
4) playerctl --player=$1 next ;;
5) playerctl --player=$1 previous ;;
esac
# position
TIME=$(playerctl position)
# cast to int
TIME=${TIME%.*}
MINUTE=$(($TIME / 60))
SECOND=$(($TIME % 60))
# if seconds < 10,... |
26f022f9c72559343e710c7b71aefaced6d7d291 | 86 | export RUBYOPT='-W:no-deprecated'
bundle exec jekyll build; bundle exec jekyll serve; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.