blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
702ea117db25350040f4a900886b0dffa751ddfd
97
#!/bin/bash find . -name '*.h' -o -name '*.c' -o -name '*.cpp' | xargs -I{} clang-format -i '{}'
3149789c45aa56e534ae803a6b9ac5cb955bdbd8
696
#!/bin/bash BACKUP_PATH=${1:-$HOME/Dropbox/MealPass/ENGINEERING/parse/55fe3a5f-eb48-4b6d-968a-054fe60a85f4_1472093260_export} echo "Importing from: $BACKUP_PATH" SCHEMAS=$BAKCUP_PATH/SCHEMA.json DATA=$BACKUP_PATH/.json function do_import { for f in $SCHEMAS $DATA; do if [ ! -s $f ]; then contin...
ec32a28601d436e26f94509c3e7eab63a1ba2a26
1,539
RED='\033[0;31m' PURPLE='\033[0;35m' BLUE='\033[0;34m' GREEN='\033[0;32m' AQUA='\033[1;34m' NC='\033[0m' #Clearing Terminal Screen clear #Printing Credits echo -e "${GREEN}Welcome to the AmogOS Installer (x86_64)" echo -e "${GREEN}This will install AmogOS on your Debian or Debian-based system" echo "" read -n 1 -s...
7e1aba2f1e07074b2bd17ad3bd2233415a0e1a02
932
# -*- sh -*- # get the tarball wget http://www.netlib.org/clapack/clapack-@VERSION@.tgz && # untar tar xvzf clapack-@VERSION@.tgz && cd CLAPACK-@VERSION@ && # update the make.inc file sed -e 's/PLAT = _LINUX/PLAT =/' -e 's/CFLAGS = -O3/CFLAGS = -O3 -fPIC/' make.inc.example > make.inc && # build f2c make f2clib...
b6fdbf31eb2984ac9beee99394075d6d7bb0714f
535
#!/bin/bash source ../globals ip=`cat ../$MASTERNODE_FILENAME | cut -d " " -f2` ssh -o StrictHostKeyChecking=no -i ../$KEYNAME root@$ip "apt-get install -y openmpi-bin openmpi-doc libopenmpi-dev nfs-common nfs-kernel-server" scp -o StrictHostKeyChecking=no -i ../$KEYNAME nfs-master.sh root@$ip: ssh -o StrictHostKey...
2e46e3351349ee298e6465b97cd9495ecee4fe1c
94
cd ../../ docker build -t netpyne-ui . cd tests/frontend/e2e docker build -t netpyne-ui-e2e .
789a91c76d54072994480a4413d41d886d912f11
258
#!/bin/bash LAST=`ls -d round_* | colrm 1 6 | sort -n | tail -1` NEXT=`printf "%04d" $[ 10#$LAST + 1 ]` mkdir "round_$NEXT" ( cd "round_$NEXT"; find ../round_$LAST/ -maxdepth 1 -type f -name '*.seq' -exec \ ../cgen.sh {} \; -exec ../ctall.sh {} \; )
d98e8da644bb988b971196d74cfe134b74a519f2
111
git branch -M main git remote add origin https://github.com/SummerHuiZhang/Thesis_.git git push -u origin main
5ad04bcf7431585bb35e5ad79fc4a8ba9c27850c
127
REACT_APP_AUTH0_DOMAIN = misiontic-equipo-of-de-five.us.auth0.com REACT_APP_AUTH0_CLIENT_ID = 6g2j9VBu7LSi57EG1ugKpa5xCvXKVRMK
2955a76f6c8be702b6eebcef1c0f03fc4df437f2
18
echo "I am v8412"
23679eee55495483628797a44b68ee6c981c628f
430
#!/bin/sh PARSER="local yass" COLUMN_LIST="suburb mobile postcode address phone1 firstname surname email fax phone level state electorate" MIN_RECORDS=9 export PARSER COLUMN_LIST MIN_RECORDS if [ "$(which ./generic-csv-validator.sh 2>/dev/null)" = "" ]; then echo "$0: generic-csv-validator.sh not found. Are you ...
e29d8be251470fbc072c7438e2f9f09ff8cf1221
108
#!/bin/bash set -euo pipefail IFS=$'\n\t' echo Building project... go build -ldflags="-s -w" echo Success
223ac33025436672fdecffccc4fc600efc9dc458
603
#!/bin/bash EXTERNAL_FOLDER=${EXTERNAL_FOLDER:-/var/www/euer.krebsco.de/graphs/retiolum} INTERNAL_FOLDER=${INTERNAL_FOLDER:-/var/www/euer/graphs/retiolum} export GEODB="${GEODB:-}" export TINC_HOSTPATH=${TINC_HOSTPATH:-~/painload/retiolum/hosts} mapfile="$INTERNAL_FOLDER/map.html" if test -n "$GEODB";then if test...
97ff20a2b7950d70c9752c9a198e66270ac4c5ba
53
#ls -l|awk '{print $5 "\t" $9 }'|sort ls |sort -r
8762cb95ef19c6e45558b32d4acfb048dca5dae6
22
iperf -s -p 5567 -i 2
d0bf3049896c70c91b8df6fcf5cec6f227fce408
114
docker run -d \ --rm \ -p 8000:8000 \ -v $(pwd)/data:/data \ --name noms \ samherrmann/noms:v7
38da55e38a30ae317fa2c4eaec13793f954d112b
270
#! /bin/bash mkdir classes 2> test.txt rm test.txt javac -d classes ReceiveCommunications.java javac -d classes SendCommunications.java javac -d classes ReceiveByteArray.java javac -d classes SendByteArray.java javac -d classes Client.java javac -d classes Server.java
cb373980ad933cd16dfc7438c4cfb45810e71028
129
#!/bin/bash read -p "input minimum value -> " min read -p "input maximum value -> " max echo "Result : ";shuf -i $min-$max -n 1
8c7f60530391848147976cea18beae5e1f34447e
64
#!/bin/bash docker build -t dsanderscan/mscit_v3_00_bluetooth .
da4b513ce6eccb9d52c47a4d519519f44559a27b
712
# Set this to the port in the Docker container you want exposed EXPOSE=3000 # Set this to the port on your localhost you want to use to access # the EXPOSE port above LOCAL_PORT=9999 # Docker/Docker Hub setup. This is here to allow pushing a built # image to Docker Hub and to ensure proper namespace isolation # of t...
29a85f140f53cd813e25ce33f53487e8ec4a16cc
263
java -cp com.intersys.sqoop.driver.jar -iv com.intersys.sqoop.driver.SqoopDriver ingestionState.json yieldIngestProperties.properties oozie job -oozie http://prod-hubnamedaws01.sunpowercorp.com:11000/oozie -config yieldIngestProperties.properties -run
490193bccb3343358a0b97ee95044b8f13533549
83
docker run -p 8080:8080 192.168.59.103:5000/myapp -e spring.profiles.active=local
1be9d0490a3f5de4852e6dde916b51700adbc72a
912
#!/bin/sh APP_PATH=/home/emmanuele/workspace/java/transaction-report/target/transaction-report-0.0.1-SNAPSHOT-fat.jar TRANSACTIONS_DIR=/home/emmanuele/Scrivania/Documenti/Finanze\ personali/Movimenti # Loading credit card transactions for year in $(seq 2017 2018) do for month in $(seq -w 1 12) do echo...
1e964e640a819bdb4289a3c4787f2bef4bf390b7
153
curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=[YOUR_WEBSITE]&token=[YOUR_WEBSITE_BAIDU_TOKEN]" >> log.txt
158d6cd718d838601b21124872f6706e568c54bf
285
#!/bin/bash url="http://localhost:9200/" index=$1 if [ "$1" == "-s" ] then url="https://admin:admin@localhost:9200/" index=$2 fi elasticdump --input=$url$index --output=./${index}_mapping.json --type=mapping elasticdump --input=$url$index --output=./${index}_data.json --type=data
e7c611ff5402ce9151b8db8f56f16da8e3367305
1,600
#!/bin/sh ### Validation and Setup # remove default configuration if [ ! -L /etc/snapraid.conf ] && [ -f /etc/snapraid.conf ]; then rm /etc/snapraid.conf fi # Verify user config present if [ ! -f /config/snapraid.conf ]; then echo "No config found. You must configure SnapRAID before running this container." ...
271383b7238be6c0d8097b03aeb422fc7014a131
49
#!/bin/sh cd /opt/bit.trip.beat ./bit.trip.beat
3f9633c8e4f878194f0c4e70c8e1205b421ba7fa
932
#!/bin/bash # # - 除UMS_ROLE_DETAIL_XX之外的所有表 PART_YYYYMMDDHH24MISS.SQL # - 当天变化的 UMS_ROLE_DETAIL_XX 数据 PART_UMS_ROLE_DETAIL.SQL # USERNAME=root PASSWD=game DBNAME=LogDB if [ $# != 2 ]; then echo "Usage: $0 path table_header" exit; fi; HOST_NAME=$1 TABLE_HEAD=$2 MYSQL_HOME=/usr/local/mysql/ MYSQL_BIN=$MYSQL...
7f28260422dfca6febd33ddd8d35d1c63b4def84
153
echo "clean target file ..." make clean echo "compile C library ..." make echo "compile Java ..." javac JavaToC.java echo "Run Java ..." java JavaToC
f5276998bbc3b8d17276a45a0d64a061876dffa0
415
## docker-compose环境变量 ### 数据库实例 POSTGRES_HOST=postgres-auth POSTGRES_PORT=5432 POSTGRES_USERNAME=postgres POSTGRES_PASSWORD=postgres ### 分布式缓存 REDIS_HOST=redis REDIS_PORT=6379 REDIS_PASSWORD=123456 ### 消息中间件 RABBIT_MQ_HOST=rabbitmq RABBIT_MQ_PORT=5672 RABBIT_MQ_USERNAME=guest RABBIT_MQ_PASSWORD=guest ### 注册中心 EURE...
34e951d780bea53166fe2f7ad7cb122a02cefb5f
176
#!/usr/bin/env bash for LINE in `cat results.txt` do if [[ $LINE =~ "centos-source" ]] && [[ $LINE =~ "stein" ]]; then echo $LINE; docker pull 'kolla/'$LINE; fi done
beb973d4cf26105264530ba751ea6dc19532f797
1,148
#!/bin/bash clear CONTINUE=0 while [ $CONTINUE = 0 ] do while [[ $CHOICE != "1" ]] && [[ $CHOICE != "2" ]] && [[ $CHOICE != "3" ]] do clear cat << EOF ~~~~~~GUESSING GAME~~~~~~~~ 1. COLOR TV 2. FRIDGE 3. AUTO What is you choice? (1,2,3) EOF read -r CHOICE done WIN=0 D=0 GUESS=0 TIMER=0 #Generate money case $CHOICE ...
b27993a9be6d5105814c5cba497526c5af7269dc
346
#!/usr/bin/env bash USERNAME=$1 HOSTNAME=$2 SCRIPT='/home/data/adex-adview/addAndPinIpfs.sh' # npm run-script build rsync -av ./dist ${USERNAME}@${HOSTNAME}:/home/data/adex-adview rsync -av --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rwx,Fg=r,Fo=r ./addAndPinIpfs.sh ${USERNAME}@${HOSTNAME}:/home/data/adex-adview ssh -l ${USERNAME...
f3f1984d8c74cd5afc265b147a703128846aecd1
98
#!/bin/sh printf '\n\n\n\n\n\n\n1\n\n\n\nn\n' | sh /home/mchally/Alice3_unix_Offline_3_2_5_0_0.sh
8e7a5c9e234c60d375e14fd5961956f8a14463cc
122
python original_train.py $DOME_HOME/datasets/ILSVRC2012 -a resnet50 --save_dir ./snapshots/resnet50-baseline --workers 36
41030d8eb2457a9203f4dddbd65459dd7d901a29
168
#!/bin/bash set -eu mydir=`dirname "$0"` inbase="$mydir/.." outbase="$mydir/out" configpath="$mydir/gen-ml2json.pl" "$mydir/gen" "$configpath" "$inbase" "$outbase"
803c5878ede11605181e964b836937bc273d998d
224
#!/bin/sh # Script to see whether argument is positive or negative if [ $# -eq 0 ] then echo "$0 : You must give numerics only" exit 1 fi if test $1 -gt 0 then echo "$1 positive number" else echo "$1 negative number" fi
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...
1ffe8f4449e195b62f1fb12c78c035c16c142853
51
/opt/lampp/bin/mysql -u root < create_database.sql
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
298b3b39d0d26a8d65b3d4ecf2244b38535b231b
167
echo "You have to have a Neo4j server running with neo4j:<password> set as credentials" npm --save install neo4j-driver node fraud.js node social.js node network.js
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...
13031f23318aaab00a48606ba1f878e3a601df10
79
#!/bin/sh mvn clean install -U -Dmaven.test.skip=true echo "EZMQX build done"
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...