blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
1156ad31e9bb99b279a17a071151bafb9d8bde9e | Shell | riddik14/mattiols_hassio_repository | /bticino_X8000_v2/run.sh | UTF-8 | 1,534 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bashio
CLIENT_ID=$(bashio::config 'client_id')
CLIENT_SECRET=$(bashio::config 'client_secret')
SUBSCRIPTION_KEY=$(bashio::config 'subscription_key')
DOMAIN=$(bashio::config 'domain')
HAIP=$(bashio::config 'haip')
MQTT_BROKER=$(bashio::config 'mqtt_broker')
MQTT_PORT=$(bashio::config 'mqtt_port')
MQTT_US... | true |
904700debff03dbdddb8159e830485e3e5114bbe | Shell | mosbth/env | /hosts/stekon/asus_router/jffs/notify_router.sh | UTF-8 | 181 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
domain="stekon.mikaelroos.se"
ip=`wget -qO- ipecho.net/plain`
url="https://mikelroos.se/ddns/$domain/$ip"
#echo $url
cmd=`wget -qO- "$url"`
logger "ddns status: $cmd $ip"
| true |
dcabe67169800503c7d02251231ce31a5288f9e1 | Shell | jyhsia5174/CIKM-2019-EXP | /preprocess/save-biased-imputation-model/grid.sh | UTF-8 | 347 | 2.71875 | 3 | [] | no_license | #!/bin/bash
k=32
t=100
r=0
w=0
wn=1
ns='--ns'
c=5
tr='tr.100.remap'
te='va.1.remap'
item='item'
logs_pth='logs'
mkdir -p $logs_pth
task(){
for l in 1 4 16
do
echo "./train -k $k -l $l -t ${t} -r $r -w $w -wn $wn $ns -c ${c} -p ${te} ${item} ${tr} > $logs_pth/${tr}.$l.$r.$w.$wn.$k"
done
}
task
task | xargs -d '\... | true |
d386ccfbc458c705652ccc369bc8dcb9bccb6f4d | Shell | epicfaace/beam | /sdks/go/test/run_integration_tests.sh | UTF-8 | 6,842 | 3.546875 | 4 | [
"BSD-3-Clause",
"MIT",
"Python-2.0",
"LicenseRef-scancode-protobuf",
"Apache-2.0"
] | permissive | #!/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... | true |
c0f326a0fc742303e613c0c77e5e5ed89d3ea73d | Shell | cwt1/scripts-1 | /projFocus/ceRNA/runs/runResultGslist.sh | UTF-8 | 4,925 | 2.578125 | 3 | [] | no_license | #!/bin/bash
#! -cwd
#By: J.He
#Desp.: all genes, and samples for Mar2014 run of ceRNA project
#TODO:
gslistDir=/ifs/data/c2b2/ac_lab/jh3283/projFocus/result/03102014/gslist
source /ifs/home/c2b2/ac_lab/jh3283/scripts/projFocus/ceRNA/geneUtilsRuns.sh
### after runnning all step1, get all matrix ready, do this script
... | true |
ee808eba1374fbf27b5207a695d088cb1687500a | Shell | henrypbriffel/virtual-environments | /images/linux/scripts/installers/vercel.sh | UTF-8 | 856 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
################################################################################
## File: vercel.sh
## Desc: Installs the Vercel CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/document.sh
# Instal... | true |
b2bcddf67ab1e06918b9db061f6bdc97a067b0a1 | Shell | Earlz/narm | /tests/build.sh | UTF-8 | 349 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p bin/temp
for f in *.s
do
echo "Assembling $f file..."
# take action on each file. $f store current file name
OBJECTFILE="bin/temp/$(basename "$f" .s).o"
FINALFILE="bin/$(basename "$f" .s)"
arm-none-eabi-as -march=armv6-m -o $OBJECTFILE $f
arm-none-eabi-ld -T link.ld -o $FINALFILE $OBJ... | true |
17fb575dd92f83d2da20f30e29673df0f0d9642c | Shell | jandredias/IAED1314 | /proj1/tests.sh | UTF-8 | 1,156 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Script teste
echo "***************************"
echo "***** BEGIN OF SCRIPT *****"
echo "***************************"
echo "Downloading..."
git clone git@github.com:pcdiasmega/IAED-proj1.git
echo "Extracting..."
mv IAED-proj1/* ./
echo "Deleting files..."
rm -rf IAED-proj1
echo "Compiling..."
gcc -ansi -... | true |
0e113c39a5d69eda537652f0eaf2fecb1e652a0b | Shell | heyuan7676/ts_eQTLs | /Extended_Methods/input_dataset/step2.1_aggreate_filterGenes_noMAF.sh | UTF-8 | 647 | 2.75 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash
#SBATCH --time 2:00:00
#SBATCH --no-requeue
#SBATCH --nodes=1
#SBATCH --ntasks=12
#SBATCH -p debug
idsDir=/work-zfs/abattle4/heyuan/tissue_spec_eQTL_v8/datasets/cbset_datasets/caviar_output_GTEx_LD/aggregate
rm -f ${idsDir}/v8_cbset_95_allPairs.txt
rm -f ${idsDir}/temp
rm -f ${idsDir}/temp_sorted
for f in... | true |
328f5a355a6a27efdd106f42559016c2b29e3271 | Shell | delkyd/alfheim_linux-PKGBUILDS | /python2-translate-toolkit-lib/PKGBUILD | UTF-8 | 1,179 | 2.671875 | 3 | [] | no_license | # Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
pkgname=python2-translate-toolkit-lib
_name=translate-toolkit
pkgver=2.2.4
pkgrel=1
pkgdesc="A toolkit to convert between various different translation formats, help process and validate localisations"
arch=('any')
url="http://toolkit.translatehouse.org/"
license=('... | true |
dc1f55a1ad302e80ab1aeec35708c3c769d52837 | Shell | shisa/shisa-netbsd | /src/etc/rc.d/poffd | UTF-8 | 269 | 2.53125 | 3 | [] | no_license | #!/bin/sh
#
# $NetBSD: poffd,v 1.2 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: poffd
# REQUIRE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="poffd"
rcvar=$name
command="/usr/sbin/${name}"
start_precmd="test -c /dev/pow0"
load_rc_config $name
run_rc_command "$1"
| true |
eff13ce0a674283e39b963464e1a54048d0b3fd7 | Shell | MQuaresma/EfficientIO-Analysis-via-Tracing | /dtrace_bench.sh | UTF-8 | 105 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
NUM=0
while [ $NUM -lt 15 ]; do
iozone -i0 -i1 -i2 >> /dev/null
let NUM=$NUM+1
done
| true |
4e06fbbc20b34978e7eda451a1ac1c4244ddc2e5 | Shell | jiangyangbo/kaldi-gop | /egs/gop-compute/local/compute-gmm-gop.sh | UTF-8 | 2,664 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/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 [ $... | true |
88c1b409944d5627c99acebe0b75132ff1c77119 | Shell | qnib/plain-elasticsearch | /opt/entry/20-hostname.sh | UTF-8 | 597 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/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... | true |
013bdf0bd4e65b7f14f165cf2e84f798b92e5f7f | Shell | deepwellice/asteroid-belt | /MAC/Xcode/xcode-switch | UTF-8 | 1,632 | 3.453125 | 3 | [] | no_license | #!/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... | true |
e06c42d20ff5da548c76dc970e34baa51d67bb93 | Shell | PawelAdamski/go-web | /templates/angular-signup-app/bootstrap.sh | UTF-8 | 274 | 3 | 3 | [] | no_license | #!/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
| true |
66cc249f6e93f3078304603f42f616a91a80a4c6 | Shell | gbsf/archlinux-packages | /ne/repos/extra-x86_64/PKGBUILD | UTF-8 | 499 | 2.578125 | 3 | [] | no_license | # $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... | true |
a42f3b3a40b493f2c832a93d16f7bacb33d55fee | Shell | isutton/service-binding-operator | /hack/deploy-sbo-local.sh | UTF-8 | 870 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/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... | true |
1714d132e044aa5b253b3c1ccc870b0837e4842e | Shell | photron/brickd-lgtm | /src/build_data/linux/libusb_static/compile.sh | UTF-8 | 438 | 2.96875 | 3 | [] | no_license | #!/bin/bash -ex
version=1.0.23
rm -rf libusb-${version}
rm -rf libusb-${version}.tar.bz2
rm -rf libusb.h
rm -rf libusb-1.0.a
wget https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2
tar -xf libusb-${version}.tar.bz2
pushd libusb-${version}
./configure --disable-shared --disabl... | true |
0de22ebc63e84bb1fca8829ef802ef3f7eee2a98 | Shell | j05eph2000/mwtest | /wagerr_install.sh | UTF-8 | 7,616 | 3.375 | 3 | [] | no_license | #!/bin/bash
TMP_FOLDER=$(mktemp -d)
CONFIG_FILE='wagerr.conf'
CONFIGFOLDER='/root/.wagerr$i'
COIN_DAEMON='wagerrd'
COIN_CLI='wagerr-cli'
COIN_PATH='/usr/local/bin/'
COIN_REPO='https://github.com/wagerr/wagerr.git'
COIN_TGZ='https://github.com/wagerr/wagerr/releases/download/v3.0.1/wagerr-3.0.1-x86_64-linux-gnu.tar.gz'... | true |
ccfc74f582fc6fbf640b437af208fa1c8d47310f | Shell | sheetal804/Parallel-Processing-Repo | /shell_program/perfect.sh | UTF-8 | 228 | 3.46875 | 3 | [] | no_license | echo enter a number
read n
num=n
s=0
while [ $n -ne 0 ]
do
d=`expr $n % 10`
if [ $d -eq 0 ]
then
s=`expr $s + $d`
fi
n=`expr $n / 10`
done
if [ $s -eq num ]
then
echo perfect number
else
echo not a perfect number
fi
| true |
b9717bb1147f347d8a140bd8aaeb10d3d7d01b1f | Shell | hmidani-abdelilah/Ubuntu_Virtual_Machine_Setup | /test.sh | UTF-8 | 1,777 | 3.953125 | 4 | [] | no_license | #!/bin/bash
IFS="\n"
read -p "Enter the username for azure account access : " username
read -s -p "Enter password for azure account access : " password
echo ""
unset IFS
# Install applications to the virtual machine through apt-get
sudo apt-get update
sudo apt-get -y ugrade
sudo apt-get -y install fail2ban
sudo apt-ge... | true |
2833645f350bf8a6d4fa2d3dcc881311bf3ec1ba | Shell | Bhaskers-Blu-Org1/cloud-enterprise-examples | /iac/15-iks-vpc-cncf-devops-tools/boot/scripts/acp-mgr.sh | UTF-8 | 5,545 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# --------------------------------------------------------------------------------------------------------
# Name : Account Manager IAM Access Group Policies
#
# Description: Add policies to an access group that allow management of the resoruce groups,
# users, and access groups in an IBM Cloud account.
#
#... | true |
a7cefbe5adea7ded85a395f24f00308cd1533190 | Shell | BestJex/kuboard-press | /.vuepress/public/install-script/v1.20.x/install_kubelet.sh | UTF-8 | 3,630 | 3.125 | 3 | [] | no_license | #!/bin/bash
# 在 master 节点和 worker 节点都要执行
# 安装 docker
# 参考文档如下
# https://docs.docker.com/install/linux/docker-ce/centos/
# https://docs.docker.com/install/linux/linux-postinstall/
# 卸载旧版本
apt-get remove -y docker \
docker-client \
docker-client-latest \
docker-ce-cli \
docker-common \
docker-latest \
docker-latest-l... | true |
bcaa4120afa7cb0c3382292ffb7a8829a185efd5 | Shell | daedroza/bash-scripts | /setup-nethunter.sh | UTF-8 | 1,005 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# setup-nethunter, version 1.00
ROOT_UID=0 # $UID = 0 is usually root.
E_NOTROOT=87 # Non-root exit error.
# Run as root
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "You're not running this script root previliges."
echo "Do sudo ./setup-nethunter.sh or su && ./setup-nethunter.sh"
exit $E_NOTROOT
fi
# Upd... | true |
e7a8cff1aa76a44223060843c355e559fdf13abf | Shell | therealromster/crux-ports-romster | /games/wesnoth-dev/pre-install | UTF-8 | 1,549 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env sh
. /etc/pkgmk.conf
. Pkgfile
OLD_VERSION='1.5.1'
[ -z "$PKGMK_WORK_DIR" ] && PKGMK_WORK_DIR="$PWD/work"
[ -z "$PKGMK_SOURCE_DIR" ] && PKGMK_SOURCE_DIR="$PWD"
if [ -e "$PKGMK_SOURCE_DIR/wesnoth-$version.tar.bz2" ]; then
echo 'You have the lateist source file.'
exit 0
fi
if [ -n "`pkginfo -i | egre... | true |
c4b1f35be434bec9b3af7d051084f060628d3684 | Shell | nunogt/cassandra-io | /export.sh | UTF-8 | 4,304 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# By default snapshots are stored under the path this script is being run from.
# If you'd rather use an asbolute path, uncomment and edit the variable below.
#
#CASSANDRA_IO_HOME="$HOME/.cassandra-io"
CASSANDRA_CONF="$1"
check_exit_status() {
if [ "$1" != "0" ] ; then
echo "Process exited ... | true |
7c180d4b367a85396c728737f0792c22cfb0d9c7 | Shell | amzn/differential-privacy-bayesian-optimization | /experiments/output_perturbation/scikit-learn/build_tools/azure/install.sh | UTF-8 | 2,391 | 3.40625 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
UNAMESTR=`uname`
if [[ "$UNAMESTR" == "Darwin" ]]; then
# install OpenMP not present by default on osx
HOMEBREW_NO_AUTO_UPDATE=1 brew install libomp
# enable OpenMP support for Apple-clang
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CPPFLAGS="$CPPFLAGS -Xpr... | true |
a6ac80ebea99f23f1363a5192eae9000a7d63fa8 | Shell | mc-b/lernkube | /extensions/makekeys.sh | UTF-8 | 1,139 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Erstellt wg0.conf und die Keys fuer WireGuard Server und Clients
#
umask 077
### Defaults
NET=12
ENDPOINT=<gateway>
PORT=51820
### Server
wg genkey > server_private.key
wg pubkey > server_public.key < server_private.key
cat <<%EOF% >wg0.conf
[Interface]
Address = 192.168.${NET}.1
ListenPort = ${POR... | true |
c6b8379562bde90284dd1e78075cba1bd834a569 | Shell | vamshi4220/User_Registration- | /User_registration.sh | UTF-8 | 1,286 | 3.296875 | 3 | [] | no_license | #!/bin/bash -x
#UC1
read -p "enter a name " name
p1='^[A-Z]{1}[a-zA-Z]{3,15}$';
if [[ $name =~ $p1 ]]
then
echo "yes"
else
echo "no"
fi
#UC2
read -p "enter a surname " surname
p2='^[A-Z]{1}[a-zA-Z]{3,15}$';
if [[ $surname =~ $p2 ]]
then
echo "yes"
else
echo "no"
fi
#UC3
read -p "enter a emailid " ... | true |
1872ff278eba4bafae9c0da4d190a52235f4b2f7 | Shell | pskarin/calvincontrol | /start_scripts/start_one_runtime_proxy_storage.sh | UTF-8 | 341 | 2.640625 | 3 | [] | no_license | rm rt2*
ip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
CALVIN_GLOBAL_STORAGE_TYPE=\"proxy\" CALVIN_GLOBAL_STORAGE_PROXY=\"calvinip://$1:5000\" csruntime -n $ip -p 5002 -c 5003 --name 'rt2' --probe-buffer-size 500000 >> rt2_output.actortrace &
echo "Started two runtimes {rt1, rt2} on host:$ip, w... | true |
359645878c9adf8c4516889d53b080bdbc148f82 | Shell | mateuszligeza/bash | /lab6/zad01/zad01.sh | UTF-8 | 420 | 3.03125 | 3 | [] | no_license | #!/bin/bash
pierwszaLiczba=$1
drugaLiczba=$2
if ((pierwszaLiczba > drugaLiczba))
then
for ((i=pierwszaLiczba; i>=drugaLiczba; i--))
do
if ((pierwszaLiczba % 2 == i % 2))
then
echo -n "$i "
fi
done
else
for ((i=pierwszaLiczba; i<=drugaLiczba; i++))
do
i... | true |
9f6157307b9c2ac91b255994802be6be2074a253 | Shell | z8jiang/EnsembleVariantCallingPipeline | /run_evc_bam.sh | UTF-8 | 1,780 | 3.375 | 3 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | #!/bin/bash
path=${1}
out=${2}
sampleF=${3}
email=${4}
ref=${5}
pon=${6}
dbSNP=${7}
walltime=${8}
queue=${9}
interval_list=${10}
USAGE="\nMissing input arguments..\n
USAGE:\trun_evc_bam \\
path/to/bam/files \\
output/directory \\
path/to/sample.map \\
email.for@notification \\
reference_genome (fasta) \\
pon (... | true |
89b2223ece1f865329321dd1393eb6abb553c29e | Shell | hbackup/data_selection | /scripts/collect-freqs.sh | UTF-8 | 329 | 3.03125 | 3 | [] | no_license | #!/bin/bash
if [ ! -f ~/corpus/europarl/freq.fr.sorted.txt ]; then
for i in en fr; do
cat ~/corpus/europarl/clean.$i | awk '{for(i=1;i<=NF;i++) m[$i]++}END{for(i in m) print i,m[i]}' > ~/corpus/europarl/freq.$i.txt
cat ~/corpus/europarl/freq.$i.txt | sort -k2 -n -r > ~/corpus/europarl/freq.$i.sorted.txt
d... | true |
98433030f5426537d9546ab14ff2ca525321e540 | Shell | PentiumYG/linux-addition | /add.sh | UTF-8 | 83 | 2.5625 | 3 | [] | no_license | #!/bin/bash
echo enter a no
read a
echo enter 2 no
read b
c=$((a+b))
echo sum is $c | true |
ac483a38367c3bae39072baaf62d38d7cfc31885 | Shell | effective-energy/ale-core | /bin/stack2nix.sh | UTF-8 | 503 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env nix-shell
#!nix-shell -p bash nix coreutils cabal-install cabal2nix nix-prefetch-git -i bash
nix_file="ale.nix"
nix_file_dir="build/nix"
root_rel="../.."
ale_root=$(dirname -- $(readlink -f -- "${BASH_SOURCE[0]}"))/../
mkdir -p "$ale_root/$nix_file_dir"
pushd "$ale_root/$nix_file_dir" > /dev/null
st... | true |
5563de142a9039d8a607bc86eff460d3e608c2a3 | Shell | runeio/platform | /runeio/generic/dir-packages/rune-lib/sqm/sqm-rebuild-conf.sh | UTF-8 | 804 | 3.6875 | 4 | [] | no_license | #!/bin/sh
check_epoch_file () {
if [ ! -e ${1} ]; then
echo "$0: epoch file: ${1} Not found"
exit 1
fi
}
sqmconf=/etc/config/sqm
rm -f ${sqmconf}
sqm0epoch=/tmp/sqm.config.epoch.eth0
sqm1epoch=/tmp/sqm.config.epoch.eth1
sqm0conf=/tmp/config.sqm.eth0
sqm1conf=/tmp/config.sqm.eth1
if [ -e ${sqm0conf} ]; then
... | true |
19f3da27352436521f892c7fb3a58960e15553df | Shell | computator/salt-deluge-state | /copy-torrents.sh | UTF-8 | 1,352 | 3.21875 | 3 | [] | no_license | {% set torrent_root = '/var/lib/deluged/torrents' -%}
{% set subscription_file = salt['pillar.get']('deluge:yarss:subscription_file') -%}
{% if subscription_file -%}
{% import_yaml salt['pillar.get']('deluge:yarss:subscription_file') as subscriptions -%}
{% endif -%}
{% set subscriptions = salt['pillar.get']('deluge:ya... | true |
be38eb6140bbaa13fb13900ea42eeafe1ba565d7 | Shell | rem7/g | /libexec/g-resolve | UTF-8 | 253 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: g resolve
# Summary: resolves all the dependencies in a golangdeps file
# Help: g resolve
set -e
source $_G_ROOT/share/g/meta.sh
setGoPath
while read line; do
echo "Resolving $line"
g get $line
done < golangdeps
| true |
cb081f4d356820bf95b84a8dc3b0817e790a192b | Shell | lprashant-94/scripts | /bash_init.sh | UTF-8 | 1,374 | 3.296875 | 3 | [] | no_license | #!/bin/bash
db_set() {
echo "$1,$2" >> ~/database
}
db_get() {
grep "^$1," ~/database | sed -e "s/^$1,//" | tail -n 1
}
_db_suggest() {
local cur
local stringreply
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if (($COMP_CWORD == 1 ))
then
stringreply=$(cat /home/prashant/dat... | true |
e8a83caddc235f16d029e472077e3fe68e66e88a | Shell | HongyuanWu/lncRNA_analysis | /scripts/htseq_count.sh | UTF-8 | 621 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
if (($# == 0)); then
echo "Usage:"
echo "-s = sample ID"
echo "-m = Mapping directory"
echo "-g = Stringtie GTF"
echo "-o = path for output BAMs"
exit 2
fi
while getopts s:m:g:o: option
do
case "${option}"
in
s) SAMPLEID=${OPTARG};;
... | true |
186905e84d5a74da012cc241d2d2e12f88207e0a | Shell | phper5/docker | /shadowsocks/shadowsocks | UTF-8 | 344 | 2.734375 | 3 | [] | no_license | #!/bin/sh
case $1 in
server)
if [ "$2"x = ""x ]; then
ssserver -c /etc/shadowsocks/server.js
else
ssserver -c $2
fi
;;
client)
if [ "$2"x = ""x ]; then
sslocal -c /etc/shadowsocks/007.js
else
sslocal -c $2
... | true |
734f140176295bf3b50c05088b2f50d76abc425c | Shell | MorrellLAB/Deleterious_GP | /Analysis_Scripts/Genetic_Analysis/Summarize_Pairwise_Diversity.sh | UTF-8 | 1,288 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# Summarize pairwise diversity for various partitions of SNPs in the genomic
# prediction experiment. This will use the imputed SNPs.
# Set paths
BASE="/Volumes/LaCie/Genomic_Prediction/Summary_Stats/"
VCF="/Volumes/LaCie/Genomic_Prediction/Summary_Stats/AllChr_AlphaPeel_VCF.vcf"
PARTITIONS="/Users/tomkono... | true |
70b7985d8d389fbf9fcae62efa43dac300d47311 | Shell | Learner-Bee/Shell | /shell脚本/4_file-exist.sh | UTF-8 | 147 | 2.75 | 3 | [] | no_license | #!/bin/bash
echo "please input a filename"
read a
if test -e /home/lilybo/shell-learn/$a
then
echo "$a is exist"
else echo "$a is not exist"
fi | true |
312b8559dac70f008f84424a1c19773220f95e2f | Shell | adamflanagan/dotfiles | /docker/aliases.zsh | UTF-8 | 431 | 2.53125 | 3 | [
"MIT"
] | permissive | alias dc='docker-compose'
alias dcrm='docker-compose rm'
alias dck='docker-compose kill'
alias dms='docker-machine start default'
alias dmr='docker-machine restart default'
alias dmip='docker-machine ip default'
alias dme='eval "$(docker-machine env default)"'
function dcu() {
if [ -f ./docker-compose.local.yml ]... | true |
4928c2508075c5d5c2c5940816aa86fb2e98fcb1 | Shell | xo/usql-logo | /gen.sh | UTF-8 | 953 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
SRC="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pushd $SRC &> /dev/null
LOGO=usql
ICON=icon
OPTIMIZED=${LOGO}-optimized
MINIMIZED=${LOGO}-minimized
WIDTH=220
HEIGHT=80
# optimize
svgo \
--pretty \
--indent=2 \
--precision=4 \
--output=$OPTIMIZED.svg \
${LOGO}.svg
# remove width + heigh... | true |
a3b7518d86590e50577c0c6c5ca3654f83b09437 | Shell | suntech123/BigData | /run-hive1-auto.sh | UTF-8 | 30,932 | 3.96875 | 4 | [] | no_license | #!/bin/bash
#Purpose: The script will read a file containing a list of tables, one table per row
# in the format of SCHEMA.TABLE_NAME.COLUMN. The COLUMN is an optional entry.
# If a COLUMN is specified sqoop will use that column to split the extract
# among the mappers using that column. It then calls a sqoop ... | true |
9d6ef22ff1c4d6b8f674f558966845b60a67e32c | Shell | tharindulak/tempory-ath | /docker/deployment-init/files/setup-is.sh | UTF-8 | 6,811 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# ------------------------------------------------------------------------
#
# Copyright 2019 WSO2, Inc. (http://wso2.com)
#
# 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
... | true |
83ba3b315926ce0b4f05d4d19814391892834083 | Shell | justariy/termux-root-packages | /disabled-packages/squashfuse/build.sh | UTF-8 | 456 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://github.com/vasi/squashfuse
TERMUX_PKG_DESCRIPTION="FUSE filesystem to mount squashfs archives"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_VERSION=0.1.103
TERMUX_PKG_SHA256=bba530fe435d8f9195a32c295147677c58b060e2c63d2d4204ed8a6c9621d0dd
TERMUX_PKG_SRCURL=https://github.com/vasi/squashfuse/... | true |
e855cb48255cafd643bb9ba48718207e3de62bcf | Shell | 64kramsystem/aws-utils-dev | /create_s3_bucket.sh | UTF-8 | 611 | 2.796875 | 3 | [] | no_license | list="
bucketname-1
bucketname-2
bucketname-3"
$REGION=ap-southeast-2
for BUCKETNAME in $(echo $list)
do
aws s3api create-bucket --bucket $BUCKETNAME --region $REGION --create-bucket-configuration LocationConstraint=$REGION
aws s3api put-bucket-encryption --bucket $BUCKETNAME --server-side-encryption-configurat... | true |
e2bb47bcae351725bae46831cab68c1f080dec81 | Shell | vmware/alb-sdk | /create_release.sh | UTF-8 | 2,218 | 3.5 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -x
assets=""
echo "Usage ./create_release.sh <branch> <release_name>"
REL=$2
BRANCH=$1
if [ $BRANCH = "eng" ]; then
BRANCH="master"
fi
if [ -z $REL ]; then
echo "Pl. give the release name eg. latest"
exit 1
fi
export PYTHONPATH=`pwd`/python:$PYTHONPATH
REL_TAG=tag-$REL
git tag -d $REL_TAG... | true |
11e4e4f2ef4376e865068032e4d3bed9ebdcf1c6 | Shell | sohail-ahamed-qureshi/Shell-programming | /Repitations/assignments/usingWhileLoop/coinflip.sh | UTF-8 | 183 | 2.984375 | 3 | [] | no_license | #!/bin/bash
counter=0
while [[ counter -le 10 ]]
do
coin=$((RANDOM%2))
if [ $coin -eq 1 ]
then
echo "Heads"
counter=$(($counter + 1))
else
echo "Tails"
fi
done
| true |
c6b6fc735501818193c9522e8f3e8db0959ce4ca | Shell | michael-bowen-sc/dotfiles | /dot_oh-my-zsh/custom/aliases.zsh | UTF-8 | 758 | 2.734375 | 3 | [
"MIT"
] | permissive | if [ -x "$(command -v exa)" ]; then
alias ls="exa"
alias lsa="exa --long --all --group --icons"
fi
if [ -x "$(command -v code)" ]; then
alias zshc="code ~/.zshrc"
fi
# Use this version of pip install to install from BlackRock hosted libraries
if [ -x "$(command -v pip)" ]; then
alias blkpip_install="p... | true |
6cd2ffb3f865509b8b118d324784d868f46a02cf | Shell | tabulon-ext/zeesh | /func/zeesh-plugin | UTF-8 | 815 | 3.171875 | 3 | [
"MIT"
] | permissive | # zeesh plugin controller
zeesh-plugin() {
if [ $2 ] && [[ -d ~/.zsh/plugins/$2 ]]; then
case $1 in
desc|description)
zeesh-plugin-desc $2
;;
enable)
echo ":: zeesh plugin $2 enabled"
source ~/.zsh/plugins/$2/plugin.zsh
;;
prefs)
... | true |
b22b144f3e80e579f64910986e788f0887afadd5 | Shell | ibiqlik/qliksense-k8s | /preflight.sh | UTF-8 | 2,414 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# test deployment and service name we will use to test
appName="qnginx001"
continue_install=false;
namespace=""
unset preflight_status
print_help() {
echo "usage: ./preflight.sh [OPTIONS]
Options:
-h Prints help.
-n string namespace to use.
"
}
# accept value for namespace in c... | true |
b2e4b7b6726cddc858a1ac44a2adb2f8c916672b | Shell | fredsson/cmakegen | /PKGBUILD | UTF-8 | 746 | 3.234375 | 3 | [
"MIT"
] | permissive | #Maintainer: Fredrik Andersson <fredrik.ks.andersson@gmail.com>
pkgname=cmakegen-git
pkgver=r40.115b37b
pkgrel=1
pkgdesc="Tool to automatically generate cmake files for c++ projects"
arch=("x86_64")
license=("MIT")
makedepends=("git" "cmake" "make")
depends=("cmake" "make")
source=("git+https://github.com/fredsson/cmak... | true |
cd1e79b5a89b8b79e22b284858eeeb6dfac9b2b5 | Shell | supreet-s8/PMRDC | /PMR_DC_3/PMR_DC/prepareIP.sh | UTF-8 | 1,729 | 3.296875 | 3 | [] | no_license | #!/bin/bash
function identifyClients {
mount -o remount,rw / 2>/dev/null
PREFIX=''; PREFIX=`/opt/tps/bin/pmx.py show hadoop | egrep "client" | awk '{print $NF}' | awk -F. '{print $1"."$2"."$3"."}' | sort -u`
CLIENTS=''; CLIENTS=`/opt/tps/bin/pmx.py show hadoop | egrep "client" | awk '{print $NF}' | awk -F. '{print $4}... | true |
3ec0ef7fdc788001aa20596927a84ef5446abae2 | Shell | davejonesbkk/kubernetes-the-automated-way | /kubelet_client_certs.sh | UTF-8 | 1,246 | 2.6875 | 3 | [] | no_license | #!/bin/bash
WORKER0_HOST=`cat hosts | sed '3!d' | sed 's/[=].*$//'`
WORKER0_IP=`cat hosts | sed '3!d' | sed 's/.*[=]//'`
WORKER1_HOST=`cat hosts | sed '4!d' | sed 's/[=].*$//'`
WORKER1_IP=`cat hosts | sed '4!d' | sed 's/.*[=]//'`
{
cat > ${WORKER0_HOST}-csr.json << EOF
{
"CN": "system:node:${WORKER0_HOST}",
"key"... | true |
0eda9e952bdc29f0a3cef6c17a854bc451ef3ef2 | Shell | Chr0nos/ft_linux | /xorg/ebuild/libarchive.sh | UTF-8 | 270 | 2.875 | 3 | [] | no_license | build() {
PKG="libarchive"
VERSION="3.3.2"
URL="http://www.libarchive.org/downloads/$PKG-$VERSION.tar.gz"
pull $PKG gz $VERSION $URL
unpack $PKG-$VERSION gz
./configure --prefix=/usr --disable-static && compile $PKG-$VERSION
make install
cleanup $PKG $VERSION
}
| true |
baf86ead33f4ee623d32d2a002962c92ff7978d1 | Shell | Armenak1998/Algorithm | /gmain.bash | UTF-8 | 354 | 2.65625 | 3 | [] | no_license | if [ -d "gmain/" ] ; then
rm -rf gmain/;
fi;
mkdir gmain;
if [ -d "output/" ]; then
rm -rf output;
fi;
mkdir output;
cd gmain;
g++ ../algorithm/algorithm.cpp ../algorithm/main.cpp ../algorithm/private.cpp -o gmain.exe;
./gmain.exe > ../output/output.tcl;
cd ..;
touch rmfile.bash ;
echo "rm -rf gmain; rm -rf output; r... | true |
dd28c1f9e274eb1d7dc8cb5e75d2f172fe96922e | Shell | tungsheng/dotfiles | /install/debian/init.sh | UTF-8 | 1,006 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
log_file=$HOME/install_progress_log.txt
echo -ne "Initiating...\n"
sudo apt-get -y update
echo -ne "Installing utils...\n"
sudo apt-get -y install git tig
sudo apt-get -y install make locate
sudo apt-get -y install whois
sudo apt-get -y install curl wget
sudo apt-get -y install silversearcher-ag
sudo apt... | true |
9299b410757f75270aa678feee58c3c67e6e9c30 | Shell | dayroned/django-template | /run-devenv.sh | UTF-8 | 527 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
export COMPOSE_FILE=local.yml
stop_stack()
{
echo "Stopping compose environment..."
docker compose down
}
if [ ! -f .env ]; then
echo "Creating .env file from example..."
cp .env.example .env
fi
echo "Building compose environment..."
docker ... | true |
8aa5ff22237ea68e6941a1b5a783c0c3efb4b437 | Shell | benhamilton/snippets | /bash-get-next-task-number.sh | UTF-8 | 132 | 2.703125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
source ~/last_task_number.txt
((TaskNumber++))
echo $TaskNumber
echo "TaskNumber=$TaskNumber" > ~/last_task_number.txt
| true |
c94d3a42e80048f62d7792adbb9b43f01e3bf148 | Shell | qrti/rotBright | /script/rotate.sh | UTF-8 | 3,689 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# rotate.sh V0.7 191023 qrt@qland.de
# linux bash script for rotation control (display + touchscreen + optional pen)
# make script executable
# chmod a+x rotate.sh
# open a console and enter
# $ xinput -list
# note the input device(s) you want to rotate
#if unused -> DEVICE1=
DEVICE0="pointer:ELAN22A6:0... | true |
a63db12043144297a6e90b37ed108ef88e368b0d | Shell | binocarlos/powerstrip-mesosphere-demo | /mesosphere-install.sh | UTF-8 | 2,467 | 3.6875 | 4 | [] | no_license | #!/bin/bash -e
if [[ $# > 0 ]]; then
if [[ "$1" == "slave" ]]; then
export INSTALLER_TYPE=slave
else
export INSTALLER_TYPE=master
fi
else
export INSTALLER_TYPE=master
fi
echo "####################################################################"
echo "#################### Installing mesosphere $INSTAL... | true |
eabfce0b0ae0815f2b63bc8b874e6fda9eef77cd | Shell | MenkeTechnologies/zpwr | /autoload/common/zpwrKeySender | UTF-8 | 347 | 2.71875 | 3 | [
"MIT"
] | permissive | # -*- mode: sh -*-
# vim: set ft=sh:
function zpwrKeySender(){
if (( $ZPWR_SEND_KEYS_PANE != -1 )); then
local pane mywords
# tmux send-keys -t learn:0.0 $1
for pane in ${(Az)${(s@,@)ZPWR_SEND_KEYS_PANE}}; do
tmux send-keys -t $pane "C-u" "$BUFFER" #&>/dev/null
done
... | true |
10b0f0e604a122ab82224bcc8f172ba6bc89168d | Shell | sunfish-shogi/sunfish | /server.sh | UTF-8 | 1,776 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# server.sh
# Server Program for Sunfish
# 繰り返し回数
steps=5000
# ホスト名, ログイン名, パスワード
. hosts
# クライアントの総数
cnum=${#CLIENT[*]}
# ログファイル
log="server.log"
# clean
rm -rf ~/.sunfish_s
# make directory
mkdir ~/.sunfish_s
# host name
hostname=`hostname`
echo $hostname
# number of clients
echo "Clients : $cnum... | true |
d7be899c38c90609cd8106f053bdd9d694b33d0a | Shell | andreaguarise/one-initScripts | /c7-java8.sh | UTF-8 | 384 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# java8.sh
#
#
# Created by Andrea Guarise on 7/1/15.
#
yum install -y java-1.8.0 &> /tmp/java8.log
java8=`alternatives --display java | grep -v slave | grep 1.8 | cut -d ' ' -f1`
alternatives --set java $java8
alternatives --display java | grep "points to" | grep 1.8.0
if [ $? = 0 ]; then
echo "... | true |
104a2337c2ee5c9101da94e469a882647dfd5e6f | Shell | galabe-cloud/kops-terraform-tutorial | /kops_3_create_s3_tfstate_store.sh | UTF-8 | 694 | 2.609375 | 3 | [] | no_license | #!/bin/bash
# kops_3_create_s3_tfstate_store.sh
# Ref: https://github.com/kubernetes/kops/blob/master/docs/getting_started/aws.md
export AWS_PROFILE=garyttt8
DOMAIN="learn-devops.online"
SUBDOMAIN="kops.${DOMAIN}"
REGION="ap-southeast-1"
BUCKET="${SUBDOMAIN}-tfstate-store"
aws s3api create-bucket \
--region $REG... | true |
02b130c2b173ed277d69464b0a896aa22867d29b | Shell | jjzamudio/HIGAN | /validation-metrics/run-jupyter_sb_py2.sbatch | UTF-8 | 1,793 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --gres=gpu:1
#SBATCH --job-name=jupyterNB
#SBATCH --nodes=1
#SBATCH --time=24:00:00
#SBATCH --mem=64GB
##SBATCH --cpus-per-task=2
#SBATCH --job-name=viz-cap
module purge
module load python/intel/2.7.12
#source /beegfs/sb3923-share/pytorch-cpu/py3.6.3/bin/activate
module load fftw/intel/3.3.6-pl2
p... | true |
8d76a4839bf1d28a61fa3861e19fe3d564c3b770 | Shell | AWooldrige/puppet | /apply.sh | UTF-8 | 521 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
sudo puppet apply -v --strict_variables --modulepath=/etc/puppet/code/modules/:/etc/securepuppet/modules/:./modules/ ./manifests/
echo "Complete. Don't forget that gdpup may eventually overwrite changes made by this puppet run"
if ! passwd -S woolie | grep '^woolie P ' > /dev/null; then
... | true |
b85a2a4b12da45abe9df490898e2be7f2cf57985 | Shell | source-academy/js-slang | /scripts/jsdoc.sh | UTF-8 | 7,983 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
JSDOC="node_modules/.bin/jsdoc"
TMPL="docs/jsdoc/templates/template"
DST="docs/source"
MD="docs/md"
LIB="docs/lib"
SPECS="docs/specs"
main() {
if [ "$1" == "prepare" ]; then
prepare
elif [ "$1" == "clean" ]; then
clean
elif [[ "$(git rev-parse --show-toplevel 2> /dev/null)" -ef "$P... | true |
d3bca37309f5bbaf2f73b749a366a8fa5cf97f1d | Shell | nimratbrar/solarthing | /other/systemd/edit-service.sh | UTF-8 | 512 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
BASEDIR=$(dirname "$0")
cd "$BASEDIR" || exit 1
SERVICE=$1
if [ -z ${SERVICE+x} ]; then
echo "You need to specify a service!"
exit 1
fi
NAME="solarthing-$SERVICE.service"
FILE_PATH="/etc/systemd/system/$NAME"
FILE_HASH=$(md5sum "$FILE_PATH" 2>/dev/null)
if [ -z ${EDITOR+x} ]; then
vi "$FILE_... | true |
185bbcc39098caba5df75c6a94294c7ddc4c1446 | Shell | dbar/dotfiles | /.lemonbar/popups/clock/moon | UTF-8 | 640 | 3.015625 | 3 | [] | no_license | #!/bin/bash
## EXECUTE
set phase (math "((("(date --date='00:00' +%s)" - 1386030360) % 2551443) / 86400)")
switch $phase
case in 0 1 29
echo " The moon will look like ² today."
case in 2 3 4 5
echo " The moon will look like ³ today."
case in 6 7 8 9
echo " The moon will look like ´ today."
case in 10 11... | true |
1b700db057868f17f07a6a5151613e6e4ac2dd03 | Shell | greenplum-db/gpbackup | /ci/scripts/gpbackup-tools-versions.bash | UTF-8 | 572 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
# get versions for gpbackup, s3_plugin and gpbackup_manager
pushd gpbackup-go-components-rhel8
tar -xzf go_components.tar.gz
GPBACKUP_VERSION=$(cat gpbackup_version)
cp *_version ../gpbackup-tools-versions/
popd
echo ${GPBACKUP_VERSION} > gpbackup-tools-versions/pkg_version
# ge... | true |
f3a43ad0297a5c07126bd69136e95ec783b4f97e | Shell | awslabs/dynamic-training-with-apache-mxnet-on-aws | /scala-package/spark/bin/run-mnist-example.sh | UTF-8 | 2,521 | 3.21875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"Zlib",
"Apache-2.0",
"BSD-2-Clause",
"Intel"
] | permissive | #!/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"); ... | true |
9beed7b6f3ccfd259aa1199fe0914fab5daf623d | Shell | altair861/DBColumn | /buildProcessor.sh | UTF-8 | 1,499 | 3.90625 | 4 | [] | no_license | #!/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 -$... | true |
a424e1a0fcff64f31dacad0f1d30f7847ab8926d | Shell | schlueter/bin | /note | UTF-8 | 622 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
log () {
printf '%s %s\n' "$(date -R)" "$*" >> ~/.logs/note.log
}
named_note () {
vim "$XDG_CONFIG_HOME/notes/$1"
(
set -e
exec > >(while read -r l; do log "$l"; done) 2>&1
if ! cd "$XDG_CONFIG_HOME"/notes
then
log "Issue moving to notes dire... | true |
81392e9dfcfc4d5aa56644fa13b4e91ecb05f6ac | Shell | roorco/etcetera | /skel/.config/executables/updatedriver.sh | UTF-8 | 2,850 | 3.671875 | 4 | [] | no_license | ## Simple bash script to install the necessary software packages to
## enable full multimedia capabilities.
##
## Written by Carl Duff
##
clear
echo "Checking root privilages and internet connection...."
echo
## Check 1: Ensure that the script is being run with root privilages
if [[ `whoami` != "root" ]];
then
e... | true |
92d2e71c6cb1c1691d187ccdd02fcc23aec97a61 | Shell | nesi/ARCS-systems | /dataFabricScripts/iRODS/usageScripts/SingleZone/UsageStatsDownload.sh | UTF-8 | 1,853 | 4 | 4 | [] | no_license | #!/bin/sh
IRODS_HOME="/opt/iRODS-2.0v/iRODS"
logDir="$IRODS_HOME/server/log"
usage()
{
echo "Usage: `basename $0` -d Path-To-DataFabric-UsageStats"
exit 1
}
if [ $# -ne 2 ]
then
usage
fi
while getopts d OPTION
do
case $OPTION in
\?) usage
;;
esac
done
#Complete the copy from yesterday's XML to t... | true |
4e3f670e1ffa996329a9ca21e93a58f1ff79ffb2 | Shell | madnh/bash-app | /modules/create_module/create_module.sh | UTF-8 | 513 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
function __module() {
local MODULE_DIR="${1}"
local MODULE_NAME=$(whiptail --inputbox "Module name?" 8 78 --title "Create module" 3>&1 1>&2 2>&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
local MODULE_FILE="${APP_MODULE_DIR}/${MODULE_NAME}/${MODULE_NAME}.sh"
mkdir... | true |
ad0a8dd360cf52ce5bbc0c0d5acf5db65bbf3373 | Shell | rdghosal/njmvc_checker.py | /entrypoint.sh | UTF-8 | 360 | 2.5625 | 3 | [] | no_license | #!/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... | true |
2a8407cf3a40fb2ee4b8a7afec316bfa97c085b9 | Shell | rocksclusters/area51 | /src/tripwire-config/etc/tw-email-to | UTF-8 | 1,022 | 2.890625 | 3 | [] | no_license | #!/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)'... | true |
1ee11ef22fdbaf0d06066ee23228d54da090d80e | Shell | roytam1/mirbsd-cvs | /contrib/hosted/tg/m_1 | UTF-8 | 1,629 | 3.296875 | 3 | [] | no_license | #!/bin/mksh
# $MirOS: contrib/hosted/tg/m_1,v 1.2 2009/09/08 16:43:01 tg Exp $
#-
# Copyright (c) 2008
# Thorsten Glaser <tg@mirbsd.org>
#
# Provided that these terms and disclaimer and all copyright notices
# are retained or reproduced in an accompanying document, permission
# is granted to deal in this work without r... | true |
84d977457afd7f2de55476e52d2a4d20153680e1 | Shell | datallboy/php-dev-env | /gencerts.sh | UTF-8 | 464 | 2.9375 | 3 | [] | no_license | #!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
mkdir -p certs
OPENSSL_SUBJ="/C=US/ST=/L="
OPENSSL_CA="${OPENSSL_SUBJ}/CN=php-dev-env-CA"
OPENSSL_SERVER="${OPENSSL_SUBJ}/CN=mariadb"
OPENSSL_CLIENT="${OPENSSL_SUBJ}/CN=client"
sh ./scripts/genroot.sh "${OPENSSL_CA}"
sh .... | true |
e22fe3db34145f49bd3f82b786806963e90b60fc | Shell | rhempel/bashtools | /src/fmt | UTF-8 | 1,747 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# fmt - colorized output for your bash scripts
#
# Copyright (C) 2014-2015 Ralph Hempel <rhempel@hempeldesigngroup.com>
#
# Based on "Template to write better bash scripts" from:
# More info: http://kvz.io/blog/2013/02/26/introducing-bash3boilerplate/
# Version 0.0.1
#
# See LICENSE for https://github.com... | true |
0d5e2e38ee858c5ca0f2ecca88979b7cdddcadfd | Shell | sshyran/meta-tn-imx-bsp-TechNexion | /recipes-containers/docker-disk/files/entry.sh | UTF-8 | 2,975 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -o errexit
set -o nounset
DOCKER_TIMEOUT=20 # Wait 20 seconds for docker to start
DATA_VOLUME=/docker-partition
BUILD=/build
SRC=/src
PARTITION_SIZE=${PARTITION_SIZE:-2048}
PARTITION_IMAGE=${PARTITION_IMAGE:-docker-data-partition.img}
CONTAINER_SUFFIX=${CONTAINER_SUFFIX:-.tar.gz}
IMAGE_SUFFIX=".tar"
fi... | true |
616d12cf58de853fd8a67253d0456afd895c8ed7 | Shell | heiliuer/shell-study | /007server-deploy/mbuild.sh | UTF-8 | 229 | 3.109375 | 3 | [] | no_license | project=$1
action=$2
version=$3
if [ $version ];then
modules/build.sh $sourceroot/$project/ $action $version
else
modules/build.sh $sourceroot/$project/ $action
fi
if [ $? -ne 0 ];then
echo "build $project failed"
exit 1
fi | true |
48556e61c942efad70c769f33bbea2a224a45d3a | Shell | chelseatroy/diego-lite | /diego-lite-pipeline/02_test/run_whetstone | UTF-8 | 1,226 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -e
save_logs() {
echo "save logs"
pushd $WORKSPACE_DIR/diego-lite
vagrant ssh -c "sudo tar -czf /vagrant/vagrant_upstart_logs.tgz /var/log/upstart"
popd
mv diego-lite/vagrant_upstart_logs.tgz .
}
cleanup_vagrant() {
echo "cleaning up vagrant"
pushd $WORKSPACE_DIR/dieg... | true |
9e0c519d7c81596dc2840137e3a47bd2d3841b45 | Shell | diatum-org/portal | /tools/challenge.sh | UTF-8 | 1,875 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | ACTION="$1"
RECORD="$2"
NAME="$3"
VALUE=\\\"$4\\\"
IP=`mysql -u root -proot portal -sN -e "select address from device where id='$RECORD'"`
HOSTNAME=`mysql -u root -proot portal -sN -e "select dns from device where id='$RECORD'"`
DOMAIN=`echo "$HOSTNAME" | cut -c 8-`
DOMAIN_ID=`mysql -u root -proot portal -sN -e "selec... | true |
f72ea1a9e1932daad338c4ac8f3b2b84fa656cfe | Shell | p-himik/config | /zsh/line_numbers.zsh | UTF-8 | 1,324 | 3.921875 | 4 | [] | no_license | #!zsh
function fill-query-and-params {
local query; query=()
local params; params=()
for a in $@; do
if [[ "$a" =~ "^-" ]]; then
params+=($a)
else
query+=($a)
fi
done
export CMD_QUERY="$query"
export CMD_PARAMS="$params"
}
function print-with-ali... | true |
82d798765249e6352edd7b7aa05c698b5e41eb6e | Shell | Vimux/dotfiles | /macos.sh | UTF-8 | 13,411 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
# Customize macOS defaults settings
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Boot macOS in verbose mode
sudo nvram boot-args="... | true |
067fd243162aef36b465e93e28aa99c41ac95d45 | Shell | Som-Energia/somenergia-scripts | /accounting/municipal_certificate/doall.sh | UTF-8 | 256 | 2.84375 | 3 | [] | no_license |
# Usage ./doall.sh key.pks12
# Process all csv in input folder
# Generates a output_NAME folder with the signed pdfs of each csv
for a in input/*csv
do
./csv2yaml.py "$a" "output_$(basename "$a" .csv)"
done
./create_certificate.sh "$1" output_*/*yaml
| true |
bb770b703047490218693dd290f278b7b8faa437 | Shell | dongtranthien/IotWebConf | /pio/clean-pioexamples.sh | UTF-8 | 453 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# This script will remove created PlatformIO compatible folder structure.
# Files are mostly references to original files, and the original files
# will not be deleted. So generally said it safe to run this script.
# platformio.ini files will be removed alog with any additional added
# files.
#
cd .... | true |
7e6733487f396bf25e8e24d61e1f345d19ba032e | Shell | zsboss/hyperf-reload | /reload.sh | UTF-8 | 480 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
basepath=$(cd `dirname $0`; pwd)
cd $basepath
if [ -f "../runtime/hyperf.pid" ];then
PID=`ps -A |grep "php hyperf.php start"| awk '{print $1}'`
#cat ../runtime/hyperf.pid | awk '{print $1}' | xargs kill -9 && rm -rf ../runtime/hyperf.pid && rm -rf ../runtime/container
#cat ../runtime/hyperf.pid | awk '... | true |
3422802f30b12d91ba3869bee4d713059176921b | Shell | alerts-pl/slipstream_node_production | /scripts/mumudvb_start.sh | UTF-8 | 707 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# MuMuDVB Boot Script by Jamie Whittingham
(( UID != 0 )) && { echo "Error: you MUST be logged in as root."; exit 1; }
echo "Starting MuMuDVB"
mkdir /var/run/mumudvb
killall mumudvb
mumudvb -c /root/mumudvb_0.conf
mumudvb -c /root/mumudvb_1.conf
mumudvb -c /root/mumudvb_2.conf
mumudvb -c /root/mumudvb... | true |
b49de2be33e15c89bb71682c41d845b56b73700b | Shell | orwell-int/proxy-robots | /proxy-robots-module/src/main/scripts/generate.sh | UTF-8 | 292 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# generate java code for the protobuff definition
DIR=$(cd "$(dirname "$0")" ; pwd)
cd "$DIR/../../../.."
MSG_PATH=$DIR/../../../../messages
echo "Generating .java classes in" $MSG_PATH
protoc --java_out=proxy-robots-module/src/main/java/ --proto_path=$MSG_PATH $MSG_PATH/*.proto
| true |
680b03b1b5a35f178c04ef77a9bfa78887e5a7ae | Shell | danielthoren/Config-files | /kitty/config.sh | UTF-8 | 832 | 4.09375 | 4 | [] | no_license | #!/bin/bash
workingDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
dir=~/.config/kitty
source $workingDir/../functions.sh
source $workingDir/../commandParser.sh -scope kitty "$@"
if ! command_exists kitty ; then
if flags_exists no-sudo ; then
echo "kitty not installed, cant insta... | true |
7989a706e143a4436a74ca3436da2a4ef7973fd7 | Shell | paologallinaharbur/newrelic-integration-e2e-action | /samples/nri-powerdns/deps/pdns-authoritative/start.sh | UTF-8 | 2,095 | 3.6875 | 4 | [] | no_license | #!/bin/bash
mkdir -p /etc/powerdns/pdns.d
PDNSVARS=`echo ${!PDNSCONF_*}`
touch /etc/powerdns/pdns.conf
PDNSCONF_GMYSQL_USER=pdns
PDNSCONF_GMYSQL_DBNAME=pdns
PDNSCONF_GMYSQL_PASSWORD=pdnspw
for var in $PDNSVARS; do
varname=`echo ${var#"PDNSCONF_"} | awk '{print tolower($0)}' | sed 's/_/-/g'`
value=`echo ${!var}... | true |
6c5beff7ecb3668b127d2428400e6b72de10e1f3 | Shell | carymrobbins/dotfiles | /shared/bin/rebase-scalafmt | UTF-8 | 2,408 | 3.96875 | 4 | [] | no_license | #!/bin/bash
usage() {
cat <<HERE
Usage: $0 <rev> [options]
Example: rebase-scalafmt origin/master --fast
Options:
--fast Shorthand for --no-edit --no-interactive --no-compile
--no-edit Don't prompt to edit messages when amending commits.
--no-interactive Don't run in interactive rebase... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.