blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
bc8c89d15fccbe6274872bb0c9c00c69e6bf3c0a | 629 | #!/bin/bash
#
# Copyright (c) AppDynamics Inc
# All rights reserved
#
# Maintainer: David Ryder, david.ryder@appdynamics.com
#
# Requires: jq (brew install jq)
#
#
_awsCloud9ListEnvironments() {
LIST1=$(aws cloud9 list-environments --query environmentIds[*] --output text)
for ENV_ID in $LIST1; do
aws cloud9 de... |
17100af55f3f553861f20623cda32eb7b0bdbd22 | 17,499 | #!/bin/bash
#Originally Developed by Fred Weinhaus
coords="" # coordinates of corners clockwise from top left
region="" # WxH+X+Y area on background to place overlay image
fit="none" # crop or distort the image to fit vertical aspect ratio of region
gravity="center" # gravity for cropping
vshift=0 # ver... |
7106ce2269fd94ddb6e1134d535f09a29eabed0b | 95 | #!/bin/bash
echo Swap!
for i in {10..1}; do
echo $i
sleep 1
done
echo
python queuetemp.py
|
ea89167c4e38ab7c3f284c40c73c3929d18bdce7 | 2,444 | #!/bin/sh
# Use the Xorg backend
if test "x$GDK_BACKEND" = "x"; then
GDK_BACKEND="x11"
fi
export XDG_SESSION_TYPE
# Set $XDG_MENU_PREFIX
if test "x$XDG_MENU_PREFIX" = "x" ; then
XDG_MENU_PREFIX="gnome-"
fi
export XDG_MENU_PREFIX
# Set $DESKTOP_SESSION
if test "x$DESKTOP_SESSION" = "x" ; then
DESKTOP_SESS... |
643a79064177e1c34ba4a172a6235bd9529e624a | 905 | #!/bin/bash -x
SAMPLE_COLAB_URL="https://colab.research.google.com/drive/1fjv0zVC0l-81QI7AtJjZPMfYRiynOJCB#scrollTo=Kp3QKj1KIaaO"
SAMPLE_COOKIECUTTER_REPO="git@github.com:andrewlook/ipynblog-cookiecutter-svelte-template.git"
NOTEBOOKS_DIR=$(pwd)/notebooks
ipynblog-download ${SAMPLE_COLAB_URL} -d ${NOTEBOOKS_DIR}
NO... |
4ddda24a8a7daec5bb193f5e261037d764a84341 | 379 | #!/bin/bash
MASTER_PROP_FILE=$1
PROP_NAME=$2
PROP_VAL=$3
OUT="../output/results.txt"
CORRECT_LINE="${PROP_NAME}=${PROP_VAL}"
FOUND_LINE=$(grep "${PROP_NAME}=" $MASTER_PROP_FILE)
echo "Expected: $CORRECT_LINE" > $OUT
echo "Found: $FOUND_LINE" >> $OUT
if [ $FOUND_LINE == $CORRECT_LINE ]; then
echo "Good!" >> $OUT
... |
869dc2900213e8c47d35cea02de9cac77070a337 | 888 | #!/bin/bash
# This script takes two input numbers from user at runtime and display arithmetic operation on that numbers, finds out max, & min number from them, finds weather that numbers negative or positive.
read -p "Enter first number:" num1
read -p "Enter second number:" num2
echo "Arithmetic Operations:"
echo -n ... |
dd38050e4a9512195b1b583a03c4e738922aead7 | 68 | #!/bin/bash
composer install
php bin/console server:run 0.0.0.0:80
|
b399484731c3acc532814c126bf407c64eca69ac | 232 | #!/usr/bin/env bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DOCKER_COMPOSE_DIR=${SCRIPTDIR}/../
cd "$DOCKER_COMPOSE_DIR" || exit
docker-compose exec -T -u $UID web /var/www/html/project/vendor/bin/phpcs "$@"
|
edf46a12f6576c35bd04d0c2f09ced918a5807ac | 81 | #!/usr/bin/env bash
source ./load_env.sh
docker-compose down
docker-compose ps
|
ca8955dc0bc8edbc655427532eaadaad97d4851c | 178 | #!/bin/bash
source activate fastai
mkdir /storage/data
rm -rf /storage/lost+found
ln -s /datasets/fastai/* /storage/data/
jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
|
b01ba54563ee529912847e62278e54bd6faaaaa0 | 155 | #!/bin/bash
if [[ -e build/.composefile ]]; then
FILE=`cat build/.composefile`
else
FILE=docker-compose.yml
fi
set -x
docker-compose ps
|
6521c681d03abdd9ac47688b7dc9b1259a6f56a4 | 134 | #!/usr/bin/env bash
set -e # halt script on error
bundle # install all gems
bundle exec jekyll build
bundle exec htmlproof ./_site
|
f06c9e1fbabe699d2f182b8c4dc9db7db88485be | 208 | #!/bin/bash
convert "$1" -resize 2048 -morphology Convolve DoG:15,100,0 -negate -morphology Dilate rectangle:3x3 -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 -negate -fuzz 50% -transparent black "$2"
|
83f276d19a76cdcbefa49588a4cc79e77300198d | 1,573 | #!/usr/bin/env bash
# ./export.sh .kibana_mg /home/christian/Documents/ELK/Dashboards/dashboard_mg
# $1 : kibana index
# $2 : dashboards directory
#
# Saves all dashboards in Kibana
mkdir -p $2
if [ $# -eq 2 ]
then
# dashboard
mkdir -p $2/dashboard
curl -s --noproxy 127.0.0.1 "127.0.0.1:9200/$1/dashboard/_se... |
536c7d09cbc8c01031544b09f6f3e1fed4e77845 | 79 | docker run --rm -v /var/run/docker.sock:/var/run/docker.sock spotify/docker-gc
|
536bd01382167c5d45df1f2e4a391a6435de86d4 | 329 | #!/bin/bash
brew install coreutils
BASEDIR=$(dirname $(realpath "$0"))
echo $BASEDIR
cd $BASEDIR/order-management
docker build -t order-management.back -f Dockerfile .
cd $BASEDIR/order-management/order-management.front
docker build -t order-management.front -f Dockerfile .
cd $BASEDIR/order-management
docker-compo... |
dab5d6cdeda693efc02d16f00aaa284a49417e0e | 573 | echo "reload sensor config $1"
systemctl stop xyz.openbmc_project.Logging.IPMI.service
if [ $1 = "1" ]; then
if [ ! -d "/sys/bus/platform/drivers/nuvoton-i2c/f0086000.i2c" ]; then
echo -n "f0086000.i2c" > /sys/bus/platform/drivers/nuvoton-i2c/bind
fi
sleep 10
else
if [ -d "/sys/bus/platform/dri... |
472d7350c9ccb9fbffc973d2ac029c7433e5bc1e | 976 | #!/bin/bash
cd /var/log
#todo tail many things w/ this 1 parent process
# apt-cacher-ng/apt-cacher.log
#tail -F apache2/{error,access}.log syslog auth.log samba/log.all dpkg.log | grep -v -E 'error on subcontainer|pam_unix\(cron:session\): session (opened|closed) for|"GET / HTTP/1.1" 200 1496 "-" "check_http/v1.4.15 \(... |
618dd058d6fef8c11397805e354411244cb0927b | 602 | #!/bin/bash
# this script is part of a set that should be run inside a container. run build.sh to run the entire build
echo "go get github.com/tools/godep"
go get github.com/tools/godep
export PATH=$PATH:$GOPATH/bin
echo "downloading k8s code"
mkdir -p $GOPATH/src/k8s.io/kubernetes
mkdir -p /kubedl
cd /kubedl
curl ... |
b9b2d861aca3bb0ee84348fe36e80bca4b22750a | 1,215 | #!/bin/bash
# testing and control flow with if, [ and [[, and/or
NUM_REQUIRED_ARGS=2
if [[ $# -lt NUM_REQUIRED_ARGS ]]; then
echo "Not enough arguments with ./{$0} <name> <number>"
fi
## helpers
# && and
# || or
## in your terminal
echo "hi." || echo "This won't happen."
$(ls nonexistantfile) || echo "This ha... |
5da2815f4b5a215c3bc48b4269b2c2d770aaa34c | 419 | rostopic pub ikPose arm_gazebo/PositionMessage "x: 1.0 y: 2.15 z: 0.1"
rostopic pub moveGripper arm_gazebo/GripperMessage "grab: true"
rostopic pub ikPose arm_gazebo/PositionMessage "x: 1.0 y: 2.15 z: 1.1"
rostopic pub ikPose arm_gazebo/PositionMessage "x: -1.0 y: -2.0 z: 1.1"
rostopic pub ikPose arm_gazebo/PositionM... |
c6b8379562bde90284dd1e78075cba1bd834a569 | 1,286 | #!/bin/bash -x
#UC1
read -p "enter a name " name
p1='^[A-Z]{1}[a-zA-Z]{3,15}$';
if [[ $name =~ $p1 ]]
then
echo "yes"
else
echo "no"
fi
#UC2
read -p "enter a surname " surname
p2='^[A-Z]{1}[a-zA-Z]{3,15}$';
if [[ $surname =~ $p2 ]]
then
echo "yes"
else
echo "no"
fi
#UC3
read -p "enter a emailid " ... |
db920430b13910d1443bd9b6f7278e9c47f817fe | 638 | [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
export PYENV_ROOT="$HOME/.pyenv"
if [ -d "$PYENV_ROOT" ] ; then
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
# https://broken-by.me/lazy-load-nvm/
nvm() {
unset -f nvm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/... |
815b6f26fd7fb862ef882ba8d8e772366f7f4728 | 225 | #!/bin/sh -e
INPUT_VIDEO="$1"
OUTPUT_DIR="$2"
if [ $# -ne 2 ]
then
echo "Usage:"
echo "$0 {input-video} {output-images-directory}"
exit
fi
mkdir -p $OUTPUT_DIR
ffmpeg -i $INPUT_VIDEO $OUTPUT_DIR/frame-%04d.png
|
fb236e52603ce5c358fd3dcae7acf7260b552545 | 667 | #!/bin/sh
DATASET="noxmoon/chinese-official-daily-news-since-2016"
ARCHIVE_FILE="chinese-official-daily-news-since-2016.zip"
DATA_FILE="chinese_news.csv"
DATA_DIR="data"
COL_NAME="headline"
LINES=3000
OUTPUT_FILE="headlines.txt"
if [ -d ${DATA_DIR} ]; then
echo ${DATA_DIR}' exists, please remove it before running th... |
4e08ce8ae60b9ba782ba71df6a66d661597d8061 | 1,324 | # my werid aliases
alias cat="ccat --bg=dark"
alias reddy="redis-server /usr/local/etc/redis.conf"
alias vim="nvim"
alias watchtest="clear && fswatch -o test build | xargs -n1 -I{} npm test"
alias mong="mongod --config /usr/local/etc/mongod.conf"
alias rimraf="rm -rf"
alias ag="ag --color-path \"1;34\" --color-line-num... |
fa124f84a62b34f466e90d9aad251d9b9bfd5f7f | 211 | #!/usr/bin/env sh
# Color Palette
BLACK=0xff181926
WHITE=0xffcad3f5
RED=0xffed8796
GREEN=0xffa6da95
BLUE=0xff8aadf4
YELLOW=0xffeed49f
ORANGE=0xfff5a97f
MAGENTA=0xffc6a0f6
GREY=0xff939ab7
TRANSPARENT=0x00000000
|
58ea96e8e030e75d41cab5ca50a7b97576f9d993 | 935 |
pkgname=rssguard
pkgver=3.9.2
pkgrel=1
pkgdesc="Simple (yet powerful) feed reader, able to fetch the most known feed formats, including RSS/RDF and ATOM."
arch=('x86_64')
url="https://github.com/martinrotter/rssguard"
license=('GPL')
depends=('qtwebengine')
makedepends=('qt5-tools')
source=("https://github.com/martinr... |
69185e169fc74de311447375fe34b8701e6aabe8 | 4,792 | #!/bin/bash
echo "Setting environment variables"
PKG_CONFIG_PATH=/home/amkhande/lib/pkgconfig
export PKG_CONFIG_PATH
LD_LIBRARY_PATH=/home/amkhande/lib:/home/amkhande/tbbSource/lib/intel64/gcc4.4
export LD_LIBRARY_PATH
PATH=/home/amkhande/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4:... |
6f62ec5d7690e9b4851582636cece33366c16b1a | 941 | #!/bin/sh
#
# Wrapper functions for CYA calls to Docker
set -e
CYA_CONTAINER=v4tech/cya-email
CYA_CONFIG_DIR=${HOME}/work/CYA-config
OFFLINEIMAPCONF=${CYA_CONFIG_DIR}/offlineimap.conf
SENDPYRC=${CYA_CONFIG_DIR}/sendpyrc
MSMTPQ_QUEUE=${CYA_CONFIG_DIR}/msmtpq-queue
msmtpq() {
mkdir -p ${MSMTPQ_QUEUE} && \
doc... |
715d808ecc8509c3c29bc87487b9e401b86c6187 | 1,504 | #!/bin/sh
echo "==> 📜 Installing Homebrew packages"
# Update Homebrew and any already-installed formulae
brew update
brew upgrade
# Core macOS utilities
brew install coreutils
brew install moreutils
brew install findutils
brew install openssh
brew install gnu-sed
brew install gnu-tar
brew install rsync
brew install... |
c1c87f731019bfb2ecd5b6b10f7336050977c773 | 46 | #!/bin/bash
java -cp .:../lib/* Crawler "$@"
|
1135f53d38579f359a1690dce9ea491b41ef0c4b | 5,235 | #!/bin/bash
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
BASE_DIR=${SCRIPT_DIR}/..
JOB_ID=$1
all_requirements=""
#'(Machine != "hal9013.cs.illinois.edu")'
MAX_SIMULTANEOUS=200
MAX_IDLEJOBS=100
FANIN_GROUP_SIZE=100
#allows a job to be submit by its config file directly. That allows the user to use tab completion.
... |
23a91ed0a32fb5c34d2de4706d312e305ba032f0 | 261 | #!/bin/bash -e
install_charmcraft()
{
if stat /charmcraft/charmcraft_*.snap 2>/dev/null; then
snap install --classic --dangerous /charmcraft/charmcraft_*.snap
else
echo "Expected a snap to exist in /charmcraft/"
exit 1
fi
}
|
df892b2796b49fa8586811c339ed7ec36f2cae3e | 842 | while true; do
p1=$(netstat -tlpn | grep 127.0.0.1:8081)
p2=$(netstat -tlpn | grep 127.0.0.1:8082)
p3=$(netstat -tlpn | grep 127.0.0.1:8083)
p4=$(netstat -tlpn | grep 127.0.0.1:8084)
p5=$(netstat -tlpn | grep 127.0.0.1:8085)
if [ -z "$p1" ] ; then
echo "Lost proxy 1 at $(date)"
ssh -i /home/david/.ssh/id_r... |
8a48d2b155c860502783d13572ff7064829c1828 | 79 | REACT_APP_PORT=4000
REACT_APP_NODE_PATH=src
REACT_APP_PUBLIC_URL="hexapod.node" |
0f41627c6875685590023d44e42e9012d441929f | 1,334 | #!/bin/bash
CLANG_BIN=${CLANG_BIN:-clang}
CLANG_VERSION=$($CLANG_BIN --version)
echo "CLANG_BIN=$CLANG_BIN"
echo "CLANG_VERSION=$CLANG_VERSION"
echo
function run_test {
export TEST=$1
echo $TEST
# Compile with clang.
$CLANG_BIN -lm $TEST
if [ $? != 0 ]; then
exit 1
fi
# Run... |
a9df53758e5675f8759441aba18d62e040d048b5 | 106 | python -c 'import sys; sys.path.insert(0, "../cdk"); from create_table import createTable; createTable()'
|
0b1a3cbd2e9a6e3897b4b35fe673a6fbbf6556f9 | 1,490 | #!/bin/sh -e
DIRECTORY=$(dirname "${0}")
SCRIPT_DIRECTORY=$(cd "${DIRECTORY}" || exit 1; pwd)
usage()
{
echo "Usage: ${0} [--wait][--sleep-seconds NUMBER] MACHINE_NAME"
}
# shellcheck source=/dev/null
. "${SCRIPT_DIRECTORY}"/../lib/virtual_box_tools.sh
WAIT=false
SLEEP_SECONDS=0
while true; do
case ${1} in
... |
dcdb2253b0946a29c286678b5620e43640ebcdfd | 166 | #!/bin/bash
if [ $# -lt 1 ]
then
output=output.mp4
else
output=$1
fi
if [ $# -lt 2 ]
then
fps=15
else
fps=$2
fi
avconv -r $fps -i frame%06d.png $output
|
0ab3766e99f6dd1245104dd50dae53e0e683c9ec | 176 | #!/bin/bash
# Set path for Yarn
PATH="$PATH:`yarn global bin`"
# Setting PATH for Python 3
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH;
|
2975dcf3f6ad1adfabf9ec2c2430f00221e02776 | 137 | git checkout gh-pages
git merge master
cp -r website/. .
git add .
git commit -m 'build'
git push origin gh-pages -f
git checkout master
|
e118a657e8a2e07af5724ab5148edddde339da36 | 2,843 | ###### Kubernetes Controller Version 1.21 ######
## Environment: Debian
## Creatiion Date: 09-Jun-2021
## Author: Ahmed El Basosy
################################################
###### Letting iptables see bridged traffic ######
echo "###### Letting iptables see bridged traffic ######"
cat <<EOF | sudo tee /etc/modul... |
b98b2bacad47026fb5565350c6b31c9e7fa67c8b | 338 | #!/usr/bin/env bash
echo "Existing pods and services"
kubectl get pods
kubectl get services
echo "Cleaning up pods:"
kubectl get pods | awk '{print $1}' | egrep '^cassandra-' | xargs -n 1 kubectl delete pod
echo "Cleaning up services:"
kubectl get services | awk '{print $1}' | egrep '^cassandra-' | xargs -n 1 kubect... |
acf9fe48639e8174c80808924ad6d7c3f7c9ecfb | 1,177 | # 1
hosts=( 'ec2-54-68-220-30.us-west-2.compute.amazonaws.com' )
# 1 - 5
#hosts=( 'ec2-54-68-220-30.us-west-2.compute.amazonaws.com' 'ec2-54-68-197-108.us-west-2.compute.amazonaws.com' 'ec2-54-68-220-51.us-west-2.compute.amazonaws.com' 'ec2-52-11-202-117.us-west-2.compute.amazonaws.com' 'ec2-54-68-220-32.us-west-2.com... |
d2cf72f55172d40094abeabad39d7ff63ec11dac | 995 | #!/bin/bash
# Copyright 2011 Google Inc. 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 required by applic... |
e17c9bbb9836cba1b3bc42809523affeda82037a | 1,674 | #!/bin/tcsh -xef
# created by uber_ttest.py: version 2.0 (December 28, 2017)
# creation date: Wed Feb 19 11:33:21 2020
# ---------------------- set process variables ----------------------
set mask_dset = $PWD/sub-01.results/mask_group+tlrc
set dirA = $PWD
# specify and possibly create results direct... |
97611ccd8564fd3f01dc7769abd511f70b79fc65 | 247 | # use this file to run your own startup commands for msys2 bash'
# To add a new vendor to the path, do something like:
# export PATH=${CMDER_ROOT}/vendor/whatever:${PATH}
source $CMDER_ROOT/vendor/mintty-colors-solarized/mintty-solarized-dark.sh
|
e738ec081ba22be5611d878d8dcd9989d34addbd | 4,749 | #!/bin/sh
#
# based on the fine work of kchristensen/udm-le
# https://github.com/kchristensen/udm-le
#
set -e
# Load environment variables
. /mnt/data/ubios-cert/ubios-cert.env
# Setup variables for later for those who want to tinker around
PODMAN_VOLUMES="-v ${ACMESH_ROOT}:/acme.sh"
PODMAN_ENV="${DNS_API_ENV}"
POD... |
d5ca0e63d020fcb01cc46c5425ba22178eeb9a72 | 221 | #!/bin/bash
docker pull dtok/water-data-allocation:test
docker rm wdc_test
docker run --name wdc_test -v /home/mike/git/WaterDataConsents/parameters-test.yml:/parameters.yml dtok/water-data-allocation:test
echo "Success!" |
c2964d130a449bbb67c8b63c3c0337c81a1cae69 | 113 | #!/bin/bash
kodi-send --host=192.168.1.27 --action="XBMC.Notification(Ding-Dong, Someone is at the front door.)" |
6e04e39668482e90c98a830988c2e4d36a3b19e8 | 365 | # Set proxy environment variables
function setproxy() {
proxy_address=${1:-} # default value of nothing
export HTTP_PROXY=$proxy_address
export HTTPS_PROXY=$proxy_address
export FTP_PROXY=$proxy_address
export http_proxy=$proxy_address
export https_proxy=$proxy_address
export ftp_proxy=$proxy_address
ec... |
7b05c4ef5ec722d2dfe630dada8278857b23d0df | 3,812 | #!/bin/bash
source variables/variables.common
COMPONENT=$1
unset name version source _prepare _configure _make _install
source ${COMPONENTS_DIR}/${COMPONENT}/info
source ${COMPONENTS_DIR}/${COMPONENT}/build
filename="${source##*/}"
if [ -z "${folder}" ]; then
folder=${name}-${version}
fi
if [ ! -e ${COMPONEN... |
258eb2113424cbcc2a1a4f6c749867ed903e64bf | 5,189 | #!/bin/bash
#
# Copyright (C) 2016 Stanislav Brabec <sbrabec@suse.cz>
#
# This file is part of util-linux.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (... |
2b389f258e9d84b8bf74c9728bd650f73b743015 | 771 | #!/usr/bin/env bash
#
# REFERENCES:
# - https://stackoverflow.com/questions/34159451/splitting-big-block-of-binary-into-8-bit-chunks-in-bash
# - https://unix.stackexchange.com/questions/65280/binary-to-hexadecimal-and-decimal-in-a-shell-script
# - https://unix.stackexchange.com/questions/464808/bc-why-does-ibase... |
28a09744d0f885e5bdd33fc7427412d52439148c | 315 | #!/usr/bin/env bash
echo 'TMPDIR=\$(mktemp -d)'
echo 'cd \$TMPDIR'
echo 'git clone ssh://bandit29-git@localhost/home/bandit29-git/repo'
echo 'git checkout dev'
echo 'cat README.md'
echo 'cd ~'
echo 'rm -rf \$TMPDIR'
echo password: bbc96594b4e001778eee9975372716b2
ssh -p 2220 bandit29@bandit.labs.overthewire.org
|
4dc8690ee79d10693a862ead5d628b514d7a6733 | 677 | #!/bin/bash
./trtNoLinear_10 66 66 9 20 0 0.00171066746427 0.01 1 2
./trtNoLinear_10 66 66 8 20 0 0.00216506350946 0.01 1 2
./trtNoLinear_10 66 66 7 20 0 0.00282783805317 0.01 1 2
./trtNoLinear_10 66 66 6 20 0 0.00384900179460 0.01 1 2
./trtNoLinea... |
7eaf73fa7f25312941a45d352b1590f88cd2da97 | 1,074 | BASESOURCEDIR=/tmp/figures
cp $BASESOURCEDIR/comparison_table.txt images 2>/dev/null
cp $BASESOURCEDIR/optimized_vs_default_sonar.png images/optimized_vs_default_standard.pdf 2>/dev/null
cp $BASESOURCEDIR/optimized_vs_default_sonar.png images/optimized_vs_default_bio.pdf 2>/dev/null
#cp $BASESOURCEDIR/AllDatasets__aut... |
f8c13b5367239d4c5848440d32ec4c08f646a5dc | 573 | #!/bin/bash
# e.g. bash binarize_bpe_dropout.sh europarl_5k_bpe_30000 europarl_5k
script_dir=`dirname "$0"`
base=$script_dir/../../..
scripts=$base/scripts
src=en
tgt=fi
experiment=$1
size=$2
l=64 # number of segmentations
data=$base/data
TRAIN_TEXT=$data/bpe_dropout/$size
TEXT=$data/in_domain/$size/$experime... |
0c144dd37bc904b44fc19c6f43a0468e6359782c | 49 | #!/bin/bash
python twitter_timeline.py -a ivan
|
02ae006343064723f069ae418f4f031feed61503 | 6,595 | #!/usr/bin/env bash
# Automatically reloads your tmux configuration files on change.
#
# Copyright 2021 Maddison Hellstrom <github.com/b0o>, MIT License.
set -Eeuo pipefail
if [[ ${BASH_VERSINFO[0]} -ge 5 || (${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -ge 4) ]]; then
shopt -s inherit_errexit
fi
function year... |
98a3d5ed0b41dd1ad3bf5e9e919bf353f139f758 | 134 | #!/bin/bash
for file in $(find . -iname swagger.yaml); do
echo "Checking $file"
swagger-tools validate "$file"
echo
echo
done
|
ae4a7b0120134c501e779f00e393e54aaaabc61f | 1,338 | #!/bin/sh
OPTIONS="--nodiscover --networkid $NETWORKID --port $NETWORKPORT --rpc --rpcport $MINERPORT --etherbase 0x57e25703aba36bd2575e9027de2cb9ac187dc6da --verbosity 6"
HELP="This is a help page. \
Available modes are: miner node1 node2 ethstats ethstatsclient help."
case $1 in
miner)
cp /root/key.miner /root/.et... |
970b393b9de8da22e22599e641209344bb32ba66 | 114 | #!/bin/bash
# prepare .env file with user prompts
#./install_db.sh
#./prepare_db.sh
npm i
npm test
npm run dev
|
a8eee999099d99b9dee3acd5676e4f544e9ac2fc | 97 | add_lunch_combo full_d10f-eng
add_lunch_combo full_d10f-user
add_lunch_combo full_d10f-userdebug
|
b8a33917014352aa71f1a4b45525f6b058f6ba54 | 61 | ps ax|grep qemu|grep kernel | awk '{print $1}' |xargs kill
|
c20af8309393ec61f7c9aa5cbf29a4800c4462ae | 165 | #! /bin/bash -e
#
cd $(dirname $0)/..
source ./auto/functions
RUNLIST="app"
for r in ${RUNLIST}; do
docker-compose --project-name ${PROJECTNAME} start ${r}
done
|
950705f10f44c6f63edda3187f7003e48cb623f0 | 99 | #!/bin/sh
for filename in $(ls *.sh)
do
echo $filename | awk '{print toupper($0)}'
done
exit 0
|
12b630cd018669b137fcbd9d37ac2cc43cb040d1 | 1,319 | #!/usr/bin/env bash
# Function: Merge PDF files with outlines
# Input:
# 1. PATH: path that contains PDF files which should be name like "1.2 Test Tile"
# Output: generate a merged PDF file with outline
# Input check
if [ $# -lt 1 ] || [ $# -gt 2 ]
then
echo "Error: wrong number of arguments"
echo "Usag... |
6ffeee32e1f5ce20e5fe00f69f1fc30e6af79e0e | 230 | #!/bin/bash
mkdir ~/src/php
cd ~/src/php
git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
echo 'export PATH="~/src/php/arcanist/bin:$PATH"' >> ~/bin/.bash_env
. ~/.bashrc
|
24360673fb822e1f7ddd2e53365b0cdd8423b2aa | 1,889 | **Cod Demography**
*by Group 1*
######################
#### Select SNPs #####
######################
#To run the script
sbatch WRAPsnps.sh Atlantic_cod_WG_ref_data.vcf.gz West_East_25
#Our actual command inside the script
python /cluster/projects/nn9987k/Seachanges/BAMscorer_v1_linux select_snps $VCF $OUT --numchro... |
d7dc498c8dbe78162a7f075697d4f2368afa519b | 33 | #!bash
cp ../gitee-list/*.txt ./
|
025e81257d93303b49a13e393ab90360712f7772 | 66 | #!/bin/bash
# Go to depth 3
du -bch **/*.o **/**/*.o | sort -hr
|
97b55a6dc4e9e64e795223c34678073409310ad0 | 969 | #!/bin/bash
PUBLISH_BRANCH="gh-pages"
if [[ $(git status -s) ]]
then
echo "The working directory is dirty. Please commit any pending changes."
exit 1;
fi
echo "Deleting old publication"
rm -rf public
mkdir public
git worktree prune
rm -rf .git/worktrees/public/
echo "Checking out ${PUBLISH_BRANCH} branch in... |
1872ff278eba4bafae9c0da4d190a52235f4b2f7 | 341 | rm rt2*
ip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
CALVIN_GLOBAL_STORAGE_TYPE=\"proxy\" CALVIN_GLOBAL_STORAGE_PROXY=\"calvinip://$1:5000\" csruntime -n $ip -p 5002 -c 5003 --name 'rt2' --probe-buffer-size 500000 >> rt2_output.actortrace &
echo "Started two runtimes {rt1, rt2} on host:$ip, w... |
c3c9b039da5e435998196588c3b2f45bd82716da | 132 | #!/bin/sh
if [ -f "/app/start.sh" ];then chmod -x /app/start.sh ; sh /app/start.sh;fi
exec /usr/sbin/nginx -c /etc/nginx/nginx.conf
|
7395a514ebb4a1b90df86feadec8cea306d3f2cd | 342 | #!/bin/bash
set -e
if [ ! -d "cloudstack" ]; then
echo "Could not find directory 'cloudstack'"
exit 1
fi
cd cloudstack
VERSION=$(grep '^ <version>' pom.xml| cut -d'>' -f2 |cut -d'<' -f1)
DISTCODE=$(lsb_release -sc)
dch -b -v ${VERSION}~${DISTCODE} -u low -m "Apache CloudStack Release $VERSION"
dpkg-buildp... |
020de0b360545f6f7f90645e0133dff276355708 | 82 | #! /bin/sh
docker network rm iptastic
docker rm elasticsearch
docker rm cassandra
|
e183f2bfa979e666ceb3711909ff0985009ef26c | 167 | #!/usr/bin/env bash
if [ $# -eq 0 ]
then
echo usage: ./forecast.sh input.json
exit 1
fi
cd $(dirname "$0")
export PYTHONPATH=src
python src/forecast.py $1
|
46ae99905c3403c856f14461c92bba1cc5613982 | 46 | #!/usr/bin/env bash
rm -f *.o
rm -f libsum.*
|
eabff486dbe17aa2e87b8b1ceb18efc50f0cfd1f | 471 | export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y tcpdump
sysctl net.ipv4.ip_forward=1
ip link set enp0s9 up
ip link set enp0s8 up
ip link add link enp0s8 name enp0s8.9 type vlan id 9
ip link add link enp0s8 name enp0s8.10 type vlan id 10
ip link set enp0s8.9 up
ip link set enp0s8.10 up
ip addr ad... |
a9f20263c9bde92230f9b1ef4660d425c88dcbbf | 243 | #!/usr/bin/env bash
# For raspberrypi only
[ ! $1 ] && echo "Need new hostname" && exit
sudo sed -ri "s/127\.0\.1\.1.*/127\.0\.1\.1\t$1/g" /etc/hosts
sudo echo $1 > /etc/hostname
sudo /etc/init.d/hostname.sh
sudo service avahi-daemon restart |
965497049fa9214f67151bfe6cefb8e51b5892ee | 1,234 | #!/bin/bash -e
#By Sam Gleske
#Thu Apr 7 09:20:12 PDT 2016
#Mac OS X 10.11.3 (15D21)
#Darwin 15.3.0 x86_64
#GNU bash, version 4.3.11(1)-release (x86_64-apple-darwin13.2.0)
#A bash script based off of a go program by Justin Campbell.
#https://github.com/justincampbell/plop
#DESCRIPTION
# Writes stdin to a new tempo... |
74e0ade19397a4bd68528f433e760a786ab02260 | 41 | #!/bin/bash
./test_units ../*ruby/unit*
|
b4c65e3b8e29744b3cebb03520f547dba13ced77 | 69 | #!/bin/bash
sh test_app.sh
sh seed.sh
sh outline.sh
sh test_code.sh
|
17c465e33620986b01cf4148bf7aa3fc8e599a45 | 312 | #!/bin/bash
set -e
FAILED=""
ROOT_DIR="$(pwd)"
export PYTHONPATH=$ROOT_DIR:$PYTHONPATH
for DIRECTORY; do
echo "Entering $DIRECTORY..."
cd "$ROOT_DIR/$DIRECTORY/Contents/Resources"
./index.py || FAILED="$FAILED $DIRECTORY"
done
for DIRECTORY in $FAILED; do
echo "INDEX FAILED FOR $DIRECTORY"
done
|
cdbde3bca6cd4fcc773d3537c68ca421f1ede1c5 | 1,168 | # Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# For tmuxp
export DISABLE_AUTO_TITLE='true'
# Theme
ZSH_THEME="gnzh"
# Plugins
plugins=(
colorize
common-aliases
command-not-found
docker
docker-compose
git
git-extras
github
kubectl
minikube
node
np... |
bde00934166e3031fcea514c3aaf71f68d79768d | 792 | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
cd "$HOME/.dotfiles"
dotfiles=$HOME/.dotfiles/files/
move () {
# shellcheck disable=SC2086
if [ -z ${2+x} ] ; then
dest=$1
else
dest=$2
fi
echo "$1"
if [ -L "$HOME/.$dest" ] ; then
return 0
fi
if [ -f "$HOME/.$dest" ] |... |
f36e0855edd7032337dea78b8fc49d54f5cad5c3 | 125 | # Script to run infrastructure tests in Sauce Labs
cd ../..
node dui/node_modules/intern/runner.js config=dui/tests/sauce.js
|
61e40fca275f5d8688931b11cbfb0c6592ad5107 | 496 | #!/usr/bin/with-contenv bashio
export freq=$(bashio::config 'freq')
export ppm=$(bashio::config 'ppm')
export gain=$(bashio::config 'gain')
export same=$(bashio::config 'same')
export dsamelog=$(bashio::config 'dsamelog')
export mqttsvr=$(bashio::config 'mqttsvr')
export mqttport=$(bashio::config 'mqttport')
export mq... |
daa4dfac6bf412ee0baf9788ce4435ed6d4fb419 | 559 | #!/usr/bin/env bash
# Copyright (c) Contributors to the aswf-docker Project. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -ex
if [ ! -f $DOWNLOADS_DIR/cppunit-${CPPUNIT_VERSION}.tar.gz ]; then
curl --location http://dev-www.libreoffice.org/src/cppunit-${CPPUNIT_VERSION}.tar.gz -o $DOWNLOADS_DIR/... |
9d09c3813f82a1fd543b9768d7b35db92ca0947c | 620 | #!/bin/bash
#
# Copyright (c) 2017-2018, Christian Muehlhaeuser <muesli@gmail.com>
#
# For license see LICENSE
#
set -e
if [[ "$FLAVOR" == "router" ]]; then
FLAVOR="_${FLAVOR}"
elif [[ "$FLAVOR" == "minimal" ]]; then
FLAVOR="_${FLAVOR}"
elif [[ "$FLAVOR" != "" ]]; then
# Unknown
echo "Sorry, but ... |
866a133af68ad3186ee4e17b96bbe0a60605fb19 | 106 | install_name_tool -change "libtestcomponent.1.dylib" "@executable_path/libtestcomponent.1.dylib" framework |
779ba52b340987c72bd2d56e94541a197d01e404 | 744 | #!/bin/bash
# see e.g. https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425 for details
set -e
set -u
set -o pipefail
# determine the directory this script resides in
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
########################################################... |
83cc1fa8dc8959b96ced6163ccbc1d97b72ec563 | 187 | #! /bin/bash
#
gfortran -c -Wall sparse_grid_hw.f90
if [ $? -ne 0 ]; then
echo "Compile error."
exit
fi
#
mv sparse_grid_hw.o ~/lib/sparse_grid_hw.o
#
echo "Normal end of execution."
|
33b7df95c0a82db2b2e2e27a9405b931c5c4395b | 121 | #!/bin/bash
kubectl delete -f ./kube/redis.yaml
kubectl delete -f ./kube/api.yaml
kubectl delete -f ./kube/worker.yaml |
c7b618a6b81d922b3f2df029533f1b10fc94f4b9 | 442 | cd ..
python save_abnormal_xs.py --model forecast -nf campus_drive -af campus_drive_wn_1.4G
python save_abnormal_xs.py --model forecast -nf campus_drive -af campus_drive_fsk_1.4G
python save_abnormal_xs.py --model forecast -nf campus_drive -af campus_drive_psk_1.4G
python save_abnormal_xs.py --model forecast -nf campu... |
f717b0ae8c005fa3973b5d5f99ce5935a6e20556 | 2,751 | #!/bin/bash
PROJECT=$1
OPTION=$2
cd $(dirname $(readlink -f $0))
declare -A PROFILE
declare -A SAMBA_PROFILE
source <(cat etc/projects.d/*.conf)
PROJECT_MNT_PATH=~/mnt/$PROJECT
function checkMountPoint {
if [ -d "$PROJECT_MNT_PATH" ]; then
mountpoint "$PROJECT_MNT_PATH"
if [ "$?" == "0" ]; then
... |
67508637894463682c519b6b2e9f44550a0e9989 | 284 | #!/usr/bin/env bash
cd /home/pierre/Pictures/wallpapers/chosen/small-desktops
rm -f 0 1 2 3 4 5 6 7 8 9
for i in 0 1 2 3 4 5 6 7 8 9; do
ln -s "$(find ~/Pictures/wallpapers/chosen/small-filled -type f -print | shuf | head -1)" $i
done
notify-send "changed jellyfish backgrounds"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.