blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
905e6affa29c3b9ff2fd34639553b6005ed758ab | 595 | #!/usr/bin/env bash
echo -e "\033[32m"
echo "##############################################"
echo "# Auto-Launch System #"
echo "##############################################"
echo "pku2018!)#)"
echo "##############################################"
echo -e "\033[0m"
echo "当前上线服务器:39.106.6.6"
... |
8c3abdebe61c2dfd72d61f964a414bc14216e919 | 75 | #!/bin/bash
while :
do
python3 main.py --action-type=8
sleep 10
done
|
25581477f7468bbdf413c9d06c591a0f36657ba0 | 181 | DB_PRODUCTION=INSERT_YOUR_DATABASE_URL_FOR_PRODUCTION
DB_TEST=postgresql://USER:PASSWORD@HOST:PORT/testcidenet
DB_DEVELOPMENT=postgresql://USER:PASSWORD@HOST:PORT/developmentcidenet |
024c93bf74323be722aee083c7d6c9abeb7129df | 774 | # Project directories
PROJECT_DIR=$PI_SCRATCH/OPUS
IN_DIR=$PROJECT_DIR/NIMS_data_anonymized
# Search for anatomical files
FUNC_DIRS=`find $IN_DIR -name "*BOLD_EPI_29mm*"`
printf "%s\n" $FUNC_DIRS
# Number of timepoints to trim
N_TRIM=3
for d in $FUNC_DIRS; do
# Get file
IN_F=$(find $d -name "*.nii.gz")
OUT_F="${I... |
7bc471e87980f57d9356620a9efdc2e474e79d17 | 1,044 | #!/bin/bash
# if project_source directory exists we assume it as a fresh start for this container
if [ -d "/root/project_source" ]
then
echo "Doing initial setup..."
# move all the sources
cp -r /root/project_source/* /root/workspace/
rm -rf /root/project_source
# not sure what's the point of settings-docker... |
2aff6201b41c962ee93a909a1d488fd3df43fe74 | 209 | #!/bin/bash
#PBS -l nodes=1:ppn=1,pmem=4gb,walltime=01:00:00,feature='intel:!harpertown'
#PBS -N affy_normalize
#PBS -q batch
cd ~/Pipeline/SCAN
scripts/normalizeFile "$inFile" $outputRawIntensities
exit 0
|
0c9bb380a7386283c16f9381b3c4a6b98e4c91fe | 3,568 | #!/bin/bash
# Install script for WPS
# This can't be run as a non-interactive job, as the configuration step requires
# user input.
## configuration settings
INROOT=/work/n02/n02/lowe/Compiling/
APPVER=4.2
WRFVER=4.2.2
COMPILER=gcc
# WRF directory, for use in compilation
WRFDIR=${INROOT}wrf/build/WRF-${WRFVER}
... |
019993099e61aea585b09df12e04a3547ff6867c | 1,483 | #!/bin/bash
sed -e "s|;listen.owner\s*=.\+|listen.owner = ${PHP_FPM_USER}|g" \
-e "s|;listen.group\s*=.\+|listen.group = ${PHP_FPM_GROUP}|g" \
-e "s|;listen.mode\s*=.\+|listen.mode = ${PHP_FPM_LISTEN_MODE}|g" \
-e "s|user\s*=.\+|user = ${PHP_FPM_USER}|g" \
-e "s|group\s*=.\+|group = ${PHP_FPM_GROUP}|g"... |
43839a5036cbd9464528a768a41159a467231a53 | 5,122 | #!/bin/bash
S3_BUCKET=<insert-bucket-name-here>
HPROF_S3_FOLDER=hprofs
HPROF_LOCAL_DIR=/tmp
COMMAND=$1
# consider looking at sse-c as well (also aws:kms)
SERVER_SIDE_ENCRYPTION_AWS_CLI="--sse AES256"
SERVER_SIDE_ENCRYPTION_S3_CMD="--server-side-encryption"
# s3 client backend selection
#BACKEND="s3cmd" # stil... |
5f6cd80788142cfa69f6d7eaf3311e4e21c58031 | 107 | # SMTP
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=
# Database
DB_USER=
DB_PASS=
DB_HOST=
DB_PORT=
DB_NAME= |
6767ecb5a91a6d1e4ad5d30c0994b7c767ba1d6a | 475 | #
# Set visibility timeout for all queues in AWS Profile whose URL matches the needle.
#
# Requirements:
# aws CLI
# awless
# AWS profile setup
# jq
#
TIMEOUT_IN_SECONDS=3600
AWS_PROFILE=my_profile
NEEDLE=alpha
for queue in $(awless -p $AWS_PROFILE list queues --format json | jq -Mr '.[] | .ID' | grep ${NEEDL... |
1254293a5f6c2ebac89a356205585b993791508e | 71 | BROWSER="chromium"
REACT_APP_API_KEY="348e8dfdecea650a4a63e8c392d823c6" |
2862b96971c210211611177df2c4b08559ed5837 | 730 | #!/bin/bash
author_name="Brian Yi ZHANG"
author_email="brianlions@gmail.com"
date_format="%a %b %d %H:%M:%S %Y %Z"
#date_format="%Y/%m/%d %H:%M:%S"
for fn in "$@"
do
# get first commit id of the specified file
commit_id=`git log --oneline "$fn" | tail -1 | gawk '{ print $1 }'`
# get date and time from comm... |
857e8d9b8155cd60528d2db9f9582ff2c8dcfe13 | 173 | #!/bin/bash
# add a demo user account
if ! $ROOTCMD getent passwd tux ; then
$ROOTCMD adduser --disabled-login --gecos "Tux" tux
$ROOTCMD usermod -p "$TUXPW" tux
fi
|
fec4f37556eeab5784027f4590f1e07f37e2af3c | 193 | #source /home/mzvyagin/.bashrc
lustre
cd resilient_alexnet/resilient_alexnet/
python alexnet_tune.py -o results/fashion_exp3.csv -n 0 -t 8 -j standard.json -p fashion_exp3 --minimize_difference |
6995065ee52d198ab08d5bef9ece89c296dfacfd | 250 | npm run example-ace
npm run example-ajax
npm run example-components
npm run example-counter
npm run example-interpret
npm run example-intro
npm run example-keyboard-input
npm run example-lifecycle
npm run example-multi-component
npm run example-todo
|
e00920f54a8834b6d38eeea8dcec71615afff73f | 1,260 | #!/bin/bash
check() {
hash $1 2>/dev/null || { echo >&2 "This needs \`$1\` to function properly. Please consule the poe-ui readme for more info."; exit 1; }
}
check git
check npm
check make
if [[ $(ls -l | wc -l) -gt 1 ]]; then
answer=Y
read -e -p "project is not empty. abort? ($answer) " answer
answer="${in... |
19cfd1b57f0f0fa7f79c3df1e7f2bffe87aed6ab | 248 | # description: Your Twilio phone number for sending and receiving messages
# format: phone_number
# required: true
TWILIO_PHONE_NUMBER=
# description: Name of the Sync List used to store post data
# configurable: false
SYNC_LIST_NAME=MMS_SYNC_LIST |
22c57bf5620c5ee746607191c98e868d13894ca6 | 2,443 | #!/bin/bash
#
# Jenkins build script to make and test a ros package. The package, with its
# stack is also expected to be checked out into $WORKSPACE, which is what
# jenkins does.
# * Creates an overlay in $WORKSPACE of the installed ros and shadow dependancies.
# * Fixes test out put to be under jenkins workspace so... |
5b8a494f6c1a043b4ccd5c2cb949c4ed7df587da | 739 | #!/bin/bash
cur=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
package="pbmock"
which $cur/../tools/bin/mockgen >/dev/null
if [ "$?" != 0 ]; then
echo "'mockgen' does not exist, please run 'make tools_setup' first"
exit 1
fi
echo "generate grpc mock code..."
cd $cur/../dm/pb
for file in ./*pb.go; do
prefix=$(echo... |
574bfbf7f551557f0006066dadb2e3637370a736 | 1,065 | fly -t lite login -c http://127.0.0.1:8080 -u concourse -p changeme || (echo "please login yourself since http://127.0.0.1:8080 is not the right docker-machine ip for you" && exit 1)
echo "inserting value"
docker-compose exec config bash -l -c 'source /vault/server/init_vars && vault write secret/concourse/main/main/f... |
c16ba33a562a8aae7fc02b211433ee2ebdcb260f | 5,531 | #!/bin/bash
# Copyright 2014 Intel Corporation, All Rights Reserved.
# 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... |
0b4b834726c10112a2611c8f88debf1f857cf211 | 586 | #!/bin/bash
echo "LOOP FOR"
ARRAY=(1 9 2 3 11 23 0)
for i in 0 1 2 3 4 5 6
do
echo ${ARRAY[$i]}
done
echo "- - - -"
for i in {0..6}
do
echo ${ARRAY[$i]}
done
echo "- - - -"
SIZE=${#ARRAY[@]}
for i in `seq 0 $[SIZE-1]`
do
echo ${ARRAY[$i]}
done
echo " Max and Min value from array: "
ARRAY2=(1 2 9 7 45 23 5 -3 ... |
5d9b44acf3326200af634ba53a86dabf052d47ec | 48 | (another-venv)$ deactivate
$ rm -R another-venv
|
fb07008b54aef0bf20d7c63f807e6da79705989f | 2,331 | #!/bin/bash
/usr/local/cuda-10.0/bin/nvcc -I/usr/local/fmt-5.2.1/include -I/home/pbarletta/chemfiles08/build/install/include -I/home/pbarletta/labo/18/GANA/include -G -g -O0 -std=c++11 -gencode arch=compute_61,code=sm_61 -M -o utils.d ../src/utils.cpp
/usr/local/cuda-10.0/bin/nvcc -I/usr/local/fmt-5.2.1/include -I/ho... |
8dd7dbdda96e0f3147f26f9ff9635145cd20be86 | 616 | #!/bin/bash
yum install -y zip wget tar make gcc zlib zlib-devel openssl openssl-devel
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
tar -xzvf Python-3.6.1.tgz
cd Python-3.6.1 && ./configure && make
make install
# Install & activate virtualenv
cd /root
/usr/local/bin/pip3 install virtualenv
/usr/local/b... |
fe845f8d149354e085b5f20f529131666a1dedb4 | 475 | #!/bin/bash
export VAULT_SECRET_TOKEN=vault-init-token
export VAULT_TOKEN=$(kubectl get secret ${VAULT_SECRET_TOKEN} -o json --namespace default | jq --raw-output '.data."unseal.json"' | base64 --decode | jq -r ".root_token")
ORG="tikalk"
TEAM="tikal-devops"
POLICY="vault-admin"
vault policy write ${POLICY} admin-p... |
8e171c9c909e469d9540483e965566007a1adfa8 | 4,030 | #!/data/data/com.termux/files/usr/bin/bash
#codigo 17 dw Noviembre del 2018
pregunta1=$(base64 -d $PREFIX/libexec/termux/.quiz/pregunta_1)
respuesta1=$(base64 -d $PREFIX/libexec/termux/.quiz/resp_1)
clave_1=$(base64 -d $PREFIX/libexec/termux/.password/pass)
function inicio_opc {
source $PREFIX/libexec/.banners/lo... |
c18abfbe8d76cd1773059c88d1693aae3309d93a | 625 | #!/usr/bin/env bash
pnpm_path=$1
pnpm_version=$2
node_bin=$3
# PNPM envs are required for self-installer to work
export PNPM_VERSION=$pnpm_version
export PNPM_DEST=$pnpm_path
export PNPM_REGISTRY=https://urbancompass.jfrog.io/urbancompass/api/npm/npm/
export PNPM_BIN_DEST=$pnpm_path/.dump
## If pnpm path exists then... |
937bd5db492fe9314bab01ea212f1d9246e26079 | 458 | #!/usr/bin/env bash
echo "Guessing game start, please guess how many files are in current directory"
function check {
echo "Enter number of files in current directory:"
read check
files=$(ls -1 | wc -l)
}
check
while [[ $check -ne $files ]]
do
if [[ $check -gt $files ]]
then
echo "TOO HIGH, guess again"
... |
1d68358b55515088141d93ba0877c165b6074e29 | 614 | #!/bin/bash
# Find a file recursively containing a pattern
set -f
if [ $# -eq 1 ]; then
pattern="$1"
file_glob_pattern="*"
dir_pattern="."
elif [ $# -eq 2 ]; then
pattern="$1"
file_glob_pattern="$2"
dir_pattern="."
elif [ $# -eq 3 ]; then
pattern="$1"
file_glob_pattern="$2"
dir_patte... |
504a52572f324fc38e274001b08a2feafd752478 | 61 | #!/bin/bash
echo -n "load "
awk '{ print $1}' /proc/loadavg
|
dbb95f15106fdff9082ed743a68e3910e55c872a | 1,644 | # Setup dir structure
mkdir data data/raw_fastq data/trimmed data/aligned data/reference data/stats/ data/sorted data/mkdups data/calls
# Download the raw sequence data, note that it is heavily downsampled to run really fast
curl https://storage.googleapis.com/nigms-rnaseq/SRR13349122.fastq --output data/raw_fastq/SRR... |
cb725376caead166a8b441130fa5c04782cf26d7 | 243 | #!/bin/bash
#sed "s~%API_URL%~${API_URL}~g" ../../nginx.conf.template
sed "s~%API_URL%~${API_URL}~g" /tmp/nginx.conf.template > /etc/nginx/nginx.conf
cat /etc/nginx/nginx.conf
echo "---> Starting nginx ..."
/usr/sbin/nginx -g "daemon off;" |
8692a039cf85ee96b339b800147c94d76462de6a | 49 | ../../../14.04/daemon/osd_scenarios/osd_common.sh |
4307d2e8aaf0b980a4743cb161864e1fbe26ac21 | 77 | mysql -uroot -proot mysql-db < "/docker-entrypoint-initdb.d/create-table.sql" |
5b65fcca32a18327412957029fddda4cc2e3b393 | 1,116 | # Maintainer: Timo Schmid <arch@timoschmid.de>
pkgname=vim-pct-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r9.1ea3892
pkgrel=1
pkgdesc=""
arch=('any')
url="https://github.com/d0c-s4vage/pct-vim"
license=('MIT')
groups=()
depends=('gvim' 'python2-peewee' )
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'... |
15eb8d876c79e0ce9f44ff9a7c2d862d6f977f6b | 250 | gotgo -o tree.go --package-name=rbtree tree.got interface{}
gotgo -o temp_sortedset.go --package-name=rbtree sortedset.got interface{}
sed -n '1h;1!H;${;g;s/func testTypes.*f(arg0).*}//g;p;}' temp_sortedset.go > sortedset.go
rm temp_sortedset.go
make |
71cb4f15323494cd36be171168cfd6222f1c7530 | 128 | #!/usr/bin/sh
vendor/bin/openapi --output web/docs/openapi.json --exclude vendor --exclude tests --exclude web --format json ./ |
5d5234e9b48d48fc61fcdf40fda808365a5cfe62 | 329 | #!/usr/bin/env bash
source ${utils_scripts}/utils.sh
log begin
source ${scripts}/logstash_utils.sh
ensure_home_var_is_set
log info "Execute change input command with URL : $url"
replace_conf_file $LOGSTASH_HOME/conf/1-1_logstash_inputs.conf "input" $url || error_exit "Reconfiguration failed"
send_sighup_ifneeded
... |
abc143c2a78128d4a201898bf0602cfebd2ffe7f | 10,189 | #!/bin/bash
# Copyright (C) 2018-2022 F5 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 agreed to ... |
701102ae62a9183e633ae045ef865888aab986c9 | 2,064 | #!/bin/bash
find . -iname "*.mp3*" -o -iname "*.flac*" -o -iname "*.aif*" -o -iname "*.wav*" -o -iname "*.mp4*" -o -iname "*.ogg*" | while read filename;
do
IFS=$'\n' printf "\ntouch -t $(stat -f "%Sm" -t "%Y%m%d%H%M" "$filename") \"$filename\"";
#printf "\ntouch -t \"$filename\"";
done;
printf "\n";
Object.defin... |
1994a84ddb182f2b30dca8cf62438ba5c83a751e | 977 | #!/bin/bash
TOUCHPAD_ID=$(xinput |grep "TouchPad"|python -c "import sys;sys.stdout.write('%s'%sys.stdin.read().split('\t')[1].split('=')[1])")
TOUCH_STATE=$(xinput list-props $TOUCHPAD_ID|grep "Device Enabled"|python -c "import sys;print sys.stdin.read().split()[-1]")
#if we got a command line, force that state rather... |
b2377134c7dc44cbf51a6709e1712f3111bb87a1 | 1,268 | #!/bin/sh
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# Builds the framework for the specified target.
# Usage: build-framework.sh <target> <sdk>
# Note: it must be run from Xcode's build phase.
set -e
# Print only target name and configuration. Mimic Xcode output t... |
c781fb96311c04389b8cef755077c272cca6e404 | 86 | #!/bin/sh
cat <<__EOC__ | python3 -m tokenize
a = ("a"
"b")
b = "c" "d"
__EOC__
|
a1827d18e0154b499a5717419ebefaee6eb66fdb | 1,135 | #!/bin/sh
#
# return current CPU usage for CM (tomcat instance), MySQL, or httpd (Apache)
#
case $1 in
mysql)
pid=`ps -eo pid,user,args | grep mysql | grep port | egrep -v "grep|java" | awk '{print $1}'`;
cpu=`pidstat 1 1 -p $pid | grep Average | awk '{print $6}'`;
echo -n $cpu;
;;... |
7d58bf6115afdb815e37afdc717376e0fa214e26 | 60 | #!/bin/sh
$(dirname $0)/scripts/build.pl $(basename $0) $*
|
6d8e475234f1bf26fa0e25ed62dd11c12e8461c3 | 1,301 | #!/bin/bash
project_name=$1
workflow=$2
file_suffix=$3 #extension of input file, does not include .gz if present in input
root_dir=$4
fastq_end1=$5
fastq_end2=$6
input_address=$7 #this is an s3 address e.g. s3://path/to/input/directory
output_address=$8 #this is an s3 address e.g. s3://path/to/output/directory
l... |
cccc3a597f00107aa40a795432ebcf48ae903b06 | 5,898 | #!/bin/sh
#
# Resource Agent for managing hetzner cloud floating ip resources.
#
# License: MIT License (MIT)
# (c) 2018-2018 Sven Speckmaier
#
# Thank you to Tuomo Soini and Lars Marowsky-Brée for writing the IPaddr2
# ressource agent which served as reference and inspiration for this
#
###############... |
218b562360b956f313f0067601b1ee1998c9d684 | 226 | #!/bin/bash
echo "vcs@1234" | passwd --stdin root
sed -i '/^PermitRootLogin/s/no/yes/' /etc/ssh/sshd_config
sed -i '/^PasswordAuthentication/s/no/yes/' /etc/ssh/sshd_config
systemctl restart sshd.service
touch /var/test_file1
|
bb6de4d37654f14b7f6594360af04aeb82d9308e | 303 | # Your Account Sid andAuth Token from twilio.com/console
TWILIO_ACCOUNT_SID=<your twilio account sid>
TWILIO_AUTH_TOKEN=<your twilio account token>
FROM_PHONE_NUMBER=<twilio number to send messages from>
TO_PHONE_NUMBER=<message recipient number>
REG_NO=<school_registration_number>
SMIS_PASS=<password> |
97d1cd0c5cb5ece3f6641ccca66937ef720f4dce | 2,408 | #!/bin/bash
#
# Copyright 2017 International Business Machines
#
# 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 appli... |
554ccc5ed69fd0b331d94cefc501ab324ece4c94 | 428 | #!/bin/bash
set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ `basename $DIR` != "01_build" ]; then
echo "run this script from: 01_build"
exit
fi
rmdir -v BUILD RPMS SOURCES SPECS SRPMS
mkdir -pv BUILD RPMS SOURCES SPECS SRPMS
cd SOURCES
wget http://ftp.halifax.rwth-aachen.de/gnu/wget/wget-1.18.... |
45b614b777dac476a90c9d1841f483448d7d3060 | 1,543 | #!/bin/bash
for i in testCases/*.txt
do
#move the valid accounts file for the required test case to the in directory
cp testAccount/$(basename $i .txt)_validAccounts.txt in/validAccounts.txt
for j in $i
do
echo $j
done | python ../frontEnd.py <$i \ >out/log/$(basename $i .txt).txt.log
#moves the transactio... |
dfb972795d1fc8c21de632eaadd4db5f256c1037 | 423 | #!/bin/bash
#
testDB=$1
pidsFile=/tmp/partitionDrop.pids
#
# Launch cpimport
$MYRHOME/concurrency/queryAndDataMod/sh/partitionCpimport.sh $testDB &
echo $! >> $pidsFile
# Launch partition operations
$MYRHOME/concurrency/queryAndDataMod/sh/partitionDrop.sh $testDB &
echo $! >> $pidsFile
#
# Wait for b... |
e8e0c6e6aa50ac67f7f9548b3d72c49667f8faff | 264 | export PYTHONSTARTUP=~/.pythonrc.py
alias grep='grep --color=always'
alias ls='ls --color=always'
alias less='less -R'
alias h='history'
alias l='ls -CF'
alias la='ls -Al'
alias ll='ls -l'
alias dot='ls .[a-zA-Z0-9_]*'
alias ss='ps -aux'
alias apt-get='apt-fast'
|
9b49ccb0f9be871b1955a6a40870a35c35bcbd5a | 3,629 | #!/bin/bash
#********************************************************
# [modify the namelist f parameter]
#********************************************************
#Wname="name"
logfile="/wrf/LOG/$Wname/setConfig.log"
date=`date +%Y-%m-%d_%H:%M:%S`
echo " " > $logfile
echo "< setConfig shell start at " $date ">" >> ... |
88cbf7cec9c76a20befa2e7174edcddcbe7c9a46 | 1,839 | #!/usr/bin/env bash
{ set +x; } 2>/dev/null
usage="usage: ${BASH_SOURCE[0]##*/} plist sh"
[[ $# != 2 ]] || [[ $1 == "--help" ]] && {
echo "$usage"
[[ $1 == "--help" ]]; exit # exit 0 if --help
}
# <key>ProgramArguments</key>
# <array>
# <string>/usr/local/bin/LaunchAgents</string>
# <string>run</string>
# ... |
6f5b2179475e2d6dd4f770f4e6e26d822a58f0a9 | 1,357 | #!/bin/bash
#
# Examples with heredoc
#
# https://tldp.org/LDP/abs/html/here-docs.html
# https://linuxize.com/post/bash-heredoc/
# https://stackoverflow.com/questions/2500436/how-does-cat-eof-work-in-bash
# https://stackoverflow.com/questions/7316107/how-to-split-strings-over-multiple-lines-in-bash
# escaping character... |
05d7de771a10340b0ff306468a114a798f78f2da | 504 | #!/bin/bash
sort -u <(expac '%n') <(expac '%E' -l '\n') > /tmp/march-old
grep -v -h ^# /usr/share/march/packages.list | sort -u > /tmp/march-new
while true; do
sort -u /tmp/march-new <(expac '%E' -l '\n' $(</tmp/march-new)) > /tmp/march-new2
if cmp -s /tmp/march-new /tmp/march-new2; then
rm /tmp/march-new2
break
... |
2047bd80625b957cdc727ea66812446b64dcf9d8 | 94 | parallel --jobs 6 < ./results/exp_lustre/run-2/lustre_4n_6t_6d_1000f_617m_5i/jobs/jobs_n3.txt
|
de16b8ffaf1ab0a2a0bf685613783a842f7ee9f8 | 435 | #! /bin/bash
# Copyright (C) 2018 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the MIT license
#
# Creates release tarball and detached GPG signature file for upload
set -e
PS4='# '
set -x
version="$(./conftools/get-version.sh lib/expat.h)"
archive=expat-${version}.tar.bz2
./buildconf.sh
./configure
m... |
f3fd5aab5e6f2663ddcab6a6dc2db626aaa88be3 | 874 | #!/bin/bash
set -o pipefail
while [ $# -gt 0 ]; do
case "$1" in
--ios=*)
ios_version="${1#*=}"
;;
--test=*)
test_env="${1#*=}"
;;
*)
printf "* Error: Invalid arguments.*\n"
printf "Usage: --ios=[11.4|12.4|13.3] --test=[unit|integration|ui]\n"
exit 1
esac
shif... |
9f5e96b1eb5dfe6516540dfc9fc8d0dc29be859d | 1,421 | source .env
SOURCE_NETWORK=localhost
TARGET_NETWORK=localhost
SOURCE_CHAIN_ID=1337
TARGET_CHAIN_ID=1337
yarn hardhat deploy-nft --network $SOURCE_NETWORK
yarn hardhat deploy-nft --network $TARGET_NETWORK
NFT_ADDRESS=0xc975601cC2b320d91b58C0E29fb4D942a3625a2f
yarn hardhat deploy-bridge --nft $NFT_ADDRESS --network $... |
fd03ec49c392fc648e3bf623e7d2986908f5783d | 602 | #!/usr/bin/env bash
## Initialize a Docksal powered DKAN 7.x site
##
## Usage: fin notlocal dc
# Abort if anything fails
set -e
#-------------------------- Helper functions --------------------------------
source $ADDON_ROOT/inc/common.inc
#-------------------------- END: Helper functions ---------------------------... |
74efdd6e109023b5b188e0094a20d5f90cabb9cc | 514 | export FLASK_APP=run.py
# Set up the DEBUG environment
export FLASK_ENV=development
export UI_URL='http://localhost:5000'
export DATA_API='http://localhost:2000/api/v1'
export STAT_API='http://localhost:3000/stat/v1'
export API_JS='http://localhost:2000/api/v1'
export API_PY='http://localhost:3000/stat/v1'
# MongoDB... |
357f8e6f97cb2ad59ecdd34c50ef618e7117871a | 716 | # Contributor: Benjamin Wild <benwild@gmx.de>
pkgname=btcat
pkgver=1
pkgrel=2
pkgdesc="download a torrent file from the network and output its contents to the standard output."
arch=(any)
url="http://jordic.com/btcat/"
license=('unknown')
depends=('python2' 'libtorrent-rasterbar')
makedepends=()
provides=()
conflicts=... |
93201292d3a228b0c6fe9bfc78a6df41bad94b06 | 241 | #!/bin/bash
# http://ru.festivalspeaker.wikia.com
echo "$1"
echo "$1" | text2wave -o /home/alex/Scripts/festival/data/saytext_ru.wav -eval "(voice_msu_ru_nsh_clunits)"
aplay /home/alex/Scripts/festival/data/saytext_ru.wav > /dev/null 2>&1
|
75a55a8532865a494683913f51b76046cf43fe69 | 94 | #!/bin/bash
isExistApp='pgrep apache2'
if [[ -n $isExistApp ]]; then
service apache2 stop
fi
|
4100c703b6023334adbed8ee2e741c23a6340faf | 147 | docker stop rediscontainer
docker rm rediscontainer
docker build -t redis_low_mem .
docker run --name rediscontainer -p 6379:6379 -d redis_low_mem |
7dbf0d7fcc7d47f398a7c837afffe2588d8fd7b6 | 274 | #!/bin/bash
## $1 is the file
## $2 is the starting time
## $3 is Lx
## $4 is Ly
file=$1
output=$1"-av"
time=$2
Lx=$3
Ly=$4
if [[ $# -ne 4 ]] ; then
echo 'usage: file time Lx Ly'
exit 0
fi
gawk -v time=$2 -v Lx=$3 -v Ly=$4 -f MakeavHisto.awk < $file > $output
|
e720fced4c84b5493dbdc2dae8340e346e3534a1 | 642 | #!/usr/bin/env bash
# This tags and uploads an image to Docker Hub
# Step 1:
# This is your Docker ID/path
# dockerpath=<>
dockerpath= angeloobeta/microservice-app
# Step 2
# Run the Docker Hub container with kubernetes
kubectl run udacity-microservice-project\
--images=angeloobeta/microservice-app
--port=80... |
b6115928a5b31c055c1928c4b99cfd3f128866df | 932 | #!/bin/bash
#for i in 0 1 2 3
#do
# t=ultralytics/yolov3:v139 && sudo docker pull $t && sudo nvidia-docker run -d --ipc=host -v "$(pwd)"/coco:/usr/src/coco $t utils/evolve.sh $i
# sleep 30
#done
while true; do
# python3 train.py --data ../data/sm4/out.data --img-size 320 --epochs 100 --batch 64 --accum 1 --weights... |
cf7cb961c94713ba65cc407e7ed5034ee5c55cca | 387 | account=t2_ch_cern_local_users
lifetime=$((86400 * 150)) # Lifetime in seconds. Multiplication factor is days.
comment="HLT Tests"
block="cms:/store/data/Run2022A/MinimumBias0/RAW/v1/000/352/568/00000/d4dcc6b1-0c5d-4b89-a117-d82fbceec7d1.root" # file name
#block="cms:/MinimumBias0/Run2022A-v1/RAW#fc8a2c55-b525-4052-b2... |
28dcb45d554671aca72e9d901663880eb7f66578 | 792 | #!/bin/bash
# check if file path and duration have been provided
if [ $# -ne 2 ]; then
echo "Please provide input image file path and duration as arguments"
exit 1
fi
# set input file path and duration in seconds
input_file="$1"
duration="$2"
# extract filename and extension from input file path
filename=$(basen... |
0862da7955a974e9bc4726a068365360e8f5d062 | 50 | sudo -u postgres pg_dump rfd > backup_file.pgdump
|
c593900d33f8f0fa08bf3dd44d9742616670e1e8 | 257 | #!/bin/sh
kubectl \
--namespace=kube-system \
create secret generic \
newrelic \
--from-literal=license_key=8888888822ccccccccccccc333aaaaaaaaaa4444 \
--from-literal=logfile=/var/log/nrsysmond.log \
--from-literal=loglevel=warning
|
010b7e48e10bc78f4978c0dba7729134d1bd5962 | 1,839 | clear
PROJECT_PATH=$1
STYLE_PATH=$PROJECT_PATH/StyleTransfer/style/$2
array=(${3// / })
echo "- Maya Style Transfer - "
echo "#######################################"
echo "- Creating the environment -"
echo "#######################################"
#Setup the working environment
alias mayapy='/opt/autodesk/maya/b... |
5524441bd525c226af83dc83c1dbe751de849972 | 467 | #!/bin/bash
# /etc/udev/rules.d/80-monitor.rules contains :
# ACTION=="change", SUBSYSTEM=="drm", RUN+="/home/ghislain/bin/udev_monitor_change.sh"
export DISPLAY=:0
export XAUTHORITY=/home/ghislain/.Xauthority
if xrandr | grep "HDMI-2 connected"; then
echo "ondock" | tee -a $LOG
/home/ghislain/.screenlayout/... |
d355857ec826efa3b6138ba742299aa0cc43763b | 8,510 | #!/bin/sh
zfs create zones/ec
zfs set mountpoint=/ec zones/ec
zfs mount zones/ec
cd / && wget -O- -q http://svn.everycity.co.uk/public/solaris/misc/pkg5-smartos-bootstrap-20111221.tar.gz | gtar -zxf-
export LD_LIBRARY_PATH=/ec/lib
/ec/bin/pkg install pkg:/database/mysql-55/client@5.5.16-0.162 pkg:/library/python/mysq... |
c376193728a1b31394c529aa169259437e4eba79 | 926 | #!/bin/sh
uci set wireless.radio0.country='RU'
uci set wireless.radio0.disabled=0
uci set wireless.default_radio0.encryption='psk2'
uci set wireless.default_radio0.mode='sta'
uci set wireless.default_radio0.network='wwan'
uci set wireless.default_radio0.ssid='openwrt'
uci set wireless.default_radio0.key='openwrt1234'
u... |
cd2ed25fe46452000ca886e33e76dcaa615cc35c | 1,422 | #!/bin/sh
#
# This list of commands will install MC and NANO on systems
# based on Scientific Linux 7.x, CentOS 7 or RedHat 7
#
# This is targeting the installation as a generic user
# if you don't have root access to the host
#
mkdir ~/bin
echo 'if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH"; fi' >> ~... |
fb4d7e2dbbd071bb8f4ecc96e9322c15ac088da8 | 482 | #!/bin/bash
# Update role variables to groups_vars
set -o xtrace
cd "$(cd "$(dirname "$0")"; pwd -P)/../"
[[ -s "group_vars/all.yml" ]] && mv -f "group_vars/all.yml" "group_vars/all.yml~"
cat \
<(echo -e "---\n") \
<(cat group_vars/groups.yml | grep -v '^---$' | grep -v '^[[:space:]]*$') \
> group_vars/all.y... |
38144f36b31b72302196249bdd38ede1ecddb4dc | 17,680 | # Old Maintainer: Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Change PKGBUILD sugested by: Nagisa
#########################
## -- Build options -- ##
#########################
_use_nacl=1 # Enable Native Client support.
_use_libpdf=1 # Enable C... |
7eec4c2c06f9d8abf73e2377fddcaabb512ee99b | 83 | DB_CONNECTION =mongodb+srv://nidhaldb:nidhal123@cluster0.k5wfg.mongodb.net/REST-API |
480426256664dfcb0fc4d3cdf2c9c3f369d97499 | 1,646 | #!/bin/bash
config=config.json
prefix=ur5
publisher_port=$( name-value-get --from json $prefix/publisher/data/port < $config )
timeout=0.1
angle_tolerance=0.0001
status_sample=status_sample_stationary.bin
real_target_angles=$( cat $status_sample | ur-arm-status --fields=arm/angles )
real_target_pose=$( cat $status_sam... |
0e0959e65c205c789e7b79ec0ba75aad6f7338b4 | 91 | # enable c++11
if [ -d /opt/rh/devtoolset-3 ];then
source /opt/rh/devtoolset-3/enable
fi
|
e5dc81ded2aa745a32c35f1efd7ec8e627a5617d | 449 | # 输出相同SN第一行到文件receive_first
./4_first_receive_in_filter.sh $1 $2 > receive_first
# 输出相同SN最后一行到文件receive_last
./4_last_receive_in_filter.sh $1 $2 > receive_last
# 合并相同 devEUI
awk 'NR==FNR{a[$1]=$0}NR>FNR{print a[$1],$0'} receive_first receive_last |
# 输出合并结果
awk '{print $0}'|
# 计算send cound
awk '{print $1,"receive coun... |
663c2431873717ffa616a416081834302f257e1b | 782 | pkg_origin=cosmos
pkg_name=libmpeg2
pkg_version=0.5.1
pkg_description="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
pkg_upstream_url="http://libmpeg2.sourceforge.net/"
pkg_license=('GPL2')
pkg_deps=('glibc' 'sdl' 'libxv')
pkg_source=("http://libmpeg2.sourceforge.net/files/${pkg_name}-${pkg_vers... |
27afcae704c4c5443f9e6f86f754e7d206050ae6 | 641 | #!/bin/bash
region=eu-west-1
profile=dev
# Mention all the EC2 instances in the below .txt file for which you want to create AMI
input="./instances_list_for_AMI.txt"
#while read line;
while IFS= read -r line
do
ec2id=${line}
#datetime=$(echo "$(date +'%d-%m-%Y_%H:%M')")
#echo "Instance ID is : ${ec2id}";
# this is... |
d87d35677a7f9ac0e07fd8b01ae24f4523e1c407 | 19 | #!/bin/bash
ninja
|
250b4d36dd65e6070891ce67f65ef35f7317f168 | 632 | #!/bin/bash
echo "UUIIIIIIIIII3"
sudo -S <<< "app" touch /var/log/system-bootstrap.log
sudo -S <<< "app" chmod 777 /var/log/system-bootstrap.log
sudo -S <<< "app" apt-get update >> /var/log/system-bootstrap.log
SELINUXSTATUS=$(getenforce)
if [ "$SELINUXSTATUS" == "Permissive" ]; then
sudo -S <<< "app" setenfo... |
2ca1520b0b127f74edd475c755becaf4f882d412 | 156 | echo "Start crawler"
source /Users/LeeJongHyun/PycharmProjects/hsInvenCrawl/venv/bin/activate
python /Users/LeeJongHyun/PycharmProjects/hsInvenCrawl/main.py |
ce6c4740876ba48402a136cf7e596f70ac055bf9 | 355 | #!/bin/bash
# Pour chaque argument -t, crée la table nommé par ce même argument dans HBase
source ./hbase_shared.sh
SCRIPT=""
while getopts ":vft:" arg; do
case $arg in
t)
SCRIPT=$(printf "%screate '%s_tweets', 'user', 'tweet', 'feeling'; " "$SCRIPT" "$OPTARG")
;;
esac
done
$HBASE_HO... |
1e1e5524c6b793e4d19e1b0eefdf903e01566e5d | 182 | DB_USER= "jqwHQIVN2G"
DB_PASSWORD= "dbWeThqbiq"
DB_HOST= "remotemysql.com"
DB_NAME= "jqwHQIVN2G"
SECRET= "Asereje Ja De Je"
EMAIL= "pruebatecnica.srj@gmail.com"
PASSWORD= "37239066s" |
972ea883dc2109f8536caf6f167ecd14e3fb325c | 382 | #!/bin/bash
genmap () {
sed '1 s/^/source,target\
/' >> temp.test
sed '/dataplaceholder/{
s/dataplaceholder//g
r temp.test
}' d3chart/forceopacity.html
rm temp.test
}
if [ "$1" == "-h" ]; then
echo -e "Usage: cat sample.csv | ./pivotmap.sh > map.html"
echo -e "Examine sample.csv or so.csv for an examp... |
119f1700713d340a2dc3c414d748e8605306768a | 85 | ssh -l vagrant -i .vagrant/machines/control/virtualbox/private_key -p 2222 localhost
|
57fb08b6b182d607d410ea9061f62bb2f936045d | 5,455 | #!/bin/sh -eux
#---------------------------------------------------------------------------------------------------
# Install AWS Command Line Interface (CLI) by Amazon.
#
# The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With
# just one tool to download and configure, you can contro... |
847051ba6119f9beb8b31aa706d1afa93ce91a08 | 1,284 | #!/bin/bash
# view archive contents (images, videos, fonts)
# use G variable to set gallery name
#G=${G:-default}
G=`zenity --title "New gallery" --entry --text "Gallery name:" --entry-text default` || exit 1
DIR=~/.archives/$G
#MKGALLERY=${MKGALLERY:-~/dev/moka/mkgallery/mkgallery.py}
MKGALLERY=${MKGALLERY:-~/dev/imag... |
fc5ad01337ea4f62390e1ba5b798cefb697ecce5 | 186 | #!/usr/bin/sh
# set -x
APPS='pavucontrol\nblueman-manager\ngnome-control-center\narandr\nsystem-config-printer\n'
SELECT=$(echo ${APPS} | dmenu -i -p "GUI settings:")
exec ${SELECT}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.