blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
3bf59dbc97cb4d1c626a5ce3a8401c3ff4fb7125 | 228 | #!/bin/bash
egrep -i 'Malaysia\b' newpages.txt >> Malaysia.txt
MALAYSIA=`stat --print=%s Malaysia.txt`
if [ $MALAYSIA -ne 0 ];
then
export CATFILE="Malaysia.txt"
export CATNAME="Malaysia"
$CATEGORIZE
fi
rm Malaysia.txt |
9f5de344a8bef04041dae86989c040df355e069e | 1,934 | #!/bin/bash
##Interceptor First stage setup gateway host
##SecurityGuru.Ca
##Adnan Ahmad
##
function localadaptor {
echo "Enter lan side ethernet adaptor name"
read adaptorname
echo ""
echo ""
echo "Enter subnet range ea. 192.168.99 for /24"
read subnetrange
echo ""
echo ""
echo "allow-hotplug $adaptorname" >> /etc/n... |
0e5501fdfb122047d5d1407b14739951ff1994db | 2,462 | #!/bin/bash
# 0 < numProcs < 100
SCRIPT_PATH_R="`dirname \"$0\"`" # relative
SCRIPT_PATH_A="`( cd \"$MY_PATH_R\" && pwd )`" # absolutized and normalized
PYDOCK3_BIN=`which pydock3`
if [ $PYDOCK3_BIN ];then
BASE_PATH=`dirname ${PYDOCK3_BIN}`
else
PYDOCK3_BIN=`dirname ${SCRIPT_PATH_R}`/pyDock3
BASE_PAT... |
55350943d83253ad44bccc612fcceffe64acf8e5 | 684 | #!/bin/sh
if [ $# == 1 ];then
echo "Changing directory : $1"
cd $1
fi
PROJECT_DIR=`pwd`
TEMPLATE_DIR=/home/yasam/projects/tools/eclipse
NAME=`basename $PROJECT_DIR`
echo "Creating project on $PROJECT_DIR"
echo "Project name : $NAME"
echo "Coping project files"
cp $TEMPLATE_DIR/.project ./
cp $TEMPLATE_D... |
0c65f71a025a9621cce851f857aeb76c3e657a3e | 38 | #!/bin/sh
./server | tee server.out
|
22ee68faed423c3b11a4d66a80273aabc23eef7d | 240 | #!/usr/bin/env bash
remote_name=$(git remote get-url origin)
#aws secret names cant have colon
secret_name=$(echo "$remote_name" | sed 's/:/\//g')
which get_secret || { echo "Must add vera to path"; exit 1; }
get_secret -n $secret_name
|
36711b981ddd2ace6eda5d95f0ec052a9efb7199 | 863 | #!/bin/bash
# Recipes for experiments.
# Note: these recipes don't report generalization statistics (i.e. accuracy
# on test data). TODO: Implement that, while still enabling saving test/train
# (maybe save 2 versions of messages: 1 -train, 1 -test)
# Maximum number of messages to save
SAVE_MAX=1000
set -e
# 500_20... |
ae50fea4532cb221de39384c87733d8355f0ba1c | 276 | #/bin/sh
#
#Summary- This script stops the WSMAN file log.
#
debugcontrol -d L2NFS >/dev/null 2>&1
/etc/sysapps_script/Start_L2NFS.sh stop >/dev/null 2>&1
sleep 10
umount /tmp/L2NFS
rmdir /tmp/L2NFS
rmdir /tmp/L2NFS_LOG
/etc/sysapps_script/wsman_decrypt.sh >/dev/null 2>&1
|
ab65ba3923c6b7a3061235238a7592915ef8e226 | 2,291 | # Maintainer: twa022 <twa022 at gmail dot com>
_pkgname=gimp
pkgname=${_pkgname}-devel
pkgver=2.99.16
pkgrel=2
pkgdesc="GNU Image Manipulation Program (Development version)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://www.gimp.org/"
license=('GPL' 'LGPL')
depends=('gtk3' 'lcms2' 'libwmf' 'icu' 'enchant' 'li... |
e7064484340496c990e166ca1700853fdfff417f | 1,872 | #!/bin/sh
#=======================================================================
# init.sh
# This script prepares for new LETKF cycle-run experiment
#=======================================================================
set -e
#-----------------------------------------------------------------------
# Modify below... |
04b7a74fc2fb7f509e902f3c228f4836b42fa383 | 290 | #!/bin/sh
source "../../common/init.sh"
get https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz
acheck
cd "${T}"
importpkg json-c openssl dev-libs/hiredis
doconf --sysconfdir=/etc/syslog-ng --disable-java --disable-python
make
make install DESTDIR="${D}"
finalize
|
7e4a96d00aa5af25b73666f6db13dc6b4c8754f6 | 340 | #!/bin/bash
sed -i "s/external_url '.*'/external_url 'http:\/\/$(/usr/local/bin/oc-metadata --cached ID).pub.cloud.scaleway.com'/g" /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure &> /dev/null
gitlab-ctl reconfigure &> /dev/null
mkdir -p /var/opt/gitlab/backups
chown git /var/opt/gitlab/backups
sed -i s/gitlab-reconfigure... |
75e9530d9ef92214db5f3f7c819cef33e88124f6 | 93 | clear
toilet -f smblock "Run Times (1 Mile):" | lolcat
termgraph mileTimes.dat --color green
|
ce0791a09f9f4294cdaf197a20620f73900b223e | 718 | #!/bin/bash
clear
# wait until the worker 1 is ready
sleep 30s
# start the client and send first transaction
cd /substraTEE/substraTEE-worker-M4/bin
./substratee_client -p 9977 -s 192.168.10.10 2>&1 | tee /substraTEE/output/client_first.log
# wait until worker 2 registered
sleep 30s
# start the client and send sec... |
e3fc7cca145db2ee6713e9031fc0ce8ab1c10e41 | 495 | #!/bin/bash
echo 'PWD:' `pwd`
device_number="0"
mcnnsantispoofing.py --dataset 3 --dataset_path dataset/LivDet-Iris-2017-Clarkson-Data-Full --iris_location extra/clarkson_osiris_coords.csv --output_path tests/working_nov22 --descriptor RawImage --operation segment --max_axis 260 --bs 32 --epochs 70 --lr 0.001 --dec... |
3ffd21d5224b8260c715c15674be922585513299 | 191 | #!/usr/bin/env sh
export SNIP_PATH=$(dirname `readlink -f $0`)
export NODE_ENV=development
export NODE_PATH=$NODE_PATH:$SNIP_PATH:$SNIP_PATH/dependences/node-imagemagick
forever start "$@"
|
32c00d09aa5b46983212def502a237881a8d5a96 | 1,244 | #!/bin/bash
set -e
# make sure we're in the directory where the script lives
SCRIPT_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)"
cd $SCRIPT_DIR
# set up the $GOPATH appropriately
. ./set_gopath.sh
mkdir -p bin
export GOBIN=bin
GOXC="`pwd`/vendor/src/github.com/laher/goxc/goxc.go"
NONTASKS="go-vet,go-test,archiv... |
f7e9813f5591b2af2d65a24d8569b4e07decb91c | 2,778 | #!/bin/bash
GATK_RESOURCES=gs://hellbender-validation/resources/gatk-bundle
FILE=CEUTrio.HiSeq.WGS.b37.ch20.4m-6m.NA12878.bam
GCS_INPUT_PATH=gs://hellbender-validation/test-input/NA12878
GCS_OUTPUT_PATH=gs://hellbender-validation/pickard-gatk3-output/NA12878
cd /tmp/
gsutil cp ${GCS_INPUT_PATH}/${FILE}* ./
gsutil ... |
6de512e59d96cc9e6188ee6769fab6a5f0e4636a | 1,196 | #!/bin/sh
#
#
# http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz
#
ROT_PATH=`pwd`
BIN_PATH=~/workshop/bin/android-sdk
IMG_PATH=${ROT_PATH}/out
TOOLS_PATH=`find ${BIN_PATH}/ -name \tools -type d -not -path *com* -not -path *docs*`
EMULATOR=`find ${BIN_PATH}/ -name \emulator -executable -type f -path *bin*`
... |
ffb1c7fecd471042ed5a9b396f4faee7a31ed1a1 | 1,374 | #!/bin/sh
# --- Copyright University of Sussex 2008. All rights reserved. ----------
# File: C.unix/src/mksyscomp
# Purpose: Build saved images for POPC, POPLINK and POPLIBR
# Author: John Gibson, Jun 24 1988 (see revisions)
# Usage:
# mksyscomp [-d] [image ...]
# where 'image' is popc,... |
552be3ea46bdf07d7724091f1e1a8df213dacf46 | 467 | #!/bin/bash
mkdir data/no_outlier_eval/multi_bias_$1
mkdir data/no_outlier_eval/multi_bias_$1/images
scp alex@rll5:~/rll/reinforcement-lfd/feature-dist/jobs/eval/multi_bias_500_result_no_outlier.h5 data/no_outlier_eval/multi_bias_$1/result.h5
./holdout_result.py data/no_outlier_eval/multi_bias_$1/result.h5 data/no_outl... |
19f106eeb6937cf3469fd7ae1c45bb612ea32082 | 21,976 | #!/usr/bin/env bash
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
plain='\033[0m'
cur_dir=$(pwd)
[[ $EUID -ne 0 ]] && echo -e "${red}Error:${plain} This script must be run as root!" && exit 1
[[ -d "/proc/vz" ]] && echo -e "${red}Error:${plain} Your VPS is based on OpenVZ, which is not supported." && exi... |
50c046568b77ac99efab4bc44c1cc0af28c28397 | 1,232 | #!/bin/bash
set -o errexit
set -o nounset
set -o xtrace
script_dir="$( dirname "${0}" )"
source "${script_dir}/../config/targets.sh"
source "${script_dir}/../config/release.sh"
source "${script_dir}/../config/functions.sh"
for target in ${targets}
do
sub_target_list="subtarget_${target}"
for sub_target in ${!sub_t... |
880b98039205c9a06a35d675d7af70491ce36460 | 514 | #for mac x86
url=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
#for mac m1
#url=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
#for linux
#url=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
#for win
#url=https://repo.anaconda.com/miniconda/Minico... |
7608abe53ed5f1bcda63d77ec246387af05d9be4 | 730 | export GOPATH=/home/ubuntu/gopkg
export GOROOT=/usr/local/go
APPROOT="$GOPATH/src/github.com/kobeld/editorpro/"
echo "======= updating pandoc code ========"
cd $GOPATH/src/github.com/kobeld/gopandoc
git checkout master && git pull origin master
if [[ $? != 0 ]] ; then exit 1; fi
echo "======= updating editorpro code ... |
06378e3600233d51e8e2ed0eca6c96f1aeb566e5 | 646 | #!/bin/sh -ex
if [ $# -lt 3 ]
then
echo "Usage: $0 <image name> <mount point> <.efi file> [another file]"
exit 1
fi
DEVENV_DIR=$(dirname "$0")
DISK_IMG=$1
MOUNT_POINT=$2
EFI_FILE=$3
ANOTHER_FILE=$4
if [ ! -f $EFI_FILE ]
then
echo "No such file: $EFI_FILE"
exit 1
fi
rm -f $DISK_IMG
qemu-img create -f... |
68355246c4b81cc2d75937f94177cc98a6f2a7cf | 3,832 | #$ -S /bin/sh
#$ -pe serial 3
#$ -l h_vmem=6G
module load STAR/x86_64/2.5.2b
#Mapping the GSE54153 dataset reads (due to some samples undergone 'quality trimming' the code is messy, as the correct
#files need to be collected).
for i in {886..903}
do
gunzip /group/biocomp/users/cadav/Thesis/Transcriptome/RNA-Seq/GSE... |
761041be56b3f983341ec2876f425341581dd5e6 | 2,513 | #!/bin/bash -x
echo "welcome to adress book"
declare -A address
echo "maximum slots is 10"
for ((i=0;i<10;i++))
do
address[$i,0]=" "
done
function Address(){
read -p "Enter First name:" Firstname
address[$1,0]=$Firstname
read -p "Enter Last name:" Lastname
address[$1,1]=$Lastname
... |
704d9cdaac2c536a37298c9953468747e4791865 | 3,686 | #!/bin/bash
# Default acpi script that takes an entry for all actions
case "$1" in
cd/play)
case "$2" in
CDPLAY)
logger 'PlayPauseButton pressed'
# /usr/bin/sudo -u carlb playerctl play-pause
#/usr/bin/amixer set Speaker on
#/usr/b... |
40b70de422a201b98e69643c5497155a5edee67e | 715 | #!/bin/bash
EXPNAME="ENSrcjs"
UF="20"
for seed in 1 #{1..30}
do
for nsize in 4
do
for npc in 2
do
for bc in 8
do
for tw in 50
do
for pi in RCJS_1_3_50_40.txt
do
for nr in 1
do
for ntg in 1
do
for sip in 5
do
for mt in 36000
do
for ps in 2000
do
FILE=EXP${EXPNAME}NS${nsize}NPC${npc}BC${bc}TW${tw}PI${pi}NR${nr}NTG${ntg}S... |
75214a208455af1c8e8a534619c3c89b34a7a00d | 956 | #!/bin/bash
#shellcheck disable=SC1091
set -a -e -x
[[ $(command -v http) ]] || {
echo "http and jq are required"
exit 1
}
THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}")
THIS_DIR=$(dirname "${THIS_FILE}")
source "${THIS_DIR}/../env.sh"
docker-compose -f "${THIS_DIR}/docker-compose.yml" up -d
sleep 10s
http -... |
f3c6e852925d6dab5aefa744df918d3434087f0d | 1,277 | #!/usr/bin/env bash
# unofficial "bash strict mode"
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# Commented out 'u' because the `activate` script has some unassignment issues
set -u
set -eo pipefail
IFS=$'\n\t'
build_type="opt"
DIR=$(dirname $(realpath $0))
process_args() {
case "$#" in
0)
... |
d60ac05c74b6ee2aec9e52b5425964e5fb0a61f2 | 107 | BIN=./goclitem
@test "Can run the application" {
run ${BIN}
echo $output
[ $status -eq 0 ]
}
|
6d9da592a7876a2a346a060e31a5a01cd414d1f3 | 617 | #!/bin/bash
getch(){
stty -icanon -echo
dd if=$(tty) bs=8 count=1 2> /dev/null
stty icanon echo
}
move(){
if [ "$1"x = "j"x -o "$1"x = "[B"x ];then
echo -en "\033[B"
elif [ "$1"x = "k"x -o "$1"x = "[A"x ];then
echo -en "\033[A"
elif [ "$1"x = "h"x -o "$1"x = "[D"x ];then
echo -en "\033[D"... |
4465571cb13edc17c3ef06191d4f167f0c6860ea | 1,848 | #!/bin/bash
set -e
#
# UMASK
#
umask u+rxw,g+rwx,o-rwx
#
# USER
#
RUNAS=$(whoami)
echo "DOCKER-ENTRYPOINT >> running as user: ${RUNAS}"
#
# IMPORT KUBERNETES ca.crt (OPTIONAL)
#
if [ -n "$KUBERNETES_CA_BASE64" ]
then
echo $KUBERNETES_CA_BASE64 | base64 --decode > /tmp/kube-ca.crt
echo "DOCKER-ENTRYPOINT >> KUBE... |
5dcb05457a84d020e10134bef944201b9b077324 | 406 | # ex. myDate = 1231_2359_2014
myDate=$(echo $(date +%m%d_%H%M_%Y))
if [ $# -ge 1 ] && [ $(echo $0 | tail -c 17) == "filename_date.sh" ]; then
cp -a $1 $(echo $1 | cut -d '.' -f 1)_$myDate.$(echo $1 | cut -d '.' -f 2)
echo $(echo $1 | cut -d '.' -f 1)_$myDate.$(echo $1 | cut -d '.' -f 2)
fi
# (cut can be replaced ... |
bd228cb43f9631f8f34b65210d4c46331565d3b6 | 347 | #! /bin/bash -e
# directory this script is located in
SCRIPTS=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# some convenient aliases
COMMONER="$SCRIPTS/commoner"
ROOT="$SCRIPTS/.."
BUILD="$ROOT/build"
# for now build everything into the build directory
/usr/bin/env node "$COMMONER" --relativize --use-provides-m... |
add41695d2410a1be73650fdb51847c708465933 | 327 | #! /bin/sh
RETRY_COUNT="0"
RETRY_MAX="$1"
shift 1
CMD="$@"
RES="999"
while [ "$RETRY_COUNT" -lt "$RETRY_MAX" ]; do
$CMD
RES="$?"
RETRY_COUNT=`expr $RETRY_COUNT + 1`
if [ "$RES" -eq 0 ]; then
grep -r '<error' */target/test-reports/
grep -r '<failure' */target/test-reports/
exit 0
fi
done
exi... |
9130cb892a1b7239224e5fb752ec4f1295712d29 | 480 | #!/usr/bin/env bash
sudo yum install -y epel-release
yum provides '*/applydeltarpm'
yum -y install deltarpm
wget --directory-prefix="/home/vagrant/dev/tools/" https://packages.chef.io/stable/el/7/chef-12.8.1-1.el7.x86_64.rpm
wget --directory-prefix="/home/vagrant/dev/tools/" https://packages.chef.io/stable/el/7/che... |
85e1b9eaaecce92e5d3d8064bafedc2759f58b22 | 72 | #!/bin/bash
docker build -t felipederodrigues/redmine_cluster:latest .
|
7da580b00323510a76e57177452f5f3c816909ee | 491 | #!/bin/sh
DEVOPS="$HOME/.devops"
if [ ! -z "$HOST_COLOR" ]; then
echo "$HOST_COLOR" > "$HOME/.host_color"
fi
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p "$HOME/.vim/backup"
if [ ! -d "$DEVOPS" ]; then
git clone https://... |
283463853e452fe893edccb7f4d3ba5de9d88d5a | 456 | #!/usr/bin/env bash
cloc --out=cloc.driver.txt --exclude-lang=make driver r2.sh
cloc --out=cloc.master.txt --exclude-dir=bin master/src
cloc --out=cloc.analysis.txt master/src/bin uberenv.sh work/*.{sh,plt}
cloc --sum-reports --out=uberfuzz cloc.{master,driver}.txt
cloc --sum-reports --out=uberfuzz.all cloc.*.txt
for... |
38f812d3171675d997d93b17153e2c5080c33e06 | 63 | #!/bin/sh
/usr/bin/java -jar /usr/share/java/yed/yed.jar "$@"
|
178c8dc2a6120e6fa5529389b7c0ea27a2319765 | 898 | #!/bin/bash -x
isPartTime=1;
isFullTime=2;
maxHrsInMonth=100;
totalSalary=0;
empRatePerHr=20;
numWorkingDays=20;
totalEmpHrs=0;
totalWorkingDays=0;
function getWorkingHours(){
case $1 in
$isFullTime)
workingHours=8
;;
$isPartTime)
workingHours=4
;;
*)
w... |
8509aceff324c89dde75d47e253326b4f16e47fe | 3,784 | #!/usr/bin/env bash
#
# Shell Response Text/Colors/Helpers
#
# This file contains text/color effects and
# text-response helper functions for Shell scripts.
#
# shellcheck disable=SC1090,SC1091
# Color Switch
export SWITCH='\033['
# Clear whole line and hard-line-return
export ClearLine="${SWITCH}2K"
export ClearLine... |
ae2946774fb538da96ac9a8ec0ff0a440bded6e4 | 1,533 | #!/bin/bash
# SCRIPT: digclock.sh
# USAGE: ./digiclock &
# PURPOSE: Displays time and date in the top right corner of the
# screen using tput command.
# To stop this digclock use command "kill pid"
################################################################
####################### VARIABLE DECLARATION ###########... |
52f01b824dafa81620832ce44a900a7fc9b5bf72 | 1,580 | #!/bin/sh
# run in docker
#if [ ! -d "boost" ]; then
# cp /usr/include/boost boost -R
#fi
if [ ! -d "LuaJIT" ]; then
if [ ! -f "LuaJIT-2.0.5.tar.gz" ]; then
curl http://luajit.org/download/LuaJIT-2.0.5.tar.gz -o LuaJIT-2.0.5.tar.gz
fi
tar -xzvf LuaJIT-2.0.5.tar.gz
mv LuaJIT-2.0.5 LuaJIT
fi
if [ ! -d "LuaBrid... |
c06b398f861ac3b76de22ca9aea6f3d8dd30edb8 | 1,215 | #!/bin/bash
# 149 max
for i in `seq 1 149`; do
wget \
--post-data="searchType=Suburb&noRefine=&lawyerName=&distanceCalc=&searchWithin=10&list_state=NSW&list_state2=&lawyer_id=&txtSuburb=2000&search=true&pageNum=$i&searchType=Suburb&type=&typeRefine=&level=&lawarea=&lawareaRefine=&flashfile=&feature=&list_region... |
84e6f0f9b54afb65749fd238bc722a37172994f8 | 755 | #!/bin/sh
# https://git-scm.com/docs/githooks
PRE="`date` post-commit-msg:"
LOG=~/githook.log
echo === $PRE $0 entered ========================= >> $LOG
echo $PRE LOGNAME: $LOGNAME USER: $USER HOME: $HOME >> $LOG
echo $PRE PWD: $PWD >> $LOG
echo $PRE EDITOR: $EDITOR >> $LOG
echo $PRE PATH: $PATH >> $LOG
echo $PRE GIT_D... |
b811e44aabfc5e13a873dcd58b7a5cdb102f7d31 | 137 | alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep -n --color=auto'
alias ll="ls -lah"
export CLICOLOR=1
|
1166280275abe119cd66737db2f0b577a8b19758 | 225 | #!/bin/bash
for ((x=1;x<379;x++))
do
convert -resize 500% ~/Documents/ac94/images/page$x.png -type Grayscale ~/Documents/ac94/images/page$x.tiff
tesseract ~/Documents/ac94/images/page$x.tiff ~/Documents/ac94/text$x
done
|
647e0ca4395bd5dd3c64b265dd9449d07e91c805 | 48 | PUBLIC_VALUE=i am public
SERVER_ONLY=big secret
|
54c25fc9e4f8282e30a142eeed15452c08cfae2c | 536 | #!/bin/bash
quarks=../../..
# Runs IBM Watson IoT Plaform sample.
#
# runiotfsensors.sh path/device.cfg
#
# e.g. runiotfsensors.sh $HOME/device.cfg
#
# This connectors to your IBM Watson IoT Platform service
# as the device defined in the device.cfg.
# The format of device.cfg is the standard one for
# IBM Watson IoT... |
a6a144aa007670a2533838915efa802e4a3c59c8 | 65 | #!/bin/bash
service kea-dhcp4-server start
service bind9 restart |
de075e27958a79a4a1b5e7779eb162a68f224496 | 132 | DB_CONNECT = "mongodb+srv://madrigal1:gokz@acmwebintro-oi8yk.mongodb.net/test?retryWrites=true&w=majority"
TOKEN_SECRECT = "dfssfdg" |
a159ae05f75f9da0503c2db2d5d18b7ac0a301f2 | 3,433 | #!/bin/sh
#================================================================================
# (C)2013 dMajo
# Title : ad-blocker.sh
# Version : V1.02.0018
# Author : dMajo (http://forum.synology.com/enu/memberlist.php?mode=viewprofile&u=69661)
# Description : Script to block add-banner servers, dns based... |
2d9a9178637e0f98451236a755136c35d2cc542c | 12,649 | #!/usr/bin/bash
if [ ! -d /data/zaworaca/data/CZ/150603_1723_utah ]; then
mkdir -p -m 777 /data/zaworaca/data/CZ/150603_1723_utah
fi
if [ ! -d /data/zaworaca/data/CZ/150603_1823_utah ]; then
mkdir -p -m 777 /data/zaworaca/data/CZ/150603_1823_utah
fi
if [ ! -d /data/zaworaca/data/CZ/150603_1924_utah ]; then
mkdir -p -m... |
1489aaaa2f716f70f222f2e26197e0fa907caed7 | 3,699 | #!/usr/bin/env bash
################DOCUMENTATION ONLY###################
# PURPOSE: Automate ripping of disc media via HandbrakeCLI
# USAGE: Automatic Setup: ./hbcli-batchenc.sh
# Manual Setup: ./hbcli-batchenc.sh <preset> <title>
# INPUT: Automatic Setup: NONE
# Manual Setup: Handbrake pr... |
f7dda43e409a8e536036fd8beb6a6aa2f7c4c0bf | 2,357 | #!/bin/bash
function die () {
echo 2>&1 "${1}"
exit 1
}
if [ $(whoami) != "root" ] ; then
sudo $0 $@ || die "Not run as root or cannot sudo to root"
exit $?
fi
apt-get install -y memcached redis-server postgresql daemon unzip npm
# Create dev/test databases and users, set passwords
for user in $(whoami) clo... |
35875a29f48d098bb2e27b3f2f0e53248312c149 | 1,097 | #!/bin/bash
docker rm ubuntu-essential-multilayer 2>/dev/null
set -ve
docker build -t textlab/ubuntu-essential-multilayer - <<'EOF'
FROM ubuntu:14.04
# Make an exception for apt: it gets deselected, even though it probably shouldn't.
RUN dpkg --clear-selections && echo apt install |dpkg --set-selections && \
SUDO_... |
61c61fc299ab899d7b94e2ebf4d50bd0f889b9ed | 83 | cat /sys/kernel/debug/kernel_page_tables
cat /proc/pagetypeinfo
cat /proc/buddyinfo |
bee9883903222b62f10dcbc08eab3dc1717c9ed6 | 127 | #!/bin/bash
echo "install dependencies..."
npm install
echo ""
echo "start built-in server in mode ssl..."
npm run serve-ssl
|
83c426177ad8782668066c0351eb434c797fbbdc | 56 | #!/bin/bash
cd /home/ubuntu
pm2 -f start server.js
|
4a1e36823ed30ed811fa0d2d9887d016cc426a20 | 979 | K_EY = SAqlsgqtNQK+CUFZUkx08BK6Jys8Hc3e
AL_G = aes-256-ctr
WO_RD = d6F3Efeq
AZURE_QUEUE_CONNECTION_STRING = Endpoint=sb://bluesecures.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=4nQ1RLtYZDTatVMsoiY7IvGvh1fA9t9xRw3b56hROsk=
MESSAGES_QUEUE_NAME = bluesecures
AZURE_STORAGE_ACCO... |
dcfec9d850b91958a58fc733ab4ea5e8622f9c65 | 75 | #!/bin/bash -ue
exec docker build -f Dockerfile -t fbthrift_perf:latest .
|
0107f5bc869315edcbeb086991c09bb35244c1cf | 6,175 | #!/bin/bash
#set -e
###############################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# We... |
2e21b621e34870d73f45469550132b890208dbb9 | 77 | #!/bin/sh
prefix=../..
echo cflags -I$prefix
echo libs -L$prefix/llib -lllib
|
c27167600df6d1dfc56ffc40d43934dd7bc46a8f | 113 | #!/bin/bash
export RGLOCATION=$1
./log-output.sh "Resource group location for project is '$RGLOCATION'" |
71f8334ee6e65fdc2dac9a1af2abc8582959603d | 530 | #!/bin/bash
dir=/home/anton/Doc/Documents/SequenceData/DamID_IBprot/export_not_combine/141110
bzip_files=$dir/*.fastq.bz2
cd $dir
for fq in $bzip_files; do
fq_base=`basename ${fq}`
bzcat ${fq_base} > ${fq_base%.bz2}
gzip -c ${fq_base%.bz2} > ${fq_base%.bz2}.gz
rm $fq_base ${fq_base%.bz2}
done
#i=10
#while [ $i -le ... |
3ce0532b6fb153bc52ffd4978a7d2ded970f9b85 | 2,257 | #!/bin/bash
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# RPIENV SETUP (BASH)
if [ -e "${MYDIR}/.rpienv" ]
then
source "${MYDIR}/.rpienv" "-s" > /dev/null
# check one var from rpienv - check the path
if [ ! -f "$CONFIGHANDLER" ]
then
echo -e "[ ENV ERROR ] \$CONFIGHANDLER path no... |
ec539ee6f4713864931c87fe201d97f86450ea29 | 49 | dbmcli -d DBT3 -u dbm,dbm -uSQL dbt,dbt -i 3.sql
|
ecac250f6e38a19a2a8dbe727c74ee12069f0765 | 1,359 | # Path to your oh-my-zsh installation
export ZSH="$HOME/.oh-my-zsh"
export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.6.0/bin:$GOPATH/bin:$PATH"
export EDITOR="nvim"
export GOPATH=$HOME/go
ZSH_THEME="spaceship"
SPACESHIP_DOCKER_SHOW=false
SPACESHIP_KUBECONTEXT_SYMBOL=" "
SPACESHIP_KUBECONTEXT_PREFIX="... |
bc4820b580dc08b3a271868a0ded46eec752116d | 46 | MONGO_URI=
API_URI=https://viacep.com.br/ws/
|
3c3a1203bc042f94134fdff76fcc12ec59f0e679 | 623 | #!/bin/bash
tstdir=$(dirname $(realpath $BASH_SOURCE))
topdir=$(dirname $tstdir)
blddir=$topdir/build
dyndir=$blddir/test/dynamo
# set -x
rm -rf $topdir/build/liba.so
LD_LIBRARY_PATH=$blddir $dyndir/testa-nolink && exit 1
echo "expect assertion in the above"
LD_LIBRARY_PATH=$blddir:$dyndir $dyndir/testa-nolink || ... |
c2ab1455f711ec36bed71bc27a09c1d313cc9f5b | 298 | REACT_APP_API_KEY="AIzaSyD3sJpPWgfmdR3gzJCfZvuYZffGMtJvicU"
REACT_APP_AUTH_DOMAIN="test-1835f.firebaseapp.com"
REACT_APP_DATABASE_URL="https://test-1835f.firebaseio.com"
REACT_APP_PROJECT_ID="test-1835f"
REACT_APP_STORAGE_BUCKET="test-1835f.appspot.com"
REACT_APP_MESSAGING_SENDER_ID="730833347188" |
a2782b218cabded99701a069936254f2cb617cb7 | 216 | #!/usr/bin/env bash
composer require olegkoval/magento2-regenerate-url-rewrites
php bin/magento module:enable OlegKoval_RegenerateUrlRewrites
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
|
13982a8eeeca71cd771be0e750df97eae644b6a9 | 4,779 | killall -9 ls_router;
ps;
perl make_topology.pl grid_topology/topogrid.txt;
./ls_router 0 grid_topology/test2initcosts0 grid_topology/test2log0 &
./ls_router 1 grid_topology/test2initcosts1 grid_topology/test2log1 &
./ls_router 2 grid_topology/test2initcosts2 grid_topology/test2log2 &
./ls_router 3 grid_topology/tes... |
6baa8dd9ecb3119ecdaca91e8ae26ed0e6a6e74b | 2,044 | iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 10.18.0.0/16 -d 18.0.0.0/8 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.28.0.0/16 -d 18.0.0.0/8 -j MASQUERADE
iptables -t nat -A PREROUTING -s 18.0.0.0/8 -d 18.0.0.1 -p tcp --... |
4a136713a7ab05ebc086651a828fa2da2b37b832 | 1,994 | #!/usr/bin/env bash
bin=`cd "$( dirname "$0" )"; pwd`
spider_dir=`cd ${bin}/..;pwd`
usage() {
cat << EOF
usage: $0 options
NAME
slave-control.sh - script to control the slaves remotely.
SYNOPSIS
$0 -i <ip> -p <password> -c <content> [start|status]
OPTIONS:
-h Show this... |
dd74921bbd5bc2b24ad05b9bd1afc55b7186add5 | 427 | source ~/venvs/mturk/bin/activate
ROOT=$PWD
S1=$1
S2=$2
SOURCE=$3
cd ~/Chatbot_evaluation/amt_eval/
python3.6 launch_2choice.py \
-n 10 \
-t "${ROOT}/${S1}" "${ROOT}/${S2}" \
-s "${ROOT}/${SOURCE}" \
-m 1 \
python3.6 launch_2choice.py \
-n 10 \
-t "${ROOT}/${S1}" "${ROOT}/${S2}" \
-s "${ROOT}/${SOURCE}" \
-m 1 \
p... |
0b48cbc2c9a23a7e766854394493dbd671ba9b0a | 120 | #!/bin/bash
# This should be run from a folder created
# with create_watcher_config
java -jar Watcher.jar watcher.cfg
|
1944352f5eaab977e0e66e78587755994ade83ff | 393 | #!/bin/sh
VERSION=2.6.3
tar --files-from=file.list -xjvf ../freetype-$VERSION.tar.bz2
mv freetype-$VERSION freetype-$VERSION-orig
cp -rf ./freetype-$VERSION-new ./freetype-$VERSION
diff -b --unified -Nr freetype-$VERSION-orig freetype-$VERSION > freetype-$VERSION-subpixel.patch
mv freetype-$VERSION-subpixel.patc... |
3d27820f736757d89469c565cd82079a457b6dea | 59 | #!/bin/sh
tail -f /home/WebEngine/tomcat/logs/catalina.out
|
78d218929b8762d3b04341436d63a0be22c074c3 | 411 | #!/bin/sh
rpm -Uvh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
echo "include_only=.jp" | sudo tee -a /... |
c961153eddac942a3519e61c5254d29f9cb22f9d | 1,780 | #!/bin/bash
#read in entries from the sm_config file
task=$(cat config/sm_config.json | jq -r ".task[]")
ses=$(cat config/sm_config.json | jq -r ".ses[]")
acq=$(cat config/sm_config.json | jq -r ".acq[]")
run=$(cat config/sm_config.json | jq -r ".run[]")
bidsDir=$(cat config/sm_config.json | jq -r ".bids_dir")
#initi... |
e67be459674cce01785ff8eeb635b6e027534dfd | 56 | #!/bin/bash
kubectl apply -f $pwd/conf/all-in-one.yaml
|
de706ccefb4acb8344deca5f2c833607d77b72af | 186 | Extracting the `public key` from the `private key`
Disable SSH password authentication
Block IPs using `Fail2ban`
Disabling **USB** storage devices
Private key encryption with `OpenSSL` |
69e022a8df55425b2560f584c52677f61bcf844d | 61 | TELEGRAM_BOT_TOKEN=anc
REDIS_HOST=127.0.0.1
REDIS_PORT=6379 |
d32644df6d1e0ce3096371a363c85e8076aaee86 | 699 | # python3 Simple_KD_DomainNet.py --gpu_id 0 --dset domain_net --net resnet101 --s 0 --batch_size 320 --epoch 9 --interval 3 --suffix simple_domainnet --save_weights MTDA_weights/resnet101 --wandb 1 --txt_folder test_target/no_grad
# CUDA_VISIBLE_DEVICES=1 python3 test_MixUp_KD_DomainNet.py --dset domain_net --net vit -... |
e1f0aae3c6651b583fa358d0d8b87fe7b7c10b79 | 1,361 | on_reith () {
[ "BBC On Network" = "$(/usr/sbin/scselect 2>&1 | grep '^ \*' | sed 's/.*(\(.*\))/\1/')" ]
}
if on_reith;
then
echo "On Reith"
export http_proxy="http://www-cache.reith.bbc.co.uk:80"
export https_proxy="$http_proxy"
export HTTP_PROXY="$http_proxy"
export HTTPS_PROXY="$http_proxy"
export ALL_... |
e2f6aadfb3ea9b572e54b06a9926186dbcb10019 | 493 | #!/bin/bash
sudo apt update -y
sudo apt install g++ -y
sudo apt install automake -y
sudo apt install pkg-config -y
sudo apt install cmake -y
sudo apt install uuid-dev -y
sudo apt install openssl libssl-dev -y
sudo apt install libprotobuf-dev -y
sudo apt install protobuf-compiler -y
sudo apt install cmake libgtest-dev... |
7e5f1cfc84899d4290d6c7729b4b064e85241a03 | 508 | #!/usr/bin/env bash
trap 'kill ${!}; term_handler' SIGHUP SIGINT SIGQUIT SIGTERM
pid=0
term_handler() {
echo "term_handler"
service ntp stop
if [ $pid -ne 0 ]; then
kill -SIGTERM "$pid"
wait "$pid"
fi
exit 143; # 128 + 15 -- SIGTERM
}
service ntp start
service apache2 start
echo -n "Starting node... |
cb18f7b13251a51df7d796874f92e85d65a9f1df | 199 | #!/bin/sh
case "$2" in
ACTIVATE)
echo "AT+QGPS=1" | atinout - /dev/EG25.AT -
;;
DEACTIVATE)
echo "AT+QGPSEND" | atinout - /dev/EG25.AT -
;;
""|*)
echo "Unhandled argument: $2"
exit 1
;;
esac
|
f3dcaab98414434a5ca063ad3a833f5a305db54d | 1,979 | #!/usr/bin/env bash
c="0.0,0.0001,0.0005,0.001,0.005,0.01,0.05,0.1,0.5,1.0,10.0,100.0"
device=0
dataset=cifar10
root=data/cifar10-py
net=vgg16
defense=rse
# model_in=./${net}/brelu_0.05.pth
# model_in=./${net}/rse_0.1_0.0_ady.pth-test-accuracy-0.8504
model_in=./${net}/rse_0.0_0.0_ady.pth-test-accuracy-0.8523
# c=0,0.... |
6efcfcf211507d7c4c1846a24243a0ba2c21298a | 94 | DB_USERNAME=nikita
DB_DEVELOPMENT=easygo_development
DB_TEST=easygo_test
DB_HOSTNAME=localhost |
bff5809b6cb167b0d4f611db4833bd9ae9d44f1d | 1,599 | # Maintainer: Martin C. Doege <mdoege at compuserve dot com>
pkgname=craft-fogleman-git
_gitname=Craft
pkgver=736.fe3e7b3
pkgrel=6
pkgdesc="A Minecraft clone in C and Python with multiplayer support"
arch=('i686' 'x86_64')
url="http://www.michaelfogleman.com/craft/"
license=('MIT')
depends=('glew' 'curl' 'python2-req... |
d8c330981b4b0f051081ee430449ec3f6603b8f5 | 299 | docker build -t registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow -f docker/shadow/Dockerfile .
docker push registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow
docker build -t registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect -f docker/kt-connect/Dockerfile . |
569c307166d98fae919da9e604009ea2375a56da | 86 | #!/bin/bash
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts start-ngrok.yml
|
46ac7aee3dab998140176065bcff0373ef1b533a | 419 | #!/bin/sh
# Aliases for navigation sharing
alias cdw='cd $(cat "${HOME}/pwd-working")'
alias cds='cd $(cat "${HOME}/pwd-share")'
# Aliases for apt
alias sau='sudo apt update'
alias saug='sudo apt upgrade'
alias sai='sudo apt install'
alias ali='apt list --installed'
alias alu='apt list --upgradable'
# Alias for opti... |
0a345ac98a8fb2085252b6fb595f2b1c0d099521 | 275 | g++ commandLineArgs_Example_mul2add3.cpp -o mul2Add3.out
echo running without arguments
./mul2Add3.out
echo
echo running with one argument
./mul2Add3.out 1
echo
echo running with 3 args: 1, 2, 4
./mul2Add3.out 1 2 4
echo
echo running with 2 args: 15, 20
./mul2Add3.out 15 20
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.