blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
1a31b36dc71d63209d6f5dd7dab30e64a62339ae | 488 | #!/bin/bash
if [ $# -ne 3 ]
then
echo "$0: number1 number2 number3 are not given" >&2
exit 1
fi
n1=$1
n2=$2
n3=$3
if [ $n1 -gt $n2 ] && [ $n1 -gt $n3 ]
then
echo "$n1 is Biggest number"
elif [ $n2 -gt $n1 ] && [ $n2 -gt $n3 ]
then
echo "$n2 is Biggest number"
elif [ $n3 -gt $n1 ] && [ $n3 -gt $n2 ]
then
echo ... |
fb3bad14bc47306a626751aa675c3f8354160da8 | 182 | #!/usr/bin/env bash
set -e
rm -rf dist/ngx
mkdir -p dist/ngx
tsc --outDir dist/ngx/lib
tsc -m es6 --outDir dist/ngx/lib-esm
webpack --config config/webpack.prod.js --profile --bail
|
1aee404b7524ec8dee75810fa3639982d82b160b | 517 |
cd /home/vagrant
echo "Install perl-build in order to simplify the process of installing Perl versions"
git clone git://github.com/tokuhirom/Perl-Build.git /home/vagrant/.plenv/plugins/perl-build/
echo "Build Perl 5.12.4 version needed by Act"
plenv install -j 9 -D usethreads -D man1dir=none -D man3dir=none 5.12.4
... |
43a42192f15a87aca777412def9426b17355894a | 3,972 | #!/usr/bin/bash
# https://www.server-world.info/en/note?os=CentOS_7&p=openldap
db_config="/var/lib/ldap/DB_CONFIG"
if [ ! -e $db_config ]; then
sudo cp /usr/share/openldap-servers/DB_CONFIG.example $db_config
sudo chown ldap. /var/lib/ldap/DB_CONFIG
fi
firewall-cmd --add-service=ldap --permanent > /dev/null
f... |
69365c0f08fd9c77adfa0a048f97295ece017023 | 166 | #!/bin/bash
DATABASE_NAME=zarthus
mysql $DATABASE_NAME < database/logs.sql
mysql $DATABASE_NAME < database/projects.sql
mysql $DATABASE_NAME < database/visitor.sql
|
c4699473e9554c8153d1c53d7f56d65425eb374b | 677 | #!/bin/bash
if ! [[ -d ~/restore ]]; then
mkdir ~/restore
fi
backup=$(ls ~/ | egrep "Backup-" | sort -r | head -n1)
if [[ backup = "" ]]; then
echo "Not found backups"
exit
fi
for file in $(ls "$HOME/$backup" | sed -r '/[.][a-zA-Z0-9]+[.][0-9_-]+$/d'); do
if [[ -f "$HOME/restore/$file" ]]; then
... |
7f0c2c9340a5b8939383aa258e5750b536d3caec | 1,418 | #!/bin/bash
# encoding:utf-8
#
# Copyright [2015] [Yoshihiro Tanaka]
# 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 appl... |
9692c19d4347c8bd2c3c2a9ce7a26ac9512e455a | 359 | d_start='2014-01-01'
d_end='2014-12-31'
days_diff=$(( ( $(date -ud $d_end +'%s') - $(date -ud $d_start +'%s') )/ 60 / 60 / 24 ))
#Listicle tiles = pup 'li.bf_dom a text{}'
for num in $(seq 0 $days_diff); do
# DO YOUR WORK HERE
pup 'li.bf_dom a text{}'|
grep -oE '^[[:digit:]]+' |
sort -rn | uniq -c
date ... |
582d992fe6e486fa8a0f8f5f801bacbaf95731ad | 2,661 | #!/bin/bash
#filename : cp1.sh reviewed 2
#description: copy the file "start.txt" to another the file "mine.txt".
# If the string "start" is found inside "start.txt"
# replace it for "XXXX" in the process.
# if an input arg is provided, the source file name will
# ... |
0ab17cdcb6cf5ef462afda55986a0bbeca9cd94b | 2,093 | #!/usr/bin/env sh
# Builder per Unbound DNS recursive caching validating server
#
# Luca Cappelletti (2014)
# Public Domain
#
# ricetta per Unbound
# questa ricetta viene eseguita direttamente nella directory corrente
## indagare su hash e command -v in alternativa a which
DEB_PACKAGE="unbound"
DOWNLOAD_URL="http://un... |
5d014a5c8b59f12cbbedaf1ce63d5f48792dd3d5 | 380 | #!/bin/bash
RawROI=$1
diff2struct_mrtrix=$2
#ResultRoot=$3
#if [ ! -d $ResultRoot ] ;do
# mkdir -p $ResultRoot
#done
if [ ! "${RawROI#*.}" == "mif" ] ; then
RawROI_mif=${RawROI%%.nii.gz}.mif
mrconvert $RawROI $RawROI_mif
else
RawROI_mif=${RawROI}
fi
ROIUse=${RawROI_mif%%.mif}-DWI.mif
mrtransform $RawROI_mif \
... |
8a4c9c4b91b95fdc8093513b9495abecf51107de | 53 | # first we MUST update the apt source
apt-get update
|
273d6868c6b36930d416b2619ff8e31dee4268d1 | 790 | #!/bin/sh
PID_FILE=/tmp/radio
RADIO_FILE=$XDG_CACHE_HOME/radio
usage() {
cat << EOF
Usage: $(basename $0) [-hl] <station>
stations: dfl nova kultur
EOF
exit
}
start() {
mpv --quiet $URL > /dev/null 2>&1 &
echo $! > $PID_FILE
echo $URL > $RADIO_FILE
}
off() {
kill `cat $PID_FILE`
rm $PID_FILE
}
CMD=`ech... |
53567ef811def6c3454d8a300eb52e130b5e4380 | 643 | . ../path.sh
gpu=$1
label_type=char
beam=1
DATA_DIR=data/ma/hkust_style_char
data_name=dev
MODEL_PATH=exp/finetune_w2v_seq2seq_onlydev/checkpoint_last.pt
RESULT_DIR=exp/finetune_w2v_seq2seq_onlydev/decode_seq2seq_beam${beam}_${data_name}
TOKENIZERS_PARALLELISM=false CUDA_VISIBLE_DEVICES=$gpu \
python $MAIN_ROOT/examp... |
b2d34640062178e6a6308baf226b42a01cd571ba | 638 |
javac -classpath $HADOOP_PREFIX/hadoop-core-$HADOOP_VERSION.jar -d whvisit_classes *.java
jar -cvf ./freqpair.jar -C whvisit_classes .
hadoop jar $HOME/whvisit/freqpair.jar org.myorg.FrequentPairs /user/hduser/FrequentPairs/whvisits /user/hduser/FrequentPairs/temp /user/hduser/FrequentPairs/output
fs -cat /user/hduser... |
a6f9d52db66a60f6fe2e561eb15460d052f16a0f | 11,374 | # get disk size
df / | sed '1d' |
awk '
/^\/dev\/disk1s4s1/ {
size_byte = $2 * 512 # df uses 512 byte blocks
avail_byte = $4 * 512
total_size_gb = size_byte / 1000000000
total_avail_gb = avail_byte / 1000000000
printf "Size: %.1f GB ... |
46064d9591271e7d7c0913eae0695cba95c30795 | 35 | python3 minfo.py 'strangelove' 1964 |
4f0420e0ef8bf63a079450854036f85ac145dab3 | 493 | #/usr/bin/env bash
docker-sync start -d --no-logd
rm -rf app/vendor
t1=$(date +%s)
docker-compose -f docker-compose.yml run --rm app install
t2=$(date +%s)
rm -rf app/vendor
t3=$(date +%s)
docker-compose -f docker-compose-mac.yml run --rm app install
t4=$(date +%s)
duration1=$((t2-t1))
duration2=$((t4-t3))
echo ... |
df9795cbc861e49c916e5a5c7027e3603afd8cb0 | 602 | #!/bin/sh
PRG="$0"
PRGDIR=`dirname "$PRG"`
HAZELCAST_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`/hazelcast
if [ "x$MIN_HEAP_SIZE" != "x" ]; then
JAVA_OPTS="$JAVA_OPTS -Xms${MIN_HEAP_SIZE}"
fi
if [ "x$MAX_HEAP_SIZE" != "x" ]; then
JAVA_OPTS="$JAVA_OPTS -Xmx${MAX_HEAP_SIZE}"
fi
export CLASSPATH=$HAZELCAST_HOME/*:$CLASSP... |
e2f59844340fc39f062130533cfb6b6e04ee7e96 | 478 | #!/bin/bash
#description /data/repo Backup Script
BACKUP_SERVER="backup.sa.beyond.com"
HOSTNAME=`hostname`
MODULE="Backup"
USER=backup
PASSWORD_FILE=/data/script/backup_lib/passwd
LOCAL_FILE=/data/repo
DATE=`date +%Y%m%d%H%M`
REMOTE_NAME=`echo $LOCAL_FILE | awk -F "/" '{print $NF}'`
LOG=/data/logs/backup.log
... |
ca88f44186344acca64e94e1218253a9fe315eda | 65 | g++ -std=c++11 -O3 -Wall example.cpp -o run
./run $1 $2 $3 $4 $5
|
75fe86c33b2ca8798589b3bc9baa6d63eaecc1f8 | 803 | #!/usr/bin/env bash
# ffcat: Concatenate a bunch of movies/media into a single file
set -eo pipefail
function help {
echo "Usage: ffcat <output> <input [input ...]>"
exit
}
function installed {
cmd=$(command -v "${1}")
[[ -n "${cmd}" ]] && [[ -f "${cmd}" ]]
return ${?}
}
function cleanup {
... |
05fb0c2ee68d8d6ab084bb32f1f6b679fe9e1303 | 2,980 | ############################################# Head of all Scripts ####################################
# The following directories and files are expected to run for SNP calling
refDir=/work/02786/taslima/stampede2/dbs/PH #Reference directory where the reference genome file will be
ref=PhalliiHAL_496_v2.0.softmasked.fa ... |
fa31848826b2425320bc8654e7a8b20a0038bfe8 | 411 | OPENCTI_ADMIN_EMAIL=admin@opencti.io
OPENCTI_ADMIN_PASSWORD=ChangeMe
OPENCTI_ADMIN_TOKEN=ChangeMe
MINIO_ACCESS_KEY=ChangeMeAccess
MINIO_SECRET_KEY=ChangeMeKey
RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest
CONNECTOR_HISTORY_ID=ChangeMe
CONNECTOR_EXPORT_FILE_STIX_ID=ChangeMe
CONNECTOR_EXPORT_FILE_CSV_ID=ChangeM... |
e6e14d157825cb979e86a24579f7de9cc2cd9d33 | 89 | #!bin/bash
mkdir -p ./client/wasm_modules
make clean && make
cd ./client && npm install
|
a58e6e3be272980fd1b8c68d882519462177f6dd | 7,948 | DBA day2
1.约束条件
2.修改表结构
2.1语法结构
2.2添加新字段
2.3修改表结构
2.4修改字段类型
2.5修改表名
2.6删除字段
2.7修改字段名
2.索引
2.1索引介绍
2.2索引优缺点
2.3键值类型 【index/unique/fulltext/primary key/foreign key】
3.主键 [primary key/auto_increment]
4.外键
##################################################################################
约束条件
●作用:限制... |
77fc09870e9196b04762ff80024438c96ddd9017 | 5,228 | #!/usr/bin/env bash
. "$(dirname "${BASH_SOURCE[0]}")/testlib.bsh"
VSI_COMMON_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)"
relpath_check()
{
# echo "python -c 'import os.path as o;print(o.relpath(\"$1\", \"$2\"))'"
# python -c "import os.path as o;print(o.relpath('$1', '$2'))"
# perl -e "use File::Spec... |
f72ea1a9e1932daad338c4ac8f3b2b84fa656cfe | 1,324 | #!zsh
function fill-query-and-params {
local query; query=()
local params; params=()
for a in $@; do
if [[ "$a" =~ "^-" ]]; then
params+=($a)
else
query+=($a)
fi
done
export CMD_QUERY="$query"
export CMD_PARAMS="$params"
}
function print-with-ali... |
fc38d77ddcac530e55e6396588c336153f603f1c | 122 | prof-I --refdir ../rivetanalyses --datadir ./output/ --runs ./output/runcombs.dat --weights ./output/weights --ipol cubic
|
1e0f241d1a6ce9d5c78cd1535e8de738a56da646 | 293 | APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=pgsql
DB_HOST=jenkis-postgres
DB_PORT=5433
DB_DATABASE=jenkis
DB_USERNAME=jenkis
DB_PASSWORD=jenkis
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
|
afaceaa744faeff151cb6359266d8cbd862535b8 | 80 | #!/bin/bash
set -ex
aclocal
autoconf
autoheader
automake --add-missing --copy
|
a1e8955864446900ac5e79b8b96ccc500683f5d3 | 330 | #!/bin/sh
tmux new-session -d unimatrix -s 91 -a -c red -f
tmux split-window -h unimatrix -s 96 -a -c cyan -f
tmux split-window -v unimatrix -s 90 -a -c yellow -f
tmux split-window -h unimatrix -s 96 -a -c blue -f
tmux split-window -v unimatrix -s 90 -a -c green -f
tmux select-layout main-vertical
tmux -2 attach-se... |
cce687ecd29a3201a4fb90552895f224ef7d6f95 | 103 | #!/bin/bash
jekyll build --source ./_jekyll/ --destination ./_jekyll/_site/
cp -R ./_jekyll/_site/* ./
|
901fe8f4ad861dd91c412a80fbc30257947df449 | 332 | function mi { echo "<i class=\"mi\">$@</i>"; }
function sub { echo "<sub>$@</sub>"; }
function sup { echo "<sup>$@</sup>"; }
function smath { echo "<span class=\"math\">$@</span>"; }
function dmath { echo "</p><div class=\"math\">$@</div><p>"; }
function up { echo "<a href=\"${SCRIPT_URI%/*}\">$@</a>↑"; }
#export... |
ed3b95093e10d6f7194a338abeaff7390bd66b1c | 57 | #!/bin/sh
openssl rsa -text -in rsa_private_key_2048.pem
|
25ffc13eacb28b22d4d88ab09acbd72a15ce5319 | 1,022 | #!/bin/bash
CC="g++"
if [ `which my_nvcc` ]; then
NVCC="my_nvcc"
NVCCFLAGS=""
echo "my_nvcc found, use that"
else
NVCC="nvcc"
case $HOSTNAME in
blacksunhat)
#my machine
SDK_PATH="/opt"
;;
*)
SDK_PATH="~"
esac
SDK_HOME="$SDK_... |
73e9bc47dfb93e5fabb4a56bcea84cb96d897657 | 3,533 | #!/bin/sh
#Backup Databases MySQL C/ LOGS -- Criado por: Th14go
#GITHUB- https://github.com/Th14go/script-bck-mysql
DATA=`date +%Y-%m-%d-%H.%M`
#Local onde o arquivo de log sera armazenado.
SYNC_LOG=/var/log/bckmysql/bckmysql$DATA.log
#Variáveis para SQL dos BCK
BASEI="/mnt/backup/MySQL/BASEI-$DATA.sql"
BASEII="/mnt... |
0c536a407e92d270187525c04875bfbeaf6dc647 | 602 | #! /bin/sh
### Legal
#
# Author: Thomas Debesse <dev@illwieckz.net>
# License: ISC
#
_error () {
printf 'ERROR: %s\n' "${1}" >&2
exit 1
}
if ! [ -x "$(which git)" ]
then
_error 'git not installed'
fi
if ! [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = 'true' ]
then
_error 'not within git repository'... |
40d8dadf51b672fd230c81c2d40b11b66b2fd84f | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:3caec574382335b3acb413368b492cbfef1e6443487c43a1ab7005008875cdc2
size 4995
|
26de88000b054ba0374cfa4d7ad228f2da71527f | 166 | #!/usr/bin/env bash
#
# kill the old processes
lsof -i :8000 | grep micro | awk '{print $2}' | xargs kill -9
# start the app
RUST_LOG="microservice=debug" cargo run
|
a24eb6defe0fd80477532bef2d35ecbac84ea7c1 | 784 | #!/usr/bin/env bash
mkdir /data/rs1 /data/rs2 /data/rs3
mongod --replSet m101 --logpath "1.log" --dbpath /data/rs1 --port 27017 --oplogSize 64 --fork --smallfiles
mongod --replSet m101 --logpath "2.log" --dbpath /data/rs2 --port 27018 --oplogSize 64 --smallfiles --fork
mongod --replSet m101 --logpath "3.log" --dbpath... |
f48137aec824579c002ac4951767eb7917862915 | 119 | sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-psycopg2
sudo pip install -r requirements.txt
|
4525bf81dc9462a01cb3c252cfde5dabff12cba1 | 90 | #!/bin/bash
git branch -D proxyBranchExp && echo "EXPECT TRIGGER: proxyBranchExp deleted"
|
44b3a12ea354a6248fa60ee1179d8faf1a5eaca1 | 817 | #!/bin/bash
echo '{'
echo ' "family": "'$1'",'
echo ' "networkMode": "bridge",'
echo ' "containerDefinitions": ['
echo ' {'
echo ' "name": "'$1'",'
echo ' "image": "089664509234.dkr.ecr.us-east-2.amazonaws.com/'$4':v'$2'",'
echo ' "memoryReservation": 300,'
echo ' ... |
f48e50f69e7d4d9daf0a9b5325161494eed09a8d | 609 | #!/bin/bash -l
# script name: install_ansible.sh
# sudo: no
set -x
if [ $(id -u) = 0 ]; then
echo "to be run with no sudo"
exit 1
fi
echo "Install ansible via pip"
sudo apt-get install -y libffi-dev libssl-dev cowsay sshpass ieee-data
#ToDo kerberos dependencies
ANSIBLE="ansible>=2.4.0=<2.7 pywi... |
2587624df19fad13eca6e40abd6d688be92b3882 | 2,565 | !#/usr/bin/env bash
#
# Script name : install-vim.sh
#
# Descrição : Instala o editor de texto Vim e alguns plugins
#
# Autor : Luciano Marques
#
# Versão : 0.1
#
# Dependências : sudo
#
# Data : Dezembro/2012
#---------------------------------------------
echo -e '\033[32m\n --->Instalan... |
4a259f67e5121d8e5183d973f5bdb3488b3edd44 | 413 | #!/bin/bash
#
# Run tests on Circle CI.
#
set -e
echo ""
echo " => Running fast tests"
echo ""
./scripts/test.sh
echo ""
echo " => Deploying Drupal 9"
echo ""
./scripts/deploy.sh 9
echo ""
echo " => Running some tests on the running Drupal 8 environment"
echo ""
./scripts/test-running-environment.sh
echo ""
echo " => ... |
b82ad4783f37422de8be19e77b8ae210896653fb | 122 | SKIP_PREFLIGHT_CHECK=true
REACT_APP_OKTA_CLIENT_ID=0oagxbqshEn3ILpYM356
REACT_APP_OKTA_ORG_URL=https://dev-705537.okta.com |
35410394e7c7103099a19ef81aed9eb001b2e034 | 1,406 | #This script sort a particular condition's nucleotide.fasta and nucleotide.tree files
#into the SLAC analysis file structure.
#
#For each phylogenetic subdivision, full/internal/tips, it starts SLAC(run_dNdS.bash)
#and removes the outputted sites.dat to condition_subdivision.dat
#
#Moves output to /rate_measurement_dat... |
a51f7fc0133218fb22062ee95bcceca10e465d80 | 131 | #!/bin/sh
echo "Argument 1: $1"
echo "Argument 2: $2"
echo "Total of arguments: $#"
echo "The actual string of arguments: $@"
|
2289a35af213b57a167c15ad652dd43aa8efd837 | 771 | #!/bin/bash
DIR_ETH=/rockchip-test/ethernet
info_view()
{
echo "*****************************************************"
echo "*** ***"
echo "*** Ethernet TEST ***"
echo "*** ***"
... |
30a1f7a47c6544068c307336dcacd2faf0ceae0f | 40 | rm db.sqlite
sqlite db.sqlite < db.sql
|
33803d223b4eccf5eb4f1354fe02488fd1180e12 | 3,556 | #!/bin/bash
set -ex
printmsg() {
echo -e "\033[1;34m$1\033[0m"
}
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
printmsg "*** Check prerequisite ***"
i... |
53f53be21706cee24e14d678312c68812ec76634 | 848 | #bash script to go from a mask in MNI space in .hdr format to a binarized NIFTI file in the group template space based on the mni2tmpl matrix
#!/bin/bash
#echo "The script seems to be working."
echo "ROI conversion log" > log.txt
ls *.hdr | while read l;
do
fsl5.0-fslchfiletype NIFTI_GZ "$l"
echo "$l converted t... |
ae7962490f99662e4d70504697567fe582b3b55e | 362 | set -x
python houghlines.py 'preview/resources5/frame16412' 'outputs/houghlines1'
python hl-test.py 1 1
python houghlines.py 'preview/resources2/frame3505' 'outputs/houghlines2'
python hl-test.py 2 1
python hl-test.py 2 2
python houghlines.py 'preview/resources2/frame30817' 'outputs/houghlines3'
python hl-test.py 3 1
p... |
a47c7decddd9c93bede4e8d174d93098f86d35cc | 1,475 | SESSION_SECRET=529d883dc80962eacef37ef676784432
SESSION_MAX_AGE=1800000
OKTA_ISSUER=okta-auth-test
OKTA_ENTRY_POINT=https://dev-342865.oktapreview.com/app/wosoftdev342865_oktaauthtest_1/exk9zhnidsaolJq160h7/sso/saml
OKTA_CERT=MIIDpDCCAoygAwIBAgIGAVsRR2RmMA0GCSqGSIb3DQEBCwUAMIGSMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm... |
314fc6ea886fe5df36690dc8261300342e1e7caa | 109 | #!/bin/sh
set -e
chmod +x /opt/DOSGameBox/DOSGameBox
ln -s -f /opt/DOSGameBox/DOSGameBox /usr/bin/dosgamebox
|
65296415c61de44b19e571e44f93065c4a31e77f | 154 | #!/bin/bash
# Example of a scripted FTP session
# In this case it is: 'ENDofSESSION'
lftp localhost <<ENDofSESSION
ls
get hosts
bye
ENDofSESSION
exit 0 |
dd6bbbd8fc4a7d498fd4890bf0f1b8bba7531f4f | 369 | #!/bin/bash
if [ -z "$1" ] || [ "$1" == "1" ]; then
# Ecrivez le man à la suite du echo
echo "
PROTOTYPE :
ra()
UTILISATION :
ra
DESCRIPTION :
ra est un raccourci de rebuild all, rebuild tout à neuf front et back sur rc
de poplee talent, peut mettre un peu de temps.
VALEUR DE RETOUR :
Ple... |
179ca10ea3bc427e03fa4b53eb31341e90716644 | 188 | #!/bin/bash
if [ ! -d "node_modules" ]; then
npm cache clean
npm install
fi
rm index.js
npm run build:dev
cd example
rm -rf node_modules/gl-plot-2d
npm i
npm run build:dev
rm dist
|
b044d3f77ae408233fd3f987ca5c40b57ba44397 | 91 | REACT_APP_API_LINK=http://127.0.0.1:5000/api/users
REACT_APP_FOOTER_LINK=https://reqres.in/ |
451bbc61332a010906a1e0cd915b97dc6bb93ce1 | 307 | #!/usr/bin/env bash
iverilog Top_tb.v Top.v SinglePortNeuronRAM.v SinglePortOffChipRAM.v NeuronUnit.v InputFIFO.v InputRouter.v InternalRouter.v SysControl.v ConductanceLIFNeuronUnit.v GexLeakUnit.v GinLeakUnit.v VmemLeakUnit.v EPSCUnit.v IPSCUnit.v ThresholdUnit.v SynapticIntegrationUnit.v -o cynapse_tb
|
a1ad49fbba7e9ea0848c27d5e739ab06b9267a2c | 314 | #!/bin/ksh
SLEEP=$@
SLEEPY=${SLEEP:-120}
mkdir SMALL
while true ; do
date
cp -v /tmp/Flash* ./
find -maxdepth 1 -type f -size -2000k -mmin +3 -name 'Flash*' -exec mv -v {} SMALL/ \;
mv $(ls -ltr | awk '/133301/ { print $NF }') $(ls -ltr | awk '/1350958/ { print $NF }') ./SMALL
sleep ${SLEEPY}
done
|
c07804dbb66e90ecf09dace430fd1b01d3b74546 | 257 | rm limitusers.zip
cd limitusers
echo "zipping..."
zip -q -X -r ../limitusers.zip *
cd ..
echo "uploading..."
aws lambda update-function-code --function-name LimitLicensedUsers --zip-file fileb://limitusers.zip --profile OR
echo
echo "----------------"
|
4a740ad6f8a0370a95962579562ab96284b6cc03 | 1,900 | #! /usr/bin/env bats
load ../environment
setup() {
test_filter
@go.create_test_go_script '. "$_GO_USE_MODULES" "prompt"' \
'declare prompt="$1"' \
'declare default="$2"' \
'declare fail_msg="$3"' \
'declare response="initial value"' \
'declare result' \
'@go.prompt_for_input "response" "$p... |
a5770dec4df8ecb19cfbd20814d37ae954cdaf6f | 785 | #!/usr/bin/env bash
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
printf "=== ${BLUE}Building %s sample${NC} ===\n" "${PWD##*/}"
rm -rf target
mkdir -p target/native
echo "Packaging ${PWD##*/} with Maven"
# Only run Petclinic tests to speedup the full build while still testing a complex testing... |
8ed645bc95ac19bd950851613033d971d87b7693 | 118 | REACT_APP_MAP_TOKEN=pk.eyJ1IjoiZGFuaWVsZWpzYW50b3MiLCJhIjoiY2tqazJjYXdlMDExMDJxbW56cHg3MXA3aSJ9.uo7KjxH8KZvz1dVi3UeH-Q |
95d0b2956c3caa98ecdb16b15c66c065beff966a | 559 | #!/usr/bin/env zsh
# submit this job from ./bin directory with "bsub < tau_exec.lsf"
#BSUB -J mzmpibt_tau
#BSUB -o mzmpibt_tau.%J
#BSUB -W 15
#BSUB -M 512
#BSUB -n 4
#BSUB -R "span[ptile=2]"
#BSUB -a intelmpi
#BSUB -x
# specify a queue OR use the "vihps" workshop reservation
###BSUB -m mpi-s
#BSUB -U vihps
export O... |
03cfb53e07572bcfe914d7ed81f804da5323a949 | 91 | #!/bin/bash
env JAVA_OPTS="-Xmx1g" java -jar ./jars/indexer_2.10-ALPHA-one-jar.jar $1 $2
|
457d3253b8aeb9656b5493e768ad8044284a4f4e | 111 | % for paquet in ['salt-*','curl']:
apt-get remove ${paquet}
apt-get purge ${paquet}
% endfor
apt-get autoremove |
aa65b6618237b6be62324e9bd6fc1f872b5b598d | 132 | #!/bin/bash
set -e
set -u
mkdir -p out
clang++ -std=c++11 -include out/pch_stl.h project_using_stl.cpp -o out/project_using_stl
|
e62d9dcb0baf4bb34196af32ea1c7ac920792899 | 1,379 | #!/bin/bash
DATA_DIR="${TENSORFLOW_MODELS_DATA_HOME}/bert"
COLA=${DATA_DIR}/CoLA
MNLI=${DATA_DIR}/MNLI
MRPC=${DATA_DIR}/MRPC
export MLU_VISIBLE_DEVICES="0"
export MLU_STATIC_NODE_FUSION=false
echo
echo "=============start run bert==============="
echo
# MRPC
BERT_BASE_DIR="${TENSORFLOW_MODELS_DATA_HOME}/bert/uncas... |
a2d29834dd448a9004cea214c8cdba7ca91032fa | 1,235 | #!/bin/bash
PROJECT=infra
cd `dirname $0`
BASE=`pwd`
cd - >> /dev/null
source ${BASE}/../config.sh
set -e
oc new-project $HR_PROJECT || oc project $HR_PROJECT
oc new-build \
-n $HR_PROJECT \
--name=homeroom \
--binary \
--docker-image=ghcr.io/kwkoo/workshop-dashboard:4.7
echo -n "waiting for buildconfig ... |
9c31a34b6571755fbf43946ba1d53b4c8ea3dd1f | 125 | #!/bin/sh
mkdir out >/dev/null 2>&1
time javac src/main/java/com/example/*.java src/main/java/com/example/gen/*.java -d out
|
c63349b5f98002af32bf31a34d3661736135c115 | 270 | if [ -z "$JAVA_HOME" ]; then
echo "Set JAVA_HOME to /data/java"
JAVA_HOME=/data/java
export JAVA_HOME
fi
echo "JAVA_HOME="$JAVA_HOME
echo "Stopping in-auth "
$JAVA_HOME/bin/java -jar lib/start-${jetty.version}.jar -DSTOP.PORT=8181 -DSTOP.KEY=codingWebStop --stop
|
09f827acc46cf8a1ad880f6bf4fc3e6fe9354bd1 | 902 | #!/usr/bin/bash
quit=0
for i in $(ls | grep -sE "*.png|*.jpg"); do
printf "Displaying $i\n\n"
feh -xdpq $i & FEH_PID=$!
next=1
quit=1
until [[ $next == 0 ]] || [[ $quit -eq 0 ]]; do
read -n 1 -p ":>" watcher
printf "\n"
case $watcher in
N|n)
kill... |
3a74baaa36a8d39985b2e0bf5e888c6b6452aa25 | 160 | #!/usr/bin/env bash
version=$1
if [[ -z "$version" ]]; then
echo 'Usage '$0' [version]'
exit 1
fi
docker build -t aviasales/ereb:$version -f Dockerfile .
|
4e37dc3499b63e611635d7e3b36b1b3f3faaf46a | 126 | mv .vim ../.vim
mv .vimrc ../.vimrc
cd ../.vim/bundle
rm -rf Vundle.vim
git clone https://github.com/VundleVim/Vundle.vim.git
|
5e0d5f409e04d286878c43feb01928df385ff923 | 1,110 | #!/bin/bash
# DLRM Facebookresearch Debloating
# author: sjoon-oh @ Github
# source: dlrm/our_train.py
dlrm_pt_bin="python3 dlrm_run.py"
dataset_base_dir="dataset"
dataset_dir="${dataset_base_dir}/Kaggle"
dataset_proc_base_dir="dataset-processed"
dataset_proc_dir="${dataset_proc_base_dir}/Kaggle"
if [ ! -d ${datas... |
82d798765249e6352edd7b7aa05c698b5e41eb6e | 13,411 | #!/usr/bin/env bash
# Customize macOS defaults settings
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Boot macOS in verbose mode
sudo nvram boot-args="... |
28e09f67dc49515a560b155d72a7c2e7d8d3a2dd | 1,992 | #!/bin/bash
#sql script for backing up databases and zipping them this may not send the email, users perms will have to be set by the user running this script
#sql backup user, user name and password for the mysql user you want to use this script
DB_USER=""
DB_PASSWD=""
#optimise tables and check
mysqlcheck ... |
1ac43d1e6130a2a8546dbc385d49f37d6bae9b1b | 423 | #!/bin/bash
set -u
basedir=$(dirname $0)
cd $basedir
pwd=$(pwd)
rm -fr docsy
git clone --recursive --shallow-submodules --depth 1 https://github.com/google/docsy.git
rm -f docsy-revisions
for d in $(find docsy -name '.git'); do
echo -n "$d: " >> docsy-revisions
(cd $(dirname $d) && git rev-parse HEAD) >> do... |
3d821f1a3ff5443f37ae0488419179014f47a157 | 2,931 | #!/usr/bin/env zsh
{{ managed_by_ansible_header }}
# _ _ _
# _____ _| |__ | | ____| |
# / __\ \/ / '_ \| |/ / _` |
# \__ \> <| | | | < (_| |
# |___/_/\_\_| |_|_|\_\__,_|
sxhkd &
# _ _ _
# __| | ___ ___| | _| |_ ___ _ __ ___
# / _` |/ _ \/ __| |/ / __/ _ \| '_ ... |
29c28cfb67c427381f9803593e31b39671126f5d | 63 | #!/bin/sh
exec python3 -u -m bottle -s waitress --debug main
|
2ed017b332976cdd420040fdebcb272b09f680d6 | 46 | #!/bin/bash
sudo apt-get install capnproto
|
d6a7c7cf854825105545e07b0b9d03099b676a06 | 122 | #!/bin/bash -x
xmms2 stop
xmms2 playlist clear
xmms2 add /media/usb
xmms2 playlist shuffle
sleep 2
xmms2 play
xmms2 next
|
708f1fd6953fdc2ddcc6ccae5f4bc9442d7a14dd | 2,908 |
export FLASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=True
export AUTH0_DOMAIN='tonycookey.us.auth0.com'
export ALGORITHMS=['RS256']
export API_AUDIENCE='castingagency'
export SQLALCHEMY_DATABASE_URI='postgresql://postgres:cookey07@localhost:5432/castingAgency'
export SQLALCHEMY_DATABASE_URI_TEST='po... |
067fd243162aef36b465e93e28aa99c41ac95d45 | 256 |
# Usage ./doall.sh key.pks12
# Process all csv in input folder
# Generates a output_NAME folder with the signed pdfs of each csv
for a in input/*csv
do
./csv2yaml.py "$a" "output_$(basename "$a" .csv)"
done
./create_certificate.sh "$1" output_*/*yaml
|
8e70fbca50c44bc5a52592be472ae0cf6a7bc990 | 1,204 | #!/bin/bash
set -e
echo '开始自动部署'
pwd=`pwd`
mysqlname="mysql-server"
tomcatname="tomcat-server"
phpname="php-server"
read -p "请输入mysql容器的名字(默认是${mysqlname}):" mysqlname
read -p "请输入tomcat容器的名字(默认是"${tomcatname}"):" tomcatname
read -p "请输入php容器的名字(默认是"${phpname}"):" phpname
if [ -n "${mysqlname}" ];then
echo $mysqlname
... |
62dd1b281e5d48fbc5d8d37cece5c8532b458b02 | 559 | #!/bin/bash -eux
git_ver=git-2.23.0
# Dockerイメージにはsudoが無い、かつrootでセットアップしている前提なので
sudo=$(command -v sudo)
${sudo} apt -y install gcc make autoconf zlib1g-dev libcurl4-openssl-dev libexpat1-dev libssl-dev gettext
pushd /tmp
curl -L -o git-src.tar.xz https://mirrors.edge.kernel.org/pub/software/scm/git/${git_ver}.tar.x... |
d783f6c5fad28447c18938f9b05a20efbf77910b | 1,082 | #!/bin/sh
echo "Packaging Project"
cd /home/mapr/Components/clickstream/tools/
mvn package > /home/mapr/logs/mvnRun
grep "BUILD SUCCESS" /home/mapr/logs/mvnRun > /home/mapr/logs/mvnResponse
#checkmvnResponse()
if [ -n $mvnResponse ]
then
echo "Congratulations! mvn packaging successful. Proceeding further.."
cd /ho... |
fd610a5012c473215dc5b4456e0f8eca61d78575 | 1,689 | #!/bin/bash
set -ex
#############
# VARIABLES #
#############
PENULTIMATE_TAG=$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)") # this is n-1 tag
#############
# FUNCTIONS #
#############
function setup_git {
git config --global user.email "buils@travis-ci.com"
git config --... |
5063370037a2de90f68d3e4b25eef2a03c0dd757 | 208 | #!/bin/bash
packages=(python3-pip python3)
for package in ${packages[@]}
do
dpkg-query --show $package &> /dev/null && \
echo "${package} is installed" || \
echo "${package} is nowhere to be found"
done
|
9afa7ddf7923d0b7b29c3a2208dabeb23a4171a1 | 744 | #!/bin/bash
iters=$1
stepsize=$2
base_lr=$3
model=$4
last_low_rank=$5
rounds=$6
aff_type=$7
set -x
set -e
export PYTHONUNBUFFERED="True"
LOG="../logs/train_dynamic_branch_scratch_${aff_type}.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec &> >(tee -a "$LOG")
echo Logging output to "$LOG"
cd ../..
time ./tools/train_cls.py ... |
b8e081bc185d1df71aad838f96620fa4e39aa9bc | 425 | #!/bin/bash
source /usr/local/sbin/script_header_brendlefly
BUILD=0.0
DEBUG=true
#DEBUG=false
separator "distccmon-joetext-$BUILD"
[[ $# -gt 1 ]] && E_message "bad arguments" && exit 1
[[ $1 -gt 0 ]] && [[ $1 -lt 10 ]] && delay_time=$1 || delay_time=5
while [ 1 ]
do
CUU 1 1 && CLR
# DISTCC_DIR="/var/tmp/.distcc" ... |
636695c1a74eb416aeb534920805b4b6ab1cd822 | 1,235 | #/bin/sh
# motoload.sh
# moded by 0x7678
# Under GNU GPL
# get config settings
CONFIG="$HOME/.ini/config.ini";
GSMAPPATH=`cat "$CONFIG" | grep '^GSMAPATH=' | cut -d '=' -f 2`;
if [ ! -f $CONFIG ];then
zenity --info --text="错误代码0x05" --title="程序错误";
echo "error code 0x05,Please contact the system administrator!";... |
dc5ff76476671e330172dbad8c7638091ad9342f | 3,303 | export SDK_HOME=/opt
apt-get --quiet update --yes
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 git --no-install-recommends
# Gradle
export GRADLE_VERSION=4.1
export GRADLE_SDK_URL=https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip
curl -sSL "${GRADLE_SDK_URL}" -o gradle-${G... |
6da3f1873bf3174b400cc306c0a84e784b53cd73 | 18,111 | #!/bin/bash
# ###############
# Attention graders: The last hardcoded tests may take some time, but they do pass. Thank you.
# ###############
# Author: Xiao Kuang
# Description: CS344 Operating systems bash scripting program 1
# For this script,
# $1 is the matrix operation
# $2, $3 is each input passed to the scrip... |
84dd8bd578f9a703ca1ee725f21e5573ecbbfba2 | 283 | #!/bin/bash
docker build --tag enrollment:latest .
docker create --name enrollment -p 9090:8080 enrollment:latest
docker start enrollment
# to attach to the container
# CONTAINER_ID=$(docker ps | grep "enrollment:latest" | awk '{print $1}')
# docker exec -it $CONTAINER_ID /bin/sh
|
8772531de5d28c4b7895d5fc65c58c19ffed927a | 107 | #!/bin/sh
apt-get -y --purge autoremove
apt-get -y clean
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
sync
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.