blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
f7e5b8afefce96e25a4c909cd906dbf63eac5ac3
1,409
#!/bin/bash # Замена для httpasswd, чтобы Apache не ставить =) # Input params fname=$1 realm=$2 user=$3 if [[ "$1" == "-c" ]]; then fname=$2 realm=$3 user=$4 touch $fname chmod 640 $fname else if [[ ! -r "$fname" ]]; then echo "Could not open passwd file $fname for reading." echo "Use -c optio...
eff560797fa096fae936b62ab219e71f1a508aec
1,563
#!/bin/bash # Copyright 2017 Google Inc. 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 by applicab...
024360ec89b05e150d8f01f8084e59f90a2c7b7d
603
#!/usr/bin/env bash #终止程序的执行 #可以使用shell的内建命令来结束正在执行的进程 #使用nohup在后台运行make进程 nohup make & #返回 [1]1641 #使用bash显示出job Id,进程的PID和命令提示符 #并且显示nohup会把make的输出重定向到文件nohup.out中 nohup:ignoring input and appending output to 'nohup.out' #使用jobs命令查看后台进程 jobs -l [1]+ 1641 running nohup make & #使用pid查看make进程 ps -ef 1641 ##显示如下 # UI...
05f11b2769b99192543365a79adc6d3644a088a2
236
echo killing all flask instances ... echo killing server.py pkill -9 -f server.py echo killing apiFootballMiddle.py pkill -9 -f apiFootballMiddle.py echo killing favorites.py pkill -9 -f favorites.py echo killed all flask instances
96fbaa75f31c317c6ab587334b56b144a7170015
1,361
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2021 SUSE Linux Products GmbH. All Rights Reserved. # # FS QA Test 246 # # Make sure btrfs can create compressed inline extents # . ./common/preamble _begin_fstest auto quick compress # Override the default cleanup function. _cleanup() { cd / rm -r -f ...
028fd7824c0a334348c0ca3c3ea124ad90c07df5
36
#!/dis/sh flag x + echo ${pid} > $1
39125a50e4373a00832cb15b5846093fba5ac521
190
#!/bin/bash WORK_PATH=$(cd `dirname $0`;pwd) LOG_PATH=${WORK_PATH}/../log if [ -f ${LOG_PATH}/pid.log ] then echo "cat ${LOG_PATH}/pid.log | kill" cat ${LOG_PATH}/pid.log | kill fi
1ee1a9f41baf539a3b4a294996da0173369f1139
3,792
# simulate.sh # This script executes the following pipeline: # draw_priors | simulate_coalescent_samples | record_summary_statistics # it is designed for an LSB batch submission system on a computer cluster, requiring the variable $LSB_JOBINDEX # example use: bash simulate.2018-05-15.sh bpfile.txt spinput.txt test ...
e9a3c4201cffbfe5a8e4846fcc0feb8f67e601a5
277
#/bin/sh echo "ENTER DATABASE NAME: " read dbname echo "ENTER DATABASE USERNAME: " read dbuser # echo "ENTER DATABASE PASSWORD: " # read dbpassword createdb -h localhost -p 5432 -U $dbuser $dbname psql -U $dbuser $dbname < "./src/main/resources/ResolutionITS_export.pgsql"
b78e30ade92cdf9c2de494028927827b1bfd3b29
675
# install python 3.6 (conda create -n cm python=3.6) echo "installing pytorch and detectron2..."; conda install -y pytorch torchvision torchaudio -c pytorch; conda install -y -c conda-forge detectron2; echo "installing GDAL..."; conda install -y -c conda-forge libgdal; conda install -y -c conda-forge gdal; echo "instal...
82951ec6e4da474b810ec8fecc9ba6d0372eb9b1
47
#!/bin/sh docker run -p 8180:80 -t -d xctf-web
97c30d6c7b1facac2f04e6e145419418092c88bd
3,099
#!/bin/sh set -e TRIPLETS="/ /i386-linux-gnu/ /x86_64-linux-gnu/" add_slave() { local target_link name source_path prefix target_link="$1" name="$2" source_path="$3" prefix="glx--" if [ -f "${source_path}" ] && [ -d "$(dirname "${target_link}")" ]; then echo --slave "${target_link}" "${prefix}${name}" "${so...
dda0079e84b06af20e79bb584ecc4b9e613536cb
337
# awesome cd movements from zshkit setopt autocd autopushd pushdminus pushdsilent pushdtohome cdablevars DIRSTACKSIZE=5 # Enable extended globbing setopt extendedglob # Allow [ or ] whereever you want unsetopt nomatch # cdpath for quicker directory switching setopt auto_cd cdpath=($HOME $HOME/Code $HOME/stripe $HOME...
54bb957aba5667f7e39cfe88264410f2c648d359
1,290
#!/bin/bash --login ############################################################################### # # This is an example PBS script for testing Fluidity on Archer, and # can be found in the GitHub FluidityProject/buildscripts repository # as: # # /uk/ac/archer/unittest.pbs # # This script is submitted by build.b...
65e6e15594adf8a0a91c7961e055be2e6e469ed0
251
go build; ./monster -mprof monster.mprof -bagdir ../bags -count 100000 -o out ../prods/fast1K.prod go tool pprof --svg --inuse_space monster monster.mprof > monster.inuse.svg go tool pprof --svg --alloc_space monster monster.mprof > monster.alloc.svg
a8126f66188da4fac4c5d7ebabfacc3d8863d52c
76
#!/bin/sh PATH=/bin:/sbin:/var/admin/cgi-bin:$PATH export PATH motionmonitor
6e745d0f404ec1ee9d44e90d246d19a5eb2c65ea
367
#!/bin/bash # This script will run through the UVEX files and concatenate all # the summary.list files into a single "list.concatenated" file OUTPUT="tmp/concatenated-summary-list.txt" # Now copy the contents of all summary.sum8 files, except the header line for FILE in `find downloaded/ -name "summary.list"`; do ...
f4866b36e2cf34308f9fb7f43a8e5e63b03e0fcd
306
#!/usr/bin/env bash set -euo pipefail function install_root_bash { sudo ln -f -s ~bsomers/dotfiles/bash/.bash_profile ~root/.bash_profile sudo ln -f -s ~bsomers/dotfiles/bash/.bashrc ~root/.bashrc sudo ln -f -s ~bsomers/dotfiles/bootstrap/.bashrc_local-root ~root/.bashrc_local } install_root_bash
0218ab28190560ba7b6fd20f34fa50e4890f9aa4
223
#Tomer Paz - 315311365 #!/bin/bash ls -v $1 | while read fn do if [[ $fn == *.txt ]] then echo $fn "is a file" fi done ls -v $1 | while read fn do a="$1/$fn" if [[ -d $a ]] then echo $fn "is a directory" fi done
02c3b51d2f4d2e3618180b0ff4ac5684584b474c
183
#!/usr/bin/env bash if xrandr | rg "HDMI-1 connected";then xrandr --output eDP-1 --off xrandr --output HDMI-1 --auto feh --randomize --bg-fill ~/Pictures/wallpapers/* fi
89a76f77e4f0384071a7429a0b2e8c4d9a8a4674
133
#!/bin/bash # This runs a worker which will output the data to storage. To run on sentinel celery -A seagate worker --loglevel=info
cfc323c7aa7d566af7c41741d602d03d45bcecd4
89
#!/bin/bash set -euo pipefail while true ; do echo "abc $SECONDS" sleep 5 done
5158322c828f56e99e0f794a6f0899f7c3ebcc95
48
#!/bin/sh curl -G http://localhost:8000/shoe/$1
16e140de53895874f5122dd7aa664e44d208c478
623
#!/usr/bin/env bash set -o errexit set -o nounset yelling() { # contains letters? [[ "$1" =~ [[:alpha:]] ]] && # all uppercase? [ "$1" == "${1^^}" ] && echo '!Y' } asking() { # has trailing question mark? [ "$1" != "${1%\?}" ] && echo '!A' } main() { input="${1:-}" # Strip trailing whitespace ...
f8c10f2aba599704964c386bb5cee8d1f00f485f
98
pip install virtualenv virtualenv env env/bin/pip install MySQL-python env/bin/pip install pymongo
46a5e9065d14c95a00c32446256e92991e88ef25
1,550
#!/bin/bash # Copyright 2018 DeepMind Technologies Limited. 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 r...
bd214647ec382a8f3c1d0c1123e7a41bc1da6fde
25,895
raspberry pi sudo raspi-config sudo nano /etc/wpa_supplicant/wpa_supplicant.conf sudo raspi-config sudo nano /etc/wpa_supplicant/wpa_supplicant.conf sudo raspi-config sudo nano /etc/wpa_supplicant/wpa_supplicant.conf reboot ifconfig sudo nano /etc/wpa_supplicant/wpa_supplicant.conf cd /etc/wpa_supplicant/ ls cp ...
43a7ef23793879c8bbba17c70a58958a009a6067
49
docker network inspect -f '{{.IPAM.Config}}' kind
2d35b3d28c8a71e083653879da76890df11146df
14,974
#!/bin/bash # Add site script # # Params: domainname.com dbname dbuser dbpasswd # # Version 1.2 - April 16th, 2014 # source /var/git/server-project/lib/svr-proj-libs.sh GIT_TEMPLATE_PATH="/var/git/server-project/vhost-template"; TEMPLATE_PATH="$VHOST_PATH/vhost-template"; LOG_PATH="/var/log/httpd"; # Get IP for eth0 ...
1bb1e0e6a1b1c6d0b8bd840f29b4e1772c2cc4ed
24,561
#!/bin/bash set -o nounset set -o errexit set -o pipefail function set_storage_class() { storage_class_found=false default_storage_class="" # need to verify passed storage class exists for s_class in $(oc get storageclass -A --no-headers | awk '{print $1}'); do if [ "$s_class"X != ${OPENSHIFT...
e2f4fd23399a16916add20584191d15cfc4ce005
111
gpg --symmetric --cipher-algo AES256 ../env/.env.ngnix; gpg --symmetric --cipher-algo AES256 ../env/.env.mysql;
573ddac13f1ed6745917bf32f0516d8836e97c10
282
#!/bin/sh echo Synthèse en cours ... #source ~/Prj_conception/Design/config/config_ASIC dc_shell -f ../SCRIPTS/run_synthesis.tcl > ../REPORTS/synth.log echo Synthèse terminée : affichage des Errors et Warning grep Error ../REPORTS/synth.log grep Warning ../REPORTS/synth.log
23f8490bbe496a75aa57814e6a1b4aed8681e61c
2,838
#!/bin/bash # Copyright 2018 The Bazel Authors. 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 by ...
3a43723178683f1dc06373d9c0af03afb89849b1
27
#!/bin/sh exec uxterm "$*"
2df98e348105544d5ebcd8320e535ec3e8d20fe5
183
#!/usr/bin/env zsh # Use sloppy mode by default, matching web browsers. export NODE_REPL_MODE='sloppy' # Opt-out of Scarf (https://scarf.sh/) analytics export SCARF_ANALYTICS=false
31d2c935da7886df09cc8e461ef010d239c819b9
313
#!/usr/bin/env bash echo test Playbook is executing and recording results to log.txt ansible-playbook -i Inventory/Home/ dev-machines_test.yml -u root > log.txt echo Passing Tests.... grep TEST_PASSED log.txt echo Failing Tests.... grep TEST_FAILED log.txt echo Serious Failures... grep fatal log.txt
74eb88a7a390b69deb975f4fb792a349d362294c
110
#!/bin/bash cd "$(dirname "${BASH_SOURCE[0]}" )" source ../env/bin/activate ./poll.py >> ../polling.log 2>&1
3ea266bf3d3957511af311c01fde9016fa25b543
1,046
#! /bin/bash # 自动编译源文件的脚本,使用方法:sh build.sh [rebuild | clear] all_c_files=`ls *.c` exclude_files="" is_exclude_file() { for file in $exclude_files; do if [ "$file" = "$1" ]; then return 0 fi done return 1 } main() { for c_file in $all_c_files; do exe_file=${c_file%%.c*}.exe if [ "$1" == "clear" ]; t...
9384f22d8764fdbc21c5c3bb4479a2ab7ced3cea
2,668
az provider register --namespace 'Microsoft.Insights' a=$(az ad signed-in-user show --query userPrincipalName) A=$(echo "$a" | sed -e 's/\(.*\)/\L\1/') B=${A:$(echo `expr index "$A" @`)} C=${B:: -24} RG=AZ-303Lab-04a VNet=Lab04-VNet01 Nsg=L04NSG NsgR=L04Rule1 L=eastus LB=Lab04-1LB BEndPool=Lab04-1BEpool VM01=L04-VM01 V...
3f574676555d365cff33149156837d595358711b
373
# MongoDB MONGO_INITDB_ROOT_USERNAME=root MONGO_INITDB_ROOT_PASSWORD=root MONGO_INITDB_DATABASE=admin PORT=27017 # generate new user ADMIN_USERNAME=admin ADMIN_PASSWORD=admin # database name for storing content DB_NAME=server_go # list of collections DB_COLLECTION_NAME='( "text" "image" "xlsxTable" "flexTable" )' #...
c100ecad8703a74b0ba7ed7de7546a58c2dcfc11
71
BROWSER=none REACT_APP_INVENTORY_MANAGER_API_URL=http://localhost:5001
c1d1a6ae5f2ef7d825dc1b69f5f48637cdbaf665
94
#!/bin/sh if [ -n "`pidof wizd`" ]; then killall wizd 2>/dev/null fi /opt/sbin/wizd -d
c234df8b036cb6b5eb8190e88d3ab9cb4b8245b4
133
zip jth82_hw2.zip jth82_hw2/CG_hw2.cpp jth82_hw2/Makefile jth82_hw2/Node.cpp jth82_hw2/Node.h jth82_hw2/README jth82_hw2/cpts_in.txt
539e6b2522f4efbbc64f463b7c181a8aa0d3cad6
142
cd images ppm_files=`ls ppm` for file in $ppm_files do if [ ! -f png/${file%.*}.png ]; then convert ppm/$file png/${file%.*}.png fi done
bf52db414f9c76a6cd6e1e6f2647cbddfca01e04
2,763
#!/bin/bash # Set variables DOCUMENTATION_VERSION="latest" SOURCE_PATH="src" ROOT_ADOC_PATH="${SOURCE_PATH}" ROOT_ADOC_FILENAME="index.adoc" ROOT_ADOC="${ROOT_ADOC_PATH}/${ROOT_ADOC_FILENAME}" SUBSITES_DIR="${SOURCE_PATH}/pages" RELEASE_NOTES_DIR="${SOURCE_PATH}/pages/release-notes/pages" RESOURCES_DIR="${SOURCE_PATH}...
ad618b4836efc0d05fb5da884a36474b16503eb7
530
#! /bin/bash # ensemble_calculs3.sh if [ $# -eq 0 ] then echo "Il faut des parametres" exit 1 fi if [ -d $1 ] then echo "Dossier $1 existant" exit 1 elif [ -d $2 ] then echo "Dossier $2 existant" exit 1 else s="" s1="" name=$1 name1=$2 shift 2 for x in "$@" do ...
49dd24078c1030037681e46836775c4c71c63a3b
26
source ~/.git-subrepo/.rc
3e8ff6b2dc589d90e850e41edd3df3482ebca57b
398
#!/bin/bash convertC() { echo ${1#"/mnt"} } convertWin() { declare start=${1#"/"} start=${start:0:1}:${start:1} echo $start | sed 's#/#\\#g' } target=$(convertC $(pwd -P)) source=$(convertWin $(convertC $(pwd -P))) docker run \ -it \ --rm \ -v "$source:$target" \ -w $target \ -v ...
b25a779031fd7578385c2884b0817368a4968b0a
535
#!/bin/bash cd .. parallel --jobs 16 --joblog nu3p3both.log2 './sbnfit --pot {1} --num 3 --both --anti >> fractiondata/pot3p3/3p3_pot_{1}_{2}_both.bar.dat ' ::: `seq -2.00 0.25 0.50` parallel --jobs 16 --joblog nu3p3app.log2 './sbnfit --pot {1} --num 3 --app --anti >> fractiondata/pot3p3/3p3_pot_{1}_{2}_app.bar...
2e44941e5238ac239a219698e2dfbe8fd9fcdbaf
1,381
#!/bin/bash # only run when executed from inside /build dir if [ -f sample-context.xml ]; then set -evx PROJECT_BASE_DIR=$(cd ..; pwd) # clean generated static sources rm -rf "$PROJECT_BASE_DIR"/idmu-editor/src/main/resources/META-INF/resources/editor/* # enter static sources project root cd ...
488f87057815c0e90da41b4814c510c8d272d658
51,051
#!/usr/bin/env bash # shellcheck disable=SC2191 ## ^^ we frequently use arrays for passing arguments to functions. ## This script for linux with bash 4.x displays a list with the audio ## capabilities of each alsa audio output interface and stores them in ## arrays for use in other scripts. This functionality is expo...
c04402974782321388053da678acaec3d5343407
932
#!/bin/bash -e SERVICE=quaffle-frontend-service MAJOR_VERSION=1 MINOR_VERSION=$(git log -n1 --format="%ct") VERSION=${MAJOR_VERSION}.${MINOR_VERSION} PACKAGE_HOME=${SERVICE}_${VERSION} echo "================= Updating the NPM cache ===============" npm install echo "===================== Building code =============...
119fcf969f31acfef5f4f915a09ad148c8f39df0
133
#!/usr/bin/env bash sudo docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -p 3389:3389 plex1/spinaldev:latest
918eee363951535ad4006d11ee249e32cb27244f
1,714
sed -i -e "s/\é/e1/g" frenchtraining_test.transcription sed -i -e "s/\è/e2/g" frenchtraining_test.transcription sed -i -e "s/\ê/e3/g" frenchtraining_test.transcription sed -i -e "s/\ë/e4/g" frenchtraining_test.transcription sed -i -e "s/\à/a2/g" frenchtraining_test.transcription sed -i -e "s/\â/a3/g" frenchtraining_tes...
f80ba31a0bcd729ef79555287ae380d9fd898e72
68
TOKEN = token CLIENT_ID = client_id GUILD_IDS = guild_id1 guild_id2
d17f5a3da393235fb7b5f7415f820192d422d80c
166
#!/bin/bash function area(){ x=$1 y=$2 k=$(($1*$2)) return $k } read -p "Enter length of sides of rectangle" n m area $n $m echo " Area of rectangle is $? "
d0fe89cd1de3d5105ab9a2717f3d40775d71405c
1,494
#!/bin/bash # Max brightness value from /sys/class/backlight/*/brightness MAX=937 # array to store light values for averaging # TODO: this should be extended such that an arbitrarily- # sized array can be generated LIGHT_ARRAY=(100 100 100 100) # polling rate in seconds (interval = rate * arraylen) POLLING_RAT...
87b2697a98e2db13bac0ad7f578034d0a0991adb
2,377
#!/usr/bin/expect ## for example ## myssh.sh 192.168.1.10 username1 password1 inspect.sh ## Status: ## Connection refused ## Login incorrect ## ftp not found ## Connection closed set cmd_path "/usr/local/src/wnh/clusql/src/uninstall" set ip01 [lindex $argv 0] set user01 [lindex $argv 1] se...
98be434dcd6979503c6b8ece021f493bdb441466
49
for myval in $* do echo "Argument: $myval" done
600b936c0282a62c9497c9ebd7bb80707a24e4bd
190
#!/bin/bash git config --global alias.gr 'log --graph --full-history --all --color --tags --decorate --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s %x1b[33m%aN <%ae>%x1b[0m (%aI)"'
7c4e473b8a3926a9de7ffd3b898896df83f138bc
284
#!/usr/bin/env bash export DB_USER=gift_app_test_user export DB_PASS=gift_app_TEST_p4s$ export DB_HOST=localhost export DB_PORT=3306 export DB_NAME=gift_app_test_db # pytest export WEBTEST_INTERACTIVE=0 # no interactive prompts when tests fail pipenv run python -m pytest -s test/
0d121b72f800962281558968af9372208a3bdd17
152
#!/bin/sh export JAVA_OPTS="-Dprism.verbose=true -Djava.awt.headless=false -Dawt.useSystemAAFontSettings=on -Dprism.order=sw" exec /opt/filebot/filebot
228561e5900c6a3b14e90fe012ecf45ebbeba2a4
320
#!/usr/bin/env bash curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 mkdir -p "$HOME"/.bash_completion.d poetry completions bash > "$HOME"/.bash_completion.d/poetry.bash-completion echo 'source $HOME/.bash_completion.d/poetry.bash-completion' >> ~/.profile poetry install
bc77fb983b7dcc2228a76119b3c53e794416dfc5
435
#!/bin/bash -x # NOPG_EVENT_ID # NOPG_EVENT_NAME # NOPG_EVENT_TYPE set -e test -n "$NOPG_TR" test -n "$NOPG_EVENT_ID" export NOPG_TR='' TR='' function finish { status="$?" test -n "$TR" && nopg -b -q "$TR" rollback exit "$status" } trap finish EXIT TR="$(nopg -b -q start)" test -n "$TR" nopg -b -q "$T...
fa76f18ac12775dcf4dcd760f1d6756b3908269a
652
TERMUX_PKG_HOMEPAGE=http://www.alsa-project.org TERMUX_PKG_VERSION=1.2.5.1 TERMUX_PKG_SRCURL=ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$TERMUX_PKG_VERSION.tar.bz2 TERMUX_PKG_SHA256=9c169ae37a49295f9b97b92ace772803daf6b6510a19574e0b78f87e562118d0 TERMUX_PKG_DEPENDS="alsa-lib, ncurses, ndk-sysroot" TERMUX_PKG_EXTRA...
1bd8c1e251ce651b177897b270b4633da5e39883
155
#!/bin/bash set -e source common.sh #go to work directory cd $GC_SCRATCH python ${CMSSW_BASE}/src/TTH/MEAnalysis/python/counts.py count.root $FILE_NAMES
0013a0d63066bcf7b461077e9b4679db23d8dc0f
658
### Written by Matteo Guzzo ### ### A.D. MMXIV (2014) ### # Small script to compile and link the fortran module # and to do other small tasks. # Tested with gfortran (Sorry!) cd f2py_modules f2py --fcompiler="gfortran" --f90flags="-fopenmp -ffree-form -ffast-math -funroll-loops -O3 -march=corei7-avx" -lgomp extmo...
6505664b1322a54199056a0c0cfd156cff00cbe7
2,049
#!/bin/bash #set -x showusage=0 pushdir=${PUSHDIR-$HOME/.push} ispop=0 debug=0 count=1 popall=0 list=0 drop=0 trace() { if [ $debug -eq 1 ] then echo $* fi } cmd=$(basename $0) if [ $cmd == 'pop' ];then ispop=1;fi while getopts "hvn:adl" i do case $i in h) showusage=1 ;; v) debug=1 ;; n) c...
b25fc40c209785810bd6117846c6b6ef33004fa6
432
#!/bin/sh export USER=emily export HOME=$(eval echo ~$USER) export XDG_RUNTIME_DIR=/run/user/$USER export XDG_CONFIG_HOME=$HOME/.config export XDG_DATA_HOME=$HOME/.local/share export XDG_CACHE_HOME=$HOME/.cache export SVDIR=$HOME/.local/services if ! [ -d $XDG_RUNTIME_DIR ] then mkdir -m 700 $XDG_RUNTIME_DIR ...
8706908aa30e6f7c8133b16cfc1edec0eadb7d55
624
#!/bin/bash CONTADOR=0 if [ ! -d "$MON_DIR" ]; then echo "Não é um diretório válido!" >&2 elif [ -z "$MON_DIR" ]; then echo "Diretório nulo. Não informado!" >&2 else ESTADO_INICIAL=$(ls "$MON_DIR" -l) echo "Diretório válido: $MON_DIR" while [ 1 ]; do ESTADO_ATUAL=$(ls "$MON_DIR" -l) #houve mudanca no diret...
a60022d578f284deae993759cfd2097720687743
5,826
#Los alias de Testware # /etc/bash_completion.d/git #PS1='\u@\h\w$(__git_ps1 " (%s)"): ' #GIT_PS1_SHOWUPSTREAM=auto source /tools/git/production/completion/git-completion.bash alias pman='$TESTWARE/tools/pm/pmg/pmg.sh &' #alias challenge='tclsh /users/*<username>/*Desktop/Challenge.tcl $1' http_proxy=http://web-proxy.r...
63b6ac0c5c0b7660aa5f9bd72e3291aa89a8ee58
428
export PYTHONUNBUFFERED=1; export APP_SECRET_KEY='#2l$8%i70$x+_y6spu7*j8&+emg8v$ft2kt)@n6q=f$6+fe8xy'; export DEBUG='True'; export APP_DB_ENGINE='django.db.backends.postgresql'; export DB_NAME='rateskill_db'; export DB_USER='rateskill_user'; export DB_PASSWORD='rateskill'; export DB_HOST='localhost'; export DB_PORT='54...
30acc4cd34bf4a84ebca88fd3c56c69bd8e10552
198
#!/bin/bash #SBATCH --job-name=mult-1 #SBATCH -o "tf_logs/sm-%j.out" #SBATCH --gres=gpu:turing:1 #SBATCH -p gpu #SBATCH -c 4 #SBATCH --exclude c2-3 python sst_mult.py --sub_model 'densenet'
050167613d83a308e6be857cbe4a6f037dd9b5c8
330
#!/bin/bash docker exec -it triplestore_graphdb_1 /opt/graphdb/init/create_repositories.sh docker-compose stop graphdb sudo cp owlim.properties ./graphdb/data/repositories/fedora/storage/ sudo cp owlim.properties ./graphdb/data/repositories/audit/storage/ sudo cp settings.js ./graphdb/work/workbench/ docker-compose sta...
48cc1ffd9409546a9c4dfea88e74d1081aed830e
1,788
#!/bin/sh set -e echo "Building Anaconda for ${UBCESLAB_SYSTEMTYPE:?undefined}" CURRENT_D...
471cfd8bf269985b08e5ec0aced79b03ef5d33ef
139
rm -fr build mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release #cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo #cmake .. make -j8 cd ..
733a2d0320435d4abf841f5fd1d82bb0a6f07900
332
#!/bin/bash # cp tetrahedron_integrals.hpp /$HOME/include # g++ -c -I /$HOME/include tetrahedron_integrals.cpp if [ $? -ne 0 ]; then echo "Errors compiling tetrahedron_integrals.cpp" exit fi # mv tetrahedron_integrals.o ~/libcpp/$ARCH/tetrahedron_integrals.o # echo "Library installed as ~/libcpp/$ARCH/tetrahedron_i...
e2e6c8af2d6ce8920de6244c892cbdb1ed68f9c9
128
awk 'ARGIND == 1 {save[$5] = 1} ARGIND == 2 {split($9,fields, ";"); b = substr(fields[3],9); if(b in save) {print}}' $1 $2 > $3
a7d22c6d8157a7c81c662e9143ef3a77fb5d4716
113
UPDATE_PATH=/var/dina-collections-docker cd ${UPDATE_PATH} && docker-compose pull ui && docker-compose up -d ui
9805f2d0055e96f41486581e7d88b6089895aa5e
5,584
#!/bin/bash featureModulesFile=~/easy/FeatureModules.txt workSpace=~/workspace-sts/universe cd $workSpace moduleRegx="*-model* *client* *-service* platform-*" stashSuffix="easyWSSwitch" modules=() function garbageCollect { for m in $moduleRegx; do cd $m printf "In $m \n" git gc cd .. done } function...
ab7b9d3c3087b0fd7303d8a308083b4da18a084f
822
#! /usr/bin/bash # -e interprets the escape sequences # \c keeps the cursor on the same line echo -e "Enter the name of the file : \c" read file_name # using the \" escape sequence # -e is flag for if the file exist s ir not if [ -e $file_name ] then echo -e "\"$file_name\" found" else echo -e "\"$fil...
49077e84a6b8bdab7dfc143d489e96ca055e2335
75
#!/bin/bash THEANO_FLAGS=floatX=float32,device=gpu0 python tsne_theano.py
2a5fdb3ccfd44afa32760e56668caf1ec52f63fb
934
#!/bin/bash # Pulls down hourly observations and 24-hr forecasts for a list # of locations locations=('chicago,il' 'minneapolis,mn' 'minot,nd' 'mason%20city,ia' 'tucson,az' 'el%20paso,tx' 'boulder,co' 'cheyenne,wy' 'rotterdam,nl') output=weather_records.json echo '-- observation:' `date` >>$output for loc in ${locati...
f3a087d241bebe4b4fe6026e51b5603ee559e0ba
193
#!/usr/bin/env bash set -eu apt update apt install -y \ jq \ build-essential pkg-config \ meson ninja-build \ wget ca-certificates \ musl-tools \ upx \ git \ python3-setuptools \ zip
36641d8d419cc34309f5d0995723d560d044acd1
177
#!/bin/bash testit=`ps aux |grep tango-EdnaDS | grep DAU | grep -v grep | awk '{print $2}'` if [ "$testit" = "" ];then echo "edna is already stopped" else kill $testit fi
e31597e15544dc217b0ee03bcc5f3f0ece9187b4
522
############################################################################# # Factorial Snow Model compilation script # # Richard Essery # School of GeoSciences # University of Edinburgh ############################################################################# cd src FC=gfortran $FC -o FSM -O3 \ MODULES.f90 CUMUL...
c15b46112ad77f320a476d1f8bcf1c992cf6585f
447
# -*- sh -*- vim:set ft=sh ai et sw=4 sts=4: # It might be bash like, but I can't have my co-workers knowing I use zsh PROMPT='%{$fg_bold[magenta]%}%n%{$reset_color%}@%{$fg_bold[yellow]%}%m%{$reset_color%} %{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%# ' RPROMPT='%{$fg_bold[cyan]%}%D{%H:%M:%S %Z}%{$reset_co...
6fae57295329d98aeeb701b7ee0b8fbf8ab1b62b
40
# Stop Apache2 /usr/sbin/apachectl2 stop
900c49098b6dbefba19e88bddcba1dc18c94092f
192
#!/usr/bin/env bash echo $VERBOSE echo $DRYRUN echo kubectl create -f "https://raw.githubusercontent.com/\ jaegertracing/jaeger-kubernetes/master/all-in-one/\ jaeger-all-in-one-template.yml"
a2423f859045255cf6bfc33f1fdfa0ef08787883
272
# vim: set ft=sh sw=2 ts=2 expandtab: fasd_cache="$HOME/.fasd-init-bash" if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache" fi source "$fasd_cache" unset fasd_cache
674540fb6b9a71426b7e5924ebf40976382566b0
65
#!/bin/bash mpv --speed=1.0 ~/vid/pre-golden_hour_meditation.mp4
4934fbdfee5302823185c16e21b725f03fdb9624
1,344
function session() { local TMUX_SESSION_DIR="${XDG_CONFIG_HOME}"'/tmux/sessions/' local args="${*}" local name='' if [[ -z $args ]]; then name=$(fzf "${TMUX_SESSION_DIR}" | sed '/^$/d') else name="${1}" fi local filename="${TMUX_SESSION_DIR}""${name}" if [[ ! -f "${filename}" ]]; then e...
4928c2508075c5d5c2c5940816aa86fb2e98fcb1
953
#!/bin/bash SRC="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" pushd $SRC &> /dev/null LOGO=usql ICON=icon OPTIMIZED=${LOGO}-optimized MINIMIZED=${LOGO}-minimized WIDTH=220 HEIGHT=80 # optimize svgo \ --pretty \ --indent=2 \ --precision=4 \ --output=$OPTIMIZED.svg \ ${LOGO}.svg # remove width + heigh...
0b7e29afb8ca473993b51aa30c65a6518d011ae8
2,100
# Maintainer: Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr> pkgname=clion-eap _pkgname=clion pkgbuild=141.352.13 # This is a 1.0 release candidate _pkgbuild=1.0 pkgver=${pkgbuild} pkgrel=1 pkgdesc="C/C++ IDE. 30-day evaluation." arch=('x86_64') options=(!strip) url="http://www.jetbrains.com/${_pkgname}" license=('c...
0746e1076bc28a95ff0d6011675e5d2510cd8110
1,027
#!/usr/bin/env bash kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/release-3.5/deploy/gatekeeper.yaml kubectl apply -f kubernetes/constraint-templates.yaml count=0 echo "Constraint Template CRDs: Creating..." # Wait up to (approximately) three minutes for CRD registration while [ $cou...
8964e7e07020f712471da7a2600b11d66bc6694b
213
#!/bin/bash env="source ~/.virtualenvs/arcade/bin/activate" eval $env echo `date` >> program_output.log cmd="(python3 App.py 2>&1 | tee -a program_output.log) || rm -f app_resources/bot_resources/bot* " eval $cmd
1bb69aa424f1e72db87b62eaa075afd193a7cfd5
160
#!/bin/dash # Author: Krishna Sivakumar (2021) picom -b --experimental-backends; sudo powertop --auto-tune; sudo tlp start; theme-init; redshift -P -O 3500;
7148b2cfce4f39df7f841e46c56dcaa7f8df7796
3,093
# Submitter: Atsushi Ichiki <hitotuky at gmail dot com> # Maintainer: Max Falk <gmdfalk at gmail dot com> _pkgname=sonarqube pkgname=${_pkgname} pkgver=6.2 pkgrel=1 pkgdesc="An open source platform for continuous inspection of code quality" arch=("i686" "x86_64") url="http://www.sonarqube.org/" license=('LGPL3') depe...
3ded83361c80721a091e09088944390fe8abcea3
621
#/bin/bash #working dirctory is were the Makefile is #Include our helpers file (the . is short for an include in bash ) . scripts/helpers.sh for repository in $(cat repository.list.txt); do dir_name=$(repository_directory_name ${repository}) #If the repository directory does not exist, then clone the repo ...
780d9358c9975a7911c7da81fe995196c9a7cb1d
38
#!/bin/sh java -jar SimuladorRisc.jar