blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
45f98391a1db1b9a12fce4907bad5fa365328950 | 41 | FLASK_ENV=development
FLASK_APP=todolist |
02081a55449c1aebcc737603a5d4c76ecaff18b0 | 219 | #!/bin/bash
# docker compose
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
|
cd5a01e3fceba07f24f221effed86e5f015c4e07 | 713 | #!/usr/bin/env zsh -f
# get the latest stable build of Dropbox
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2013-06-10
POST_URL=$(curl -sL 'https://www.dropbox.com/release_notes/rss.xml' | fgrep -A1 'New Testing Build' | fgrep '<link>' | head -1 | sed 's#.*<link>##g; s#</link>##g')
URL=$(curl -s... |
1b70e6226e31daa8ec0a0e342e57fc68222f8783 | 1,193 | # Deploy shortcuts
alias devpush='rake deploy:dev'
alias devlogs='heroku logs -t --app propertybrother-prod'
alias prodpush='rake deploy:prod '
alias prodlogs='heroku logs -t --app propertybrother-dev'
# heroku
alias devconsole='heroku run rails c --app propertybrother-prod'
# Runs non-feature/integration specs firs... |
3a50fe29178e3532c83c2a75ad5ddf2299fec6d0 | 110 |
#http://subtech.g.hatena.ne.jp/secondlife/20110916/1316142314
tcpdump -i eth0 port 80 -s 0 -l -w - | strings
|
a9d3e833007bf632433d99e0c5de76dacebb2fb1 | 489 | #!/bin/bash
DATE="20200610";
EXP_CODES="{'A', 'B', 'C', 'D', 'E', 'F'}";
START=10
STOP=25
TRIALS="{"
for i in $(eval echo {$START..$STOP}); do
if (( $i == $START )); then
TRIALS="${TRIALS}'$(printf "%03d" $i)'"
else
TRIALS="${TRIALS},'$(printf "%03d" $i)'"
fi
done
TRIALS="${TRIALS}}"
matlab -nodisplay -nosplas... |
901e80ec341a5647dad477cb13e2d1dbb7b86b3a | 808 | #!/usr/bin/with-contenv bashio
# Fail hard on errors.
set -euo pipefail
# Load configurable options from options.json.
echo "Loading configuration..."
home_id="$(bashio::config 'home_id')"
gcp_project_id="$(bashio::config 'gcp_project_id')"
export HOME_ID="${home_id}"
export GCP_PROJECT_ID="${gcp_project_id}"
# Load... |
cf924afdbe84f5d3bd67067f05c88ba5345df6fa | 3,695 | #!/bin/sh
exec tail -n +3 $0
menuentry "Knoppix" {
loopback loop (hd0,msdos2)/xiso/knoppix.iso
linux (loop)/boot/isolinux/linux64 bootfrom=/dev/sda2/xiso/knoppix.iso acpi=off noeject noswap fromhd=/dev/sda2 knoppix_dir=KNOPPIX lang=en_GB apm=power-off initrd=minirt.gz libata.force=noncq hpsa.hpsa_allow_any=1
initrd (l... |
92cc3b50bb8653d34389075967e68a2803d587a8 | 893 | MY_HOSTNAME='theDarwinProject'
MY_SSH_PORT='24'
MY_INTERNET_PORT='1337'
MY_USER='master'
MY_USER_PASSWD="!!!theDarwinPr0jectIsAFuckingPr0ject!!!"
MY_USER_ID_RSA_PUB="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDwydc+FiLc+WAjSfUQT0lRnObG/qkMi9Vxds/+qHaYuwU/9lZRRd+kyDJFrHwGHFJNMAmQcViVRzNX6bZ7S7TwfWXQvDXae2V6VpKaqr2LrYcLol3urd... |
60fdda6c22ea2529a8358a6eb86733857fff300f | 4,431 | #!/bin/bash
set -e
DOTFILES_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DOTFILES_ROOT
export DOTFILES_LOG_FILE="/tmp/dotfiles.log"
DOTFILES_ONLY_DOTFILES=false
DOTFILES_NO_INTERACTION=false
DOTFILES_ACCEPT_MSCOREFONTS_EULA=false
DOTFILES_ARG_ROOT=false
DOTFILES_ARG_HELP=false
export overwrite_all... |
7808f62fe3885a51e825062767e7aa0356b1502d | 247 | export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=demo
export OS_TENANT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=demo
export OS_AUTH_URL=http://controller:5000/v3
export OS_IMAGE_API_VERSION=2
|
b23d37907a575435067acf1a8c2016a51ab25290 | 2,065 | # usage:
# after `git pull`, a full build is now `depsbcr`
# and after changes.. a `bcr` will recompile and relaunch chrome.
function deps () {
# --reset drops local changes. often great, but if making changes inside v8, you don't want to use --reset
env GYP_DEFINES=disable_nacl=1 gclient sync --delete_unversi... |
7ba0503c64747e8cb04d22df9bc0e5884ff3683d | 407 | #! /bin/bash
# description add authomatic all user
rm -rf group.ldif
rm -rf user.ldif
python group_make_ldif.py groupfile.txt group.ldif
python user_make_ldif.py user_file.txt user.ldif
# insisde from network or docker(from out must use ip address)
ldapadd -h ldap_schema -D "cn=Manager,dc=edt,dc=org" -w jupiter -f g... |
244ac3b964eea733df5cc05a0fd4cbdcd786a4d5 | 459 | #!/bin/bash
####################################
#
# Installs consul in macOS 10.13.6 (17G65)
# Darwin 17.7.0 2018
#
# ref.:https://www.consul.io/downloads.html
#
####################################
# latest 1.2.3
# ./install_consul.sh 1.2.3
wget https://releases.hashicorp.com/consul/$1/consul_$1... |
5da780941e4337915f3d75d2c23db1240f18e104 | 1,168 | #!/usr/bin/env bash
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2017-09-13 14:47:23 +0200 (Wed, 13 Sep 2017)
#
# https://github.com/HariSekhon/Dockerfiles
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally se... |
b7917b92a80be1a101231b2df5d436d0fc1f5266 | 3,774 | #!/bin/bash
# CentOS Linux release (version?) 系统 初始化脚本
# Powered by Reborn
# 参考 https://github.com/bboysoulcn/centos
add_user() {
echo "starting add user ..."
read -p "Username:" username
echo "Password:"
read -s password
sudo adduser $username
if [ "$?" = "0" ]; then
echo $password | sudo passwd --std... |
0f4a0a69e38f4b84adecb3a90c0bc6934888ffb0 | 68 | #!/bin/bash
ASSWORD_PASSWORD=prompt assword_add_or_replace.sh "$@"
|
eea5a99c768d4780a759108cc0b9fc20ff3207c3 | 792 | #!/bin/sh
echo "Preparing OpenVPN build environment"
pkg update
pkg install --yes sudo automake autoconf fping git lzo2 liblz4 \
libtool mbedtls cmake
# make sure tap driver is loaded (tun automatically is)
kldload if_tap
if grep if_tap /boot/loader.conf
then
echo "loader.conf already has if_tap"
else
echo ... |
2d50baeb4988652c351256faedb78267f15ad6b9 | 163 | #!/bin/bash
#APP="${1}"
APP=$*
function activate_app {
/usr/bin/osascript <<END_SCRIPT
tell application "${APP}"
activate
end tell
END_SCRIPT
}
activate_app
|
265a229305fe20f598182711a69adc12f7657cef | 223 |
function language() {
echo -e "\033[0;36m\t"
echo "***** $1 *****"
echo -e "\033[0m"
}
function section() {
echo -e "\033[0;33m\t\n== $1 ==\033[0m"
}
function step() {
echo -e "\033[1;31m$1\033[0m"
}
|
c1e0170ae7636679beeb753186b1f449442185a0 | 91 | alias tabml_build_protos='cd $TABML; protoc -I=./ --python_out=./ ./tabml/protos/*.proto;'
|
0249cc65375f0beaedd55d4dd0431099d6090133 | 629 | #!/bin/bash
source set.sh
#confjs="${mongosdir}/conf.js"
#mongo_cmd="docker exec -it ${mongosname} mongo "
mongos_host=127.0.0.1
echo "
db = connect('${mongos_host}:${mongos_port}/admin');
db.getSiblingDB('admin');
sh.addShard('shard1/${host1}:${shard1_port},${host2}:${shard1_port},${host3}:${shard1_port}')
sh.addS... |
2ced3d14b879aed674226c65e7c748c4ef5af18e | 2,227 | #!/bin/bash
# Copyright 2020 Crown Copyright
#
# 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 agree... |
9c611a2524cd7e23b08cee5a21ad08fe006b3c18 | 37 | RABBITMQ_URL=test:test@10.251.11.134
|
f91965e85279d3928da2975fc9e0b0f43091d2b7 | 299 | #!/usr/bin/env bash
export CURR_DIR=`pwd`
export SRC_DIR="$CURR_DIR/src/main/java"
export DEMO_HOME="$CURR_DIR/target"
export RTI_FILE="conf/RTI.rid"
export LOG4J="log4j.configurationFile=conf/log4j2.xml"
export IPV4="java.net.preferIPv4Stack=true"
export CONFIG_FILE="$DEMO_HOME/conf/config.json"
|
3ecc358a28f81a30b50456160f649ca501e0e81b | 80 | ADAPTER=${1:-"vboxnet1"}
sudo ifconfig $ADAPTER down
sudo ifconfig $ADAPTER up
|
73cacd6c7883203d1bd0ac3bc219c4398bc52761 | 1,026 | java -jar target/benchmarks.jar SimplifiedBenchmark2.benchmarkDirect -f 1 -i 10 -wi 10 -bm avgt -tu ms -jvm /home/aroger/dev/dev8/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -jvmArgs "-XX:+PrintOpto -XX:+WizardMode -XX:+PrintMethodData -XX:+PrintMiscellaneous -XX:+TraceOptoParse -XX:+PrintNMethods -XX:+Pri... |
b7fd2b4515a18f267c7623c576d3372d08df6c86 | 171 | cd out
rm -Rf .git
git init
git add -A
git commit -a -m "Deployed at $(date)"
git remote add origin git@github.com:BoostIO/boostio.github.io.git
git push -f origin master
|
aaa475a7391f80836a8f4a7056186a082567363b | 53 | #!/bin/bash
make clean && make all && make program
|
52347caead6e1bb05401f2d96efb1965b52762a5 | 146 | #!/usr/bin/env bash
id=$(xdotool search --class "$1" | awk 'NR == 1')
if [ "$id" != "" ]
then
bspc node "$id" --flag hidden -f
else
$1 &
fi
|
e54377e53cb2fe216a51c3c897a8367c7406d53e | 1,850 | #!/bin/sh
# High Memory Command - Jobarray
# Run only about 20 at a time. Kill any jobs on the same node as the memory will grow and kill it.
# bsub -J "makecorr[108,109,111,113]" -q week -o "makecorr%I.out" -R mem32 -R RH5 -R blade2 /afs/isis/pkg/matlab-2009b/matlab -nodisplay -nojvm -nosplash -r create_corr_matrices
... |
e93d11cb4d48a2cfc282559571844642b595a700 | 342 | #!/bin/bash
user='nginx'
if [[ $1 ]]; then
IFS=':' read -ra arr <<< "$1"
if [[ ${arr[0]} ]]; then
user=${arr[0]};
fi
fi
spawn-fcgi -M 0660 -s /var/run/fcgiwrap.socket -u $user -g nginx -U $user -- `which fcgiwrap`
chmod -R g+rw /var/run/fcgiwrap.socket /etc/nginx/conf.d/*
chown -R :nginx /etc/nginx/conf.d/*
n... |
4d68cd9e513dd8c29224f2fab5c7dd3827954de4 | 142 | #!/bin/sh
xsetroot -cursor_name left_ptr &
dispcalGUI-apply-profiles &
feh --bg-fill -z ~/wallpaper/*.* &
thunar --daemon &
clipit &
urxvtd &
|
7abbb9f1e091ac126aa3cc353111b0f245f3de5d | 1,886 | #!/bin/bash
#
# Copyright (c) 2018, SixSq Sarl
#
# 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 l... |
a0450ae97339b8e47c2c2802c149c27aeadb9163 | 1,977 | #!/bin/bash
ApiUrl="${EX_ApiUrl:-}"
Html5Mode="${EX_Html5Mode:-false}"
EnableSsl="${EX_EnableSsl:-false}"
EnableAccountCreation="${EX_EnableAccountCreation:-true}"
OAuth="${EX_ConnectionStrings__OAuth:-}"
IFS=';' read -a oauthParts <<< "$OAuth"
for part in ${oauthParts[@]}
do
key="$( cut -d '=' -f 1 <<< $part )"; e... |
466bea798e8a4b6cfbc006a467ec8942c6f33421 | 182 | Finding file with regexes
Extracting `tar` files to a specific directory
Deleting non-empty directories
Working with `.gz` files
Find the unknown process preventing deleting of files |
6b58c3cf775a89ad00ac876ea8192dbae12506e3 | 820 | #!/bin/bash
sqlite3 ctf.db 'CREATE TABLE categories ( id INTEGER PRIMARY KEY, name TEXT );'
sqlite3 ctf.db 'CREATE TABLE tasks (id INTEGER PRIMARY KEY, name TEXT, desc TEXT, hint TEXT, solve TEXT, author TEXT, file TEXT, flag TEXT, score INT, category INT, FOREIGN KEY(category) REFERENCES categories(id) ON DELETE CASC... |
88ef977e2a3a114491308c46e5cdb318e9bdf234 | 887 | read -p "Name of integration: " name
echo "Copying files"
cd ..
cp -r upsales-node-integration-template $name
cd $name
sed -i "" "s/upsales-node-integration-template/$name/g" package.json
echo "# $name
_Short description what the integration does_
## Where is it?
_Where is it running_
_What endpoint does it listen to... |
417a1a5328fa2564ea27daf615132a6430ec6f3e | 356 | #!/bin/bash
set -e
#docker rm -f postgres || true && docker run -d -p 54321:5432 --name postgres postgres
#docker rm -f pgadmin || true && docker run -p 5050:5050 -d --name pgadmin "thajeztah/pgadmin4"
docker rm -f mongo || true && docker run -p 27018:27017 -d --name mongo mongo
docker rm -f redis ||true && docker run... |
d66768489b52d9e44fec8df81ce6a26f76ff0e33 | 166 | #!/bin/bash
mysql < /usr/share/zoneminder/db/zm_create.sql
mysql -e "grant select,insert,update,delete,create on zm.* to 'zmuser'@localhost identified by 'zmpass';"
|
6625508e2bd5dacb01630b57b634d5c71dae983f | 7,045 | #!/bin/bash
# A simple countdown timer written in bash script
# Author: Timothy Lin <lzh9102@gmail.com>
# Date: 2011-07-21
# Messages
INTERRUPT_MSG="Count down stopped by user interrupt."
TIMEUP_MSG="Time is up."
# Constants
SEC_PER_MIN=60
SEC_PER_HOUR=`expr $SEC_PER_MIN \* 60`
SEC_PER_DAY=`expr $SEC_PER_HOUR \* 24`
... |
ac7b6b77ae4682b64b9372b4b1609675b92e085f | 410 | #/bin.bash
USER=`whoami`
rdesktop -d 3INTERNAL 172.28.64.150 -k sv -g 1853x1056 -P -b -D -N -a 16 -z -5 -x m -z -B -r sound:off -r disk:share=/mnt/foretag/$USER/Documents/
# -z add for RDP datastream compression
# -P bitmap aching, speeds up xfers
# -F forcibly disable the internal backing buffer
# -b Force the se... |
91be0718987530d4d93bb5918a52806beb3150cb | 133 | # project
HOST=
DOMAIN=
# django
DEBUG=True
SECRET_KEY=
EMAIL_HOST=
# database
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=5432 |
1ce7d61b701145fd67309727dde5640422bfadca | 125 | #!/bin/bash
docker run -d -p 5701:5701 --name hazelcast1 -e "GROUP_NAME=test-group" -e "GROUP_PASS=test" fferreira/hazelcast
|
790052cf8efe8338aee2fec4c6f9a6ee3ae088dd | 746 | cd $MTURK_CMD_HOME/bin/
./grantBonus.sh -workerid A1CF8UAT2GVF4R -amount 3.0 -assignment 3DEL4X4EL7W1AHX2F3345MKXQPKYXE -reason "Bonus Payment"
./grantBonus.sh -workerid A20YCH1UOFGQZB -amount 3.0 -assignment 32ZKVD547GYTHBXDLMIWQVXSYLUB35 -reason "Bonus Payment"
./grantBonus.sh -workerid A28NNO56HW1N3B -amount 3.0 -as... |
7802b47562305a496d437cbf0fd620c7545debb7 | 413 | #!/bin/bash
echo 'Usage :'
echo 'Get connected camera list'
echo '$ v4l2-ctl --list-devices'
echo ''
echo 'To import pyrealsense in python script, please use the following syntax'
echo '> import pyrealsense2.pyrealsense2 as rs'
echo 'instead of'
echo '> import pyrealsense2 as rs'
echo ''
echo 'Get more examples from h... |
a70c6a7d1b0c11eb2ab7f11078f7e4d8035cf708 | 198 | #!/usr/bin/env bash
source scripts/build/.variables
set -e
CGO_ENABLED=0 go build -x -ldflags '-w -extldflags "-static"' --ldflags "${LDFLAGS}" -o _exe/lw github.com/liquidweb/liquidweb-cli
exit 0
|
3494d0bd917e1e1ef2b36741368c993a31a19d9e | 178 | #
# Copyright SecureKey Technologies Inc. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
VAULT_DSN=||MONGODB_DSN||
VAULT_REQUEST_TOKENS=||VAULT_REQUEST_TOKENS||
|
5b2de971de2104b9d126f69b25dcd09d445ecf4b | 238 | # Local setup, called from tconf/setup.sh
INPUT=$TCONF/local
hml shell/bash_profile .bash_profile
hml etc/xinitrc .xinitrc
hml etc/yaourtrc .yaourtrc
hml etc/gpg-agent.conf .gnupg/gpg-agent.conf
hml etc/pam_environment .pam_environment
|
f3575e717e21e6b1b058a9d6456cd2d64969ced5 | 76 | #!/bin/bash
for fruit in $*
do
echo "I readlly like ${fruit}s"
done
|
5dccb61178c89eab256286c4eb7e4360ed7b346e | 218 | #Search by Leverage, Direct
#Search by Leverage, Layered
#Search by Lift, Direct
#java opus/OpusMiner -l -k 100 -s IE splice.data.csv splice.data
java opus/OpusMiner -l -p -k 100 -s IE splice.data.csv splice.data |
e972556b17f30e492c8ea243733f83c79dae4904 | 2,734 | if [[ ! "$PATH" == *"$HOME"/.local/bin* ]]; then
export PATH="$HOME/.local/bin${PATH:+:${PATH}}"
fi
export LESSCHARSET=utf-8
export VISUAL=vi
export EDITOR=vi
export LESSEDIT="vi %f"
export FZF_DEFAULT_COMMAND=fd
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
bindkey -e
autoload -Uz colors
colors
autoload ... |
fc02bdad97335b7d0a20b2b88766eed713eeff77 | 928 | # $Id: PKGBUILD 164529 2016-03-03 17:18:57Z jlichtblau $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
pkgname=colorgcc
pkgver=1.4.4
pkgrel=2
pkgdesc="A Perl wrapper to colorize the output of compilers with warning/error messages matching the gcc output f... |
72bc289614ece0a5327dd4dcd762e14c2b8b9677 | 399 | #! /usr/bin/env bash
set -o nounset
set -o errexit
# Importing the Root CA's certificate into the Intermediate CA's key store.
"$JAVA_HOME/bin/keytool" -importcert \
-alias "$ROOT_ALIAS" \
-file "$ROOT_CERTIFICATE" \
-keypass "$INTERMEDIATE_KEYPASS" \
-keystore "$INTERMEDIATE_KEYSTORE" \
-noprompt \
-rfc \
-sto... |
a5679ab08cf43db701e59f61e6c59ce30b972a2c | 948 | # Truth studies for RunII SUSY EWK
# Script for creating separate file lists for each sample
# Joakim Olsson <joakim.olsson@cern.ch>
# 2017-02-07
## February truth samples
#jo_version=feb2017
#tag=20170204_30k_1
## New truth samples, same generator settings as the "February samples" just different mass points, in or... |
e6760da12945156c4460ce5494c0e980985ea184 | 153 | java -jar /media/disk6/Dropbox/dev/in-mem/in-mem-web/target/in-mem-web-1.0-SNAPSHOT.jar server /media/disk6/Dropbox/dev/in-mem/in-mem-web/in-mem-web.yml
|
77b699dcf2439f1d029a9922b0bf28b1e2ed1235 | 2,689 | #!/bin/sh
LOG="@@LOG@@"
ERR="@@ERR@@"
# export PATH="@@GCCDIR@@:$PATH"
export ARM_TOOLCHAIN="@@TOOLCHAIN@@"
export ARM_SYSROOT="@@SYSROOT@@"
export ARM_HF_TOOLCHAIN="@@TOOLCHAIN@@"
export ARM_HF_SYSROOT="@@SYSROOT@@"
export I686_TOOLCHAIN="@@TOOLCHAIN@@"
export I686_SYSROOT="@@SYSROOT@@"
export X86_64_TOOLCHAIN="@@T... |
d91fb9e720d54665c95232a07f7c6eec1ed9af3f | 42 | #!/bin/bash -x
utils/ci-status-product.sh
|
a9bfd6808830b211e79b18474bb053db11c52500 | 1,239 | #! /bin/sh -e
### BEGIN INIT INFO
# Provides: cfupdater
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Cloudflare dynamic DNS
# Description: Cloudflare Dynamic DNS Updatre
### END INIT INFO
#
# Author: Mat... |
d20c2d46171c99ad4adb73910b98ff7dc7b905d8 | 115 | #!/bin/bash
export COMPOSE_PROJECT_NAME=ipfs
echo "Starting IPFS Node...."
docker-compose -f ./ipfs.yaml up -d
|
5d959f01683cf101819573ad155526bf94d92ff1 | 795 | #!/bin/bash
#初始化
LOGS_PATH=/usr/local/nginx/logs
YESTERDAY=$(date -d "yesterday" +%Y%m%d)
#按天切割日志
mv ${LOGS_PATH}/access.log ${LOGS_PATH}/access_${YESTERDAY}.log
#进行打包
cd ${LOGS_PATH}
tar -zcvf access_${YESTERDAY}.log.tar.gz access_${YESTERDAY}.log --remove-files
#向nginx主进程发送USR1信号,重新打开日志文件,否则会继续往mv后的文件写数据的。原因... |
5448b9c30b355b92e27ba9c61451c7b11a517db4 | 264 | #!/bin/sh
OsScriptsFolder="~/Desktop/scripts"
mkdir $OsScriptsFolder
cp -rf ./vm-mount.sh $OsScriptsFolder
sudo sudo chmod +x "$OsScriptsFolder/vm-mount.sh"
echo "if doesn't work then: crontab -e, add below"
echo "@reboot $OsScriptsFolder/vmware-mount-shared.sh" |
022b4880ff09148079366190f34926b8b4c1b1f3 | 252 | #! /bin/bash
jest \
--automock false \
--collectCoverage true \
--coverageDirectory "../pages/coverage" \
--coverageThreshold '{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}' \
--setupFiles "./jest/setup.js" \
$1
|
93b87f8a6a39ca61d7965bdf4156d58777bd9199 | 1,911 | #!/bin/bash
recNr=$1
#FILES=/NAS/BeeNas/01_RawData/00_rawh264files/$recNr/*.h264
inputPath="/NAS/BeeNas/03_ProcessedData/01_ghosting/00_ghost_avg-10m_jpg"
outputPath="/NAS/BeeNas/03_ProcessedData/01_ghosting/01_ghost_ravg-90m_jpg"
tempPath="/NAS/BeeNas/03_ProcessedData/01_ghosting/temp/ravg-90m"
fileCtr=0
#create out... |
032a5ce0f681d4c44a286f842b3475a55bd40095 | 2,708 | # For bare-metal emacs
#
# There are three context's that I consider for using my text editor
# of choice:
#
# * EDITOR - uh? I forget. I think it's less used for my cases. (I
# use VISUAL and GIT_EDITOR more often.)
# * VISUAL - this is for visual paging of things like man-pages or
# grep results
# * GIT_EDITOR... |
09f1f60e65989ecbccfeba0ba3ef53a3a2f28cbb | 94 | #!/bin/bash
gcc -g gen.c -o gen
gcc -g 12-8Ham.c -o ham
gcc -g -pthread threadDecode.c -o td
|
9d0df5089d2a461fc9552cbc9747302710f1ee9a | 143 | cd ~/.config/dwm && doas make clean install
cd ~/.config/dmenu && doas make clean install
cd ~/.config/st && doas make clean install
cd
startx
|
fc295f51d93fff844ebe4c8ab8a5f92de3cb4fc3 | 334 | #!/bin/bash
ldtr test/data/lotr.ttl -e
cat test/data/very_compact.jsonld | ldtr -t jsonld -e
echo '
<article typeof="foaf:Person">
<p property="foaf:name">Some Body</p>
</article>
' | ldtr -t html
echo '
<foaf:Person
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<foaf:name>Some Body</foaf:name>
</foaf:Person>
' ... |
e276c969ed133b253e73d97da16b4092a6a2901a | 59 | #!/bin/bash
printf '\e[8;50;130t'
clear
python3 main.py $@
|
a2aea46ccb5b6b50da1e747c92072f2d4c646728 | 11,122 | #!/bin/bash -e
umask 266;
WorkingDir=`pwd`;
#
# Error Codes
#
EASY_RSA_REQUIRED=2
FAILED_TO_INIT_CA_PKI=3
FAILED_TO_INIT_CA_CERT=4
FAILED_TO_INIT_SERVER_PKI=5
FAILED_TO_GENERATE_SERVER_CERT_REQUEST=6
FAILED_TO_IMPORT_SERVER_CERT_REQUEST=7
FAILED_TO_SIGN_SERVER_CERT_REQUEST=8
FAILED_TO_CREATE_DIRECTORY=9
FAILED_TO_COP... |
8cf0696090f4ae483e536853a77d832ed861bf15 | 246 | #!/usr/bin/env bash
cd /vagrant
# Install Laravel
composer global require "laravel/installer"
# Add Laravel to PATH
echo 'PATH="$PATH:~/.config/composer/vendor/bin"' >> /home/vagrant/.profile
# Load new PATH now
source /home/vagrant/.profile
|
c8749885323c5b05584efd8fe396927f37cf914c | 158 | JWT_SECRET=ThisIsSomethingThatShouldRemainSecret
NODE_ENV=production
MASTER_PERMISSION=4
ADMIN_PERMISSION=3
EMPLOYEE_PERMISSION=2
USER_PERMISSION=1
PORT=8080
|
e76beb619d4f9c25b66fbc6b4a7ad2d06016d89f | 1,896 | #!/bin/bash -e
#Attach EFS to K8S / microk8s
#run syntax is sudo /bin/bash EFS_Provisioner.sh <EFS DNS Name> <EFS File System ID> <region>
#example sudo sh EFS_Provisioner.sh fs-12345678.efs.us-east-1.amazonaws.com fs-12345678 us-east-1
#dont forget to run chmod 555 EFS_Provisioner.sh
#$1=DNS name of EFS, examp... |
5d3353636825aede8a6331f9bd77a78bbe78b2da | 373 | #!/bin/bash
while ! psql -h postgres -U postgres orthanc -c 'select now()'; do sleep 1; done
COUNT=0
#
# in gen3 /data/ presents as a mount point,
# but in docker-compose it just looks like a folder
#
while ! mount | grep '/data/' && [[ "$COUNT" -lt 20 ]]; do
sleep 1
COUNT=$((COUNT + 1))
done
if [[ ! -d /data/ ]]... |
ef91a3f6d663fefffc04187c61133bb3ffc2b58d | 2,642 | #! /bin/bash
bold=`tput bold`
dim=`tput dim`
undr=`tput smul`
norm=`tput sgr0`
warn=`tput setaf 3`
good=`tput setaf 10`
blue=`tput setaf 12`
# get machine ip
ip=`dig +short myip.opendns.com @resolver1.opendns.com`
# warn user about DNS
printf "\n${bold}${blue}Welcome to the writefreely one-click setup wizard.${norm... |
fe6e3cb35b5d5cfa00d0f9ee9b9cedc672bcd2bb | 1,919 | #!/usr/bin/env sh
################################################################################
# Prototype: webcam live stream with ffmpeg direted to a local icecast server.
# An icecast server must be setup with the following minimal mount point
# configuration:
# <mount type="normal">
# <mount-name>/iot-lab</... |
676f7125954da8c4fe0afd4f55fb08387b9acf6e | 123 | #! /bin/bash
for x in $(ls *.root); do
a=$(date "+%M_%H_%m_%d_%y_")
echo $a$x
mv $x plots/rootfiles/$a$x
done
|
b12328715dcb9756890f93f2ce7686e71c2e3ebd | 74 | #!/bin/bash
for i in {2..10}; do
./main.o >> "sequential_$i.csv"
done
|
026fbf13b19e040eef081196a1d673ab8f86cd81 | 217 | #!/bin/sh
xrandr --output DP-0 --mode 1920x1080 --rotate right --pos 0x0
xrandr --output DP-2 --primary --mode 1920x1080 --pos 1080x670 --rotate normal
xrandr --output DP-6 --mode 1920x1080 --pos 3000x0 --rotate left
|
193d5cb874811748d14eae676c8068fda16d29a7 | 4,314 | #!/usr/bin/env bats
source vault-bash-completion.sh
load get_completions
fail() {
echo "$@" > /dev/stderr
return 1
}
@test "'vault ' => commands" {
run get_completions 'vault '
[[ "$status" == 0 ]]
output=$(echo "$output" | paste -s -d ' ' -)
[[ "$output" =~ 'audit-disable audit-enable audit-list auth' ]... |
8ca407f1ba530961c6fa873dd8f07d0a226f3e77 | 1,821 | #!/bin/bash
# <udf name="machinename" label="Hostname - make sure reverse DNS is setup" example="hostname"/>
# <udf name="publicip" label="Linode Public IP" example="178.79.134.167"/>
# <udf name="publicnetmask" label="Netmask" default="255.255.255.0" example="255.255.255.0"/>
# <udf name="publicgateway" label="Gateway... |
7731768b7ccb1d9d17373e49a2e5a06859c331c4 | 99 | #!/bin/bash
./ApplyObservers -NoDomainHistory -v -t Nid_g,Nid_K,Nid_N -r 11,11,Scalar FindAh.input
|
d3d462c0f91f63086aa5125ff5f64a5edc5cfaa7 | 1,615 | #!/bin/bash
# Author: JA Vieitez (github.com/javieitez)
# Quick and dirty script to find a Date stamp in a URL. This is useful for checking logs to be up to date, or to check a proper refreshing of a given webservice.
# Check the date command man page for date options
# help requested or invalid parameters
#######... |
79e5e0c9190e7f2cd63d103fc7fc5c69674d7d93 | 127 | #!/bin/bash
echo "Enter a string"read s
if [[ $(rev <<< "$s") == "$s" ]]
then
echo "Palindrome"
else
echo "Not a Palindrome"
fi |
44eb59f34dc41a90f108b5d23569fc19c9782910 | 1,394 | set -u
set -e
debootstrap --components=main,universe,multiverse --include=vim,build-essential,git,redis-server,lua5.1,postgresql,libpq-dev,python-dev,python3-dev,memcached,mongodb,libperl-dev,ruby,wget,ruby-dev,language-pack-en,libcurl4-openssl-dev,mysql-server,libyajl-dev,beanstalkd,ssh,rsync,libluajit-5.1-dev,curl,ip... |
a5a17ea194bf35ebfe4268e48d8df71d4a197f0e | 961 | #!/bin/bash
# @author Ryan McIntyre
# log like: /c/wamp/www/proto/portal/log/frontend_local.log
ME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
MY_DIR=`dirname $0`
if [ -e $MY_DIR/unix-color-codes-not-escaped.sh ]; then
. $MY_DIR/unix-color-codes-not-escaped.sh
fi
if [ $# == 0 ]; then
echo -e "${... |
4fadcfa2797987e00c090ff4db60d11c0cb104da | 676 | #!/bin/bash
echo "REMINDER: this file should be ran inside the log folder"
for FILE in *.csv
do
LINES=$(cat $FILE | grep -v memory)
## Truncate file
> $FILE
for LINE in $LINES
do
if [ "$LINE" == "Type,Seconds,MegaBytes" ]; then
echo $LINE >> $FILE
else
## Get unix timestamp
TIMES... |
ab88904d09907a1d81db78f17a311b9432ccde5a | 200 | SHOPIFY_APP_HOST=https://a3436070.ngrok.io
SHOPIFY_APP_KEY=84b5cbb3626869c0d9e9b933f4a5caa8
SHOPIFY_APP_SECRET=f6b6e7d042a2b5ef0945e92c7b6fae29
SHOPIFY_APP_PORT=3000
SHOPIFY_APP_STORAGE_ENGINE=memory
|
138c900fbff9e1d5155ee9e8b49806a2e848cf2f | 1,055 | #!bin/bash
check_os ()
{
distro=$(cat /etc/os-release | awk '/^NAME/' | grep -o "CentOS")
version=$(cat /etc/os-release | awk '/VERSION_ID/' | grep -o "7" )
if [[ $distro != "CentOS" ]] && [[ $version != "7" ]]
then
echo "Ban dang dung OS khac"
exit 1
fi
}
generate_key ()
{
echo "Bat dau tao khoa ssh"
echo "... |
4976216a9407676105a4625a7b9eb96424d4a827 | 608 | #------------------------Rno25_Q1.sh------------------------
#product of 10 numbers
n=10
i=1
product=1
while [ $i -le $n ]
do
product=$((product * i))
i=$((i + 1))
done
echo "The product is : $product"
#------------------------Rno25_Q2.sh------------------------
#write a shell script to display m... |
6747f389a395e93268ed19349898378aae00fb3b | 339 | #!/bin/bash
echo \* Getting an public IP for Inst1 ...
IP=$(nova floating-ip-create ext-net | grep ext-net | awk '{print $2}')
echo Got $IP
echo \* Associating with inst1 ...
nova floating-ip-associate inst1 $IP
echo \* Let\'s ping 4 times ...
ping -c 4 $IP
echo \* Attempting SSH \(Password is \'cubswin:\)\'\)
ssh cir... |
739039d56872ac06a80b18fcb2a28bddad972064 | 37 | #!/bin/bash
cat input.txt | uniq -u
|
85214de20d83a2909eca8118ffce9ead8395bfdb | 593 | #!/bin/sh
#PBS -l nodes=1,walltime=04:00:00,mem=3600MB
#PBS -N Dnt0to150_Ds_PbPb_Data_HIMB3_GJ
#PBS -o /home/peng43/work/Project/Ds_PbPb/Ds_PbPbAna/MakeDsMinTree/PBS_jobs/PBS_log/PBS_0to150_Ds_PbPb_Data_HIMB3_GJ.log
#PBS -e /home/peng43/work/Project/Ds_PbPb/Ds_PbPbAna/MakeDsMinTree/PBS_jobs/PBS_log/PBS_0to150_Ds_PbPb_... |
c56899927be8ea79c67280a4f13a2df51c804d8f | 124 | sudo openvpn --config /u/inky/.pvpn-cli/connect.ovpn --auth-user-pass /root/.pvpn-cli/pvpnpass --dev proton0 --dev-type tun
|
e53429e48888ddc0a134c0d57d2a042c7ff40c7e | 103 |
for i in {1..2000}
do
echo "CASE:" $i
time java -jar tester.jar -exec ./program -seed $i
done
|
603091a3b33e367db353b4f83d491a048ef1d897 | 115 | #!/bin/sh
H=mivvy
if [ -n "$1" ]
then
H=$1
fi
sshfs -o nonempty -o transform_symlinks $H:/ $HOME/sshfs/mivvy
|
0b95aaa02d7c79001c01669666de164b59d2f0c9 | 1,086 | #! /bin/bash
set -e
if [ "$1" = "create" ]; then
ACTION=create-stack
elif [ "$1" = "update" ]; then
ACTION=update-stack
elif [ "$1" = "delete" ]; then
ACTION=delete-stack
else
echo "Usage: $0 [create|update]"
exit 1
fi
TAG='lambda-comments'
DIR=`cd $(dirname $0); pwd`
BABEL_NODE=$DIR/../../node_modules/bab... |
3b5398a482cf309b9eeca54727722054b7cea609 | 366 | echo "打包 => dist";
# 打包 => dist
npm run build;
# 更新gh-pages
echo "更新gh-pages";
git branch -D gh-pages;
echo "删除gh-pages";
git checkout -b gh-pages;
echo "创建并切换到gh-pages";
git add -f dist;
git commit -m 'create gh-pages';
git push origin -d gh-pages;
git subtree push --prefix dist origin gh-pages;
echo "已推送gh... |
b70b4e442a12dc48bc0e24b0d76a2a48d7f172b5 | 2,803 | #!/bin/bash
resolution="1920x1080"
monitor=0
data_dir=$HOME/.local/share/electrol/
de="kde"
usage=\
"Usage: $(basename $0) [-d <pictures dir>] [-r <resolution>] [-m <monitor>] [-e <desktop environment>]\n\
\tscript updates XFCE wallpaper on specified monitro\n
params:\n
\tpictures dir\t - directory where images are ... |
f30e4e61803a22f0e4485421d7b6213e3ff0d5f7 | 693 | #!/bin/bash
#
# This script will run all test scripts that are in test/extended.
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
test_scripts=`find test/extended -maxdepth 1 -name "*.sh" -not \( -name "all.sh" \)`
OVERALL_RETURN=0
for test_script in $test_scripts; do
STARTTIME=$(date +%s)
echo "${START... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.