blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
c6e3dc5cdd5d78637c0815cef800dc72c445d0a4
342
#!/bin/bash #This script uses ssh to open a multihop session to the chroot environment on a compute node blade_name=$1 #Check for input if [ -z "${blade_name}" ];then echo "Usage: goto_nid.bash <cname or nidname>"; exit fi echo "Opening the chroot (shared_root) environment on node "$1 ssh -t smw ssh -t boot ssh -t $...
3b441b8b00b0668b0ffc8f8b30b5ca0f4e49ff09
17
sudo ufw enable
8dbccec1b565d9b3831f9c618982f2df8d87dc85
245
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 setvar() { echo "Setting '$1' to '$2'" echo "##vso[task.setvariable variable=$1;isOutput=true]$2" }
6aa4f72a20e40108e96a30f98d43a788c3f68247
313
# flask FLASK_APP = manage:app FLASK_ENV = development FLASK_DEBUG = true SECRET_KEY = obimCT4NHj6StoH9wW1LvdX0zFQD6sXz # db DATABASE = mysql+pymysql://root:root@127.0.0.1:3306/backend_server REDIS = redis://localhost:6379/0 # file FILE_DIR = /home/root/upload/images/ FILE_SERVER_DOMAIN = http://127.0.0.1:9999
7351637edab69e04b32794d21afd526606e307fd
231
#!/bin/bash #-------------------------------------------------- # Read environment variables #-------------------------------------------------- set -o allexport source ./.env multipass start ${vm_name} multipass info ${vm_name}
641af6c00e5f71d47d51bb8a7fc92a08e2295e3e
2,445
#!/bin/bash # # Copyright 2019-present an Individual Developer Woojoong Kim # # 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...
cb307881386457e3c2330da6b4de98a85959afb4
407
mkdir ./build chmod a+x run.sh chmod 775 build #source /etc/profile.d/modules.sh #export LD_LIBRARY_PATH=/home/COMMON/intel/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/:$LD_LIBRARY_PATH #module load intel/icc16 #icpc -qopenmp -Wall -I./include/ -L./lib/ -obuild/blocksort main.cpp -lcurl g++ --vers...
c2b65b54eb4f787147112ed8b4d7e44c1f51f8cb
187
#!/bin/sh cd /home/philipp/cs/abad-devops/ || exit if [ "$1" ]; then repo=$1 else repo="master" fi ansible-playbook ansible/publish_updates.yml -e "server=production repo=$repo" -K
01275ac4a4a6469e782d83af9a1756129110422c
140
EMAIL=f2@f2.co.th PASSWORD=F2#$111223 SMTP_HOST=mail.swissotelratchada.com SMTP_LOGIN=smtp@swissotelratchada.com SMTP_PASSWORD=yEm9_=!Ro_(V
10f74a86f08348a1d71dfe93b48116659d32e8d9
935
# Maintainer: Chris Simons <chris@simonsmail.net> pkgname=flirc-rc pkgver=v1.0.0_rc.4 pkgrel=1 pkgdesc="Software for using Flirc USB Device" arch=('i686' 'x86_64') url="http://flirc.tv" license=('Unknown') depends=('') conflicts=('flirc') source=(http://downloads.flirc.tv/beta/packages/Flirc-${pkgver//_/-}.zip) md5sum...
512a67fbe3fa63753641d4c67d2bee51b3c3794e
816
#!/bin/bash ulimit -SHn 65535 #wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gz tar zxvf libevent-2.0.12-stable.tar.gz cd libevent-2.0.12-stable/ ./configure --prefix=/usr/local/libevent-2.0.12-stable/ make make install cd ../ #wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gz ...
864123707ba387b8ed2d822de392610b1fcf7d8e
102
DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=pulses_db DB_USERNAME=root DB_PASSWORD=
c24d696ebac60d48b26c6de392adea2c0c0f92ae
12,663
{"filter":false,"title":"createdoc.sh","tooltip":"/doc/createdoc.sh","undoManager":{"mark":94,"position":94,"stack":[[{"start":{"row":7,"column":53},"end":{"row":8,"column":0},"action":"insert","lines":["",""],"id":115},{"start":{"row":8,"column":0},"end":{"row":8,"column":4},"action":"insert","lines":[" "]}],[{"sta...
1644e422c2fad2e93354b6940b8edc10795e0b56
677
#!/bin/bash #Name :Yuval Matityahu #Purpose:Show the users that login with bash shell as a default # by scanning /etc/passwd the last fiels #Version 1.0 #Date : 18/12/2017 #This funcitscan and list all users that have bash shell as a default #in /etc/passwd scan_users_bash_shell() { printf "\n" printf "L...
b7475795b5c3d8996a40f352766a0b14fabd9467
531
#!/bin/sh # # +-------------------------------------------------------------------------+ # | Name of the Script | # +-------------------------------------------------------------------------+ # | Copyright © 2019 Waldemar Schroeer ...
f1a71af2ccacd5a233d68f77551462ec33af5745
310
./dealer -o myFile -p 10 1000 && \ ./dealer -o myFile -p 20 1000 && \ ./dealer -o myFile -p 30 1000 && \ ./dealer -o myFile -p 40 1000 && \ ./dealer -o myFile -p 50 1000 && \ ./dealer -o myFile -p 60 1000 && \ ./dealer -o myFile -p 70 1000 && \ ./dealer -o myFile -p 80 1000 && \ ./dealer -o myFile -p 90 1000
90d63813e569a752eae13b420d6b16b00da64e1c
497
docker build -t growingdata/demo-crashed:tez-local -f ./src/_docker/crashed.Dockerfile ./src/ docker run --env-file ./src/_docker/crashed.env growingdata/demo-crashed:tez-local crashed docker run --env-file ./src/_docker/crashed.env growingdata/demo-crashed:0cde9843e984c11830b6cb0019ab3f10c1646427 crashed gcloud c...
1493344ba489d7e5a1476aabd35a48041ad8d4c9
310
#!/bin/sh APPDIR=`dirname $0`; /usr/lib/jvm/ia32-java-6-sun/bin/java -cp "$APPDIR/src:$APPDIR/bin:/usr/local/home_ubuntu/crocea/script/gwt/gwt-user.jar:/usr/local/home_ubuntu/crocea/script/gwt/gwt-dev-linux.jar" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src edu.nordborglab.client.AccessionConstants ;
98b7d7e06ddd41e6f04275e8d06558b2d4997a2a
279
#!/usr/bin/env bash export BIN="$HOME/bin" export OPT="$HOME/opt" export TMP="$HOME/tmp" export GIT_EDITOR=vim ORIGINAL_PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" PATH="$ORIGINAL_PATH:$BIN" LINUX_BREW_HOME=/home/linuxbrew/.linuxbrew/bin PATH="$PATH:$LINUX_BREW_HOME"
1c20cd6429b0f73fe350a4069fdbb042cfdbff19
1,086
#!/bin/bash #Deactivate I2C #Change /boot/config.txt #Change dtparam=i2c1=on and dtparam=i2c_arm=on OLDSTRING="dtparam=i2c1=on" NEWSTRING="#dtparam=i2c1=on" FILE="/tmp1/config.txt" grep -q $OLDSTRING $FILE && sed -i "s/^$OLDSTRING/$NEWSTRING/g" $FILE || echo "$NEWSTRING" >> $FILE OLDSTRING="dtparam=i2c_arm=on...
348db688b153df234036a24bd0da4e9e371f72f5
293
#!/bin/bash apt-get update && apt-get install -y bridge-utils cat <<EOF >/etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0 EOF
e80baf22277ee3d19c8e010ae7809811e470d5f3
173
How to change your most recent commit How to write a git commit message `master` and `origin` aren't special Remote repositories: viewing, editing and deleting Dates in git
2b1d827b01477ce207603aea31992a9a523f3127
199
#!/bin/bash #window=$(xprop -id $(xdotool getactivewindow) | grep _NET_WM_NAME | cut -d'"' -f2) window=$(xprop -id $(xdotool getactivewindow) | grep 'WM_NAME(STRING)' | cut -d'"' -f2) echo $window
1db4166c76f8a7efd7ba2ff36af92e5ec16a5cbb
395
## installing nodejs (dependency for juptyerlab extension) curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - apt-get install -y nodejs ## installing jupyterlab and vim extension python3 -m pip install jupyterlab==1.2.4 jupyter labextension install jupyterlab_vim ### RUNNING JUPYTER LAB echo "RUNNING JUP...
140c56434e12b23d50a3eed0091f0d23481980e9
191
#!/bin/sh docker pull docker:1.13.0-dind docker-compose up -d git clone https://github.com/direnv/direnv cd direnv sudo make install cd streaming_host direnv allow docker-compose up -d cd ../
4e581063238d1878bdfa280bddccfca716ec85ae
1,051
#!/bin/sh # Download the ClamAV files so that this can be a private mirror server # These should show up in the volume and be easily synced to the offline network # See if we are online MINSIZE="50000" echo "Pulling clamav virus patterns..." FNAME="bytecode.cvd" TMP=`wget -S --spider http://database.clamav.net/$FN...
47554a1c0ce6d1e8ce9043b94c93932b208152c9
1,671
#!/usr/bin/env sh # float system preferences. Most of these just diable Yabai form resizing them. yabai -m rule --add app="^System Preferences$" sticky=on layer=above manage=off yabai -m rule --add app="^Karabiner-Elements$" sticky=on layer=above manage=off yabai -m rule --add app="^Karabiner-EventViewer$" sticky=on l...
eb198f012751a56501c8eedb6e869367c06d083d
672
#!/bin/bash lumpyvcf=/home/tballing/scratch/EyeMalform/lumpy/4302_4302_R34F3.vcf.gz mantavcf=/home/tballing/scratch/EyeMalform/manta/4302_4302_R34F3/results/variants/candidateSV.vcf.gz bcftools query -f '%CHROM\t%POS\t%INFO/END\t%ID\t%INFO/SU\t%INFO/SVTYPE\t%INFO/CIPOS\t%INFO/CIEND\n' $lumpyvcf \ | awk 'BEGIN{OFS=...
bba36faf964fb087542699fe44ea9ac47aecd22a
2,219
#!/bin/sh dest="/root/dotfiles-full/config" dest2="/root/dotfiles-full" copy(){ printf "copying \"$conf\" to $dest\n" cp -r "$conf" "$dest" } copy2(){ printf "copying \"$conf2\" to $dest2\n" cp -r "$conf2" "$dest2" } copy_zsh(){ mkdir -p $dest2/omz printf "copying \"$conf2/custom\" to $dest2/omz/custom\n" cp -...
fdacfc124605a37e9bd2f08a997b9f336b94474f
1,937
#!/usr/bin/perl my %functionmap; my $logfile = "/root/ks_prepost.out"; sub pre() { #after networking is setup but before OS is installed } $functionmap{"preinstall"} = \&preinstall; sub post() { #after OS is installed and networking is still setup } $functionmap{"postinstall"} = \&postinstall; sub installep...
ba5864c08845228d2187601cbfa4bfaef4c1f545
2,336
#!/bin/bash CPU_NUM=$(cat /proc/cpuinfo | grep -wc processor) if ! grep -q "SETUP_ENV_MAGIC=142857" ~/.bashrc; then echo " # SETUP_ENV_MAGIC=142857 # my exports export HISTSIZE=100000 export HISTTIMEFORMAT="%F-%T: " export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/usr/local/lib:\$HOME/lib:\$LD_LIBRARY_PATH export ...
42bf3c0c4d3e7882812bbffadae034b1b396ce15
1,140
#! /bin/bash ## source ${HOME}/mfg/mfg_sources/platform_detect.sh I2C_BUS_MUX_B_CHANNEL_2=0x7 CPLD_B_ADDR=0x75 CPLD_B_MSRR2_REG=0x03 # ~ 0x06 : 8 ecpri port CPLD_B_QSFP_REG=0x07 CPLD_B_SFPPLUS_REG=0x08 I2C_ACTION_DELAY=0.1 ## port 1 ~ 8 i2cset -y $I2C_BUS_MUX_B_CHANNEL_2 $CPLD_B_ADDR $CPLD_B_MSRR2_REG 0x00 ...
9cd64905b7ad68ec44ee270c1f6899c22dad2c2f
74
#!/bin/sh ssh root@samism.net 'java -jar "../var/www/html/percival.jar"'
9d9753f39c8dad17453553df98ff6ae7e1101f28
121
PORT=5000 HOST=techstep-interview.cwar9iqenexg.us-west-2.rds.amazonaws.com USERNAME=username1 PASSWORD=applicantpassword
192596551320aeff296bd0faac730d3a7f98b3e9
34
#!/bin/sh echo "Installing Jetty"
eff266e49a73680bd4f2d50db33ac1dbbffc623f
1,846
cd Flutter/zzexample #编译Flutter flutter clean flutter packages get flutter build ios --release echo "===生成各个plugin的二进制库文件===" cd ios/Pods #/usr/bin/env xcrun xcodebuild clean #/usr/bin/env xcrun xcodebuild build -configuration Release ARCHS='arm64 armv7' BUILD_AOT_ONLY=YES VERBOSE_SCRIPT_LOGGING=YES -workspace Runner...
0e6e742fe70bfab259e4a203cb2ae3e3a2fb53c2
157
#!/bin/bash $1/steamcmd.sh +login anonymous +force_install_dir $2/kf2server +app_update 232130 +quit $2\kf2server\Binaries\win64\kfserver kf-bioticslab
e672720838d31c85adaa975f365bed97ed23fb08
94
#!/bin/bash sudo apt-get install iftop pip install glances pip install -r requirements.txt
5abf53efd1c6b59501bd24045de7bc30deec37a4
7,251
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac if [[ $(uname -s) -eq 'Darwin' ]]; then export LSCOLORS=gxfxcxdxbxegedabaga...
a4dad66d5ce8c1acb70d8e1917cb43a7b76e94c4
525
#!/usr/bin/env bash ############################################################## ## ## Copyright (2019, ) Institute of Software ## Chinese Academy of Sciences ## Author: wuheng@otcaix.iscas.ac.cn ## ################################################################ #SHELL_FOLDER=$(cd "$(dirna...
9e0ff61f5a17029b758dcc01b5d8c3034df87e07
186
#!/bin/bash if test "${1}"; then echo "${@}" | sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr '[:upper:]' '[:lower:]' else echo "usage: $(basename "${0}") <string_to_slugify>" fi
079e821c4d4b181b9f55f2760eab0a8fe2be08c0
165
#!/bin/bash #set -o errexit #set -x cd "$(dirname $0)" BIN_DIR="${PWD}" PROG_DIR="${BIN_DIR%/*}" TOP_DIR="${PROG_DIR%/*}" echo "$0 service is now stopped" exit 0
49589af142ed2ff3f3a3048166d0d285732ef675
372
#!/bin/bash export GEOTWEET_LOG=/tmp/geotweet.log export GEOTWEET_STREAM_DIR=/tmp/geotweet # directory for log events # get these from AWS export AWS_ACCESS_KEY_ID="..." export AWS_SECRET_ACCESS_KEY="..." export AWS_DEFAULT_REGION="region" # example: "us-west-2" export AWS_BUCKET="already....
6732bebef51cb0e5f4c9f3c9456d88cd04d71083
187
#!/usr/bin/env bash cd ${BASH_SOURCE%/*}/.. mkdir -p dataset cd dataset curl -L "http://files.grouplens.org/datasets/movielens/ml-20m.zip" -o ml-20m.zip unzip ml-20m.zip rm ml-20m.zip
7df146eee9f2d4eb164eb69fac7e40ec22783086
18
echo "I am v6526"
c597cee5babf589affefa65919690a260475ac61
359
#!/bin/bash fancy_echo "checking for brew and cask..." if [ -z `which brew` ]; then /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew tap caskroom/cask append_to_shell_config_files 'export PATH="/usr/local/bin:$PATH"' 1 export PATH="/usr/local/bin:...
5f1e55a4aafa81b8cbafde518a4a6be394e2fbfa
69
#! /bin/bash ln -sf ~/vimfiles/vimrc ~/.vimrc mkdir -p ~/.vim/bundle
8083143a9f2f0072eebe6f76d263437d42d639dc
592
#!/bin/sh # configure supervisor to run a private gunicorn web server, and # to autostart it on boot and when it crashes # stdout and stderr logs from the server will go to /var/log/demo mkdir /var/log/demo cat >/etc/supervisor/conf.d/demo.conf <<EOF [program:demo] command=/home/demo/venv/bin/gunicorn -b 127.0.0.1:800...
509df0d214a475ae7b8ee32b4001f8ff583046f1
134
# shellcheck disable=SC2164 cd /Users/zhanggj/Downloads/pycharm-projects/shell-in-action sh user_param.sh one two three four five six
5a019e3fd479d1ab90b520dbb07b3251cf929c8b
147
export CC=/usr/bin/gcc export AS=/usr/bin/as export CXX=/usr/bin/clang++ export LD=/usr/bin/ld export NM=/usr/bin/nm export RANLIB=/usr/bin/ranlib
01167abbc68f04ade9d46671bc4365c9dbcaa2d2
157
screen -dr bukkit -p 0 -X stuff "$(printf "save-all\r")" sleep 3 screen -dr bukkit -p 0 -X stuff "$(printf "stop.\r")" sleep 2 screen -r bukkit -p 0 -X quit
b0a33276c64993db339fdda1dd8ddabbb10676a3
153
#!/bin/bash echo "languageDetection.php" php classification/languageDetection.php echo "" echo "wineQuality.php" php regression/wineQuality.php echo ""
4ad3f3ffab084781580a5ce66f0051768c606c0e
118
#! /bin/sh if [ $# -ne 0 ]; then echo "ERROR::input para is not right!" exit 1 fi Bbspcmd l2ffwd acc-item exit 0
8602de918b4670f0edc4541bb175a009faacca2a
52
# /bin/sh mkdocs build -d ../serve/cook.290618.xyz
e9ea3d7e11f8f39f12678d7b9ffbd8f1120c83d2
400
#!/bin/sh # Input should be the "freeMask" directory within the data folder generated by the Freesurfer_ROIs script. ROIS=$1/rois init=`find $ROIS | grep -v rois$ | head -1` cp $init $(dirname $(dirname $init))/mask.nii.gz mask=$(dirname $(dirname $init))/mask.nii.gz for ROI in `find $ROIS | grep -...
d364a59b02af2fbab458ebeae5c552780ae765c0
138
parallel ::: "cd Brent && pipenv run start" "cd Stacy && pipenv run start" "cd Sarah && pipenv run start" "cd Maggie && pipenv run start"
c7e640ddfcfcc564f3e4ea4b73841140859c3ee0
561
# Maintainer: Janosch Dobler <janosch.dobler [at} gmx [dot} de> pkgname=write pkgver=194 pkgrel=1 pkgdesc="Write - A word processor for handwriting" arch=(i686 x86_64) url="http://www.styluslabs.com/" license=('custom') depends=(qt4 libpng12) optdepends=() provides=('writer') if [[ $CARCH == 'x86_64' ]]; then depends...
0ab82b18624e97acd6d473bba0c8023159a51fbe
514
#/bin/bash if [ -n "$1" ];then tenant=$1 echo "Add previewer to tenant $tenant" ../repositories/deploy-arender-repository-secret.sh $tenant helm3 upgrade -i arender arender \ --repo https://packages.nuxeo.com/repository/helm-releases/ \ --version 0.2.3 \ -n $tenant --create-namespace \ -f nev-co...
c6a5ff3aef53a015c140136b54c7d3a060cabf37
122
apt-get update apt-get install -yq \ apt-transport-https \ ca-certificates \ curl \ gnupg2 apt-get update
48aec8339eebf05e3ca51aa85db4244282011e15
464
NODE_ENV=development PORT=5000 DB_URI=mongodb+srv://workbook:workbook12345@cluster0-yw3el.mongodb.net/test?retryWrites=true&w=majority GEO_PROVIDER=mapquest GEO_API_KEY=uVDrdByEzZiOA9Q1h004ZmXae8NCtU19 MAX_FILE_SIZE=1000000 FILES_DIR=./public/uploads JWT_PRIVATE=marcin123 JWT_EXPIRE=7d # SMTP_HOST=sm...
d3f513f7d776382218554e4d29171454085c4dba
845
#!/usr/bin/env bash # # Passage du RPI en français if [ -f _common.sh ]; then source ./_common.sh elif [ -d modules ]; then source ./modules/_common.sh fi ######################### ### CHECK UTILISATEUR ### ######################### if [ `whoami` == 'root' ]; then _log "${RED}Ne lancez pas ce script en super-adm...
fac9a022f34f9ff1d1e2a8ef18d663ede0bfbe49
2,378
#!/bin/bash # Author: Marcel Kallinger https://github.com/ItzMxrcxl # BackupMyPi Script echo "~~~~~~~~~~~~~~~BackupMyPi - Backup~~~~~~~~~~~~~~~~" echo "Author: Marcel Kallinger" echo "https://github.com/ItzMxrcxl" echo "" if [[ ! -f "/usr/bin/backupmypi/config.txt" ]] then echo "ERROR: Config Datei existiert nicht" ...
4d2bb39c6d4ec88b6cc461b853f037e77457dc66
205
str1="MATCH" str2='match' shopt -s nocasematch case $str1 in $str2) echo 'match';; *) echo 'not match';; esac awk -v s1=$str1 -v s2=$str2 'BEGIN { if(tolower(s1) == tolower(s2)) print "match" }'
4ca59064ea0bb0f6ce6934c64472e38d71abd729
980
# Maintainer: Lorenzo Fontana <lo@linux.com> pkgname=coredns-bin pkgver=1.6.3 pkgrel=1 pkgdesc="CoreDNS is a DNS server that chains plugins (official binary version)" arch=('x86_64') conflicts=('coredns') url="https://github.com/coredns/coredns" license=('Apache') provides=('coredns') source=(coredns_x64_${pkgver}.tar....
69fd9e5436790aabb2a70e903eccc5e46f07eec2
2,606
#!/bin/bash export SDIR=/home/ged/gedstuff/code/tap/scripts echo creating and running insert.sql... cat $SDIR/inserthead.sql > insert.sql java SheetReader >> insert.sql mysql -t -u student < insert.sql echo identifying room locks #TODO per semester mysql -N -u student timetable < $SDIR/roomlock.sql > roomlock.sh chmod ...
d0ddf3acc1b685acaa1d64ef7f324fb31129728f
3,012
PATH=/usr/libx32:/usr/lib32:/usr/lib/x86_64-linux-gnu:/cvmfs/lhcb.cern.ch/lib/lcg/external/neurobayes/3.16.0/x86_64-slc6-gcc44-opt/external:/cvmfs/lhcb.cern.ch/lib/lhcb/LBSCRIPTS/LBSCRIPTS_v9r1p5/InstallArea/scripts:/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_87/Python/2.7.10/x86_64-slc6-gcc49-opt/bin:/cvmfs/lhcb.cern.ch/...
0c263d94870bcf9d8bed834e6a2d8a57c9acd05e
811
#!/bin/bash ACTION=$1 shift IPSET=$@ IPTABLES="/sbin/iptables" function print_usage() { echo "Usage: ./block_test.sh [add|remove] ip1 ip2 ..." } if [ "$ACTION" != "add" -a "$ACTION" != "remove" ]; then print_usage exit 1 fi for ip in $IPSET do case $ACTION in add) $IPTABLES -...
3e1a2ffda3d835859527a9f16747ea58371f9f42
61
#!/bin/bash temp=$(curl wttr.in/?format="%t") echo $temp
6f876ab78d2f1d29059311c87165b9b487ec9de4
4,191
#!/bin/sh # # Script para generar archivo CSV con datos de los AS # Copyright (C) 2014 Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) # # si no se pasó un parámetro -> error if [ $# -eq 0 ]; then echo "[error] modo de uso: $0 ARCHIVO_AS [ARCHIVO_CSV]" exit 1 fi # definir sistemas autónomos que se co...
b045303175abeb21258ecaddfc2039d126781538
1,594
#!/bin/bash set -e #DATABASE INIT/CONFIG echo "Initializing configuration database..." mysql --host=$DB_HOST --user=root --password=$DB_ROOT_PASSWORD -e "CREATE DATABASE IF NOT EXISTS $DB_NAME;" mysql --host=$DB_HOST --user=root --password=$DB_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER' IDENTIFI...
f63d654b15ccae3afdfa621d47262331bb69d5ce
1,895
# $Id$ # Maintainer: mwberry <null@example.org> pkgname=cryptsetup-keyscript cryptsetupver=1.7.2 pkgver=${cryptsetupver}.keyscript pkgrel=1 pkgdesc="Patched cryptsetup that supports invoking a script to obtain passphrase" arch=(i686 x86_64) license=('GPL') url="https://gitlab.com/cryptsetup/cryptsetup/" groups=('base')...
eb42104345dbe673c816078003133066b134d29d
274
#!/bin/bash curdir=$(cd `dirname $0`;pwd) cd $HOME rm -rf .vim rm -rf .vimrc mkdir -p vimer/vim/vimfiles/bundle/vundle mkdir -p vimer/vim/view git clone https://github.com/gmarik/Vundle.vim.git vimer/vim/vimfiles/bundle/vundle ln -s vimer/vimrc .vimrc ln -s vimer/vim .vim
5d075cda2938cc1325ff34dcf9cec49251f3b533
961
#!/usr/bin/env bash set -euo pipefail # Opens an interactive bash session inside of a docker container # for improved isolation during development. # If the container exists it is restarted if necessary, then reused. main() { cd "$(dirname "${0}")/../../.." local container_name=code-server-dev if docker inspe...
07df794a3bd6ab6ebaac4e1b9403c5630c5b535d
45
VUE_APP_API_URL=https://api.motivo.localhost
1994978d615b81519ce42683d15fc3ba7f6d2956
371
#!/bin/bash set -e > /etc/minidlna.conf for VAR in `env`; do if [[ $VAR =~ ^MINIDLNA_ ]]; then minidlna_name=`echo "$VAR" | sed -r "s/MINIDLNA_(.*)=.*/\1/g" | tr '[:upper:]' '[:lower:]'` minidlna_value=`echo "$VAR" | sed -r "s/.*=(.*)/\1/g"` echo "${minidlna_name}=${minidlna_value}" >> /e...
a7578593c3ddbb1f91533b6864d7471acd94abd5
180
#!/bin/bash ./examples/iris/predict.py -model examples/iris/snapshot_iter_1000.caffemodel \ -deploy examples/iris/deploy.prototxt -csv examples/iris/iris.data -pycaffe python
53ae9dab7cabdc56d68772aa1f74f5af6f597666
228
make -f Makefile.osx lipo -detailed_info prober rm -rf ShaperProbe ShaperProbe.dmg mkdir ShaperProbe mv prober ShaperProbe/ShaperProbe ./create-dmg --window-size 500 300 --volname "ShaperProbe" ShaperProbe.dmg ./ShaperProbe/
03ed881e34155c3d7960d12d513e6069c7dbec58
212
#!/bin/bash export COMPOSE_PROJECT_NAME=my_project_${CI_COMMIT_SHA} docker-compose -f docker/compose/test.yml run my_project unittests.sh exitcode=$? docker-compose -f docker/compose/test.yml down exit $exitcode
9c6248140e2252f7a5a0afa2bcacfbf27dd5d00b
204
#!/bin/bash export JAVA_OPTS="${JAVA_OPTS} -Dagent.header.hostname=${HOSTNAME} -Dagent.header.pipeline=${ARCHIVEMATICA_HOST}" /usr/local/openjdk-11/bin/java $JAVA_OPTS -server -jar pmq-agent-latest.jar
19bb04fa86819ca727551d9144a333ef46f52a74
575
# This script performs cleaning operations of counrty files with errors cd data/clean/ # Fix Guinea file - just want middle 12 rows echo "fixing Guinea file" head -n 24 Guinea.cc.txt | tail -n12 > Guinea.cc.txt.clean mv -v Guinea.cc.txt.clean Guinea.cc.txt # Fix China file - just want top 12 echo "fixing China file...
f31db0ba217e68dd7918bfef48eecd69de512c5b
2,941
#!/bin/bash rm results.csv 2> /dev/null touch results.csv echo "Identificador,Cache Size(KB),Cache Associativity,Cache Block Size(bytes),Cache replacement policy,Miss penalty(cyc),Execution time(cycles),instructions,Memory accesses,Overall miss rate,Read miss rate,Average memory access time (cycles),Dirty evictions,Lo...
b133d77fad6016096922fc6d3deb50c456eae422
1,287
# # Used for executing user's commands at start, will be sourced when starting as a login shell (pre-zshrc). # ########################### ## Paths ## # If this is an M1 Mac then the Homebrew path is a little different # if [[ $OSTYPE == "darwin" ]] then # if [[ "$(uname -m)" == "arm64" ]]; then # export PATH="...
eca8aaebe54c6603dfef79caba2ce957520a39ce
736
#!/bin/sh # # We configure git to use this script instead of just /usr/bin/ssh. # This script is used so we can pass some options to ssh when git uses it. set -o errexit set -o nounset # Ensure required environment variables are present [ -n "${PROJECT_ROOT}" ] [ -n "${TRANSLATION_REPOSITORY_DEPLOY_KEY}" ] # Ensure S...
f074805655a7b9783d3b3584e887fd052659c818
158
make delete for k in 2 4 do for p in 2 do for n in 64 128 256 512 1024 2048 do make run N=$n K=$k P=$p done done done
8b02660d8d548c06b19da005c9ff2f4527e2351a
404
#!/bin/bash CPPCHECK=${CPPCHECK:-cppcheck} CXX=${CXX:-c++} $CXX -std=gnu++14 -fsyntax-only $1 RES=$? if [ $RES -ne "0" ]; then exit 0 fi TMPFILE=$(mktemp) $CPPCHECK --enable=all $1 |& tee $TMPFILE RES=$? if [ $RES -ne "0" ]; then rm $TMPFILE exit 1 fi grep -q -E "internalAstError|syntaxError" $TMPFILE...
f3a35a674d32303c011d81e0ffda976cf19c1cc2
1,164
#!/bin/sh set -e DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd $DIR if [ ! -d libs ]; then mkdir libs fi if [ ! -f libs/simple-fb-4.0.9.jar ]; then curl -o simple-fb-4.0.9.aar https://dl.bintray.com/sromku/maven/com/sromku/simple-fb/4.0.9/simple-fb-4.0.9.aar mkdir simple-fb tar -xvf simple-fb-4.0.9.aar...
736986b889c35e89f8b25ca2fab876f508d71efa
233
#!/bin/bash # Run the cockroachdb client in the cluster. kubectl run machineserver-cockroachdb-cli -it \ --image=cockroachdb/cockroach:v19.2.5 \ --rm \ --restart=Never \ -- sql \ --insecure \ --host=machineserver-cockroachdb-public
0ab83fae854be929bfa24248d8bb1807ca7c4767
2,676
#!/bin/sh #AIM : Récupération de la liste des processus sous forme d'arborescence, en # ajoutant le lien de parenté Parent/Enfant et en spécifiant le l'ID de # processus et son nom. #AUTHORS : AULAGNE Jérôme #PARAMS : #MODIF : #27/12/2016 - Modification de la boucle for initiale - récupération des variables dans u...
6af8baec56be7c4045db63935afac7f69cdeafc6
41
#!/bin/bash python water_pump_cycle.py
002dbd26a261f56a96b52a3b0099ba8b8e8b11da
2,670
#!/usr/bin/env bash sudo yum -y update curl -fsSL https://get.docker.com/ | sh sudo systemctl start docker sudo systemctl enable docker sudo usermod -aG docker vagrant sudo yum groupinstall -y development sudo yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel wget http://www.python.org/ftp/python/2.7.13/P...
68292e964603b9beec0d2ed921ebe1dd216e7f18
168
#!/bin/bash directory=$1 for d in `find ${directory} -type d -depth 1` do echo " >>>> node_modules/$(basename $d)" ln -sf "$d" "node_modules/$(basename $d)" done
a32fc5ac04e58dd350105f231c95338b22b520f4
25
#!/bin/bash java Server
c57a129adbfcf2d9034282862291c86ec9dca3a0
128
#!/bin/sh for i in `seq 1 $1`; do ../prog_dynamique_dev/target/graph_gen autogenerated 14 15 1 25 solver_2opt autogenerated done
bc5c4e8c613f4b10259ea95262a1bd0ba69fe7f8
1,071
#!/bin/bash # # Copyright (c) 2012-2019 Triad National Security, LLC # All rights reserved. # # This file is part of the mpimemu project. See the LICENSE file at the # top-level directory of this distribution. # # for one machine tests (primarily for development testing). if [ -z "$PS1" ]; th...
8411b78f4a40a362aa8c8c38fccce47b677513e0
925
#!/usr/bin/env sh sudo easy_install pexpect /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew tap caskroom/cask brew install docker brew install docker-machine brew install heroku-toolbelt heroku plugins:install heroku-container-registry echo "*********Going to logi...
63b8af70af324c91e93268ec98d7dede0b8848b3
133
#!/bin/bash # Script which sends DELETE request to URL passed as first argument and displays body of response curl -sX DELETE "$@"
fe66c9a2a163f456cb1d57ab02813b95dae97f5a
2,773
#!/bin/bash module load fsl-uon/binary/5.0.11 module load connectome-uon/workbench-1.3.2 module load python-img/gcc6.3.0/2.7.15 subject_list="/gpfs01/home/ppxet1/scripts/NMF_paper/pipeline/subject_list.csv" results_dir="/gpfs01/home/ppxet1/tests/pipeline_output" scripts_dir="/gpfs01/home/ppxet1/scripts/NMF_paper/pip...
32a572463290de4c96d6b0340dc0eed6a8e2e07c
3,521
#!/usr/bin/env bash # BuaBook Archive System # Copyright (C) Sport Trades Ltd # 2016 readonly PROGNAME=$(basename $0) readonly PROGDIR=$(readlink -m $(dirname $0)) readonly SOURCE_CONFIG=${BAS_CONFIG}/$(hostname)/archive.config readonly TARGET_CONFIG=${BAS_CONFIG}/$(hostname)/archive.target readonly RSYNC_OPTIONS="...
9e50ca48276042a92757863811204e1a59e96af4
985
#!/bin/bash # Check base dir name BASE_DIR=`dirname "$0"` # Initialize parameters and functions . ${BASE_DIR}/../functions.sh # Check if we have at least one parameter if [ $# -eq 1 ]; then JTL_FILE=$1 fi # Call getjmeterdir getjmeterdir # Delete calls sed "/lb=\"http/d" $JTL_FILE > "${JTL_FILE}_Without_Re...
fbcd5484b561451bc1af873949ed65f06dde3459
286
#!/usr/bin/env sh cd ~ git clone git@github.com:rajatvig/dotfiles.git ~/dotfiles cd ~/dotfiles git submodule sync ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" cd ~/dotfiles/scripts sh ./get.config sh ./get.install sh ./get.editors cd ~