blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
a424e1a0fcff64f31dacad0f1d30f7847ab8926d
622
#!/usr/bin/env bash log () { printf '%s %s\n' "$(date -R)" "$*" >> ~/.logs/note.log } named_note () { vim "$XDG_CONFIG_HOME/notes/$1" ( set -e exec > >(while read -r l; do log "$l"; done) 2>&1 if ! cd "$XDG_CONFIG_HOME"/notes then log "Issue moving to notes dire...
2f250a311cda89633c9c60816a721ca08551b7c3
771
#!/bin/sh # # Homebrew # # This installs some of the common dependencies needed (or at least desired) # using Homebrew. # Check for Homebrew if test ! $(which brew) then echo " Installing Homebrew for you." ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi # Install hom...
aa47540f8b9af48a8ee70cfb8e5d1c760726c1a6
5,433
#PBS -N LUFACT_C_OriginalMatrix_TimeTest_ICC #PBS -l walltime=20:00:00 #PBS -q mei #PBS -m abe #PBS -M carlos.sa01@gmail.com #PBS -lnodes=1:r641:ppn=32 # Machine USED read -r node_info<$PBS_NODEFILE ############ Information about algorithm to run ################ alg="LUFACT_C_OriginalMatrix_ICC" exeICC="$HOME/...
f4bc8e2df037aa73e85c7ef768112a46f0dcc65d
288
mysql -uroot -proot -h127.0.0.1 -P3310 -se"select @@port\G select count(*) from test.employees" mysql -uroot -proot -h127.0.0.1 -P3320 -se"select @@port\G select count(*) from test.employees" mysql -uroot -proot -h127.0.0.1 -P3330 -se"select @@port\G select count(*) from test.employees"
f718aaccac3d57149d5532a05cedf4beb17c8133
654
#/bin/sh # Copyright 2006-2014, Alan K. Stebbens <aks@stebbens.org> # # Test module for list-utils.sh # export PATH=.:$HOME/lib:$PATH source list-utils.sh source test-utils.sh test_10_print_list() { start_test words=( apple banana cherry dog elephant fox giraffe hawk indigo manzana milk november october de...
fa5ec5f84bc30e035ee4d5cf4eb22d2fe9e1557b
482
pkgname=netctl-eduroam-kth pkgver=0.1 pkgrel=2 pkgdesc='Example netctl profile for eduroam at KTH' arch=(any) url=http://www.lan.kth.se/eduroam/linux/arch_linux_example.html license=(MIT) depends=(ca-certificates netctl) source=(eduroam-kth) install=install md5sums=('d7f6aa0caeb8ec37a70fa69b8b3eeafb') sha256sums=('3761...
34133138447447680c55f5b6e56ca10cce39e834
5,573
export LC_CTYPE=C export LANG=C USER_INSTALL_DIR="$(dirname "$( cd "$( dirname "$0" )" && pwd )")" USER_PACKAGE_INSTALL_DIR='$HOME/QueryIOPackage' echo "Installation Directory: $USER_INSTALL_DIR" PROP_FILE=$USER_INSTALL_DIR/bin/qio-setup.properties source $PROP_FILE LOCAL_IP=`ifconfig | grep -Eo 'inet (addr:)?([0-...
a9763bf461c5407e4079f9f8530c5e9c90a50717
893
# deploy kubernetes dashboard kubectl -f ./app.yaml apply # para acceder al dashboard kubectl edit svc kubernetes-dashboard -n kubernetes-dashboard # y actualizamos `type: ClusterIP` a `type: NodePort` aunque podemos no hacerlo, porque es un eks y necesitamos el por-forward # y haces un port-forward kubectl port-for...
5879f7da5ee14af996b87b46371e276828d73875
314
#!/bin/bash -xe # setup export CXX=${CXX:-"g++"} export CXXFLAGS='-O2 -g0 -std=gnu++14 -fno-gnu-keywords' # build ${CXX} --version mkdir -p m4 autoreconf -ifv ./configure --disable-silent-rules --enable-debug-checks --disable-static make -j$(nproc) # test make -j$(nproc) check || (cat ./test-suite.log; false)
c8c001cf28670a1a8053d0a5f29f4837fb0892bc
4,009
#!/bin/bash # Configuration . ./config.sh || { echo "FAILED: Could not configure" && exit 1 ; } # Additional Configuration # NONE # See https://docs.openshift.com/enterprise/latest for general openshift docs echo "Create a Devnation Fedevnation-visitorsderal 2017 demo environment" echo " --> make sure we are logged...
2b9d8b126d4a371b4705ae571363722a109113a5
37
API_URL = https://api.url.com/api/v1/
ed1a45f200465762f943e0e40d4d1b596b6dfa8d
2,332
#!/usr/bin/env bash set -euo pipefail STARSHIP_CACHE_DIR="/tmp/starship-cache" JSON_FILE="$STARSHIP_CACHE_DIR/laravel.json" VERSION_NOT_FOUND="___VERS_NOT_FOUND___" check_artisan() { if [ -f "$PWD/artisan" ] && [ -d "$PWD/vendor" ] then return 0 else return 1 fi } get_laravel_versio...
63abe15dc1eb94ae9980b901ce08a58b67b84c34
292
#!/bin/bash docker rm ubuntu_node-server_1 --force docker pull asianjohnboi/tweetery:latest docker run --name ubuntu_node-server_1 --restart=unless-stopped \ --network=ubuntu_tweetery-network \ --ip=172.18.0.2 \ -p 5000:5000 asianjohnboi/tweetery:latest
040a52566fbcb276fe710c4a6a889de27ef3ae74
1,571
#!/bin/bash # Run the tests in a local docker container, which runs the same travis test script. # This script does the following: # - create a new test image with necessary software installed e.g. git # - remove existing containers, and create a new one for each test run # - mount the dotfiles directory and exec...
dc1b17c3b1cf9585860327f237cd43c054876054
148
DATABASE= test_db DATABASE_HOST=localhost DATABASE_USER= root DATABASE_PASSWORD= MyNewPass JWT_PASS=mepasses JWT_DURATION=90d JWTCOOKIE_DURATION=90
9388105764fb60be93c3fa92a1b0d8b0c747f5b4
783
pkgname=chromaprint pkgver=1.5.1 _commit=aa67c95b9e486884a6d3ee8b0c91207d8c2b0551 pkgrel=2 pkgdesc='Client-side library that implements a custom algorithm for extracting fingerprints from any audio source' url='https://github.com/acoustid/chromaprint/' arch=('x86_64') license=('LGPL') depends=('ffmpeg') makedepends=('...
94c03bef8c4933b0188638f3de72b227c24f67b1
61
#!/bin/bash slapcat -n0 ldapsearch -x -b "dc=hadoop,dc=io"
0e13fcbac7ae682d36bfdd6686dea6f6b91cbb30
865
#!/usr/bin/env bats load stub_helper setup() { make_root_dir } run_command() { run xcenv-global $@ assert_success } @test "global default" { run_command assert_output "system" } @test "unsetting global version" { make_global_file assert [ -f "$XCENV_ROOT/.xcode-version" ] run_command --uns...
8bec6c1fec13da78b6d802023eb9cb4ee25d9edf
518
#!/bin/bash # If you need to add or remove from the repo root please change NUM_ITEMS_SHOULD_BE # Please take care to only add files or directories to the repo root unless they are # required to be in the repo root, otherwise please find a more appropriate location. NUM_ITEMS_SHOULD_BE=41 NUM_ITEMS=$(ls -la | wc -l)...
9798d11a719c8fc69dd89fd683c6d06ed3a0a1f4
195
#!/bin/bash # Created at http://ellenandpaulsnewstartup.com - we're hiring! script=$(basename $0) DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" $DIR/run-in-docker "$script" ${@} <&0
c5f97c76a5e0f6134e7b8226ead58a9e132a2edd
4,270
#!/usr/bin/bash #-*- coding: utf-8-*- # ============================================================================== # title :parsage.sh # # description :Parse log file . # # author :Odka33 - Elie BEN AY...
41c89713e593bf3048cd9997bcd4b4a9e27cb2f1
915
#!/bin/bash TARGET=$1 if [ ! -f "$TARGET" ]; then echo "|id|cve|component|description|bugzilla link|jira link|comments|" > $TARGET echo "|-" >> $TARGET fi mu find from:bugzilla and subject:CVE | awk -F '[ :\\]\\[]' '{print $13}' | sort | uniq | while read id; do # Skip ids that already exist EXISTS=`cat $TARG...
41ee8bbd7fdf287bb262dc3522ccceac03d12e07
205
#!/bin/bash set -euo pipefail jlpm && jlpm run build python -m pip install -e . jupyter labextension develop . --overwrite jupyter server extension enable retrolab jupyter serverextension enable retrolab
a90a897e757d444375d1f76ec0fd3dddf83f405d
150
#!/usr/bin/env bash set -e rm -rf generated_tb/sim/cov_work cp -f ./covfile.txt generated_tb/sim/ ./run -covfile ./covfile.txt +coverage_enable $@
e8fdbd5cf6d25905383e6c21761231e6eb2f3555
585
#!/bin/bash #SBATCH -N 1 # 1 node #SBATCH -n 1 # 1 task per node #SBATCH -c 4 # 4 cores per tasks, means 4 Matlab workers #SBATCH -o matlab.out # stdout is redirected to that file #SBATCH -e matlab.err # stderr is redirected to that file #SBATCH -t 00:01:00 # time required, here it is 1 min # sends mail when process...
3ccfdff0364282eab51aa0feb7300a021dd1c5da
179
#!/usr/bin/env bash # Rudimentary wallet tests. python pyethrecover.py -p password123 -w test_wallets/ico.json && python pyethrecover.py -p password123 -w test_wallets/mew.json
852dce36dcabe9e2b25c1e4bf52b46faba137823
272
PORT=3008 MONGO_DB= mongodb://doaa:1234@cluster0-shard-00-00.iushq.mongodb.net:27017,cluster0-shard-00-01.iushq.mongodb.net:27017,cluster0-shard-00-02.iushq.mongodb.net:27017/drinkDBB?ssl=true&replicaSet=atlas-8iarwt-shard-0&authSource=admin&retryWrites=true&w=majority
d57cc6056e39288fef838f3ac52484dd5fc97507
1,909
#!/bin/bash # # setup-linux.sh # Set up new Linux environment. # readonly DOTNET_SDK_VERSIONS=(3.1 5.0) if (( EUID != 0 )); then echo "This script must be run as root." 1>&2 exit 1 fi # Upgrade system packages apt update && apt upgrade # Install common tools apt install make # # Install 'Oh my Posh' # htt...
e51c956555d29b5048bddbafd4480cbd0e87fb02
382
WAR_DIRECTORY=/home/brekol/workspaces/private/jbutils/jbutils-ui/target WAR_DIRECTORY2=/home/brekol/workspaces/private/jbcity-courses/jbcity-courses-ui/target docker run -d \ --name jbutils \ -p 8080:8080 \ -p 80:80 \ -v $WAR_DIRECTORY/jbutils.war:/usr/local/tomcat/webapps/jbutils.war \ -v $WAR_DIRECTORY2/jbcity-cours...
3effd117faef6898d8ca4bdddc980f64610258b7
9,043
#!/usr/bin/env bats load 'libs/bats-support/load' load 'libs/bats-assert/load' load 'mock_helper' setup() { tmp_dot_home="$(mktemp -d)" DOT_HOME="${tmp_dot_home}" tmp_script_dir="$(mktemp -d)" source "${BATS_TEST_DIRNAME}/../install" } teardown() { rm -rf "${tmp_dot_home}" rm -rf "${tmp_script_dir}" } ...
c4a6e4ff7bd0edaa2eba4d85e0477687b4fa6d68
291
# Export the vars in .env into your shell: export $(egrep -v '^#' .env | xargs) # read VERSION from .env VERSION=$(grep VERSION .env | xargs) IFS='=' read -ra VERSION <<< "$VERSION" VERSION=${VERSION[1]} if [[ -z "$VERSION" ]]; then echo 'set VERSION variable properly on .env file'; fi
2250d9d9d0941805bc77be153fad4980955a028a
3,605
#!/bin/bash set -e # check whether user had supplied -h or --help . If yes display help if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then echo " Usage (order is important!): strip_primers_parallel <fastq1> <fastq2> <rev/comp primers as fasta> <threads to use> Resulting files will be output to a subdirec...
8118769cb8b5faa5095b5c6eceb08a1db54b6166
108
#!/usr/bin/env bash cd $(dirname $0) cd ../ docker-compose -p dev down docker-compose -p image down exit 0
8650af3a03e7aa5469b75df7ddf71992bfb099f4
3,826
#!/bin/bash set -e if [ ! -e $TOOLBOX_PATH/bart ] ; then echo "\$TOOLBOX_PATH is not set correctly!" >&2 exit 1 fi export PATH=$TOOLBOX_PATH:$PATH export BART_COMPAT_VERSION="v0.4.00" #--- Double Angle Sx != Sy != Sxy --- RO=128 GD=0.3:-0.1:0.2 # touch DA_Sx_Sy_Sxy_RING.txt touch DA_Sx_Sy_Sxy_ACadaptive.txt for (( ...
2aa85509f37b8b221350ea4e9bdbe0f9ef2b9240
406
#!/usr/bin/env bash docker run -d -p 8080:8080 --link postgres_postgres-master_1:postgres_postgres-master_1 --link postgres_postgres-slave_1:postgres_postgres-slave_1 --link redis_docker-redis-sentinel1_1:redis_docker-redis-sentinel1_1 --link redis_docker-redis-sentinel2_1:redis_docker-redis-sentinel2_1 --link redis_do...
bea4af540e6e443e66b4fb3dfb8e48deb39868c0
5,447
# Settings for all shells #Environment variables export EDITOR=vim export VISUAL=$EDITOR export PAGER=less export CVS_RSH=ssh export LESS="-RM" export NODE_PATH=/usr/local/lib/node_modules export PATH=$HOME/bin:$HOME/bin/bin:/usr/local/share/npm/bin:/usr/local/share/python:/usr/local/sbin:/usr/local/bin:/usr/sbin:/us...
f0277579bb0c19eeeec2305dda4387e9b0ba7db2
12,039
#!/bin/bash # server=build.palaso.org # build_type=Chorus_Win32masterContinuous # root_dir=.. # Auto-generated by https://github.com/chrisvire/BuildUpdate. # Do not edit this file by hand! cd "$(dirname "$0")" # *** Functions *** force=0 clean=0 while getopts fc opt; do case $opt in f) force=1 ;; c) clean=1 ;; esac ...
0daaf1bfd0580ac08b6eb684e635f4d8b7fcdc00
423
#!/usr/bin/env bash if [ $# -lt 1 ]; then echo "Usage: $0 <hostnames_file>" exit 1 fi hostnames="$1" for u in $(cat "$hostnames"); do lookup=$(nslookup $u 2>&1) if ! [[ $(echo -n "$lookup" | grep -i "can't find") ]]; then answer=$(echo -n "$lookup" | grep -A 999999 "answer" | grep "Address" | cu...
b0d8d149ee218bf079d60dca62da5ebf322d109b
723
for ratio in 100 50 40 30 20 10 5 4 3 2 1 #for ratio in 1 2 # for testing code do mkdir shooting cp WeatherandCrime_Data.shooting.ones.csv shooting cp WeatherandCrime_Data.shooting.zeroes.csv shooting ./bag_and_bin.sh WeatherandCrime_Data.csv 10 1 $ratio #./bag_and_bin.sh WeatherandCrime_Data.csv 1 1 ...
eb9afbf29607d6b40407b00f2588ccc6e302aed9
354
local arg="$*" while (( $# ));do if [[ -f "$1" ]]; then local server=${(U)1:t:gs/./} break fi shift done if [[ -z $server ]]; then eval "gvim $arg" else if vim --serverlist|grep -w $server &>/dev/null;then eval "gvim --servername $server --remote-silent $arg" else eval "gvim --servername $se...
d72ca73756697920cbef6a54036c61b950989d18
397
#!/bin/bash if [ -z "$1" ]; then echo "Usage: mysql.rm <username>" exit fi echo -n "Enter MySQL root pass:" read MYSQL_PASS mysql -uroot -p${MYSQL_PASS} -e "drop database ${1}" mysql mysql -uroot -p${MYSQL_PASS} -e "delete from user where user='${1}'" mysql mysql -uroot -p${MYSQL_PASS} -e "delete from db where ...
e976d83c93f3738e5b78b0fb76f30c3c6a41f775
220
#!/usr/bin/env bash aws configure set aws_access_key_id AKIA3W3ZEDH6VT4MVK6E aws configure set aws_secret_access_key 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 aws configure set default.region us-east-1 aws configure list
fa62c5e6501371b46166b056089a9df37595e587
1,199
#!/usr/bin/env bash import.require 'provision' provision.postfix_base.init() { provision.postfix_base.__init() { import.useModule 'provision' } # Install required packasges provision.postfix_base.require() { debconf-set-selections <<<"postfix postfix/mailname string localhost" ...
a32d8cf9d1b41ba423179305294b1e4fd6d382b6
4,012
#!/bin/bash # Author: Evan Manuella : <<'ExplainForLoop' Every iteration, var is going to be a new element of the command line arguments First, we check if it is has the "*]" pattern, if it does -we compile it (depending on whether it is *scm or *c) -store the output as a file -convert the source to ...
884e183f5f80f18ef2aa31d72bece8a7abc8f7b4
2,601
#!/bin/bash # Copyright 2018 by the contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
6c39076416604e4d6d3adfdeae0ab4783ea09457
46
REACT_APP_API_ENDPOINT = http://localhost:3600
da0b90c0b97a288c58db696a526eee4f3ef02341
368
# pulls latest changes from git git pull # update submodules git submodule update # activates environment and updates to include new packages source activate reactn # kills all existing processes ps -ef | grep "python" | awk '{print $2}' | xargs sudo kill # start up app.py again sudo /home/ubuntu/anaconda3/envs/re...
69c1cff527efa9caca4383c59a3c9b0587bf87eb
2,137
ulimit -t 1 case $2 in p1) ./../../limit $1 '5 5 3 6 1 4' | diff outputP/O1 - && exit 0 ;; p2) ./../../limit $1 '1 5 2 3 7 4 22 1 2 1 3 2 0 17 5 6' | diff outputP/O2 - && exit 0 ;; p3) ./../../limit $1 '6 8 4 6 7 5 4 65 1 4' | diff outputP/O3 - && exit 0 ;; p4) ./../../limit $1 '6 8 6 2 4 11 4 62 3' | diff outpu...
4c27a54487de7de2eef8f389bd62a60533f2ba62
245
#!/bin/bash DB_DATABASE=$1 if [ "$DB_DATABASE" == "" ]; then echo "usage $0 <databbase>" exit fi sudo su - postgres -c "dropdb $DB_DATABASE" 2>/dev/null sudo su - postgres -c "createdb $DB_DATABASE" sudo su - postgres -c "psql --list"
1ef6c9586a99bf12d7ea3341304b1b468e7ea8a3
1,919
#!/bin/sh ### BEGIN INIT INFO # Provides: domaininfo # Required-Start: $local_fs $network $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Domain info collector # Description: Collects information about domains based on BIND lo...
3fb5ac143de8377632852b9385ab12f8bdd4ed43
47
#!/usr/bin/env bash exec pharo launchpad "$@"
87d54facdead03994fa14a2d890c7288d41424c8
970
#!/usr/bin/env sh # 确保脚本抛出遇到的错误 set -e outputPath=./blog/.vuepress/dist/ setGitGlobalConfig() { git config --global user.name "liddhappy" git config --global user.email "870886477@qq.com" } if [ -f "${outputPath}index.html" ];then echo "index.html文件存在" else echo "index.html文件不存在" # 生成静态文件 yarn build fi ...
04894d896419ba0f9d6225879ee853335eff296e
21,351
#!/bin/bash # Silently install masternodes and insert privkeys function setup_environment() { # Set Variables INSTALLDIR='/root/installtemp' LOGFILE='/root/installtemp/silentinstall.log' touch '/root/installtemp/checkdaemon.log' # create root/installtemp if it doesn't exist if [ ! -d $INSTALLDIR ] then mkdir $INSTA...
9f2934dd2b57538e68b40ddad683192522fdbbc4
167
#!/bin/bash #if [ ! -n "$1" ];then # echo "i" # exit -1 #fi git remote rm origin git remote add origin git@github.com:zhangxinming1991/mfc.git git remote show origin
b6f0c48d3b40dd9e4554d83fe2ba5a0f03373012
10,281
#!/bin/sh die() { printf "$1\n" >&2 exit 1 } usage() { cat <<EOF usage: configure [options] --prefix=PREFIX installation prefix [/usr] --exec-prefix=EPREFIX installation prefix for executable files [PREFIX] --bindir=DIR user executables [PREFIX/bin] --datadir=DIR architecture-in...
535e9d73fa20fa4c6f0a00778833d8579422e4f4
163
PORT=5000 POSTGRES_HOST=db POSTGRES_PORT=5432 POSTGRES_PASSWORD=postgres POSTGRES_USER=postgres PGDATA=/Users/flat-box/docker_data/db/postgres POSTGRES_DB=flat_box
e17da62c13048cda3daa43beabf9fe710d85017b
3,316
#!/bin/bash #Read the config properties . ./config.props startTag="" endTag="" #outputFormat="md" if [ $# -eq 0 ]; then echo "USAGE: sh $0 tag1 tag2" exit -1 elif [ -z "$1" ] || [ -z "$2" ] then echo "USAGE: sh $0 tag1 tag2" exit -1 fi startTag=$1 endTag=$2 #If the user provides the output format as...
30a98df04b0ace0a845aba6ab0812948aab24435
1,388
#!/bin/bash if [[ ! -d ${SHYFT_STITCHED_PATH}/${SHYFT_MODE} ]]; then mkdir -p ${SHYFT_STITCHED_PATH}/${SHYFT_MODE} fi toProcess=( ) payloads=( ) for CFG in $SHYFT_BASE/config/$SHYFT_MODE/stitchSystematicConfigs/*.cfg; do COMMAND_TO_RUN="stitch.py ${SHYFT_REBIN_PATH}/${SHYFT_MODE} ${SHYFT_STITCHED_PATH}/${SHYFT_...
36cb65ef6b4f7f12b1f3550b3a9cf81079420110
148
#!/bin/bash read -p "enter a number: " num harNum=0 for ((i=1;i<=$num;i++)) do harNum=`awk "BEGIN {print $harNum + (1/$i)}"` done echo $harNum
74278669431f94523ad452cd98beb20178450645
581
#!/bin/bash echo "" > results/block_design_timing_100.txt 3dDeconvolve -nodata 300 1 -polort 1 \ -num_stimts 3 \ -stim_times 1 block_times/blockt.100.A.txt 'BLOCK(100)' -stim_label 1 'A' \ -stim_times 2 block_times/blockt.100.B.txt 'BLOCK(100)' -stim_label 2 'B' \ -stim_times 3 block_times/blockt.100.C.txt 'BLOCK...
8b537a95e28b2e1cde34af74e71f3b23307434ea
151
DB_HOST=db DB_PORT=3306 DB_USER=teste DB_PASSWORD=teste DB_NAME=teste DB_DRIVER=mysql DB_CHARSET=utf8 DB_DOCTRINE_DRIVER=pdo_mysql IN_DEVELOPMENT=true
67a31c13f8a9b6458924f359719f1807ea94d350
954
sf-get-cvs-modules() { (CVSCMD="cvs -z3 -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG co" # CVSPASS="cvs -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG login" CVSPASS='echo "${GREP-grep} -q @$ARG.cvs.sourceforge.net ~/.cvspass 2>/dev/null || cat <<\\EOF >>~/.cvspass \1 :pserver:anonymou...
d2e9e6e1b58cfd5a48e0c5f95e8ee0244e396e09
291
docker rmi winccoa-centos winccoa-base winccoa-java winccoa-mqtt winccoa-orcl docker build winccoa-centos -t winccoa-centos docker build winccoa-base -t winccoa-base docker build winccoa-java -t winccoa-java docker build winccoa-mqtt -t winccoa-mqtt docker build winccoa-orcl -t winccoa-orcl
e9f8adb31635608ca78d823d36205d7452949390
555
#!/usr/bin/env bash #set -x export PS4='+ [`basename ${BASH_SOURCE[0]}`:$LINENO ${FUNCNAME[0]} \D{%F %T} $$ ] ' MYNAME="${0##*/}" CURDIR=$(cd "$(dirname "$0")"; pwd) chmod +x ${CURDIR}/bin/start MYIP=`ifconfig | grep "inet addr:10\." | grep -oP "((\d+\.)){3}(\d+)" | head -n 1` nohup ${CURDIR}/bin/start \ --mast...
931f3bb2c04827fcbb16f8ddc9a01d544aa2f456
160
#!/bin/sh # tap twice to drag + hold synclient TapButton1=1 # self-explanatory synclient CircularScrolling=1 synclient RightEdge=1800 synclient BottomEdge=1350
a72e658cbc91d244abeac081e346fe17d7a43a66
48
NODE_ENV=development USERNAME=test PASSWORD=1234
50710a4a4b2e7b13d732a783b2de4b8e188afbf3
80
ok 1 - setup ok 2 - merge c2 with a custom strategy # passed all 2 test(s) 1..2
18d69867518c8a8f4aa4b234717b82d43d20f923
164
#!/usr/bin/env bash set -x echo "Running $PWD/install.sh" injected_dir=$1 # copy any needed files into the target build. cp -rf ${injected_dir}/modules $JBOSS_HOME
78cd276e1070143eaec135ccddd3f2bd18d8a9bc
130
#!/bin/bash # # Resizes JPG images in current directory. for i in *.jpg do convert $i -resize 250 $i > /tmp/jpg-resize.log done
c1933be97a38da4d5535ac0f254005842c0d171b
150
#!/bin/bash set -e cd ~/mesa git tag -d build || true git tag build `git-commit-working-tree` num_jobs=`getconf _NPROCESSORS_ONLN` make "-j$num_jobs"
e8cc910f63aebd6c406cce9ff901fac0dcf953e4
56
#!/usr/bin/env bash source env.sh docker-compose stop
f496c0efecad68a30395fa19cdb88cc7c9e10063
238
#!/bin/sh [ -z "$1" ] && echo "file is needed;" && return READELF=arm-none-linux-gnueabi-readelf $READELF -v 2>/dev/null || READELF=arm-linux-gnueabihf-readelf $READELF -a $1 | grep "Shared library:" | cut -f 2 -d '[' | cut -f 1 -d ']'
bd55f6b356f4f0c90a4b5785cadd9bcf67b83af4
165
#!/bin/bash # Starten des Beispielprogramms groovy -cp "src:libs/jpcap.jar" src/praktikum/beispiele/beispiel1/HttpBeispiel.groovy -p "src/praktikum/beispiele/" $*
81392e9dfcfc4d5aa56644fa13b4e91ecb05f6ac
2,853
## Simple bash script to install the necessary software packages to ## enable full multimedia capabilities. ## ## Written by Carl Duff ## clear echo "Checking root privilages and internet connection...." echo ## Check 1: Ensure that the script is being run with root privilages if [[ `whoami` != "root" ]]; then e...
97794301d4c7c13264b57b01f940743ab8811ce9
285
SCREENDOOR_PROJECT_ID="" SCREENDOOR_API_KEY="" # The ID of your "Appointment time" response field. SCREENDOOR_RESPONSE_FIELD_ID="" # We'll ignore responses in this status. Find the ID by # filtering by this status and looking at the URL querystring. SCREENDOOR_ARCHIVED_STATUS_ID=""
6dec4c76f784b381bacecd0c3d497b69046c9d94
1,619
#!/bin/bash ls cd .. export IMAGE_TAG=1.4 echo "Generating cryto material for peers..." mkdir ./channel-artifacts cryptogen generate --config=./crypto-config.yaml echo "Generating channel artifacts and genesis block..." configtxgen -profile LEANOrdererGenesis -outputBlock ./channel-artifacts/genesis.block configtxge...
039685528df9df35f45cff6dd41a50f254801dfe
1,142
entrypoints/ touch /etc/contrail/contrail_keystone_auth.conf if [ _n "$KEYSTONE_SERVER" ]; then ./openstack_config __set /etc/contrail/vnc_api_lib.ini auth AUTHN_SERVER $KEYSTONE_SERVER ./openstack_config __set /etc/contrail/contrail_keystone_auth.conf KEYSTONE auth_host $KEYSTONE_SERVER ./openstack_config __set ...
89ee730a01857c8bd819dbe77fcfe098877e41ed
1,140
gen_dockerfile() { DEST=$1 echo "FROM debian" echo "RUN apt-get update" echo "RUN apt-get upgrade" echo "RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" echo "RUN apt-get -y install apt-utils" echo "RUN apt-get -y install netbase" echo "RUN apt-get -y install net-tools" echo "RUN apt...
d6f08d5de1aa31f4469be70d8f9bed35fec1638a
8,395
#!/bin/bash NB_USER=$USER CONDA_DIR=$ROOT_DIR/conda BASE_DIR=$ROOT_DIR/ # Install Tini conda install --quiet --yes 'tini=0.18.0' && \ conda list tini | grep tini | tr -s ' ' | cut -d ' ' -f 1,2 >> $CONDA_DIR/conda-meta/pinned && \ conda clean --all -f -y # Install Jupyter Notebook, Lab, and Hub # Generate a...
2215fca4bdd6d361affccef6494648b40e9d32ae
309
#!/bin/bash ## Download the keys from Brandon Wilson's website. SOURCE=http://brandonw.net/calcstuff/keys.zip wget --continue $SOURCE || { exit 1; } ## Unpack the keys to the rabbitsign directory. echo Decompressing the magic keys. Please wait. unzip -o -d "$TIGCC/share/rabbitsign" keys.zip || { exit 1; }
34d5c0fb293b06d3fd1a906b60e3c76f97f7081b
1,467
#! /bin/bash function echoX { echo -e "PREBID TESTLOG: $@" } echoX "start unit tests" cd PrebidMobile ./gradlew clean test echoX "assemble debug apk" ./gradlew clean assembleDebug if [ ! -e DemoApp/build/outputs/apk/debug/DemoApp-debug.apk ];then echoX "apk creation unsuccessful" fi echoX "copy debug apk to destin...
598473ebbbc935131345f275a4e9e66c2fd5cac5
62
#!/bin/bash main() { mkdir -p "$@" && cd "$@"; } main "$@"
5a2d5cbfd6a53b9a4a6457b4e9945799cbdc83d6
305
# nodejs variable PRISMA_ENDPOINT=http://localhost:4466 # replace prisma endpoint PRISMA_SECRET=password123 PRISMA_SCHEMA=dist/testSchema/prisma.graphql CLIENT_SCHEMA=dist/testSchema/client.graphql OUTPUT_FOLDER=../src/testSchema JWT_SECRET=thisisasecret NODE_PORT=4001 NODE_ENDPOINT=http://localhost:4001
33843d81d22d708ec5985f3d4c7deff730f81489
6,749
#!/bin/bash # DIRS ROOT_DIR=$HOME/org/djinn-1.0 SERVER_DIR=$ROOT_DIR/service CLIENT_DIR=$ROOT_DIR/tonic-suite MON_DIR=$HOME/git/gpu-cloud/monitor/cpp3 #SERVER SCRIPTS GPU_SERVER_SH=$SERVER_DIR/executeServer.sh CPU_SERVER_SH=$SERVER_DIR/executeCPUServer.sh #CLIENT SCRIPTS IMG_SH=$CLIENT_DIR/img/execImg_Djinn_no_mpi...
53a82cae7523e97f2622b7b5fcfbcd19529af4be
3,487
#!/bin/bash # Source environmental variables set -a sed -i 's/\r//g' $1 . $1 set +a # Updating vars in config file envsubst < $1 > cur_config.ini # Update images from blob storage # echo "Updating Blob Folder" # python ${python_file_directory}/update_blob_folder.py cur_config.ini # # Create TFRecord from images + csv f...
9ae7b98f10a783f49b687fb6f3ea7026b8602288
7,754
#!/usr/bin/env bash # Common variable MESOS_TEST_DIR="`dirname \"$0\"`" # relative export MESOS_TEST_DIR="`( cd \"${MESOS_TEST_DIR}\" && pwd -P)`" # absolutized and normalized # User specify configuration of mesos export MESOS_MASTER="127.0.0.1:5050" export REST_PORT="8077" source "$(dirname "$0")"/config # FLINK_H...
f334518a885be72e0be79db452071b6675591155
345
#!/usr/bin/env bash export BOOTSTRAP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" mkdir ~/.bin curl "https://dl.dropboxusercontent.com/u/1397059/apps/webify" -o ~/.bin/webify chmod +x ~/.bin/webify cp "${BOOTSTRAP_DIR}/init/bin/generate_ctags" ~/.bin/ chmod +x ~/.bin/generate_ctags npm install -g svgo n...
4d4bc113c30b4412f79908119bf49bb6adc6ba18
40
PROJECT=alerta COMPOSE_PROJECT_NAME=fwd
db3e14bf2b44e0fe1d48e61a756a4f04f3d9c696
285
#!/bin/bash rsync -avEh \ --delete-after \ --delete-excluded \ --exclude='*.log' \ --exclude='*.converted' \ --exclude='*.gz' \ --exclude='core' \ --exclude='crash-*.txt' \ --exclude='/debug' \ --exclude='/*.jar' \ "./data/" "./backups/_work"
47a5393d5c68a5ebb905b8f656e6caf3775bfb85
587
# language environment export LANG=en_US.UTF-8 export LC_COLLATE="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export LC_MESSAGES="en_US.UTF-8" export LC_MONETARY="en_US.UTF-8" export LC_NUMERIC="en_US.UTF-8" export LC_TIME="en_US.UTF-8" export LC_ALL= ## fasd alias v="f -e mvim" ## Color alias ls="ls --color=auto" ali...
d3a765e94b8e4c9a992c6a796e5af6fae4458ca1
1,508
#!/bin/bash # Eduardo Gimeno # La etiqueta de la opción -t de logger cambia según la máquina # Obtener nº de usuarios y carga media de trabajo # Depende de cuantos usuarios halla los campos pueden variar if [ "user," = "$(uptime | awk '{print $5}')" ] || [ "users," = "$(uptime | awk '{print $5}')" ] then uptime | a...
48c7476901f1d3acc4953ce9a26f66a5f25090fa
2,510
#!/usr/bin/bash #Small snippet to create a QnA knowledgebase #From Microsofts DTO json format #example: https://raw.githubusercontent.com/microsoft/botbuilder-tools/master/packages/QnAMaker/examples/QnADocumentsDTO.json #https://github.com/microsoft/botbuilder-tools/tree/master/packages/QnAMaker/examples kbase_file_pa...
bc9485c3e638868007aa3b17757ac9fdb3280720
366
#!/bin/bash export RUST_LOG="recon=trace,gossip=trace" trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT truncate -s 0 peers.txt for PORT in `seq 9000 9008`; do echo "127.0.0.1:$PORT" >> peers.txt done cargo build --example gossip for PORT in `seq 9000 9008`; do ./target/debug/examples/gossip 127.0.0.1:$PORT peers....
e4d7281f3d7f820b16b8cbd3a61a7d4650e5f40b
40
API_URI='http://localhost:3001/graphql'
547417431cd0d8c6fd844f5a6f3fef280e6f5ddd
2,746
#!/bin/bash -eux # # Copyright 2018 Delphix # # 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 applicable law or agreed ...
3a76f0770e59fe8025beb8945ddb5f6c8e5c6377
80
MONGO_ROOT_USER= MONGO_ROOT_PASSWORD= MONGOEXPRESS_LOGIN= MONGOEXPRESS_PASSWORD=
948d70a9720aa4666f53498372d8eef3137bee56
124
# 多文件编译 g++ -c encode_convert.cpp g++ -c main.cpp g++ main.o encode_convert.o -o test rm main.o encode_convert.o
f87419928b9b496741225750b991e72998909a29
2,075
#!/usr/bin/env bash # Old Firefox with JRE 6 for managing HP servers # https://www.reddit.com/r/linuxquestions/comments/2oebqn/problems_using_ilo_java_interface_with_java_7_and/ image=$(basename $0 .sh) user=${USER:-root} home=${HOME:-/home/$user} uid=${UID:-1000} gid=${uid:-1000} tmpdir=$(mktemp -d) escape_me() { ...
5e6d70580892040e123a230869dc63198d64e27b
205
#!/usr/bin/env bash # upgrade apt-get update apt-get -y upgrade # install rust curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> $HOME/.profile
a10b203575895ee9e459a0004bab6fb4d8df84b3
712
INPUT="$@" #echo $INPUT STR="${INPUT:3}" BIN=./bin$STR BIN_DIR=${BIN%/*} BIN_BASE="${BIN/$BIN_DIR/}" BIN_BASE="${BIN_BASE/.md/}" MIN=./min$STR MIN_DIR=${MIN%/*} MIN_BASE="${MIN/$MIN_DIR/}" MIN_BASE="${MIN_BASE/.md/}" OPT=./opt$STR OPT_DIR=${OPT%/*} OPT_BASE="${OPT/$OPT_DIR/}" OPT_BASE="${OPT_BASE/.html/}" OPT_CRIT=$O...