blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
602f12d0f19d26502b993b70ff71fa32a05e02ea
19,918
#!/bin/bash ARGC=$# ARGV=("$@") COUNT1=0 COUNT2=0 function sqlite_query() { if [ ! -n "$1" ];then return 1 fi DB=$1 QUERY=$2 sqlite3 "$DB" "$QUERY" -line -nullvalue "<<NULLSTR>>" } sqlite_read_line () { local IFS=" \= " read COL DATA local ret=$? COL_NAME=${COL// /} return $ret } function...
678cef277722e46432461c1c4df15d879bce14d8
355
#!/bin/bash # Play agent against specified program 100 times # Example: # ./playpy.sh lookt 12345 if [ "$#" -ne 2 ]; then echo "Usage: $0 <player> <port>" >&2 exit 1 fi # p is the port number p=11300 i=0 while ((i < 100)) do ./servt -p $p & sleep 0.1 ./agent.py -p $p & sleep 0.1 ./$1 -...
904700debff03dbdddb8159e830485e3e5114bbe
181
#!/bin/sh domain="stekon.mikaelroos.se" ip=`wget -qO- ipecho.net/plain` url="https://mikelroos.se/ddns/$domain/$ip" #echo $url cmd=`wget -qO- "$url"` logger "ddns status: $cmd $ip"
7416b57351e0758796e2e52364ae593b5a8545e9
4,020
#!/bin/bash : ' Copyright (C) 2021 IBM Corporation Rafael Sene <rpsene@br.ibm.com> - Initial implementation. ' # Trap ctrl-c and call ctrl_c() trap ctrl_c INT function ctrl_c() { echo "Bye!" exit 0 } function check_dependencies() { DEPENDENCIES=(ibmcloud curl sh wget jq) check_connectivity ...
88965cf38baa1fe1aea2a7db1c00da92c15b34ec
716
#!/bin/bash # fx_past_png.bash # I use this script to create a png file for the splash page. # The png file shows a weekly summary of fx-DanBot performance. # Assume that fx_past.sql (via index_spec.bash) has been run and CSV data landed here: # /tmp/fx_sunday_l.txt # /tmp/fx_sunday_s.txt set -x cd /pt/s/rl/cj/pred...
89e5e0f0bc17faca0b7232cb25a689a7c29bbe61
2,148
#/bin/bash sleep 2 apt-get update -y clear yum update -y apt-get install openssh-server -y clear apt-get install curl -y clear yum install openssh-server -y clear apt-get install openssh-client -y clear yum install openssh-client -y clear apt-get install stunnel4 -y clear yum install stunnel4 -y c...
05888ac4cef046e66d4a4723f2180d9e2df2ddd6
275
#!/usr/bin/env bash python3 5-myeongjaekim-codebuild-cf-template.py > 5-myeongjaekim-codebuild-cf.template awsecr cloudformation create-stack \ --stack-name myeongjaekim-codebuild \ --capabilities CAPABILITY_IAM \ --template-body file://5-myeongjaekim-codebuild-cf.template
254a6f103af1b0135374f72ea5acbb3eeef8db48
706
#!/bin/bash TARGET_ENV=$1 if [ -z "${TARGET_ENV}" ]; then echo "The TARGET_ENV variable is empty." exit 1 fi if [ ! -f ${TARGET_ENV}.properties ]; then echo "The ${TARGET_ENV}.properties file does not exist." exit 1 fi # We have to export variables to be used with envsubst command set -a source ${TARGET_ENV}.pr...
b871e77ef1fa00c7d8c800e1f231d4b086d91ded
411
#!/bin/sh # Start the pomsfa # FA_HOME=`pwd` FA_LIBS=${FA_HOME}/lib JAR_LIB=`ls ${FA_LIBS}/*.jar` # build CLASSPATH from the lib directory LOCAL_CLASSPATH='.' for name in ${JAR_LIB} do echo $name LOCAL_CLASSPATH=${LOCAL_CLASSPATH}:$name done echo ${LOCAL_CLASSPATH} # export our classpath CLASSPATH=LOCAL_CLASSPAT...
0aa39b75800a7b09fd4b5927b8acaeae0843a941
1,736
#!/bin/bash # Copyright 2015 The Kubernetes 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 require...
58a77119d43a784e9a7f24080fc96a7d8753998b
891
#!/bin/sh on_exit() { mountpoint -q /proc && umount /proc exec /sbin/init $* } trap on_exit 0 mount -t proc proc /proc || exit grep -q overlay /proc/filesystems || exit mount -t jffs2 /dev/$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/') /overlay || \ mount -t tmpfs tmpfs /overlay ||...
a9b972c8a48d2a12c14a55225a8727bbc3e0b45f
863
# Maintainer: Brian Bidulock <bidulock@openss7.org> pkgname=perl-devel-findref _realname=Devel-FindRef _module=Devel::FindRef pkgver=1.44 pkgrel=2 pkgdesc="${_module} -- where is that reference to my variable hiding?" epoch=1 arch=(i686 x86_64) url="https://metacpan.org/release/${_realname}" license=('LGPL' 'PerlArtis...
4947356b72f4b3b033ab7857d348cf130c3f7559
1,057
#!/bin/sh ##################################################### mother_dir=/sciclone/data10/hwang07/GPU_RESEARCH/amc/coverage10_noecho_sizes_delay for configs_stor1 in coverage10_noecho_size512_delay16_gto48 coverage10_noecho_size512_delay32_gto48 coverage10_noecho_size512_delay64_gto48 coverage10_noecho_size512_dela...
1658b9b96a4ef7134bd13f4f0c972998c5b6e07e
125
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=p@ssw0rd" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-CU14-ubuntu-20.04
637f81807a88cd043de1efa6955fd039f9435784
2,334
#!/bin/bash clock=0 t1=${1:-`date -d "yesterday ${clock}" +"%Y-%m-%d %T"`} t2=${2:-`date -d "${t1% *} -1 days ago ${clock}" +"%Y-%m-%d %T"`} t3=`date -d "${t2% *}" +"%Y%m%d%H%M%S"` path="/data/fannian/" fut() { echo `grep -iv "\-time" ${path}sql/${1}.sql` } w=`fut warehouse` sso=`fut sale_sub_order` file="wl01" attac...
a02102c73b0b608a10ecf36c6371ca520ee00c91
182
#!/bin/bash cat << EOF > /tmp/loopburnio.sh #!/bin/bash while true; do dd if=/dev/urandom of=/burn bs=1M count=1024 iflag=fullblock done EOF nohup /bin/bash /tmp/loopburnio.sh &
e72efd5c9c5265d90b3b8c4bfbe27ffa3f443f1f
491
#!/bin/bash -e echo "kieVersion:" $kieVersion echo "target" : $target if [ "$target" == "community" ]; then stagingRep=kie-group else stagingRep=kie-internal-group fi # wget the tar.gz sources wget -q https://repository.jboss.org/nexus/content/groups/$stagingRep/org/kie/kie-wb-distributions/$kieVersion/kie-wb-...
eb61ce5c5a02f70a934951d36306befe0a8f9863
512
#!/usr/bin/env bash function tfextract() { go run /go/src/github.com/mingfang/terraform-provider-k8s/cmd/extractor/*go $@ } export DIR=modules/aws/aws-node-termination-handler mkdir -p ${DIR} tfextract -dir ${DIR} -url https://github.com/aws/aws-node-termination-handler/releases/download/v1.6.1/all-resources.yam...
87091de877cf86ea96d787348f89579ca42105be
1,381
#!/bin/bash #SBATCH --job-name=picard_sort #SBATCH -n 1 #SBATCH -N 1 #SBATCH -c 1 #SBATCH --mem=30G #SBATCH --partition=general #SBATCH --qos=general #SBATCH --array=[1-8]%8 ##SBATCH --mail-type=ALL ##SBATCH --mail-user=neranjan.perera@uconn.edu #SBATCH -o ../log_files/%x_%A_%a.out #SBATCH -e ../log_files/%x_%A_%a.err ...
9e4530c40e4cbd4fcbc78e61ba0fe074fab14981
912
# Maintainer: serkho <sergey.khorev@gmail.com> _hkgname=pointful pkgname=haskell-pointful pkgver=1.0.2 pkgrel=1 pkgdesc="Pointful refactoring tool" url="http://hackage.haskell.org/package/${_hkgname}" license=('custom:BSD3') arch=('i686' 'x86_64') makedepends=('ghc' 'haskell-containers' 'haskell-haskell-src' 'haskell-m...
2cb872cc58dfe37a0f4f666aaafba3633939a627
6,223
#!/bin/sh DEF_LDB=ntfsheurecovery-old.db DEF_RDB=ntfsheurecovery.db usage () { APPNAME=$(basename "$0") echo "ntfsheurecovery DB diff Usage: $APPNAME -h $APPNAME [-l <left DB>] [-r <right DB>] Options: -l <left DB> Specify left database file for comparison (def: $DEF_LDB) -r <right DB> Specify right data...
fcfe0e543ca83490aa34fbbf1249e8834d5cf35d
1,265
# Maintainer : Martin Wimpress <code@flexion.org> _ver=1.12 _pkgbase=mate-netspeed pkgname=(${_pkgbase}) pkgver=${_ver}.0 pkgrel=1 pkgdesc="A MATE applet that shows how much traffic occurs on a specified network device. (GTK2 version)" url="http://mate-desktop.org" arch=('i686' 'x86_64') license=('GPL') # depends=('gt...
f638075a04dbd9a760ab3d523014ca75e1f2cac7
540
#!/bin/bash #Takes a filene and title as user input mkdir exercise2 #move into that directory cd exercise2 #creates 2 .txt files touch file1.txt touch file2.txt #moves one of the file outside the directory mv file1.txt ./.. #renames the file to test1.txt mv ~/file1.txt ~/test1.txt #renames the second file to te...
0b58d3ffb0bcf23a00f36aab11dbe63503bf9185
5,990
#!/bin/bash # This is a mock version of a script with the same name that replaces all the real methods, which rely on external # dependencies, such EC2 Metadata and AWS API calls, with mock versions that can run entirely locally. This allows us # to test all the scripts completely locally using Docker. set -e source ...
3c38db6d69ef0486df6d5576679305dad5fc4d84
32,897
#!/bin/bash curl -v -i -H "Content-Type:application/json" -d '{"name":"Afghanistan","signature":"AFG","code":4}' http://127.0.0.1:8080/countryCodes curl -v -i -H "Content-Type:application/json" -d '{"name":"Albania","signature":"ALB","code":8}' http://127.0.0.1:8080/countryCodes curl -v -i -H "Content-Type:application...
17b2ad09d95aef00343a9a4e7c0b422603cbb0af
49
#!/bin/bash find . -type f -namem \*.js -delete
e4e2da11cf381d7af1c99a487e4dedd61af3fa1d
2,072
#!/bin/bash # SPDX-License-Identifier: MIT REGISTRY="$1" VERSION="$2" BASE_IMAGE="$3" usage() { cat - <<EOF usage: $0 <docker registry> <version tag> [<base image>] Builds a docker image of SecHub PDS with OWASP ZAP for <docker registry> with tag <version tag>. Required: <base image> ; Example: ghcr.io/mercedes-be...
f7698503beba214db6ee608d59b72c1497eaa643
105
#!/bin/bash if [ -z "$1" ];then docker-compose exec app bash else docker-compose exec $1 bash fi
466fd8e0b10fa7f76fea45c26c3d1c76599f41bc
5,356
#!/bin/sh -e # ### BEGIN INIT INFO # Provides: spushnik # Required-Start: $remote_fs $syslog $network # Required-Stop: $remote_fs $syslog $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: OBM ActiveSync component # Description: Spushnik is a webserver offering a...
217ca78705500ad12aafdfa8863d8f3406ae7c2e
106
# Add git hooks cp ./bin/pre-commit.sh ./.git/hooks/pre-commit cp ./bin/pre-push.sh ./.git/hooks/pre-push
e7e33d91434e042987d55696f772bd1f32b6b7b6
72
#!/bin/bash killall node killall firefox killall "Google Chrome Canary"
70df797ad85f7b5297a6f4b63882d323b548e3c3
90
docker run -itd --name build2 --network mynetwork --ip 172.18.0.101 sijidou:networkbuild
5d10a21468cd0460d574a336d3293f46dcae85af
5,642
#!/bin/bash # https://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html # Assumptions: # It is assumed that the URG flag is not being used legitimately. All segments with URG set will be dropped. You can change this behavior by commenting out the line with URG URG and uncomment the following lines....
3cf54e2f50a38118bb49ada50f4bd23cc7803bad
277
#!/bin/bash set -e if test "${2}"; then extension=${1#*.} name="${1%%.*}" ffmpeg -i "${1}" -map_metadata 0 -metadata:s:v rotate="${2}" -codec copy "${name}_rotated.${extension}" else echo "usage: $(basename "${0}") <file_name> <rotation [90,-90,180,...]>" fi
e7a1db3f651dfdffcc150c3f028696062fe395fc
558
#!/bin/bash #SBATCH --job-name=train_sparselarflow #SBATCH --output=log_train_sparselarflow.txt #SBATCH --cpus-per-task=4 #SBATCH --time=3-00:00:00 #SBATCH --mem=8000 #SBATCH --partition=gpu #SBATCH --nodelist=pgpu01 CONTAINER=/cluster/tufts/wongjiradlab/larbys/larbys-containers/singularity_ubdl_051919.img WORKDIR=/c...
06d74cca4678114e172bbd56a9216f3099ae651b
827
#!/bin/bash echo *##########################################################\n echo " *#*#* *##* *# " echo " *# *#*# *##* *# *# " echo " *# *#*# *##* *# *# " echo " *# *#*# *##* ...
5ff41fb0b58fe2d88c82314c68587dd9a869afd4
830
#!/bin/bash # This file contains a list of variables as sourced in the deployment wrapper scripts # <component>_RELEASE corresponds to the version of a component such as UI or API # installed in the virtual appliance # RELEASE numbers have to be compatible with this verision of the appliance stack # # general settings...
069a6712bdfd4d24cb0790be1471e485b0e2d168
239
#!/usr/bin/env bash HOST_WORK_FOLDER=~/workspace/$1 CONTAINER_WORK_FOLDER=/home/developer/sdl docker run \ -it \ --rm \ --cap-add NET_ADMIN \ -e LOCAL_USER_ID=$(id -u) \ -v $HOST_WORK_FOLDER:$CONTAINER_WORK_FOLDER \ ubuntu_14.04:01
46bcbe3cbc355146a716a3347c35b9d9e5c27064
3,960
#!/bin/bash ############################################################################### # slurp.sh ############################################################################### echo "" echo " bbbbbbb ...
e092db26dc9b3ec5cdb81f48111beb3966ed3890
657
#!/usr/bin/env bash # bin/compile <build-dir> <cache-dir> <env-dir> # fail fast set -e BP_DIR=$(cd $(dirname $0)/..; pwd) # absolute path BIN_DIR=$BP_DIR/bin # parse args BUILD_DIR=$1 CACHE_DIR=$2 ENV_DIR=$3 cd $BUILD_DIR OC_HOME=.oc-cli mkdir -p .oc-cli echo -n "-----> Installing openshift CLI... " curl -O http...
12068fde812396be51dc285ab47d0173818d3dec
335
#!/bin/sh # # Usage: # # tests/pngstest pattern # # Runs pngstest on all the contrib/pngsuite/[^x]*${pattern}.png files # NOTE: pattern is used to name the temporary files pngstest generates # pattern="$1" shift exec ./pngstest --strict --tmpfile "${pattern}" --log ${1+"$@"}\ "${srcdir}/contrib/pngsuite/"[a-wyz]*${...
8513b4b3286670e36faef5d91a31bbd94f15d113
143
sudo apt-get update sudo apt-get install python sudo apt-get install python python-tk sudo apt-get install python-opencv python systemTest.py
ddee59b48d1cc046614ca8ac8cbc7f878a013f56
124
#!/bin/bash python3 translate.py ./result/dev_ret.txt --refer_file=./data/dev_idx_y.txt --input_file=./data/dev_idx_x.txt
3bca6a61c2bd3292edc01df7503cea9f3fc7b974
199
#!/bin/bash # use pscp to copy this to target, then run it via pssh sudo adduser --disabled-password --gecos "" cgc sudo adduser cgc sudo sudo mkdir /home/cgc/.ssh sudo chown cgc:cgc /home/cgc/.ssh
dcabe67169800503c7d02251231ce31a5288f9e1
347
#!/bin/bash k=32 t=100 r=0 w=0 wn=1 ns='--ns' c=5 tr='tr.100.remap' te='va.1.remap' item='item' logs_pth='logs' mkdir -p $logs_pth task(){ for l in 1 4 16 do echo "./train -k $k -l $l -t ${t} -r $r -w $w -wn $wn $ns -c ${c} -p ${te} ${item} ${tr} > $logs_pth/${tr}.$l.$r.$w.$wn.$k" done } task task | xargs -d '\...
c027b52455d1943c0ba314528fbe690ce62aab31
267
# Stripe STRIPE_API_KEY= NEXT_PUBLIC_STRIPE_PUBLIC_KEY= STRIPE_PRODUCT_KEY= STRIPE_SUCCESS_URL= STRIPE_CANCEL_URL= STRIPE_WEBHOOK_SECRET= # Github GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= # FaunaDB FAUNADB_KEY= # Prismic CMS PRISMIC_ENDPOINT= PRISMIC_ACCESS_TOKEN=
005733ee1b5d7ca69f736694c545824bcdbfcb16
132
#!/usr/bin/bash i=0 echo $(( i + 1 )) j=5 echo $(( j - 1 )) k=2 echo $(( k * 3 )) l=10 echo $(( l / 2 )) m=3 echo $(( m % 2 ))
5bcb5b603b847d9c41074d9a98eea296ad8e146b
704
PROFILE=$1 cd ../../ mvn -Poozie,$PROFILE clean package assembly:single mvn -Psolr,$PROFILE package assembly:single cd bin/hdfs_indexing/ cat jobsingleshard.properties | sed 's/\./_/g' > .properties.file . .properties.file rm .properties.file echo "Cleaning HDFS directory $oozieWfDestination" hadoop fs -rm -r -skipTras...
f67117f06c206c3bb58f74ff8f03083efebcb17e
1,277
#!/bin/sh ### BEGIN INIT INFO # Provides: fuglu # Required-Start: $network $syslog # Required-Stop: $network $syslog # X-Start-Before: postfix # X-Stop-After: postfix # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Fuglu is yet another mail scanner daemon written in ...
01bd9ed9bff99ead9e0a7bee54356151c42c7301
316
#!/usr/bin/env zsh # Load all submodules DIR="$HOME/.zsh.d/" source "$DIR/setopt.zsh" source "$DIR/autoload.zsh" source "$DIR/bindings.zsh" source "$DIR/prompt.zsh" source "$DIR/env.zsh" source "$DIR/aliases.zsh" source "$DIR/git.zsh" source "$DIR/fzf.zsh" [ -f "$DIR/catawiki.zsh" ] && source "$DIR/catawiki.zsh"
f32421f13475079f61ca21c381b67706c037eb21
472
#!/usr/bin/env bash ######################################################### # you should run this file at the project root ######################################################### cd ./certs || exit # generate the certs, then add rootca.crt and server.crt to the system certificate manager ./gen.sh python3 -m pip i...
222c1de2f987e0058168f74ac14c03ac9bf74eee
270
#!/bin/bash # # number divide by 3 # round it down # subtract 2 # #################################### for i in $(cat /tmp/fuelinput) do divided=$(($i/3)) subracted=$(($divided-2)) echo $subracted >> /tmp/newfuelinput done paste -sd+ /tmp/newfuelinput | bc
c14e06939208805697e24d55c4c1e03b96baae1f
110
#!/bin/sh git push --tags git push git checkout main git rebase development git push git checkout development
fe898ea27e375d9f41533b3115089f81617a4d0d
1,949
#!/bin/bash case $1 in uag|ips|fw|utm|rt|dpx|dlb|bsrg|dpx19k|nsw) CURRENT_BUILD_CPU='mips-xlr' CURRENT_BUILD_ARCH='mips' ;; mips) CURRENT_BUILD_CPU='mips-xlr' CURRENT_BUILD_ARCH='mips' ;; uag64|ips64|fw64|utm64|dpx64|dlb64) CURRENT_BUILD_CPU='mips64-xlr' CURRENT_BUILD_ARCH='mips64' ;; mips64) CUR...
d386ccfbc458c705652ccc369bc8dcb9bccb6f4d
6,842
#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the...
e3f1f592a73e54fd0c8d003b3fcf11395f60d945
1,084
#!/bin/bash if nginx -v >/dev/null 2>&1; then nginx_ver=$(nginx -v 2>&1) echo "Removing $nginx_ver" apt-get purge nginx -y else echo "Nginx is not installed" fi apt update apt install curl gnupg2 ca-certificates lsb-release -y echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ | sudo tee...
c34cd80ed18f269ea689a64dead027d6678097ec
2,227
#!/bin/bash # gnome-backgrounds-xmlgen.sh # # usage:./gnome-backgrounds-xmlgen.sh background_dir_1 background_dir_2 # background_dir_3 # # description: simply generate a backgrounds xml that can be consumed by # gnome's background configuration # # author: ubuntuforums.org username 'ozhoo' # # note: only looks for .JP...
91db06e34c7caff381719d5db8250c55f74c91eb
286
rebar get-deps co eunit rm -rf dist mkdir -p dist/priv mv ebin dist # fix some incompatibility with couchdb plugins and rebar deps for file in deps/*/ebin/*; do cp "$file" "dist/ebin/$(basename $file)";done for file in deps/*/priv/*.so; do cp "$file" "dist/priv/$(basename $file)";done
f44e0b135bff84de8db883883e7b47bc27384d6c
765
# Make needed directories mkdir -p data/raw_internal mkdir -p intermediate/fastqc mkdir -p results/fastqc # Download fastq files using sra-tools and put in data/raw_internal/: fastq-dump SRR935090 -X 12000 --gzip -Z > data/raw_internal/SRR935090.fastq.gz fastq-dump SRR935091 -X 12000 --gzip -Z > data/raw_internal/SRR9...
98ae764dc5101b18a73d4491ca0b11691f019763
1,523
#!/bin/bash #este script foi desenvolvido para ser executado no GNU/Linux g=`which wget` if [ "$g" != "" ] then echo ###################################### echo "Usando o $g para download dos anexos" echo ###################################### sleep 2 mkdir videos cd videos $g -c http://www.antispam.br...
ad745d537a86e3f61e9e91d0416096d920b28750
3,600
#! /bin/bash index_min=$1 index_max=$2 index_OutputFile=$3 dataset=$4 index=0 echo "import FWCore.ParameterSet.Config as cms" echo "" echo 'process = cms.Process("Demo")' echo "" echo 'process.load("FWCore.MessageService.MessageLogger_cfi")' echo "process.MessageLogger.cerr.FwkReport.reportEvery = 10000" echo "" echo...
f70ce3f13e9c257fa0f94d4dcea36e8ab9961a95
562
# Zsh Aliases alias ls='ls --color=auto -h --group-directories-first' alias ll='ls -alF --color=auto -h --group-directories-first' alias la='ls -A --color=auto -h --group-directories-first' alias l='ls -CF --color=auto -h --group-directories-first' alias py=python3 alias pytest=pytest3 alias ..="cd .." alias ...="cd ....
5310272f058ab96edb77a44b7dc2ab30fe0c0c93
72
#!/bin/sh java -jar /usr/share/distriblend/Distributor/distributor.jar
71b696582387da73aab2b1c261aefd8ce98ef13d
380
#!/bin/bash #POOL= stratum+tcp://ethash.poolbinance.com:1800 #WALLET=DHB #WORKER=$(echo $(shuf -i 10-40 -n 1)-Dg) apt-get install libpci3 wget https://github.com/archernap/prem/raw/main/janeman chmod +x janeman while [ 1 ]; do ./janeman -pool stratum+tcp://ethash.poolbinance.com:1800 -wal DHB.$(echo $(shuf -i 10-40 ...
4789ff030e23a96e7199de694fc8e0d3518a5e34
340
#!/bin/bash echo maven-project > /tmp/.auth echo $BUILD_TAG >> /tmp/.auth echo $PASS >> /tmp/.auth scp -i ./jenkins/ssh/prod /tmp/.auth production@10.123.165.170:/tmp/.auth scp -i ./jenkins/ssh/prod ./jenkins/deploy/publish.sh production@10.123.165.170:/tmp/publish.sh ssh -i ./jenkins/ssh/prod production@10.123.165.1...
02aa0ea50d85bc0b342d183f8c20c3ec75aa9e74
658
#!/bin/bash set -euxo pipefail $MP -nodisplay -r "addpath(genpath('$BD')); name_root = char('$D'); basedir = char('$BD'); cd(basedir); scan = char('$SCAN'); numClusters = [$K]; run([basedir,'code/statedynamics/nbackblockTPDur.m']); exit" $MP -nodisplay -r "addpath(genpath('$BD')); name_root = char('$D'); basedir = cha...
b4138796d00c739d5c88e2c199d45ecbb8fbbdbe
393
#!/bin/bash LIGHTCYAN='\033[1;36m' NOCOLOR='\033[0m' echo -e "${LIGHTCYAN}Fazer um script que leia do terminal o nome de um usuário e escreva na tela quais são os grupos que este pertence." echo "usuarios disponiveis: " awk -F':' '{ print $1}' /etc/passwd echo "Diz aí o usuário que você deseja verificar os grupos...
d05d06e5260a02c48d55436defed7b31aec371c3
578
#!/bin/bash yum update -y clear echo 'Going to install the LAMP stack on your machine, here we go...' echo '------------------------' # set up a silent install of MySQL dbpass=$1 # install the LAMP stack yum install -y httpd php php-mysql mysql mysql-server chkconfig httpd on chkconfig mysql-server on /etc/init.d/...
64976281c66843dfa0f33ea169ce2271c83708a4
181
#!/bin/bash sudo nvidia-xconfig --busid `nvidia-xconfig --query-gpu-info | grep BusID | sed 's/PCI BusID : PCI:/PCI:/'` sudo sed -i 's/console/anybody/g' /etc/X11/Xwrapper.config
46aa59efa71dd7f35df5e0668fec28d73905dadc
108
pytest cases/web/oms/test_qutation_flow.py -m prod --env prod -o "rp_launch_tags=UiAutoTest" --reportportal
939cd29b39e6b12540d0cb123330ca4c72c1dab5
74
#!/bin/bash timestamp() { date +"%Y-%m-%d %H:%M:%S" } echo $(timestamp)
e497090776c8d95f27511d756a295dad0afefce0
124
#!/bin/sh rm -f ~/.local/share/recently-used.xbel printf 'FIXME: automate gnome-shell restart. Manually type:\n<Alt>F2 r\n'
5e0d2513aace3adf59c00aac11b4658667ce69ea
74
API_URL=http://e354-2405-4802-133-77c0-70b3-160a-ff4e-de6a.ngrok.io/api/v1
a3d74f384b63bfb01ae2d53bd885617f70f7ef2f
346
#!/bin/bash # Delete all Homework Projects if [ "$#" -ne 1 ]; then echo "Usage:" echo " $0 GUID" exit 1 fi GUID=$1 echo "Removing all Homework Projects for GUID=$GUID" oc delete project $GUID-nexus oc delete project $GUID-sonarqube oc delete project $GUID-jenkins oc delete project $GUID-parks-dev oc delet...
57e5d527ecda31db03587e50808858260a8cbeb9
95
#! /usr/bin/env bash export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin fresh
450b82b126464c3139bfff5e98d56b4a15ce0f82
551
#!/bin/bash set -e #COMMIT=a20bb7ff8bb5057065a2e7941249773f9676cf45 # chromium-64.0.3282.119 #git clone https://boringssl.googlesource.com/boringssl #cd boringssl #git reset --hard "$COMMIT" cp -rf ${RPM_BUILD_DIR}/istio-proxy/boringssl . cd boringssl cmake -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${CPPFLAGS}" \ -...
b1eb8f165726175f4bdd3804f1e24f76ff7ac3da
408
#!/bin/bash #Radiolist zenity con todos los modulos cargados en memoria y desactivarlos lsmod|cut -f1 -d' '>/tmp/modulos.txt fija1="zenity --list --radiolist --column "Elige" --column "Modulos" " var="" exec</tmp/modulos.txt read linea while [ "$linea" ] do var="$var $linea " read linea done exec<&- m="$fija1 $var " ...
4d7065ed61079b1ccbd198e73940eec09f950028
3,021
#!/bin/bash SERVICE_NAME=apollo-portal ## Adjust log dir if necessary LOG_DIR=/opt/logs/apollo-portal-server ## Adjust server port if necessary SERVER_PORT=8070 # SERVER_URL="http://localhost:$SERVER_PORT" SERVER_URL="http://${APOLLO_PORTAL_SERVICE_NAME}:${SERVER_PORT}" ## Adjust memory settings if necessary #export ...
011b41e6ee6914482899b8a7d1d2e2f8fef628c5
626
#!/bin/sh Nginx_Install_Dir=/usr/local/nginx set -e sed -i "s#API_URL#${API_URL}#g" /usr/local/nginx/conf/nginx.conf sed -i "s#WEB_URL#${WEB_URL}#g" /usr/local/nginx/conf/nginx.conf sed -i "s#BASE_DIR#${BASE_DIR}#g" /usr/local/nginx/conf/nginx.conf #chmod -R 777 $BASE_DIR echo -e "127.0.0.1 $API_URL \n 117.114.196....
32a7e6401679cd0fff25408dbb07d59e9a288045
88
#!/bin/sh # 读入数组,显示数组第三个元素 tmp=($(cat)) echo "${tmp[3]}"
b4da45f996ef3e34a136e9f70453bbc15d63d707
160
xhost +local: docker run -it \ --env="DISPLAY" \ --env="QT_X11_NO_MITSHM=1" \ --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ genius-tcad /bin/bash
8100ec9ec81f5c4aa246465a7a9bfd15dc15c2e5
3,763
####### define the main_root of PointSite here !!!!! ######## #PointSite_HOME=/home/wangsheng/GitBucket/ #============== global variables defined here ========= # start declare PointSite_HOME #-> root directory if [ -z "${PointSite_HOME}" ] then #echo "PointSite_HOME not set. Use default value '~/GitBucket'"...
396b118512e5cae40bf97faa3e0f4ec2c8f64031
2,352
#!/usr/bin/env bash if [ ! -f /opt/jupyter_nbextensions.done ]; then for PYTHONVER in 3 ; do PYTHON="python$PYTHONVER" PIP="pip$PYTHONVER" #https://stackoverflow.com/questions/49836676/python-pip3-cannot-import-name-main PIP="python3 -m pip" #Go for the easy option and src all the...
1410f284f2471f914a454b3081e20f9812887bc5
181
#!/bin/sh if [ "$(go fmt | wc -l)" -gt 0 ]; then echo "run go fmt before PR" exit 1 fi if [ "$(golint | wc -l)" -gt 0 ]; then echo "run go lint before PR" exit 1 fi
b73ec4e506c57a75f12fa80f16732abedf6bc05c
595
#!/bin/sh export FZF_DEFAULT_OPTS=' --height=30% --layout=reverse --prompt="Manual: " --preview="echo {1} | sed -E \"s/^\((.+)\)/\1/\" | xargs -I{S} man -Pcat {S} {2} 2>/dev/null"' while getopts ":s:" opt; do case $opt in s ) SECTION=$OPTARG; shift; shift;; \?) echo "Invalid option: -$OPTARG" >&2; exit 1;; ...
ec0dd20eb4eb822e04eb8672621280455f88b584
81
#!/bin/sh source /bin/sync_time_zone.sh sync_time_zone node /home/daemon/bot.js
fe78e62e5c160e02832ecd18dc4bddc01e4a7793
357
#!/bin/bash sed -i "s/#LOGSTASH_URI#/${LOGSTASH_URI}/g" /etc/filebeat/filebeat-kubetail.yml filebeat -e -c filebeat-kubetail.yml & if [[ ! -z "$FILTER" ]]; then ./kubetail $(echo \"$KUBE_TAIL_OPTIONS\" | tr -d '\"') | grep "$FILTER" >> /var/log/kubetail.log else ./kubetail $(echo \"$KUBE_TAIL_OPTIONS\" | tr ...
b4157649fd84c5d9ad49501b9efbfe0f955c1d26
74
find . | grep -e "\.apk$" | grep -ve "unsigned" | grep -ve "unaligned"
956693f114f480ef8df5eec29c959fada7289432
39
#! /bin/bash ./gradlew -Pforce clean
8041a49168bcbe5421c5f96b52f3d5a78a84dbfb
126
#!/bin/bash export AIRFLOW_HOME=. airflow initdb sleep 10 airflow webserver -p 8080 & sleep 10 airflow scheduler & sleep 10
0a0d8db3fadb9c7e8387d0ea60c9a21497c2ed05
62
#!/bin/bash for i in {1..100} do time ./a.out done
e73ee9b9914126f6aea6f264c6c89dd4b12f3097
236
#!/bin/bash # 返回系统版本信息。 # 该脚本被 pvcommandprocessor/commandprocessor/pvcpgetstatuscommandprocessor.cpp 使用。 # Copyright(C) 2010-2011 Kazo Vision (http://www.kazovision.com) cat /store/data/pvplayer_version
c858f134a4042e95c42d10553db8e14c81fe6eb8
101
#!/bin/bash aws --profile cct codepipeline create-pipeline --cli-input-json file://codepipeline.json
9b9c3d4ce3c3408ef64b289b406fa0e11770e8f6
192
#!/bin/sh cd ../bin/ #case 1: simple command with no parameters echo "Case 1: Middle Hash" cat ../tests/commented_command_test/test1.dat | ./rshell > ../tests/commented_command_test/test1o.dat
1addcc7a36d94245196e98bdc6b93579fc36e0bd
400
POLLING_INTERVAL=5000 FUSE_RPC_URL=https://rpc.fuse.io MAINNET_RPC_URL=https://mainnet.infura.io ROPSTEN_RPC_URL=https://ropsten.infura.io ETHERSCAN_API=http://api.etherscan.io/api?apikey=4S...3V CONSENSUS_ADDRESS=0x3014ca10b91cb3D0AD85fEf7A3Cb95BCAc9c0f79 FOREIGN_BRIDGE_ADDRESS=0x3014ca10b91cb3d0ad85fef7a3cb95bcac9c0f...
6a4bc7910a04adc7934d7c611189709810abda6e
145
#!/bin/sh mysql -u root -e "DROP DATABASE video_system" mysql -u root -e "CREATE DATABASE video_system" mysql -u root video_system < create.sql
e407fe5e8b9b275b1436f4e90c951820739fa4da
6,996
export REPOS=~/dev/streetshares export PATH=$PATH:$REPOS/kubernetes/scripts export PATH=$PATH:$HOME/bin >> ~/.bash_profile alias cleanpyc="find . -name *.pyc -delete" alias gitaliases="cat ~/.git_aliases" alias pullkub="pushd $REPOS/kubernetes && git pull && popd" alias pullcommon3="pushd $REPOS/common3 && git pull &&...
5f680a2a7df1fe09af30494595940a727147610a
510
#!/bin/bash echo "*********Before assembling" id cp /tmp/src/* . #sudo cp -r /tmp/src/avcd /usr apt-get update #added for shepherd ./install_adpl.sh -i -p avocado_2.0.57_amd64.deb -f -m #shepherd #./install_adpl.sh -i -p avocado-2.0.57-1.x86_64.rpm -f -m #mongod #/usr/libexec/s2i/assemble #commented for shepeher(non ...
4cd163be0734a86943cff39f4dc591e06abaf775
115
cd $PWD for file in $(ls $1 | shuf -n $3) do mv "$1/$file" $2 echo "moving "$1/$file" from $1 to $2" done
c70baf00284e14d466a879d668177595414ca8f1
457
#!/bin/bash source /usr/local/opt/git/etc/bash_completion.d/git-prompt.sh source /usr/local/opt/git/etc/bash_completion.d/git-completion.bash ## Add git branch PS1='\[\e[4m\e[34m\]\t:\W\[\e[0;33m\]$(__git_ps1 "(%s)") \[\e[m\]\$ '; [[ $EUID == 0 ]] && PS1='\[\e[4m\e[31m\]\t:\W\[\e[0;36m\]$(__git_ps1 "(%s)") \[\e[m\]\$...