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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d825be9e502895a57935d0a084c8c7d04cda6e13 | Shell | ryeo/android-websocket-client | /test_node_server/cert/create_cert.sh | UTF-8 | 311 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
FILE_KEY=privkey.pem
FILE_CERT=cacert.pem
DAYS=365
# Generates private key without password protection
# openssl can derive the public key from the private key
openssl genrsa -out $FILE_KEY 2048
# Creates self-signed certificate
openssl req -new -x509 -days $DAYS -key $FILE_KEY -out $FILE_CERT
| true |
4f2c5176dfe1850fc24edcdbef0f6edd5847585c | Shell | robertpeters9/tde-packaging | /mandriva/2010.2/kdenetwork/kdenetwork-lisa | UTF-8 | 3,402 | 3.5625 | 4 | [] | no_license | #!/bin/sh
#
# Startup script for LISa
#
# chkconfig: 345 92 8
# description: Starts and stops the LAN Information Server used \
# to provide a LAN browser.
# processname: lisa
#
# based on rclisa Version 0.1
# 2001 by Marcus Thiesen (marcus@thiesenweb.de) for SuSE Linux 7.1
# This is free and comes with ab... | true |
aa37d1d62d45d6b78e3b74be74da6a39c2167c58 | Shell | ludovicocaldara/racattack-vagrant | /OracleLinux/racattack12cR1/stagefiles/named_slave.sh | UTF-8 | 3,579 | 3.09375 | 3 | [] | no_license | # I need to change and include the following parameters:
# 1. cl_prefix
# 2. cl_domain (instead of racattack)
# 3. public_lan
# 4. private_lan
# 5. hub count
# 6. hub starting count (51)
# 7. vip starting count (61)
# 8. leaf count
# 9. leaf starting count (81)
# 10. app count
# 12. scan count
# 11. app starting count ... | true |
17eee9efb07c199195f977d7def224d2fa605de1 | Shell | ibis-project/docker-kudu | /bin/start-kudu.sh | UTF-8 | 690 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ "$KUDU_MASTER" = "true" ]]; then
supervisorctl start kudu-master
fi
/wait-for-it.sh kudu:7051 -t 120
/wait-for-it.sh kudu:8051 -t 120
rc=$?
if [ $rc -ne 0 ]; then
echo -e "\n----------------------------------------"
echo -e " Kudu Master not ready! Exiting..."
echo -e "-------------... | true |
44c85508375fdec6d61100092ae1a2c5ed804afc | Shell | tebeka/pythonwise | /mk | UTF-8 | 499 | 3.453125 | 3 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-gutenberg-2020"
] | permissive | #!/bin/bash
# Guess which make utility to use
# Miki Tebeka <miki@mikitebeka.com>
makecmd=""
if [ -f SConstruct ]; then
makecmd="scons -Q -D"
elif [ -f build.xml ]; then
makecmd="ant"
elif [ -f Makefile ]; then
makecmd="make"
elif [ -f makefile ]; then
makecmd="make"
elif [ "$OSTYPE" == "WINNT" ]; the... | true |
bdb2eb1d3ce315cb90f9a846918953a798827bb5 | Shell | hibohiboo/develop | /tutorial/lesson/webpack/webpack4/bin/elm/build-js-test.sh | UTF-8 | 591 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# このシェルスクリプトのディレクトリの絶対パスを取得。
bin_dir=$(cd $(dirname $0) && pwd)
name=${1:-webpacks}
dir_docker="$bin_dir/../../docker"
inputFile="/app/src/assets/elm/Page1.elm"
outputFile="/app/src/assets/elm/Page1.js"
cd $dir_docker && docker-compose run $name /bin/bash -c yarn run elm make $inputFile --output=$outputF... | true |
7ea1213ffee1cc3fbd06de3ff54b637be998b60f | Shell | jtaby/dotfiles | /zsh.conf/lib/functions.zsh | UTF-8 | 673 | 3.953125 | 4 | [] | no_license | # I could never remember the arguments for tar
function compress() {
tar cvzf $1.tar.gz $1
}
function uncompress() {
if [ -d "$2" ]; then
tar xvzf $1 -C $2
else
mkdir $2
tar xvzf $1 -C $2
fi
}
# Make vim ask for sudo password if I try to open a
# privileged file
function vim {
LIMIT=$#
... | true |
0e20cbc727a4c222863a48e2648a893971ac51e8 | Shell | gusman/eudyptula-task | /qemu.sh | UTF-8 | 705 | 2.53125 | 3 | [] | no_license | #!/bin/sh
KERNEL=$KERNEL_BUILD/arch/$ARCH/boot/bzImage
#KERNEL=/boot/vmlinuz-3.16.0-57-generic
ROOTFS=$BUILDROOT_BUILD/images/rootfs.ext4
RAMSZ=128
#QEMU_EMULATOR=qemu-system-i386
QEMU_EMULATOR=qemu-system-x86_64
sudo $QEMU_EMULATOR \
-kernel $KERNEL \
-hda $ROOTFS \
-boot c -m $RAMSZ \
-localtime -no... | true |
dfc359fea8a3878341748e9d350af91a5b96180d | Shell | JankoMat/dnscheck | /dnscheck.sh | UTF-8 | 645 | 3.078125 | 3 | [] | no_license | #! /bin/bash
domain=${1}
echo
echo "---------Direct results, propagation not considered---------"
ns=$(whois $domain | grep -i "name server" | cut -d : -f 2 | awk '{print $1}' | head -1)
echo "Nameserver:"
echo $ns
command dig @$ns $ns +short
echo "A record:"
command dig @$ns $domain +short
echo "www:"
command dig @$ns... | true |
520d1a056d7f5df833bfec9453753bb77bae24aa | Shell | rogeliog/dotfiles | /.bashrc | UTF-8 | 3,327 | 3.25 | 3 | [] | no_license | alias g="git"
# ------------------------------------------------------------------------------
# Reload current shell
# ------------------------------------------------------------------------------
alias rl="source ~/.zshrc"
# ------------------------------------------------------------------------------
# Use nvim
#... | true |
032274a93a23da0f15d739d9643fa076088dbc7f | Shell | griesik/ASDiPSCTranscriptome | /ASDiPSCTranscriptome/SCRIPTS/tophat2.sh | UTF-8 | 475 | 2.90625 | 3 | [] | no_license | #!/bin/bash
### MAPEAMENTO (Tophat2, hg19) ###
mkdir ~/results_tophat2/
cd ~/Fastqs/
nome1="a"
nome_old="b"
for i in $(ls); do
nome1=$(echo "$i" | cut -d "." -f 1)
if [ "$nome1" == "$nome_old" ]
then
tophat2 -p 40 -o ~/results_tophat2/$nome1\_out --transcriptome-index=~/databases/gencode.v19/gencode.v19.annotation ... | true |
e255278f90d19170f9b2ad28f26c38daa8002722 | Shell | DanielFloripa/init-scripts | /syncHD2.sh | UTF-8 | 1,887 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# Script para backup via SSH usando o rsync
# Versão 0.1http://organelas.com/2009/08/07/shell-script-para-backup-usando-rsync-e-ssh-em-dhcp-no-ubuntu/
## Configuração!!! ##
# Mude os parâmetros abaixo, referentes ao seu sistema
# Destino: IP ou hostname da máquina de destino
ORIGEM1=("/dev/sdb1","/media... | true |
1cf920c360331815718519eda72fe7c5e6dba117 | Shell | guidohu/booksys | /Docker/booksys_dummy_db/anonymize_dump.sh | UTF-8 | 6,010 | 3.90625 | 4 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
OPTIND=1 # Reset in case getopts has been used previously in the shell.
# Initialize our own variables:
input_file=""
output_file=""
verbose=0
show_help() {
cat << 'EOF'
usage: $0 [-hv] -i <input_file> -o <output_file>
OPTIONS:
-h display this help
-v run in... | true |
cc166fd25c901f115cfd5fa6f978d78a88f47423 | Shell | goog-lu/shell | /shell_study-master/restudy/6.review.sh | UTF-8 | 283 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Author: bavduer
# Email: bavduer@163.com
# Date: 2019/03/25
# Usage: case.
read -p "" var
case $var in
1)
pass;
;;
2)
pass;
;;
3)
pass;
;;
*)
printf "Please redo your choose.\n"
printf "Input True: 1 or 2 or 3.\n"
;;
esac
| true |
08119ff17d5d0662011e5af2dfb1f06e1f55217e | Shell | palmer-dabbelt/libflo | /test/flo-stat/harness.bash | UTF-8 | 1,731 | 3.5625 | 4 | [] | no_license | export LC_ALL="C"
if [[ "$TEST" == "" ]]
then
TEST="test"
fi
#############################################################################
# Check if we need to generate a Flo file #
#############################################################################
if test -f $TEST.sc... | true |
4ee89be9c68fcb32285d6ca2222bb8aad3edc14f | Shell | Mangome/pyenv | /pyenv.d/which/anaconda.bash | UTF-8 | 2,851 | 3.8125 | 4 | [
"MIT"
] | permissive | # Anaconda comes with binaries of system packages (e.g. `openssl`, `curl`).
# Creating shims for those binaries will prevent pyenv users to run those
# commands normally when not using Anaconda.
#
# This is a limited edition of https://github.com/yyuu/pyenv-which-ext
# and it will looks for original `PATH` if there is ... | true |
2481af11a00e7c3d112d9e3cacd829c9a29cd7a8 | Shell | Lynx-Be-Learning/My-Sandbox | /Project-Examples/DotFiles/dotfiles-5-13/.bashrc | UTF-8 | 5,014 | 2.734375 | 3 | [] | no_license | #! /bin/bash
#
#
### NOTE TO SELF
# 2 worded named below
# dotfile / hidden put name_name
# normal put .name-name
#
### Code / Help
# https://github.com/dougborg/bashrc
# 256 color support
# > http://www.mail-archive.com/bug-coreutils@gnu.org/msg11030.html
#
#
#
###?????? MAKE SHELL INTERACTIVE
#[ -f /etc/inputrc ]... | true |
e4b97f93aa711d7db789885fac03094d5dad36d0 | Shell | craiglittle/dotbox-custom | /script/bootstrap | UTF-8 | 868 | 3.53125 | 4 | [] | no_license | #!/bin/bash
set -e
dotbox_dir="$(dirname $0)/../"
libdir="${dotbox_dir}/lib"
modulepath="${dotbox_dir}/modules"
manifest="${dotbox_dir}/manifests/base.pp"
module_not_installed() {
[[ `puppet module list --modulepath $modulepath | grep $1 | wc -l` -eq 0 ]]
}
install_module() {
puppet module install -i $modulepat... | true |
926f8874410bb529b2b68b6bfdb69426e271f212 | Shell | NickCul30/Misc | /School Assignments/60-256 Systems Programming/Lab10/findemails | UTF-8 | 196 | 3.171875 | 3 | [] | no_license | #!/bin/bash
ids=(`grep $1 courses | cut -d $'\t' -f 1`)
size=${#ids[*]}
if [ $size -eq 0 ]; then
echo "Course not found"
fi
for i in ${ids[*]}; do
echo `grep $i emails | cut -d $'\t' -f 2`
done | true |
2de581bf7b0354f70c0551cd0886dcb469bf3768 | Shell | alainmarcel/Surelog | /third_party/tests/Zachjs/lib/functions.sh | UTF-8 | 3,618 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
SV2V="$SCRIPT_DIR/../../bin/sv2v"
assertExists() {
file=$1
[ -f "$file" ]
assertTrue "$file does not exist" $?
}
# USAGE: simulate <vcd-file> <log-file> <top-module> <file> [<file> ...]
simulate() {
# arguments
sim_vcd="$1"; shift
sim_log="... | true |
5ff310f926892e403d3e3f7ec01d3d22c9e5fb61 | Shell | cherusker/dps-2018s-assignment-2-testing | /run.sh | UTF-8 | 2,817 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# ------------------------------------------------------------------------------
# adjust the following settings to match your setup:
dlvexe="../dlv/dlv.x86-64-linux-elf-static.bin"
guessTestsRootFolder="guess-tests/"
checkTestsRootFolder="check-tests/"
guessProgram="../code/guess.dl"
checkProgram="../c... | true |
8acffe59ac676201818279c731d1e586f149b92f | Shell | ecoarium/microsphere | /workspace-settings/shell/choices/packer.bash | UTF-8 | 2,384 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
register_workspace_setting 'packer'
function change_packer_settings() {
export PATHS_PROJECT_DEPLOY_PACKER_HOME="${PATHS_PROJECT_DEPLOY_HOME}/packer"
local packer_baseline_dirs=()
local packer_baseline_dir=''
for packer_template_file in `find ${PATHS_PROJECT_DEPLOY_PACKER_HOME} -path "*/*... | true |
5e49d889bbb1884388afc30993d1b6bac62251e0 | Shell | MarioHdpz/shell-scripts | /Certbot/init-letsencrypt.sh | UTF-8 | 1,613 | 3.921875 | 4 | [] | no_license | #!/bin/bash
if ! [ -x "$(command -v docker)" ]; then
echo 'Error: docker is not installed.' >&2
exit 1
fi
read -p "Domain: " domain
read -p "Email: " email
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
if [ -d "/etc/letsencrypt" ]; then
read -p "Existing data found for $dom... | true |
abf9a0857cbb907ef876ffc67e9bdac713c44b12 | Shell | birc-aeh/au-slurm-package | /scripts/controller-prolog | UTF-8 | 667 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
did_any_fail=N
nlist=/dev/shm/nodes_$SLURM_JOBID
/opt/slurm/bin/scontrol show hostname $SLURM_JOB_NODELIST > $nlist
# Piping in to the while loop would create a new scope, and did_any_fail would
# not be set
INPUT=$(/com/bin/parallel-ssh-cmd -f $nlist /opt/slurm/scripts/slurm-remote-prolog $SLURM_JOBID $... | true |
8dceac70fde3901d77e2256b9c67b88d31c7b676 | Shell | SeonghuiChoe/ionic-inappbrowser | /build-debug.sh | UTF-8 | 634 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# 사용 할 keystore alias
KEYSTORE_ALIAS="crm"
PATH_UNSIGNED="/usr/local/app/platforms/android/build/outputs/apk/debug/android-debug.apk"
# 생성 할 signed apk 이름
OUT_SIGNED_NAME="./crm_debug"
OUT_SIGNED_EXT=".apk"
# App 버전, config.xml 파싱
version=$(cat config.xml | grep "<widget" | grep -o "version=\"[^ ]*" | s... | true |
1d8b3c19c24b464fa98573331e314daf3cb21a5a | Shell | mempool/mempool-sitemap | /sitemap-update | UTF-8 | 3,085 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env zsh
API=http://[::1]:3000
SITEMAP_INDEX_TEMP_FILE=sitemap-index-temp.xml
SITEMAP_TEMP_FILE=sitemap-temp.xml
BLOCK_TIP_HEIGHT="$(curl -s ${API}/blocks/tip/height)"
BLOCK_HEIGHT=0
BLOCK_PER_FILE=50000
FILE_TOTAL="$(($BLOCK_TIP_HEIGHT / $BLOCK_PER_FILE))"
FILE_START=0
FILE_STOP="${FILE_TOTAL}"
FILE="${FIL... | true |
452f57c8dbd57ea047d2ac842dd95af755457365 | Shell | ryanjclark/selenium_bot | /create_environment.sh | UTF-8 | 365 | 2.65625 | 3 | [] | no_license | echo "Creating virtualenv 'selenium'"
virtualenv selenium
source selenium/bin/activate
echo "Installing requirements"
pip install -r requirements.txt
# TODO: curl chromedriver latest version
# echo "curl command for Chromedriver"
# Chromedriver needs to be in opt/WebDriver/bin
echo "Adding WebDrivers to PATH"
export... | true |
81e12cf4963d9cb272b39d66f7999bf56eec5fdf | Shell | timflutre/quantgen | /submit.bash | UTF-8 | 5,100 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
# Aim: submit a simple job to HTCondor (https://htcondor.org/)
# Copyright (C) 2022 INRAE
# License: GPL-3+
# Persons: Timothée Flutre [cre,aut]
# Versioning: https://github.com/timflutre/quantgen
progVersion="0.1.0" # http://semver.org/
# Display the help on stdout.
# The format complies with he... | true |
c198523bbd8abddd026717b5bfd3f183ad1b3dcd | Shell | vmartinezmag/up | /up_laravel.sh | UTF-8 | 516 | 2.921875 | 3 | [] | no_license | #!/bin/bash
ports=$(lsof -ti:8080,8081,8082 | wc -l)
if [ $ports != 0 ];
then
kill $(lsof -ti:8080,8081,8082)
else
URL_A=$(find /Applications/MAMP/htdocs/ -type d -name "proorder")
URL_B=$(find /Applications/MAMP/htdocs/ -type d -name "gestor_ana")
URL_C=$(find /Applications/MAMP/htdocs/ -type d -name ... | true |
e555500979866f2c032e3f9bcc9b7752cbe0b378 | Shell | peteryang/vagrant-codes-in-practice | /vagrant-jenkins-gitlab/scripts/get_client_token.sh | UTF-8 | 1,298 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
#Exit code "155" means required parameters are not enough
if [ "$#" -ne 3 ]
then
echo "Usage: ./$(basename $0) ROOT_TOKEN POLICY_NAME APPROLE_NAME"
exit 155
fi
export VAULT_ADDR='http://127.0.0.1:8200'
VAULT_TOKEN=$1
IP=$(ifconfig | grep 'inet ' | awk '{ print $2 }' | head -n 1)
create_pol... | true |
1cf50786712c3e80fbebd0cf0d5c494e8fc03c09 | Shell | hodiapa/G5K-VMPlaceS | /g5k-deployment-scripts/tools/memtouch/bw.sh | UTF-8 | 496 | 3.140625 | 3 | [] | no_license | #!/bin/sh
S=1
TMP=`grep br0 /proc/net/dev | sed -e 's/:/ /' `
INIT_IN=`echo $TMP | awk '{print $2}'`
INIT_OUT=`echo $TMP | awk '{print $10}'`
while true ; do
sleep $S
TMP=`grep br0 /proc/net/dev | sed -e 's/:/ /' `
LAST_IN=`echo $TMP | awk '{print $2}'`
LAST_OUT=`echo $TMP | awk '{prin... | true |
60d502add09773a520766daf9f7ac0a46c8ba6fc | Shell | Alesha72003/MINGW-packages | /mingw-w64-lasem/PKGBUILD | UTF-8 | 1,949 | 2.8125 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Dominic Sisneros <dsisnero@gmail.com>
_realname=lasem
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.4.4
pkgrel=2
pkgdesc="Lasem aims to be a C/Gobject based SVG/Mathml renderer (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')... | true |
72f373847c61525af66651265cc8d1bbda11be0b | Shell | tkuchiki/manage-domain | /bin/check_https_domain.sh | UTF-8 | 967 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DB_USER="${1}"
DB_NAME="${2}"
DOMAIN="${3}"
TIMEOUT="${4:-5}"
LIST=`mysql -u ${DB_USER} ${DB_NAME} -N -B -e "SELECT sub_domain FROM domain_list WHERE domain = '${DOMAIN}';"`
https() {
_DOMAIN="${1}"
_SUB_DOMAIN="${2}"
if [ "${_SUB_DOMAIN}" = "" ] ; then
echo "https://${_DOMAIN}"
... | true |
61dd7f2f2559ee068d0082d761e182435bc594cb | Shell | RohitKuwar/website-members | /.husky/pre-commit | UTF-8 | 429 | 3.28125 | 3 | [] | no_license | #!/bin/sh
. "$(dirname "$0")/_/husky.sh"
echo 'Lets check if the code is well formatted 😎'
npm run check-format || (
echo 'oops! your format doesnt looks good. Run npm run format and try commiting again!';
false;
)
echo 'Ok, the format looks good, how about lint check? 😋'
npm run check-lint || (
echo 'oops!... | true |
d7692fdcd499affd590ddcc5a3ea6a7914094a78 | Shell | ghoresh11/ecoli_genome_collection | /7_treemer_reps/X_run_fasttree_jobs.sh | UTF-8 | 560 | 2.609375 | 3 | [] | no_license |
for d in */ ; do
if [[ $d == *_155* ]]; then
var=${d%?}
echo ${var}
bsub -o ${var}.o -e ${var}.e -J ${var} -n1 -R"span[hosts=1]" bash run_fasttree.sh $d
fi
done
while read d; do
var=${d%?}
echo ${var}
bsub -R"select[mem>3000] rusage[mem=3000]" -M3000 -o ${var}.o -e ${var}.e -J ${var} -n1 -R"span[hosts=1]" bash run... | true |
09e57f28f56fd7e5a3fde7737bf88fb418acb059 | Shell | mjumbewu/philly-councilmatic | /bin/update_data | UTF-8 | 1,391 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# Set COUNCILMATIC_DIR to the absolute path of the Django project's root folder.
COUNCILMATIC_SRC=$(dirname $0)/../src
cd "$COUNCILMATIC_SRC"
echoerr() { echo "$@" 1>&2; }
# 1. Download any new files
echoerr
echoerr "============================================================"
echoerr "Attempting to imp... | true |
8003e1dda1ca1b5ab9f2bcc3ec6200e08bfb7b94 | Shell | michaeltout/ZcashLightClientKit | /Scripts/build_librustzcash_xcode.sh | UTF-8 | 2,407 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
SCRIPT_COMMONS="${PODS_TARGET_SRCROOT}/Scripts/script_commons.sh"
if [ ! -f $SCRIPT_COMMONS ]; then
echo "Failed to load $SCRIPT_COMMONS"
exit 1
fi
source $SCRIPT_COMMONS
if [ "$1" = "--testing" ]; then
export ZCASH_NETWORK_ENVIRONMENT=$ZCASH_TESTNET
echo "Testing flag detected, forcing $ZC... | true |
a4a47c5bcff8ac533a1b4651132a08c45419421c | Shell | matthewc100/Xplanet-1 | /configs/test_increment | UTF-8 | 94 | 2.859375 | 3 | [] | no_license | #!/bin/zsh
START=1
END=10
INCR=1.25
for ((x = START; x <= END; x += INCR)); do
echo $x
done
| true |
a4e3038cdab1f92640d1a78d56a8f224947109bd | Shell | CartoDB/mapnik-packaging | /osx/scripts/test_mapnik.sh | UTF-8 | 1,382 | 3.015625 | 3 | [
"ICU",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive |
#!/usr/bin/env bash
set -e -u
set -o pipefail
echo '*** testing install'
if [ ! -d "${MAPNIK_BIN_SOURCE}/share/mapnik" ]; then
${ROOTDIR}/scripts/post_build_fix.sh
fi
echoerr 'testing build in place'
export ICU_DATA="${MAPNIK_BIN_SOURCE}/share/mapnik/icu"
export GDAL_DATA="${MAPNIK_BIN_SOURCE}/share/mapnik/gdal"
ex... | true |
efa56b36dba4f3c795a57063d1a90075b935c133 | Shell | flant/examples | /2019/05-kubernetes-dashboard-gitlab/ctl.sh | UTF-8 | 9,109 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
! read -rd '' HELP_STRING <<"EOF"
Usage: ctl.sh [OPTION]... --gitlab-url GITLAB_URL --oauth2-id ID --oauth2-secret SECRET --dashboard-url DASHBOARD_URL
Install kubernetes-dashboard to Kubernetes cluster.
Mandatory arguments:
-i, --install install into 'kube-system' namespac... | true |
6a0e6a21c020d921a9a42910d6082ba09780fe0b | Shell | jaimevale/microcks | /install/nomad/setup-microcks-nomad.sh | UTF-8 | 352 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Creating docker network for nomad job ..."
docker network create --driver bridge nomad_main
echo "Replacing mount paths with current path"
export pwd=`pwd`
export tild=~
perl -i.bak -pe 's|/Users/lbroudou/Development/github/microcks/install/nomad|${pwd}|' microcks.nomad
perl -i.bak -pe 's|/Users/lbr... | true |
6f9a1b849a9c5924f3527f259452a9924d79844d | Shell | jivesoftware/routing-bird | /deployable-scripts/src/main/dist/bin/status | UTF-8 | 403 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
APP_ROOT=$(cd $(dirname $0)/..; pwd);
SERVICE_NAME=$(basename $APP_ROOT);
IS_RUNNING=`ps -ef | grep "\-DserviceName="${SERVICE_NAME} | grep -v "grep " | wc -l`
if [ $IS_RUNNING -eq 0 ]; then
echo "${SERVICE_NAME} stopped"
exit 1
else
PID=`ps -ef | grep "\-DserviceName="${SERVICE_NAME} | grep -... | true |
4b1d9c8e3f30601e05a7f0cb7d5eb433e1f267d8 | Shell | lihuibng/realm-core | /evergreen/install_baas.sh | UTF-8 | 12,076 | 3.234375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | #!/bin/bash
# This script will download all the dependencies for and build/start a Realm Cloud app server
# and will import a given app into it.
#
# Usage:
# ./evergreen/build_and_run_baas.sh {path to working directory} {path to app to import} [git revision of baas]
#
set -o errexit
set -o pipefail
case $(uname -s) i... | true |
4d741542d19ee593f659c04bce79f13c89ef4111 | Shell | meisto/Terminal_Cheatsheet | /colors/colors.sh | UTF-8 | 855 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Date format: DD:MM:YY-hh:mm:ss
# Types: ONC (once), REG (regular), IRR (irregular)
echo_color () {
# Arguments: fg_color_code bg_color_code text
# A color code should be given in the format
# "r;g;b" where r,g,b=0-255
# If a colorcode is equal to "-", it will
# be ignored
## Assemble ... | true |
9fc5d674659958476b2c95f1ecfb6de02249c4e6 | Shell | fossabot/wireguard-install | /wireguard-client.sh | UTF-8 | 2,858 | 3.71875 | 4 | [] | permissive | #!/bin/bash
# Secure WireGuard For CentOS, Debian, Ubuntu, Raspbian, Arch, Fedora, Redhat
# Sanity Checks and automagic
function root-check() {
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit
fi
}
# Root Check
root-check
# Detect Operating System
function dist-check() {
if ... | true |
9877dbfc257c2051bece732a5650fb5f81106b8e | Shell | hayderimran7/ci-stack | /bootstrap/puppetdb/bootstrap.sh | UTF-8 | 424 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sudo apt-get install -y git
sudo git clone https://git.openstack.org/openstack-infra/config /opt/config/production
sudo /opt/config/production/install_puppet.sh
sudo apt-get install -y hiera hiera-puppet
sudo /opt/config/production/install_modules.sh... | true |
bf05f7d59c2725a353f4159d7c3d6225ce837906 | Shell | Hoangdinh85/NTI-321 | /automation/scp_to_nagios.sh | UTF-8 | 344 | 2.5625 | 3 | [] | no_license | #!/bin/bash
bash generate_config.sh $1 $2
gcloud compute scp $1.cfg nicolebade@nagios-a:/etc/nagios/servers
# Note: I had to add user nicolebade to group nagios using usermod -a -G nagios nicolebade
# I also had to chmod 775 /etc/nagios/servers
gcloud compute ssh nicolebade@nagios-a --command='sudo /usr/sbin/nagios -v ... | true |
75c68adf686ef1325bcbe0c2f8e4eadf6af82d74 | Shell | ericadams/dotfiles | /WSL/bash/.bash_aliases | UTF-8 | 2,271 | 2.875 | 3 | [] | no_license | alias dcs=docker-compose
export WEBHOOK_ENDPOINT='api/SendGridWebhookEvents'
export SANDBOX_WEBHOOK='https://1daesk3r9c.execute-api.us-west-2.amazonaws.com/api/SendGridWebhookEvents'
export INT_WEBHOOK="https://5upst37au2.execute-api.us-west-2.amazonaws.com/$WEBHOOK_ENDPOINT"
export SANDBOX_AGGS_DB="sendgrid-event-agg... | true |
debf4190c0be2e9f1c2c878802b5edfa20018db2 | Shell | tournet/script | /sources.sh | UTF-8 | 644 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# Usage:
# wget --no-check-certificate https://raw.githubusercontent.com/mixool/script/master/sources.sh && chmod +x sources.sh && ./sources.sh
[[ $EUID -ne 0 ]] && echo "Error, This script must be run as root!" && exit 1
cat <<EOF > /etc/apt/sources.list
deb http://archive.debian.org/debian/ jessie main... | true |
fbcbe6e7599c6918394be41f5ac1eddb083ddfd9 | Shell | shazame/Personal | /config/zsh/.zshrc | UTF-8 | 1,171 | 2.671875 | 3 | [] | no_license | # An impressive base zshrc is used: pacman -S grml-zsh-config
if [ -r ${ZDOTDIR:-${HOME}}/.zsh_aliases ]; then
source ${ZDOTDIR:-${HOME}}/.zsh_aliases
fi
if [ -r ${ZDOTDIR:-${HOME}}/.zsh_marks ]; then
source ${ZDOTDIR:-${HOME}}/.zsh_marks
fi
# Custom completion settings
fpath=(${ZDOTDIR:-${HOME}}/completion ... | true |
5bbcc8378d00bb041ba07327b181b66b011d2908 | Shell | teejl/HPCA | /PRJ2/trial2/sim_exe.sh | UTF-8 | 2,215 | 2.96875 | 3 | [] | no_license | function init
{
# clear results.txt
echo "Simulation executing..." > ~/Repos/HPCA/PRJ2/trial2/results.txt
echo "" >> results.txt
# resetting the configuration files
rm ~/sesc/src/libsuc/CacheCore.cpp
rm ~/sesc/src/libsuc/CacheCore.h
rm ~/sesc/src/libcmp/SMPCache.cpp
rm ~/sesc/src/libcmp/SMPCache.h
c... | true |
b6a9ed3cd7c6a483a0f611e19dda390752a7477e | Shell | longbiaochen/lvm-rsync-backup | /backup-daily~ | UTF-8 | 4,214 | 4.0625 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# This script performs a backup of the specified
# system logical volume to a backup logical volume
# located on a separate physical volume.
# It uses an LVM snapshot to ensure the data
# remains consistent during the backup.
BACKUP_VOLUME=$1
BACKUP_MOUNT=$2
BACKUP_SIZE=$3
BUFFER_SIZE=$4
BACKUP_DEVICE="... | true |
8fa5d8ed104fccdbe912645e176d33d3b21530bb | Shell | mgijax/vocload | /MP.config | UTF-8 | 2,532 | 3.109375 | 3 | [] | no_license | #!/bin/sh
#
# Program: MP.config
#
# Purpose:
#
# Configuration file for Mammalian Phenotype Load
#
# Usage:
#
# Execute this file from a script or command line to
# set environment variables for MP load
#
# 11/02/2022 lec
# per Sue:
# • type 1 synonyms used for labels on the HMDC
# • type 2 sy... | true |
f760e5fc6ba3dc6d6874e703a3a5835e45db0090 | Shell | AdamWu1979/epi_corrections | /scripts/analyze-medians-and-dice-scores.sh | UTF-8 | 6,220 | 2.921875 | 3 | [] | no_license | # Run from epi_corrections dir as
# bash scripts/analyze-medians-and-dice-scores.sh ../epi_corrections_out_2019_07_02_native_tumor_excluded_from_rcbv
correction_dir=$1
# Gradient echo (e1) and Spin echo (e2)
for (( i = 1 ; i < 3 ; i++ )) ; do
# MNI ROI median rCBV files
readarray mni_medians_epic_files_arr_... | true |
b0bc5fd12989539c19fda1714345c942d4cdcdfb | Shell | elfosardo/airship-dev-tools | /ci/scripts/image_scripts/provision_metal3_image_centos.sh | UTF-8 | 1,619 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -uex
SCRIPTS_DIR="$(dirname "$(readlink -f "${0}")")"
# Metal3 Dev Env variables
M3_DENV_ORG="${M3_DENV_ORG:-metal3-io}"
M3_DENV_REPO="${M3_DENV_REPO:-metal3-dev-env}"
M3_DENV_URL="${M3_DENV_URL:-https://github.com/${M3_DENV_ORG}/${M3_DENV_REPO}.git}"
M3_DENV_BRANCH="${M3_DENV_BRANCH:-master}"
M3_DEN... | true |
9855957ef4209f7f17b74828774bf293419ba57d | Shell | Sibylau/mlir-aie | /utils/clone-llvm.sh | UTF-8 | 759 | 2.71875 | 3 | [
"LLVM-exception",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
##===- utils/clone-llvm.sh - Build LLVM for github workflow --*- Script -*-===##
#
# This file licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
##===-----------------... | true |
a5f715ac1324e76cad8a229cdeb60418972faf25 | Shell | marstool/qwp201802 | /docs/20180227_-u_-zs5zofy.info_dir/20180227_-U_-Zs5ZOFY.info.json.sh2 | UTF-8 | 2,333 | 2.765625 | 3 | [] | no_license | #!/bin/bash
rm -f \
20180227_-U_-Zs5ZOFY.info.json.vo.* \
20180227_-U_-Zs5ZOFY.info.json.ao.* \
20180227_-U_-Zs5ZOFY.info.json.bo.* \
20180227_-U_-Zs5ZOFY.info.json.wav
rm -fr 20180227_-U_-Zs5ZOFY.info_dir
mkdir -p 20180227_-U_-Zs5ZOFY.info_dir
mv 20180227_-U_-Zs5ZOFY.info.j... | true |
ef42ce11cc9c701336b48bc21da57911eb8adcf8 | Shell | GCN/openshift-azure | /hack/delete.sh | UTF-8 | 491 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
if [[ $# -eq 0 && ! -e _data/containerservice.yaml ]]; then
echo error: _data/containerservice.yaml must exist
exit 1
fi
if [[ $# -eq 1 ]]; then
export RESOURCEGROUP=$1
else
export RESOURCEGROUP=$(awk '/^ resourceGroup:/ { print $2 }' <_data/containerservice.yaml)
fi
USE_PROD_FLAG="... | true |
eec393268db54658b1b835c932d5dc4ee0a9ac27 | Shell | tukiyo/docker-xrdp | /bin/build.sh | UTF-8 | 281 | 3.015625 | 3 | [] | no_license | #!/bin/sh
set -eu
_build() {
ARCH=$(uname -m)
TAG=$1
if [ $# -eq 2 ];then
TAG=$2
fi
#
docker build . \
--no-cache=false \
-f Dockerfile/${ARCH}/${TAG} \
-t tukiyo3/xrdp:${TAG}
}
_build core
_build xfce4
_build latest
# _build novnc
# _build lxde
# _build icewm
| true |
8145f157fea50cb9261e319cb39fe40aba6e54b3 | Shell | infinityrobot/dotfiles | /aliases/macos.sh | UTF-8 | 1,253 | 2.703125 | 3 | [] | no_license | # Display / hide hidden files
alias show_hidden="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder"
alias hide_hidden="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder"
# Enable / disable screenshot shadow
alias enable_screenshot_shadow="defaults write com.apple.screencapture di... | true |
7015e2a33ddb246d91d2ef19d6766689c40b715f | Shell | zerraveth/so | /stoper | UTF-8 | 208 | 3.140625 | 3 | [] | no_license | #!/bin/bash
stoper=$1
n=$2
iloczyn=1
for ((i=0 ;$i<$n;i++ )) ; do
echo -n "podaj liczbe: "
read liczba;
iloczyn=$[$iloczyn*$liczba]
if (( $liczba == $stoper )) ; then
break
fi
done
echo "iloczyn: $iloczyn"
| true |
72c8c518ea5feed0fc2655bdf7c0c8b5e9731d4a | Shell | montaser223/Bash-Script-Project | /main.sh | UTF-8 | 2,245 | 4.1875 | 4 | [] | no_license | #!/bin/bash
DIR="/home/$USER/DBMS"
echo "Welcome To DBMS"
#This function check user has directory to put DB on it or not
function checkDir() {
if [ ! -d $DIR ]; then
mkdir /home/$USER/DBMS
fi
}
#Call checkDir function
checkDir
#This function Dispaly DataBase Menu
function mainMenu() {
echo -e "\n+---------Mai... | true |
458dd52e888fadc011cb35270feb9ecb31a0db98 | Shell | gnpereira90/ppgcc-mpi-master-slave | /execution-3/run.sh | UTF-8 | 1,477 | 3.640625 | 4 | [] | no_license | #!/bin/bash -e
echo
echo "Running on `hostname`"
echo "Initial Time: `date`"
echo
mkdir -p logs
touch logs/sort-sequential.csv
touch logs/master-slave-sort.csv
TRIES=3
ARGS=(1000 5000 10000)
DIR=$PWD
OUTPUTFILE_SEQUENTIAL="$PWD/logs/sort-sequential.csv"
OUTPUTFILE_MASTER_SLAVE="$PWD/logs/master-slave-sort.csv"
numb... | true |
dfba0db7840eb3d8f0b4bb286918cdeacf5ac354 | Shell | hchiam/learning-bash-scripts | /create-git-branch-and-use-it.sh | UTF-8 | 118 | 2.6875 | 3 | [
"MIT"
] | permissive | // put this inside your .bash_profile
function branch() {
git checkout -b $1
git push --set-upstream origin $1
}
| true |
4663357ed6f085fa1095407353eccc16f6a37fcb | Shell | ferhatelmas/openebs | /k8s/lib/scripts/configure_k8s_master.sh | UTF-8 | 759 | 3.828125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
#Variables:
machineip=
hostname=`hostname`
kubeversion="v1.7.5"
function get_machine_ip(){
ifconfig | \
grep -oP "inet addr:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" \
| grep -oP "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" | sort |\
tail -n 1 | head -n 1
}
function setup_k8s_master() {
... | true |
8a11b68a3ee012c1a071de8b7dbb08c5803c3f92 | Shell | NetBSD/pkgsrc | /net/nagios-nrpe/files/nrpe.sh | UTF-8 | 335 | 2.78125 | 3 | [] | no_license | #!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: nrpe.sh,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
#
# PROVIDE: nrpe
# REQUIRE: DAEMON
. /etc/rc.subr
name="nrpe"
rcvar=$name
command="@PREFIX@/sbin/${name}"
config="@PKG_SYSCONFDIR@/${name}.cfg"
pidfile="/var/run/${name}.pid"
command_args="-c $config -d"
load_rc_config $name
run_r... | true |
1312ec38bc932fefcc2a5ca63a04278dacabe1fc | Shell | wstcttt/rc | /.bashrc | UTF-8 | 1,601 | 3.3125 | 3 | [] | no_license | #create or attach the screen when start the shell
#if [[ -z "$STY" ]]; then
# screen -xRR jun
#fi
TERM=xterm-256color
[[ $- == *i* ]] || return 0
kill -WINCH $$
if [ "$(uname)" == "Darwin" ]; then
alias ls='ls -G'
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
else
export LS_OPTIONS='--c... | true |
f7793ece5f973d9593d4d7bddb837577f9842c83 | Shell | nadtakanfuthoem/books-api | /services/cognito/scripts/deploy.bash | UTF-8 | 625 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# set bash to stop if error happen
set -e
profile="nadtakan"
service="cognito"
stage=$1
region="us-east-1"
sls deploy --stage $stage --profile $profile
# Grab export (good for handling multiple stacks)
COGNITO_USER_POOL_ID=$(aws cloudformation list-exports --query "Exports[?Name==\`$service:$stage:UserP... | true |
241a26029b9d152a721b383c72dbdea638b1506e | Shell | purpleP/autovenv | /new_auto.zsh | UTF-8 | 1,358 | 3.75 | 4 | [] | no_license | activate_venv() {
unsetopt nomatch 2>/dev/null
local venv=$(find_venv)
if [[ -n $venv ]]; then
. $venv/bin/activate
else
deactivate 2>/dev/null
fi
}
find_venv() {
local project_root=$(git rev-parse --show-toplevel 2>/dev/null)
if [[ -n $project_root ]]; then
venv_dir... | true |
0a964e40f68fe0c458bd88a8beb104bc6befe596 | Shell | ryanwalexander/PiBuilder | /boot/scripts/support/isc-dhcp-fix.sh | UTF-8 | 552 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
logger "isc-dhcp-fix launched"
Card()
{
ifconfig $1 | grep -Po '(?<=inet )[\d.]+' &> /dev/null
if [ $? != 0 ]; then
logger "isc-dhcp-fix resetting $1"
sudo dhclient $1
fi
}
# if you do not have both interfaces active, comment-out the "Card"
# line that you don't need. But leave bo... | true |
8eb01a5b88db42dd1872a0671cdff394ceacbadc | Shell | manasealoo/blast_tools | /blastp_formatter.sh | UTF-8 | 8,470 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [[ ($1 == "-h") || ($1 == "--help") ]]
then
echo "Usage:"
echo "$0 [-h,-help] [-i,--input-fasta] [-d,--database] <-e,--evalue>
<-nd,--num_descriptions> <-na,--num_alignments> <-o --output-filename>
<-cl,--clean> <-nrh,--num-report-hits> <-nthr, --num-threads>
<-bks, --backward-search>... | true |
362e0642923afde8cc45443be9b277e292594fd5 | Shell | ahiguti/ase | /ase/tests/test_02_cclass/run.sh | UTF-8 | 790 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
TESTS="01 02 03 04";
source ../compat.sh
compile_c asetestcpp.cpp libase-lib-ASETestCPP
for i in $TESTS; do
args=""
if [ -f "test$i.args" ]; then args="`cat test$i.args`"; fi
if [ -f "test$i.expect2" ]; then
../../aserun-local test$i.lua $args > test$i.log 2> test$i.log2
else
../../aserun-... | true |
b0ada65be55c4ef049e783c5fcd4a22655f385ba | Shell | Joseph-Obuseri/Project-1-ELK-Stack-Implementation | /Git/Linux/for_loops.sh | UTF-8 | 453 | 3.21875 | 3 | [] | no_license | #!/bin/bash
states={
'Texas'
'California'
'Hawaii'
'Louisiana'
'Florida'
]
nums=(0 1 2 3 4 5 6 7 8 9)
for state in ${states[@]};
do
if [$state == 'Texas']
then
echo "Texas is the best country"
if [$state == 'california']
then
echo "California not cool"
if [$state == 'Louisiana']
... | true |
f7a8b7d1398c1731481ebf048e3f293debefa328 | Shell | jghamburg/lsb2-a-readme | /platform/semantic-release/build-docker.sh | UTF-8 | 546 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# create docker image of semantic-release
# with gradle support - write gradle.properties version=
#
DOCKER_GROUP="jghamburg"
BUILD_VERSION="1.0.0"
APP_NAME="git-semantic-release"
echo "Current build version: ${BUILD_VERSION} ..."
docker build --no-cache=true --pull=true -t ${DOCKER_GROUP}/${APP_NAME}:${BU... | true |
58dccc95f6d124322684d1a3acca30752ae259ba | Shell | dilawar/Scripts | /trigger_jackass.sh | UTF-8 | 717 | 2.96875 | 3 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: trigger_jackass.sh
#
# USAGE: ./trigger_jackass.sh
#
# DESCRIPTION: Trigger jackass.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dilawar ... | true |
8fb860c25e8e00ef7077bd3030510f49b6cfac5c | Shell | Yubico/python-pyhsm-dpkg | /debian/yhsm-validation-server.preinst | UTF-8 | 1,125 | 3.46875 | 3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #! /bin/sh
#
# see: dh_installdeb(1)
#
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
#
# for details, see http://www.debian.org/doc/de... | true |
eaa5e069ee73768e73a0513ac64f35ef061cdccb | Shell | alexey85/dns325-transmission | /make_transmission.sh | UTF-8 | 3,580 | 3.15625 | 3 | [] | no_license | #!/bin/sh
# cross compilation vars
export TARGET_HOST="arm-none-linux-gnueabi"
export BUILD_HOST=$(uname -m)
export CROSS_COMPILE=${TARGET_HOST}-
#building environment
WORKDIR=$(pwd)
export WORKDIR
export TOOLCHAIN_DIR=${WORKDIR}/dns325_GPL
export MKAPFG_DIR=${WORKDIR}/"ShareCenter Add-On SDK_v2.0_12192011"
PATH=${... | true |
8bcfdecda281301b8a332761c1e9e30daeaab3f7 | Shell | ProteoWizard/pwiz | /pwiz/analysis/eharmony/scripts/mergePepXML.sh | UTF-8 | 299 | 3.03125 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | #!/bin/bash
file1=${1}
file2=${2}
outfile=${3}
sed 's/<\/msms_run_summary>//' $file1 > temp1
sed 's/<\/msms_pipeline_analysis>//' temp1 > temp2
awk 'BEGIN { DOPRINT = 0 } DOPRINT == 1 { print } /analysis_timestamp/ { DOPRINT = 1 }' ${file2} | tee -a temp2
mv temp2 $outfile
rm temp1
rm temp2 | true |
e4f4d3d592cbcdd00cb572a9b4bcc3a4cad72dc0 | Shell | y-kitamu/dockers | /node/entrypoint.sh | UTF-8 | 295 | 2.984375 | 3 | [] | no_license | #!/bin/bash
function run_as_user() {
jupyter lab --ip='*' --port=5000 --no-browser --NotebookApp.token='' --notebook-dir=/home/`id -n -u`/work
}
# start sshd
/usr/sbin/sshd
# start jupyter
RUN_AS_USER=$(declare -f run_as_user)
sudo -H -u ${USER_NAME} bash -c "${RUN_AS_USER}; run_as_user"
| true |
ef2ca9a76ae8280bacee4577d6bc93665b843b96 | Shell | deephealthproject/eddl | /formulas/bash/install_release.sh | UTF-8 | 202 | 2.515625 | 3 | [
"MIT"
] | permissive | VERSION=v0.5.4a
sudo apt-get install wget
wget "https://github.com/deephealthproject/eddl/archive/$VERSION.tar.gz"
tar -xf "$VERSION.tar.gz"
cd "eddl-$VERSION"
mkdir build
cd build
cmake ..
make install | true |
2f98a972a207ee4072491d0aa182fc1066171cb6 | Shell | c-rainstorm/innodb_parser | /run-mysql-in-docker.sh | UTF-8 | 1,255 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source iprc.sh
source tools.sh
ensureImageExist "${MYSQL_IMAGE}"
mkdir -p "${MYSQL_MOUNT_VOLUME}"
mkdir -p "${PASSWORD_DIR}"
echo "######################################################"
# shellcheck disable=SC2046
# shellcheck disable=SC2002
if [ ! -e "${MYSQL_PASS_FILE}" ] || [ $(cat "${MYSQL_PASS_FIL... | true |
27d81d79a0631753c1c4ff55744eab53397991ae | Shell | poncovka/java-bytecode-size-optimization | /app/projects/analysis/src/main/sh/jbyca-postprocessing-lib | UTF-8 | 3,043 | 3.703125 | 4 | [] | no_license | #!/bin/sh
# Author: Vendula Poncova
# Date: 14.4.2016
# Library of functions for jbyca-postprocessing.
#
# Usage:
# source jbyca-postprocessing-lib
sort_cls() {
sort -k 1,1n -k 3,3rg -k 2,2rn -k 4,4
};
unique_patterns() {
awk -F "\t" '!counter[$4]++'
};
cut_patterns() {
awk -F "\t" -v max="$1" 'counter[$1]... | true |
366c3ec836af1e66a70f89da854056c3acfd3388 | Shell | Furniva1/zero-focus-code | /Bash-Script-Snippets/read-in-read-out.sh | UTF-8 | 1,498 | 3.96875 | 4 | [] | no_license | #!/usr/bin/env bash
#let script exit if a command fails
set -e
#let script exit if an unsed variable is used
set -u
alias echo="echo -n"
function1(){
clear
echo
echo "This program grabs internal text and outputs it to"
echo "a file called filename123.txt that will be created"
echo "in the directory the code is ... | true |
8f454addf3f99ec14a90464680d0513f1a366449 | Shell | 844196/iiyo_koiyo | /iiyo_koiyo.sh | UTF-8 | 756 | 4.03125 | 4 | [
"CC0-1.0"
] | permissive | #!/bin/bash
#
# @(#) 擬似乱数を生成・表示し、引数にマッチするまでループします
#
# Usage:
# iiyo_koiyo.sh [num]
# command | iiyo_koiyo.sh
#
# Author:
# @84____ (Masaya Tk.)
#
base=${0##*/}
_error() {
echo "${base%.sh}: invaild argument" 1>&2
exit 1
}
_randCreate() {
rand=$((${RANDOM} % 10))
printf ${rand}... | true |
4ffc59afa0ed4235fae486b03c4a7b7426098632 | Shell | bedezign/docker-utility-scripts | /php/scripts/install_mongodb.sh | UTF-8 | 468 | 2.71875 | 3 | [
"MIT"
] | permissive | # /usr/bin/env sh
echo '*** Installing MongoDB extension'
# MongoC
apt-get install pkg-config libssl-dev libsasl2-dev
# BSON
apt-get install git gcc automake autoconf libtool
pecl install mongodb
export INI_DIR=`php -r 'ob_start(); phpinfo(INFO_GENERAL); array_map(function($value) { if (strpos($value, "additional .... | true |
d391cf9e47782157f679d276ba1d4f776c5af645 | Shell | leonhostetler/sample-programs | /shell/variables/variables.sh | UTF-8 | 629 | 4 | 4 | [] | no_license | #!/bin/bash
#
# variables.sh
#
# Leon Hostetler, June 9, 2018
#
# CALL USING: sh variables.sh
#
# Create two variables
myvar1=19
myvar2="Leon Hostetler"
# Print them to the screen
echo $myvar1
echo $myvar2
# You can also run commands and assign th... | true |
3cbfcd1b94b55ae2cec1dd739dcce549f5620108 | Shell | idem2lyon/CloudWhip | /scripts/aws_cli_example.sh | UTF-8 | 1,700 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This is an example script to deploy PODs containing three custom instances (2 Linux and 1 Windows) for Lab 1: Gaining Access to OS & Application.
# Note that the VPC and Subnets are manually created using the AWS VPC Wizard and this script is used only for deploying the instances in their respective subn... | true |
0b5dcfd6371be9e715343fba5fe27f96b52ca0b7 | Shell | axelhodler/dotfiles | /.zprofile | UTF-8 | 128 | 2.578125 | 3 | [] | no_license | if [[ "$TERM" != "screen-256color" ]]
then
tmux attach-session -t home || tmuxinator start home
fi
export LC_ALL=en_US.UTF-8
| true |
19ea128fba102327e630813fc0f1632ea3d50b2c | Shell | erichardy/shabc | /bin/Faire-TOUT-HTML.sh | UTF-8 | 263 | 2.9375 | 3 | [] | no_license | #!/bin/bash
export PATH="/opt/local/shabc/bin:$PATH"
if [ $# -lt 1 ]
then
R="/var/wwwMUSIC/MUSIC"
R="/var/wwwTMP/abc-irlande/"
else
R=$1
fi
cd $R
git pull
for REP in Divers-Irlandais Hornpipes Jigs Reels
do
echo $REP
cd $REP
FaireHTML.sh
FaireHTML-abcjs.sh
cd $R
done
| true |
a05f48bec156f02a1a057adfc5f0b469dd53e4f6 | Shell | saleyn/erl-patches | /old/0-otp.17.5-patch.sh | UTF-8 | 747 | 3.53125 | 4 | [] | no_license | #!/bin/bash
OLD_PATCH_FILE=1-otp.17.4.patch
NEW_PATCH_FILE=1-otp.17.5.patch
[ -f $NEW_PATCH_FILE ] && echo "New patch exists!" && exit 1
echo "Backup original files [y/N]: "
read yn
if [ $yn = "y" -o $yn = "Y" ]; then
for f in $(awk '/\+\+\+/{print $2}' $OLD_PATCH_FILE) ; do cp -v $f $f.orig ; done
fi
echo "Apply ... | true |
f7b1d3c77bfc0b837ca58efb293bddaff4b04ecb | Shell | thbishop/kv | /infra/script/install_api.sh | UTF-8 | 484 | 2.921875 | 3 | [] | no_license | #!/bin/bash -ex
aws_region=$(curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document|grep region|awk -F\" '{print $4}')
aws s3 cp s3://kv-artifacts-${aws_region}/api.zip /var/tmp/ --region ${aws_region}
cd /var/tmp
unzip /var/tmp/api.zip
mkdir -p /opt/kv/api
mv /var/tmp/api /opt/kv/api/
chmod +x... | true |
5689b4581b488bbe948c055197d1aa6cce6d7be3 | Shell | richdonne/Raspberry-Pi-LAMP-Install-Script | /install.sh | UTF-8 | 854 | 2.6875 | 3 | [] | no_license | #########################################################################
#LAMP for Raspberry Pi #
#This script will install Apache, PHP, FTP, and MySQL. #
#This script was written by Harbour, Justin #
#[C] 2013 Justin Harbour... | true |
f1a30058315012b1afa47867ee5a27c139ae340e | Shell | sakaal/boot | /root/virt-install_boot.local.sh | UTF-8 | 770 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Logical volume group 'vg_guests' is configured as a libvirt storage pool.
# Test environment usage tested on Fedora 19:
ssh-keygen -R 192.168.122.8
virt-install --connect=qemu:///system \
--network=network:default,model=virtio \
--initrd-inject ~/git/boot/root/boot.local-ks.cfg \
--extra-args="ks=file:/... | true |
5e42e48cad5e4ae65c396b7c87dce0a037f2ba03 | Shell | fmherschel/ClusterTools2 | /sbin/cs_show_cluster_patterns | UTF-8 | 5,975 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#
# cs_show_cluster_patterns
#
# (c) 2011-2014 SUSE Linux GmbH, Germany. Author: L.Pinne.
# GNU General Public License. No warranty.
#
# Version: 0.1 2014-08-14
#
EXE="$0"
CFG="/etc/ClusterTools2/cs_show_cluster_patterns"
test -s $CFG && source $CFG
test -z "/etc/corosync/corosync.conf" &&\
test -z "${CL... | true |
da37a6eade8462b4bfcac44586f78126a6091db4 | Shell | norisio/dotfiles | /deploy_nvim.sh | UTF-8 | 252 | 3.265625 | 3 | [] | no_license | #!/bin/bash
HERE=$(cd $(dirname $0); pwd)
XDG_NVIM_DIR=$HOME/.config/nvim
mkdir -p $XDG_NVIM_DIR
echo "created $XDG_NVIM_DIR"
function link() {
ln -s "$HERE/$1" "$XDG_NVIM_DIR/$1"
echo "created symbolic link to $1"
}
link init.lua
link lua
| true |
bdfc991a43f5f889689499f2ce574d471254191d | Shell | tteck/Proxmox | /install/transmission-install.sh | UTF-8 | 905 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2021-2023 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get inst... | true |
d3e771a55ec0554cc0178d0f08f03922b786afe6 | Shell | c-sh0/old_website | /sh/ndd | UTF-8 | 474 | 3.796875 | 4 | [] | no_license | #!/bin/ksh
#
# ndd.sh
#
# Andres Kroonmaa kindly supplied a nifty script to check all existing values
# for a network component (tcp, udp, ip, icmp, etc.). Solaris
# Uses ndd(1M) see man page for more information
#
PATH=/usr/sbin:$PATH
if [ -z "$1" ]; then
echo "Usage: $0 [udp | tcp | ip | icmp | arp | ... ]"
e... | true |
c2523ce2c2a66ebe112b1bc3bd1fc576d157f9b8 | Shell | tsitle/dockerimage-ws-apache_base | /build-ctx/files/start.sh | UTF-8 | 25,646 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#
# by TS, May 2019
#
VAR_MYNAME="$(basename "$0")"
# ----------------------------------------------------------
# @param string $1 Message
#
# @return void
function _log_err() {
local TMP_LOG_PATH="${LCFG_LOG_PATH:-/var/log}"
echo "$VAR_MYNAME: $1" >/dev/stderr
echo "$(date --rfc-3339=seconds) $VAR_... | true |
948f7ee2428f350f5b0fe0b683b3ffddddab8b9f | Shell | artisdom/_ebDev | /scripts/font/FontForgeFonts2Fonts.sh | UTF-8 | 2,555 | 4.21875 | 4 | [] | no_license | # DESCRIPTION
# Converts all FontForge-compatible files in the current directory of type $1 to type $2.
# DEPENDENCIES
# - FontForge installed and in your PATH
# - for Windows, cygpath (which comes with both Cygwin and MSYS2)
# USAGE
# Run with these parameters:
# - $1 Source type to convert from
# - $2 Target type t... | true |
1714e27f5ab52e2a3f4b8f3aef49cb7f792632e3 | Shell | jsutlovic/screenrunner | /installer.sh | UTF-8 | 979 | 3.75 | 4 | [
"BSD-2-Clause-Views"
] | permissive | #!/usr/bin/env bash
## Setup script for screenrunner
## Install main scripts into $HOME/bin, creating if it doesn't exist,
## Copy
if [ ! -d "$HOME/bin" ]; then
mkdir -p $HOME/bin
fi
cp -t $HOME/bin scrrnr scrcmd bashrnr
if [ -f "$HOME/.screenrc" ]; then
echo "You already have a .screenrc, setting ours up in $... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.