blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
faf38f93fb5e2ebb5de292ec49fcfc4dc95540a7 | 272 | #!/bin/sh
set -ex
icons="twitter github"
dest=fontawesome
url=https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/advanced-options/raw-svg/brands
mkdir -p "${dest}"
for icon in $icons; do
icon="${icon}.svg"
wget -O "${dest}/${icon}" "${url}/${icon}"
done |
06ca1557aed2fd94942cce09112bb6e919e54452 | 2,216 | #!/usr/bin/env bash
set -e
cmd=${0##*/}
usage() {
cat <<EOF
Usage: $0 OPERATOR_NAME OSDE2E_CONVENTION_DIR
EOF
exit -1
}
OPERATOR_NAME=$1
OSDE2E_CONVENTION_DIR=$2
REPO_ROOT=$(git rev-parse --show-toplevel)
HARNESS_DIR=$REPO_ROOT/osde2e
# Update operator name in templates
export OPERATOR_HYPHEN_NAME=$(echo ... |
d95ce2436a2777e674be14a0d3c7f73809481612 | 1,312 | #! /bin/sh
checkInt1(){
tmp=`echo $1 |sed 's/[0-9]//g'`
# [ -n "${tmp}" ] && { echo $1"Args must be integer!";echo 1; }
[ -n "${tmp}" ] && echo 1
}
#getparams(){
# echo $1
# list=`$1`
# for var in $list ; do
# res=`checkInt1 $var`
# if [ "$res" == "1" ];then
# continue... |
58fafed348cafb067b2c3dbc9deddfac65a36fda | 2,669 | # _______ _ ____ _
#|__ __| ( ) | _ \ | |
# | | ___ _ __ _ _|/ ___ | |_) | __ _ ___| |__
# | |/ _ \| '_ \| | | | / __| | _ < / _` / __| '_ \
# | | (_) | | | | |_| | \__ \ | |_) | (_| \__ \ | | |
# |_|\___/|_| |_|\__, | |___/ |__... |
8f2e645f012cd4656f04164f96813620e16c0c4d | 569 | cat > /root/cxll <<'GOST'
python /usr/local/SSR-Bash-Python/show_flow.py > /root/cx.txt
a=`sed -n '2p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'`
b=`sed -n '3p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'`
c=`sed -n '4p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'`
let "b+=$a"
let "b+... |
265e279bb4c48c0efaed8edb97aea59dca77c9cd | 1,100 | #!/bin/sh
## simple example of a pre-commit hook. Put this in
## $YOURWORKINGCOPY/.git/hooks/pre-commit. Note that this check script
## itself is not versioned.
readfirst=./env.sh.example
if [ -f $readfirst ] ; then
source $readfirst
fi
## python (simplistic; also check python compileall; PyChecker,
## Pyflakes,... |
e49995783db52b7caee2029381d0c6997cc5b905 | 187 | #!/bin/bash
set -e
git config --global user.email "travis-job@travis-ci.com"
git config --global user.name "Travis CI"
git config --global push.default simple
sbt site/publishMicrosite
|
f206f47a350ab011b313f2731dd8a24b529a10ec | 187 | #!/bin/bash
rm -rf output
mkdir output
javac -classpath $(hadoop classpath) -d output WordCount.java
jar -cvf wordcount.jar -C output/ .
hadoop jar wordcount.jar WordCount $1 dft-output
|
f847c85816cd10aeb4f796bcc3279b60cbf72a0c | 39 | ./selectKthElem 10000 rand10k.txt 5000
|
a6f8cb2dc4d88f72b99756ebc7946291b3e27b65 | 436 | #!/bin/sh
NETSTATE="$(cat "/sys/class/net/wlp2s0/operstate")"
if [ $NETSTATE = "up" ]; then
# bssid comes first, fuhgettaboudit
WPASTR="$(sudo wpa_cli -i wlp2s0 status | grep ssid)"
NETNAME="$(cut -d$'\n' -f2 <<<$WPASTR)"
NETNAME="$(cut -d'=' -f2 <<<"$NETNAME")"
NETNAME="$(echo "$NETNAME" | sed 's/ /_/')"
else
... |
9cfc1f3e03a4ed69af34a29e77f9c1b80bbfe6f1 | 4,925 | #!/bin/bash
#####################################
## Deploy cloudformation templates
#
REGION="eu-usa-1"
PROFILE="default"
AWSCLI="/usr/local/bin/aws"
TEMPLATES_PATH="./"
deploy_all () {
if [[ ! -z ${DEPLOY_ALL} ]]; then
if [[ -z ${YES_TO_ALL} ]]; then
read -p "I will deploy ALL stacks, are you sure? (y/... |
ff5de48687ffa2683007f8dc6c634207d5fcac69 | 202 | #!/bin/sh
mkdir -p logs/jinyong model/jinyong
rm -rf logs/jinyong/* model/jinyong/*
rm -rf data/jinyong.train data/jinyong.dict data/jinyong.validate
./jinyong_stop_train.sh
./jinyong_start_train.sh
|
2ef93f67b56ba20d3e88d01f022655acf36f1fa3 | 2,828 | # Wait for Wattlog
microsleep 10000000
# Load App
{{{timing}}}
am start -n de.rundholz.mathtrainer/de.rundholz.mathtrainer.TermsOfUsage
microsleep 10000000
{{{timing}}}
### Prefix to start the app
input keyevent ENTER
microsleep 4000000
input keyevent ENTER
microsleep 4000000
input keyevent 61
microsleep 4000000
input ... |
40731c2434a105f6ab51cb1366b50bd4ead5294f | 4,740 | #!/usr/bin/env bash
#bridgeelements
#artefacts for xml_to_yaml bridge
pizza artefact create https://raw.githubusercontent.com/rdsea/IoTCloudSamples/master/IoTCloudUnits/node_red_dataflows/bridges/xml_to_yaml_bridge/bridgeelement_json_to_yaml.json nodered ./bridges/xml_to_yaml_bridge/metadata_bridgeelement_json_to_yaml... |
657da4887264db6b3a4678460c79747af8804b30 | 1,104 | #!/bin/bash
#read video name
date
#python image_creation_spatfreq.py 5
#echo 10
#python image_creation_spatfreq.py 10
#echo 15
#python image_creation_spatfreq.py 15
#echo 20
#python image_creation_spatfreq.py 20
#echo 30
#python image_creation_spatfreq.py 30
#echo 60
#python image_creation_spatfreq.py 60
#echo image... |
c5547b51914f8e7a126e89769ccd78823f1717df | 556 | # default values for relevant environment variables
# ref: https://github.com/kubernetes/kubernetes/releases
export KUBE_VERSION=${KUBE_VERSION:-1.19.2}
# ref: https://github.com/kubernetes/minikube/releases
export MINIKUBE_VERSION=${MINIKUBE_VERSION:-1.14.0}
# ref: https://github.com/LiliC/travis-minikube/blob/mast... |
04e1562f4377aacbda664f168fd7523945a4fbe6 | 107 | #!/bin/sh
yum install -y rpmlint spectool yum-utils
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
|
bb403fdb8addfee03e96e6c7cf07f152b88d6143 | 244 | #!/bin/bash
set -ex
curl -sSL "https://github.com/protocolbuffers/protobuf/releases/download/v3.10.0/protoc-3.10.0-linux-x86_64.zip" -o /tmp/protoc.zip
unzip /tmp/protoc.zip -d /tmp/protoc
sudo mv /tmp/protoc/bin/protoc /usr/local/bin/protoc
|
8142a151e741764d72f213ec8f8c2ef46042eeb2 | 108 | #!/bin/sh
### SETUP
/data/bin/firewall
/data/bin/networking
/data/bin/ipsec
### START
ipsec start --nofork |
3a1660d861b5826a9862a71772600021c57c1a83 | 800 | APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
#########################
... |
fae25b11c3b6cab3f11a465ea16740fded6c16ff | 523 | #!/bin/bash
# This script runs in the aegir user's home directory on featuretest and
# enables simple syncing of the prod db
drush sql-sync @ilr.prod @prod.ilr.featuretest.org --sanitize --sanitize-password=SEE_FILE_ON_SERVER --structure-tables-list=cache,cache_*,sessions,entityform,freedompay_*,redhen_* -y
drush cc ... |
ca533dcda11bd781201b07773957a14653668ac2 | 1,671 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DB=$2
PASSWORD=$3
OUT=$4
GRAPHQL_CONTENT_TYPE="application/graphql"
JSON_CONTENT_TYPE="application/json"
destroy_schema() {
rm -r $DIR"/src"
}
create_schema() {
sql2graphql --db $DB -p $PASSWORD -o "src"
}
demo() {
rm -r $DIR"/demo"
sq... |
65cb90723915a1a51ddb462ebac2731fa875b0ef | 834 | #!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: run.sh <Sync-Gateway-Config-File> <Log-Directory>"
exit 1
fi
wait_for_uri() {
expected=$1
shift
uri=$1
echo "Waiting for $uri to be available..."
while true; do
status=$(curl -s -w "%{http_code}" -o /dev/null $*)
if [ "x$status" = "x$expected" ]... |
c7edf8e9ca7e49bc4a3d45e56490a98f30414bbe | 1,338 | #!/bin/sh
test "$1" || { echo nothing happen; exit 1; }
bar="============================"
bar2="----------------------------"
unset err; log="/tmp/zz-${0##*/}.log"
alias today='date -j "+%Y.%m.%d %H:%M:%S"'
alias ticks='date -j +%s'
clock () {
test -z "$1" -o -z "$1" && \
{ echo "missing arguments"; return 1... |
093458e9ee14b679155fa86f026187d404754768 | 93 | #!/bin/bash
for server in $(host -t ns $1 | cut -d " " -f4);
do
host -l -a $1 $server
done
|
9aeb6b758bf7938117fb9113f81e96611db565f2 | 1,141 | #!/bin/sh
T="docker-apksignercerts"
F="${1:?}"
{ docker build \
-q \
-t "${T:?}" \
- \
>/dev/null <<"EOF"
FROM debian:bullseye
## Refs:
## - [apt-get best practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get).
RUN apt-get update && apt-get i... |
14a8bcecb8cb2d534eaeb9d20e2ab55263dce75e | 27 | #!/bin/bash
mongod -d
mongo |
a12cec705c4c68794034b816002886ec68318801 | 109 |
./word2vec -train action_seq -output action_seq_model -size 100 -window 5 -sample 1e-4 -binary 0 -iter 15
|
fd7e58799ca6cbb3358cdc1baf8358ef0d88e72e | 337 | #!/usr/bin/env bash
mkdir -p /vagrant/shared
DIST="/vagrant/shared/zookeeper-${ZOOKEEPER_VERSION}.tar.gz"
if [[ ! -f "${DIST}" ]]; then
wget -q "http://archive.apache.org/dist/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz" -P /vagrant/shared
fi
tar xzf "${DIST}" -C /zookeeper --st... |
b404a31b0c84b26f4039a5b24386a474343a92a1 | 85 | #!/usr/bin/env bash
cgexec -g memory,cpu:desktop/telegram /usr/bin/telegram-desktop
|
8b977cc491bffd52b0c4d84c71192b0ee678c8be | 201 | #!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
trap 'rm -f "$$.tags"' EXIT
git ls-files | \
ctags --tag-relative -L - -f"$$.tags" --fields=+aimlS --languages=php --PHP-kinds=+cf-va
mv "$$.tags" "tags"
|
869daa0ce0125e0340e1ce7959500ecd261eab90 | 2,806 | #! /bin/sh
# check for necessary env vars
[ "${DOMAIN}" = '' ] && echo "'DOMAIN' env var not set" && exit 1
[ "${GITHUB_REPO_REF}" = '' ] && echo "'GITHUB_REPO_REF' env var not set" && exit 1
[ "${GITHUB_TAG}" = '' ] && echo "'GITHUB_TAG' env var not set" && exit 1
[ "${CI_DOCKER_IMAGE}" = '' ] && echo "'CI_DOCKER_IM... |
e86d0a87553459e935f82fb0416a58f43e94f1d7 | 1,287 | #!/bin/bash
[ "$EUID" != "0" ] && echo "please run as root" && exit 1
set -e
set -o pipefail
os="alpine"
rootsize=700
origin="minirootfs"
target="raycloud"
tmpdir="tmp"
output="output"
rootfs_mount_point="/mnt/${os}_rootfs"
qemu_static="./tools/qemu/qemu-aarch64-static"
cur_dir=$(pwd)
DTB=rtd-1296-raycloud-2GB.dtb... |
3baa3d3f847b269f398ebc44fd4eea6df27de5a3 | 1,577 | #!/bin/bash
CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
[ -d "$CURR_DIR" ] || { echo "FATAL: no current dir (maybe running in zsh?)"; exit 1; }
TOP_DIR="$CURR_DIR/../.."
# shellcheck source=../common.sh
source "$CURR_DIR/../common.sh"
################################################... |
e7c8cf748066bce46d26558dcd424b6531ff0586 | 32 | PORT=4000
SECRET="mysecrettoken" |
db1dd6c2cc372d80b344ec30907192f44d8ab4c5 | 512 | #!/usr/bin/env bash
echo "===================="
echo "== Configure SFTP =="
echo "===================="
airflow connections add ftp_server \
--conn-type SSH \
--conn-host ftp-server \
--conn-login $SFTP_USER \
--conn-port 22 \... |
3e7f0f6dd5b85a0663327c85283dcb9144b1a432 | 178 | make -C ../apps/test_cpp_cart_pole
cp ../apps/test_cpp_cart_pole/launch.sh ${BASEPATH}${RUNFOLDER}/launchSim.sh
cp ../apps/test_cpp_cart_pole/cart-pole ${BASEPATH}${RUNFOLDER}/
|
af90e47f464b9242a775e5b1e1fd5a7f7606604b | 179 | ZEPPELIN_TAG=0.8.1
HADOOP_TAG=3.2.0-debian
SPARK_TAG=2.4.3-hadoop3.2.0
HADOOP_VERSION=3.2.0
HIVE_TAG=2.3.4-hadoop3.2.0
METASTORE_TAG=9.6-hive2.3.4
POSTGRESQL_TAG=9.6
HUE_TAG=4.4.0 |
228ce2e831eb39b77fa9ef65dddf8c3de8d831ee | 2,256 | #!/bin/sh
#Author: Reidar Cederqvist
####### includes ######################
#. /usr/share/libubox/jshn.sh
####### end of includes ###############
####### helper functions ##############
print_usage() {
echo -e "usage: $0 <action>\n"
echo -e "actions:\n"
echo -e "\t-d|--diff diff-file orig-file out-file //create a ... |
abf73c7540c8f57abbbbe496ce3fce3ffe22f0d8 | 342 | #!/bin/bash
########################################################################
# Script used to remove all modules.
########################################################################
#remode analyser.
sudo rmmod analyser
# remove keylog.
sudo rmmod keylog
#remove reader.
sudo rmmod reader
# remove pars... |
03f1ec875d6ea435347081eb16bf35ff2518c88f | 695 | #!/bin/bash
export MAPR_VER="v5.2.0"
export MAPR_PATCH="39745"
export MAPR_DOCKER_TAG="${MAPR_VER}-${MAPR_PATCH}"
export MAPR_MAIN_URL="http://package.mapr.com/releases/v5.2.0/ubuntu/"
export MAPR_ECOSYSTEM_URL="http://package.mapr.com/releases/ecosystem-5.x/ubuntu"
export MAPR_PATCH_ROOT="http://archive.mapr.com/p... |
2093fe4d64dd129533539ebda451e734d56d95f7 | 149 | export PATH="$HOME/bin:$PATH":/Users/giaocung/dev/sandboxes/dagpenger-iac/postgres-gcp:/Users/giaocung/.krew/bin:/opt/homebrew/Cellar/libpq/14.2/bin
|
a5f3bac768b30caedbbe6cb1e05dea9d179e0b9f | 2,383 | AppFullName=com.xianle.doomtnt
AppVersionCode=10
AppVersionName="1.0 releae TNT of Doom"
AppName="TNT Doom"
echo Patching java file
for F in project/src/*.java; do
echo Patching $F
cat $F | \
sed "s/package .*;/package com.xianle.doomtnt;/" > \
$F.1
mv -f $F.1 $F
done
echo Patching project/AndroidManifest.xml
ca... |
afa9735da16f62aa19305ffe3881561f5ef0bc01 | 752 | #! /bin/bash
########################################################
# Author: Nur Nadhira Aqilah Binti Mohd Shah
# Email: mohdshah@purdue.edu
# ID: ee364g02
# Date: 3/16/2019
########################################################
base=~ee364/DataFolder/Prelab09
ProjPath=${base}/maps/projects.dat
CircPath=${b... |
3e7288c15afeabbd5813bfc5fa94b251b69142b7 | 76 | cat data.json | jq '.servers[1].name'
cat data.json | jq '.servers | length' |
1abf1e6f8f4c76e6f59d3844f0debcbb54ebe8bd | 2,653 | #!/bin/bash
# shellcheck disable=SC1117
cat << EOF
_
___ _ __ ___ ___ | |___
/ __| '__/ _ \ / _ \| / __|
| (__| | | (_) | (_) | \__ \\
\___|_| \___/ \___/|_|___/
INKSCAPE LAUNCH FROM SOURCE SCRIPT
EOF
GIT_ROOT=/home/$USER/Desktop/git-extern
INKSCAPE="$GIT_ROOT/inkscape"
INKSCAPE_BIN="$I... |
accd17a09836702aa48592085ae38dcc43152add | 1,367 | #-----------------------------------------------------------------------
#
# Basescript function
#
# The basescript functions were designed to work as abstract function,
# so it could be used in many different contexts executing specific job
# always remembering Unix concept DOTADIW - "Do One Thing And Do It Well"
#
# ... |
1d97f23baa3be4ad95980ebf0bd52f7ccb3a2f44 | 171 | #!/bin/bash
set -e
ghdl -a --std=08 a.vhd
ghdl -a --std=08 a2.vhd
ghdl -e --std=08 test_e
./test_e
ghdl -e --std=08 test_e2
./test_e2
ghdl -e --std=08 test_e3
./test_e3
|
f41cb886c1c6995a9f604432fbdba20981ef2451 | 862 | #!/bin/bash
R () {
c="./t.primlist.parse '$1'"
echo "$c"
eval "$c 2>&1"
echo ""
}
R "# comment"
R "# comment
sphere 0.3 0.3 0.7 0.25 0.2 0.15"
R "0.3 0.3 0.7 0.25"
R "sphere 0.3 0.3 0.7 0.25"
R "sphere 0.3 0.3 0.7"
R "sphere 0.3 0.3 0.7 0.25"
R "+sphere 0.3 0.3 0.7 0.25"
R "+ sphere 0.3 0.3 0.... |
4ebe7d07c607dcfa8b9d2b6f9c0e78ee6ce0f157 | 146 | #!/bin/bash
today=$(date '+%s')
summer_vacation=$(date -d '20180910' '+%s')
ret=$(($summer_vacation - $today))
ret=$((ret/87400+1))
echo $ret日
|
0d9773a4a605d10b72959d09d8336faa21c5c35d | 144 | connection_url=mongodb+srv://Imran:Imran78726@cluster0.tipoe.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
JWT_secret="DreamerGuyNITR" |
89132a2345fb3abd7ce39d3a60a13b0816c7ddb8 | 344 | # Get the private key from the environment variable
echo "Setting up DEV Connection..."
mkdir keys
echo $CERT_KEY | base64 -d > keys/server.key
# Authenticate to salesforce
echo "Authenticating..."
sfdx force:auth:jwt:grant --clientid $ORG_APP_KEY --jwtkeyfile keys/server.key --username $ORG_USERNAME --setdefaultdevhub... |
ad7d3dd3a4c741ce65ba89fd0ae6e2e03c7206a1 | 97 | # Report 1+ minute time
REPORTTIME=60
# Time format
export TIMEFMT=$'%E (user: %U, kernel: %S)'
|
f045bb45f006d60b4cfb6ba9b83379d75cbfc370 | 1,067 | #!/bin/bash
dbname="login"
dbidentifier="itmo-chandu"
dbsgrp="sg-8f6fa4f6"
dbinstance="db.t2.micro"
dbengine="mysql"
muser="controller"
mpassword="iloveuchandu"
storage="5"
dbzone="us-west-2b"
#creating the rds instance
aws rds create-db-instance --db-name $dbname --db-instance-identifier $dbidentifier --vpc-securit... |
0af7284aefd6d9d9311a6d4ae91fc5066104e11f | 95 | #!/bin/bash
echo "You are using $(basename $0)"
for n in $*
do
echo "Hello $n"
done
exit 0
|
993690c151b1373a6cb624689e0834f052d224b7 | 1,378 | #!/bin/bash
# Mark Stenbäck, 2019 (https://github.com/mstenback/practice_bash)
#
# Excercise 3: Calculate F(n) - Fibonacci value for the given number.
# E.g. the 6th Fibonacci (n=6) is 8.
# The maximum Fibonacci that can be calculated with a signed 64-bit integer
# is the 92th Fibonacci, 7540113804746346429.
INDEX=0
M... |
50fe234c9f938dfa19d2820ac4a9107f583053b5 | 998 | FILTER_QUERY=""
PERMISSIONS_QUERY=""
PERMISSION="{\"P1.FromPort\":FromPort||'',\"P2.ToPort\":ToPort||'',\"P3.IpProtocol\":IpProtocol||'',\"P4.Ipv4Ranges\":IpRanges[].CidrIp, \"P5.Ipv6Ranges\":Ipv6Ranges[].CidrIp,\"P6.UserIdGroupPairs\":UserIdGroupPairs}"
while getopts "p" opt;
do
case "$opt" in
p) PERMISSIO... |
79dfa2160d74590d1abe58af87bcf1034668d4b3 | 251 | NODE_ENV = development
#Devops constants
HOST = 'localhost'
API_PORT = 3000
#jwt token details
TOKEN_ISSUER = 'ambika.amruta.pani'
TOKEN_AUDIENCE = 'ambika.amruta.pani'
TOKEN_SECRET = "%'njEJ|7Mett[|/YLsfRTb_QAqe.J("
# 60 days
TOKEN_EXPIRY = 5184000 |
218917ce5d2f9e07e28242aec7b9234987dde895 | 2,240 | #!/bin/bash -eu
# Helper function to reliably create a new namespace
function newns {
nsname=$1
ip netns del $nsname &> /dev/null || true
ip netns add $nsname
ip netns exec $nsname ip link set lo up
}
# Create a new link between namespaces
function newlink {
wanname=${1:-}
lanname=${2:-}
subnet=${3:-192.168.1... |
0c3a6ea7b500f05cfa5a858b0b206257eac40e6f | 123 | #!/bin/bash -xe
aws cloudformation deploy --template-file upload.template --stack-name ex4 --capabilities CAPABILITY_IAM
|
269ba945fdd2da7c292e00549209a02536ae3dea | 789 | #!/bin/bash
: ${PYTHON_COMMAND_FILE:?"Please set the PYTHON_COMMAND_FILE variable!"}
: ${PYTHON_COMMAND_FILE_FOLDER:?"Please set the PYTHON_COMMAND_FILE_FOLDER variable!"}
: ${PYTHON_COMMAND_FILE_PARAMS:?"Please set the PYTHON_COMMAND_FILE_PARAMS variable!"}
: ${PYTHON_COMMAND_PID_FILENAME:?"Please set the PYTHON_COMM... |
3ac04498fbd281facb58bd3c9e8740c76593705f | 126 | #!/bin/bash
set -euo pipefail
DATE=$(date +"%Y-%m-%d_%H%M%S")
raspistill -o "/root/photos/image_$DATE.jpg" -hf -vf -n -t 30
|
356ff0e83c32ed6a53927dc048eb3092b2679e2f | 755 | #!/usr/bin/env bash
outfile="lab1_output.text"
#question_template: "command | tee -a $outfile"
questions=(
#Q_1_a,c
{'ping -c 4','traceroute -P udp','traceroute -P icmp'}" www."{'esa.int','grnet.gr','stanford.edu','wikipedia.org','facebook.com'}" | tee -a $outfile"
#Q_1_b
"ping -c 4 -s "{'64','1400'}" www."{'esa.in... |
2bcec7549bb0473bf0662a17c66e9415c6095cb9 | 612 | #! /bin/bash
sdev --cores-4
ml load python/3.6.1
#import software modules
ml load biology
ml load fsl/5.0.10
ml load afni/18.2.04
ml load freesurfer/6.0.0
ml load viz
ml load graphviz
#install packages locally
# pip3 install nipype --user
# pip3 install nipy --user #no module
# pip3 install sklearn --user
# pip3 ins... |
68e22f34aee74ecd4f1e80d50ba2a9c7c0bdc8cc | 391 | TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
nvcc -std=c++11 -c -o cuda_op_kernel.cu.o cuda_op_kernel.cu.cc \
-I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC --expt-relaxed-constexpr
g++ -std=c++11 -shared -o cuda_op_kernel.so cuda_op_kernel.cc \
cuda_op_kernel.cu.o -I $TF_INC -... |
28b550a95abd02151307eeb8ef648f943770aa0d | 125 | #!/bin/bash
data_dir="/proj/BigLearning/jinlianw/ml-10M100K"
data=${data_dir}/ratings.csv
./ooc_sgd_mf.py ${data} 100 1 tmp
|
265f56ab71be58f8bf6e71c2c375e2f46f5ea236 | 146 | tar xfz complete.csv.tar.gz
# run scale code to generate the json file in current directory
scala -cp scala-csv_2.12-1.3.5.jar csv_to_json.scala
|
4273b28cdb070d01bf243399d0d3ac0b6513c712 | 2,958 | #!/bin/zsh -l
###----------------------------------------------------------------------------#
### Copy, read and write for new gauss-bump topography
###----------------------------------------------------------------------------#
#scp -r /Users/Schmulius/Desktop/UniMaster/Thesis/Clemens_Grid_Bump/BED_Bump400.xyz Cl... |
941293a0eb2ee8cd6d2cf130c61f98ef64a654e3 | 25 | #!/bin/sh
expr 12 + 13
|
c93e122d3cdec4a012d0c65735d908f6f11487f5 | 306 | SECRET_KEY='22+sg%5+##a=^-$o58(1q9(^r@cjl-p0r3m^x9@-#i=1qcs2y2'
DEBUG=1
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
SITE_ID=1
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=network
SQL_USER=network
SQL_PASSWORD=network
SQL_HOST=db
SQL_PORT=5432
DATABASE=postgres
REDIS_URL=redis://redis:6379/0
|
a23cb09eda39adb362b16127599b32111799e84a | 556 | #!/bin/bash
if [ "$#" != "2" ]
then
echo "Invalid Argument Count!"
exit
fi
FILE="$1"
EXTRACTED_DIR="data/extracted"
if [ ! -d $EXTRACTED_DIR ]
then
mkdir $EXTRACTED_DIR
fi
SOURCE_DIR="$EXTRACTED_DIR/$2"
# Remove existing files, if applicable
if [ -d $SOURCE_DIR ]
then
rm -r $SOURCE_DIR
fi
mkdir $SOURCE_DIR
e... |
2c45f5e722772d7ad217118e5f8abc71a31c076a | 165 | #title Circular allocator for dispatcher (producer/consumer allocator)
g++ -std=c++11 -O2 -Wall -pedantic -pthread -lboost_system -lboost_thread main.cpp && ./a.out |
3f89d565633a79205769192697badd14c9b74b1e | 505 | #!/bin/bash -x
arr=()
for i in `seq 0 9`
do
randomNo=$((100+$RANDOM%999))
arr[i]=$randomNo
done
first=${arr[0]}
min=$first
minTwo=$first
max=$first
maxTwo=$first
for j in ${arr[@]}
do
if [ $j -lt $min ]
then
minTwo=$min
min=$j
elif [ $j -lt $minTwo -a $j -ne $min ]
then
minTwo=$j
fi
if [ $j -gt $max ]
... |
379aebcf940e1a862ac30579b465e8e50b71ae2e | 369 | #!/bin/sh
ipset -! -N music hash:ip
uclient-fetch -q -T 10 http://httpdns.n.netease.com/httpdns/v2/d?domain=music.163.com,interface.music.163.com,interface3.music.163.com,apm.music.163.com,apm3.music.163.com,clientlog.music.163.com,clientlog3.music.163.com -O- | grep -Eo '[0-9]+?\.[0-9]+?\.[0-9]+?\.[0-9]+?' | sort | u... |
de02f21ba66566c6088e62b6582999bc94fbd871 | 2,010 | #!/bin/bash
SID=$1
TBS=$2
if [ -z "$SID" ]
then
echo "Inserir SID do banco"
exit 2
elif [ -z "$TBS" ]
then
echo "Inserir o nome da tablespace"
exit 2
else
USO=(`ca... |
34e924e34f8cd2d51ce470bc9c87faf9a81cb1d1 | 828 | #!/bin/bash
set -euo pipefail
mkdir /data/lnd
echo "$TLS_CERT" > /data/lnd/tls.cert
echo "Reference:"
echo "https://api.lightning.community/#lnd-rest-api-reference"
echo ""
echo "Example - Check channels:"
echo 'curl -w "\n" -sSL -X GET --cacert /data/lnd/tls.cert -H "Grpc-Metadata-macaroon: $READ_MAC" https://$LND_... |
512f6818809a357d3e418de83dc800a07245f59c | 128 | #!/bin/bash
# Run wfa_ca at the DUT PC
export WFA_ENV_AGENT_IPADDR=127.0.0.1
export WFA_ENV_AGENT_PORT=8000
./wfa_ca eth0 9000
|
83db2b5a8a40d45a7943259fbba42f4243c5f381 | 62 | go build
go install
go test -cpu=4 -bench=. gopl.io/ch02/ex25
|
20006ff77dc19a7e24a53cbeaa805280c5ae794e | 557 | echo -e "\n--- Installing NodeJS & NPM ---\n"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash > /dev/null 2>&1
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
source ~/.bashrc > /dev/null 2>&1
nvm install node
nvm alias default node
nvm... |
05fde4d1e6c5bed4d9777b8b495db684676871ce | 3,945 | #!/bin/bash
# Script that sets up and submits a branch run from a CAM5 slab ocean aquaplanet control
# run following the TRACMIP protocol (Voigt et al. 2016 JAMES) on FRAM cluster. The som forcing
# file is modified from the control. The model version is CESM 2.1.0.
# define inputs
expname="QSC5.TRACMIP.NH01.Lk1.Q0.... |
4b52bc383a6575c5d6cf8b3f1bbd571915f2fbab | 128 | version https://git-lfs.github.com/spec/v1
oid sha256:07d1ea15f67aa1d9b24be8c5ac8fd01b24f9ea0daec6b9c5119853bcf78ee49c
size 865
|
4d5c2f5d7201ddbf08433abe392dcb02ed98b9b7 | 575 | #!/bin/bash
echo Geef username:
read name;
if [ -z "$name" ]
then
name=$(whoami)
fi
echo Welkom $name!
index=0
while [ "$index" -eq 0 ]
do
echo Geef wachtwoord "(min 8 characters):"
read password
if [ "${#password}" -gt 7 ]
then
echo Confirm password:
read newPassword
if [ "$newPassword" = "$password" ]
... |
5f150f1fad60c7c72567328afa2ce5daed0056e6 | 61 | #!/bin/bash
git add .
git commit -m $1
git push origin dev
|
3b497b366f3cbf1e95006809bd32a82f55f9ac4b | 69 | #!/bin/bash
( cd webapp ; ng build --prod )
gcloud app deploy webapp |
e189dd151adff10e8ae103f7b5ea7a5aa3ff5007 | 492 | #!/bin/sh
#
# Build the Wordpress image.
#
set -e
# Avoid memory limits with large database imports.
echo 'memory_limit = 512M' >> /usr/local/etc/php/php.ini
# Avoid memory limits with large database imports.
echo 'upload_max_filesize = 25M' >> /usr/local/etc/php/php.ini
echo 'post_max_size = 25M' >> /usr/local/etc/p... |
fc8c1118da56a01bbb7b30598fa81ad4c12377e5 | 232 | #! /bin/sh
# .using xrandr set HDMI properly -> under/overscan
#sh ~/initxrandr.sh
# turn laptop monitor off
#xrandr --output LVDS --off --output HDMI-0 --auto
#set keyboard slow
xset r rate 1000 5
setxkbmap -option caps:none
|
be03fc1af7ee969fbdc366f557f8736d97a85554 | 450 | #!/bin/bash
#current directory
dir="$(pwd)"
#parent directory
parentdir="$(dirname "$dir")"
#make flags
makeArgs=$1
#sets proper path based on if invoked from make or directly
if [ "$makeArgs" != "TRUE" ]; then
cd $parentdir
fi
# checks if golint exists or not , if not installs it
wq=$(which golint)
if [ "$... |
3d1879de9f6c3e94354fd7ab9b8f1aa6e7730455 | 387 | echo $1
rootdirectory="$PWD"
# ---------------------------------
dirs="external/wpa_supplicant_8 bionic frameworks/av frameworks/native system/core system/netd packages/apps/Settings"
for dir in $dirs ; do
cd $rootdirectory
echo "Reverting $dir patches..."
repo sync $dir
echo " "
done
# -------------------------... |
97eeed2dbab4c1c50810d3c479ceb5a741afbe8f | 345 | wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
tar -xvf go1.12.6.linux-amd64.tar.gz
mv go /usr/local
rm go1.12.6.linux-amd64.tar.gz
echo 'export GOROOT="/usr/local/go"' >> /home/vagrant/.bashrc
echo 'export GOPATH="$HOME/project/"' >> /home/vagrant/.bashrc
echo 'export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"' ... |
e846e60373966edfdb8d8fa2ca5d6198aafb24cf | 793 | #! /usr/bin/env bash
# This script force-restarts the server and moves old missions out of the way
echo "${TS} - Starting job: server-restart"
source "job-config.sh"
cd "~"
# Raise maintenance flag and kill the server
touch $MAINTENANCE_FILE
server_stop($1)
age_threshold=$(date -d 'now - $MISSION_MAX_AGE_DAYS days... |
442c1e63fa672ded46e6933fe21d25b1f11e7b97 | 283 | DOTDIR="$(dirname $(readlink $HOME/.zshenv))"
export ZDOTDIR="$DOTDIR/zsh"
export TMUXDIR="$DOTDIR/tmux"
export BLOCKSIZE=K
export PAGER=less
export VISUAL=vi
# If we really need EDITOR, just give up
export EDITOR="echo \"Sad panda... you're screwed!\"; false"
export DISPLAY=:0.0
|
5b9753490cc02c0acf814ba4bc255cf6599b215e | 311 | #!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
python3 get_tainan_gov.py
python3 get_weather_data.py
python3 dengue_each_day.py
python3 parse_dengue_data.py 2015/10/21
python3 parse_drug_data.py
python3 get_tainan_gov_v2.py
python3 dengue_each_day_v2.py
python3 parse_dengue_data_v2.py 2015/10/21
|
bfdaa6e90cef1d5a0a79e96e57cb458ce6ee86be | 393 | #!/bin/bash
#
# Menu for transmission daemon commands
#
main()
{
local choice="$(rofiprompt --text "Choose an option" \
--options "Start,Stop")"
if [[ "${choice}" = "Start" ]]; then
transmission --start
elif [[ "${choice}" = "Stop" ]]; then
transmission --stop
fi
... |
0b012d28dbb79475c812c0cf7dcddb46974f4118 | 286 | echo "Starting Test Server"
echo ""
cd ../mochiweb/strategoserver/
./start-test.sh
cd ../
cd ../test/
sleep 2
echo "Running Tests"
echo ""
while true
do
python2.6 tests.py
done
echo ""
echo "Stopping Test Server"
echo ""
cd ../mochiweb/strategoserver/
./stop-test.sh
cd ../
cd ../test/
|
6acca940ec108506f20c34f5860c92a1079bfbf4 | 94 | PORT=8080
API_BASE_URI=https://frost.met.no
API_CLIENT_ID=9e0e4f43-d6da-4572-8dd9-f6bad9d545c0 |
b679d41d588052e327a94a400a1d742e51053503 | 3,378 | #!/usr/bin/env bash
. lib.bash || exit
. libks.bash || exit
# create file list from directory
list_create() {
local dir="$1"
find "$dir" -printf '%Y %m ./%P\n'
}
# remove files according to list
list_remove() {
local list="$1"
local ftype mode path
tac "$list" | while read -r ftype mode path; do
path="$PREFI... |
f3e0da1e18c00c594fe047c95e9ee36babae23e5 | 147 | #!/bin/bash
if test ! -e a_test_file; then
echo test file had not existed
touch a_test_file
else
echo test file existed
rm a_test_file
fi
|
d5394b4873db56d7c8dec03b41087c4e076390c8 | 324 | #!/bin/bash
#shebang
echo Hello!
read -p "Hi, enter your name " name
read -p "Enter name 1 " name2
echo "$name2" >> girls.txt
read -p "Enter name 2 " name3
echo "$name3" >> girls.txt
read -p "Enter name 3 " name4
echo "$name4" >> girls.txt
sleep 2
clear
echo "Please wait...."
sleep 2
cat girls.txt
echo "Goodbye $n... |
bb913fb99fe564004311460887736b04342ecfdf | 1,517 | #!/bin/bash
#
# orange-box-add-physical-nodes - add all local nodes in the micro-cluster
# Copyright (C) 2014 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@canonical.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... |
16b399f542f707322774a1d416966a2bc100d92b | 65 | cp ../publickeys/authorized_keys ~/.ssh
sudo service ssh restart
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.