blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
6904ad988de18153100e2e6b81ba6365d4c65ae9 | 422 | #!/bin/bash
if [[ $# -lt 1 ]]
then
echo 'mode argument required. apply | destroy'
exit 1
elif [[ $1 -eq 'apply' ]] || [[ $1 -eq 'destroy' ]]
then
cd /home/operations/orchestrator/src
python3 ./main.py --config /home/operations/config.json --terraform-dir /home/operations/terraform --ansible-dir /home/oper... |
33df2388b42c25c940ef6304546659666ad47b08 | 888 | # Maintainer: Josh Cartwright <joshc@eso.teric.us>
pkgname=hooktftp-git
pkgver=0.10.0.r28.g8bba8e8
pkgrel=1
pkgdesc="Hook based tftp server"
arch=('x86_64' 'i686')
url="https://github.com/epeli/hooktftp"
license=('MIT')
makedepends=('go' 'bzr')
source=('git://github.com/epeli/hooktftp.git')
md5sums=('SKIP')
pkgver() ... |
44fd17007687d632884f43e4e454c3cf7405f33a | 981 | #!/bin/bash
injects1=$(xmlstarlet sel -B -t -c '.' objects.xml)
injects2=$(xmlstarlet sel -B -t -c '.' newtypes.xml)
spec=$(cat gl.xml)
while read -r inject
do
command='xmlstarlet ed -P '
while read -r action
do
method=$(xmlstarlet sel -t -v '/action/@method' <<<"$action")
xpath=$(xmlstarle... |
95f8d85021a149a352419ced323ea8cf264b917a | 324 | #!/bin/bash
SOURCE_DIR=$1
DESTINATION_DIR=$2
GEOCODE_DIR=$3
STATE=$4
# reorg the shapefiles into grids and attach some useful attributes
# --max-old-space-size=8192
node app.js -s ${STATE} -i ${SOURCE_DIR}/${STATE}.txt -o ${DESTINATION_DIR} -c ${GEOCODE_DIR}/county.geo.txt -m ${GEOCODE_DIR}/${STATE}-grid-to-counties.... |
3570b2507edb444acce89b092dd66f373b429c05 | 2,970 | #!/bin/bash
# Initialize the variables #
declare -x INPUT_JSON=$(cat <<EOF
'{
"HostedZoneId": "${hosted_zone_id}",
"ChangeBatch": {
"Comment": "Update the A record set",
"Changes": [
{
"Action": "UPSERT",
"ResourceRecordSet": {
... |
3c44035b575368aec2b5bc569041f821e5f3f0fe | 324 | #/bin/bash
# FIXME: activate when ITIFoundation/openapi-tools:latest available
exec {{ cookiecutter.simcore_install_root }}../scripts/openapi/openapi_codegen.sh \
-i ../src/{{ cookiecutter.package_name }}/oas3/{{cookiecutter.openapi_specs_version}}/openapi.yaml \
-o . \
-g python \
-c ./codegen_config.j... |
2bc5569593db3aa47fd2b0e7635a3f9f7351010a | 1,504 | # sudo bash
ovs-vsctl del-br s1
#ovs-vsctl del-br s2
ip link delete s1-eth1
ip link delete s1-eth2
ip link delete s1-eth3
ip link delete s1-eth4
ip netns delete h1
ip netns delete h2
ip netns delete h3
ip netns delete h4
ip netns add h1
ip netns add h2
ip netns add h3
ip netns add h4
ovs-vsctl add-br s1
#ovs-vsctl ad... |
46f6fd8136ec53f0229e0b8ae94950549e579df0 | 95 | #!/bin/bash
LD_LIBRARY_PATH=/usr/local/opencv-2.4.13/lib/ exec /usr/local/bin/frameCapture $@
|
78957af32e31e8f06156b127d6d78fb354e8b292 | 498 | export PATH=$PATH:~/bin
export SEAL_HOME=/home/pvn/SEAL_HOME
#export TERMINAL=sakura
export MAVEN_OPTS_DEBUG="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
export EDITOR="vim"
alias ovpnSEAL='sudo openvpn --script-security 2 --up /home/pvn/Projects/openvpn-update... |
554e1f740d86999b3b9c07ed8a384fb69a443067 | 540 | #!/bin/sh
# Sets up environment for artifact evaluation
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
AEROOT=$SCRIPTPATH
echo "==== Groute Artifact Evaluation Cleanup ===="
rm -rf $AEROOT/setup.complete
rm -rf $AEROOT/code/groute/metis
rm -rf $AEROOT/code/mgbench/build
rm -rf $AEROOT/code/nccl/build
r... |
44274d914e182fc7246e45c8780262e35a83e33f | 44 | #!/bin/bash
python3 simBOLD.py 15Cb2205144YR |
58c00783047cc5e0e4e032297a781d06831a0ba3 | 95 | #!/bin/bash -e
mpc current -f '%file%\n%genre%\n%artist%\n%title%\n%album%\n%time%\n%comment%'
|
23de9bdb076dc4cb8d26be303a2c7bb34ea38bd4 | 3,083 | #!/bin/bash
# Copyright (c) 2020-2021 Advanced Micro Devices, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
e229090cc21ce03bd1ee48e9bb42b22269b2b3e1 | 517 | #!/bin/sh
# run Icarus verilog:
iverilog-vpi ./../vpi/namuru_vpi.c
iverilog -o tb_simplified_gps_baseband ./../test/tb_simplified_gps_baseband.v ./../rtl/simplified_gps_baseband.v ./../rtl/time_base.v ./../rtl/tracking_channel.v ./../rtl/carrier_mixer.v ./../rtl/carrier_nco.v ./../rtl/code_nco.v ./../rtl/code_gen.v ./... |
3fe354af054f6469c211f55412e84c8670260e97 | 279 | yum install git
cd /opt/
git clone httsp://github.com/superproxy/mycloud.git
#service ss
cd mycloud/shell/
chmod +x *.shell
./install_shadowsocks.sh
#
yum install saltstack
# install java maven
yum install jdk
yum install maven
./gitblit.sh
./jenkins.sh
./sonar.sh
.
|
349dcd93aa0d475eaefe2d0a1b076e2b57744860 | 74 | #!/bin/bash
rm fonts.zip
zip --password $PXL_FONTSPW fonts.zip *.otf *.ttf |
7b3e2a20e124cabf32e2eb84df2adb9d2c38b9ed | 2,069 | #!/bin/zsh
export PATH="$PATH:$ZDOTDIR/bin"
# {{{ zgen configuration
local zgen_file=$ZDOTDIR/zgen/zgen.zsh
if ! [ -e $zgen_file ]; then
git clone https://github.com/tarjoilija/zgen.git $ZDOTDIR/zgen/
fi
# {{{ z configuration
_Z_DATA=$XDG_DATA_HOME/zsh_z
_Z_CMD=j
# }}}
source $zgen_file
if ! zgen saved; then
... |
74227e864b3b3ea2e52a3bdfb9af2eed402c0989 | 1,032 | #!/bin/bash
#Test de PHP
username="$(id -u -n)"
sudo adduser $username www-data #Anade al user al grupo www-data
#sudo chown $username.users /var/www
#sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwx /var/www #Da permisos al grupo
sudo chmod 777 -R /var/www/
#sudo cp testphp.php /var/www/
echo "<?php phpin... |
79d5f428968b4bce659b8204c641da809b3c346d | 6,527 | #!/bin/bash
# TOOL BUILDER FUNCTIONS VERSION
# THE SCRIPT IS PART OF THE CERBERUS X BUILER TOOL.
# Function to build transcc
do_transcc(){
EXITCODE=0
do_info "BUILDING TRANSCC WITH $COMPILER"
# Check for an exisiting transcc
[ -f "$BIN/transcc_$HOST" ] && { rm -f "$BIN/transcc_$HOST"; }
... |
7093dfe3cf2d6cb03b8e91a4fcdc6b7debbe2103 | 149 | #!/bin/bash
SCANNER_ID=54daa036-f41f-40ba-9878-2074950991a0
curl https://app.luca-app.de/api/v3/scanners/${SCANNER_ID}/traces/count/current
echo "" |
aefe11f8a69e8b5962c61ea3e443cd8a6ab2104d | 337 | #!/bin/bash
i18ndude rebuild-pot --pot src/venusianconfigdemo/locales/venusianconfigdemo.pot --merge src/venusianconfigdemo/locales/manual.pot --create venusianconfigdemo src/venusianconfigdemo
i18ndude sync --pot src/venusianconfigdemo/locales/venusianconfigdemo.pot src/venusianconfigdemo/locales/*/LC_MESSAGES/venus... |
ad0a8dd360cf52ce5bbc0c0d5acf5db65bbf3373 | 360 | #!/usr/bin/bash
BASE_URL=$PWD/app/
source ${BASE_URL}/local.env
/usr/bin/python3 ${BASE_URL}njmvc_checker.py -s "knowledge test" -c "Edison,South Plainfield,Rahway" >> ${BASE_URL}njmvc_checker.log
if grep -qe "Found [0-9]\+ appointments" ${BASE_URL}njmvc_checker.log; then
echo "Stopping cron..." >> ${BASE_URL}njmv... |
014aca4bd2c48172fc0bf321427a1078d83b3d4f | 55 | #!/bin/bash
# pytables
apt-get install python-tables
|
46218f92b12179960294eeffcd1c76a7e048ddb7 | 602 | #!/bin/bash
if command -v franz >> /dev/null; then
echo "command already exists"
else
sudo apt install -y gconf2 gconf-service libappindicator1
sudo apt install -y jq
function parse_latest_deb_url() {
curl_result=$(curl --silent "https://api.github.com/repos/$1/releases/latest")
only_de... |
915487f2e9a9416559ce7b301e9b4b86f3c12ff7 | 310 | #!/bin/bash
cd src/x86-64/loader/
nasm loader.asm -o ../../../loader.sys
cd ../../..
cd src/x86-64/loader/bootsectors/
nasm multiboot.asm -o ../../../../multiboot.sys
cd ../../../..
cd src/x86-64/kernel/
nasm kernel.asm -o ../../../kernel.sys
cd ../../..
cat multiboot.sys loader.sys kernel.sys > boot.bin
|
c4591ee0332a2f67498e69dedbd8b431f5dbac28 | 99 | #!/bin/bash
mkdir -p /root/.kettle/
env > /root/.kettle/kettle.properties
./carte.sh 0.0.0.0 8181
|
2437a06d7e23345682e052f98dffc7a110331684 | 1,360 | #!/bin/bash
DIR="`dirname \"$0\"`"
. "$DIR"/_common.sh
confirm() {
unset CONFIRM
while [[ -z $CONFIRM ]] ; do
read CONFIRM
done
}
echo "!! There is more work to do on this script" >&2
if [ $# -ne 1 ] ; then
fail "Usage: runtest.sh <dir with test>"
fi
setup_TEST "$1"
setup_vars
[ -d "$TEST.new" ] && rm -rf "... |
0dccbb9a88cad0afa434da0930edcd3fae8b1826 | 124 | MYSQL_ROOT_PASSWORD=mysqlmysql
MYSQL_DATABASE=mysqlDB
MYSQL_USER=root
MYSQL_HOST=mysql
REDIS_HOST=redis
REDIS_PORT=6379
|
3fa4ba222431495c8b238bb96c00dde8705954fd | 563 | #!/bin/bash
source ./init-variables.sh
source ./box.sh
for node in $(seq 1 $workers);
do
eval "$(docker-machine env worker$node)"
docker swarm leave
done
for node in $(seq 1 $leaders);
do
eval "$(docker-machine env leader$node)"
docker swarm leave --force
done
for node in $(seq 1 $workers);
do
docker-... |
b5273134757870eba6b3ea01ffdafd28d8de46d1 | 165 | #!/bin/bash
#A basic script to launch my polybar configs. I copied this from polybar's docs.
killall -q polybar
polybar mine & disown
polybar secondary & disown
|
b6075d5ad16c6e8f4a9e5a12b5ded79bba39caf2 | 1,061 | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_NAME=apocalypse-post
SUFFIX=$TRAVIS_BRANCH
RESOURCES=resources
USER=user
UPLOADS=uploads
DEPS_BUILD=`pwd`/deps_build
MACOS_FRAMEWORKS=$DEPS_BUILD/Frameworks
mkdir -pv $UPLOADS
mkdir -pv $DEPS_BUILD
function build_deps_macos {
pushd... |
df1b8e7e452a3b922a6ee11e6ea375e5fe642dff | 34,551 | log_file="log.txt";
app="com.alamo.boardsgame";
pkg="threeinline.alamo.com.threeinline";
#activity="PlayLocalGameActivity"
activity="MenuActivity"
normal="echo -n -e \e[0m";
blink="echo -n -e \e[5m";
green="echo -n -e \e[42m\e[31m";
red="echo -n -e \e[41m\e[33m";
yellow="echo -n -e \e[43m\e[34m";
function wr {
d=$(... |
9bf4d56e4d63baee6fd769d68d175c9473acf51c | 2,523 | #!/bin/bash
#
# Copyright (C) 2021 Masatake YAMATO <yamato@redhat.com>
#
# 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
# (... |
0d5da7c6f7a7205aca8e67be73c28a7962941d65 | 230 | #!/bin/bash
# @describe:
# @author: Ming He(jackhm18@gmail.com)
process='cli.php'
num=$(ps -elf | grep $process | grep -v grep | wc -l);
if [ "$num" -eq 0 ]; then
php public/cli.php request_uri="/anticheat/index" &;
fi
|
3e245dda8891cf31eb4fb050d8c7f1715de12ed1 | 2,495 | #!/bin/sh
# ANSI color scheme script by github.com/joshdk https://github.com/joshdk/hedgehogs
red=$(printf '\e[31m')
grn=$(printf '\e[32m')
ylw=$(printf '\e[33m')
blu=$(printf '\e[34m')
mag=$(printf '\e[35m')
cya=$(printf '\e[36m')
bld=$(printf '\e[1m')
rst=$(printf '\e[0m')
cat << ART
$red ╷╽╽╽╽╽╽╽╽╽╷ $grn ... |
892d9839d0e7ca1b459f6a6c511bda5258ee5187 | 2,080 | #!/bin/bash -x
#Use Case 1- As a User need to enter a valid First Name.
echo "Welcome to User Registration"
echo "Enter User First Name :"
read firstName;
namepattern="^[A-Z][a-z]{3,}$"
if [[ $firstName =~ $namepattern ]]
then
echo "Valid"
else
echo "Invalid"
fi
#UseCase2- As a User need to enter a valid last... |
0f1b1ab119fc76b02926518a4c7a3235a13aa967 | 548 | #!/bin/bash
BOARD=$(bpi-hw)
XSGXFILE="/usr/share/lightdm/lightdm.conf.d/55-xserver-command-pvr.conf"
XSGXBAK="/usr/share/lightdm/lightdm.conf.d/.55-xserver-command-pvr.conf"
setup_xsgx_xserver()
{
if [ -f "/usr/local/XSGX/bin/X" ] ; then
if [ ! -f "$XSGXFILE" ] ; then
cp -a $XSGXBAK $XSGXFILE
fi
fi
... |
eeaeba7dd64e0fb6bf34348ab1f2577f4ccc202a | 237 | #!/bin/bash
# Testing credentials only production must use production credentials and db
sudo -u postgres psql -c "CREATE USER tester PASSWORD 'testpass';"
sudo -u postgres psql -c "CREATE DATABASE dbtest;"
sudo service postgresql start |
91a64dce311c3d6d0bf0c36e642eefbbe2824523 | 516 | #!/bin/bash
. node.conf
USAGE() {
echo USAGE:
echo "$0 <configfile> <number of nodes>"
exit 1
}
if [ $# -lt 2 ];then
USAGE
fi
cd $(dirname $0)
configfile=$1
node_count=$2
for((i = 0; $i < $node_count; i++)); do
node_name="node-"$i
# Create .Haggle on the node.
ssh $NODE_USERNAME@$node_name mkdi... |
80474c1ddb402978990cc067f132e5e33354f03a | 320 | #!/bin/bash
# Just run this file and you can test your circ files!
# Make sure your files are in the directory above this one though!
# Credits to William Huang
cp alu.circ part1-tests/alu-tests/alu_tests
cd part1-tests/alu-tests
rm -rf student_output
mkdir student_output
chmod +x alu-test.py
./alu-test.py
cd ../../
|
d2592701c659f14bdb0646549be6ea7acbe09534 | 186 | #!/usr/bin/env bash
ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST:-localhost:9200}
ELASTICSEARCH_INDEX=${ELASTICSEARCH_INDEX:-mx}
curl -X DELETE ${ELASTICSEARCH_HOST}/${ELASTICSEARCH_INDEX}
|
23d25b6996e93f2330b5ee25679bb68102ef4f6f | 67 | #!/bin/bash
rm *.aux *.blg *.log *.run.xml *.gz *.toc *.bbl *.bcf
|
c6a27b2463ccc75b9b5d0fcc1189aa20ff403c0f | 2,045 |
cd /data/GCE_sys/
echo "Get a beer. This will take a while..."
echo "running gtselect"
gtselect /data/fermi_data_6-26-15/phfile.txt photons_merged_P8R2_CLEAN_V15_calore.fits ra=INDEF dec=INDEF rad=INDEF tmin=INDEF tmax=INDEF zmax=90 emin=300 emax=500000.0 convtype=-1 evclass=256 ... |
4f9ce0c51432fc5403550c0611a9e2cc027dc716 | 959 | #/bin/bash
# Define configuration path
CONFIG_PATH=/root/@server@.cfg/config
cd /var/www/
echo "Installing PhpSysInfo"
echo ""
prevVer=$(ls -d phpsysinfo-*)
echo "Remove previous version: $prevVer"
rm -rf $prevVer
echo "Downloading PhpSysInfo..."
wget http://sourceforge.net/projects/phpsysinfo/files/latest/downloa... |
7df2cb0464592b00bb5583eaf23d7a601b400d99 | 411 | rm ./dir
mosquitto_pub -h localhost -t /$1/tty -m 'dofile("filelist.lua")'
sleep 1
mosquitto_pub -h localhost -t /$1/sctr -m 'dir'
socat -v -d -U OPEN:dir,create TCP4-LISTEN:3335,reuseaddr
list=`cut -d ':' -f 1 dir`
for f in $list
do
# sleep 1
echo " ################## Fichier: $f"
mosquitto_pub -h localhost -t /... |
37723a8e7ff3761beac5252bedc1446a121b275b | 744 | #!/bin/bash
cd `dirname $0`
MODULES=$*;
TUPLES=""
for MODULE in $MODULES ; do
# hard coding known deps for now because the package.json files don't yet contain the package's dependencies
case "$MODULE" in
amazon) DEPS="core" ;;
appengine) DEPS="core" ;;
cloudfoundry) DEPS="core" ;;
core) DE... |
fef708f2a59d91233794c7083cb80d130d190b88 | 146 | #!/bin/bash
set -eu
echo >&2 "unbinding..."
n=5
while [[ $n != '0' ]]; do
sleep 1
n=$(( n - 1 ))
echo >&2 "$n seconds left..."
done
exit 0
|
5daae51cfce2c9e9b2510b3f5f405eb1ba52b4d6 | 2,769 | #!/bin/bash
# author ljh
#安装wget
yum -y install wget
#更换yum源,换成aliyun
wget -O /etc/yum.repos.d/CentOS-Base-aliyun.repo http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
mv /etc/yum.repos.d/CentOS-Base-aliyun.repo /etc/yum.repos.d/CentOS-Base.repo... |
2a8407cf3a40fb2ee4b8a7afec316bfa97c085b9 | 1,022 | #!/bin/bash
# $Id: tw-email-to,v 1.6 2011/02/23 00:33:53 bruno Exp $
# $Log: tw-email-to,v $
# Revision 1.6 2011/02/23 00:33:53 bruno
# fix to send tripwire reports to multiple recipients.
#
# Revision 1.5 2009/07/01 22:03:59 bruno
# fixes
#
# Revision 1.4 2009/05/26 22:21:31 bruno
# changed 'tripwire' 'mail(to)'... |
e0c12f9e78c4f759f34fe929a055a2eae3b2d5b9 | 13,415 | #!/bin/bash
# Author: Andy Lerner
# Update History:
# 03Nov2017 Removed need for client numbering. Use clush groups to determine clients
# This script can be run from any client node with clush access to all clients and cluster nodes
# ssh to cluster node now used - no dependence on maprcli on client nodes
HA... |
494eaaedd4601c60070395e4344cc0a380322c04 | 175 | #!/bin/sh
# Install IJulia Kernel as the emr-notebook user
sudo -u emr-notebook JUPYTER=/emr/notebook-env/bin/jupyter /usr/local/bin/julia -e 'using Pkg; Pkg.add(["IJulia"])' |
5d9d4bc24f513a338def3d5b415598b563f47464 | 173 | #! /bin/bash
set -e errexit
set -o pipefail
xcodebuild -scheme EonilPco -configuration Debug clean build test
xcodebuild -scheme EonilPco -configuration Release clean build
|
761b247bde8e4f64c8fb5286f9efef9829bbf4c7 | 551 | #!/bin/bash
# Starts apps with the specified commands and avoids starting if already running.
# The app name used should the same as the process name.
for pair in "$@"; do
# split arg into seperate variables
IFS=:; set -- $pair
NAME=$1
CMD=$2
if pgrep -x "$NAME" > /dev/null
then
echo ... |
52d2d8b9e187c393add130a629a60b4124dcbf2a | 977 | # This cleanly add a path to either an empty or an already filled environement
# variable.
prepend-path() {
local variable=$1
if [ -z "${!variable}" ]; then
export $1=$2;
else
export $1=$2:"${!variable}";
fi
}
append-path() {
local variable=$1
if [ -z "${!variable}" ]; then
... |
94a0320d54998f95f6b4e604ee73b642d0201141 | 33 | #!/bin/bash
python NewListener.py |
e7f0182874f19aae6036e4655a7468476180b1d1 | 1,214 | #!/bin/bash
cd ../../../..
cd external/tinycompress
git apply -v ../../device/Walton/Primo HM2/patches/external_tinycompress/external_tinycompress.patch
cd ../..
cd frameworks/av
git apply -v ../../device/Walton/Primo HM2/patches/frameworks_av/frameworks_av.patch
cd ../..
cd frameworks/base
git apply -v ../../device/Wa... |
3803d91af851e35ae7a4656da9b7610c6373aa4f | 768 | scp ../owgis_videos/globalW.mp4 rpi1:~/anima/
scp ../owgis_videos/globalW.mp4 rpi2:~/anima/
scp ../owgis_videos/globalW.mp4 rpi3:~/anima/
scp ../owgis_videos/globalW.mp4 rpi4:~/anima/
scp ../owgis_videos/globalT.mp4 rpi1:~/anima/
scp ../owgis_videos/globalT.mp4 rpi2:~/anima/
scp ../owgis_videos/globalT.mp4 rpi3:~/anim... |
8711c0cb7bf11b0559287d095fe1322a8c48dd5b | 525 | #!/bin/bash
DS4_DRIVER_LOCAL_PATH="${1}"
# Override with local copy of ds4_driver (for development)
if [[ -n $DS4_DRIVER_LOCAL_PATH ]]; then
_ws_prefix=/opt/underlay_ws
docker run -it \
-v "/dev:/dev" \
--privileged \
-v "$( realpath $DS4_DRIVER_LOCAL_PATH ):$_ws_prefix/src/ds4_driver"... |
1273d898abc6acf64683aec4f45caa6e6d191a38 | 131 | #!/usr/bin/env bash
echo Run last successful build from current branch
"Main/Download.command" --tc-use-gui-auth --category exact
|
ce3cd55af942473eed2136cba7329c56fd3ae5ac | 112 | ATLAS_URI=mongodb+srv://jose1234:jose1234@cluster0.nb9ew.mongodb.net/myFirstDatabase?retryWrites=true&w=majority |
8d9742788617075caeb2a70749a9838cce079e83 | 293 | #!/usr/bin/env bash
# Web-based tools authentication.
mkdir --parents /etc/bootstrap/passwds;
touch /etc/bootstrap/passwds/.tools;
htpasswd -D /etc/bootstrap/passwds/.tools "${CFG_TOOLS_USERNAME}";
htpasswd -cb /etc/bootstrap/passwds/.tools "${CFG_TOOLS_USERNAME}" "${CFG_TOOLS_PASSWORD}";
|
ac159b77b4da8df6914f60de35d744f23b70d682 | 891 | # Show contents of directory after cd-ing into it
chpwd() {
ls -lrthG
}
# History rocks
HISTSIZE=20000
SAVEHIST=20000
HISTFILE=~/.zsh_history
HISTTIMEFORMAT="%h %d %H:%M:%S "
autoload -U compinit
compinit -u
source $HOME/dotfiles/zsh/aliases # aliases
source $HOME/dotfiles/zsh/functions # funct... |
a64f44edc57c3f7a1256aa1c8f35c8d9526b9fd4 | 365 | #!/bin/bash
# install protoc 3.7.1
# export GO111MODULES=on
# go install github.com/golang/protobuf/protoc-gen-go@v1.3.3
# go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.16.0
protoc -I ./ ./*.proto \
-I ./googleapis \
--go_opt=paths=source_relative \
--go_out=plugins=grpc:./ ... |
1b30c54e32a13d1b07dbfe6504a5255f888aab33 | 200 | #!/bin/bash
SLEEP_DURATION=0.0
xsetwacom set "Wacom Intuos PT S Pen stylus" MapToOutput eDP1
sleep $SLEEP_DURATION
xsetwacom set "Wacom Intuos PT S Pen eraser" MapToOutput eDP1
sleep $SLEEP_DURATION
|
7a2f7de9f0e86452ef06cf06aa60c018df64308f | 1,475 | #!/bin/bash
SS_CONFIG=${SS_CONFIG:-""}
SS_MODULE=${SS_MODULE:-"ss-server"}
RNGD_FLAG=${RNGD_FLAG:-"false"}
PRIVOXY_FLAG=${PRIVOXY_FLAG:-"false"}
PRIVOXY_LISTEN_PORT=${PRIVOXY_LISTEN_PORT:-""}
PRIVOXY_FORWARD_PORT=${PRIVOXY_FORWARD_PORT:-""}
while getopts "s:m:l:f:rp" OPT; do
case $OPT in
s)
SS... |
9d444cfc7de476d41ceb93f24a1758e21978bbe6 | 2,031 | #!/bin/bash
# -----------------------------------------------------
# BENCHMARK SERVER CONFIGURATION - SCRIPT
# ABD UMINHO
# -----------------------------------------------------
helpFunction(){
echo ""
echo "Usage: $0 -s dbServerName -u dbUser -w nrWarehouses"
echo -e "\t-s Define th... |
3823f3ce607d15d16a02a60ee468a71edde9701d | 230 | #!/bin/bash
#
# this is where you would add any
# pre-baked public keys.
set -x
yes | ssh-keygen -f $HOME/.ssh/id_rsa_ch4zm -t rsa -N ''
chmod 700 $HOME/.ssh
touch $HOME/.ssh/authorized_keys
chmod 600 $HOME/.ssh/authorized_keys
|
361ebdf145af86f03cade4d3e214d724aaf6e536 | 272 | #!/bin/sh
REPO_URL=$1
REPO_DIR=$2
pwd=$PWD
mkdir -p $(dirname $REPO_DIR)
if [ -d $REPO_DIR ]
then
echo "updating $REPO_DIR ..." \
&& cd $REPO_DIR \
&& git pull
cd $pwd
else
echo "downloading repository $REPO_URL to $REPO_DIR ..."
git clone $REPO_URL $REPO_DIR
fi
|
5ac3c04a917399b879fa0f5857cf611afaacef2c | 234 | #!/bin/bash
if [[ -n ${EC2_PROFILE} ]]; then
profile="--profile ${EC2_PROFILE}"
fi
aws s3 ${profile} sync --acl public-read public/ s3://lessthanhero.io/
aws s3 ${profile} sync --acl public-read public/ s3://www.lessthanhero.io/
|
6be8b336e59c7cbea5ee6a32ff6db231a3b28d5b | 2,356 | #!/usr/bin/ksh
hbping_primary=8.8.8.8
hbping_gateway=10.1.1.1
check_process='pmon'
hbping_standby=''
vgname=''
mirgation_dirs=[/oracle,/data,]
loggerdirs=''
logfile=''
function testping_p {
#check Primary network status
#if primary can not access also gateway can not access mean standby Network have problem .
... |
fa472167cef66f0350352408dc7cdd096a4927f7 | 350 | sudo ./MEGASOFT_LINUX.o --input ./TestData/inputMS.txt --pvalue_table ./TestData/HanEskinPvalueTable.txt --output ./TestData/posterior_c++_static.txt --log ./TestData/log_c++_static.txt --mvalue --mvalue_method mcmc --mcmc_sample 1000000 --seed 0 --mvalue_prior_sigma 0.05 --mvalue_prior_alpha 1 --mvalue_prior_beta 5 --... |
9f7742f7df55b3069edfafa131b07cd46c52952d | 77 | #!/bin/bash
cd $CESIUMPATH
$PYTHON manage.py cesiumcron >> logs/cronlog.txt
|
54e14cbff1190b1a8fe3163dd39889a245746e64 | 467 | # https://qiita.com/nakagawa1017/items/a11599938a6cb0db0dad
echo "デフォルトシェルを fish に変更"
chsh -s /usr/local/bin/fish
echo "fish系"
ln -sf ~/dotfiles/fish ~/.config/fish
echo "fishパッケージマネージャーfisherで管理されているもの"
ln -sf ~/dotfiles/fisher ~/.config/fisher
echo "fisher install"
curl https://git.io/fisher --create-dirs -sLo ~/d... |
43c26ef62e992dcdf3321992e2d7520caca19a8d | 249 | #!/bin/bash
git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow bold)%(committerdate:relative)| %(color:cyan bold)%(authorname)| %(color:red bold)%(refname:short) %(color:reset)| %(subject)' --count=${1-20} | column -ts '|'
|
2e2de1e6f0e6bf1653c6f52e3b94f8e94f450c03 | 1,185 | #!/bin/bash
# yum update
yum clean all && yum -y update
yum -y install epel-release && yum clean all
yum -y install rpm-build make zlib-devel openssl-devel curl-devel asciidoc gcc redhat-lsb-core shadow-utils systemd openssl-libs wget libmaxminddb-devel
# Downloading nginx and vts module
wget http://nginx.org/packag... |
6a02644e394d7375b24feb3d3a6a72f8101dcbdb | 1,511 | #!/bin/bash
if [ "$1" == "-h" ]; then
printf "\n\t-----------------------------\n"
printf "\nKorzystając z mechanizmu opisanego tutaj napisz skrypt, który będzie przyjmował wartość liczbową i adre email w linii poleceń a następnie wysyłał wiadomosc emaila (Vagrant pozwala wysyłać wiadomości tylko z konta r... |
a5d35af0f8e570804ef6dfb3077e677a33bab87a | 399 | # Getting port of webserver because every time port will change or we can also fix it
port=$(sudo kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services webserver)
# checking site is working or not
status=$(sudo curl -o /dev/null -s -w "%{http_code}" 192.168.99.106:"$port")
if [[ "$status" == 200 ]]
then
echo ... |
d7cc160930348911c1d6071b9bb075cd4c65e8ef | 221 | DATABASE_URL=mysql://tec2021:Tec2021$@35.223.20.167:3306/dsantiago_api
DEV_DATABASE_URL=mysql://tec2021:Tec2021$@35.223.20.167:3306/dsantiago_api
TEST_DATABASE_URL=mysql://tec2021:Tec2021$@35.223.20.167:3306/dsantiago_api |
db0ddc1310e2ddddb6173c3283e77c815c607713 | 780 | #!/bin/sh
set -e
# MacのSpineのパス
SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine"
echo "Spine exe: $SPINE_EXE"
echo ""
files="./20_アニメーション/*"
fileary=()
directory=()
spines=()
for filepath in $files; do
if [ -d $filepath ] ; then
directory+=("$filepath")
fi
done
for i in ${directory[@]}; do
ec... |
e38fff4ec1473ab95bfefe53558215b97199a5fe | 211 | #!/usr/bin/env bash
echo "Runing backup..."
for i in \
$(docker ps --filter "name=gitea|jenkins|openproject" | tail -n+2 | awk '{ print $1 }'); do docker export -o ${i}-ci-$(date +"%m-%d-%Y").tar ${i}; \
done
|
edc0b9ec9539a41d7f2c3927c379c20bc1b6a17e | 1,491 | #! /bin/sh
#
# usage: retry COMMAND [ARGS...]
#
# Retry to run a command successfully with configurable delays between runs.
#
# Notice that the command won't receive any data via standard input.
#
set -euf
export PATH=@coreutils@/bin"${PATH+:$PATH}"
# By default try to run command 10 times with a delay of 3s between... |
1d19bc7f2c255cc8fcb8740641247de59e844b9a | 279 | #!/bin/bash
NODE=bio
THREADS=7
MEM=214
module load bio/SAMtools/1.5-foss-2016b
sbatch --partition=$NODE --ntasks=$THREADS --tasks-per-node=$THREADS --mem=$MEM"G" map-list.sh
#sbatch --partition=$NODE --ntasks=$THREADS --tasks-per-node=$THREADS --mem=$MEM"G" map-sort.sh
|
54345b6e42e166f0ebf4b52aa479f40d1753d970 | 374 | #!/bin/bash
set -a; . ./env/relayer.env; set +a;
cd ./relayer;
make build;
SPKFILE=keys/"$CH1_ADDR".key
if [ ! -f "$SPKFILE" ]; then
./build/chainbridge accounts import --privateKey $CH1_PK --password $KEYSTORE_PASSWORD
fi
DPKFILE=keys/"$CH2_ADDR".key
if [ ! -f "$DPKFILE" ]; then
./build/chainbridge accounts import ... |
373b6272a9fa52b23e6f2d71c376160497d0da1c | 247 | #!/bin/bash
# q4_p2.sh
counter=1
while [ $counter -le 10 ]
do
var=$(($counter%2))
if [ $var -eq 0 ]; then
file="even$counter"
touch $file
chmod 764 $file
else
file="odd$counter"
touch $file
chmod 554 $file
fi
((counter++))
done
|
4c1aa7b99c9d5a6e094c17e961714bf2ad30b56c | 212 | final2 User Commands final2
NAME
final2 - Insertion sort
SYNOPSIS
final2 numbers
DESCRIPTION
An implemention of insertion sort with bash script!
|
e712185f58c24936a53784b5c1aa0ec3e76ae2f0 | 496 | #!/bin/bash
source gbash.sh || exit 1
DEFINE_bool 'expand' true 'Expand includes.'
DEFINE_string 'output' '/dev/stdout' 'File to output.'
gbash::init_google "$@"
set -- "${GBASH_ARGV[@]}"
set -e -u
pushd "$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)"/../bcompiler >/dev/null
javac -d "${TMPDIR}" -encoding UTF-8 *.java
p... |
131bd17eb35ef52e35531384f4d6093c13ca70ba | 2,019 | # Maintainer: Grey Christoforo <first name [at] last name [dot] net>
pkgname=hdhomerun-firmware-bin
pkgver=20170815
pkgrel=1
pkgdesc="Firmwares for hdhomerun devices put into /opt/hdhomerun/firmware/"
arch=('any')
url="http://www.silicondust.com/downloads"
license=('LGPL')
install=$pkgname.install
optdepends=('libhdho... |
b688ea69bab5d8300996c2d7bf6f0bd1a641f3ad | 915 | #
# Defines Ruby on Rails aliases.
#
# Authors:
# Robby Russell <robby@planetargon.com>
# Jake Bell <jake.b.bell@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Load dependencies.
pmodload 'ruby'
# Return if requirements are not found.
if (( ! $+commands[bundle] )); then
return 1
fi
#
# Aliases
#
a... |
9ff4e5810deab618d466146f3027f3e2a89ed3e1 | 1,083 | #!/bin/sh
# base16-shell (https://github.com/chriskempson/base16-shell)
# Base16 Shell template by Chris Kempson (http://chriskempson.com)
# Ocean scheme by Chris Kempson (http://chriskempson.com)
color00="2b/30/3b" # Base 00 - Black
color01="bf/61/6a" # Base 08 - Red
color02="a3/be/8c" # Base 0B - Green
color03="eb/c... |
4867918934f0b7c6fb8ae8ac75df6b6d9ea317fb | 371 | #!/bin/sh
# auto pull the configure file
BASE_URL=https://raw.githubusercontent.com/alekye/AYConfiguration/master
DISABLE_CACHE="?v=$(date +%s)"
function echo_green() {
echo "\033[32m$1\033[0m"
}
# .vimrc
VIMRC_FILE=${BASE_URL}/vimrc${DISABLE_CACHE}
echo "Download .vimrc to ~/.vimrc from ${VIMRC_FILE}"
curl -o ~/.v... |
03f6564a6d14e11fc9c7f787b8d581af4baff77b | 572 | #!/bin/sh
while read line
do
echo $line | cut -c3 # Display the third char only.
echo $line | cut -c2,7 # Display the third char and seventh char.
echo $line | cut -c2-7 # Display the second char to seventh char.
echo "$line" | cut -f1-3 # -d delim char TAB and display 1. to 3. parts.
echo $line |... |
deaf148124be168f86563f01c3855501e83696da | 161 |
DATABASE_URL=postgres://fjeyxikjslbpqb:eQoFubhPqaO0vn80SwcariM7f9@ec2-54-163-238-96.compute-1.amazonaws.com:5432/di170ai34pcaf
PASSWORD_ENCRYPTION_KEY=12345678
|
ef7497886b3e6ef8dfca4559ffe239802634e4a6 | 97 | #!/bin/bash
# curls the address, returns available methods
curl -sI $1 | awk "NR==4" | cut -c 8-
|
ff7112e76f3dca4be9f10a0429dc0f1111a2c39c | 629 | #!/bin/bash
gcc -std=c99 -O2 -o sfrob sfrob.c
gcc -std=c99 -O2 -o sfrobu sfrobu.c
printf '*~BO *{_CIA *hXE]D *LER #@_GZY #E\\OX #^BO #FKPS #NEM\4' | ./sfrobu | od -ta > output_sfrobu
printf '*~BO *{_CIA *hXE]D *LER #@_GZY #E\\OX #^BO #FKPS #NEM\4' | ./sfrobs | od -ta > output_sfrobs
printf '*~BO *{_CIA *hXE]D *LER #... |
32aea18116747158ece2b50e44dd10078c94ccaf | 991 | #!/bin/bash
# copies your working directory to some other computer.
# Intended to be used with the docker-shell.sh script when you're tight on
# internet quota. Start a VM in the cloud, use the docker-shell.sh to quickly
# get a dev server running. Continue working on your local machine and use this
# script to rsync t... |
4282e61b8482ab22130c6f62a335cf83c48d99e8 | 523 | #!/bin/bash
set -e
iterations=1000
output="./machine/testdata/training.csv"
converted="./machine/testdata/training_converted.csv"
echo "Running simulation to generate training data..."
./scripts/run.sh -standard-ai -random-ai -num-players 0 -num-rounds $iterations -generate-training-data -training-data-file $output $... |
56713b31477147161161bacea120b9070e735a5f | 166 | #!/bin/bash
source $(dirname $0)/lib/debug_functions
source $(dirname $0)/lib/version
cd $(dirname $0)/..
operator-sdk generate k8s
operator-sdk generate openapi
|
8633406d2a58a21abf745e2688227ccd3b555f96 | 121 | #!/bin/bash
aws ec2 describe-instances --query "Reservations[*].Instances[*].[Tags[?Key=='Name'][Value]]" --output text
|
a3ece638228d67c56b5eca99fabd696e081d2973 | 2,862 | #!/bin/bash
################################################
#
# data_rawextractor.sh
#
# Script invoked by runDQ_extraction_fillraw_fast.sh
# Extract the information for a given Fill part
#
# --> List of inputs:
#
# ${1}: the path leading to the datafiles
# ${2}: the fill number
# ${3}: the list of run in the fill
#... |
fc0e1d28fa8955d2457f0772d192faa66357b1d6 | 78 | #!/bin/bash
./run-smoke-tests.sh
./run-client-tests.sh
./run-server-tests.sh
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.