blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
4ab8783c8356c21cb5e1632bd5198f32c95fb712 | 962 | #!/usr/bin/env bash
ROOT="$(dirname ${BASH_SOURCE[0]})"
declare -A mapping
nodes=$(${ROOT}/list_numa_nodes | awk '{ print $1 }')
# start with assumption that all numa nodes are dram
for node in ${nodes}
do
mapping["${node}"]="DRAM"
done
# run all memory type detectors in the identify_numa.d directory
for detec... |
6102284a8a4c78572cc49a3766d413b2e137a73a | 329 | mkdir $1
cd $1
git init
mkdir ./bin
mkdir ./include
mkdir ./lib
mkdir ./share
mkdir ./man
mkdir ./info
touch README.md
echo $1 >> README.md
touch .gitignore
git add ./bin
git add ./include
git add ./lib
git add ./share
git add ./man
git add ./info
git add README.md
git add .gitignore
git commit -m "Create initial st... |
8396bd6d1e5ce3a641bb1a6957376a16b86e5a49 | 693 | #!/bin/bash
api_key="your api key here"
deviceID="your deviceID here"
value=10 #post this value
#obtain a token
my_token=$(bash -c "/usr/lib/lua/ubidots.lua -token "$api_key)
echo "Token: "$my_token
#post data to Ubidots
bash -c "/usr/lib/lua/ubidots.lua -post "$api_key" "$deviceID" "$value
#retrieve last value from... |
bc9e47a21841bdd6e13b55a5e3b6ee35ae19e1d5 | 3,782 | #! /bin/sh
if [ -f /jrd-resource/resource/webs-cfg/webs.conf ]; then
rm -f /jrd-resource/resource/webs-cfg/webs.conf
fi
if [ -f /jrd-resource/resource/webs-cfg/webs_lan.conf ]; then
rm -f /jrd-resource/resource/webs-cfg/webs_lan.conf
fi
if [ -f /etc/mobileap_cfg.xml ]; then
rm -f /etc/mobileap_cfg.xml
fi
if [ -f... |
207dc7dfcfd72b617899f79d0eb85cc8f0b04de0 | 4,449 | #!/bin/sh
WORKING_DIR="$(realpath "$(dirname "${0}")")"
CONFIG_FILE="${WORKING_DIR}/install.config"
. "${WORKING_DIR}/config/shell-utils/util.sh"
usage() {
print_msg "Usage: ${0} --config <filename>\n"
}
check_root() {
test $(id -u) -eq 0
}
check_conn() {
ping -c 4 archlinux.org
}
check_uefi_boot() {
... |
f85f1b4241cf432990b92c0e04b92101d8c1b41f | 157 | # Keep history within the shell and save it to ~/.zsh_history:
setopt histignorealldups sharehistory
HISTSIZE=100000
SAVEHIST=100000
HISTFILE=~/.zsh_history
|
9e620e56bba9e2b97bb9fb296d723933df4394a0 | 107 | #!/usr/bin/env bash
echo "bootstrapping the cluster"
jx step create task --interpret --no-release-prepare
|
29d8e6789acfb86dae66fe8d45109c6c19bcf16c | 110 | mkdir ../results
../src/magna -G exlist3.txt -d exlistgdv3.txt -m CIQ -a 0.5 -p 10 -n 100 -o ../results/exout
|
3ef7ca1d4487b2db7dc66415eba548352c20feff | 3,063 | #!/bin/bash
#
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SO... |
7f1e9c0d65298f83bf3eb58fff211ca2ba90fe8c | 508 | #!/usr/bin/env bats
load helpers
function teardown() {
cleanup_test
}
@test "ctr termination reason Completed" {
start_crio
run crioctl pod run --config "$TESTDATA"/sandbox_config_selinux.json
echo "$output"
[ "$status" -eq 0 ]
pod_id="$output"
run crioctl ctr create --config "$TESTDATA"/container_redis.json ... |
0cb8faf12aefcf26bd8183aac9dd746cd9b568da | 1,268 | #!/bin/sh
export PATH=${PATH}:/usr/local/bin:/usr/local/sbin
umount /btrfs >/dev/null 2>&1 || true
umount /mnt >/dev/null 2>&1 || true
mount -t btrfs LABEL=sp6-backup /mnt || exit 1
if ! mount -t btrfs UUID=76c2d8f7-278d-428c-9a42-571216cc0773 /btrfs; then
umount /mnt
exit 1
fi
cd /btrfs
btrfs-subvolume-backup ... |
e04f72810af6c246e59a7e004e326adaf0883d14 | 59 | java -jar client/build/libs/client-0.0.1-SNAPSHOT.jar "$@"
|
c0ebdda3e2b24529811e10c94999b84f7771be25 | 184 | #!/bin/bash
device_count=4
device="scull"
major=`grep -m 1 scull /proc/devices | cut -d ' ' -f 1`
for (( i=0 ; i<device_count ; i++ )) ; do
rm /dev/scull${i} ; done
rmmod scull.ko
|
3d5eeec25f87e17940df7540c7a78792559872a7 | 80 | sudo /home/pi/NTUEE_light_dance/client/turnOffLED/turnOffLED
sudo node client.js |
bd83a1d6425e5650eac16a9c709fe04221b58f4b | 344 | ### eqmake4 was here ###
CONFIG -= debug_and_release debug
CONFIG += release
#-*-Shell-Script-*-
include (common.pri)
TEMPLATE = subdirs
SUBDIRS += libconnman-qt libwifiapplet translations
#FIXME: should not hardcode
desktop_entry.path = /usr/lib/duicontrolpanel
desktop_entry.files = meegotouchcp-connman.desktop
IN... |
bba21ef90f946d5df35e492d7e3b62e284cae03f | 412 | #!/bin/sh -eu
#
# Merges all branches up to and including current branch into master branch.
#
# Written in 2012 by Suraj N. Kurapati <https://github.com/sunaku>
# ensure that working tree is clean
git rebase HEAD --quiet
current=$(git symbolic-ref --short HEAD)
git checkout master
for branch in other patch minor ma... |
1afaccd041962b5ea00f1c8a5c1d97f38bb4554a | 251 | #!/bin/bash
echo "So im going to load all files now for you please wait..."
mv rsfconsole /usr/bin/rsfconsole
chmod +x /usr/bin/rsfconsole
mkdir /opt/roxysploit
mv * /opt/roxysploit/
chmod +x /opt/roxysploit
echo "Ok were done :) run 'rsfconsole'"
|
effacd012109ae524f03200a8a6270604666f50f | 99 | DB_HOST=localhost
DB_USER=final
DB_PASS=final
DB_NAME=icebreaker
DB_SSL=true if heroku
DB_PORT=5432 |
f5c9fe4a6ab2e031b2228e6bac84fc9bdb196314 | 286 | #!/bin/bash
# Example of CASE Statements
case "$1" in
start)
echo "Starting sleep walking server"
/tmp/sleep-walking-server &
;;
stop)
echo "Stopping sleep walking server"
kill $(cat /tmp/sleep-walking-server.pid)
;;
*)
echo "Usage $0 start|stop"; exit 1
esac
|
3f8841d5e8cb22e346c69e965af6968a00ce663c | 309 | # Adding Kibana examples
# To export a dashboard use:
# curl -s -S http://localhost:9200/kibana-int/dashboard/kibana-demo1/_source -o kibana-demo1.json
for f in *.json ; do
echo "Injecting $f"
curl -s -XPUT "http://localhost:9200/kibana-int/dashboard/${f%.json}" --data-binary @"$f" -o /dev/null
done
|
6a9ec4ec871da44ad66663f2fd2264f97c1ddc50 | 295 | # Como root
yum install openldap-servers
yum install openldap-clients # Lo instalamos tambien en el servidor
# Evitamos que se active la configuracion by default
# este archivo de configuracion es vestigial de versiones pasadas de openldap
mv /etc/openldap/ldap.conf /etc/openldap/ldap.conf.old
|
598957ce87ea745dc7e8ed3c91c53cb2e6f8761c | 528 | #! /bin/bash
export R_HOME
CXX=$(R CMD config CXX)
#CXXFLAGS="$(R CMD config CXX1XSTD) $(R CMD config CXX1XFLAGS)"
CXXFLAGS="$(R CMD config CXX1XFLAGS)"
# $(R CMD config DYLIB_LDFLAGS)"
CPPFLAGS=$(R CMD config CPPFLAGS)
BLAS_LIBS=$(R CMD config BLAS_LIBS)
LAPACK_LIBS=$(R CMD config LAPACK_LIBS)
export CXX
export CXXFLA... |
5f4e820b5f250259293b58e8391139e71f868039 | 438 | #!/bin/bash
rand=$RANDOM
secret=${rand:0:1}
function game {
read -p "Guess the number I am thinking of [n] " guess
while [[ $guess != $secret ]]; do
read -p "Nope. try again! " guess
done
echo "Good job, $secret is it! You are great at guessing!"
}
function generate {
echo "A random number is: $rand"
echo -e "Hi... |
ac6dc5588aa771cfc786b138e7e4d42cbae29a29 | 321 | #!/usr/bin/env bash
# Function definition:
funcExample () {
LOCALVAR="Local variable"
echo "This is $LOCALVAR"
}
GLOBALVAR="global variable"
echo "This is: $GLOBALVAR"
echo "This is $LOCALVAR"
echo "Function call: "
echo ""
funcExample
echo "Variables check:"
echo "This is $GLOBALVAR"
echo "This is $LOCALVAR"
... |
a3fc4d5acc2bf2fd689feb29941e82c021c4eeae | 250 | #!/bin/bash
read -p "Enter a number " num
echo -n "Factors of $num are "
for ((i=1;i*i<=$num;i++))
do
if [ $(( $num%$i )) -eq 0 ]
then
if [ $(( $num/$i )) -eq $i ]
then
echo -n $i
else
echo -n "$i $(($num/$i)) "
fi
fi
done
echo " "
|
04ce7b1a475f7f5d276bff72ee3ea35cf54a3d06 | 381 | ### remove the '#' to use the environment variables
# export PRIVATE_KEY=asafdagadd
# export WEB3_INFURA_PROJECT_ID=asdfsdf
### Optional - don't uncomment if you don't know what they do!
# export ETHERSCAN_TOKEN=asdfasdfasdf
# export IPFS_URL=http://127.0.0.1:5001
# export UPLOAD_IPFS=true
# export PINATA_AP... |
3a6499effb9a89990b2e11595c3989d958d93697 | 71 | #!/bin/bash
vim=$(type -P n${0##*/} || wrapped "$0")
exec "$vim" "$@"
|
eff13ce0a674283e39b963464e1a54048d0b3fd7 | 105 | #!/bin/bash
NUM=0
while [ $NUM -lt 15 ]; do
iozone -i0 -i1 -i2 >> /dev/null
let NUM=$NUM+1
done
|
8f955813b4364ff52dc33294e31406578c621e7e | 499 | #!/bin/bash
nano /etc/slackpkg/mirrors
slackpkg update
slackpkg upgrade firefox zlib
wget https://github.com/sbopkg/sbopkg/releases/download/0.38.1/sbopkg-0.38.1-noarch-1_wsr.tgz
installpkg sbopkg-0.38.1-noarch-1_wsr.tgz
sbopkg
sbopkg -i python3
sbopkg -i python-urllib3
sbopkg -i slpkg
slpkg update
rsync -Hav rsync://p... |
af3a6a5b13e80be6755c74fde9bb3e6b5e35837b | 724 | #!/bin/bash
dist=el7
BASEDIR=/home/makerpm
sudo cp -a /root/sxdrive.git $BASEDIR/sxdrive.git
sudo chown -R makerpm $BASEDIR/sxdrive.git
sudo ln -s /usr/lib64/qt5/bin/lrelease /usr/bin/lrelease
sed -i "s/SRCVERSION/$SRCVERSION/g" $BASEDIR/sxdrive.spec
# FIXME
cd $BASEDIR/sxdrive.git && \
git archive --format=tar H... |
4ef6212b629da85afd791fafcd6c82546454b7ca | 166 | #!/usr/bin/env bash
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo apt-get install ipython
sudo apt-get update
|
394433682b5bc1403d60dac9f21a28de73508ad8 | 869 | #!/bin/bash
# create a virtualenv currtent directory and install the following
# django for python 3 , ipython
# not well tested
set -e # abort on errors
echo arg 1 = :$1: arg 2 = :$2: arg 3 = :$3:
# varfuervenv=$1
# function doit {
# shopt -s dotglob
pip_version="pip-3.2"
# echo arg 1 = :$1: arg 2 = :$2: arg 3 = :... |
8b5d93a72de315dac748f3590cd414c9ddc28d9a | 215 | #!/bin/bash
# AWS-Credentials
source ~/.aws_creds
# EC2-Einstellungen
source ../ec2-defaults
# Verwendung von ansible 1.8.4
source ../ansible-1.8.4/hacking/env-setup
# SSH-Schlüssel
ssh-add ../my-key-pair.pem
|
e9fbd6acd8b29233e649753582221d42ffd88f1e | 1,079 | export GATLING_HOME="/usr/lib/gatling"
# This allows exclusions and the like in the pattern expansion
setopt EXTENDED_GLOB
# Report the status of background jobs immediately, rather than waiting until
# just before printing a prompt.
setopt NOTIFY
# This option both imports new commands from the history file, and al... |
0763622b6cf9e893b1a1e3eeaa2eca94e6b61bdb | 165 | #!/bin/bash
curl -ik -X POST -H "Content-type:application/json" -H "Accept:application/json" --data @newconnector.json http://localhost:9999/api/connectors && echo
|
4e06fbbc20b34978e7eda451a1ac1c4244ddc2e5 | 2,669 | #!/bin/bash
# Copyright 2016 Author: Junbo Zhang
# Apache 2.0
# Computes GOP.
# Begin configuration section.
nj=1
cmd=run.pl
# Begin configuration.
# End configuration options.
echo "$0 $@" # Print the command line for logging
[ -f path.sh ] && . ./path.sh # source the path.
. parse_options.sh || exit 1;
if [ $... |
ef011a23785e5888c829a6b915b3a9f2f0d32204 | 85 | protoc --proto_path=./proto --cpp_out=./proto proto/caffe.proto
python setup.py build |
49b5569112404a2bc9643a0b4feba1a098acdfb6 | 889 | #!/usr/bin/env bash
echo "install packages, needs sudo"
sudo apt-get install geany gcc-avr avr-libc avrdude git
echo "clone needed repositories in ./Git or pull newest change, if repos already exist"
mkdir -p Git
cd Git/
if cd KAsuroParticipants; then git pull && cd ..; else git clone https://github.com/KAsuro/KAsuro... |
891c743c1cc5fdc1f24b4fdf4a9f269b62f3bf86 | 574 | hadoop fs -rmr result
hadoop jar /home/epcc/robeen/hadoop-0.21.0-streaming.jar \
-input 20GB.txt \
-output ./result \
-mapper /home/epcc/robeen/ShmStreaming/ShmWordcount/wordcountMapper \
-combiner /home/epcc/robeen/ShmStreaming/ShmWordcount/wordcountReducer \
-reducer /home/epcc/robeen/ShmStreaming/ShmWordco... |
41521746507b4fc5e7fa3d92b2ceb29c1267b315 | 1,943 | #!/bin/bash
OUTDIR=./data/
REF=`git rev-parse HEAD`
TIMEOUT_IN=900
OPTS="-no-inverting-opt -activity-look-freq=1"
#-no-inverting-opt
#-no-inverting-opt -activity-nl-freq=1
#-no-inverting-opt -sym-var-bump
#-no-inverting-opt -sym-usage-var-bump"
echo "$OPTS" | while read opt
do
echo "---------------------------... |
42efe574b5e1be5f15c6f9fd72e8982327225929 | 136 | #!/bin/bash
# Install baseline packages and tools.
set -e
set -o xtrace
apt-get install -y language-pack-en python-software-properties |
88c1b409944d5627c99acebe0b75132ff1c77119 | 597 | #!/bin/bash
if [[ -z ${ES_NODE_NAME} ]];then
if [[ -f /etc/conf.d/hostname ]];then
# The Gentoo way
ES_NODE_NAME=$(cat /etc/conf.d/hostname |awk -F= '/hostname=/{print $2}' |tr -d '"')
elif [[ -f /etc/hostname ]];then
ES_NODE_NAME=$(cat /etc/hostname)
else
# should never be called, as /et... |
e2d685c9d7b505de4534b983a2e47b5873c2f804 | 125 | #!/bin/sh
export DEBUG=${DEBUG:-electron-packager}
yarn run --silent electron-packager . --overwrite --no-prune --out build
|
04c79c1736544c1f50ded7447fbdaa4c2089cfea | 7,318 | #!/bin/bash
# LinuxGSM command_start.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Starts the server.
commandname="START"
commandaction="Starting"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
addtimestamp="gawk '{ print ... |
3e5e8f84b907bb29c47942ef3f8d2384a2134132 | 139 | #!/bin/bash -e
cd "$( dirname "${BASH_SOURCE[0]}" )"/..
export NOMAD_ADDR=http://10.42.2.2:4646
set -x
exec nomad node drain -self "$@"
|
8ecb2221b387956bd8d935112c97b9d3e28bf4fd | 64 | rsync --delete -av /home/dev/ownCloud/Scripts/ /shared/Scripts/
|
2d8625a77f6a02cc41b364ac965c2c7c405ec0f7 | 83 | cat $root_dir/task.bash
(echo 'my $x=1;'; echo 'my $x=1;'; echo '4;') | raku 2>&1
|
a76c596f8727069f22c53a932d82c2ab579fb103 | 930 | #!/bin/bash
# vim: ft=sh
set -e -u
RUN_DIR=/var/vcap/sys/run/worker
mkdir -p $RUN_DIR
PIDFILE=${RUN_DIR}/worker.pid
LOG_DIR=/var/vcap/sys/log/worker
mkdir -p $LOG_DIR
exec 1>> $LOG_DIR/worker.stdout.log
exec 2>> $LOG_DIR/worker.stderr.log
/var/vcap/jobs/worker/bin/pre_start
source /var/vcap/jobs/worker/config/env.... |
231905ea59b8e2b807513ef60de6a9cc3cda2d0d | 54 | #!/usr/bin/env sh
NODE_ENV=production node server.js
|
d589743e6242d816935c87a6cf85149a083893db | 198 |
SERVER_URL=0.0.0.0:8000
SERVER_READ_TIMEOUT=60
JWT_SECRET_KEY=YOUR SECRET KEY
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=1440
MYSQL_SERVER_URL=YOUR MYSQL SERVER URL
REDIS_SERVER_URL=YOUR REDIS SERVER URL
|
2333ad506a19866971c29e861b81b3c52b44a140 | 425 | sudo apt update &&
# Update the distro
sudo apt upgrade -y &&
sudo apt dist-upgrade -y &&
# Install dev goodies
sudo apt remove --purge openssh-server -y &&
sudo apt install -y openssh-server git zsh &&
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - &&
sudo apt-get install -y nodejs &&
# Oh-My-Z... |
aeb63bcf5675f96758d343434afb2c9e0f19645c | 3,524 | #!/usr/bin/sh
expName=$1
isDroplet=$2
barcodesFile=$3
sampleMetadataFile=${4}
dropletMetadataFile=${5:-''}
if [ "$isDroplet" = 'False' ]; then
# For SMART experiments, grep out the metadata lines we need for each run.
# If matching metadata can't be found then there's something wrong
cellMetaFile=$m... |
7fbcc8f9fd68e8ec95b946b54d08bc9a9aa94723 | 3,443 | #!/bin/bash
SCRIPT_DESCRIPTION="Maak certificaten via Let's Encrypt en plaats deze op de juiste plaats in de Kerio Connect SSL store."
SCRIPT_AUTHOR="Melvin Cornelissen"
SCRIPT_VERSION="1.5"
SCRIPT_DATE="26-10-2016"
SCRIPT_NAME=$(basename "$0")
DOMAIN_NAME="$1"
CERT_NAME="mx.$1"
FILE="/opt/kerio/mailserver/sslcert/$... |
991c57820bce577055ab93de21bb1fc78098c7d0 | 964 | #!/bin/bash
BOOT ()
{
A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
while [[ $A != "1" ]]; do
sleep 1;
A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
done;
}
Get_Google_Play_Services ()
{
wget "https://www.apklinker.com/wp-content/uploads/upl... |
62ee21808c54e0a417d121f6d9e93a1081d0a4bb | 18,675 | #!/bin/bash
#Copyright 2019 Verisilicon(Beijing) Co.,Ltd. All Rights Reserved.
#Author: carl.li@verisilicon.com (Carl Li)
#
#Description: Creates code for various purposes from
# given swhw register definition
if [ -z "$1" ] || [ ! -e "$1" ]
then
echo " This script produces swregisters.h, swregiste... |
49008a26b0aec8fcd3fd059b5981b694549fca45 | 117 | REACT_APP_ASR_PATH=http://localhost:5000/
REACT_APP_TTS_PATH=http://localhost:8899/
REACT_APP_REQUEST_TIMEOUT=600000
|
63f9044a176f0d5c9b16c8369cc1a3306c488a53 | 106 | #!/bin/sh
git pull https://github.com/SakuraSa/TenhouDB.git master
nohup python index.py 0.0.0.0:80 2>&1 & |
19ac291d7bfd7d9f24f05fef7768815e767528b7 | 700 | cd tests/GDaemon && ./daemon
cd ../../
sudo apt-get update -qq
sudo apt-get install -y -qq libssh2-1-dev libssh2-php
pecl install -f ssh2-beta < .noninteractive
sudo apt-get install -y -qq telnetd
whoami
echo `whoami`":1234" | sudo chpasswd
sudo netstat -lntup
# Make files
sudo mkdir /home/travis/build/ET-NiK/GameAP... |
05ddc558dc7ba159e784df240bfc451e784cbb5c | 409 | CONTAINER=$(docker ps -q)
if [ -z $CONTAINER ]; then
echo "Couldn't find running Docker container."
docker --version
docker ps
exit 1
fi
echo "waiting for Localstack to report 'Ready.' from container $CONTAINER"
while true; do
LOGS=$(docker logs $CONTAINER --since 1m)
if echo $LOGS | grep 'Ready.... |
a36ee1e686c3f9aa71be964fdb57082b2e05fdb9 | 586 | #!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" ]]; then cat <<HELP
Get WiFi SSID
http://benalman.com/
Usage: $(basename "$0")
If an SSID is specified and it is the current WiFi network's SSID, echo it,
otherwise echo nothing.
Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.
http://b... |
013bdf0bd4e65b7f14f165cf2e84f798b92e5f7f | 1,632 | #!/bin/sh
activexcode=/Applications/Xcode.app
xcode5=~/tools/Xcode502.app
xcode6=~/tools/Xcode640.app
xcode7=~/tools/Xcode710.app
export current_xcode_version=`xcodebuild -version | grep "Xcode"`
if grep "Xcode 5" <<< "$current_xcode_version"
then
echo Current version is Xcode 5
export current_xcode_version=5... |
c546d1f06a7ac9bb90728bdc65afb2f879a723f3 | 3,154 | #!/bin/bash -x
# write to file
write_to_file()
{
curl "http://localhost/~bram/github.com/atelierbram/Base4Tone-prism/src/db/views/html/header-b4t_classic-a.inc.php" > "views/inc/header/header-b4t_classic-a.inc"
curl "http://localhost/~bram/github.com/atelierbram/Base4Tone-prism/src/db/views/html/header-b4t_classic-b.i... |
81a44e40697e141c9fb254110afcbb6211c4db82 | 99 | REACT_APP_PUBLIC_KEY=** your razorpay key id **
REACT_APP_SECRET_KEY=** your razorpay key secret ** |
df45993f1848c5be088eb89f7e5c9b9d959fb54b | 48,884 | swift download -o data_in/wrfout_d01_2018-01-16_00:00:00 wrf_long_run wrfout_d01_2018-01-16_00:00:00
swift download -o data_in/wrfout_d01_2018-01-16_01:00:00 wrf_long_run wrfout_d01_2018-01-16_01:00:00
swift download -o data_in/wrfout_d01_2018-01-16_02:00:00 wrf_long_run wrfout_d01_2018-01-16_02:00:00
swift download -o... |
e21ac85727f76d08326cbf4753babe95041777c1 | 474 | #!/bin/bash
echo "Making FlashySlideshows.."
cd InputParser
./make
cd ..
cd AFScripts
./make
cd ..
cd TextAnalyzer
./make
cd ..
LIBS="InputParser/libInputParser.a InputParser/libInputParser_C.a AFScripts/libAFScripts.a TextAnalyzer/libTextAnalyzer.a"
g++ WebSniperApp.cpp WebSniperMain.cpp HTMLAnalyzer.cpp Gen... |
77a92f7b0cec7eb22c72f20503a8a97be98c3eb2 | 8,074 | # ecd — Enhanced CD (for bash)
#
# Author: Micah Elliott http://MicahElliott.com
# License: WTFPL http://sam.zoy.org/wtfpl/
#
# Usage: source .../ecd.sh; cd ...
# (Don’t try to run this file; it is to be sourced)
#
# Useful aliases:
# alias cdl='cd -l'
# alias cde='vim -o2 .enterrc .exitrc'
#
# NOTE: I no longer use t... |
cbd6c7491e3d03ba081ea8ffee70366bf7121131 | 193 | #!/usr/bin/env bash
set -eo pipefail
source /usr/bin/entrypoint
CHECK="$(echo stats | nc 127.0.0.1 11211 | grep uptime 2>/dev/null)"
if [[ "${CHECK}" =~ "STAT" ]]; then
exit 0
fi
exit 1
|
234a8f12ed609241b4572fad4fe56d21c819fbdf | 716 | #!/bin/sh
#Maximum number of attempts to enable hcismd to try to get
# hci0 to come online. Writing to sysfs too early seems to
# not work, so we loop.
MAXTRIES=15
#setprop bluetooth.hciattach true
setprop ro.qualcomm.bt.hci_transport smd
setprop qcom.bt.dev_power_class 2
setprop qcom.bt.le_dev_pwr_class 2
i=1
whil... |
68d7d54fde15b60c9e3af154e3fd2e697552ad06 | 265 | #!/bin/sh
working_dir=`pwd`
cd ..
echo $working_dir
version=`grep 'version' $working_dir/manifest.json | tr '"' '\n' |grep '[0-9]'`
zip -r $working_dir/Simple-Usage-Meter-$version.zip $working_dir -x \*.git\* $working_dir/testdata\* $working_dir/docs\* \*.zip
|
9a28b678f59c3be6fa3a1079e54b98485d9a33f8 | 356 | #!/usr/bin/env sh
set -e
echo "Enter release version: "
read version
read -p "Releasing $VERSION -are you sure? (y/n)" -n 1 -r
echo
if [[$REPLY=~^[Yy]$]]
then
echo "Releasing $VERSION ..."
gid add -A
git commit -m "[build] $VERSION"
npm version $VERSION --message "[release] $VERSION"
git push orig... |
49383634f09e16376d42d6ec588b5f5fde87a322 | 5,516 | #!/bin/bash -x
# ./install/fix-certificate.sh
#########################################################################
# Copyright (C) 2020 Sebastian Francisco Colomar Bauza #
# SPDX-License-Identifier: GPL-2.0-only #
####################################################... |
a2bf0e85461a23966dd2457a04a4233c6ee1ae9e | 792 | ###python3 generate.py data_giga_bin --path checkpoints/fconv/checkpoint_best.pt --batch-size 128 --beam 5
CUDA_VISIBLE_DEVICES=1 python3 generate.py data_giga_bin --path checkpoints/fconv/checkpoint_best.pt --beam 5 --batch-size 128 --lenpen 0.5 --remove-bpe | tee > ./output/result
: <<END
...
| Translated 3003 sen... |
e06c42d20ff5da548c76dc970e34baa51d67bb93 | 274 | #!/bin/bash
if [ "x$1" == "x" ]; then
echo use: $0 name
exit 1
fi
for f in `find . -type f | grep -vE '(git/|lib/)'`; do
if [ "`file -I $f | grep -E '(text|xml)'`" != "" ]; then
sed -e s,angular-signup-app,$1,g < $f > $$.tmp
mv $$.tmp $f
fi
done
rm -f bootstrap.sh
|
3bd796dbc91beddec86746ca60278f0ce8f99424 | 181 | #!/bin/sh
mv constants.hpp ../include/gapi/constants.hpp
mv functions.hpp ../include/gapi/functions.hpp
mv known.hpp ../include/gapi/known.hpp
mv functions.cpp ../src/functions.cpp
|
e90d7b19c8a6fec72b078a4399daf9939edd7d36 | 1,237 | # Maintainer: Zylex <zylex.stk@gmail.com>
pkgname=vala-gen-project-git
pkgver=20130510
pkgrel=1
pkgdesc="Tool to generate Vala projects from templates, taken from VTG."
arch=('i686' 'x86_64')
url="http://code.google.com/p/vtg/"
license=('GPL2')
depends=('vala')
makedepends=('git' 'gnome-common')
options=(!libtool)
pro... |
518c47dbd88811856c2c0e361a9f2492668080be | 967 | #!/bin/bash
# arecord -q -t wav -d 5 audio.wav
arecord -q -D hw:1,0 -f s16_le -c 1 -d 15 > audio.wav
sox -q audio.wav -r 16000 -b 16 -c 1 audio.flac
language=$1
output="NO_OUTPUT"
if [[ "$language" == "US" ]]; then
output=$(wget -q -U "rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?lang=en-US&cli... |
c76187319238c24601e0a98baca86299c11fa535 | 987 | #!/usr/bin/env bash
npm_update() {
if command -v 'npm' > /dev/null; then
echo "Attempting npm update. Please wait" >> ~/.dotfiles.log
npm install -g npm 1>> ~/.dotfiles.log
print_result $? 'NPM update'
echo "Attempting npm upgrade npm packages. Please wait" >> ~/.dotfiles.log
npm update -g 1>> ~... |
f47cd9b4f11b53fc42f9c7abb702a617e70f9833 | 440 | #!/usr/bin/env bash
if [ -e "./data/mesh_reconstruction_dataset.zip" ]; then
unzip ./data/mesh_reconstruction_dataset.zip -d ./data/datasets
mv ./data/datasets/mesh_reconstruction/* ./data/datasets/
rm -rf /data/datasets/mesh_reconstruction
else
echo "Please download dataset from https://drive.google.c... |
66cc249f6e93f3078304603f42f616a91a80a4c6 | 520 | # $Id$
# Maintainer: damir <damir@archlinux.org>
# Contributor: Ben <ben@benmazer.net>
pkgname=ne
pkgver=1.41
pkgrel=1
pkgdesc="the nice editor"
arch=(i686 x86_64)
url="http://ne.dsi.unimi.it"
depends=('glibc' 'ncurses')
source=(http://ne.dsi.unimi.it/$pkgname-$pkgver.tar.gz)
md5sums=('023e68d23a6216e89737ff2b6996aa77... |
97af65de009fb38722d226fecedfa1f6a7716615 | 6,352 | #!/bin/bash
set -e
# Define all the versions that should be generated
VERSIONS=(1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3)
# Define the "latest" version
LATEST=1.3.3
# Define which JRE versions to generate for
JRES=(7 8)
# Define the default JRE
DEFAULT_JRE=8
# Define default platform
DEFAULT_PLATFORM... |
7595a177d1bf882421d0e0596b33372d0d06fe72 | 766 | #Purpose: make dauily backup from DC to Office
#Revised: 20200420
#Version control
#Git name
#!bin/bash
#Home dir
BACKUPHOME=/backup/ETNbackup
#Source dir
SDIR1=192.168.0.55:/home/ETN_Documents/SdDocument
SDIR2=192.168.0.55:/home/ETN_Documents/SdDocumentAddendum
#Destination dir
DDIR=$BACKUPHOME/ETN_Documents
#Excl... |
962520c826d177cb9d16eac4765cd881c11f499e | 27 | PORT=3001
JWK = secret.json |
c96fa34946d9f590d425bcf5236e6133400cbd30 | 977 | #!/bin/bash
while true; do
choice=$(\
dialog \
--clear \
--stdout \
--backtitle "HADRIAN: Installation" \
--title "Choose Packages" \
--checklist "Use SPACE to toggle on/off." 17 80 10 \
capnet-assist "Captive Portal Assistant" off \
cerbere "The Pan... |
b73a09532a5fc625747159059bff8b88becbe1f7 | 407 | #!/usr/bin/env bash
export BASE_DIR="${HOME}/.base"
if [ ! -d "${BASE_DIR}" ]; then
git clone --recursive --quiet "git@github.com:nadeemahmad/dotfiles.git" "${BASE_DIR}"
bash "${BASE_DIR}/build.sh"
fi
# Load common configuration
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Load zsh if it's available
if [ -... |
2196bf7d1b8e42d0c0aa0d022f9698ec66764ea5 | 186 | DB_CONNECTION_FILE=.env.db
DB_SCHEMA=public
VAULT_SCHEME='https'
VAULT_TOKEN_FILE=.env.secret.vault
VAULT_SKIP_VERIFY=true
VAULT_PKI=pki/meerkat
VAULT_TLS_AUTH=kv/meerkat/data/tls-auth
|
e38640896842484c79cbb731deb712a2a330d89a | 126 | PUSHER_APP_ID='548081'
PUSHER_APP_KEY='eeda9ba7478ba9d0c0af'
PUSHER_APP_SECRET='b18f13335172ab4dcb5e'
PUSHER_APP_CLUSTER='ap2' |
b4e846827bc419410f5857f79e4758a53656dfa9 | 72 | #!/bin/bash
# cURL headers
curl -s "$1" -H X-HolbertonSchool-User-Id:98
|
1efd5171542d15a7068011e9c3df55c64281a237 | 1,663 | #!/bin/bash
set -e
. /etc/pkg/pkg.conf
. /var/lib/pkg/functions
name=$(basename $0)
version=$GCC_VER
url=http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz
fetch $url
rm -fr $WORK_DIR/$name-$version
tar -xvf $SOURCE_DIR/$(basename $url) -C $WORK_DIR
cd $WORK_DIR/$name-$version
{ time \
{
case $(una... |
054f73e11191974a37e05cf5272bc165943e222e | 295 | #!/bin/sh
#Simple script print current audio/video mpv
musicIcon=""
cmus_current=$(cmus-remote -C status | grep "tag title" |awk '{print $3 $4 $5}')
if [ -z "$cmus_current" ]
then
echo -n "%{F#FF0000}$musicIcon off%{F-}"
else
echo -n "%{F#00FF00}$musicIcon $cmus_current%{F-}"
fi
|
3e9dc0c9589cbf4a3c152e9a490a96e394e2db5e | 321 | #!/bin/sh
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=20G
#SBATCH --time=10:00:00
#SBATCH --output=step01.parent.sh.%A_%a.stdout
#SBATCH -p intel
#SBATCH --workdir=./
scripts=`pwd`/scripts
#SNP called by Sofia
perl $scripts/genotype/RIL_VCF2Parents.pl --vcf ../input/reference/HEG4_dbSNP.VQSR.vcf
echo "done"
... |
7a130bcaf9f6d0423a171a81a4865c8539955060 | 782 | #!/bin/bash
count=1001
while [ $count -le 1964 ]
do
infile="/augie/gluster/data/netCDF/pmel/cccma/cccma_week${count}.nc"
mean="/augie/gluster/data/netCDF/pmel/cccma/Outputs/cccma_h1_average.nc"
outfile="/augie/gluster/data/netCDF/pmel/cccma/Diff/cccma_diffh1_week${count}.nc"
echo "Executing: ncbo $infil... |
4dc6a225dc14211ebce1258d7f30aa64d63dac70 | 1,647 | #!/bin/sh
echo "Waiting for database connection..."
until netcat -z -v -w30 $DB_HOST $DB_PORT
do
sleep 1
done
echo "WEB IS RUNNING"
# # Static files
# npm cache clean
# npm install .
# npm install -g less
# npm run build-css
# python manage.py collectstatic --noinput
pip install -r /app/CompetitionPlatform/requir... |
ebb116872d702af7eb767de78f9c4401c9e7d777 | 84 | #!/usr/bin/env bash
PYTHONPATH=$PYTHONPATH:src/ python src/scrape_riot_api.py config |
d41b494909438abb7eed0a537cd53213c35afc34 | 2,079 | #!/bin/bash
# Determine OS version
# Save current IFS state
OLDIFS=$IFS
IFS='.' read osvers_major osvers_minor osvers_dot_version <<< "$(/usr/bin/sw_vers -productVersion)"
# restore IFS to previous state
IFS=$OLDIFS
ERROR=0
# Checks to see if the OS on the Mac is 10.13 or higher.
# If it is not, the following me... |
81ec95b6c3b2ff9e62fff9426249d47d97d6575d | 217 | MONGO_URI=mongodb://admin:passw0rd@ds153766.mlab.com:53766/softcraft_development
CLOUDINARY_KEY=343426173554196
CLOUDINARY_SECRET=qWuM_lVPXNxikakDN0y2tz01A1Q
CLOUD=kaungsorcerer
CLOUDINARY_FOLDER=softcraft_development |
b4782fe680ca460217a18c585a95f5916063f2ee | 338 | #!/bin/bash
/usr/bin/go run server.go -generate
/usr/bin/rsync -trzR \
--delete \
--progress \
./css/ ./favicon/ ./js/ ./pages/ \
root@gudmundur.net:/usr/share/nginx/gudmundur.net/
/usr/bin/rsync -trz \
./nginx.conf root@gudmundur.net:/etc/nginx/sites-available/gudmundur.net
ssh root@gudmundur.net 'system... |
a27e297fe0f1576e53eaa9947a831d84bc0cbae8 | 366 | #!/bin/bash
sz="$(stat -c %s s.img)"
sz=$((sz/512))
sz=$((sz + 2048 ))
sz=$((sz / 2048 ))
sz=$((sz * 2048 ))
sum=2048
newsum=$((sum+sz+2048))
rm -f system-gpt
truncate -s $((newsum*512)) system-gpt
/sbin/sgdisk -C system-gpt
/sbin/sgdisk --new=1:2048:+$sz system-gpt
/sbin/sgdisk --change-name=1:system system-gpt
dd i... |
cb310bd53ef12590427d421d0b7b79bbc4be3677 | 82 | #!/bin/bash
for number in {00..99}
do
cp room.skeleton $number.room
done
exit 0
|
a42f3b3a40b493f2c832a93d16f7bacb33d55fee | 870 | #!/bin/bash
OPERATOR_NAMESPACE=${OPERATOR_NAMESPACE:-}
ZAP_FLAGS=${ZAP_FLAGS:-}
OUTPUT="${OUTPUT:-out/acceptance-tests}"
mkdir -p "$OUTPUT"
SBO_LOCAL_LOG="$OUTPUT/sbo-local.log"
_killall(){
which killall &> /dev/null
if [ $? -eq 0 ]; then
killall $1
else
for i in "$(ps -l | grep $1)"; do... |
27125cd79187c3808e04aef3be3cf6a9bc8e1706 | 1,327 | #!/bin/bash
database="{{ database }}"
declare -a raster_names=('worldpop2020_1km' 'worldpop2020_100m')
declare -a commands=(\
"bash ./db_setup_${database}.sh" \
"bash ./osm_gadm_tables_${database}.sh")
for cmd in "${commands[@]}"; do
echo "\n ${cmd}"
eval "$cmd"
done
for raster_name in "${raster_names[@]}"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.