blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
b7ed8b377b58998644f413affac27677f6a5f344
457
#!/bin/bash #### # #### # @author artodeto # @since 2013-04-23 #### URL_FEED='https://raw.github.com/propelorm/Propel/master/CHANGELOG' DIR_SELF=$(cd $(dirname "$0"); pwd); FILE_TO_DIFF='.PROPEL_RELEASE_CHANGELOG_TO_DIFF' $(wget -q $URL_FEED) if [ -f "$FILE_TO_DIFF" ]; then $(diff CHANGELOG $FILE_TO_DIFF) $(...
c36a5ebb225f54bc86a5398b3fef949bd8c71951
1,623
APP_ENV=local APP_KEY= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost APP_LOCALE=en APP_FALLBACK_LOCALE=en APP_LOG=daily APP_LOCALE_PHP=en_US APP_NAME= TIMEZONE= API_PREFIX=api //API_VERSION=v1 //API_NAME= //API_DEBUG=true DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USER...
68d44fce406b679f2410aedaafcde7022d72115e
239
# vim: ft=sh curl https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | sh export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm nvm install v11 nvm alias default v11 nvm use v11
69f6839e1042e1eb6b649797136a759bc71e3cd8
758
#!/bin/sh # Background a process with nohup, but return quickly with an exit code if it # fails within the 0.1s timeout, which likely indicates a wrong command-line # argument. # Via https://superuser.com/a/814527 TIMEOUT=0.1 if [ $# -eq 0 ]; then exec nohup fi if [ -t 1 ]; then rm -f nohup.out fi nohup "$@"...
ef914ec7be906065267237218658e1ee2fb3d1da
228
#!/bin/bash . /etc/<%= @product %>/<%= @product %>.conf set -x if [ "x$JBOSS_HOME" = "x" ]; then JBOSS_HOME="/usr/lib/<%= @product %>-<%= @version %>" fi $JBOSS_HOME/bin/$JBOSS_MODE.sh -c "${1}" | tee $JBOSS_CONSOLE_LOG
67fbc72017f5043ccc153701306cba331fe3d53b
939
#!/bin/bash export CYGWIN="winsymlinks:nativestrict" for GOES in 17 16; do date echo "Link GOES-${GOES} source images" mkdir /cygdrive/S/NASA/overlay-${GOES} x=0; for i in `find S:/NASA/GOES-${GOES}_03_geocolor/overlay -name "*.png"`; do counter=$(printf %04d $x); ln -s "$i" /cygdrive/S/NASA/overlay-${GO...
456c8c56aa9c587cdf345794a679b8bde61fbbc1
135
python finetune_classifier.py --task_name RTE --batch_size 32 --gpu 0 --lr 2e-5 --seed 33 --warmup_ratio 0.1 --epochs 5 --no_best_model
dc72858dc9f54cd6098b05ff749e775748641240
155
#!/bin/bash ls / ls -l /opt ls -l /data sudo # should return Operation not permitted echo "hey!" for i in {0..9}; do echo "work $i" sleep 1 done
4a94caea85dac7f36d3627454b2f2ffee9888115
369
#!/bin/sh python3 plot.py csv ~/andes/src/zidxbenchmark/experiment/exp_remote1.csv results_remote python3 plot.py csv ~/andes/src/zidxbenchmark/experiment/exp3.csv results_local python3 plot.py zx data results python3 gunzip_plot.py for f in `ls -1 *.eps`; do epstopdf $f; pdfcrop ${f%.*}.pdf; pdftops -eps ${f%.*}-crop....
e755fa4c3fccb7e74af12704d51c4358764ae3b8
1,364
#!/bin/bash #download dataset wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_bdl_arctic-0.95-release.zip -P /tmp wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_clb_arctic-0.95-release.zip -P /tmp # wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_rms_arctic-0.95-release.zip -P /tm...
5c630a39f29e8189a453e7f0f1b9f5506593ee99
106
rm visualiser.jar cd bin jar cvfe ../visualiser.jar visualiser.Visualiser . cd .. chmod +x visualiser.jar
7766256a915a5010ddea82ee62153f8999cc44f0
32
#!/bin/bash echo yum -y update
bf8edbbfac111fc008e04e95a2ab382d5b1b99ea
115
ksmroot=${ksmroot:-"/adds/kbmenu"} zonehelper=$ksmsroot/helpers/select_time_zone_region.msh $zonehelper "Europe"
1dac18eb07ca479343d4a0e6de813044336781e9
515
#!/usr/bin/env bash echo "Replace $(SolutionDir) to .. in .csproj" perl -pi -e 's/\$\(SolutionDir\)/../g' ./XFGoogleMapSample.Droid.csproj perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj echo "Copy Variables_sample.cs to Variables.cs" cp ../XFGoogleMapSample/Variables_sample.cs .....
56be7fcafabc72b97b64fdad680cf588fa973e52
186
#!/bin/sh /opt/rumprun/rumprun/bin/rumprun kvm -M 192 -I if,vioif,'-net tap,ifname=tap0,script=/etc/qemu-ifup' -W if,inet,static,[IP_OF_RUMPRUN_INSTANCE]/24,[GATEWAY_IP] -- ~/udpping.bin
9cd6a504d15cf10c1b853a6b890f818b889ee98f
48
protoc blogpb/blog.proto --go_out=plugins=grpc:.
e5900babae44b3ed611fe57aedb793f5679c8fce
220
#!/bin/bash # run the cd hit fileter tool with the provided arguments # note: only works with non zip data CD-HIT-Filter "${@:1:$(($#-1))}" # move the output file to the provided output path mv "${2%.*}"*min*.fasta $7
49b48f5ab5ea3db833982ad4eead8e4dd1c700e9
153
#!/bin/bash #$ -cwd #$ -N split_seurat_by_category #$ -V #$ -l h_rt=47:59:59 #$ -l h_vmem=100G Rscript split_seurat_by_category.R echo "End on `date`"
980ab7063325dd0f700134b6097c5202172e2ef0
38
#!/bin/bash echo echo "bf.c: " ./bf
5323eca2989b624bbb1440cc4ed66fa5c1296ebe
2,025
#!/bin/bash #unsetting proxy to hit api through curl http_proxy="" # Based on folderName of content for which file completely not downloaded , get metadata of that content from database function sendReq { local FOLDER_NAME=$1 echo "Processing:-----> ${FOLDER_NAME}" curl -s -X POST http://dev.media.ji...
736f6d8e1ea9dbd311513867e8bd210f9a0a4238
683
#!/bin/bash #DEBHELPER# # preinst script for cryptsetup-modified-functions #set -e case "$1" in install|upgrade) dpkg-divert --quiet \ --add \ --package crypt...
51d09cd0750e9f652346ba39ae9e761c15889533
173
sudo git remote add https://github.com/mzahmi/ventilator.git sudo git fetch upstream sudo git checkout master sudo git merge upstream/master sudo git push origin master
bdce72a34fe7f7be056e940205dcea766f1a4616
2,424
# # Build a code-signed ZXP file # export scriptDir=`dirname "$0"` cd "$scriptDir" export timestampServer="http://timestamp.globalsign.com/scripts/timstamp.dll" export scriptDir=`pwd` export projectHomeDir=`dirname "$scriptDir"` export devtoolsDir="$projectHomeDir/devtools" export buildDir="$projectHomeDir/build" ex...
692b60a0556042b2b6b46e23ddd921bf418f2feb
289
python test.py\ --scale 1\ --ps 2 --ps_scale 2\ --real 1\ --k 0\ --mode MC\ --color 1\ --output_map 0\ --zeroout 0 --keep_ind 0\ --num_of_layers 20\ --delog logs/logs_color_MC_AWGN_RVIN\ --cond 1 --refine 0 --refine_opt 1\ --test_data real_patch\ --out_dir results/real_patch
1655ac2674fd52040089bc8598d108efad3e0cac
7,424
test_or_train_option=$1 ############################ '-t' or '-T' corpus_option=$2 ############################### 'PNS' or 'PS' or 'NS' classifier_option=$3 ############################### '-bi' or '-tri' data_path='data/' script_path='scripts/' SVM_path='scripts/svm_multiclass_linux/' MALLET_PATH=$script_path'ma...
8aa44cdfa3c92fb0d7e6733a56284fe331fbb662
674
# Maintainer: Ali H. Caliskan <ahc (at) selflex.org> pkgname=cheflex pkgver=1.0.4 pkgrel=1 pkgdesc="A simple yet flexible package manager." arch=('i686' 'x86_64') url='http://www.selflex.org/cheflex' license=('GPL-3') depends=('aria2' 'bash' 'fakeroot') install=cheflex.install source=("https://github.com/selflex/${pkg...
c7e55838e7e4398cbd5c8a18f752dc0430d95690
9,366
#!/bin/bash ############### VARS ################ USER="vinicius"; CURRENT_LOCAL_USER="$(cd ~ && pwd)"; WORKDIR_NAME="freesUpDiskSpaceOnWorkersK8S"; WORKDIR_FULL_PATH="$(echo "$CURRENT_LOCAL_USER"/"$WORKDIR_NAME")"; SEND_EMAIL_SCRIPT_NAME="sendMailCurlFunction.sh"; SCRIPT_MAIN_NAME="script.sh"; SEND_EMAIL_SCRIPT_FULL_P...
7a97cdefbae6a5fb230cc549b1dcff5bd4a2c619
1,611
# Maintainer: not_anonymous <nmlibertarian@gmail.com> # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD # Original Submission: Bob Finch <w9ya@qrparci.net> pkgname=unixcw pkgver=3.5.1 pkgrel=2 pkgdesc="CW tutor & generator - program suite - Ham Radio" arch=('i686' 'x86_64') url="http://un...
00f3ada2dde99969595dbbc23a10fbfcdc7d2750
310
#!/bin/bash set -ex rm -rf dist node_modules/.bin/webpack --mode production rm -rf target mkdir target cp -R dist icons manifest.json .web-extension-id target cd target ../node_modules/.bin/web-ext lint ../node_modules/.bin/web-ext build web-ext sign --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET
d256fec94e0b4ee38601f6d0a88e405e2300b878
271
#!/bin/sh repo="${0%/*}/repo" if [ ! -d "${repo}/.git" ]; then git clone https://github.com/openwrt/openwrt "${repo}" fi brew tap homebrew/dupes brew install \ git \ coreutils \ findutils \ gawk \ gnu-getopt \ gnu-tar \ grep \ wget \ quilt \ xz
60ec75f6c8ddcdea093708f3499f54b0590b6ce3
77
#!/bin/sh ghc -e "alll c" Build.hs browse "dist/reader-monad/reader-monad"
34b18222caf80c78d256de5b1c7fb986d514248a
66
PORT=3004 MONGO_URI=mongodb://root:example@localhost:27017/rental
6b8c3f65fb62021b3f9e0b8be9beccdfbd6ea795
284
#!/usr/bin/env bash SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]}) SQL_DIR=$SCRIPT_DIR/../sql cat "$SQL_DIR/drop-everything.sql" \ $SQL_DIR/schema.sql \ | psql --dbname=mylittlepita --file=- --user=pita # Load the dictionary words into the database python scripts/dictionary.py load
a9e8888dd2e2c957f6bf1b521e520525f6fd9519
106
function run { echo $1 $1 } run "lean --c=$1.c $1" run "leanc -O3 -DNDEBUG -o lean-${1%.lean} $1.c"
c21ada1c5fb30d93da943f8be488a6da8de4b733
347
#!/bin/bash #Autora: Cristina Díaz García #Grupo: Informática D for i in $@ do if [ ! -f "$i" ] then echo $i no existe else A=$(ls $i* | wc -w) if [ $A -ge 9 ] then echo “Se ha superado el número máximo de versiones” else Num=`expr $A + 1` Date=`date +%y%m%d` Version=${Date}_$i cp $i $Vers...
6f71f652a0cf7506b414a33cace8d7f87bd86a83
4,666
set -x # Depending on our platform, shared libraries end with either .so or .dylib if [[ $(uname) == 'Darwin' ]]; then DYLIB_EXT=dylib CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include -stdlib=libc++" else DYLIB_EXT=so CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include" # Don't specify these -- let conda-build do ...
f4f053e8d8ad83d6f40e640222071d8417129b30
364
#! /bin/sh export MATS=8 export ITEMS=1 export SETS=16 # run each file in numerical order - ie # 1.check_me # check the materials # 2.latin_me # latin square them # 3.random_me # randomise the latin squares # 4.output_me # you now have an output directory containing booklets (well, almost) # # 5.tidy_me # delete...
01096ae3e71cbd57710b441f89bde0a79f5779f9
189
# Readme git add Readme.txt # Git commands git add git_cmd.sh # C++ Source git add compile git add *.cpp git add *.h # Visualization git add *.py git commit git push -u origin master
37cfb4b12c0fbf362c29aecd60ceb081549a92e9
185
#!/bin/bash docker kill producer docker kill kafka docker kill zookeeper docker rm -f producer docker rm -f kafka docker rm -f zookeeper rm -rf /tmp/zookeeper rm -rf /tmp/kefka-logs
c135fed0eb97714cda99b736f1e2d55244f8c65a
1,178
#! /bin/bash set -x # config variables java8_dl="http://download.java.net/jdk8/archive/b120/binaries/jdk-8-ea-bin-b120-linux-x64-12_dec_2013.tar.gz?q=download" jdk8_path="/home/vagrant/jdk1.8.0/bin" java_home="/home/vagrant/jdk1.8.0/" ant_dl="http://ftp.yz.yamagata-u.ac.jp/pub/network/apache//ant/binaries/apache-an...
b04852665e4b5c4288680993cac869f5c7b2da65
170
Find any Unix / Linux command Useful aliasing in bash Random password generator Breaking out of a terminal when `ssh` locks Conditional command execution (`&&` operator)
f4d175ca494c06f064692e4c0f9638fbb8172125
1,178
#!/bin/sh # Test: # Set up local repos, run the install and skip installing hooks into existing directories if echo "$EXTRA_INSTALL_ARGS" | grep -q "use-core-hookspath"; then echo "Using core.hooksPath" exit 249 fi mkdir -p ~/test100/p001 && mkdir -p ~/test100/p002 || exit 1 cd ~/test100/p001 && git init |...
470753e0cce9ccf4f6b5d376bf6f1f4e255b0d1a
705
#!/usr/bin/env bash profile=${1} env=${2} commit_msg=${3} if [[ ! "${profile}" =~ ^(codeserver|default|garden)$ ]]; then echo "Invalid profile" exit 1 fi if [[ ! "${env}" =~ ^(prod|test|dev)$ ]]; then echo "Invalid environment" exit 1 fi if [[ "${env}" != "dev" && "${commit_msg}" == "" ]]; then ...
4ab1f9d5eaf93780f461f1d6cde9033ab4e6c562
2,490
#!/bin/bash service hadoop-hdfs-namenode start service hadoop-hdfs-datanode start sudo -u hdfs hadoop fs -mkdir -p /tmp/hadoop-yarn/staging/history/done_intermediate sudo -u hdfs hadoop fs -chown -R mapred:mapred /tmp/hadoop-yarn/staging sudo -u hdfs hadoop fs -chmod -R 1777 /tmp sudo -u hdfs hadoop fs -mkdir -p /var...
aad98f69283dbc634caf62f92ddaf4ddba81f6f2
2,112
#!/bin/bash # # Run multiple benchmark configurations # # BENCH.sh <arch_name> <taskset_cpu_mask> <spec_1> ... <spec_n> # # Where a spec is compiler_optlevel_{native|sse4.2}[_pgo] # # e.g., # BENCH.sh i7-4930k 0x20 gcc-6_O3_native gcc-6_O3_sse4.2 clang-8_Ofast_native_pgo # # flags to tell BUILD.sh to include all solve...
f54e04423d218e728795c94f13377bf2c92e0956
44
#!/bin/bash variable='Foobar' echo variable
fc0efd9e61bfb2e901197beadc1be601b4d3dc6b
78
openssl rsautl -encrypt -inkey temppubkey -pubin -in tempintext -out file.bin
765a9d30d62e4a9d83fd070a77aa3982d471f1aa
44
batchCompressImagesIncludeSubFiles5050.sh .
8ba6b73bccb4c77a5b8147c0259c9905b272a423
46
docker rm -f data-one mysql-one wordpress-one
961a974cd1f83b471fcbdd87159ac8e4a35e86cc
49
/etc/init.d/redis-server start /bin/hubot -a irc
da8004056023589af270b1d030d2019cb900092a
396
#!/bin/bash [Unit] Description=Nodejs After=network.target [Service] User=backend Restart=on-failure Group=nogroup Type=simple WorkingDirectory=/home/backend/TeamAPoolProjectBackend ExecStart=/usr/bin/node /home/backend/TeamAPoolProjectBackend/Index.js Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=pro...
bc766710ccdcd7e0a4b83b3fe3bcfe19b5575c1b
1,409
#!/bin/bash # https://github.com/nazoking/git-multi-ssh.sh/blob/master/git-multi-ssh.sh # ssh deploy key manager for git command ( ex: for private submodules ) # # `export GIT_SSH=git-multi-ssh.sh` # # and set environment valiable as `DEPLOY_KEY_[name]=[private-key]` # # - when repository ssh url is `git@github.com:naz...
710eabdb3dd28d3d658ab781c003920e27c6b617
422
#!/bin/bash #随机生成网卡配置文件 for i in `seq 10` do num=$[RANDOM%127+128] cat > /home/ens$i <<EOF TYPE=Ethernet PROXY_METHOD=none ROWSER_ONLY=no OOTPROTO=static EFROUTE=yes PV4_FAILURE_FATAL=no PV6INIT=yes PV6_AUTOCONF=yes PV6_DEFROUTE=yes PV6_FAILURE_FATAL=no PV6_ADDR_GEN_MODE=stable-privacy NAME=ens$i EVICE=ens$i NBOOT=...
9415c81001ca165710d3b80b63b7018d2f17bd66
1,451
read -p "Digite o domínio (ex: meudominio.com): " domain read -p "Digite um e-mail (necessário para gerar os certificados): " email read -p "Digite o nome de usuário do Github: " gh_username read -p "Digite o token do Github: " gh_token sed -i "s|scoreboardapp.tech|$domain|g" conf/reverse-proxy.conf sed -i "s|scoreboa...
312b8559dac70f008f84424a1c19773220f95e2f
431
alias dc='docker-compose' alias dcrm='docker-compose rm' alias dck='docker-compose kill' alias dms='docker-machine start default' alias dmr='docker-machine restart default' alias dmip='docker-machine ip default' alias dme='eval "$(docker-machine env default)"' function dcu() { if [ -f ./docker-compose.local.yml ]...
f43db928f140e53490b4f4742ff5676ee510b36d
205
#!/bin/bash if ./runcrud.sh; then # firefox -new-window http://localhost:8081/crud/v1/task/getTasks lynx -dump http://localhost:8081/crud/v1/task/getTasks else echo "There were some errors." fi
7215611879ab478169f3f5948f2a2a99f60ccca8
133
#!/bin/bash rm lex.yy.c teste05.tab.* teste05 flex teste05.l bison -d teste05.y gcc -o teste05 lex.yy.c teste05.tab.c -Wall -ll
8280add7e96e2cd1dda2edba5c12a0f31f5aca5a
130
#!/bin/bash download_mms(){ local DOWNLOADURL=$1 local MMSFOLDER=$2 curl --output $MMSFOLDER.tar.gz $DOWNLOAD_URL }
2a3839fa451b6ea81f9a0b60c1e03411adac12a3
3,044
#!/bin/bash # script to setup Summit_XL-Workspace # Version vom 27.4.2021 incl Map directory kopieren echo -e "\033[34m ---------- ERO SS21 - Workspace einrichten ------------ \033[0m " echo "Shellskript zur Installation der SummitXL-Pakete" sudo apt-get dist-upgrade pwd cd ~/catkin_ws/src/ # no noetic version av...
c7fec951868a3bfdfbc296971bbc19bfbdd859b8
360
#!/usr/bin/bash mkdir "result_graphs" domains=( blocks logistics depot rovers ) for domain in "${domains[@]}" do mkdir result_graphs/$domain mkdir result_graphs/$domain/evaluations mkdir result_graphs/$domain/expansions mkdir result_graphs/$domain/goal_reach_time mkdir result_graphs/$domain/messages_count ...
b062346bc4f204ce44e55beda59f276d072627db
527
#!/bin/sh version="" clean="no" config_h="./src/config.h" # Check options for opt do case "$opt" in --clean) clean="yes" ;; esac done # Output config.h if test "$clean" = "yes" ; then cat > "$config_h" << EOF #undef DGMPGDEC_GIT_VERSION EOF else if [ -d ".git" ] && [ -n "`git ta...
92318b754da14a4b3bdd71fbb0bab71322fadca8
535
#!/bin/zsh # written primarily to help delete certain files from a glob pattern # with confirmation to exclude certain ones function usage() { echo "Usage: actionFile <command/program> [pattern]glob\n" } function actionOnGlob() { for i in ${~2};do #i=$(readlink -f "$i") $1 $i 2>/dev/null zenity --question...
f07a1e055fd2bc72f173de19d1322ff8db0c40d4
923
#!/bin/sh name="psi" version="0.9.2" build="1" _pwbuilder 0.6.3 _doc -d libpsi/iconset/ICONSET-HOWTO _source -m e29f90aea7d839f2a70e4a6e77e95a70 -s 1154392 -f _patch -p 0 translations _patch no_online_status _patch no_default_status_text _patch status_history _patch status_indicator _patch offline_status _have_li...
2e93d023c078e535bd69f6d4f3d8110e5ef837b9
185
#!/bin/bash if [ -c "/dev/dax0.0" ]; then bash ./setup_eval.sh fi fs=`mount` for i in 0 1 2 3 do str=`echo $fs | grep pm$i` if [[ -z $str ]]; then bash ./setup_eval.sh fi done
9df3c9e4fbcffd3c6961a6cfb237a37b6eb56e52
2,651
#!/usr/bin/env bash set -eu platform=$(uname) if [[ $platform == 'Darwin' ]]; then # Homebrew if ! command -v brew &> /dev/null; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi echo "Updating homebrew" brew install --cask xquartz iterm2 keepingyou...
cf39b5d4419767712abe72ee3b38bb9db4f90d62
166
#!/bin/bash err=0 trap 'err=1' ERR rm -rf oml git clone https://github.com/ConorOBrien-Foxx/OML.git oml cd oml gcc -Wall -Wextra -O2 -o oml -lm OML.c exit "$err"
036719c8bd31c926cafe3b7424cd56459b0ebfce
4,996
#!/bin/bash ################## # Constants {{{1 # ################## PROG_NAME=$(basename $0) VERSION=1.0 YES=yes ######################### # Global variables {{{1 # ######################### DEBUG=0 CONTAINER_IMAGE= #CMDS_FILE=test_cmds.txt CMDS_FILE= TESTDATA_DIR= REPO="BioContainers/containers" GITHUB_STATUS_TOK...
235df33dffb74e85926f827c0cd12d16b710dbd7
2,144
#!/bin/bash # > opensim installation script # version: 1.0.0 # last modified: 08/05/2020 # ------------------------------------------------------------------------------------------------------- # > sudo test if [ "$EUID" -eq 0 ] then echo "This script should NOT be run as root; run as current user and onl...
07aa8f0f93da7424facaa84444456be5af1bbcd8
39
#!/bin/bash rm -rf a.out *.o time.log
3b4a0569afb211ce2358e62aa7a0811f65532b52
2,145
#!/bin/bash bold=`tput bold` # per formattare il testo in corsivo normal=`tput sgr0` # resetta gli attributi del testo # lista degli script bash componenti il progetto: INIT_REPO=./init_repo.sh COMMIT=./commit.sh REMOVE=./remove.sh REVERT=./revert.sh STATUS=./status.sh FILE_SEARCH=./file_search.sh # lista di funzioni...
3af5b4f10f068f844f2d7476df5c21aa0c00c886
200
#!/bin/sh ### list-commands ##+ - List available commands find "$HOME/git-shell-commands" -xdev -mindepth 1 -maxdepth 1 -type f -execdir grep -E '^##[+#] (.+)$' "{}" \; | sed -Ee 's/^##[+#] //;'
68ec8e65ccbbd6ece5cb7e9b73eac1ba6f18b018
406
#!/bin/bash # ============================================================================= # Sources all functions # ============================================================================= echo "Sourcing all functions" for func in **/*.sh; do . "$func" || err=true if [ "$err" == "true" ]; then echo "S...
8b0e7caf5896d0a55d00c29ef7958774022dad7f
1,510
#!/bin/sh set -e # wget https://gist.github.com/raw/4330598/adaf598a78d568dbfada596441bdfad3b4dd3f97/25_windows_uefi # Probe for UEFI entries in EFI system partition prefix="/usr" exec_prefix="${prefix}" datarootdir="${prefix}/share" export TEXTDOMAIN=grub export TEXTDOMAINDIR="${datarootdir}/locale" . "${datarootdi...
cb34fe0715aad629a5705833c2bd3cdd2a5dda7d
929
#!/bin/bash . ./util.sh # Setup Gluster desc "Starting glusterd service in centos-master" run "systemctl start glusterd.service" desc "Check peer status" run "gluster peer status" desc "Starting glusterd service in centos-minion" run "ssh centos-minion systemctl start glusterd.service" desc "Add peer centos-master...
b8a5682c8fb71f5dbc531954495727d463e8d2e7
3,738
#!/bin/bash # This script loops through the cluster configurations specified in # clusters.json, bringing up the cluster as defined and then running # all the YCSB benchmarks against it, and then pulls the results. # ensure google cloud project is set project_id=`gcloud config list project | sed -n 2p | cut -d " " -f...
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
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...