blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
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...
790d2842c21cfa7e91c90f57875470d366d0942d
290
#!/bin/bash TEXT_FIRST=1298 TEXT_LAST=1300 ATP_FIRST=1301 ATP_LAST=1305 for port in $(seq $TEXT_FIRST $TEXT_LAST); do setsid tcphub $port text </dev/null >/dev/null 2>&1 & done for port in $(seq $ATP_FIRST $ATP_LAST); do setsid tcphub $port atp </dev/null >/dev/null 2>&1 & done
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;
338590e15889cf3ba46c70f4f3c246bd4f8ae5ac
364
#!/bin/bash if [ $(whoami) != "root" ] then echo "I must be run as root!" exit fi echo "Success! Setting up environment now" #backup initial html folder [ -d html ] || cp -r /var/www/html . rm /var/www/html/* mysql -u root -pcoursework < database.txt cp index.html /var/www/html cp test.php /var/www/html cp style...
f1fe28364dd074ca61feaf210dfde441e0a15dd1
68
#!/usr/bin/env bash export ENV=TEST python -m unittest unit_tests
aada3b50597c45db2aced1cd751b8cbed6d03252
273
#! /bin/sh for ws in ws_1 ws_2 ws_3 ws_4 ws_5 ws_6 ws_7 ws_8 ws_9 ws_10 ws_17 ws_18 ws_19 ws_20 do echo "measuring throughput of web service : $ws" multimech-run ./$ws echo "collecting throughput data of web service : $ws" python qos_throughput.py $ws done
7a62cfbd86907ba228f381053db15593f0b99773
2,397
#! /bin/bash config=$1 output=$config.json prevSlot=0 primed=false if [ -f $config ] then while read line do # spin until serial is found while [ "$systemSerial" == "" -a "$line" != "" ] do systemSerial=`echo $line | grep "System Serial Number" | cut -d':' -f2 | cut -d'(' -f1` ...
29f2aad7b0e3b290353072bcf7b00248e99d5859
1,202
#!/usr/bin/env bash set -euo pipefail if [[ -n "$(git status --porcelain)" ]]; then echo >&2 './push can only be run with a clean Git checkout' exit 2 fi for t in types/*; do version="$(basename "$t")" parent='' commit='' if git rev-parse --verify "$version" >/dev/null 2>&1; then parent="$(git rev-p...
8cacf9e9ebd1b70fc6c193ecb5fa39aad296f2b4
554
#!/bin/bash if [[ -z $1 ]]; then echo "usage: $0 <directory with log files>" exit 1 fi tail -n 100 $1/*.log | egrep -B 2 '=>|cmsStage|rfcp|Red|Break|Disk quota exceeded' | egrep '=>|cmsStage|rfcp|[Rr]ed|Break|Disk quota exceeded' | #COLOR RED sed "s:Disk quota exceeded:\x1b\[01;31m&\x1b\[00m:g" | s...
318a29657e8a326d6edb35b2ab67ac15dece2e45
9,203
#!/usr/bin/env bash # =========================================================================== # # # # osx-setup.sh # # ...
2efa5d4c211f63f3d64c5dd2b65839b52bf511a6
1,247
#Нужно проверить, есть ли репозиторий REPEL - репозиторий экстра пакетов от проекта Fedora rpm -qa | grep epel #Если репозитория нет, то устанавливаем sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm #Аналогично проверяем и ставим репозиторий REMI - специальный репозиторий разли...
1175ee9a89e4c342cd5f29440f5fa6fd45a8ca10
1,327
#!/bin/bash # To be used with an instance of generic_monitor plugin in xfce4 # Simple script that verifies if some processes are running inside docker and to # allow some actions by clicking on icons. # SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" function text { if [[ $# -eq 0 ]] ...
277c083f4614e2fcc4acdd10071957f9295da580
26
#!/bin/bash sbt "run $1"
fab438a1407025ab5df4a20870d9f8b183a3efe9
258
#!/bin/bash SCRIPT_DIR=$(cd $(dirname $0);pwd) cd $HOME ln -snf $SCRIPT_DIR/.gitconfig .gitconfig ln -snf $SCRIPT_DIR/.tmux.conf .tmux.conf ln -snf $SCRIPT_DIR/.vimrc .vimrc ln -snf $SCRIPT_DIR/.zshrc .zshrc ln -snf $SCRIPT_DIR/.p10k.zsh .p10k.zsh
3d73afa61bbaf62be3bdb43654ad2dc88b7a789a
156
rm -r ./input mkdir input kaggle datasets download alexisbcook/data-for-datavis -p input unzip -q input/data-for-datavis.zip -d input chmod 644 input/*.csv
22bd0b3efb8380ecde56b86b9b3df936de68ed2c
1,257
# Maintainer: Samir Benmendil <ram-z[at]chakra-project[dot]org> # Contributor: aur2ccr (http://ddg.gg/?q=!ccr+aur2ccr&t=chakra) # Contributor: tailinchu <use_my_id at gmail dot com> pkgname=connman-git pkgver=1.24.89.gd60623c pkgrel=1 pkgdesc="Wireless LAN network manager (git version)" arch=('i686' 'x86_64') url="htt...
d550e0a8e846f28da46849ac39c3f63ee3d0cb6f
211
#!/bin/bash HOST='yourwebsite.co.uk' USER='your id' PASSWD='yourpw' ftp -p -n -v $HOST << EOT ascii user $USER $PASSWD prompt cd StarFishPrime/projects/EFM/plots lcd /home/pi/EFM/Plots ls -la mput *.* bye EOT
c240760dae504ebb0ef5095ff72ce17a784a2051
673
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh export PATH=$PATH:/Users/plateau/src/android-sdk-macosx/platform-tools:/Users/plateau/src/android-sdk-macosx/tools:/Users/...
99dd2ea044db65134e47b1ac7270df3ccb7d1a04
7,582
#!/bin/sh usage() { cat <<EOM Usage: build [-a] [-j <N>] build -m <module> [-j <N>] build -p build -c build -h -a Build all components and output the ramdisk.img. (default) -m <module> Build the specified module and output to target dir in <top>/buildroot/output/t...
e231ca5a2beddc60ae77b8e40b020f3c32b2048d
394
containerName="jacob-assistant";imageName="jacob-assistant:latest" oldContainer=`docker ps -aq -f name=${containerName}` oldImage=`docker images -aq ${imageName}` if [ -n ${oldContainer} ]; then docker rm -f ${containerName}; fi if [ -n ${oldImage} ]; then docker rmi ${oldImage}; fi docker build . -t ${imageName} dock...
11decc081cdf227ffe1120f4e01cbc6b305e5cd6
1,058
#!/bin/bash ##################################################################### # # # Author: Samuel Eklund # # Email: sam@llnl.gov # # ...
cbd76a97627fbb001b4b322bf5a0d10af64bc269
256
#!/bin/sh make clean make distclean ./configure \ --prefix=${apps}/emacs/24.3 \ --without-xpm \ --without-jpeg \ --without-tiff \ --without-gif \ --without-png \ --without-rsvg \ --without-sound make all -j4 make install
b21dbb73ef9005066a7efa72f808cc84e5feab21
490
#!/bin/sh # $poplocal/local/com/mksim # Make image containing ved with lib objectclass poprulebase stuff # Sim_agent, and rc_graphic # A.Sloman 26th Nov 1994 $popsys/pop11 %nort mkimage $poplocalbin/sim.psv \ vedxterm vedncdxtermkeys vedsunxtermkeys \ objectclass poprulebase prb_forea...
15d26d5ba65dec5df1b5ef4482a0c4e80369395b
485
#!/bin/sh BUILD="" if [ "$#" -eq 1 ] && [ $1 = "kernel" ]; then BUILD="kernel" fi cp src/read.c sources/new_minix/fs/mfs/ cd sources diff -rupN minix new_minix > ../mw371854.patch cd .. # Revert MINIX image to last clean one. cp snapshots/minix.img minix.img # Run MINIX. ./scripts/qemu.sh > /dev/null 2> /dev/nul...
b19cadafda2f050f2b83067f5946cc8d0ac42dd5
3,312
#!/bin/bash # LiveConfig Webinhalt Migration # (c) 2014 by Jonas Friedmann (iWelt AG) ################################## # Konfiguration - ggf. anpassen ################################## ### # Variablen ### # Load settings file DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) . ${DIR}/settings.conf ##########...
8ebfdfdcc9c40056b26c15dfda7cf525553c7bd3
861
base_name='Spits12hrly_UNet2dtransp_histlen1_predlen1_seed30475' #trainorval='training' #trainorval='validation' trainorval='test' model_name=${base_name} dir=../../../Channel_nn_Outputs/${base_name}/TRAIN_EVOLUTION #for level in {0..37} for level in 2 do for epochs in {10,50,100,150,200} do convert ${...
90caddb09d8ce5d2fb2f2d3b536bbd9d68450534
40
MONGODB_URI=mongodb://localhost/project4
ac8bc17717dcaef2877c98bd1bb65ce5f8c199f4
210
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export TRAVIS_BUILD_NUMBER="123" . "$DIR/set-vars.sh" . "$DIR/create-folders.sh" . "$DIR/build-ui.sh" . "$DIR/build-server.sh"
bef441b4a5c4a1aa66443c1c4930cb1363cf52a6
68
#!/bin/sh notify-send "Torrent Finished ☑️" "$TR_TORRENT_NAME"
a2e23150204909247bc569430fa12e6b290ff5bb
601
#!/bin/bash echo "=======开始配置=======" inst='sudo pacman -S --noconfirm' APPSOURCE='https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch' # 安装源 echo "是否更新软件源?(如果先前更新过了,可以不做这一步)[y/n]" read -r update if [ "$update" == "y" ];then sudo echo "Server = $APPSOURCE" > /etc/pacman.d/mirrorlist sudo cat ./archlinuxc...
40c0807aa0f2ce19104f6a1e9fcaac8ffda70071
91
npm i -g npm i -g corepack npm i -g generator-code npm i -g npm npm i -g vsce npm i -g yo
7d22ad88e3d27c0b2247bf5e1ea59c657e200075
126
MQTT_VERSION=1.6.14 http_proxy="http://194.145.60.1:9400" https_proxy="http://194.145.60.1:9400" no_proxy=localhost,127.0.0.1
e1c89af235f705a5ec2cf6a5f08896d4c1a279db
37
#!/bin/bash cd root/devops/cloud pwd
a8cca5935f237703d7f987bd91fd3ee64842f9a2
560
#!/usr/bin/env bash # Usage: ./bin/flash.sh ${PORT} set -e TARGET_PORT=$1 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" if [ -z "${TARGET_PORT}" ]; then echo "ERROR: A port must be provided e.g. ./bin/flash.sh /dev/tty.usbmodem123" echo echo "Known ports:" ls -1 /dev/tty...
bad1767d70b7679400c8bcbdf0d6c5590e65706f
195
kubectl get pvc fedora -o yaml kubectl get pod # Make note of the pod name assigned to the import process kubectl logs -f importer-fedora-pnbqh # Substitute your importer-fedora pod name here.
513c3a11a88185ad4fe04db1e5af511b70325abd
1,623
#!/bin/bash git clone git://git.yoctoproject.org/poky git clone git://git.yoctoproject.org/meta-raspberrypi git clone git://git.yoctoproject.org/meta-virtualization git clone https://github.com/openembedded/meta-openembedded.git git clone https://github.com/k0Iry/meta-rpilinux.git initial=false if [ -z "$(ls -A build...
a5c0f3b70b6a5d5e82ceba971d6d7a55ccb3c89b
1,187
#!/usr/bin/env bash set -xeuo pipefail #export mpi=mpich export CC=mpicc export FC=mpif90 export F77=mpif77 export F90=mpif90 #Fix an error? sed -i -e "s|\!bflux0,|bflux0,|g" src/Hydro/schism_step.F90 # build and install schism mkdir build cd build CMAKE_PLATFORM_FLAGS+=(-DCMAKE_TOOLCHAIN_FILE="${RECIPE_DIR}/cross...
189aa40ba9e2b98754b59be2e6a5af83d43037ab
2,602
#!/bin/bash # Argumentos = -p proyecto -m micrositio -a accion [A]ctivar | [D]esactivar # Para trabajar con micrositios usar hdl_micrositios -m nombrelmicrositio -a A (para activar) ó # hdl_micrositios -m nombrelmicrositio -a D (para desactivar) # # Para trabajar con proyectos usar hdl_micrositios -m nombrel...
bc8ef6b192a949c22318f5446bd7bf5120204a49
252
#!/usr/bin/env bash # displays the time for 12 hours and 59 minutes: # display hours from 0 to 12 # display minutes from 1 to 59 i=0 j=1 while [ $i -le 12 ]; do echo "Hour:" $i (( i++ )) while [ $j -le 59 ]; do echo $j (( j++ )) done j=1 done
28ac4c22de6fdfdd5553e459cca1d0cd7ceef652
65
#!/bin/sh cut -f 1 < ../hightemp.txt | sort | uniq -c | sort -r
b284bf2d3b3e2326e599253132d41472ce0b0211
138
mkdir /data/pg-data chown postgres:postgres /data/pg-data su -m postgres -c "/usr/lib/postgresql/9.3/bin/initdb --pgdata=/data/pg-data"
6a999e51d0796987d65d542cdb2a573b138dadd6
915
#!/bin/bash # Triggers deploy.sh to maybe update the website or move binaries. # uploadserver needs to be defined in /etc/hosts SSHUSER=$1 TRIGGERVERSION=$2 if [ -z "$SSHUSER" ] || [ -z "$TRIGGERVERSION" ]; then echo "usage: $0 SSHUSER TRIGGERVERSION" echo "e.g. $0 thomasv 3.0.0" echo "e.g. $0 thomasv webs...
5ccfedf527a5a7da1463068c77e857dcc4eb8fc7
25
../../cuhe/clean_cmake.sh
11c9af01d4124222a41c72ff262e30e2e431d2f5
946
#!/bin/bash set -o errexit set -o nounset EXE_JAR="demo.jar" #获取当前应用的进程 id function get_running_pid { pgrep -f "$EXE_JAR" } readonly SELF_DIR=$(cd $(dirname $0) && pwd) function stop { local -i timeout=20 local -i interval=1 local -r service_pid=$(get_running_pid) || true # ignore error [[ -n $ser...
2a60c3f0d28911fc45dd569dbff18a0b034ffb8a
5,464
#!/bin/bash # # The BSD 3-Clause License. http://www.opensource.org/licenses/BSD-3-Clause # # This file is part of MinGW-W64(mingw-builds: https://github.com/niXman/mingw-builds) project. # Copyright (c) 2011-2023 by niXman (i dotty nixman doggy gmail dotty com) # Copyright (c) 2012-2015 by Alexpux (alexpux doggy gmai...
e12af84f798edf6440aa075d008a685e880c88af
253
#!/bin/bash docker run --rm -t -i \ --privileged \ --security-opt=seccomp:unconfined \ --device /dev/ttyUSB0 \ --cap-add SYS_PTRACE \ -v /dev/bus:/dev/bus \ -v /dev/serial:/dev/serial \ -v $(pwd):/app \ --workdir /app \ link0/fpga \ bash \ ;
e89cf81189e90bba88bc112f1b7d61c2c047e1b4
57
export PATH=$PATH:$HOME/bin . <(kubectl completion bash)
30ddf72a8603762d946236d88d30e8f22b78b383
781
#!/bin/sh set -e -x echo "atxmon is dead" exit 1 if [ -d /cygdrive/c/atxmonc ]; then echo 'atxmonc already installed?' exit 0 fi /cygdrive/c/atxpkg/atxpkg install atxmonc --yes cd /cygdrive/c/atxmonc # the cat is there only to eat the possible error when grep finds nothing mj=`ls /cygdrive/c/atx300 | grep mj |...
0c9e74600a322a9727356a7f31bd3b2b29065d89
712
#!/bin/sh -eux make \ TO_BIN='lua5.1 luac5.1' \ TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$UB_VERSION" \ INSTALL_DATA='cp -d' \ INSTALL_TOP="$UB_INSTALLDIR"/usr \ INSTALL_INC="$UB_INSTALLDIR"/usr/include/lua5.1 \ INSTALL_MAN="$UB_INSTALLDIR"/usr/share/man/man1 \ install mk...
1d8a9b276962e500b9fa870f769a42b75440276b
74
#!/bin/sh cd /home/vngame/GW-SFONE/cdr /home/vngame/GW-SFONE/cdr/run.sh &
a2b85fb8d5ab19cc95f05003ff1b88d788e2a36d
241
#!/bin/bash IP_FILE="$1" IPS=() while IFS='' read -r line || [[ -n "${line}" ]]; do IPS+=(${line}) done < "${IP_FILE}" for IP in "${IPS[@]}" do sshpass -p root ssh -o StrictHostKeyChecking=no -t root@${IP} ash -c "'reboot'" done
275e8ed136d955d0b0736cb35d7cf8a18325f768
616
#!/bin/sh set -o errexit chown vagrant:wheel \ /opt/gopath \ /opt/gopath/src \ /opt/gopath/src/github.com \ /opt/gopath/src/github.com/joyent export ASSUME_ALWAYS_YES=yes pkg update pkg install -y \ databases/cockroach \ devel/git \ editors/vim-console \ lang/go \ security/ca_root_n...
6ea0758c4681aee84a2f331f34878eeca7ecefe0
736
#!/bin/sh set -eu configs= # Only read /usr/etc/logrotate.conf if /etc/logrotate.conf does not exist if ! [ -e /etc/logrotate.conf ]; then configs="$configs /usr/etc/logrotate.conf" else configs="$configs /etc/logrotate.conf" fi # Then read in all of {/usr,}/etc/logrotate.d/*, with /etc/ overriding /usr/etc/. dirs...
b940ab13830aa5df4906bd22f78ff859b12e7990
110
#!/usr/bin/env bash cd code matlab -nosplash -nodesktop -nodisplay -r "paths; MatlabDocMaker.create; exit;"
b385ee31ec261b407d48a7135490301d1e95d28f
122
#!/usr/bin/env sh set -e export TERM=${TERM:-dumb} cd java-test-applications ./gradlew -Dorg.gradle.native=false build
d0b29e724e1e80adcbcbf08ca1c39d3ea1a80ba7
783
#!/bin/bash # for 2 GB sudo mkdir /media/h4h/1 sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/1 & sudo mkdir /media/h4h/2 sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/2 & sudo mkdir /media/h4h/3 sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/3 & # fo...
c5948f5ff1d9bde6d32155e6b29804e8350cbc83
960
#!/bin/bash FILE_LOCATION="/homes/rylankasitz/cis520/Proj4/mpi" OUTPUT_LOCATION=$FILE_LOCATION/"output_files" RUNTIMES_FILE=$FILE_LOCATION/"runtimes.csv" THREADS=( 20 18 16 14 12 10 8 6 4 2 1 ) ITERATIONS=$1 cd $FILE_LOCATION make mkdir -p $OUTPUT_LOCATION rm $OUTPUT_LOCATION/* rm $RUNTIMES_FILE touch $RUNTIMES_FILE...
db17eba533963a92f29dc0157072fd3ab3c50f06
36
conda env config vars unset CDF_LIB
94569e93223f3b9818be0264f5923c076c4e0d94
800
#!/bin/bash if [ -z "$1" ] then echo "Argument 1 should be VM name" exit 1 fi gcloud compute --project=phdandpeasant instances create "$1" --zone=us-east1-b --machine-type=n1-standard-1 --subnet=default --network-tier=PREMIUM --maintenance-policy=MIGRATE --service-account=919881239930-compute@developer.gserv...
48312fa6803b4aaaf6b130bb507cca501eb8d04d
162
#!/bin/bash set -eu set -o pipefail # route through the VPN pp_devs=$(ifconfig | grep ppp | awk '{print $1}') route add default dev $(echo "$pp_devs" | tail -1)
61c8412e6362492df5bd5a3b91796f6175c048f8
626
#!/bin/bash # A script to rearrange output from the Ant build of the CuratorHadoopInterface into the recommended directory structure specified in the README. # You must run this script from its original location in the scripts directory! echo -e "Copying Ant output into recommended directory structure..." mkdir ../...
2704d84d1d0c1ac3d44ea691239b9fca85d0421d
925
#!/bin/bash . $(dirname "$0")/colors lines=$(transmission-remote -l) check=$(echo "$lines" | head -n 1 | awk '{ print $1 }') if [ "$check" != "ID" ]; then exit fi lines=$(echo "$lines" | tail -n +2 | head -n -1) count=0 done=0 out="" IFS=' ' for x in $lines; do # ID,Done,Have,ETA,Up,Down,Ratio,Status,Name pe...