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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0f15085ec1d0560ca4e91229f0d98dd87d124a0a | Shell | chriszandro/gnuplotscripts | /plotsum2.sh | UTF-8 | 2,587 | 2.890625 | 3 | [] | no_license | #bash/bin
mkdir -p ./2overview/png
mkdir -p ./2overview/pdf
for FILE in *.dat; do
echo "Processing $FILE for IV Characteristics"
gnuplot <<- EOF
set style line 80 lt rgb "#000000"
#Grid
set style line 81 lt 0 # dashed
set style line 81 lt rgb "#808080" # grey
set grid back linestyle 81
set border 3 back... | true |
3c3bc37d7a8f4a0c4802031b974d62ae291b8352 | Shell | mijime/dotfiles | /bin/kot | UTF-8 | 1,433 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
send_kot() {
curl --fail -sSL https://s2.kingtime.jp/gateway/bprgateway \
--data-urlencode "id=$1" \
--data-urlencode "latitude=" \
--data-urlencode "longitude=" \
--data-urlencode "highAcPos=" \
--data-urlencode "lowAcPos=" \
--data-urlencode "highAccur... | true |
4c88af8d729bcbc8dcff00d448b1300e267c6198 | Shell | mduk/dotfiles | /dot.sh | UTF-8 | 576 | 3.375 | 3 | [] | no_license | export DOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
alias dot="source $DOT_DIR/dot.sh"
alias cdf="cd $DOT_DIR"
function dotup {
pushd ~/.dotfiles
gf && gp
dot
popd
}
source "$DOT_DIR/env.sh"
source "$DOT_DIR/path.sh"
source "$DOT_DIR/ps1.sh"
#source "$DOT_DIR/powerline.sh"
for file in $(find... | true |
d3b59812dbd7a7c65bda1722f60fcd886f2d5194 | Shell | jbcool17/MyHandyScripts | /Bash/W_I_P/txt_file_list_outputs_array.sh | UTF-8 | 68 | 2.671875 | 3 | [] | no_license | ARRAY=()
while read line; do ARRAY+="$line"; done <$1
echo $ARRAY
| true |
cfd01bfd1eda096a0c4a8b4e1695eb74ab815bae | Shell | KrbAlmryde/Utilities | /niftiViewer/extractOnset.sh | UTF-8 | 1,017 | 3.1875 | 3 | [
"MIT"
] | permissive | # This program assumes the user has already extracted the nifti files from their
# respective zipped folders and are in the current working directory.
cd /Exps/Analysis/WB1/GiftAnalysis/Learnable/Learnable_group_stats_files
FILES=(`ls *nii`)
for file in ${FILES[*]}; do
fn=(`echo $file | awk -v FS="_" '{print $1"... | true |
390469b7a22493e52433f7909ad3ee3b07f61c4e | Shell | himanoa/images | /bin/Changed | UTF-8 | 224 | 3.09375 | 3 | [] | no_license | #!/bin/ash
# ref. https://blog.hatappi.me/entry/2018/10/08/232625
DIFF_TARGET="HEAD^ HEAD"
DIFF_FILES=(`git diff ${DIFF_TARGET} --name-only --relative=${1}`)
if [ ${#DIFF_FILES[@]} -eq 0 ]; then
exit 1
else
exit 0
fi
| true |
c872ef25978a7315c12be2a808e2c996ea53c155 | Shell | hmhajir/vnet-sms | /infrastructure/rpm-grok/build.sh | UTF-8 | 2,005 | 3.65625 | 4 | [] | no_license | #!/bin/sh
set -e
set -o nounset
VERSION="$1"
RELEASE="$2"
DIST="$3"
ARCH="$4"
REPO="$5"
MODULEDIR=$( cd "$( dirname "$0" )" && pwd )
RPMBUILD=${MODULEDIR}/target/rpmbuild
TMPPATH=${MODULEDIR}/target/tmp
PACKAGE=grok-${VERSION}-${RELEASE}.${DIST}.${ARCH}.rpm
echo ""
echo "--------------------------------------------... | true |
0e7b3150576795f962e494b942fe0bbc9bca1877 | Shell | aberke/classification | /error.sh | UTF-8 | 142 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# To run error.py
# Main program to be executed
MAIN="error.py"
# Call $MAIN and pass all the script arguments
python $MAIN $@
| true |
66c3a7028477300a218b20c3958d35c2603c8203 | Shell | WarpedSavior/dotfiles | /scripts/volume-control | UTF-8 | 1,542 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# You can call this script like this:
# $./volume.sh up
# $./volume.sh down
# $./volume.sh mute
icon_name=""
function get_volume {
pactl list sinks | grep '^[[:space:]]Volume:' | cut -d '/' -f 2 | cut -d '%' -f 1
}
function is_mute {
pactl list sinks | grep 'Mute' | grep yes > /dev/null
}
funct... | true |
9b7f1341193717172097de7e94726d4e9dda00bf | Shell | exastro-suite/it-automation | /ita_install_package/ITA/ita-contents/ita-root/backyards/webdbcore/ky_mail.sh | UTF-8 | 29,244 | 3.296875 | 3 | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT"
] | permissive | #!/bin/sh
# Copyright 2019 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | true |
8f175d205ed6c5845c301429b0d4135b01313c2f | Shell | tjchoi/private_repo | /scripts/test/sed.sh | UTF-8 | 542 | 2.875 | 3 | [] | no_license | #!/bin/sh
#val="192.168.1.81,00:00:00:00:00:01,test1;192.168.1.82,00:00:00:00:00:02,test2;192.168.1.83,00:00:00:00:00:03,test3"
val="192.168.1.81,00:00:00:00:00:01,test1"
num=$(echo $val | sed 's/[^;]//g' | wc -c)
echo $num
for i in $(seq 1 $num); do
ip=$(echo $val | cut -f $i -d ';' | cut -f 1 -d ',')
mac=$(echo ... | true |
f17bd5435a155cd6ac10f5abc80de1aaef656ced | Shell | AndrewMigal/pipelines_with_artifacts | /bin/fetch | UTF-8 | 748 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
echo '========= SHOW HOME DIR'
ls -l ~
echo '========= CREATE fetch_compiled_dir DIR and nested files'
mkdir ~/fetch_compiled_dir
echo "Some text here." > ~/fetch_compiled_dir/myfile
echo "Some another text here." > ~/fetch_compiled_dir/my_second_file
echo '========= CREATE fetch_compiled i... | true |
a16212b3cceb9f3034f7af2eb1dd375b4f14b366 | Shell | HelenaIshak/ChIPseq_REP_pipeline | /CreateSamplesheet.bash | WINDOWS-1252 | 8,830 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# Made by Helena Ishak, 2016-2017
# Created in the context of my master thesis project in bioinformatics, regarding the development of a chip-seq analyzing pipeline.
# Any use of this script, or part of it, should include proper reference to this work and its author.
#Script 2 - creating sample sheet for ... | true |
6e69ddb675405e14d216fe377239ad7637f15e60 | Shell | ycy1766/openstack-vm-pt | /roles/install_pts_packages/files/pcp-discovery.sh | UTF-8 | 1,337 | 3.6875 | 4 | [] | no_license | #!/bin/bash
case "$1" in
disk)
disks=($(cat /proc/diskstats | awk '{print $3}' | grep -v 'ram\|loop\|sr|fd|dm-'))
counter=${#disks[@]}
echo "{"
echo -e "\t\"data\":[\n"
for (( i=0; ${counter}>i; i++ ))
do
if (( $i == $counter-1 )); then
echo -e "\t{ \"{#DISKDEV}\":\"${disks[$i... | true |
3e9b7d947e3809e3c538852c169d48affca81cee | Shell | hermesh2/sh_linux | /Install_all.sh | UTF-8 | 868 | 2.515625 | 3 | [] | no_license | #!/bin/bash
echo "========================================================"
echo "Create sybolic links between /home/chabi/Dropbox/Chabi/sh_linux/ files and /usr/local/bin/ in the path."
echo "Note: If you want to add new Info you must to add manually to this files"
echo "==============================================... | true |
92f19a6a185bf3d37bed551cb39206107f3d4190 | Shell | damienflament/shellspec | /spec/core/hook_spec.sh | UTF-8 | 1,618 | 2.75 | 3 | [
"MIT"
] | permissive | #shellcheck shell=sh
Describe "core/hook.sh"
Before 'shellspec_create_hook EXAMPLE'
Describe 'shellspec_call_before_hooks()'
Context 'when hooks are empty'
It 'does nothing if not exists before hooks'
When call shellspec_call_before_hooks EXAMPLE
The stdout should be blank
End
... | true |
ecb60762e729aeeef0ad902e8774421397ce99dd | Shell | EliseyP/onik | /src/OOnik/oxt_handler.sh | UTF-8 | 1,507 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# oxt_handler.sh
# Обрабатывает OxtName-L-ver.oxt
# Удаляет суффиксы '-L-ver'
# - в имени oxt файла
# - в самом oxt в файле AddonUI.xcu
# - в файле upd
# filename-L-ver.oxt -> filename.oxt
# Требуется zip, unzip
if ! command -v zip &> /dev/null; then
echo "Can't find zip command"
exit 1
fi
if ! ... | true |
0d43156d331467aacaecaf5a9a93eec362a34f94 | Shell | kwantam/conec | /certs_check.sh | UTF-8 | 300 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
for cert in certs/*_cert.der; do
openssl x509 -inform DER -in "$cert" -outform PEM -out "$cert".pem
done
for cert in certs/*_cert.der.pem; do
openssl verify -CAfile certs/ca_cert.der.pem -verify_hostname "$(basename "$cert" _cert.der.pem)" -policy_check -x509_strict "$cert"
done
| true |
d669f9117ea4f1819b75a3629a1b87540cace9c7 | Shell | nil2013/satysfi.net | /satysfi_net/scripts/exec_satisfy.sh | UTF-8 | 529 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# ファイル名の生成
uuid=$(uuidgen)
filename=/tmp/satysfi.net/demo/${uuid}.saty
if [ -z "$HOME" ]; then
export HOME=/home/satysfi/
fi
# opam設定読み込み
source $HOME/.opam/opam-init/init.sh
# satysfi周辺ファイル配置
mkdir -p /tmp/satysfi.net/
cp -r $(dirname $0)/demo/ /tmp/satysfi.net/demo/
# 入力satysfiファイル配置
echo "$1" > $... | true |
7080932dcc4aa89f5f3f8bea191de0420b455446 | Shell | microcosm/rpi-build-and-boot | /fixSymbolicLinks.sh | UTF-8 | 720 | 3.828125 | 4 | [] | no_license | temp_marker="_tmp"
target_prefix="/opt/raspberrypi/root"
echo "Fixing symbolic links..."
for file in /opt/raspberrypi/root/usr/lib/arm-linux-gnueabihf/*
do
#attempt to read as link
existing_link=$(readlink $file)
#test if it's hard-coded to rpi root directory
if echo "$existing_link" | grep -q "^/lib... | true |
f8000d223854a2b7d25ddc43e34afd46bb1f3767 | Shell | Hibbiki/chromium-win64 | /scripts/version.sh | UTF-8 | 1,556 | 4.09375 | 4 | [] | no_license | #!/bin/bash
function printHelp() {
echo "$0 usage:" && grep " .)\ #" $0; exit 0;
}
function manualVersionInput() {
read -p "Provide version for build: " CUR_VERSION
echo $CUR_VERSION
}
function getVersionOnline() {
VERSIONS=$(curl -s 'https://versionhistory.googleapis.com/v1/chrome/platforms/win64/c... | true |
7ab047624fe4b23ee90a0fb3f6923c5bc2c7dd52 | Shell | eabyshev/base | /big-data/oozie-client/oozieClientPack.sh | UTF-8 | 2,085 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
. /var/lib/jenkins/jobs/master.get_branch_repo/workspace/big-data/pack-funcs
productName=oozie-client
mode=bdproduct
downloadFileAndMakeChanges() {
initializeVariables $1
tempDirectory=$BASE/$fileName/opt/temp
optDirectory=$BASE/$fileName/opt
tarFile=oozie-3.3.2.tar.gz
clie... | true |
ff619a3d105fc0794c3bd3da2230d6f026395b09 | Shell | wblumberg/SHARPpy | /ci/install.sh | UTF-8 | 1,300 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo $PYTHON_VERSION
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -o miniconda.sh;
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ... | true |
84a2a4108364fee30540c3bd0e035a4cf149966c | Shell | nstrumenta/nstrumenta | /cluster/integration-tests/ci.sh | UTF-8 | 845 | 3.96875 | 4 | [
"MIT"
] | permissive | #/bin/bash -vxe
TEST_ID_BASE=${TEST_ID_BASE:-$(uuidgen)}
echo "TEST_ID_BASE= $TEST_ID_BASE"
# Load the environment variables from the specified ENVFILE
if [[ $ENVFILE ]]; then
echo "Loading from envfile: $ENVFILE"
if [[ -f $ENVFILE ]]; then
while IFS= read -r line || [[ -n "$line" ]]; do
ex... | true |
58aac8917f36a5dee9453a49e43d62ac70199425 | Shell | ccgenomics/somaticseq | /ssSomaticSeq.Wrapper.sh | UTF-8 | 6,124 | 3.3125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -e
OPTS=`getopt -o o: --long output-dir:,mutect2:,strelka:,varscan:,vardict:,lofreq:,scalpel:,genome-reference:,cosmic:,dbsnp:,gatk:,in-bam:,classifier-snv:,classifier-indel:,ada-r-script:,exclusion-region:,inclusion-region:,truth-indel:,truth-snv:,pass-threshold:,lowqual-threshold:,keep-intermediates... | true |
b6dcbd2a0d6e18060bb518f80c3ed583bd37a92d | Shell | apkar/fdb-document-layer | /packaging/osx/buildpkg.sh | UTF-8 | 2,081 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# buildpkg.sh
#
# This source file is part of the FoundationDB open source project
#
# Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
#
# 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... | true |
7d1d4aea8d70a6efbef37eb76d3a4c56f5622ad0 | Shell | tshibata/ASTI-GNU-Linux | /102-linux.sh | UTF-8 | 454 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
cd $SRCDIR
wget --no-clobber https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.39.tar.xz
rm -rf linux-4.9.39/
tar xf linux-4.9.39.tar.xz
cd linux-4.9.39/
make mrproper
make i386_defconfig
# For frame buffer
sed -i 's/^# CONFIG_FB_BOOT_VESA_SUPPORT is not set$/CONFIG_FB_BOOT_VESA_SUPPORT... | true |
847b9e52e19268bbad16a2ee08d21b758b6d38a6 | Shell | vadlamak/nixpkgs | /pkgs/development/libraries/gettext/gettext-setup-hook.sh | UTF-8 | 178 | 2.765625 | 3 | [
"MIT"
] | permissive | gettextDataDirsHook() {
if [ -d "$1/share/gettext" ]; then
addToSearchPath GETTEXTDATADIRS "$1/share/gettext"
fi
}
addEnvHooks "$hostOffset" gettextDataDirsHook
| true |
5d48e4c207e0b46ad26529cd3a6614bd72111387 | Shell | petronny/aur3-mirror | /aquaria-git/PKGBUILD | UTF-8 | 1,299 | 2.84375 | 3 | [] | no_license | # Maintainer: Sam S. <smls75@gmail.com>
pkgname=aquaria-git
pkgver=1.1.3+g406.cccd422
_basever=1.1.3
pkgrel=1
pkgdesc="A 2D fantasy action-adventure game (improved Open Source build of the engine)"
url='http://www.bit-blot.com/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('sdl2' 'openal' 'gcc-libs')
makedepends=('... | true |
d4751ee4bbecab10e1eff4d9cbb922660766a993 | Shell | abelew/cideim_early_leukocyte | /preprocessing/hpgl0241/scripts/fqcst_forward-hpgl0241.sh | UTF-8 | 3,983 | 2.515625 | 3 | [] | no_license | #PBS -V -S /usr/bin/bash -q throughput
#PBS -d /cbcb/nelsayed-scratch/atb/rnaseq_lpanamensis/preprocessing/old/hpgl0241
#PBS -N fqcst_forward-hpgl0241 -l mem=1gb -l walltime=00:10:00 -l ncpus=1
#PBS -o /cbcb/nelsayed-scratch/atb/rnaseq_lpanamensis/preprocessing/old/hpgl0241/outputs/qsub/fqcst_forward-hpgl0241.qsubout -... | true |
a53de52c60e2ff737e8b1644e0992ae156b5334f | Shell | alex-savin/bashio | /lib/homeassistant.sh | UTF-8 | 13,054 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# ==============================================================================
# Community Hass.io Add-ons: Bashio
# Bashio is an bash function library for use with Hass.io add-ons.
#
# It contains a set of commonly used operations and can be used
# to be included in add-on scripts to reduce code ... | true |
4dc15da33383804e49a243f6bbf8ea1027eb7638 | Shell | kswia/Contrail_Kubernetes_AWS_Ansible-Boto | /Demo/contrail-controller-operation.sh | UTF-8 | 3,001 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
clear
read -p "Press [Enter] key to Execute Next Command..."
for i in `seq 1 5`;do echo;done
printf "\e[93mdocker ps | grep contrail\e[0m"
for i in `seq 1 5`;do echo;done
printf "\e[44mThis displays all the Contrail Control Plane Components on the Master\e[0m"
for i in `seq 1 5`;do echo;done
docker p... | true |
3e2cb464d0a4a8773ca114dda31cb70da376b47b | Shell | murad886/test | /login.sh | UTF-8 | 2,344 | 2.6875 | 3 | [] | no_license | #!/bin/bash
printf 'XX XXX\nX) XXX\n'
read GROUP
if [ $GROUP -eq XX]
then
printf 'XX XX-XXX\nX) XX-XXX\nX) XX-XXX\nX) XXX-XXX\nX) XXX-KSA\nX) XXX-XXX\nX) XXX-XXX\nX) XXX-XXX\n'
read NODE_SERVER
case $NODE_SERVER in
XX
sshpass -p 'HXXzyazwzXXXkda' ssh -o StrictHostKeyChecking=no XXX@XXX.XX.XX.XX
... | true |
9bb435d66ac1967a8c1ca75a3e773f1dca39c9bd | Shell | fouqau4/networkManagement | /project1/hostMonitor | UTF-8 | 395 | 3.078125 | 3 | [] | no_license | #!/bin/bash
ip=$1
metric=$2
hold_time=$3
N=$4
mibs="hrSWRunName $metric"
while true
do
topNSW=`snmpwalk -v2c -c public $ip $metric | sort -k4 -nr | sed 's/^.\+\.\([0-9]\+\).\+$/\1/' | head -$N`
i=0
for idx in $topNSW
do
o=$i
o+=' '
i=$(($i+1))
for met in $mibs
do
o+=`snmpget -Oqv -v2c -c public $ip... | true |
ccf0b19d37986349014155d1d4c574f71abbc9f7 | Shell | chriskennedydev/System | /build | UTF-8 | 472 | 3.5625 | 4 | [] | no_license | #!/bin/bash
set -e
build_type=$1
function usage()
{
printf "usage: ./build release || ./build debug || ./build clean\n"
}
if [ -z $build_type ]; then
usage
exit 1
fi
if [ $build_type = "debug" ]; then
gcc -o app \
src/*.c \
-Wall -lSDL2
elif [ $build_type = "release" ]; then
gc... | true |
1a76a6afd800a591bc3420b295831caf8f464a4e | Shell | aleiton/dotfiles | /osx-for-david-refactored.sh | UTF-8 | 3,108 | 2.625 | 3 | [] | no_license | # Ask for the administrator password upfront
sudo -v
# goodbye gatekeeper
sudo spctl --master-disable
###############################################################################
# General UI/UX #
########################################################... | true |
687e6d1f894444a5cda5bfd6e93f64d89114e05f | Shell | Lance52259/markdownlint | /entrypoint.sh | UTF-8 | 1,310 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ -n "$INPUT_VERSION" ]; then
echo "::debug::installing markdownlint-cli ${INPUT_VERSION}"
npm install --global --production "markdownlint-cli@${INPUT_VERSION}"
fi
# Copy the matcher to a shared volume with the host; otherwise "add-matcher"
# can't find it.
if [ "$INPUT_ANNOTATIONS" != "false" ];... | true |
02a66906fb0841970acfc6d920c2e193fada7e8a | Shell | kenmohamed/ue | /src/wrapper/mari.sh | UTF-8 | 162 | 2.65625 | 3 | [] | no_license | mari_path=/opt/Mari1.4v4/bin/MriBin
if [[ $PROJ == "" || $GRP == "" || $ASST == "" ]]; then
echo "Error: uesp before running mari"
exit 0
fi
$mari_path $*
| true |
9e75c8986920daefc671baa879aaa24542b2c4af | Shell | efournier92/digitizer | /_tests/args/verbose_args_tests.bash | UTF-8 | 907 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#----------------
# Name : verbose_args_tests.bash
# Project : digitizer
# Description : Unit test reading arguments for verbose mode
#----------------
source "./_src/args/verbose_args.bash"
test_read_verbose_args_with_no_args() {
local message="It should return false."
local expecte... | true |
907b28abc0ad046d2fbaa6f535181213e8d76cbf | Shell | lshguo/hello-kube | /kube-setup/createWorkerService.sh | UTF-8 | 560 | 2.96875 | 3 | [] | no_license | #! /bin/bash
# kube worker的service创建
# 需要2个配置
API_SERVER="192.168.241.130"
HOSTNAME="192.168.241.130"
if [ $# -eq 2 ];then
API_SERVER="$1"
HOSTNAME="$2"
fi
# 依次为worker的2个服务
sed "s/API_SERVER/$API_SERVER/g" unit/kubelet.service \
| sed "s/HOSTNAME/$HOSTNAME/g" \
> /usr/lib/systemd/system/kubelet.se... | true |
90cefc34f7626f64b5943156e7c39df7f7c8076d | Shell | amisstea/community-operators | /scripts/ci/trigger-community-op-catalog-ci-release.sh | UTF-8 | 2,551 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
NO_OPERATOR=0 #related to ansible-env
INPUT_ENV_SCRIPT=${INPUT_ENV_SCRIPT-"/tmp/vars-op-path"}
scripts/ci/ansible-env release || { echo "Error in preparing operator environment !!! Contact admins."; exit 1; }
source $INPUT_ENV_SCRIPT
if [ "$NO_OPERATOR" -gt "0" ]; then
exit 0 # no need t... | true |
50166cb50387ba18c6dab697bf10685f00b974e3 | Shell | DealerDotCom/gvm-cli | /src/main/bash/gvm-broadcast.sh | UTF-8 | 2,447 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2012 Marco Vermeulen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | true |
5f82a940696b4b1487c72e78deaef34fbfc4c472 | Shell | thoth-station/rapidsai-build | /commands/utils/dumpDockerArgsFromConfig.sh | UTF-8 | 728 | 3.578125 | 4 | [] | no_license | #!/bin/bash
USAGE="
USAGE: $0
"
if (( $# > 0 )); then
echo "${USAGE}"
exit 1
fi
THISDIR=$(dirname $0)
RAPIDSDEVTOOL_DIR=${THISDIR}/../..
source ${THISDIR}/common.sh
#
# awk script processes config file line-by-line.
# Look for a specific section marker, then dump each line encountered
# after it as-is unitl... | true |
82238464c371e74a60986c82bb3614ee219d0410 | Shell | huangweiboy/kuma | /examples/docker-compose/envoy-sidecar-startup.sh | UTF-8 | 513 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# Redirect all traffic into Envoy
/usr/local/bin/istio-iptables.sh -p 15001 -u 1337 -g 1337 -m REDIRECT -b '*' -i '*'
IP=$(hostname --ip-address)
PORT=8080
# Simulate application that accepts HTTP requests and makes outgoing calls
while true ; do nc -l -p ${PORT} -c "curl -i http://mockbi... | true |
aaa90c0d6deabd745c6b6e544241782f48ee2852 | Shell | slaskis/dotfiles | /bash_profile | UTF-8 | 996 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# import the .bashrc
test -f "$HOME/.bashrc" && source "$HOME/.bashrc"
# initialize asdf
test -f "$BREW_PREFIX/opt/asdf/asdf.sh" && source "$BREW_PREFIX/opt/asdf/asdf.sh"
# initialize direnv
command -v direnv > /dev/null && eval "$(direnv hook bash)"
# bash completions
test -f "$BREW_PREFIX/etc/bash_com... | true |
039ed97a6193e50a107c3c37e2f91131b7e07c15 | Shell | charlieporth1/ubuntu-scripts | /prog/test_doq.sh | UTF-8 | 1,848 | 3.15625 | 3 | [] | no_license | #!/bin/bash
source $PROG/test_dns_args.sh
CONCURRENT
dns_logger "Running DoQ TEST"
# qdig -server dns.ctptech.dev:784 -dnssec -recursion dns.ctptech.dev A
if ! command -v qdig &> /dev/null
then
echo "COMMAND qdig could not be found"
exit
fi
if ! command -v q &> /dev/null
then
echo "COMMAND q could not be fo... | true |
70d8394a45ddd6a3cc56189dbdced6a17a54cbf2 | Shell | raevskymichail/CRNDE_glioblastoma | /utils/retrieve_exp_bam.sh | UTF-8 | 559 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
EXP_DIR="/media/large/volume3/processed_RNAseq_s/2020-12-14"
SAMPLES_LIST="/home/mraevsky/LTS_vs_STS_manuscript/Slovenia_RNAseq_samples.txt"
DOWNLOAD_DIR="/home/mraevsky/LTS_vs_STS_manuscript/exp_data_bam"
mkdir -p $DOWNLOAD_DIR
while IFS="" read -r sample; do
echo "$(date) - Processing $sampl... | true |
0f9e24fdc637906ab1d6d13b7acfc5d044da1a9c | Shell | Riliumph/bash | /INSTALL.bash | UTF-8 | 609 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
###
# Convert to absolute path
# @param $1 path
# @return absolute path
abs_dirname()
{
local path="$1"
# Check path existence one by one
while [ -n "$path" ]; do
# Remove the shortest pattern(/*) from right
builtin cd "${path%/*}" || exit
# Remove the longest pattern(*/) from left
l... | true |
4d33c73a0a9b84cecce7f92c833ad76cb546dfcb | Shell | justaboredkid/simple-railway-game | /test.sh | UTF-8 | 147 | 2.515625 | 3 | [
"MIT"
] | permissive | python_test() {
if python3 testing.py 2>&1 = 0; then
echo success!
else
exit 1
fi
}
python_test
cython main.py
echo 'exit code' $?
| true |
15cd6f03d38d6f28b84f6e5bddb09d7521acc8ae | Shell | HPCBio/Mayo-Variant-Calling | /hard_filtering.sh | UTF-8 | 1,597 | 2.625 | 3 | [] | no_license | #!/bin/bash
#SBATCH -n 1
#SBATCH --mem 16g
#SBATCH -A Mayo_Workshop
#SBATCH -J GATK-Filtering
#SBATCH -o GATK-Filtering.%j.out
#SBATCH -e GATK-Filtering.%j.err
#SBATCH -p classroom
# load the tool environment
module load GATK/3.8-1-0-Java-1.8.0_152
# set some shortcuts...
# reference genome
export BUNDLE_HOME=/home/c... | true |
21bff652d83b195ca97ed0f64303a728a352a561 | Shell | netconstructor/vip-access | /vip-access.sh | UTF-8 | 1,140 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# VIP Access Security Code to Clipboard ( simplified shell script )
# Jason Godsey
# Based on expect script by Aaron Meriwether https://gist.github.com/p120ph37/8213727
# I bind this to option+command+v, so I can simply type my password and press option+command+v, command+v to enter my token when needed.
... | true |
982bb019150f571b0c13a7eb73505df49f5124bd | Shell | toulousain79/MySB | /inc/funcs_by_script/funcs_MySB_SecurityRules | UTF-8 | 16,086 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ----------------------------------
# __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___
# _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_
# _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_
# _\/\\\\///\\\/\\\/_\/\\\___\... | true |
fcc4369e13aa497e129d794bcdd88fab9434bb85 | Shell | saimn/dotfiles | /zsh/completion.zsh | UTF-8 | 2,674 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env zsh
# {{{ Completion
# My functions (don't forget to modify fpath before call compinit !!)
# fpath=($HOME/.zsh/functions $fpath)
# setopt auto_list auto_menu # Complétion
# setopt always_to_end # move to cursor to the end after completion
# setopt completeinword # not just at the end
# ... | true |
9cd33742152c377af71272ea81ebf21aee0d59ac | Shell | mildred/backup-next | /drivers/duplicity | UTF-8 | 2,301 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
. "$BACKUP_DRIVER_DIR/duplicity.conf"
set +e
: ${AUTO_PRUNE:=false}
: ${AUTO_PRUNE_DELAY:=1W}
: ${FULL_BACKUP_PERIOD:=$AUTO_PRUNE_DELAY}
get_destdir(){
destdir="${1#/}"; destdir="${destdir%/}"; destdir="${destdir//\//-}"
}
print_args(){
while [[ $# -gt 0 ]]; do
if [[ "$1" == "${1//... | true |
26ee9824d2451b5d7baafa1f7a384c81c502d222 | Shell | wikiespirita/wikiespirita-site | /deploy.sh | UTF-8 | 743 | 3.421875 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash -e
#
# CI for GitHub Pages using CircleCI
#
# Exit on Error
set -e
# Variables
DIST_FOLDER=site
REMOTE_GIT_REPO=git@github.com:wikiespirita/wikiespirita-site.git
LAST_COMMIT_MESSAGE=$(git log -1 --pretty=%B)
# Build Application
yarn run --silent build
#npm run build
if [ "$(git status --porcelain | wc ... | true |
dbf3f270c630cc3fde0aab45a84ac9f28a04834f | Shell | gen0205/dotfiles | /.zshrc | UTF-8 | 11,689 | 3.140625 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... | true |
5d71a16db4405f96ab24b5909eb7cf1585725707 | Shell | wangshuwei1974/test | /getoption.sh | UTF-8 | 428 | 3.453125 | 3 | [] | no_license | #!/bin/bash
echo "$*:$# arguments"
while getopts ":a:bcde" opt
do
case $opt in
a)
echo "option a is set:${OPTARG};in position ${OPTIND}"
;;
b)
echo "option b is set, in position ${OPTIND}"
;;
c)
echo "option c is set, in position ${OPTIND}"
;;
"?")
echo "unrecognized option $opt , error, exit"
;;
*)
ec... | true |
7ad4d0fac8dda39a0a42e4cd7dc5a63ab37408da | Shell | Adaptavist/puppet-replication | /templates/sync_db.sh.erb | UTF-8 | 1,841 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
DBHOST='<%= @from_server%>'
DBPORT='<%= @from_port%>'
TO_DBHOST='<%= @to_server%>'
TO_DBPORT='<%= @to_port%>'
DUMP_USERNAME='<%= @dump_user %>'
DUMP_PASSWORD='<%= @dump_password %>'
LOCAL_DUMP_USERNAME='<%= @to_server_user %>'
LOCAL_DUMP_PASSWORD='<%= @to_server_password %>'
REPLICA_USERNAME='<%= @r... | true |
79f81b65aeb2969e25a938e4dd213803bbc0b04c | Shell | eastgeneral2007/h264enc | /sim/top_testbench/vsim.run | UTF-8 | 412 | 2.671875 | 3 | [] | no_license | #!/bin/bash
uname -a | grep -i linux
if [ $? -eq 0 ]
then
export NOVAS_LIB=/eda/spring/verdi201004/share/PLI/MODELSIM/LINUX/novas_fli.so
fi
uname -a | grep -i cygwin
if [ $? -eq 0 ]
then
export NOVAS_LIB=C:/EDA/Novas/Debussy/share/PLI/modelsim_pli/WINNT/novas.dll
fi
echo "`sed '/set[ \t]NOVAS_LIB/'d sim.do`" > s... | true |
7bccfc815da21eea84b6af3f607d491dc0fc24a8 | Shell | meyakovenkoj/Assembler | /lab7/asm.sh | UTF-8 | 2,356 | 4.5 | 4 | [] | no_license | #!/bin/bash
# ------------------------------------------------------------- #
# asm.sh v1.1 (c) 2017 Gaetano Causio #
# #
# Script to compile, link and run an assembly program #
# ... | true |
f8703f6f707878679978b60cd218136e04e38c15 | Shell | dragontt/proj_fire_inference | /script/run_tomtom/motifcomparison_znclus.sh | UTF-8 | 910 | 3.25 | 3 | [] | no_license | #! /bin/bash
# bash motifcomparison_znclus.sh [AG][AC]GATA[AC]G[ACG] YER040W
MOTIF=$1 # infered motif string
FN=$2 # tf name
USE_YETFASCO=$3 # use YeTFaSCo as complement of ScerTF
dir_data=$HOME/proj_motifinference/resources/yeast/validation/ChIP_data_znclus
dir_pfm_scertf=$HOME/proj_motifinference/resources/scert... | true |
d46c6be86241236c7f8cd89e88392d1c0de58637 | Shell | crawsible/lattice-ci | /tasks/compile-lattice-tar/run.sh | UTF-8 | 1,089 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
LATTICE_DIR=$PWD/lattice
LATTICE_VERSION=$(git -C $LATTICE_DIR describe --tags --always)
DIEGO_VERSION=$(cat $LATTICE_DIR/DIEGO_VERSION)
GARDEN_LINUX_VERSION=$(cat $LATTICE_DIR/GARDEN_LINUX_VERSION)
CF_VERSION=$(cat $LATTICE_DIR/CF_VERSION)
ROUTING_VERSION=$(cat $LATTICE_DIR/ROUTING_VERSION)
if ... | true |
50ff51df18f7b2ba9a6e60a8e35794e820196622 | Shell | cyberlooper/OpenFLIXR2.SetupScript | /.scripts/fixes_permissions.sh | UTF-8 | 3,433 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
fixes_permissions()
{
info "Permissions fixes"
if groups root | grep &>/dev/null '\openflixr\b'; then
info "- 'root' is already part of the 'openflixr' group!"
else
info "- Adding 'root' user to 'openflixr' group"
usermod -a -G openf... | true |
8fbee15306c58cabc2769304c46f44c9089332bf | Shell | weaming/backup_data | /tarsafe.sh | UTF-8 | 203 | 3 | 3 | [] | no_license | # tar safely with a password (http://www.ha97.com/5114.html)
function tarsafe(){
tar -zcvf - $1 | openssl des3 -salt -k $3 | dd of=$2
}
function xtar(){
dd if=$1 | openssl des3 -d | tar zxf -
}
| true |
7975eae4435a86a173881d385b59faf7244b8a97 | Shell | AastaNV/JEP | /script/install_opencv4.5.0_Jetson.sh | UTF-8 | 1,989 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this so... | true |
66ad73cf555e86d40e7107d10554d5c99dfa8f2e | Shell | DaoCloud/ci-images | /build.sh | UTF-8 | 1,632 | 2.609375 | 3 | [] | no_license | #!/bin/bash -e
### services
docker build -t daocloud/ci-mysql:5.5 service/mysql/5.5
docker build -t daocloud/ci-redis:2.6 service/redis/2.6
docker build -t daocloud/ci-redis:2.8 service/redis/2.8
docker build -t daocloud/ci-redis:3.0 service/redis/3.0
docker build -t daocloud/ci-mongodb:2.2 service/mongodb/2.2
docker ... | true |
e920ec98626b581ca858ea0429eacb6183e23bd5 | Shell | neutron37/lappybootstrappy | /src/macos_install.sh | UTF-8 | 1,818 | 3.515625 | 4 | [] | no_license | #!/bin/bash
##################################################################
##################################################################
# START bashlib include boilerplate. #
# See https://github.com/neutron37/bashlib/blob/master/README.md #
#######################################... | true |
f124db053be10969c4e8bf39bae71f041370ba36 | Shell | erikw/vimomap | /vimomap.sh | UTF-8 | 3,811 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# This script will set sane input methods, kblayout and bindings suiting Erik Westrup.
# Usage: according to src below.
kblayout_def=us
kblayout_alt=se
xmodmap_path=./.Xmodmap
my_vim_tar=./vim.tar.gz
state_file=states.txt
declare -A states
state_read() {
if [ ! -e $state_file ]; then return 1; fi
whil... | true |
0eec347c0404c41679bcbac76b044b9538cfd92e | Shell | agronholm/sample-c-extension | /.ci/build_macos_wheels.sh | UTF-8 | 287 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
brew update
brew outdated pyenv || brew upgrade pyenv
export PATH=~/.pyenv/shims:$PATH
for PYVER in "2.7.14" "3.4.7" "3.5.4" "3.6.3"; do
pyenv install ${PYVER}
pyenv global ${PYVER}
python -m pip install Cython wheel
python setup.py bdist_wheel
done
| true |
2d25895f0268cec2a39ee9edb4edea6ced99595e | Shell | ForeroAlexander/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/3-until_holberton_school | UTF-8 | 132 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
#Display Holberton School 10 times
i=0
until [ $i -gt 9 ];
do
echo "Holberton School";
(( i++ ))
done
| true |
f4194c5b4cb3ae9996b157377cdd221328034602 | Shell | clarisseth/lambda-tensorflow-benchmark | /collect_sys_info.sh | UTF-8 | 498 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Get info about your system
printf "Distribution level\n"
lsb_release -a
printf "\n"
printf "Kernel level\n"
uname -r
printf "\n"
printf "Tensorflow version\n"
conda list | grep tensorflow-gpu
printf "\n"
printf "WML-CE version\n"
conda list | grep powerai-release
printf "\n"
printf "CUDA version\n"
# nvcc... | true |
087ea745346d20b29cf478e02c4d497d0895de53 | Shell | duckimann/tempaste | /bash/bt_mon.sh | UTF-8 | 1,815 | 3.296875 | 3 | [] | no_license | #!/bin/bash
sudo bluetoothctl power on;
sudo bluetoothctl pairable on;
sudo bluetoothctl discoverable on;
# amixer set Headphone 100%;
TABLE=""; # Allowed Bluetooth MAC Addr here
LT="";
while true; do
CONNECTED=$(hcitool con | grep -o "[[:xdigit:]:]\{8,17\}");
CURR_BRT=$(grep cd /etc/bt_speaker/config.ini);
if [[... | true |
5cb8f6b151897486faacd3b9fcd291f7977fe413 | Shell | hans1/geeps | /sfs/usr/sbin/nouveau_unload | UTF-8 | 2,935 | 3.515625 | 4 | [] | no_license | #!/bin/sh
#License GPL3 (refer: /usr/share/doc/legal).
#01micko: helper script to unload nouveau
#120329 convert t12s to gettext internationalization.
#120329 Xdialog bug --yesno supposed to "yes" "No" buttons, but they are "OK" "Cancel".
export TEXTDOMAIN=nouveau_unload
export OUTPUT_CHARSET=UTF-8
Yes_lbl="$(gettext... | true |
c39b2482c45eedb253b0de2a5f8c3f708c51eef7 | Shell | cmaitchison/git_diet | /spec/fixture.sh | UTF-8 | 220 | 2.703125 | 3 | [] | no_license | #!/bin/bash
set -e
[ -x spec/test-repo ] && rm -rf spec/test-repo
(
mkdir spec/test-repo
cd spec/test-repo
git init --quiet
cat ../test-repo.gz | gunzip | git fast-import --quiet
git checkout --quiet master
) | true |
513637a30cc7f683fa2553aec85abf499ccd81d3 | Shell | ahopgood/Bash-Examples | /getopts-parameters.sh | UTF-8 | 417 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env bash
while getopts hv:f: FLAG; do
case $FLAG in
h)
echo "HELP! This parameter doesn't require a value."
;;
v)
echo "This parameter requires a argument "$OPTARG
;;
f)
echo "This parameter accepts a list of arguments "$OPTARG
... | true |
a4020d2a6e9df9e548a8ff4156d41ee102d4984c | Shell | shalev19/marathon-matam-2019-semester-b | /12.sh | UTF-8 | 406 | 3.828125 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: ./12.sh <file>"
exit 1
fi
output=""
while read first_name last_name grades; do
sum=0
num_grades=0
for grade in $grades; do
sum=`echo $sum + $grade | bc`
let num_grades++
done
average=`echo "scale=2;$sum/$num_grades" | bc`
... | true |
62bd5fd629954ca112f3d6a64b22e5fd396aff03 | Shell | pviolette3/jamstacks | /genjsprotos.sh | UTF-8 | 421 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# See if pbjs compiler is installed.
command -v pbjs 2>&1 > /dev/null || npm install -g protobufjs@6.8.0
# Add a call to factory(protobuf) to get the lib in protobuf.roots.default.jam.
pbjs proto/card.proto proto/hand_state.proto proto/game_state.proto -t static-module \
| sed 's%factory(require("protobufj... | true |
8f9426827c705e61ce2e95b81af7dca89d556fda | Shell | andrewalker/rules_perl | /internal/runfiles.tmpl | UTF-8 | 577 | 3.171875 | 3 | [] | no_license | #!/bin/bash -eu
abs_binary="$0"
if [[ ! "$abs_binary" == /* ]]; then
abs_binary=$(pwd)/"$abs_binary"
fi
abs_binary="${abs_binary%.runfiles/*}"
while true; do
if [[ -d "$abs_binary".runfiles ]] || [[ ! -L "$abs_binary" ]]; then
break
fi
link_target=$(/bin/readlink "$abs_binary")
if [[ "$link_... | true |
e6bc650a3e977be0314a792975bd13893fe9d1ed | Shell | MythosCapital/cosmos-scripts | /gaia/monitor-gaia.sh | UTF-8 | 161 | 2.8125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #/bin/bash
nc -z localhost 46656
P46656=$?
nc -z localhost 46657
P46657=$?
if [ $P46656 -ne 0 ] || [ $P46657 -ne 0 ];
then
systemctl restart gaia.service
fi
| true |
f6426e5d2d331ffc5638b61354b32cfcd5512832 | Shell | swift-lang/swift-work | /ddio/profile-stop.sh | UTF-8 | 268 | 2.875 | 3 | [] | no_license | STOP=$( date +%s.%N )
DURATION=$(( STOP - START ))
TOTAL=$(( ITRNS * BYTES ))
MBPS="infty"
if (( DURATION > 0 ))
then
MB=$(( 1024 * 1024 ))
MBPS=$(( TOTAL / DURATION / MB ))
fi
print "TOTAL: $TOTAL"
printf "TIME: %0.3f\n" $DURATION
printf "MBPS: %0.3f\n" $MBPS
| true |
02fe1ea178006755d3c6e14364259e18a4ae5a15 | Shell | Ronweld/cal | /mcal1 | ISO-8859-1 | 2,832 | 4.125 | 4 | [] | no_license | #!/bin/bash
#Constantes de exit.
E_NOOP=21
E_NOYEAR=22
E_NOMES=23
E_MASDOS=24
#El SCRIPT.
MI_SCRIPT=`basename $0`
#Variables de apoyo.
mes=0
anno=0
#Algunas funciones de ayuda.
ayuda() {
echo ""
echo "El uso es $MI_SCRIPT -h|-help para ver esta pantalla."
echo ""
echo "O bien $MI_SCRIPT [mes] [ao]."
echo ""
e... | true |
5f4bf55c686a4882f3a596820b21ea2afb023473 | Shell | b23prodtm/balena-sound | /bluetooth-audio/initsystem/scripts/run.sh | UTF-8 | 681 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# ENTRYPOINT https://www.balena.io/docs/reference/base-images/base-images/#how-the-images-work-at-runtime
# Check OS we are running on. NetworkManager only works on Linux.
if [[ "$OSTYPE" != "linux"* ]]; then
echo "ERROR: This application only runs on Linux."
exit 1
fi
# Save the path to ... | true |
2824aea7d08c47fa2f5bcd4eabb70faa2be98c96 | Shell | renanmartins/dotfiles | /symlinks/.zshrc | UTF-8 | 626 | 2.671875 | 3 | [] | no_license | # Aliases
source ~/.antigen/antigen.zsh
#
# # Load the oh-my-zsh's library.
antigen use oh-my-zsh
#
# # Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle pip
antigen bundle command-not-found
antigen bundle node
antigen bundle python
antigen bundle history
#
# # Syntax highligh... | true |
d98fad0c4e6759f1f608657f9ad080f9240ee228 | Shell | Ema93sh/pdx | /tasks/test_treasure_hunt_decompose.sh | UTF-8 | 625 | 2.78125 | 3 | [] | no_license | echo "Running treasure hunt"
if [ -z "$1" ]
then
echo "Requires arg load path"
exit 0
fi
if [ -z "$2" ]
then
echo "Requires arg sleep time (0 for wait every step)"
exit 0
fi
python3 -u main.py --env TreasureHunter \
--decompose \
--log-interval 1 \
... | true |
2f9927f259bc4b61a2801642e89504ad9555684b | Shell | pvdklei/thesis | /bench.sh | UTF-8 | 859 | 3.25 | 3 | [] | no_license | res=results.csv
if [ -f $res ]; then
while true; do
read -p "$res already exists, should I remove it? " yn
case $yn in
[Yy]*) rm results.csv; break;;
[Nn]*) echo "Exiting..."; exit;;
*) echo "Answer yes or no please";;
esac
done
fi
for file in shaders/nm_*.glsl; do
v="null"
case $file in
*nm_rot... | true |
7e0a6d8dc9d5d4ac316c22a06b8d4adc890948e0 | Shell | akoeabi/.sh | /eggdrop-1.8.4.sh | UTF-8 | 1,113 | 2.859375 | 3 | [] | no_license | #!/bin/bash
echo ""
echo "AssaLamuaLaikum WarahmatuLLah"
echo "Automated Enggdrop builder!"
echo ""
echo "Script ini akan membantu anda melakukan instalasi Enggdrop dengan cepat"
echo "Proses instalasi akan memakan waktu beberapa saat. Jadi mohon di tunggu sampai prosesnya selesai"
echo "ada pertanyaan, silahkan menghu... | true |
6daa87a514834464a725260832011638a28ba0db | Shell | rickgennis/basics | /db_dump_individuals.sh | UTF-8 | 2,952 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#
# {ansible managed - do not edit}
#
# MySQL dump script, must be run as user 'mysql'
#
# Delete mysql dumpfiles older than {4} days.
# Dump all databases individually, then compress them.
HOST=`hostname -s`
SCRIPT=`/usr/bin/basename $0`
LOG="/usr/bin/logger -t $SCRIPT"
DATESTAMP=`/bin/date +"%m%d"`
TMP=/... | true |
84885e0d44f71cd94fe214d32643a194df8d51a7 | Shell | abijith-kp/shell_scripts | /spell_checker.sh | UTF-8 | 792 | 3.53125 | 4 | [] | no_license | #!/bin/bash
dictionary="dictionary"
word=$1
if [ ! -f $dictionary ]
then
echo ""ERROR: no dictionary file found....
exit
fi
a=`cat dictionary`
#a=($a)
length=${#word}
len=$length
char=""
if test $len -eq 1
then
output=`cat dictionary | grep --word -i $word`
if test ${#output} -eq 0
then
output=`cat dicti... | true |
ca9d4c77fdb213c012216be668f384b17a0675c5 | Shell | cptac3-cdap/cptac-galaxy | /organize1.sh | UTF-8 | 1,090 | 3.78125 | 4 | [] | no_license | #!/bin/sh
if [ "$3" = "" ]; then
echo "Usage: $0 <dsname> <base> <dest> <files...>" 1>&2
exit 1
fi
NAME="$1"
BASE="$2"
DEST="$3"
shift; shift; shift;
DEST=`basename "$DEST"`
MZML="$BASE/mzML/$DEST"
MZID="$BASE/mzIdentML/$DEST"
PSM="$BASE/PSM.tsv/$DEST"
SUMM="$BASE/SummaryReports"
QCMETRICS="$SUMM/$NAME.qcmetrics... | true |
485d068d8cf58009f73823447988c663d6c47271 | Shell | upedrojp/lista1 | /questao10/q10.sh | UTF-8 | 113 | 2.640625 | 3 | [] | no_license | #!/bin/bash
A=$1
B=$2
C=$( echo "$A + 1" | bc)
D=$( echo "$B - 1" | bc)
res=$(echo "$C * $D" | bc)
echo ${res}
| true |
64bbea5f8ee95f12ae013cee6f114533b98f9ea5 | Shell | fenicorp/appeal-planning-decision | /infrastructure/scripts/lockResourceGroups.sh | UTF-8 | 1,221 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
ACTION="${1}" # Can be either "lock" or "unlock"
ENV_NAME="${2}"
APP_NAME="${3}"
LOCK_NAME="SYSTEM_LOCK"
echo "Apply ${ACTION} command for app=${APP_NAME} and env=${ENV_NAME}"
groupList=$(az group list | jq \
--arg APP_NAME "${APP_NAME}" \
--arg ENV_NAME "${ENV_NAME}" \
'map(select... | true |
8875ae05444883ce74d7aa8f9246b55c1ca38a57 | Shell | kriansa/devops-tools | /deploy-tools/simple-ansible-provision | UTF-8 | 1,260 | 4.4375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
#
# This is a small wrapper around ansible-playbook that will wait until the host is up before running
# the playbook called `server.yml` on a single server.
# Also, it will download all dependencies that are listed on the `requirements.yml` file, if it
# exists.
#
# Usage: simple-ansible-provision... | true |
8d7942208ad02f96fe4a50034353b8d88daf31b0 | Shell | Niols/gra.sh | /gra.sh | UTF-8 | 6,960 | 3.203125 | 3 | [] | no_license | ################################################################################
## .__ ##
## ____ _______ _____ ______| |__ ##
## / ___\\_ __ \\__ \ / ___/| | \ ... | true |
8fb04a57f42f69787b9967d433d0b6af914619c0 | Shell | joeblackwaslike/docker-geth | /images/geth/swarm-wrap | UTF-8 | 2,652 | 3.25 | 3 | [] | no_license | #!/bin/bash -l
set -e
[[ $DEBUG == true ]] && set -x
: readonly ${SWARM_IPC_PATH:=$HOME/.ethereum/bzzd.ipc}
: readonly ${SWARM_CORS:=\'*\'}
: readonly ${ETH_API_URL:=ws://geth:8546}
if [[ -a $HOME/.ethereum/geth.ipc ]]; then
: readonly ${SWARM_ENS_API:=$HOME/.ethereum/geth.ipc}
else
: readonly ${SWARM_ENS_AP... | true |
589eda899be9743a67e1ae6f4fe2735f7ee7c36d | Shell | greatgauss/linuxtools | /tshark_extract_by_frame_number | UTF-8 | 308 | 3.734375 | 4 | [] | no_license | #!/bin/sh
usage()
{
echo "tshark: extract packets by frame number" >&2
echo "Usage: $(basename $0) [begin] [end] [pcapfile]" >&2
exit 1
}
if [ $# -ne 3 ];then
usage
fi
PCAPFILE=$3
tshark -r $PCAPFILE -w $PCAPFILE.$1-$2.pcap -Y "frame.number >= $1 && frame.number <= $2"
| true |
b0ff8df64fa57723cfed4b1dc66f2876bdb875ff | Shell | littlemole/kafkaphp | /kafka/docker/ip.sh | UTF-8 | 138 | 2.734375 | 3 | [] | no_license | #!/bin/bash
HOST_IP=$(sudo ifconfig docker0 | grep -oh "inet addr:[0-9.]*" | sed 's/inet addr://' | sed 's/[\s]*//')
echo -n $HOST_IP
| true |
b742bcc10bb43bf72833fceb83f86aa0cd086520 | Shell | redhatedu/course | /operation/lnmp_soft/install_lnmp.sh | UTF-8 | 5,948 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#Data:2017-03-13
#Version:3.0
#Author:Jacob(418146150@qq.com)
#The software list:Nginx,MySQL,PHP,Memcached,memcache for php,Tomcat,Java.
#This script can automatically install all software on your machine.
#For RHEL7 version
#Define default variables, you can modify the value.
nginx_version=nginx-1.8.0
for... | true |
4a434a47d2d46d2b82fb1d6a828c47dd2a796d09 | Shell | techknowledgist/techknowledgist | /ontology/roles/growth2uc.sh | UTF-8 | 1,065 | 3.1875 | 3 | [] | no_license | # growth2uc.sh
# Use the growth files to generate unique count files for the cohort terms
# sh growth2uc.sh ln-us-cs-500k 1998 "b1 b2 b3 c1 c2 c3"
# sh growth2uc.sh ln-us-cs-500k 1998 "c3 c2 c1 b3 b2 b1
# After running, post-process to get out top terms in a given year as features
# cat 1998.growth.c3 | cut -f1,3 | s... | true |
a033f0afd65aacae6706d6414dfb564b28b414ea | Shell | SaintShaggy/wwiv | /cmake-config.sh | UTF-8 | 1,362 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# WWIV Version 5.x
# Copyright (C)2014-2022, WWIV Software Services
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | true |
1d80b218cff69888b19e5d4fa20c76798e5a26a7 | Shell | davvy10/testing.academy | /bin/chsh.sh | UTF-8 | 591 | 3.828125 | 4 | [] | no_license | #!/bin/bash
echo "Changing shell for" $USER
read -p "New shell [$SHELL]: " ANSWER
if [[ ! -n $ANSWER ]]; then
exit 0
fi
if [[ ! $ANSWER =~ ^/.+ ]]; then
echo "chsh.sh: shell must be a full path name" 1>&2
exit 1
fi
if [[ ! -e $ANSWER ]]; then
echo "chsh.sh: \"$ANSWER\" does not ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.