blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
2a651393ebd72498763f64291208d3d050d5a554 | 605 | #!/bin/bash
if [ ! -e "/bin/hab" ]; then
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
fi
if grep "hab" /etc/passwd > /dev/null; then
echo "Hab user exists"
else
useradd hab && true
fi
if grep "hab" /etc/group > /dev/null; then
echo "Hab group exists"
... |
d56abb5882c3487f93f426ecacf59add042f7cdc | 404 | #!/bin/sh
install_path="/etc/"
install_file="/etc/rc.local"
bootsh="farserver-boot.sh"
path=`pwd`
if [ ! -d "$install_path" ]; then
mkdir -p $install_path
fi
if [ ! -f "$install_file" ]; then
touch $install_file
fi
# del farserver autoboot
sed -i '/'$bootsh' start/d' $install_file
# add farserver autoboot
echo $... |
d6e77a6a0ed47560024efb07cf85fc45e9cbd9be | 840 | #! /bin/bash
lotus client list-deals -v > tmp/list-deals.txt
for x in *.zip.??; do
cat $x*.deal > ~/tmp/deals.txt
COUNT=$(cat tmp/list-deals.txt | grep -f ~/tmp/deals.txt | wc -l)
ACTIVE_COUNT=$(cat tmp/list-deals.txt | grep -f ~/tmp/deals.txt | grep Active | wc -l)
SEALING_COUNT=$(cat tmp/list-deals.txt | grep -f... |
f5b9e63c21c9750cc5d9c5b25429697c8c7f3426 | 820 | # User specific aliases and functions
alias la='ll -Ah'
#alias vi='vim'
alias gg='cd ~/go/src/github.com/grokh/gobot'
#alias gi='go install github.com/grokh/gobot'
#alias bot='cd /srv/bot/;tt++ katumi.tin'
alias tt='cd /srv/bot/logs/;tail -n 40 tells.log'
alias tb='cd /srv/bot/logs/;tail -n 40 bot.log'
alias db='cd /sr... |
a3d240ea121d17546fba46a98e1e23b28aae3496 | 90 | #!/bin/bash
gzserver -s libVisibilityPlugin.so --iters 1 --verbose worlds/swarm_vis.world
|
5324fae121f41d65f115d0f95051dbf1f90a7714 | 1,523 | #!/bin/sh
# prerequisites: wget, apt-get install squashfs-tools/brew install squashfs
export TCL_SERVER=http://tinycorelinux.net/6.x/x86_64
# generate ssh keypair
ssh-keygen -f hypercore.rsa -t rsa -N ''
# download rootfs + kernel
wget -c $TCL_SERVER/release/distribution_files/{corepure64.gz,vmlinuz64}
# download p... |
18a4eafcbee175b1dd2c8e2df994d15ab1db87f6 | 3,955 | # Contributor: Vlad Kolotvin <vlad.kolotvin@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emscripten-git
pkgver=1.37.21.88.g5d18b58b0
pkgrel=1
pkgdesc="LLVM-to-JavaScript compiler"
arch=('i686' 'x86_64')
url="http://emscripten.org"
license=('custom')
depends=('nodejs' 'python2' 'python')... |
d5d7bee153b4e88932d2ad30a2b67a2ca5da5758 | 181 | #!/bin/sh
cat /etc/passwd | grep -o '^[^#].*' | sed 's/:.*$//' | sed 'n; d' | rev | sort -r | head -n $FT_LINE2 | tail -n +$FT_LINE1 | tr '\n' ',' | sed 's/,/, /g' | sed 's/, $/./'
|
bd4ca357525e81c40690a16b7a2eadfcb11289e0 | 3,760 | # Faster RCNN: VOC->Clipart
CUDA_VISIBLE_DEVICES=0 python source_only.py \
--config-file config/faster_rcnn_R_101_C4_voc.yaml \
-s VOC2007 datasets/VOC2007 VOC2012 datasets/VOC2012 -t Clipart datasets/clipart \
--test VOC2007Test datasets/VOC2007 Clipart datasets/clipart --finetune \
OUTPUT_DIR logs/source_only... |
4fd85c2e191e060013d7f23c34b4f2e9b47f944e | 198 | #!/bin/bash
#SBATCH --time=24:00:00
#SBATCH --mem-per-cpu=8192
#SBATCH --job-name=gen
#SBATCH --error=./slurm/job_%J.err
#SBATCH --output=./slurm/job_%J.out
module load R
Rscript 2-generate.R 2500
|
f10105d7ef9c5912e34bf55b6b7147f96c2df0cc | 140 | HTTP_PORT: 8080
PG_HOST: "localhost"
PG_PORT: 5432
PG_USER: "postgres"
PG_PWD: "123456"
PG_DB: "db"
REDIS_HOST: "localhost"
REDIS_PORT: 6379 |
8f8008a48878dd81d815c72cd61771c80174326d | 21 | #!/bin/bash
IFS="\n"
|
358225d83ad0977db5412609b1380f4fa2732a07 | 348 | COL=$1
PATH_DATA=$2
SIMULTANEO=$3
#nohup ./xref.sh $COL /bases/org.000/teste/b4c.$COL/bib4cit /bases/org.000/teste/art.$COL/artigo /bases/org.000/teste/art.$COL >../log/$COL.`date '+%Y%m%d.%H%M%S'`.log&
./xref.sh $COL $PATH_DATA/b4c.$COL/bib4cit $PATH_DATA/art.$COL/artigo $PATH_DATA/art.$COL $SIMULTANEO>../log/$COL.... |
db258801a848b1ee76e6d6f7a2a6cb7c5786082f | 351 | # ensure dotfiles bin directory is loaded first
export PATH="$HOME/.bin:/usr/local/sbin:$PATH"
# mkdir .git/safe in the root of repositories you trust
export PATH=".git/safe/../../bin:$PATH"
# caching the brew prefix to speed up zshrc initialization
export BREW_PREFIX="/usr/local"
# Local config
[[ -f ~/.zshenv.loca... |
4a6ed9886b742c08eb96459086a28e543cbe632e | 1,136 | # Contributor: Loui Chang <louipc dot ist at gmail company>
# Contributor: rxvt <artwithin@gmail.com>
pkgname=skippy-xd
pkgver=0.5.0
pkgrel=4
pkgdesc="A full-screen task-switcher for X11, similar to Apple's Expose."
url="http://thegraveyard.org/skippy.php"
license=('GPL')
depends=('libxrender' 'libxcomposite' 'libxdam... |
391182e94eeb4e8116007d6b62b565a5579293c0 | 1,977 | #!/usr/bin/env bash
set -e
for cred in "-v3 -u usr-none-none -l noAuthNoPriv demo-snmp.thola.io" \
"-v3 -u usr-md5-none -l authNoPriv -A authkey1 demo-snmp.thola.io" \
"-v3 -u usr-sha-aes -a SHA -x AES -l authPriv -A authkey1 -X privkey1 demo-snmp.thola.io" \
"-v3 -u usr-md5-aes -x... |
146125435398530b5c61385d88a7404d727d3ddd | 56,810 | #!/vendor/bin/sh
#Copyright (c) 2019, The Linux Foundation. All rights reserved.
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this l... |
27e75790e3944dc2cb79285d40d008a41458157a | 984 | #!/bin/sh
set -e
set -v
git submodule init
git submodule update
bootstrapdir=bootstrap.gcc
mkdir -p $bootstrapdir
# set -e = die if no g++.
gcc_version=$(g++ -dumpversion)
cxx="g++"
if [ "$gcc_version" -ge 7 ]; then
ngen_cxx_std="c++17"
# cool: https://stackoverflow.com/a/33159746/352455
if [ "$gcc_ver... |
91592db009319145b983e824c72e4f516d67ffe6 | 674 | #!bin/bash
# Jaime Bohorquez
# Script to unzip all files in a directory
# Unzip must be installed. To install use:
# brew install unzip or for linux apt-get install unzip
# Check if the new storage directory exists.
if [ -z "$(ls zips)"]; then
mkdir zips # make a directory where to store the zip files
fi
# Loop t... |
d95d9f626b543dda861d0917a3c831fd7270da3c | 303 | #!/usr/bin/bash
source $HOME/.shell/env
# Custom functions
# setxkbmap -option 'caps:escape'
# Aliases
# Git for dotfiles
alias dots='/usr/bin/git --git-dir=$HOME/.local/dotfiles --work-tree=$HOME'
# Start fish
# if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]]
# then
# exec fish
# fi
|
9355763aada0b9e5184a92fb1c3f5b5b385eef2b | 81 | export NEWS_API_KEY='93bc8eccb4d947bc93ef94e04d64e40c'
python3.6 manage.py server |
636ba056b86987da876d348c9f516b77aa4ab18d | 458 | #!/bin/bash
dir=/tmp/sl_web_test
rm -rf $dir
mkdir -p $dir
cp run_local $dir/
cp ui.R $dir/
python ../scripts/UpdateVersion.py server_template.R ../VERSION False $dir/server.R
cp shiny-server.conf $dir/
cp -r www $dir/
mkdir $dir/ShinyLearner
cp -r ~/Dropbox/ShinyLearner/AlgorithmScripts $dir/ShinyLearner/
rm -rf $d... |
ed9ca01725e7b80c751a9d4120787cc13dffe59a | 62 | `REACT_APP_DATOCMS_API_TOKEN=<ead949ed4476b09eaad5475ee0981d>` |
586e7760be42fab2cdc764adb715b6dbd51c362c | 12 |
echo "Ciao" |
929d3ddf132ad25893c37e227093f216df1d2d14 | 512 | #!/usr/bin/env bash
echo ""
echo "Installation and checking docker-compose..."
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/... |
116f9349752d6161ef027940717ac81624ec9eef | 71 | #!/bin/bash
docker-compose -p sonarqube_server stop postgres sonarqube
|
f234220b535174de8212266172e343a69b7a89c5 | 303 | #!/bin/bash
clear
echo "Hello"
read -p "Please enter your name here": name
echo "$name" >> names.txt
clear
echo "your name $name has been successfully added"
echo "============================================="
cat names.txt
echo "============================================="
echo "bye $name"
sleep 2
|
99e7a1b61ff5b95f50ca030ce9e5af10526d6723 | 2,692 | #!/bin/bash +x
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
#set -e
CHANNEL_NAME1=$1
: ${CHANNEL_NAME1:="mychannel"}
echo $CHANNEL_NAME1
export PATH=$GOPATH/src/github.com/hyperledger/fabric/build/bin:${PWD}/../bin:${PWD}:$PATH
export FABRIC_CFG_PATH=${PWD}
echo
## Genera... |
e7d5da21d192ae3aed719c307513c83a32470305 | 58 | SKIP_PREFLIGHT_CHECK=true
SASS_PATH=node_modules:src/scss
|
99cfe7a46e504bfc26870e0b480f92f950c69ec5 | 30 | brew cask install juliastudio
|
6f70daad9886634e1d22f21d4e14776181b9613d | 137 | #!/bin/bash
#### changing hostname
hostnamectl set-hostname jenkins_node_1
## installing java
apt update -y
apt install openjdk-8-jdk -y |
916d6c72c80d157b4901c154ecca0c7fe8c4e8dd | 402 | #!/bin/sh
set -e
RSYNC_USERNAME=${RSYNC_USERNAME:-user}
RSYNC_PASSWORD=${RSYNC_PASSWORD:-pass}
echo "$RSYNC_USERNAME:$RSYNC_PASSWORD" > /etc/rsyncd.secrets
chmod 600 /etc/rsyncd.secrets
# Check and run if any script is available at /entrypoint.d path.
for f in /entrypoint.d/*; do
case "$f" in
*.sh) echo "$0: ... |
cb8c07f79627775b1fe92488377f1c7022ee7ff0 | 1,726 | # $Id$
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgbase=python-ipykernel
pkgname=(python-ipykernel python2-ipykernel)
pkgver=4.9.0
pkgrel=1
pkgdesc="The ipython kernel for Jupyter"
arch=('any')
url="https://pypi.org/project/ipykernel/"
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' ipython 'i... |
ad6a46662d58f201733721f8cdd3f532ee8c9b1b | 155 | MY_SECRET=ENV
PORT=3000
DATABASE=test
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_PORT=5432
DATABASE_MAX_CONNECTIONS=10
DATABASE_TIME=30000 |
f74cb0ee881c70e0b19f0c1293dc784d5355cb01 | 430 | #!/usr/bin/env bash
set -e
set -o pipefail
if [ ! `uname -s` = 'Linux' ]; then
echo ""
exit 0
fi
# check-cxx11abi.dat is a binary just so we can use the loader
# to take care of finding the libstdc++ which can be tricky.
LIBSTDCPP=$(ldd $(dirname $0)/check-cxx11abi.dat |grep libstdc++ |cut -d' ' -f3)
if [ $... |
c16a981a6cbe0de9cb1bb7bf90537ce6ae02eff9 | 129 | #!/bin/sh
gen=`hexo g`
add=`git add .`
commit=`git commit -m"a"`
push=`git push`
copy=`cp -ruv ./public/* ../stayzeal.github.io`
|
c145f3b2aa9148c71cfbf275b8fe22aec124a287 | 236 | #!/usr/bin/env bash
#=================================================
# name: deezer
# author: author <author_contact>
# date: 08/11/2022
#=================================================
chromium --app=https://www.deezer.com/en/
|
a23ae5c7a2f11927305ec68ac4af80e30c5f41b2 | 4,158 | #! /bin/bash
#to add PPC
for subject in 0006 0012 0273 0192 0490 0491 0269 0464 0494 0495 0549 0550 0557 0558 0559 0604 0605 0627
do
for roi in hand_knob_lh lh mfg_crest_lh
do
mri_label2label --srcsubject r2d4mean --srclabel /usr/local/freesurfer/subjects/r2d4mean/label/${roi}.label --trgsubject ${subject} --... |
6b26d516f754a30ae1eec49ff44bee90a1064cf3 | 995 | #!/bin/bash
mkdir -p /oasis/projects/nsf/azs119/edisj/Comet/benchmarks/h5py_stripe/results/$1/slurm_output
cd /oasis/projects/nsf/azs119/edisj/Comet/benchmarks/h5py_stripe/results/$1/slurm_output
for repeat in 1 2 3
do
sbatch /oasis/projects/nsf/azs119/edisj/Comet/benchmarks/h5py_stripe/scripts/24/copy_file.sh /o... |
da56dfd614b81fe12ed99a9ace4013d127fa6f21 | 60 | make normalize
export OMP_NUM_THREADS = 10
./normalize.exec
|
f6d13c0d3ff8667ec8a5e83ffb6d76bcc74e49fe | 278 | #! /bin/bash
# ATM run server
cd /tmp/ATM-SERVER/lib
runningJar=$(ls bluebank-atm-*.jar)
echo " -- launching ATM CLIENT (NGINX) : nginx"
nginx
echo " -- launching ATM SERVER : java -jar ${runningJar} org.bluebank.Application"
java -jar ${runningJar} org.bluebank.Application
|
c8b9645418ff029eea6195c61fb9513e49f079bb | 241 | #!/usr/bin/env bash
exec 3<>/dev/tcp/aur.kmkeen.com/1819
printf "%s\n" "$*" >&3
IFS=$'\n' read -u 3 -d '' -a reply
printf "%s\n" "${reply[@]}" | nl
# commands:
# n names
# d descriptions
# nd ^both
# $pkg info
#
|
5c41f379ea9680e29fa6731414e9cc17ac948a4a | 1,148 | #!/bin/bash
#PBS -N 20_500
#PBS -o /vol3/agis/zhangxinyan_group/zhangxinyan/luoxizhi/80_class2_gene_site_TE/zzz-qsub.history/qsub.20_500.13524.log
#PBS -e /vol3/agis/zhangxinyan_group/zhangxinyan/luoxizhi/80_class2_gene_site_TE/zzz-qsub.history/qsub.20_500.13524.err
#PBS -q low
# qsub parameter: "-q queue1 -l nodes=1:p... |
6e32b1ccada8a3309fb287b448a95ed2c6b545cb | 1,406 | #!/bin/bash
# Script to wrapper cal(1) and give it more sensible command-line
# parsing.
REALCAL=/usr/bin/cal
OPTS="-3 -m"
month=`date +%m`
month=$[1$month - 100] # trim leading zero, avoiding octal trap
year=`date +%Y`
# Possible invocations:
#
# Every invocation which prints a single month also prints the two
# ... |
00a68eb43a0bb99d757786ae927dc0274ff85f86 | 31 | export CUDA_VISIBLE_DEVICES=$1
|
684b0b633a0902c754170dc089e60461fcc364d5 | 324 | ./configure --prefix=/usr
makeinfo --html --no-split -o doc/dejagnu.html doc/dejagnu.texi
makeinfo --plaintext -o doc/dejagnu.txt doc/dejagnu.texi
make DESTDIR=$PLX_INST install
install -v -dm755 $PLX_INST/usr/share/doc/dejagnu-1.6.2
install -v -m644 doc/dejagnu.{html,txt} $PLX_INST/usr/share/doc/dejagnu-1.6... |
d2586b162a1d6d3ec1a066fa12b09a1e25d75365 | 7,199 | #!/bin/sh
#################################################################################################################
# Deploying to databricks involves 3 steps:
#
# 1. List existing jobs and find the job id with cluster name
#
# 2. Decide next step based on number of jobs found
# - If job doesn't exist, then cr... |
f41b9c5ddd4e2501fe93089a63282baec340c2bb | 595 | #!/bin/bash
/Users/amitseal/git/automating-boring-tasks-using-python/image_in_window_screensaver/venv/bin/python /Users/amitseal/git/automating-boring-tasks-using-python/image_in_window_screensaver/compress_images.py --path /Users/amitseal/Pictures/x/portrait/ --backup /Users/amitseal/Pictures/backup/
/Users/amitseal/g... |
3e41dfdbafc11789356e1dc0f4b00becb8a41dff | 2,427 | #!/bin/sh
#
# Copyright 2020 The Kubernetes Authors.
#
# 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 applicable law o... |
21971e4096d2d28a9ffdce73052700a19ba3d005 | 52 | #!/bin/sh -l
eval "/dna-annotate -i $1 -o $2 -p $3"
|
eaeb1ed8b2961e34c9cde2e99c17ed3bb9512d4e | 3,371 | # Maintainer: Tyler Swagar <buttpickle69@shaw.ca>
pkgname=ttf-merriweather
_commit='06e56b5a24d80a4a1ac94a71a0a05a98b5d02ef5'
pkgver=2.100
pkgrel=1
epoch=1
pkgdesc='A typeface that is pleasant to read on screens by Sorkin Type Co'
arch=('any')
url='http://sorkintype.com/'
license=('custom:SIL Open Font License v1.1')
... |
d619d7d19fe3571765a53941081b40d1184f32b0 | 1,909 | #!/bin/bash
mkdir -p /root/.config/rclone/
echo [$DRIVE_NAME] > /root/.config/rclone/rclone.conf
echo type = $DRIVE_NAME >> /root/.config/rclone/rclone.conf
echo scope = $DRIVE_NAME.$DRIVE_SCOPE >> /root/.config/rclone/rclone.conf
echo root_folder_id = $ROOT_FOLDER_ID >> /root/.config/rclone/rclone.conf
echo token = $D... |
d80d8cab8e553df571cdf3e457bd84674e9ee087 | 117 | #!/bin/bash
export BIOBOX_EXEC=${SRC}/gaet/evaluate.sh
export SCHEMA=${SRC}/gaet/schema.yaml
validate_inputs.sh $*
|
837992335b505f7c5566c0f62e558d4ff7cfc2b8 | 983 | TRIPLET=i686-elf-
rm -f obj32 bts32.bin tftpboot/bts32.bin 2>/dev/null
mkdir -p obj32
${TRIPLET}as src32/boot.s -o obj32/boot.o
${TRIPLET}as src32/interrupts.s -o obj32/interrupts.o
${TRIPLET}gcc -c kernel.c -o obj32/kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
${TRIPLET}gcc -c tests.c -o obj32/tests.o -std=g... |
c03fe59d499127b483ab20a185596a1189938a11 | 129 | #!/bin/bash
BIN="./qtcreator/CORPSE"
ARG="./data/params.lua"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:"./qtcreator"
$BIN $ARG
|
55f21635df16240000070711012166e9f88ee6e6 | 52 | #!/usr/bin/env bash
make -j2 lint && make -j2 test
|
73e5a7ac02fec703e6ed02f5f9c58c65ce0cbe34 | 1,161 | #!/bin/bash
# ./license.js
# ./saveAs.js
files="
./open_module.js
./asset_manager.js
./assetpack.js
./audio_event.js
./audio_recorder.js
./audio_track.js
./channel_effects.js
./event_statistics.js
./find_event.js
./instrument.js
./instrument_config.js
./key_edit... |
727253ff225aa5efc9b08a720ddbd5d62e4d2e17 | 5,093 | #!/bin/bash
#
# 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 applicable law or agreed to in writing, software
# distribute... |
bd099c96f1bc662b8c9ac96c4bef0103e9d12ab7 | 296 | #!/bin/bash
package=dbus-x11_1.2.24-4_amd64.deb
if [[ $package =~ .*\.deb ]]; then
#if [[ $package =~ (.+)_(.*)_(.*)\.deb ]]
echo " Package ${BATCH_MATCH[1]} Version ${BATCH_MATCH[2]} "\
"is for the "${BATCH_MATCH[3]}" architecture "
else
echo " File \"$package\" doesnot excits"
fi
|
0173d2e2cbe21fa1b3dbfaa5ca2521719bcf80da | 340 | MOUNT_DIR=$HOME/windows_share
REMOTE_DIR=//FS/TESK_LKK/
BACKUP_DIR=$HOME/9.4/backups/
# check if share is mounted
if mountpoint -q -- $MOUNT_DIR;
then
printf '%s\n' "$dir is mounted"
else printf '%s\n' "$dir is not mounted, exiting" && exit 1
fi
# Copy backups to remote windows location
rsync -avz $BACKUP_DIR $... |
c0f9e5aca665179d8f3702151d17a08828a019fe | 258 | #!/bin/bash
[ -d bin ] || mkdir bin
javac src/au/edu/griffith/ict/*.java -d bin/
echo 'Main-Class: au.edu.griffith.ict.Main' > manifest.txt
cd bin
[ -f coes-main.jar ] && rm -f coes-main.jar
jar cvfm coes-main.jar ../manifest.txt *
cd ..
rm manifest.txt
|
ac8879644d4852695e7082a7e7c6c2807c37074e | 1,092 |
MULE_SYSTEM_PACKAGES="libxft-dev libssl-dev texinfo"
if [[ "$DISPLAY" = ":0" ]]; then
export MULE_SYSTEM_PACKAGES="$MULE_SYSTEM_PACKAGES libgl1-mesa-dev libxext-dev"
fi
for i in $MULE_SYSTEM_PACKAGES; do
dpkg -s "$i" >/dev/null 2>&1
if [[ "$?" != "0" ]]; then
echo_error "Debian-based system detected and package... |
1ef453c3f975dce4086f6c9f98d340d3e83a8b08 | 314 | #!/bin/bash
docker-compose up --build --force-recreate -d
until [ "`docker inspect -f {{.State.Running}} backendtest_web_1`"=="true" ] &&
[ "`docker inspect -f {{.State.Running}} backendtest_db_1`"=="true" ]; do
sleep 0.1;
done;
docker-compose run web ./wait-for-it.sh db:5432 -- bundle exec rake db:setup
|
4dd9f64ba215621093be519b7c58cf21cbdb00a4 | 219 | echo "Will now install install_uninstall_qalculate
"
sudo apt-get update
sleep 2m
#
sleep 3
sudo snap install qalculate
sudo snap remove qalculate
echo "install_uninstall_qalculate
has been installed"
sleep 3
|
dc0a26feb74f09b3685c508abaf76a463d7cdf20 | 34 | #!/bin/sh
cd osi
ng serve --open
|
4595520495a11c634c2aac25159df5b63eae66f5 | 64 | #!/bin/sh
set -e
./tst_open_cdf5 ${srcdir}/bad_cdf5_begin.nc
|
1f25510d4c008e98b178b873cbacae73bad8720f | 649 | wmname LG3D
#terminusterminusterminusterminus killall compton
killall syndaemon
#killall xfce4-power-manager
feh --bg-fill /home/rchen/wallpaper.jpg &
pkill conky
killall breedaniel
pkill -f checkEmail
killall nm-applet
killall -r slack
killall workrave
killall background
killall pulseaudio
# MatrixMonitors
# BothMo... |
8f4b838d3dbd0f1d656e61a012b0eef9d71060ef | 68 | #!/usr/bin/env bash
set -e
go fmt ./...
go vet ./...
go test ./... |
13667824b82c5311800d8601bd8ea08b92cc5567 | 264 | #!/bin/bash
make
if [ $? -eq 0 ]
then
echo 'jar cf mazegen_plugin.jar com plugin.yml'
jar cf mazegen_plugin.jar com plugin.yml
fi
if [ $? -eq 0 ]
then
echo 'mv mazegen_plugin.jar test_world/plugins/'
mv mazegen_plugin.jar test_world/plugins/
fi
|
ccaca6fa187618c349b4542de8a4ff141b6b3cf7 | 91 | #!/bin/sh
pmap $(pgrep $1) | awk '/total/ { a=strtonum($2); b=(a/1024); printf b "Mb\n"};'
|
c77f8a75930b53224e26428b5f3487ae9e398dec | 371 | #!/usr/bin/env bats
load ../utils/_
setup() {
standard_setup
dfx_new
}
teardown() {
dfx_stop
standard_teardown
}
@test "repeated install wasm" {
[ "$USE_IC_REF" ] && skip "skipped for ic-ref"
install_asset custom_canister
dfx_start
dfx deploy
for _ in {1..50}
do
dfx ... |
0968fa60a8d6ccf3d4b6806b7dd67060264cf016 | 471 | # Rename this file from .env.example to .env
# Cloud project authorization info
ACCESS_ID ='YOUR_ACCESS_ID'
ACCESS_KEY ='YOUR_ACCESS_KEY'
# Select an endpoint base on your project availability zone
# For more info: https://developer.tuya.com/en/docs/iot/api-request?id=Ka4a8uuo1j4t4
ENDPOINT = "htt... |
06e11826d81208b92697351cbca568451cfed5f7 | 197 | #!/bin/bash
. /usr/local/lib/7dtd/common.sh
INST="dev"
STID=$1
MSG="$2";
echo "$MSG" >> /home/sdtd/instances/dev/hooks/scripts/msg.txt
RET=$(telnetCommand $INST "sayplayer $STID \"$MSG\"")
exit 0;
|
930e12e902353b7d861a94bfcca0221699f2f0a3 | 2,085 | # ----------------------------------------------------------------------------
#
# Package : antlr-runtime-3.4.jar
# Version : 3.5.2
# Source repo : https://github.com/antlr/antlr3.git
# Tested on : Ubuntu_18.04
# Script License : Apache License, Version 2 or later
# Maintainer : Kishor Kunal Raj... |
19082f1526b962eb8344707847ce84b1b0b0e69f | 39 | #! /bin/bash
echo $(mpc | sed -n 1p)
|
cb3cf2a72c76f52a95d2d5bd8a4c0473d2104be5 | 42 | #!/bin/bash
PORT=$1 node server/server.js |
803e6914ac7ffa5f8c841efc7271303e59ae4ae8 | 113 | #!/usr/bin/env bash
git add -f .secrets/ .media/
eb deploy --profile eb --staged
git reset HEAD .secrets/ .media/ |
d70a4578a985476b2a4bbf4ab90ee45e211055d7 | 382 | #!/bin/sh
APIKEY="API-KEY"
DOORLOCKID="DOORLOCK-ID"
DEVICEIP="DEVICE_IP"
RETURN=$(curl https://"$APIKEY":@"$DEVICEIP"/api/devices/doorlocks/"$DOORLOCKID"/unlock -k)
echo "$RETURN"
if [ "$RETURN" == '{"code":0}' ]; then
osascript -e 'tell app "System Events" to display dialog "Tür geöffnet"'
else
osascript -e 'tell... |
fb8f6c15231bea5bf7f3885fc5026c32a360d75a | 686 | #!/bin/sh
cd "${0%/*}" || exit
. ./helper.sh
. ../lib/sh_escape.sh
args () {
local arg i=0
for arg; do
i=$((i+1))
printf '%d:[%s]\n' "$i" "$arg"
done
}
assert_command_output 'white space' 0 \
'1:[ a]
2:[ b c ]
3:[d
e]
' \
'' \
eval args "$(sh_escape " a")" "$(sh_escape " b c ")" "$... |
d1f4bdac7b5cf43dcb762d8091c8e344b30fe250 | 77 | SECRET_KEY=django-insecure-+3*q2&r@j&q75x5010=i#1clpgddyghkm+e&fv7k=8t@hmmw)b |
9318dca6b014a8e64512bc4cd6a7d27ff89c0725 | 142 | echo "Type in an adjective:"
read adjective
echo "Type in a noun:"
read noun
echo "Type in an verb:"
read verb
echo "$adjective $noun $verb"
|
ad8d5683ab944356d3a4695f54ed9af1213e54de | 450 | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "gpu number needed"
exit 1
fi
CUDA_VISIBLE_DEVICES=$1 python3 main.py \
--use_tpu=False \
--data_dir=/calc/SHARED/imagenet/tf_records \
--model_name=efficientnet-b7 \
--model_dir=/calc/stoeckl/binary_populations/checkpoints/efficientnet/test-b7 \
--export_dir=/calc/s... |
f0b24f0953ec00231f0b239ef905abcbc60be8e9 | 1,692 | #!/usr/bin/env bash
set -eo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# This script just does what the README says, except with some extra validation and interactivity.
# If you're more interested in going through step-by-step, and avoiding rebuilds of files you've
# already bui... |
26eafd0ef6569c7fc04e8fcb2e3137f85ff341dc | 124 | #!/bin/bash
trap "echo Exited!; exit;" SIGINT SIGTERM
while true; do
ag -g '\.rb$' | entr -c -d -p -s 'rubocop -A'
done
|
96d732933adeebe586197ad768f4d0e9eaffd223 | 886 | #!/bin/bash
############################################################
# Get Master Server #
# #
# Returns a string representing the Master Server #
# #
# VE3RD ... |
92b48016ca0d88e1d208e8189634b6654d3e8029 | 408 | printf "\x1b[30mBLACK\x1b[0m\n"
printf "\x1b[31mRED\x1b[0m\t\x1b[41mRED\x1b[0m\n"
printf "\x1b[32mGREEN\x1b[0m\t\x1b[42mGREEN\x1b[0m\n"
printf "\x1b[33mYELLOW\x1b[0m\t\x1b[43mYELLOW\x1b[0m\n"
printf "\x1b[34mBLUE\x1b[0m\t\x1b[44mBLUE\x1b[0m\n"
printf "\x1b[35mMAGENTA\x1b[0m\t\x1b[45mMAGENTA\x1b[0m\n"
printf "\x1b[36mCY... |
b4c5a6829c52ae4200a51d779f08be3a37625f49 | 200 | #!/bin/bash
#Testing the test commmand
#
my_variable="Full"
if test $my_variable
then
echo "The $my_variable expression returns a True"
else
echo "The $my_variable expression returns a False"
fi
|
659e4adafe864d270a0f02a797496b87da555b38 | 1,485 | #!/usr/bin/env bash
mkdir -p data/{db1,db2,db3}
# Here we start our main MongoDB instance, in >3.6
docker run -d -p 27017:27017 -v $(pwd)/data/db1:/data/db1 \
-u 1000:1000 -h mongodb-nightclazz1 --network netnightclazz \
--network-alias nightclazz-mongo1 --name mongodb-nightclazz1 \
mongo:3.6.1 --port=27017 --dbpa... |
396d22b869ac196204914f3c4739a3b70cdc2666 | 2,532 | #!/bin/bash
function set_mysql {
echo "DB_DATABASE :";
read DB_DATABASE;
echo "DB_USERNAME :";
read DB_USERNAME;
echo "DB_PASSWORD :";
read DB_PASSWORD;
}
set_mysql
echo "Link git repository :";
read GIT_LINK;
echo "Project name: "
read PRO_NAME;
# Update
# apt-get update
# Install cURL & ZIP/... |
a21c8e0f6944f24aa9241c6bb7def729d545b23f | 839 | #!/bin/sh
sudo mount -o remount,rw /
sudo git clone https://github.com/pe1msz/castbin /usr/bin/castbin
sudo rm /usr/bin/cast-avrdude
sudo rm /usr/bin/cast-reset
sudo rm /usr/bin/cast-fan
sudo mv /usr/bin/castbin/* /usr/bin/.
sudo rm -r /usr/bin/castbin
sudo chmod +x /usr/bin/cast-avrdude
sudo chmod +x /usr/bin/cast-re... |
50d7189200589b64858029cf965fadaad1a7569c | 1,291 | #!/bin/bash
############################### ProbtrackX Peak Consolidator Script ###################################
# Created by Leigh Goetschius
# Date of Last Edit: 07.21.2017
# Initials of Last Editor: LG
# Purpose: The purpose of this script is to combine all of the peak files created using
# the previous scrip... |
b54573d3160091a68f0f3e262f368df050ddd0ab | 1,217 | #!/bin/bash
#jg, 14.06.2012
#Host Adresse
NETIO_URL=geode500:82
USER_NAME=geode500
PASS_WORD=geode500
SCALE_ADC0=204.6
DIM_ADC0=V
SCALE_ADC1=204.6
DIM_ADC1=V
SCALE_ADC2=204.6
DIM_ADC2=V
SCALE_ADC3=204.6
DIM_ADC3=V
SCALE_ADC4=40
DIM_ADC4=Volt
SCALE_ADC5=204.6
DIM_ADC5=kV
SCALE_ADC6=204.6
DIM_ADC6=V
SCALE_ADC7=204.6
DIM... |
73d40569089f2c1e1907b6733f8ef64f896a0f9a | 521 | #!/bin/bash
set -e
suffix=${1:=TEST}
function check {
time python -u ./mover_solnet.py -s --check -e exports_checked${suffix} |& tee log${suffix}.log
}
function pareto {
# TODO: this collapses same-name levels to one
./mover_solnet.py -e exports_temp${suffix} --read-from-folder exports_checked${suffix} -... |
a037dbbec7d3ebab261656a04daa38dc09e17cd3 | 366 | #!/bin/sh
if [[ $EUID -ne 0 ]]; then
echo "Cannot install without root priviledges, please use sudo" 1>&2
exit 1
fi
# Not all systems store manpages in the same place, so we may eventually
# want to use more complex logic for determining that path.
DIR=`dirname $0`
cp -v $DIR/torhost.py /usr/local/bin/torhost
cp -v... |
6e91f61174970032ab54a6df9ed90adb29a00340 | 538 |
#wget ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.wgs.phase3_shapeit2_mvncall_integrated_v5b.20130502.sites.vcf.gz
#wget ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.wgs.phase3_shapeit2_mvncall_integrated_v5b.20130502.sites.vcf.gz.tbi
curl -O ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/2013050... |
5870f6b14d54e7ce7d9e1a0873a89a8d5b6fd451 | 62 | #!/bin/sh
version='backup'
docker build -t redis:$version .
|
2df3d8cab07771e4cb424f44b88be5d2a3b2e900 | 4,835 | # -*- mode: sh -*-
# $MirOS: contrib/hosted/tg/progress-bar,v 1.4 2018/12/02 08:12:31 tg Exp $
#-
# Copyright © 2018
# mirabilos <m@mirbsd.org>
# Copyright © 2017
# mirabilos <t.glaser@tarent.de>
# Copyright © 2015, 2017
# mirabilos <thorsten.glaser@teckids.org>
#
# Provided that these terms and disclaimer and all copy... |
ca032e465d11dbbb38e1cf6647fe7d0c97b79c4a | 3,531 | #!/bin/sh
#
# bug.chk [arch]
#
# This uses publically available (available via anon-ftp from
# cert.sei.cmu.edu) data to determine if a security bug is present. It
# checks the date of the program in question against the cert advisory
# date, and, if it is older than that, it flags it as a potential
# bug/vulnerab... |
ffb1125b635fae166b840cc8717baea28a464b98 | 1,774 | #!/bin/bash
usage_exit() {
echo "Usage: $0 [-i|-s]"
exit 1
}
TOKEN=
FALG=false
while getopts is option
do
case $option in
i)
echo '-i option. Initializing the swarm and join worker nodes...'
echo "## docker container exec -it manager docker swarm init"
docker container exec -it mana... |
fa81f5ae16348bacffc3977d73daf652c3bd2a56 | 2,244 | #!/bin/sh
# Dirty hack, which will enable colorization for Maven
source $DOTFILES/maven/maven.bashrc
shopt -s expand_aliases
LOCATION=$(pwd)
REMOTE=${1:-origin}
BRANCH=$(git symbolic-ref -q HEAD)
BRANCH=${BRANCH##refs/heads/}
REPO_DIR="$(git rev-parse --show-toplevel 2>/dev/null)"
REPO_NAME=${REPO_DIR##*/}
BUILD_DIR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.