blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c21ddd622ca49b0fb9bead0d80bf6109962da3d8 | 699 | #!/bin/sh
# Push wiki
cd ~/me && git add -A && git commit -m "Daily update" && git push
# Clean up downloads folder.
find ~/Downloads/* -maxdepth 1 -mtime +1 -exec rm -rf {} \;
# rm -f ~/Downloads/BeFocused.csv
# Fetch the BeFocused data
# open -n /Users/andrewszot/Library/Mobile\ Documents/com\~apple\~Automator/Doc... |
3448f08cdfbc0c9f0b8e3f62c327c25c7d522391 | 656 | git clone https://github.com/open-telemetry/opentelemetry-python.git
./opentelemetry-python/scripts/build.sh
DISTDIR=opentelemetry-python/dist
pip install $DISTDIR/opentelemetry-api-0.11.dev0.tar.gz $DISTDIR/opentelemetry-sdk-0.11.dev0.tar.gz $DISTDIR/opentelemetry-instrumentation-0.11.dev0.tar.gz $DISTDIR/opentelemetr... |
9f1a07efb0bb2aad9e2b9522a4928e32de7bb203 | 278 | #!/bin/sh
VERSION="latest"
(cd doc; make)
rm -rf /tmp/index.html
mv doc/index.html /tmp/index.html;
git checkout gh-pages;
rm -rf ./$VERSION
mkdir -p ./$VERSION/
mv -fv /tmp/index.html ./$VERSION/
git add --all ./$VERSION/index.html
git commit -a -m "Update ${VERSION} doc"
|
37ec8783dcc5462409fab914056d67d563ccd570 | 417 | #!/usr/bin/env bash
<<END
### cheatsheet
$0 migrate apply # migrate
$0 migrate apply --down 1 # revert
$0 init . # run after removing all files, for a new start
###
END
set -ue
cd $(dirname "$0")
export HASURA_GRAPHQL_ENDPOINT='http://127.0.0.1:61080'
export HASURA_GRA... |
59a8feff9eccc0f36e4f15ed1a7cde96d87e9f37 | 2,211 | #!/bin/bash
set -eu
target_dir="${1:-.}"
days=7300
rsa_bits=2048
org="httplib2-test"
server_cn="localhost"
subj_prefix="/C=ZZ/ST=./L=./O=$org/OU=."
main() {
cd "$target_dir"
gen
check
}
check() {
echo "- check keys" >&2
openssl rsa -in ca.key -check -noout
openssl rsa -in client.key -check -noout
openssl rsa ... |
927a0cfd75ba1da8970f35d80152329b507276e0 | 2,032 | #!/bin/bash
### BEGIN INIT INFO
# Provides: xvfb
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts xvfb
# Description: Starts X Virtual Framebuffer server
### END INIT INFO
DESC="Starts xvfb"
DAEMON=/usr/bin/Xvfb
NAME=xvfb
DA... |
bc67d805f5edbd7b34f8730aba98d20f9293e1cc | 569 | #!/usr/bin/env bash
go install src/hackathon.2016/sharingservice/datastore/DataStorageService.go
docker build -f docker/DataStorageService_Dockerfile -t gcr.io/$PROJECT_ID/data_storage_service:v1 .
gcloud docker -- push gcr.io/$PROJECT_ID/data_storage_service:v1
gcloud config set compute/zone us-central1-c
gcloud ... |
e5663f1d21d5d9ffcc45ed53cbad15e95a658838 | 83 | REACT_APP_MM_KEY=a80cb91d29e5495321cbb3e782b2ae15
Feel free to use the same key :) |
ec07ae5a8b9ce7badbbddc55bfd9767b8d6177e9 | 4,326 |
# Make sure bash can find .inputrc
test -n "$INPUTRC" || export INPUTRC="~/.inputrc"
# Collect some info about the local system
export HOST="$($uname -n)"
export OS="$($uname -s)"
test -n "$UNAME" || export UNAME="$($uname)"
# Tunnel CVS via SSH
export CVS_RSH="ssh"
export IRCNAME="dan"
# Erase duplicate entries f... |
7e291cc27ae70147de84669ebbff560d8f554e02 | 198 | #!/bin/bash
$PYTHON setup.py install
# NeXpy uses:
# $PYTHON setup.py install --single-version-externally-managed --record installed_files.txt
# Add more build steps here, if they are necessary.
|
cd0272884ae041bc70e0d17ffee1536e6e1e8433 | 96 | PORT=3000
PGHOST=localhost
PGUSER=cocktails_app
PGDATABASE=cocktails
PGPASSWORD=1234
PGPORT=5432 |
02419c343539ebb889bd828fc34fe1d36079be06 | 1,124 | #!/bin/bash
NAME="copa_do_mundo" # Name of the application
DJANGODIR=/webapps/copa_do_mundo/app/ # Django project directory
USER=copa # the user to run as
GROUP=webapps # the group to run as
NUM_WORK... |
7ea909ea0f2de4c40fb809e22052a4b499a9afb9 | 321 | #!/usr/bin/env bash
[[ -d protodef ]] || mkdir protodef
(cd protodef;
curl -sSL "https://github.com/ChromeDevTools/devtools-protocol/raw/master/json/browser_protocol.json" >js_protocol.json
curl -sSL "https://github.com/ChromeDevTools/devtools-protocol/raw/master/json/js_protocol.json" >browser_protocol.json
)... |
d7e62ed20c295c73feebc076039a01d884e5054d | 147 | #!/bin/sh
while true
do
DATE=$(date +"%Y%m%d")
./runtest.sh > /logs/"$DATE".log
sleep 125s
./smart.sh >> /logs/"$DATE".log
sleep 86400s
done
|
c79cd32841b02d86621779371d51c4187bbe7aff | 77 | cargo +stable fmt
cargo build --all
cd examples
cargo build --bin debug
cd .. |
f8f455f7d5b217687a5cdd9b12a466423cdd5a40 | 119 | tensorflow/tensorflow/contrib/makefile/download_dependencies.sh
tensorflow/tensorflow/contrib/makefile/build_all_ios.sh |
c918390240012aa9af2ae4ededd3130e2a8bcdd6 | 257 | #!/bin/bash
echo "Names: multi_$1_ldim$2"
echo "VAE type is: $1"
echo "Latent dim is: $2"
echo "# of epochs is: $3"
for NUM in `seq 0 1 9`
do
python train_multi_vae.py --name multi_$1_ldim$2 --index $NUM --vae_type=$1 --latent_dim=$2 --n_epochs=$3
done
|
199afd4436afa9c1be6d3bba6fd53b73d12b1c9c | 256 | #!/bin/bash
root=~/workspace/tf_flexible_detector
index=$1
python ../py/export_inference_graph.py \
--pipeline_config_path=$root/ssd_mobilenet_v1.config \
--trained_checkpoint_prefix=$root/train/model.ckpt-$1 \
--output_directory=$root/output |
b992e17f81539fe7e39c9c4761e9cfdb9a791c2b | 156 | #!/bin/bash
python parser.py -m -i tests/rot13.c
python parser.py -m -i tests/aes.c
python parser.py -m -i tests/hmac.c
python parser.py -m -i tests/rsa.c
|
78127548860c856e766173ffd712350de18b107c | 28 | # vim-gnome
# libnotify-bin
|
ad670658607f367ac2b8b70a6dbeedea77d48aa5 | 2,633 | #!/usr/bin/env bash
# Copyright (c) 2013-2016 Tuomo Tanskanen <tuomo@tanskanen.org>
# Usage: Copy 'gitlab.rb.example' as 'gitlab.rb', then 'vagrant up'.
set -ex
# these are normally passed via Vagrantfile to environment
# but if you run this on bare metal they need to be reset
GITLAB_HOSTNAME=${GITLAB_HOSTNAME:-127.... |
936e512dde8901ff110a795bde92ba0267f0e3ea | 81 | screen -dmS website bash -c 'echo waiting 3 senconds...; sleep 3; exec node main' |
c07485ca13a84ec6f0b8c76d4bf6d864f1f236b8 | 196 | #!/bin/bash
export LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"
export CFLAGS="-I$PREFIX/include"
export LDFLAGS="-L$PREFIX/lib"
export CPATH=${PREFIX}/include
make
cp tadaridaD ${PREFIX}/bin
|
8f1a6611850a2ede6a4bb87820c4be40f8289793 | 54 | API_KEY = "RGAPI-627f53b1-5772-4e5f-9801-5cf3f97d9ddb" |
74fd5eb5f7c4b0166fcf43900eef352d9f07469c | 305 | #!/bin/bash
NOW=$(date +%s000)
curl -s -k \
-H "Hawkular-Tenant: ${HAWKULAR_TENANT}" \
-H "Authorization: Bearer ${HAWKULAR_TOKEN}" \
-H "Content-Type: application/json" \
-X POST \
-d "[{'timestamp': ${NOW}, 'value': 7}]" \
https://${HAWKULAR_HOST}/hawkular/metrics/gauges/data_x/raw
|
d49234df6c7bc68abf61f154a85729570256f135 | 63 | ENV=dev
FLASK_ENV=development
APP_SECRET_KEY=patron_secret_key
|
4ddd18dc824f792b1b8b0651b6f0a8e835f402a3 | 11,035 | #!/usr/bin/env bash
# -*- coding: utf-8 -*-
# -*- mode: shell -*-
# (c) Copyright 2014 WibiData, Inc.
#
# See the NOTICE file distributed with this work for additional
# information regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in ... |
05f6135c42a39bec68582eade7714056aaf45a96 | 264 | curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query
makepkg -si
cd ..
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
tar zxvf yaourt.tar.gz
cd yaourt
makepkg -si
cd ..
|
0e89d5cdcc535f205e1dcd0f85f8f4350d5aefb6 | 405 | #!/usr/bin/env bash
file=$(mktemp)
loadc_op=$(echo -e '\x01')
leq_op=$(echo -e '\x08')
echo -e \
"$loadc_op"\
"\x09\x00\x00\x00"\
"\x00\x00\x00\x00"\
"$loadc_op"\
"\x0A\x00\x00\x00"\
"\x00\x00\x00\x00"\
"$leq_op"\
"\x00\x00\x00\x00"\
"\x00\x00\x00\x00"\
"\x00" > "$file"
./build/fm "$file"
result="$?"
if [[ "$result... |
eb3d4a992864dd9d759356d7e07dfe8826c0dfa1 | 128 | PUERTO=8080
BASEDATOS=mongodb+srv://migueld200:lunatamayo@cluster0.q0qe4.mongodb.net/myFirstDatabase?retryWrites=true&w=majority |
0cff8eb58692f20b938d8b642ec0e0fb8469c5d2 | 2,301 | #!/usr/bin/env sh
## Copyright (C) 2020 Ulises Jeremias Cornejo Fandos
## Licensed under MIT
##
## @script.name [OPTION] ARGUMENTS...
##
## Options:
## -h, --help Help.
## -b, --build Build docker image
##
## --tag=TAG_NAME
##... |
bd835bffeeadddd36314dcd42a93c11cfc074596 | 157 | #!/bin/bash
echo "Upgrading Pushy"
composer upgrade
cd src/wp-content/plugins/pushy
echo "Upgrading Pushy Dependencies"
composer upgrade
cd ../../../../ |
a9767a4b7202d992b8ad2e413a4d1f08d0a0b763 | 3,456 | #!/bin/bash
basedir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. $basedir/utils.sh
# Make sure we kill the entire process tree when exiting
trap 'kill 0' SIGINT SIGTERM
function run_test_retry(){
local tests_file=$1
local tmp_log_file=$2
local i=0
local exit_code=0
pushd . > /dev/null
... |
b6bc3163fadc73d52a8d91670905dab51fc63cd7 | 1,467 | #-------------------------------------------------------------------------------
#
# intellij/functions.zsh
# Command-line functions for IntelliJ
#
#-------------------------------------------------------------------------------
# Launch IntelliJ IDEA
# https://gist.github.com/chrisdarroch/7018927
function idea {
lo... |
910e79548bb4a55be0ef86214e3f211f224ca834 | 227 | #!/bin/sh
cd "$(dirname "$0")"
../tools/png2bin bitmaps/parrot.png ../ASSETS/BITMAPS/PARROT.BIN -dither
../tools/png2bin bitmaps/font.png ../ASSETS/BITMAPS/FONT.BIN
../tools/png2bin bitmaps/goat.png ../ASSETS/BITMAPS/GOAT.BIN
|
fbd56a34c77f2b48b4b12c75e22f16f68851f868 | 331 | #!/bin/sh
SERVER=cloud.shortsands.com
export COPYFILE_DISABLE=true # exclude Mac OSX resource forks (._*)
tar -cvf server.tar --exclude='.DS_Store' www
scp -P7022 server.tar root@$SERVER:/root/Server
ssh root@$SERVER -p7022 "cd /root/Server; tar -xvf server.tar"
echo "Login to server and tail /root/Server/www/se... |
b92bbe9b151bd02ab8c520f3fe6a13f74bfb4cf0 | 1,006 | #!/bin/bash
# the default node number is 3
N=${1:-3}
# start hadoop master container
# containers running on different networks (--net) cannot be linked properly
# be careful with the links (they must refer to existing containers), docker does error
docker rm -f hadoop-master &> /dev/null
echo "start hadoop-master c... |
8b5cd0147fd1420f642dfd04abce319eb36ec298 | 320 | #! /bin/bash
# Exemplos do diálogo --warningcontinuecancel
# Para funcionar é necessário antes atribuir um
#+ valor à variável $pid
kdialog --title "Exemplo de warningcontinuecancel" \
--warningcontinuecancel "O programa com PID = $pid está demorando muito para terminar.
Deseja encerrá-lo?" && kill $pid
|
6ef8a8c47ae437da2e02a7553dce19fcbe98358e | 41 | VUE_APP_API_URL="http://api.lvh.me:3000/" |
c1ff33dee6dfeca79a8bf3fe67e646859cd9bcc7 | 286 | #!/usr/bin/env bash
echo "Creating required directories"
mkdir dataset -p
mkdir dataset/features -p
echo "Installing all Python packages for the project"
sudo pip3 install -r requirements.txt
echo "Installing the English model for the Spacy library"
sudo python3 -m spacy download en |
0a8e00affc3be431db96fa9c7473c37696ae4d05 | 124 | gcc -c -fPIC examples.c
ar rcs libexamples.a examples.o
mkdir lib
cp *.o lib
cp *.a lib
python setup.py build_ext --inplace
|
3577beefcc0c2d97bdb37beeba82e4703d82192d | 31 | #!/bin/bash
make use_LINUX=yes
|
e455b19962da597f1b73e60d3d15982617e4085f | 462 | #!/bin/bash
#BATCH --job-name=str0
#SBATCH --get-user-env
#SBATCH --output=./_scheduler-stdout0.txt
#SBATCH --error=./_scheduler-stderr0.txt
#SBATCH --nodes=3
#SBATCH --ntasks 28
#SBATCH --time=25:00:00
set +e
source /etc/bashrc
module load intel intel-mkl intel-mpi quantum-espresso/6.4-mpi
srun /ssoft/spack/corna... |
5fd7afe6f11ea90d66af77fa97aa255833a8ef7a | 1,588 | #!/usr/bin/bash
# Defining the shell path and global variables
SHELL_PATH=$(readlink -f $0 | xargs dirname)
source ${SHELL_PATH}/scripts/global.sh
# Please make changes to the drive based on your hardware configuration
info "Formatting the drivers..."
mkfs.vfat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
#mkswap /dev/sda3
#sw... |
a9585071c45f5a88ab363cfa6a072c0463673e61 | 78 | #!/bin/bash
echo developer | sudo -S /usr/local/bin/wrapdocker.sh
exec "$@"
|
63a53005b43aae8953a2f3c34650e8e1d848572b | 318 | #!/bin/bash
KAFKA_HOME=/opt/kafka
ZOOKEEPER=napslxcdh01:2181
USAGE="Usage: $0 <kafkatopic>"
if [ $# -lt 1 ] ; then
echo $USAGE >&2
exit -1
fi
TOPIC=$1
SCRIPTDIR=$(cd $(dirname $0) && pwd -P)
cd $KAFKA_HOME
bin/kafka-topics.sh --create --zookeeper $ZOOKEEPER --replication-factor 1 --partitions 1 --topic $TOPIC
|
adb416b0e555f01ed5ab7075d8f2717cb751a66c | 1,336 | #!/bin/sh
#
# All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
#
case "$1" in
"--help"|"-h"|"-?")
echo "Syntax: $0 [cacheKeyValuePrint|cacheKeysPrint|cacheSize] [arguments.....]"
echo "cacheKeyValuePrint - Prints the Keys and values (only string or list/string) for a g... |
5b8d2125533dc0da3fd0d16ccb5847f2d882b344 | 1,463 | #!/bin/sh
# -e: fail if any of the subsequent commands fail
# -x: trace each executed command via debug log
set -e -x
# Usage:
# ./osmo-layer1-headers.sh sysmo superfemto_v5.1
# where 'sysmo' is BTS type and 'superfemto_v5.1' is version specifier (tag or branch for git reset)
# 2nd parameter is optional and defaults ... |
49005b5122d8520eea1b7247383f8c0d295837f0 | 69 | #!/bin/bash
exec supervisord -n -c /etc/supervisor/supervisord.conf
|
d2235fb1ee00a8c835d64c3f55a105e2631dd043 | 113 | #!/bin/bash
python3 -m venv .skeleton-pyenv
. .pyenv/bin/activate
python -m pip install -r pip.requirements.txt
|
ff15c59389a2239cb94242a8286115a5503b6dbc | 827 | # Maintainer: Nathan Isom <Nahanisom27 at gmail [dot] com >
# derived from st-git aur package.
_pkgname=xst
pkgname=${_pkgname}-git
pkgver=20160407.74c6832
pkgrel=1
pkgdesc='st fork'
url='https://github.com/neeasade/xst'
arch=('i686' 'x86_64')
license=('MIT')
depends=('libxft')
makedepends=('ncurses' 'libxext' 'git')
... |
71791e608b6f5761c501fbedc990249a56691ed2 | 80 | #!/bin/bash
mvn clean install
docker build -t usercard:beta .
docker-compose up |
1d869bbd83c4028a453056a570f85831444baf87 | 47 | #!/bin/sh
cat popular-names.txt | head -n "$1"
|
43fe14aedd348dccbaa38066b53ee09f2694c0b9 | 186 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
docker build \
-t mrebscher/derby:latest \
-t mrebscher/derby:10.12.1.1 \
-t mrebscher/derbyt:10 \
.
|
ba3711fe3b58d6aa9b4c3e1a0ede490547362dd7 | 152 | #!/bin/sh -eux
ub_install
ln -s ../aqualung/icon_48.png "$UB_INSTALLDIR"/usr/share/pixmaps/aqualung.png
rm -rf "$UB_INSTALLDIR"/usr/share/doc/aqualung
|
eeb0ea039e0ef7dc513435b7670a5633ea7949e9 | 2,494 | #!/bin/sh
#
# Title: Auto-Update & Upload LetsEncrypt Certs to KEMP LoadMaster
# Guide/Source: https://colinwilson.uk/2017/06/19/auto-update-ssl-certificates-on-kemp-loadmaster-via-pfsense-lets-encrypt/
# Created: 12/06/2017
# Update: 05/12/2018
# Author: Colin Wilson [https://github.com/colinwilson]
# Vendor or Softw... |
74792d78c64b1b9fb8e24b5ab7ca74bced47b08f | 221 | #! /bin/bash
echo "Введите год"
read year
if [[ $year%4 -eq 0 ]] && [[ $year%100 -ne 0 ]] || [[ $year%400 -eq 0 ]]
then
echo "Это високосный год"
else
echo "Это обычный год"
fi
|
b5b7dde20274d7043a1d64df9916f04c9d9563c0 | 69 | #!/bin/bash
./cactusADM benchADM.par > benchADM.out 2>> benchADM.err
|
d0781587d31d836b43d28f19c1b4782baa90407c | 701 | #!/bin/bash
function remove_containers {
docker kill $(docker ps -q)
docker rm $(docker ps -aq)
}
function remove_data_volumes {
docker volume rm $(docker volume ls -q)
}
while true; do
read -p "Do you wish to remove docker containers?" yn
case $yn in
[Yy]* ) echo "Removing containers"; remove_contai... |
c0c2fc5829da9fc037781da5a08dd364c55cd569 | 211 | #!/bin/bash
user="cinder"
conf="/etc/ceph/ceph.conf"
pool="volumes"
volume_id=$1
if [ -z $1 ];
then
echo "Usage: $1 <volume_id>"
exit
fi
rbd --user $user --conf $conf snap ls $pool/"volume-$volume_id"
|
a84d2362f65bf77b062c3867a365e4dd6c16081b | 166 | DATABASE_URL = postgres://nfddpobtrozxsw:a5cc5ba6f90a858b2e76b8c9460ee02cfab685ade0172e89d59bcfba23e9b246@ec2-54-167-168-52.compute-1.amazonaws.com:5432/dfon9sebp9kdn |
9af592d55d7562a06b34c316c0da986a17b7f88f | 1,627 | #!/bin/bash
source "${HCPPIPEDIR}/global/scripts/debug.shlib" "$@" # Debugging functions; also sources log.shlib
#quick script to regenerate inflated 59k surfaces to match original HCP 32k
#Example call:
# . SetUpHCPPipeline.sh
# StudyFolder=/data/Phase2_7T
# Subject=102311
# T1wFolder="$StudyFolder"/"$Subject"/T1w... |
b1b0493be5891e88fa6189ecf19d08c2a93580d7 | 60 | #/bin/bash
killall stest.sh
killall srmtool
killall ffmpeg
|
5078b528e6e931206cf00e4871a408446f150dfb | 205 | #!/bin/sh
pwd
ls
cd /var/lib/jenkins/workspace/check.io/checkboxio/
ls
rm -rf main.retry
pwd
sudo eval `ssh-agent -s`
sudo ssh-add do
ansible all -m ping -i inventory
ansible-playbook main.yml -i inventory |
b40f25cd58a4900cef8d29a50868f33752c41fc0 | 89 | . vars/removes.sh
for element in ${removes[@]}
do
rm -rf public_html__new/$element
done |
81aa6df72cde9ccd285ca959cf25855f04864e86 | 97 | echo StrictHostKeyChecking no > ~/.ssh/config
echo UserKnownHostsFile /dev/null >> ~/.ssh/config |
d1e6367337c9e93a6d7f87854c4393401add9c7c | 640 | mysql ${DBPRMS} < $1 > temp.txt
# cat temp.txt;
# echo "-------------";
sed -i 's/"\[\\\\/\[/g; s/\\\\", \\\\"/", "/g; s/\\\\"\]"/"\]/g; s/}$/},/g;' temp.txt
sed -i -E -e 's/"([0-9]+)"/\1/g; s/"\|([^"]+)\|"/"\1"/g;' temp.txt;
sed -i 's/\\\\"/,/g;' temp.txt
sed -i 's/VÃÂ.a/Vía a/g; s/ã./á/g;' temp.txt
sed -i 's/ó/ó/g... |
800cd781c8f273f88ee40be6ccb53cf95e344cc8 | 548 | #!/bin/bash
####################################################################
# set test options for specific environment (ordt assign is required, execs con be left blank to disable)
ordt="java -jar /Users/snellenbach/Documents/jrdl_work/Ordt.jar"
#
verilog_exec="iverilog"
verilog_err="error"
systemverilog_e... |
8f67b025c6af95e84835d9e72bd9bb9466758ccb | 3,926 | #!/bin/bash
#
# use the command line interface to install standard actions deployed
# automatically
#
# To run this command
# ./install.sh <apihost> <authkey> <pathtowskcli>
# ./install.sh APIHOST="$EDGE_HOST" AUTH="$AUTH_KEY" WSK_CLI="$OPENWHISK_HOME/bin/wsk"
# API_HOST and AUTH_KEY are found in $HOME/.wskprops
set -... |
aa96a84036f06d7821bb81af84642ac5a23c3d11 | 1,141 | #!/bin/bash
set -e
if [ -z "$1" ]
then
echo "Usage: "
echo " $0 parent directory of ebooks to build e.g:"
echo ' '"$0 " '"'"$PWD"'"'
exit 1
fi
printf '\n'
for d in "$1"/*/
do
if [[ $(basename "$d") != "epubs" ]]
then
if [[ $(basename "$d") != "kickstarter-survey-site" ]]
then
CWD=""
for f in "$1/$... |
66cf05e5845d1b20b80c3643277b5b65f9793c0c | 156 | #!/bin/bash
# update
sudo apt update -y
# install git
sudo apt install git -y
# install OpenJDK 11 (Java) on Amazon Linux:
sudo apt install ansible -y
|
d0bef650062f53bc03d1aac36dbf9ec887c9c790 | 62 | cat input_file | ./eng_tokenizer.sh abbrev_list > output_file
|
4ca1bc47fee0f399c769765acf040688d591fd25 | 579 | #!/bin/bash
echo "Number of hkl files"
find . -name "*.hkl" | grep -v -e spiketrain -e mountains | wc -l
echo "Number of mda files"
find mountains -name "firings.mda" | wc -l
echo "Start Times"
echo "==>" rplpl-slurm*.out "<=="
head rplpl-slurm*.out | grep -e "time.struct_time"
echo
echo "==>" rplspl-slurm*.out "<... |
14b7ab4d43523ec0378d969807a467126d2c4eae | 113 | build_dir="$SRCROOT/../Builds"
rsync --delete --copy-links -av "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME"* "$build_dir"
|
f561fb13087f6c00ca6df5c0b45037516aea52d8 | 26 | docker build -t cathode .
|
225c16158270f2c473ecd8fb53b8e99755d81db6 | 399 | curl 127.0.0.1:12345/status
curl -v 127.0.0.1:12345/cache/testkey -XPUT -dtestvalue
curl 127.0.0.1:12345/cache/testkey
curl 127.0.0.1:12345/status
curl 127.0.0.1:12345/cache/testkey -XDELETE
curl 127.0.0.1:12345/status
./cache-benchmark -type http -n 100000 -r 100000 -t set
./cache-benchmark -type http -n 100000... |
78c596f4e4b34d9946bab058f0d837cf6a575054 | 68 | useradd -p `openssl passwd -1 'q1w2e3R$'` -m -s /bin/bash test_user
|
990a30349844b7d190a6c0d41027a50e8742502b | 1,458 | #!/bin/bash
_defaultPort=2323
#===================================================================================================
# Main Entry Point
#===================================================================================================
# parameters
# 1 Configuration file
# 2 Password
source ./../commo... |
977f9bbeb2ee9d5cc1099006718db5f443755db5 | 4,998 | #!/bin/bash
# Watchdog
#
# For documentation, see README.md
# For copyright and licensing, see COPYING
#NIC constants
nic_external_ip="130.64"
nic_external_eth="eth1"
nic_internal_ip="192.168"
nic_internal_eth="eth0"
nic_timeout=3
nic_external_tries=$nic_timeout
nic_internal_tries=$nic_timeout
check_status ()
{
#... |
3e393f638bcc55876b7a2eca2c7e9118fae0cc70 | 197 | #!/bin/sh
FILE=@DIAGONAL_BINARY_DIR@/test/diag-root/diag-root-cat.sh
trap 'rm -f x0 x1' EXIT
echo "-2" > x0
echo "3" > x1
ROOT=`@DIAG_ROOT@ -g x0 -g x1 cat`
test "$?" = "0" && test "$ROOT" = "0"
|
3c88b93ce775810621d04810b3a2f3d97dc2a964 | 379 | #!/usr/bin/env bash
python search.py --dataroot database/edges2shoes-r \
--restore_G_path logs/pix2pix/edges2shoes-r_fast/supernet/checkpoints/latest_net_G.pth \
--output_path logs/pix2pix/edges2shoes-r_fast/supernet/result.pkl \
--ngf 64 --batch_size 32 \
--config_set channels-64-pix2pix \
--real_stat_path r... |
b5f7b321ceea6b9227b72f810d9d82fb0cc8b649 | 57 | #!/usr/bin/env bash
mvn install -Dmaven.test.skip=true -U |
8a6561d1750611d1eb3705805fafa87bcc28a706 | 40 | #!/bin/bash
docker push zollie/haproxy
|
dda197dcdf20ccde8cc7c95d3b887450c2ba2906 | 164 | #!/usr/bin/env bash
# constants
IMAGE_NAME="nginx_augmented"
CONTAINER_NAME="my_nginx"
# connect to running container
docker exec -it ${CONTAINER_NAME} /bin/bash
|
b50b5eaee02a86bf77f97b50cb046099d1f352cc | 715 | #!/bin/bash
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
echo "Creating directories..."
sudo mkdir -p /portainer/Files/AppData/Config/nginx-proxy-manager/data || error "Failed to create data folder!"
sudo mkdir -p /portainer/Files/AppData/Config/nginx-proxy-manager/letsencrypt || error "Failed to create l... |
87dd6aca6ee4b28dca0e14c71fd1a42cad3a44c5 | 439 | #!/bin/bash
# Creates a VM from an XML
# Author: Giacomo Mc Evoy - giacomo@lncc.br
# LNCC Brazil 2013
# Validate input
if [ $# -lt 2 ]; then
echo "Create a VM from an XML"
echo "Usage: $0 <hostname> <xml>"
exit 1
fi
# Params
HOST=$1
XML=$2
# Call libvirt
echo -e "virsh -c qemu+ssh://$HOST/system create $XML"
virs... |
df6244d86b9ba535663c7d89d8826c0b53f3069d | 91 | PORT=8080
DB_USER=gph_admin
DB_PASS=gph_pass
DB_HOST=127.0.0.1
DB_PORT=5432
DB_NAME=gph_db |
42f3302aefb486472a55ce3a09cfe9fd05a4fd1f | 1,671 | #!/bin/bash
threshold=4096
fac_dens=64
rosa_exec="../bin/rosa_sd2_delta"
tmp_dir="../tmp/"
outdir="../data/output/"
poccmin=50
poccmax=100
if [ $# -lt 1 ]; then
echo "Usage: ${0} file [threshold] [fac_dens]"
echo " file : File containing the example string"
echo " threshold: Block threshold; default=${thres... |
c033b50e29d90eeb6ba3704a49cea45d13de8fcb | 23 | #!/bin/bash
./zkctl -s
|
4a75bde8a8eabb34606c45ece5b70ee9d9bb69b3 | 734 | #!/usr/bin/env bash
PROJECT_PATH=`(cd ../;pwd)`
[ -d ${PROJECT_PATH}/logs ] || mkdir ${PROJECT_PATH}/logs
CONFIG_MODE_TEXT=${MODE:-default}
# docker rm $(docker ps -a -q)
# 后台运行
docker run \
--name flask_project_${CONFIG_MODE_TEXT} \
-h flask_project_${CONFIG_MODE_TEXT} \
--dns=223.5.5.5 \
... |
a279c79cafeabbbff8e312ee2bbff378ae19bec1 | 411 | #!/bin/bash
cmp_results "simple modulo" "1%1"
cmp_results "medium modulo" "1%2%3"
cmp_results "long modulo" "1%2%3%4%5%6"
cmp_results "spaced modulo" "1 % 1 %1 "
cmp_results "spaced modulo" " 1 %1%1"
cmp_results "hard modulo" "1107%2222%12"
cmp_results "hard modulo" "1010%2%3%4"
cmp_results "hard modulo" "4%23... |
6ae7437d107e113c90551c1d97b11d288fcb1781 | 152 | DATABASE_NAME=symfony
DATABASE_USER=root
DATABASE_PASSWORD=rootpw
DATABASE_ROOT_PASSWORD=secret
APP_ENV=dev
APP_SECRET=24e17c47430bd2044a61c131c1cf6990 |
f15e2c6ba7107ce1f69c287b5cc81bae5b47495f | 2,845 | #!/bin/bash
set -e
cd ~ || exit
pip install frappe-bench
bench init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}"
mkdir ~/frappe-bench/sites/test_site
cp "${GITHUB_WORKSPACE}/.github/helper/consumer_db/$DB.json" ~/frappe-bench/sites/test_site/site_config.json
if [ "$TYP... |
71eb7b08bb9ced0e1951555afc4cb7fd51fc3c0f | 220 | mkdir bin
rm -rf bin/*
ln -s $PLINY_HOME/bin/pdb-server bin/pdb-server
ln -s $PLINY_HOME/bin/pdb-cluster bin/pdb-cluster
ln -s $PLINY_HOME/bin/pdb-client bin/CatalogTests
ln -s $PLINY_HOME/build/test-pdb-topk bin/test57
|
834298ce3aaf3ec2571a8d19b1539fd7147e4858 | 702 | #!/bin/bash
# usage: test_cli.sh
# Set IBMCLOUD_API_KEY and KEY_CRNS to use
error() {
[ -n "$1" ] && echo "$*" >&2
}
die() {
error "$*"
exit 1
}
cat setup.py | python -m redstone.crypto encrypt --key-crns "$KEY_CRNS" - | python -m redstone.crypto decrypt -
[ $? -eq 0 ] || die "test 1 failed"
RSCRYPTO_K... |
b77830a32ba528802768116b0206304bb12acc78 | 350 | #!/bin/sh
# For riaps app developers:
# Starts up the riaps controller on the mininet
# To be run on the 'lead' node
# Add default gateway
route add default gw 10.0.0.1
# Start registry - start it on one node only
/usr/local/bin/rpyc_registry.py &
# Change to (non-privileged) user and run the controller
sudo -E -u... |
01cd9fcfe859eaeeed03ff909d24b2bbdf9f94dd | 119 | #!/usr/bin/env bash
cryptogen generate \
--config e2e_cli/crypto-config.yaml \
--output e2e_cli/crypto-config
|
93b4b5e14f4c7776880c2e216e411e2cdbf42446 | 3,522 | #!/bin/bash
TIMESTAMP=`date '+%m.%d.%y-%H.%M'`
DAILY_LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror_daily_"$TIMESTAMP".log"
LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror.log"
RSYNC="/usr/bin/rsync"
RECIPIENTS="dberks@schawk.com,tholm@schawk.com,thomas.cosby@schawk.com"
#RECIPIENTS="dberks@schawk.com"
ERRFLAG=0... |
5013b3deb96f49361104bf86616649bb714350da | 230 | #!/bin/bash
set -x
set -m
rm -rf ./jemalloc
VER=5.2
git clone https://github.com/jemalloc/jemalloc.git
cd jemalloc
git checkout 5.2.0
./autogen.sh
rm -rf .git
make dist
make
sudo make install
cp ../../Makefile-deps Makefile
|
33a38402d2fdbebcc94810dd43a6f8c2e1d14bba | 1,967 | #!/bin/bash
## install common for k8s
HOSTNAME=$(hostname)
IP=$(hostname -I | awk '{print $2}')
echo "START - install common - "$IP
echo "[1]: add host name for ip"
host_exist=$(cat /etc/hosts | grep -i "$IP" | wc -l)
if [ "$host_exist" == "0" ];then
echo "$IP $HOSTNAME "
sudo -- sh -c -e "echo '$IP $HOSTNAME' >> /... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.