blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
fc7ca3d589a2886d72c3640ed47ab9624604dbb8 | 65 | #!/bin/sh
./make.sh
fswatch ./src/*.coffee | xargs -n1 ./make.sh
|
180f4059ee88a111031bc41327a75e0b8cb5ee3e | 219 | #!/bin/bash
source etc/config
for sync_pi_alias in "${sync_pi_aliases[@]}"
do
echo "$sync_pi_alias ---------------------------------------- $sync_pi_alias"
ssh $sync_pi_alias "tail $pi_syncdir/sync.log"
done
|
50d5a025c9aa4b0ac59613e153fde257a506104c | 198 | #!/bin/bash
############################################
##### Ericom Shield Status #####
#######################################BH###
helm list
#curl -k http://localhost/health
echo
|
5c45a20538bfb8c17a4382ac4a863c38668d5fcd | 350 | #!/bin/sh
cp ~/.gnome2/gedit/snippets/* ./snippets/
cp -R ~/.gnome2/gedit/plugins/* ./plugins/
cp ~/.gnome2/gedit/styles/* ./styles/
cp /usr/share/gtksourceview-2.0/language-specs/ruby.lang ./lang-specs/
cp /usr/share/gtksourceview-2.0/language-specs/yml.lang ./lang-specs/
cp /usr/share/gtksourceview-2.0/language-s... |
5f05f466e6eff0a4e95be0db74273497bbc7a697 | 1,386 | #!/bin/bash
PROVIDERS=(#"testvelocidadeu.mismenet.net" \
"speedtestbcn.adamo.es" \
"speedtestbcn.adamo.es" \
"testvelocidad.eu/speed-test" \
"testvelocidad.eu/speed-test" \
"speedtest.conectabalear.com/ba/")
DEBUG=0
MIN=6 # minimum value for the longitude of random value of salt
MAX=8 # maximum value for the longitu... |
2e81099d1a18a25ea7e1ea162e7250fd3e7e10cc | 2,367 | #!/bin/bash
menu_src () {
bot_retorno=" ⚡ Bienvenido al BotGen ADM-VPS ⚡\n"
if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
bot_retorno+="$LINE\n"
bot_retorno+=" ⚠️ TENDRAS ACCESO ILIMITADO ⚠️ \n 🚫 Sin TU RESELLER EN LA KEY 🚫"
bot_... |
0255c201b1a1246b60d3c642b71ee2d10ed2d605 | 1,562 | #!/bin/bash
#####################################################
# #
# A shell script to install Salt-Minion on Debian #
# #
#####################################################
# check if the current user is root
... |
2c30db2b282fcdf24ef4a2395f8214fef6ee3831 | 267 | #!/bin/bash -eux
# Set fleet version
FLEET="v0.8.3"
# Install fleet
sudo wget https://github.com/coreos/fleet/releases/download/$FLEET/fleet-$FLEET-linux-amd64.tar.gz
tar -xf fleet-$FLEET-linux-amd64.tar.gz && cd fleet-$FLEET-linux-amd64/ && sudo cp flee* /usr/bin
|
3608aa3107f615441c121921d439a13514185a35 | 292 | ZEEBE_ADDRESS='e3592784-3553-44b7-943e-7b7caf32f21b.zeebe.camunda.io:443'
ZEEBE_CLIENT_ID='er2utYoG3NMg29~0-fd9c3n_9P8-d7AE'
ZEEBE_CLIENT_SECRET='~--_ci-auYDtOK4j54vHf0nn6W1BaeP-8mi0Z5WN0eg7jeIFwTVcD.QNd2BuT6SR'
ZEEBE_AUTHORIZATION_SERVER_URL='https://login.cloud.camunda.io/oauth/token'
|
55973906c608246c6e3f42b2dec9b77c865ec236 | 565 | #!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/apps/internal-functions"
apps_locked_cmd() {
declare desc="checks if an app is locked for deployment"
declare cmd="apps:locked"
[[ "$1" == "$cmd" ]] && shift 1
... |
5b3a3adfa4f620f714343766466684fb73c37794 | 1,630 | #!/bin/bash
function load_params {
event_rates=($(grep "event rates" < calibrate.param))
event_rates=${event_rates[@]:3}
sample_size=($(grep "sample size:" < calibrate.param))
sample_size=${sample_size[@]:2}
change_cpus_governor_path=($(grep "change cpu governor path" < calibrate.param))
change_cpus_governor_pat... |
e59610be990f3cdf68fcdf9106daa6374a8cfc8c | 89 | #!/bin/bash
make clean
make
qemu-system-x86_64 --no-reboot -kernel kernel -serial stdio
|
1a99549992599026dc5667077bd9c71f78bf44ec | 205 | for f in $(ls ./*.csv | grep -vE '03-2[2-9]|03-3[0-1]'); do cat $f | awk -F ',' '{ print $2 }'; done | sort -u | sed 's/["\*]//g' | sed 's/^ //g' | grep -vE '^[A-Z]{2}$' | uniq > scrubbed_country_list.txt
|
6b139b4210ed7ae403d5ca041118197ad3a6b63c | 150 | #!/bin/sh
. ../../scripts/docker_functions.sh
. ../../scripts/color_and_format_functions.sh
no_cache=$1
img_name="apf/web-jsf"
docker_build $no_cache
|
50872e7d8429a2819f9ad86e081b5f1aa77d37f6 | 284 | REACT_APP_MAPBOX_TOKEN=pk.eyJ1IjoiZWxlZG9uIiwiYSI6ImNrbTBmaGJrMjFpdzMydXJ6dDZmZW1vMWYifQ.7z-Hdb4FoPZCKJYM1it7Tw
REACT_APP_API=https://rss-travel-app.herokuapp.com
REACT_APP_CURRENCY_URL=https://www.cbr-xml-daily.ru/daily_json.js
REACT_APP_WEATHER_KEY=2ecdbcd74acc04b0ecd238486739e5ae
|
6219df54ce348a3f42bacb506dae084ea8268f84 | 877 | # Maintainer: Logan Allen <loganfynne at gmail dot com>
pkgname=chromium-update
pkgver=1.1
pkgrel=13
pkgdesc='Simple SH installer and updater of precompiled Chromium nightly builds'
arch=('any')
url="http://www.loganfynne.com/pkg/chromium-update.tar"
license=('GPL')
conflicts=('chromium')
depends=('gconf' 'libpng12' 'g... |
1154495ca8982fc151c5a5610484eb3295f4262e | 233 | #!/bin/sh
# go to frontend root
cd ../frontend/
# Create frontend docker image
npm run build-docker
# go to backend root
cd ../backend/
# Create frontend docker image
npm run build-docker
# run docker-compose file
docker-compose up
|
f0b656c0c2a3ef098dffb51040107b7b4631e8e3 | 89 | #!/usr/bin/env sh
kubectl delete configmap hello-k8s
kubectl delete deployment hello-k8s
|
671c93602b1b6354da9ef25954e2bca769fd2cf8 | 1,331 | #!/bin/zsh
type=${1:="sess"}
if [[ $type == sess ]];then
export yprofile="dactyl-sess"
pushd ~/.dactyls/sessions
file=$(print -l *(om[1,-1]) | ${=DMENU})
[[ -z $file ]] && exit
if [[ -n $file && $file == *: ]];then
while :;do
url=$($=DMENU < $file)
... |
fa1ba8e8e25aa45399282f48586c64709e900d0c | 29 | // Bot token goes here
TOKEN= |
3f40dc0578f3ef9a80e1a60420611a4aad92673f | 216 | #!/bin/bash
status=`systemctl status logstash.service | awk 'NR==3' | awk '{print $2}'`
if [ $status == "active" ]; then
echo "OK"
exit 0
else
echo "Logstash indisponivel"
exit 1
fi
|
55bcdfdc245ec20badadc17cd90c09dfcecc1489 | 1,143 | #!/bin/bash
# author: guerillatux
# desc: simple iptables based firewall for ipv4 and ipv6, udp and tcp
# last modified: 07.03.2016
# ensure that it works for both, ipv4 and ipv6
IPT () {
iptables $@
ip6tables $@
}
# remove everything and start from scratch
IPT -F INPUT
IPT -F OUTPUT
IPT -F FORWARD
# deny ever... |
063cd366ae2b0e24a91c1b37390edeeef30f15e2 | 49 | #!/bin/sh
echo 'standby 0' | cec-client -s -d 1
|
eec7408d8ec7a6e789440b6ba8e12f435d252ee7 | 1,266 | echo "[STATUS] Cloning TF repo"
git clone https://github.com/tensorflow/tensorflow.git &&
echo "[STATUS] Installing Java"
sudo apt install -y openjdk-8-jdk
yes | sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get -y install oracle-java8-installer
echo "[STATUS] Installing other depende... |
5df7a46ad58c21341eca20851e04a49a2909cbcc | 509 | LUNATIC_LOADER_WORKER_PATH=workers/lunatic-append-worker-0.3.0-experimental.js
#REACT_APP_LUNATIC_LOADER_WORKER_PATH=workers/lunatic-append-worker-0.2.4-experimental.js
LUNATIC_SEARCH_WORKER_PATH=workers/lunatic-searching-worker-0.3.0-experimental.js
#REACT_APP_LUNATIC_SEARCH_WORKER_PATH=workers/lunatic-searching-worke... |
5e78e060e5e234b0d51db2e54b0ae4e2a096d5b8 | 4,228 | #!/bin/bash
set -e
set -x
basedir=$(cd `dirname $0`; pwd)
source ${basedir}/harbor.cfg
if [ "${HARBOR_DEPLOY_TYPE}" == "nodeport" -a "${CLUSTER_MASTER_IP}" == "" ];then
echo "CLUSTER_MASTER_IP: is valid, which cannot be null ..."
echo "please update ${basedir}/harbor.cfg"
exit 1
fi
if [ "${HARBOR_DEPLOY_TY... |
0f4cf453304551c5250c1af55d98bf5384a3e797 | 5,375 | #!/bin/bash
#*****************************************************************************************
# *用例ID:Function_001
# *用例名称:李仁性
# *用例功能:板载端口检查
# *作者:LWX638710
#... |
83d1f17561e4e7bf37f89deb0dbf2a5b9bfd72af | 36 | export PATH = "/usr/local/bin:$PATH" |
5753469eef4cc7098226ba55f50f59fecd6f9e09 | 571 | #!/usr/bi/sh
# 28. ... Damn it, a group of zergs is attacking orbital-command, and shutting down
# the engineering-bay service won’t help at all... You must send a troup of Marines
# to eliminate the intruders. Launch a 42school/marine-squad in two replicas,
# and make sure that the service works properly (see the docu... |
2bcaa31380b4ea830844b267a9bde1b44f0c5c98 | 1,769 | #!/bin/bash
#
# Starts a fabric with the given environment variables
#
# Sets the environment variables
#
if [ -z $FABRIC_USER ]; then
export FABRIC_USER=admin
fi
if [ -z $FABRIC_PASSWD ]; then
export FABRIC_PASSWD=admin
fi
if [ -z $SSH_PASSWD ]; then
export SSH_PASSWD=admin
fi
if [ -z $ZOOKEEPER_PASSWD ]; ... |
5c13a7789a1d7266af3f085ee19f2a17e7f5c692 | 128 | #!/bin/bash
# Usage: ./npm_install.sh <npm>
cd .meteor/local/build/programs/server/node_modules && npm install $@
echo "Cool!"
|
89f1554102b46ce74e123df9333d27857bdf4ffe | 396 | #!/bin/bash
set -e
sudo apt-get -y install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-... |
c2d0b1e6b707bf1515ca020b9179d33793a84ba9 | 1,378 | #!/bin/bash
echo [testing queue module]
valgrind --leak-check=full --show-leak-kinds=all ./testQ 1
valgrind --leak-check=full --show-leak-kinds=all ./testQ 2
valgrind --leak-check=full --show-leak-kinds=all ./testQ 3
valgrind --leak-check=full --show-leak-kinds=all ./testQ 4
valgrind --leak-check=full --show-leak-k... |
2ee657617900a0d7b25f6b317b7c8a6835536231 | 52 | PORT=
SECRET=
PG_USERNAME=
PASSWORD=
DATABASE=
HOST= |
0cfff50b11c43b1384fdc1e8853cd73c0d7309ec | 609 | python3 ../../../main_linear.py \
--dataset imagenet \
--encoder resnet50 \
--data_dir /datasets \
--train_dir ILSVRC2012/train \
--val_dir ILSVRC2012/val \
--max_epochs 100 \
--gpus 0 \
--accelerator ddp \
--sync_batchnorm \
--precision 16 \
--optimizer sgd \
--scheduler... |
b7a5f4785e37869146de53c9267a6348fc078e2e | 332 | #!/bin/bash
echo -n "Sisesta ridade arv: "
read row
echo -n "Sisesta t2rnide rav reas: "
read t
for (( i = 1; i <= 5; i++ ))
do
if (( $i == 1 || $i == 5 ))
then
echo -n $i". "
for (( j = 1; j <= $t; j++ ))
do
echo -n "*"
done
echo ""
else
echo -n $i". "
echo -n "*"
for (( q = 2; q <= 4; q++ ))
do
echo -n " "
done
echo ... |
3b5a04a04edb99c9ac8eb6bb6cb863a9fbb0d475 | 874 | #
# ~/.bashrc
# borrowed from https://github.com/pierrekilly/docker-ros-box/blob/master/docker/bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
export QT_X11_NO_MITSHM=1
function returncode
{
returncode=$?
if [ $returncode != 0 ]; then
echo "[$retu... |
344de0cb57ad4136ca7a4d73b3760c9ea765e8f6 | 567 | #!/bin/sh
# This is a rather sucky way of doing this, but oh well.
# I hate build systems.
FILES="errorReport.cmo syntree.cmo parse.cmo lex.cmo \
symtbl.cmo modules.cmo ir.cmo fpConverter.cmo codegenHelp.cmo \
codegen.cmo semant.cmo x86nasm.cmo main.cmo"
OPTFILES="errorReport.cmx syntree.cmx parse.cmx lex.cm... |
ac31d765568923977a4276091c6c8d2f22fc6fef | 143 | #!/bin/bash
cp -v etc/X11/xorg.conf.d.samples/11-modesetting.conf etc/X11/xorg.conf.d
cp -v boot/extra/gxl-tv-box-u-boot.bin boot/u-boot.bin
|
5658dcb915dbde9b15383106c1e913debce5c7f4 | 4,745 | #!/bin/sh
. /usr/share/usrv6/babel.sh
. /usr/share/libubox/jshn.sh
function create_new_prefix_section {
local p=$1
local k=$2
local gw=$3
uci import prefix-switcher < /etc/config/prefix-switcher
uci set prefix-switcher.$k=prefix
uci set prefix-switcher.$k.prefix=$p
uci set prefix-switcher.$k.gatew... |
82a1570d73512a37b43fe4858fea173fabc2131b | 87 | # add geographiclib to path
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:third_party_lib/
|
9e816b0c438cadf866c98a16225f95367ea2df51 | 138 | #!/bin/bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $CURRENT_DIR/build-python.sh
. $CURRENT_DIR/build-php.sh
|
6ac86e0fc2112b6acd5b05945f63f522e3e37fcf | 169 | #!/bin/sh
GRAY='\033[0;37m'
NORMAL='\033[0m'
RED='\033[0;31m'
nsl=`nslookup slash16.org 8.8.8.8`
echo "${GRAY}nslookup slash16.org 8.8.8.8${NORMAL}"
echo "${RED}$nsl"
|
97a5fea80eb920985c385a0a20cd65ef3c20d63f | 440 | #!/bin/bash
#Deploy Machine Agent
wget -e use_proxy=yes -e https_proxy=http://sngidc-dmz-wsa-1.cisco.com/ -O - https://raw.githubusercontent.com/wgtndan/CCC-Scripts-for-DevNetDemo/master/InstallAppdMachineAgent.sh | sudo bash
#Deploy NGINX Agent
wget -e use_proxy=yes -e https_proxy=http://sngidc-dmz-wsa-1.cisco.com/... |
e4f0a04067a9eba8b5642f0b463a5204782bbca5 | 2,246 | #!/bin/bash
################################################################################
## Copyright: HZGOSUN Tech. Co, BigData
## Filename: installAll.sh
## Description: 安装所有组件的脚本.
## Version: 2.0
## Author: zhangbaolin
## Created: 2018-6-26
######################################################... |
9daaaa5d0155ae79c5fc958d05891c2a49da617b | 1,480 | #!/usr/bin/env bash
# Download all required data for small BAM and store in HDFS. Use this for non-GCS clusters.
TARGET_DIR=${1:-small_spark_eval}
hadoop fs -stat $TARGET_DIR > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "$TARGET_DIR already exists. Delete it and try again."
exit 1
fi
set -e
set -x
# Create data... |
768139fb1f0dbf39b91407a30c33e8622f5aaf1a | 1,242 | #!/bin/bash
function get_host_name() {
curl http://169.254.169.254/latest/meta-data/hostname
}
function get_node_ip() {
curl http://169.254.169.254/latest/meta-data/local-ipv4
}
function get_account_id() {
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | awk -F'"' '/\"accountId\... |
2c8f649197cc200bf7a45c3ef8b90c03c98897c5 | 386 | #!/bin/bash
#PBS -lselect=1:ncpus=8:mem=48gb:ngpus=2
#PBS -lwalltime=24:00:00
# Load dependencies
module load anaconda3/personal
source activate project2_venv
# Check GPUs
echo "Available GPUs: $CUDA_VISIBLE_DEVICES"
# Launch script
echo "Launch script"
python3 $HOME/project_2/experiment4_ap.py $CUDA_VISIBLE_DEVICES... |
3ddaa4d660434a363bf64e5fccadd5afad4d2827 | 99 | #!/bin/bash
tail -f ~/projects/fruithap/Engine/FruitHAP.Startup/bin/Debug/log/sensorProcessing.log
|
1b2595c7c4bf9d4d2cde852f46ad19f2d026f6a8 | 124 | #!/bin/bash
"/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli" --select-profile "Desktop"
exit 0
|
6b48136296679706dfc746a0833c2cd85719f4a9 | 508 | #!/bin/sh
#PBS -N pr1_s3_ex1c_10p3
#PBS -o ex1c_10p3.out
#PBS -e ex1c_10p3.err
#PBS -l nodes=4:ppn=8
#PBS -l walltime=00:05:00
mpiexec -np=2 ./ex1c 3
mpiexec -np=4 ./ex1c 3
mpiexec -np=6 ./ex1c 3
mpiexec -np=8 ./ex1c 3
mpiexec -np=10 ./ex1c 3
mpiexec -np=12 ./ex1c 3
mpiexec -np=14 ./ex1c 3
mpiexec -np=16 ./ex1c 3
mpie... |
cbbd91419fba838fa030d9a3eac5a0313f840e24 | 3,345 | #
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# for powerlevel9k theme
# some things, like the _MODE variable, need to be set before loading the theme through prezto!
export DEFAULT_USER=pbos
export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon c... |
de0693134cc0e3c8cc71d8f302d16d19cd7e2963 | 203 | Repeating commands with `watch`
Rapidly invoke an editor to write a long, complex, or tricky command
Useful aliasing in bash
Random password generator
Keep useful commands in your shell history with tags |
d4bd991243af5697b08f5762a2f8d950244bc62b | 142 | #!/usr/bin/env bash
source $(dirname $0)/../../state.sh
source $(directory)/bin/create_shortcut/create_shortcut.sh
create_shortcut $1 "${2}"
|
50fe12d8cb51f70a6b489820ddebc30f06aa63ed | 109 | #!/bin/bash
COMPOSE_OPTIONS="-e USER=$(id -un) -e UID=$(id -u) -e GID=$(id -g)" \
docker-compose up --build
|
37885d059b13e0b9f0114e576bfc99c862a98092 | 1,145 | #!/bin/bash
# LOCATIONS FOR UBDL CONTAINER (FOR USE ON TUFTS TYPICALLY)
# ROOT
source /usr/local/root/build/bin/thisroot.sh
# CUDA
# typical location of cuda in ubuntu
export CUDA_HOME=/usr/local/cuda-10.0
[[ ":$LD_LIBRARY_PATH:" != *":${CUDA_HOME}/lib64:"* ]] && export LD_LIBRARY_PATH="${CUDA_HOME}/lib64:${LD_LIBRA... |
147fd1290a233aae8f7ca5c2c82424e2fbc32942 | 2,054 | #!/bin/bash
function chk_prog() {
make -s $1
if [ "$?" != "0" ]
then
echo ERROR: Could not create program \"$1\".
exit 1
fi
}
chk_prog checker
chk_prog pqtest
RET_STATUS=0
TEST_NUM=0
function chk_pqueue() {
TEST_NUM=`expr $TEST_NUM + 1`
./pqtest
if [ "$?" == "0" ]
then
echo Test $TEST_NU... |
a499194268c048b35c133e36aae5d7c4b8148d12 | 336 | #!/bin/bash
DATE=`date +%y%m%d-%H%M%S`
LOGDIR=logs/$MACHINE/$DATE
ROOTDIR=`pwd -P`
SUMMARY_FILE="$ROOTDIR/$LOGDIR/summary"
ERR_CNT=0
TESTDIR=checkouts/$DATE
if [ "$LOCAL" == "TRUE" ]; then
REPO=$HOME/codes/CVMix/.git
else
REPO=git@github.com:CVMix/CVMix-src.git
fi
RUNCOMPILERS=()
if [ ! -e $LOGDIR ]; then
mkdi... |
15715e5cb848217b29438027f641a467b6fd608f | 101 | #!/bin/bash
# Updates all configured mirrors
aptly mirror list -raw | xargs -n 1 aptly mirror update
|
04500a7404c688570f1a42e8bd88ee638e5efdff | 399 | #!/usr/bin/env bash
set -Cue -o pipefail
PROJECT_DIR="$(cd "$(dirname "${0}")/../.." ; pwd)" # Absolute path to project
(
cd "$PROJECT_DIR"
docker build . -t ltonetwork/public-node:dev
docker run -d --rm -p 6869:6869 -e LTO_NETWORK=CUSTOM -e LTO_ENABLE_REST_API=true -e LTO_API_KEY=open --name=lto_public_node... |
e824d48d7b8af0963f8a3bef7b1e991ea5e430ff | 238 | #!/usr/bin/env bash
#
# get the namespace of the latest coordinator
#
K8S_NAMESPACE=$(kubectl get pods -A --sort-by=.metadata.creationTimestamp | \
grep coordinator | grep Running | awk '{print $1}' | tail -1)
echo ${K8S_NAMESPACE}
|
b7e37d25a1f1d3811b717fdb6a33c247211f3c97 | 42 | #!/bin/sh
echo "-> Starting.."
exec "$@"
|
3df65daccf8b4bc765dccfee676ee1fe69a5a621 | 2,223 | #!/bin/bash
# Install dependencies
echo Installing dependencies
apt-get install -y curl wget libltdl7 libseccomp2 libffi-dev apt-transport-https ca-certificates gnupg gnupg-agent lsb-release software-properties-common sshpass pv gawk
# Enable docker repository
echo Enabling docker repository
mkdir -p /etc/apt/keyrin... |
944762a8df4c6a604495912c657ca4832664f7b5 | 2,306 | #!/usr/bin/env bash
# Copyright (C) 2017-2018 Swift Navigation Inc.
# Contact: Swift Navigation <dev@swiftnav.com>
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS"... |
0b42276ab0978fa4402e47db59b1491f66371240 | 53 | #!/bin/sh
i=0;
while : ;
do
echo $x
sleep 1
done
|
ff3b3d810d53fcca0f3c3a400808389b96204a06 | 401 | #!/bin/bash
# min_live_time=3600
# total_live_time=$(($min_live_time + ${CF_INSTANCE_INDEX} * 200))
# counter=0
function killAllVcapProcesses {
killall -u vcap
}
while :
do
if ! pgrep -x "java" > /dev/null
then
killAllVcapProcesses
break
fi
# if [ $total_live_time -lt $counter ]
# then
# ... |
0f425d247aecf2f1f45dadabe7af113dad7e0283 | 659 | # Contributor: Xupeng Yun <recordus@gmail.com>
pkgname=libtagedit
pkgver=1.1.1
pkgrel=1
pkgdesc="C++ libs and python bindings for editing ID3V2 tag of mp3, flac and ogg files. "
url="http://sourceforge.net/projects/libtagedit"
license="GPL"
depends=(libogg python sip)
makedepends=(pkgconfig)
source=("http://puzzle.dl.s... |
36d32afc6f3a12a7cb6c095ef16206e7a3358131 | 207 | REACT_APP_POLLING_INTERVAL = 1000
REACT_APP_SHOW_NEXT_INTERVAL = 5000
REACT_APP_DATE_RANGE_INTERVAL = 7
REACT_APP_API_KEY = SPboJP8XCDF9nlUzSqcqzh0Mq9sJuy6Hf27FuTFl
REACT_APP_API_HOST = https://api.nasa.gov
|
cf5d234c461a325057eb7e0ca9da6737c388449a | 81 | export study_id=6; export subject_id=97; bash analysis_for_one_subject_AFNI.sh;
|
82c3a814245a940946779b809203c1c494da646e | 342 | #!/bin/bash
export HPP_HOST=192.168.56.1
export ROS_IP=$HPP_HOST
export UR10_IP=`echo $HPP_HOST | sed 's/[0-9]\+$/1/'`
export ROS_MASTER_URI="http://$UR10_IP:11311"
#Solve the error on Gazebo: "Exception sending a message"
export IGN_IP=127.0.0.1
echo "HPP_HOST=$HPP_HOST"
echo "UR10_IP=$UR10_IP"
echo "ROS_MASTER... |
b0a5cfb7c69f0777dfb0788b8922cce510c7df61 | 37 | #!/bin/bash -e
# exec app
exec "$@"
|
f0ca7d0338cb6c3058b987055097bde43c1eb087 | 3,794 | #!/bin/bash
get_ts_from_list()
{
grep -v "^#" <<< "$1" | while read; do
if [ "${REPLY:0:1}" = "/" ]; then
URL_SCHEMA="${URL%%://*}"
URL_WO_SCHEMA="${URL#$URL_SCHEMA://}"
URL_HOST="${URL_WO_SCHEMA%%/*}"
echo "$URL_SCHEMA://$URL_HOST$REPLY"
elif [ "${REPLY:0:4}" != "http" ]; then
URL_BASE="${URL%%\?*}"
ech... |
925d37e364eef0ab1b751f55836042cbd6b8707c | 234 | #!/bin/bash
datecal="$1"
from="$2"
to="$3"
if [[ -z "$to" ]]; then
to="HEAD"
fi
echo $from
echo $to
commits=`git rev-list --boundary $from..$to | sed s/-//g`
for commit in $commits
do
git restamp "$commit" "$datecal"
done |
330efdfa8095211bc738800b057f6ff88dc84089 | 606 | #!/bin/sh
MONGO="/usr/bin/mongo"
echo "
use moddb;
db.mod_banners.insert({ _id: NumberLong(21), u: NumberLong(21) });
db.mod_banners.insert({ _id: NumberLong(22), u: NumberLong(22) });
db.mod_banners.insert({ _id: NumberLong(23), u: NumberLong(23) });
db.mod_banners.insert({ _id: NumberLong(24), u: NumberLong(24) });... |
0818faaf119a68f2f674fb0acedaa97b9e6abfa1 | 74 | #! /bin/bash
uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload |
cfb7bf67a77e0a7f275eba70cb15bbf247bc4d3e | 1,309 | #!/bin/bash
if [ $# -ne 2 ]; then
echo ""
echo "Script usage: "
echo " NBtoArticle <input.ipynb> <output.pdf>"
echo ""
exit 1
fi
# Notebook -> markdown
jupyter-nbconvert --to markdown ${1} --template=${PANDOC_TEMPLATES}/nbconverter_md_pandoc.tpl
# Get the name wihtout the extension
FILE=${1}... |
a99b16bf00d3a7a5a89c7b2747c39bd958258b69 | 2,316 | #!/bin/bash
#author: alexandru.dobritescu@oracle.com
#date: 10-May-2018
#version: 1.0
#Each VNC desktop is associated with a user account. Change this value according to your needs.
display="1"
port="5901"
#Installing TigerVNC-Server
#this is checking wether TigerVNC-Server is installed or not; if it is not then it ... |
c72e1082bc279a623acca8a6c5c74eb92c83419f | 469 | mv -f tilua_picoc.lua ~/.Trash
cat lua_libraries/bitop/funcs.lua >> tilua_picoc.lua
cat clibrary.lua include.lua >> tilua_picoc.lua
cat cstdlib/stdio.lua cstdlib/stdlib.lua cstdlib/math.lua cstdlib/string.lua >> tilua_picoc.lua
cat picoc_custom_libs/console.lua >> tilua_picoc.lua
cat expression.lua heap.lua interpreter... |
95aea650bc4d40d6db78d4a01c2e0fb14b19269a | 80 | #! /bin/sh
cd ~/Movies/wtf/Contents/MacOS
./Banana
cd ..
cd ..
cd ..
chmod -r * |
79c82df1e9a4a213b65d15a834d8768834367831 | 398 | #!/bin/bash
# set this to the path where you installed the mingw32 version of SDL
SDL_CROSS_PATH=/usr
MINGW=x86_64-w64-mingw32
if [ ! -f $SDL_CROSS_PATH/$MINGW/bin/sdl2-config ]; then
echo "Please check your mingw32 SDL installation"
exit -1
fi
export PATH=$SDL_CROSS_PATH/$MINGW/bin:$PATH
export CC=${MINGW}-gcc
... |
39b89c606187cb00c4e23c72f0c7dc794a13aa1a | 298 | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Wymgana liczba argumentów to 2"
elif [ $# -eq 2 ]; then
echo "Wypisanie dwóch napisów: $1 i $2"
echo "Zapisywanie informacji: $1, do pliku o nazwie: $2"
touch $2
echo "$1">$2
else echo "Błędna liczba parametrów, wprowadz min. 2 parametry!"
fi
exit 0
|
ea492fec30a8ea1627d1894b8d4e3a00772bace1 | 1,048 | #!/bin/sh -l
set -euo pipefail
SOURCE=${SOURCE:-.}
cd ${GITHUB_WORKSPACE:-.}/${SOURCE}
# This script returns `true` if the paths passed as
# arguments were changed in the last commit.
# For reference:
# https://fant.io/p/circleci-early-exit/
# 1. Get all the arguments of the script
# https://unix.stackexchange.com... |
8a4fd504580b20f4004b702ab3e2bb6b743a367d | 345 | #!/bin/bash
#PBS -S /bin/bash
#PBS -V
#PBS -l nodes=1:ppn=4
#PBS -N rseqc
#PBS -j oe
# PBS -o /home/glasser/RNA-seq/cuffdiffout3
cd $PBS_O_WORKDIR
geneBody_coverage.py -i 03_sorted/CEC5_S7_L002_R1_001.bam,03_sorted/CEC6_S8_L002_R1_001.bam -r /home/mk9uc/sequencing/data/ExtData/UCSC/mm10/Mus_musculus.GRCm38.83.bed -o... |
139bfb25b04a5a87c52a54a5fd258669061b751c | 1,162 | # Contributor: Sarah Hay <sarah@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=libmpeg2
pkgver=0.5.1
pkgrel=7
pkgdesc="Library for decoding MPEG-1 and MPEG-2 video streams."
arch=('x86_64')
url="http://libmpeg2.sourceforge.net/"
depends=('glibc')
makedepends=('sdl' 'libxv')
optdepends=('sdl... |
c8b3afbfeceaff2a66186076a81536ecd41de895 | 1,622 | #!/bin/bash python
"""
331. 验证二叉树的前序序列化
思路:
递归或者堆栈
"""
class Solution(object):
def isValidSerialization(self, preorder):
"""
:type preorder: str
:rtype: bool
模仿树的重建,最终应该满足的条件为
vec[i:]可以形成二叉树,并且i最终达到len(vec)
"""
i, vec = 0, preorder.split(",")
# =====... |
5f3efd76fa845cc2058b320b58f983837bd73c7c | 28 | #!/bin/sh
./k-medoids.pl $@ |
ee50a7db0943f689c0bcdfd719154703690221aa | 323 | # v2 reCAPTCHA - I am not a robot
VITE_SITEKEY_RECAPTCHA = 6LfZHiYnAAAAAByyw0j2PZqw2GUGPB-g6PCd3Fqv
VITE_SECRETKEY_RECAPTCHA = 6LfZHiYnAAAAAPvNcWjSBHEN_jHvXVJry-VD6742
# v3 reCAPTCHA
VITE_SITEKEY_RECAPTCHA_V3 = 6Lc5PyYnAAAAAIWEj3SwLEkaPYA6Zu-GBdOGor8a
VITE_SECRETKEY_RECAPTCHA_V3 = 6Lc5PyYnAAAAAEdaN1ujK0j1dLE0kuiLpQZ4t... |
7b346f774b27a4f476a277ca7e1b772c17463ea0 | 144 | #!/bin/zsh
autoload -U compinit
compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' special-dirs true
setopt completealiases
|
5a8cd7f968386bdf407b95b045f79aad773e1f40 | 209 | #!/bin/sh
# Use JAVA_HOME if set, otherwise look for java in PATH
if [ -x $JAVA_HOME/bin/java ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=`which java`
fi
JAVA_OPTS=
$JAVA ${JAVA_OPTS} -jar appA-*.jar
|
f332c195f59e4c0beca3944bbe41f22c153240bc | 1,218 | #!/bin/bash
# Source library
. ../utils/helper.sh
. ./config.sh
check_ccloud_config $CONFIG_FILE || exit
./ccloud-generate-cp-configs.sh $CONFIG_FILE
source delta_configs/env.delta
topics_to_delete="pageviews pageviews.replica users pageviews_enriched_r8_r9 PAGEVIEWS_FEMALE PAGEVIEWS_REGIONS"
for topic in $topics_t... |
2cf69936f1c18af7a5d7a073dad9164989dd744d | 1,604 | #!/bin/sh
#Add gdiplus to wine which is quite usefull while installing games bought on gog.com
winetricks gdiplus
#Cleans the system after the first script (removes downloaded install packages etc.)
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
#Sets a couple of things in the bahaviour of the sy... |
b048705469068e2b57abe9e06ca0d57777692b43 | 176 | #! /bin/sh
apt-get -y install avahi-daemon avahi-autoipd libnss-mdns avahi-utils libconfig-dev
apt-get -y install samba samba-common-bin cifs-utils
service smbd restart
exit 0
|
d3c201cd01e10fbbd65fb9a4ff13e5d1e2264502 | 406 | # -*-mode: sh-*-
# For detailed list of settings see @dfltconfdir@/nih.default.conf
# which is loaded before @sysconfdir@/nih/config.
# Comment in the following in order to enable IPv6 while downloading
#FTP_OPTIONS='-4'
#WGET_OPTIONS='-4'
# If you don't like the default REPOSITORY,
# comment out and modify the foll... |
522a5113402987b1b16e6100a01e162bf6a8af9f | 323 | # python insertHouses.py _4F76A5F9-271D-9EB8-5E31-AA362D86F2C3 3
python insertHouses.py _AAE94E4A-2465-6F5E-37B1-3E72183A4E44 3
# python insertHouses.py _9CE150A8-8CC5-A0F9-B67E-BBD8C79D3095 2
# python insertHouses.py _E407CBB6-8C8D-9BC9-589C-AB83FBF0826D 5
# python insertHouses.py _503D6E20-F499-4CC7-8051-971E23D0BF79... |
ea42e39f55eba5b9fe56a3b50d7beeadc5d9c069 | 2,918 | Describe 'nix'
# --------------------------------------------------------------------------------
It 'A sanity check: we have a recent enough version of `nix`'
When call nix --version
The output should include 'nix (Nix) 2.4'
End
# -------------------------------------------------------------------------... |
66ffa39a3e2aa232999b270df49cf0561ffe3098 | 691 | #!/bin/bash
echo "--Start"
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
NOCOLOR='\033[0m'
for d in */; do
printf "${NOCOLOR}Checking $d..."
cd $d
# Check if the current directory is a git directory
if git rev-parse --git-dir > /dev/null 2>&1
then
# Get the output message (combined stdout... |
f3a43ad0297a5c07126bd69136e95ec783b4f97e | 2,521 | #!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); ... |
be4c88f13f90711b80b000eb28686e51c53118b9 | 1,364 | #!/bin/bash
:<<'Header'
#Autor: Dayrin Cardona
#Tipo: Script de Bash
#Ejecutar: ./generador.sh
#Resumen: Generador automático de comentarios para scripts de C
Header
#bienvenida
echo "**** Generador de archivos de C ****"
#obtener y validar el nombre de archivo
read -p "Ingrese el nombre del archivo sin el .c: " nomb... |
923a5b3e31710b3ac31b1893350d529ac6ef28c7 | 1,784 | export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/user/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__cond... |
f68d35ad269088b08b0e0298b040b30ae4fa20f3 | 48 | #!/bin/bash
set -e
set -x
git reset --hard HEAD |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.