blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
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... |
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... |
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... |
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 "$@"
|
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... |
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... |
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 |
9beed7b6f3ccfd259aa1199fe0914fab5daf623d | 1,499 | #!/bin/sh
set -e
SDK_ROOT=`pwd`
while getopts ':p:' opt; do
case $opt in
p)
SDK_ROOT=$OPTARG #set the SDK_ROOT
echo "get_opts SDK_ROOT:${SDK_ROOT}"
;;
?)
echo "How to use: $0 [-b path ]" >&1
exit 1
;;
:)
echo "Option -$... |
a99316b26b112c3e6a38f59e9fec04cde6134aed | 210 | #!/usr/bin/env bash
# If ES won't start with the error:
# max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# Run this command:
sudo sysctl -w vm.max_map_count=262144
|
70a746fe09feea326a08850444cd461c567ef3aa | 18 | echo "I am v7792"
|
773bc64556d7eb6d0e73ea9c8c7c862bf160fcd8 | 1,543 | #!/bin/bash
set -e
source $(dirname $0)/common.sh
config() {
check_param
load_ns
echo "######################################"
echo "####Get ESP config for Wireshark!####"
echo "######################################"
BASE_CMD="ip netns exec ${ROUTER_CONTAINER_ID} ip xfrm stat"
SPI_LIS... |
1768e7e24fc9eabf150f7ffcadb7834aa385e90f | 874 | #!/bin/sh
PORT=2323
PIDFILE=/home/ferada/.cl-nailgun-script.pid
CL=/home/ferada/src/opt/bin/sbcl
NG=/home/ferada/src/nailgun/ng
PID=
if [ -f $PIDFILE ]
then
PID=$(cat $PIDFILE)
fi
# TODO: file lock so only one server is started
SPAWN=
[ -z "$PID" ] && SPAWN=YES
/bin/kill -s 0 $PID || SPAWN=yes
if [ -n "$SPAWN" ... |
3f9504b953dbae2369abb087f6b528541b227560 | 3,915 | # Copyright (c) 2014, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of cond... |
464045819c00089f4f9b39b4d5f673e895ff5c13 | 32 | MAPBOX_KEY =
OPENWEATHER_KEY = |
01a4405d451f4c829b722b12cc0be56138e18ff1 | 527 | #!/bin/bash
set -e
set -x
IN_LEFT="$1"
IN_RIGHT="$2"
IN_META="$3"
OUT_LEFT="$4"
OUT_RIGHT="$5"
OUT_META="$6"
TIMESTAMP="$7"
FIXED_META="$8"
# TODO: Deal with this...
# TODO: cp: cannot stat 'ua-mac/Level_1/rgb_geotiff/2018-07-01/2018-07-01__08-35-45-218/rgb_geotiff_L1_ua-mac_2018-07-01__08-35-45-218_left.tif': No su... |
576f308ed9e7ee15f55bbc35664610ed65aca408 | 246 | #!/bin/bash
#
# Nombre: Start_D
#
# Inicia un demonio
#
# Precondicion: Deben estar seteadas las variables de entorno e instalado todo.
# TODO: en principio, solo el Recibir_B.sh
nohup $BINDIR/Recibir_B.sh > /dev/null 2>&1 &
exit 0 |
93980febdb299f73be58fa326f94f2ead77bb3c9 | 252 | #!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
export LD_LIBRARY_PATH=$dirname/lib
export QML2_IMPORT_PATH=$dirname/qml
$dirname/$appname "$@"
|
b80effb11cf1d74b2c6de1853c0117af804d8a5b | 738 | #!/bin/bash
topic_arn=$(awslocal sns create-topic --name test-producer | jq -r '.TopicArn')
queue_url=$(awslocal sqs create-queue --queue-name test-consumer | jq -r '.QueueUrl')
subscription_arn=$(awslocal sns subscribe --topic-arn $topic_arn --protocol sqs --notification-endpoint $queue_url | jq -r '.SubscriptionArn'... |
18d0de95c12559b3d0b3e4aa6b2415a2b76ccdf2 | 174 | #!/bin/bash
export BIBINPUTS=${BIBINPUTS}:`kpsewhich --show-path=bib | sed -e "s/\!\!//g"`
~/Library/TeXShop/bin/latexmk -pdf -r "$HOME/Library/TeXShop/bin/xelatexmkrc" "$1"
|
c498a35a8ac84ff63b649c1facbd21acfeaa63e6 | 672 | #!/bin/sh
FONT_NAME=monofur
FONT_TYPE=plain
FONT_SIZE=25
FONT_SPEC="$FONT_NAME-$FONT_TYPE-$FONT_SIZE"
# Swing fonts - Haven't gotten these to work
JDK_JAVA_OPTION="-Dswing.aatext=true -Dswing.plaf.metal.controlFont=$FONT_SPEC -Dswing.plaf.metal.userFont=$FONT_SPEC"
# Plastic fonts - Haven't gotten these to work
JDK... |
16693af0794c6778369faca8e76b2ed4e4119816 | 361 | #!/bin/bash
SENHA=$1
ACAO=$2
if [ $# -lt 2 ]; then
echo "Faltou passar senha e ação a ser tomada (REBOOT OU RESET)!"
exit 1
fi
echo "Numero de argumentos: $#"
while read IP; do
echo "RESET:$IP"
if [ $? -eq 0 ]; then
if [[ -n "$IP" ]]; then
curl "http://$IP/cgi-bin/api-sys_operation?passcode=$SENH... |
92050228902e9eef833a26b286cb2f79849a46b9 | 52 | #!/bin/bash
echo B
echo B >&2
exec sleep infinity
|
98f78419631107676b6c5bdf69a4c6fc99c65964 | 88 | REACT_APP_DECORATORS = true;
REACT_APP_BABEL_STAGE_0 = true;
PORT = 3000;
BROWSER = none |
c59b1452551ef4919c2fdc2f1b27ba3e38e97d8a | 220 | wget http://egg-consortium.org/downloads/EGG_Obesity_Meta_Analysis_1.txt.gz
gzip -cd EGG_Obesity_Meta_Analysis_1.txt.gz > EGG_Obesity_Meta_Analysis_1.txt
cp EGG_Obesity_Meta_Analysis_1.txt 22484627_Childhood_obesity.txt |
700c0cf16c6515c4a558e8a5e5228569ae0ac16e | 68 | #!/bin/bash
./bin/publisher "test" "test" "test" "test" &>/dev/null |
5a00c156343a13f205098823c52e908385cbf5bf | 290 | #!/bin/bash
maxsize=16
tester=./unit_test
i=1
while [ $i -le $maxsize ]; do
j=1
while [ $j -le $maxsize ]; do
k=1
while [ $k -le $maxsize ]; do
echo "$tester -m $i -n $j -k $k"
$tester -m $i -n $j -k $k
k=`expr $k + 1`
done
j=`expr $j + 1`
done
i=`expr $i + 1`
done
|
f71b9aadc9aec91b91e297b03898e26031206a90 | 302 | #!/usr/bin/env bash
alias g="git"
alias ls="ls -lah"
alias cd..="cd .."
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../../"
alias ~="cd ~" # `cd` is probably faster to type though
# Enable hub aliasing
eval "$(hub alias -s)"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.