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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e1702371a05bc603acda2e621ff6aa72371b64dc | Shell | Drakeo/ktown | /deps/alldeps.SlackBuild | UTF-8 | 1,948 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Build (and install) all KDE dependencies
# Modified from the KDE Slackware script by Eric Hameleers <alien@slackware.com>
# Set initial variables:
CWD=$(pwd)
TMP=${TMP:-/tmp}
# Set the config option variables if they are not already set:
[ -r ./alldeps.options ] && . ./alldeps.options
# This avoids comp... | true |
786ce8b01bcfcb20cf8fd1e3a3259c979eeb32a2 | Shell | stepro/azure-iot-pcs-remote-monitoring-dotnet | /scripts/build | UTF-8 | 147 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Script required by git pre-commit hook
APP_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )/"
cd $APP_HOME | true |
a90d2e9a84469d2b5b6c738ddb4cae504250d349 | Shell | rafecolton/wip | /wip | UTF-8 | 1,145 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o pipefail
# GLOBALS
readonly WIP_PATH="$HOME/.wip"
readonly WIP_TMP="$HOME/.wip.tmp"
readonly CMD_LS="ls"
readonly CMD_ADD="add"
readonly CMD_RM="rm"
readonly CURRENT="$(pwd -P)"
readonly BASE="$(basename $CURRENT)"
# set signal trap
trap "rm -f $WIP_TMP" EXIT SIGINT SIGTERM
usage()... | true |
542b7cd127146fa65062edc80bf4b7cf8dffaee7 | Shell | gakaya/initial_sys_config | /install_docker_CentOS7.sh | UTF-8 | 2,667 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# https://pkg.jenkins.io/redhat-stable/...
# http://www.unix.com/shell-programming-and-scripting/249212-sed-command-replace-line-file-using-line-number-output-pipe.html
# https://unix.stackexchange.com/questions/69112/how-can-i-use-variables-when-doing-a-sed
#
# Date: Sun Dec 31 21:40:01 PST 2017 ... | true |
46e576fee5cf96a885cff49fb0d8d91f49b5767a | Shell | hyp3r5pace/useful-bash-scripts | /src/battery_status.sh | UTF-8 | 789 | 2.828125 | 3 | [] | no_license | #!/bin/zsh
echo "---------------------BATTERY INFORMATION------------------------------"
percentage=$(cat /sys/class/power_supply/battery/capacity)
echo "current charge percentage: $percentage%"
charging_status=$(cat /sys/class/power_supply/battery/status)
echo "charging status: $charging_status"
health=$(cat /sys/... | true |
38e8d622a0872e0243040f114b4427914b2c9648 | Shell | waqarnabi/tybec | /lib-intern/ocl2tir_python_obs/code_MScStudents/tools/gen_llvm_ir_no_inline.sh | UTF-8 | 491 | 2.96875 | 3 | [
"MIT"
] | permissive | # Strip .cl from filename
filename="${1%.*}"
# Copy the original file to llvm_tmp_.cl
cp $1 llvm_tmp_.cl
# llvm_tmp_.cl is #included in llvm_tmp.c
# llvm_tmp.c has macros to undef OpenCL type attributes etc
# Run LLVM
# Make sure the LLVM version is 3.8
clang -O0 -S -Wunknown-attributes -emit-llvm -c llvm_tmp.c -o l... | true |
d24b77481c984659b062b77977cefe99c642858c | Shell | areejhelal/MP3-RaspberryPi-Buildroot | /mp3_overlay/etc/profile.d/readDisplayDaemon.sh | UTF-8 | 389 | 3.109375 | 3 | [] | no_license | #!/bin/sh
currentState=`cat /tmp/mp3_state`
clear
echo "Welcome to MP3!"
sleep 1
clear
echo $currentState
while :
do
if [ `cat /tmp/clear_flag` -eq 1 ] || [ "$currentState" != "`cat /tmp/mp3_state`" ]; then
currentState=`cat /tmp/mp3_state`
clear
echo $currentState
echo '0' > /tmp... | true |
2b3cb5fcd3ac7abda226317bc109d449a23c7293 | Shell | bakoenig/config | /bin/calendar.sh | UTF-8 | 383 | 3.09375 | 3 | [] | no_license | #
# calendar.sh
#
# show 3 month calendar
cal -3
# show time
echo ""
echo "$(date +%A," "%B" "%d)"
echo ""
echo "$(TZ='America/Los_Angeles' date +%a\ %H:%M) in Los Angeles"
echo "$(TZ='America/New_York' date +%a\ %H:%M) in New York"
echo "$(TZ='Europe/Berlin' date +%a\ %H:%M) in Berlin"
echo "$(TZ='Asia/Tokyo' date +... | true |
cf08eb5ae82e991bde88ac5aa04b13a7f94118fd | Shell | ArnieBerg/seqdb | /kipper/biomaj_utils/cleanup_cpn60.sh | UTF-8 | 497 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Bash script to:"
echo " - Convert cpn60 database into proper fasta format."
echo "Source is http://haruspex.usask.ca/cpnDB/cpn60_a_nut"
echo "Damion Dooley, Dec 19, 2014"
echo "Running..."
file_name=$datadir/$dirversion/future_release/$1
# All entries with >v are preliminary / not valid yet.
sed --... | true |
e104788b65bde6d87461be1070602711a4dfde42 | Shell | keguo1119/signal_quaility_check | /script/run.sh | UTF-8 | 551 | 2.921875 | 3 | [] | no_license | #!/bin/sh
date_t=$(date +"%Y-%m-%d-%H-%M-%S")
for i in $(seq 0 2)
do
ipaddr=$(ifconfig usb$i | grep "inet addr" | awk '{print $2}' | awk 'BEGIN {FS=":"} {print$2}')
echo $ipaddr
if [ "$ipaddr" = "" ]; then
continue
fi
date +"%Y-%m-%d %H:%M:%S" > /root/scanner/i... | true |
01b4f2a62bcabc7b26eb03dd514a30d78234daa9 | Shell | barry-scott/scm-workbench | /Source/Hg/Experiments/make-status-test-repo.sh | UTF-8 | 1,837 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
set -e
SCRIPT_DIR=${PWD}
REPO=${TMPDIR:? set TMPDIR}/test-hg-repo-status
rm -rf ${TMPDIR:? set TMPDIR}/test-hg-repo-status
mkdir ${REPO}
hg init ${REPO}
cd ${REPO}
hg status
mkdir Folder1
mkdir Folder1/Folder1.1
mkdir Folder2
cat <<EOF >.hgignore
syntax: glob
*.pyc
*~
.bash_history
.director... | true |
8a2e4d712108d7794d849de183f8f309a7094ad1 | Shell | maxfish/mgl2d | /clean.sh | UTF-8 | 319 | 2.609375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | # Run this script to remove folders and files produced from PyPI build and pytest.
# Returns the project folder to a pre-build state.
echo "Remove PyPI build folders and files..."
rm -rf build/
rm -rf dist/
rm -rf mytestpackage.egg-info/
echo "Remove pytest cache folder..."
rm -rf .cache/
echo "Cleanup complete."
| true |
2ad1d46c87b3b12afc70f8a4b50dc7783a9be582 | Shell | lurch/BarrysEmacs | /Editor/PyQtBEmacs/bemacs-linux.sh | UTF-8 | 1,051 | 3.25 | 3 | [] | no_license | #!/bin/bash
export PYTHONPATH=${BUILDER_TOP_DIR}/Editor/PyQtBEmacs:${BUILDER_TOP_DIR}/Editor/exe-pybemacs
case "${BUILDER_CFG_PLATFORM}" in
Linux-Fedora)
export BEMACS_EMACS_LIBRARY=${BUILDER_TOP_DIR}/Kits/Linux/RPM/ROOT/usr/local/bemacs8/lib/bemacs
;;
Linux-Debian)
export BEMACS_EMACS_LIBRARY=${BUILDER_TO... | true |
fd4e38adca0f8386c6ae48f7f0efe7f91a40ce52 | Shell | dazza-codes/aws-ops | /lib/bash/debian/git.sh | UTF-8 | 161 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if which git > /dev/null; then
echo "Found git installation"
else
echo "git installation"
apt-get install -y -qq git git-doc git-man gitk
fi
| true |
a0dfc078fffecea58b8c8f6b4e1dc550dbd5662b | Shell | megaannum/bash_info | /xterm | UTF-8 | 1,477 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#
# xterm
#
# Place this in your path before /usr/bin/xterm
#
# This script is only needed when a new Xterm is started. When I
# reboot Linux (Fedora) and restart the Window Manager (KDE),
# the Window Manager "knows" what applications were running on
# its previous shutdown (and those application's comm... | true |
dcdb2253b0946a29c286678b5620e43640ebcdfd | Shell | pperezrubio/deep_q_rl | /deep_q_rl/converttomovie.sh | UTF-8 | 166 | 2.9375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
if [ $# -lt 1 ]
then
output=output.mp4
else
output=$1
fi
if [ $# -lt 2 ]
then
fps=15
else
fps=$2
fi
avconv -r $fps -i frame%06d.png $output
| true |
61f3c91b3b136209df70139a0395386c0856bf2f | Shell | 1092-bioinformatics/finalproject-110753110 | /code/scripts/step5_SIS-analysis | UTF-8 | 987 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#################################################################
# INPUT:
# tree
# species_tree [optional]
# OUTPUT:
# tree_SIS.ph
##################################################################
TREEBEST_CMD="../../bin/treebest sdi"
PLOT_CMD="../../scripts/plot_SISvsNumLeaf.R"
INPUT_TREE=$1
[[ $# == ... | true |
73c32c42b5d56de9a6fa2552fe5cc8df534d380f | Shell | ZengFLab/PyroTools | /xgsutils/bamutils/xBamCoverageEachChr | UTF-8 | 1,615 | 4 | 4 | [] | no_license | #!/bin/bash
BIOINFO_TOOL_XGSUTILS=$(realpath $0 | xargs dirname)"/../"
xgsutils_averageDepth="$BIOINFO_TOOL_XGSUTILS/bamutils/xBamAverageDepth"
# help message
help(){
>&2 echo "SYNOPSIS"
>&2 echo " xBamCoverageEachChr [OPTIONS] <GENOME_FASTA> <BAM_FILE>"
>&2 echo ""
>&2 echo "DESCRIPTION"
>&2 echo " Co... | true |
563a8f8f73030264f0e5b1fe44781adcce6b0a2e | Shell | Symmetra/nominatim-docker | /scripts/update-multiple-countries.sh | UTF-8 | 4,287 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Usage:
# ./update-multiple-countries.sh [<log file>]
#
# See also: https://github.com/openstreetmap/Nominatim/issues/60
# Nominatim-Osmium does not support update multiple countries by default
DEFAULT_OUT="/dev/stdout"
OUT="$DEFAULT_OUT"
CUSTOM_OUT="$1"
USERNAME="nominatim"
NOMINATIM_HOME="/srv/nominatim... | true |
f171d0f6e048d3942b933734784a6547ff0ebe5b | Shell | guardian/dotcom-rendering | /scripts/ci-ar.sh | UTF-8 | 1,286 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# exit when any command fails
set -e
git fetch origin main
gitBranches="$(git branch -r)"
echo "git branches: $gitBranches"
currentBranch="$(git rev-parse --abbrev-ref HEAD)"
echo "current branch: $currentBranch"
# files that were changed between current branch and main
files="$(git diff --name-only $c... | true |
ffde88084e69e0d2f1afc97f08cf2cc8ad9376b5 | Shell | fxthomas/conky | /start | UTF-8 | 97 | 2.78125 | 3 | [] | no_license | #!/bin/sh
CONKY=/usr/bin/conky
for f in $HOME/.conky/*.conf;
do
$CONKY -c $f
sleep 2s
done
| true |
1030298aeedb89db2d09b67ff481548ab77bdc26 | Shell | thomaslee/spin-debian | /debian/tests/cli-tests | UTF-8 | 249 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
exec 2>&1
test_spin_usage() {
local output="$(spin --bogus 2>&1 || true)"
if ! echo "$output" | grep -q 'use: spin'; then
fail "expected to find 'use: spin' in usage output"
fi
}
# TODO more tests here
. shunit2
| true |
7e76a99b48f88062b7adcfe7e50ccf951cc79163 | Shell | Odin-CI/dotfiles | /config | UTF-8 | 339 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
# Author: Aaron Kuehler
# Purpose: Configures the shell
# Add pretty colors
export CLICOLOR=1
# Setup Ruby Version Manager
RVM_CONFIG=$DOFILES_THIRD_PARTY_HOME/rvm
if [ -f $RVM_CONFIG ];
then source $RVM_CONFIG
fi
# Setup Git
GIT_CONFIG=$DOFILES_THIRD_PARTY_HOME/git
if [ -f $GIT_CONFIG ];
... | true |
0b248956fcb14debd02cc1f68645055d1fab1f93 | Shell | dpolioudakis/scRNAseq_C196_001_002 | /Merge_FASTQs_Variant_Calling.sh | UTF-8 | 1,239 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Damon Polioudakis
# 2016-04-21
# Select fastqs for human only capture sites and merge lane 1 and 2 to prepare
# for variant calling
# Suggested script calls:
# qsub -cwd -o logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).log -e logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).error -S /bin... | true |
bc766710ccdcd7e0a4b83b3fe3bcfe19b5575c1b | Shell | nazoking/git-multi-ssh.sh | /git-multi-ssh.sh | UTF-8 | 1,409 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# https://github.com/nazoking/git-multi-ssh.sh/blob/master/git-multi-ssh.sh
# ssh deploy key manager for git command ( ex: for private submodules )
#
# `export GIT_SSH=git-multi-ssh.sh`
#
# and set environment valiable as `DEPLOY_KEY_[name]=[private-key]`
#
# - when repository ssh url is `git@github.com:naz... | true |
9df3c9e4fbcffd3c6961a6cfb237a37b6eb56e52 | Shell | hachibits/dotfiles | /install.sh | UTF-8 | 2,651 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
platform=$(uname)
if [[ $platform == 'Darwin' ]]; then
# Homebrew
if ! command -v brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "Updating homebrew"
brew install --cask xquartz iterm2 keepingyou... | true |
036719c8bd31c926cafe3b7424cd56459b0ebfce | Shell | BioContainers/ci | /test-built-container | UTF-8 | 4,996 | 4.15625 | 4 | [] | no_license | #!/bin/bash
##################
# Constants {{{1 #
##################
PROG_NAME=$(basename $0)
VERSION=1.0
YES=yes
#########################
# Global variables {{{1 #
#########################
DEBUG=0
CONTAINER_IMAGE=
#CMDS_FILE=test_cmds.txt
CMDS_FILE=
TESTDATA_DIR=
REPO="BioContainers/containers"
GITHUB_STATUS_TOK... | true |
cfc323c7aa7d566af7c41741d602d03d45bcecd4 | Shell | toke/dotfiles | /waybar/.config/waybar/modules/loopy | UTF-8 | 89 | 2.625 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
while true ; do
echo "abc $SECONDS"
sleep 5
done
| true |
ab2db05c538747038e95a4366ddfc643dab7bd02 | Shell | BigWednesdayIO/kubernetes-deployment-scripts | /kubernetes_deploy.sh | UTF-8 | 3,630 | 3.578125 | 4 | [] | no_license | #! /bin/bash
set -e
usage="Usage: './kubernetes_deploy.sh image-name selector namespace context rc' e.g. './kubernetes_deploy.sh myImageName app=myApp myNamespace . ./kubernetes/rc.json ./kubernetes/service.json'"
if [[ $# -lt 6 ]]; then
echo "Incorrect number of arguments, minimum of 6 required";
echo $usag... | true |
a4f4a5b416d029c7e6fadf2d0e36b173c210cba7 | Shell | sjznxd/myluci-11 | /luci/luci/applications/luci-aria2/root/etc/aria2/post | UTF-8 | 203 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
urldecode(){
echo -e "$(sed 's/+/ /g; s/%/\\x/g')"
}
rawfile="$3"
newfile="$(dirname "$rawfile")/$(basename "$rawfile" | urldecode)"
[ "$rawfile" != "$newfile" ] && mv "$rawfile" "$newfile" | true |
e87842258becf214ef1f9c690600923701cf8ea8 | Shell | neurabenn/precon_all | /bin/N4_pig.sh | UTF-8 | 3,860 | 4 | 4 | [] | no_license | #!/bin/bash
set -e
Usage() {
echo " "
echo "Usage: `basename $0` [options] -i <T1_image> -x <Binary Mask>"
echo ""
echo " Compulsory Arguments "
echo "-i <T1.nii.gz> : Image must include nii or nii.gz file extension "
echo "-x <binary brain mask> : Binary brain mask... | true |
82c85a5648e7f28ce0801ecba7a6a7089f7e483a | Shell | azroger/cyverse_agave_apps | /htprocess_jellyfish_test.sh | UTF-8 | 8,940 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#$ -V #Inherit the submission environment
#$ -cwd # Start job in submission directory
#$ -N jellytest2 # Job Name
#$ -A iPlant-Collabs
#$ -j y # Combine stderr and stdout
#$ -o $JOB_NAME.o$JOB_ID # Name of the output file (eg. myMPI.oJobID)
#... | true |
8764490863cf2c6ba7bc109b2dd889eddf0d2343 | Shell | veltzer/bashy | /core/measure.bash | UTF-8 | 330 | 2.96875 | 3 | [
"MIT"
] | permissive | function measure() {
local -n __user_var=$1
local function_name=$2
local -n __var_name=$3
local -n __var_name2=$4
local _start
local _end
_start=$(date +%s.%N)
"${function_name}" __var_name __var_name2
#__var_name=$?
_end=$(date +%s.%N)
local _diff
_diff=$(echo "${_end} - ${_start}" | bc -l)
__user_var="${... | true |
56a01bfbc958959c28fb735515baec76d18c8410 | Shell | Juravenator/submarine-cables-backup | /stitch.sh | UTF-8 | 487 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
IFS=$'\n\t\v'
cd `dirname "${BASH_SOURCE[0]:-$0}"`
if [[ ! -d "tiles" ]]; then
echo "run scrape.sh first"
exit 1
fi
X_TILES_CNT=`find tiles/0 -type f | wc -l`
Y_TILES_CNT=`find tiles -mindepth 1 -maxdepth 1 -type d | wc -l`
echo "generating a ${X_TILES_CN... | true |
cbd9b3f994fbf6a6116106edf784dbe800955f6a | Shell | Ghostcode75/Bash-Tools | /GIT/git-getall.sh | UTF-8 | 570 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
USERNAME='username'
PASSWORD='password'
ORGSNAME='organisation'
SSHBYPAS='-work'
ssh-add -l ; read -p "If your key is not present please add, otherwise type [n]: " load
[[ $load != n ]] && ssh-add $(eval echo $load)
mkdir -p ~/Repositories/${ORGSNAME} \
&& cd $_
for REPO in $(curl -sSL -u "${USE... | true |
c11e6a0e5630456a19c526930f2099984188d1bb | Shell | flxndn/bin | /fecha_foto.sh | UTF-8 | 400 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if [ x$1 = "x-h" ]; then
echo "
* $(basename $0)
* Uso
> $(basename $0) fichero1 [fichero2 ...]
* Descripción
Para cada uno de los ficheros usados como parámetros devuelve una
cadena con la fecha de modificación de la forma aaaa/mm/dd.
Apto para almacenar como lo hace shotwell."
exit 0
fi
... | true |
a765655a4d92796c8661126f985ec6ad96b0f1a4 | Shell | Perpedes/hill_climbing_sailboat_controller | /utils/mcu_start_all_processes.sh | UTF-8 | 533 | 2.515625 | 3 | [] | no_license | #!/bin/bash
mkdir -p sailboat-log/system
echo "-> Starting U200 process.."
nohup sh mcu_launcher_u200.sh > sailboat-log/system/u200.log &
echo "-> Starting ACTUATORS process.."
nohup sh mcu_launcher_actuators.sh > sailboat-log/system/actuators.log &
echo "-> Starting CONTROLLER.."
nohup sh mcu_launcher_controller.s... | true |
7070fbdd8de3ccd68f611a437604a7cb6b7af50d | Shell | andreeaDumitrache29/AA_homework4 | /checker.sh | UTF-8 | 879 | 3.71875 | 4 | [] | no_license | #!/bin/bash
input_dir=./input/
output_dir=./output/
ref_dir=./ref/
tests_nr=$(ls $input_dir | wc -w)
points_per_test=$((100/tests_nr))
make build
if [ $? -ne 0 ]; then
"Makefile failed."
else
total_points=0
for ((i=1; i<=$tests_nr; i++)); do
printf "Test $i: "
cp $input_dir/tes... | true |
28e6248e992e94caac321ee7e1174cf377200ac9 | Shell | alisw/alidist | /autotools.sh | UTF-8 | 5,184 | 3.515625 | 4 | [] | no_license | package: autotools
version: "%(tag_basename)s"
tag: v1.6.3
source: https://github.com/alisw/autotools
prefer_system: "(?!slc5|slc6)"
prefer_system_check: |
export PATH=$PATH:$(brew --prefix gettext || true)/bin:$(brew --prefix texinfo || true)/bin;
which autoconf && which m4 && which automake && which makeinfo && w... | true |
ec07ae5a8b9ce7badbbddc55bfd9767b8d6177e9 | Shell | zanewestover/dotfiles | /bash/environment.sh | UTF-8 | 4,326 | 2.96875 | 3 | [] | no_license |
# Make sure bash can find .inputrc
test -n "$INPUTRC" || export INPUTRC="~/.inputrc"
# Collect some info about the local system
export HOST="$($uname -n)"
export OS="$($uname -s)"
test -n "$UNAME" || export UNAME="$($uname)"
# Tunnel CVS via SSH
export CVS_RSH="ssh"
export IRCNAME="dan"
# Erase duplicate entries f... | true |
42f3302aefb486472a55ce3a09cfe9fd05a4fd1f | Shell | mpetri/RoSA | /scripts/generate_patterns.sh | UTF-8 | 1,671 | 3.140625 | 3 | [] | no_license | #!/bin/bash
threshold=4096
fac_dens=64
rosa_exec="../bin/rosa_sd2_delta"
tmp_dir="../tmp/"
outdir="../data/output/"
poccmin=50
poccmax=100
if [ $# -lt 1 ]; then
echo "Usage: ${0} file [threshold] [fac_dens]"
echo " file : File containing the example string"
echo " threshold: Block threshold; default=${thres... | true |
e8b1bb0c37c3623fa26103c240e5f30751d82233 | Shell | nuxlli/azk-crystal | /src/libexec/setup_circle.sh | UTF-8 | 313 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
clone_dir=`pwd`/shards
if [[ ! -e $clone_dir/bin/shards ]]; then
if [[ ! -d $clone_dir ]]; then
git clone https://github.com/crystal-lang/shards $clone_dir
fi
cd $clone_dir
crystal build src/shards.cr -o bin/shards --release
fi
sudo install -m 755 $clone_dir/bin/shards /usr/local/bin
| true |
602bc348eada5cd226763bc401e605d29a1fe23c | Shell | jemacchi/docker.sdi.samples | /compose/nginx-proxy-geocluster/jetty/bin/startup-admin.sh | UTF-8 | 4,695 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# -----------------------------------------------------------------------------
# Start Script for GEOSERVER
#
# $Id$
# -----------------------------------------------------------------------------
# Guard against misconfigured JAVA_HOME
if [ ! -z "$JAVA_HOME" -a ! -x "$JAVA_HOME"/bin/java ]; then
echo "Th... | true |
0b4e0130b0d050410d9cb01207260d29f7345beb | Shell | PengixH50WXC/HytaleAPI | /hytale | UTF-8 | 1,056 | 3.75 | 4 | [] | no_license | #!/bin/bash
post(){
result=$(curl --request GET --url https://hytale.com/api/blog/post/published -s)
echo "Hytale blog posztok"
echo "Készítette Boda Viktor (H50WXC)"
echo "A hytale blog post címei:"
echo
I=0
year=2020
month=12
while [ "$(echo $result | jq .[$I])" != null ]
do
echo $result | jq .[$I].title | tr -d "\... | true |
c73d5bd750396beb2e0679cdb9057933f4c57a37 | Shell | mircomannino/mkudoobuntu18_04 | /include/packages.sh | UTF-8 | 1,630 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Script fot update and install the packages and programs
# Included script
DIR_PACKAGES=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source "$DIR_PACKAGES/utils/color.sh"
source "$DIR_PACKAGES/include/resize.sh"
################################################################################
functi... | true |
a2d586bfe36b480780b1d1210895faf208fd3e17 | Shell | brainsik/dotfiles | /bash/.bash_finale | UTF-8 | 734 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
# Interactive pieces or output we want at the end
# these often get set with root perms which jacks shit up
stat="stat -f %u" # BSD
[[ "$OSNAME" = "Linux" ]] && stat="stat -c %u"
if [[ "$USER" == "brainsik" ]]; then
for file in $HOME/.bash_history $HOME/.viminfo; do
if [[ -e $file ]] &... | true |
b994e608894f6617deadf00d5955607091c082a8 | Shell | YunoHost-Apps/rspamdui_ynh | /scripts/remove | UTF-8 | 1,507 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD ... | true |
36e45349c54535ab90618c5a0266dd67653eeebd | Shell | TheMonsterCheese/shell-scripts | /practice-scripts/md2pdf | UTF-8 | 230 | 3.53125 | 4 | [] | no_license | #!/bin/bash
file="${1}"
if [ -z "${file}" ]
then
echo "Usage: md2pdf <file without extension>"
exit 1
fi
if [ ! -f "${file}.md" ]
then
echo "expected ${file}.md"
exit 1
fi
pandoc -o "${file}.pdf" "${file}.md"
| true |
cfb7bf67a77e0a7f275eba70cb15bbf247bc4d3e | Shell | rmadar/pandoc-utils | /scripts/NBtoMD~ | UTF-8 | 1,309 | 3.328125 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]; then
echo ""
echo "Script usage: "
echo " NBtoArticle <input.ipynb> <output.pdf>"
echo ""
exit 1
fi
# Notebook -> markdown
jupyter-nbconvert --to markdown ${1} --template=${PANDOC_TEMPLATES}/nbconverter_md_pandoc.tpl
# Get the name wihtout the extension
FILE=${1}... | true |
16693af0794c6778369faca8e76b2ed4e4119816 | Shell | Lucas042-crypto/GrandStream | /Massa_GrandStream.sh | UTF-8 | 361 | 3.546875 | 4 | [] | no_license | #!/bin/bash
SENHA=$1
ACAO=$2
if [ $# -lt 2 ]; then
echo "Faltou passar senha e ação a ser tomada (REBOOT OU RESET)!"
exit 1
fi
echo "Numero de argumentos: $#"
while read IP; do
echo "RESET:$IP"
if [ $? -eq 0 ]; then
if [[ -n "$IP" ]]; then
curl "http://$IP/cgi-bin/api-sys_operation?passcode=$SENH... | true |
bcfab7cdd615f78ee8bd3b81c9000c10b7107060 | Shell | piyushghai/training_results_v0.7 | /DellEMC/benchmarks/ssd/implementation/mxnet/build_ssd.sh | UTF-8 | 765 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# GPU driver path
export PATH=/mnt/driver/bin:$PATH
export LD_LIBRARY_PATH=/mnt/driver/lib64:$LD_LIBRARY_PATH
# Update container's pycocotools to optimized version
pip uninstall -y pycocotools
export COCOAPI_VERSION=2.0+nv0.4.0
export COCOAPI_TAG=$(echo ${COCOAPI_VERSION} | sed 's/^.*+n//')
pip instal... | true |
91a64dce311c3d6d0bf0c36e642eefbbe2824523 | Shell | nings/testbed | /script/upload_cfg.sh | UTF-8 | 516 | 3.96875 | 4 | [] | no_license | #!/bin/bash
. node.conf
USAGE() {
echo USAGE:
echo "$0 <configfile> <number of nodes>"
exit 1
}
if [ $# -lt 2 ];then
USAGE
fi
cd $(dirname $0)
configfile=$1
node_count=$2
for((i = 0; $i < $node_count; i++)); do
node_name="node-"$i
# Create .Haggle on the node.
ssh $NODE_USERNAME@$node_name mkdi... | true |
578eb7accacb9ac9807c99fd1860b0eb7d405a28 | Shell | lubatang/LLib | /run.sh | UTF-8 | 647 | 3.78125 | 4 | [] | no_license | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage:"
echo "$ ./run.sh [Path of Test Directory]"
echo
echo "example: ./run.sh Color\ Models/"
exit
fi
VIEWER=lviewer.debug
DIRECTORY=$1
files=`find ${DIRECTORY} | grep --color=never ".obj$"`
echo "Bump map path? (skip this step by typing \`enter')";
read BUMP_MAP;... | true |
23e802fc863ca66714a99836d65d880909b9c19a | Shell | bopopescu/recipes | /universe_on.sh | UTF-8 | 2,241 | 3.21875 | 3 | [] | no_license | #PREREQUISITES
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y epel-release
yum install -y git python-pip python34 jq nginx
curl https://bootstrap.pypa.io/get-pip.py | python3.4
pip3 install --upgrade pip jsonschema
# upgrade python to 3.6+ for latest universe
sudo yum -y ... | true |
c797de3a3b9f17a4b02e4fd26f70ddd72b5e0adf | Shell | webclinic017/ml_monorepo | /statarb/src/bin/checkcrontab.sh | UTF-8 | 404 | 3.65625 | 4 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
if [ "$ROOT_DIR" = "" ]; then
exit "Must set ROOT_DIR!"
else
. $ROOT_DIR/src/bin/include.sh
fi
TMPFILE=$TMP_DIR/checkcrontab.$$.tmp
MACHINE=`echo $HOSTNAME | cut -d \. -f 1-2`
crontab -l | diff -u - $ROOT_DIR/cron/$MACHINE.cron > $TMPFILE
RESULT=$?
if [ -s $TMPFILE ]
then
echo "crontab not up ... | true |
b8356d95bf8976ad22fcd9177b8c55c8ee22aa32 | Shell | nebula-actions/nebula-gears | /docker/images/oss-upload.sh | UTF-8 | 630 | 3.765625 | 4 | [] | no_license | #! /bin/bash
[[ $# -lt 2 ]] && echo "$0 <subdir> <files...>" && exit 1
CMD=""
if [[ ! -z "${OSS_ENDPOINT}" ]] && [[ ! -z "${OSS_ID}" ]] && [[ ! -z "${OSS_SECRET}" ]]; then
CMD="ossutil64 -e ${OSS_ENDPOINT} -i ${OSS_ID} -k ${OSS_SECRET}"
elif [[ -f $HOME/.ossutilconfig ]]; then
CMD="ossutil64"
elif [[ -f /run/... | true |
f48e50f69e7d4d9daf0a9b5325161494eed09a8d | Shell | kraeml/raspberry-edu-devops | /scripts/install_ansible.sh | UTF-8 | 609 | 3.125 | 3 | [] | no_license | #!/bin/bash -l
# script name: install_ansible.sh
# sudo: no
set -x
if [ $(id -u) = 0 ]; then
echo "to be run with no sudo"
exit 1
fi
echo "Install ansible via pip"
sudo apt-get install -y libffi-dev libssl-dev cowsay sshpass ieee-data
#ToDo kerberos dependencies
ANSIBLE="ansible>=2.4.0=<2.7 pywi... | true |
a51f7fc0133218fb22062ee95bcceca10e465d80 | Shell | maikelarabori/shell-script-examples | /args-basics.sh | UTF-8 | 131 | 2.734375 | 3 | [] | no_license | #!/bin/sh
echo "Argument 1: $1"
echo "Argument 2: $2"
echo "Total of arguments: $#"
echo "The actual string of arguments: $@"
| true |
d5690c4ef7d2ab6e0089b63b84f4e1b47299ab35 | Shell | Mcdonoughd/ansible-playbooks | /scripts/shell/check_process.sh | UTF-8 | 181 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/bash
pid=`ps ax | grep -i 'nginx' | grep -v grep | awk '{print $1}'`
if [ -n "$pid" ]
then
echo "Nginx is Running as PID: $pid"
else
echo "Nginx is not Running"
fi
| true |
55f363930f5c3d302817ba19e7ec8bf927b9a16d | Shell | nju33/.dotfiles | /.zsh.d/functions/version-management.zsh | UTF-8 | 447 | 3.109375 | 3 | [] | no_license | function install_homebrew() {
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
function install_rbenv() {
# https://github.com/rbenv/rbenv#installation
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
}
funct... | true |
7236aa7fb8538f72264ceee82e26fe6b75d12fbb | Shell | datspike/excel_validator | /build.sh | UTF-8 | 2,189 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
green='\e[0;32m'
yellow='\e[33m'
bold='\e[1m'
endColor='\e[0m'
usage() {
echo -e "
${green}excel_validator compiler v1.1:
==================================${endColor}
$0 option
${yellow}Available options:
-b --build - build executable
-c --clean - delete prepared files without executable... | true |
e2f77781d7b5693ee0b194f5945d5cef3e20b4d7 | Shell | eggsyntax/packages | /deploy-changed.sh | UTF-8 | 1,286 | 3.5625 | 4 | [] | no_license | #!/bin/bash
set -e
# Retrieve current versions from Clojars
declare -A versions
OFS=$IFS
IFS=$'\n'
for e in $(curl -s https://clojars.org/api/groups/cljsjs | jq -c ".[]"); do
group=$(echo $e | jq -r ".group_name")
artifact=$(echo $e | jq -r ".jar_name")
id="$group/$artifact"
version=$(echo $e | jq -... | true |
3c1271891a41044d8549104565610e30f041186d | Shell | marcoAmir/NGS_analysis | /RNAseq/src/indexGenomeForSTAR.sh | UTF-8 | 4,075 | 3.859375 | 4 | [] | no_license | #!/bin/bash -e
# Amir Marcovitz
#
# A wrapper for indexing a genome+gtf for RNA-seq analysis with STAR
#
# Inputs: genome assembly for which 2bit is availale (e.g., mm10)
# relevant genome annotation file (gtf) from Ensembl
#
# for some assemblies (e.g., mm10, rn6, bosTau8, hg38) the script will download gtf
# from e... | true |
31818dd079ef739d4bbce56f444b0c60245515d2 | Shell | aubema/aodsem-2 | /Scripts/epar_filte | UTF-8 | 1,125 | 3.5 | 4 | [] | no_license | #!/bin/bash
echo " *******************************************************"
echo " * *"
echo " * Edit parameter for filteraod *"
echo " * *"
echo " * Apply a maximum limit to an ... | true |
f045bb45f006d60b4cfb6ba9b83379d75cbfc370 | Shell | cpai1/Projects | /create-app-env.sh | UTF-8 | 1,054 | 2.9375 | 3 | [] | no_license | #!/bin/bash
dbname="login"
dbidentifier="itmo-chandu"
dbsgrp="sg-8f6fa4f6"
dbinstance="db.t2.micro"
dbengine="mysql"
muser="controller"
mpassword="iloveuchandu"
storage="5"
dbzone="us-west-2b"
#creating the rds instance
aws rds create-db-instance --db-name $dbname --db-instance-identifier $dbidentifier --vpc-securit... | true |
be03fc1af7ee969fbdc366f557f8736d97a85554 | Shell | apoorvakumar690/proximity | /scripts/lint.sh | UTF-8 | 450 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#current directory
dir="$(pwd)"
#parent directory
parentdir="$(dirname "$dir")"
#make flags
makeArgs=$1
#sets proper path based on if invoked from make or directly
if [ "$makeArgs" != "TRUE" ]; then
cd $parentdir
fi
# checks if golint exists or not , if not installs it
wq=$(which golint)
if [ "$... | true |
880b98039205c9a06a35d675d7af70491ce36460 | Shell | jadesoul/bootstrap | /7-install-conda/install.sh | UTF-8 | 514 | 3.078125 | 3 | [] | no_license | #for mac x86
url=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
#for mac m1
#url=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
#for linux
#url=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
#for win
#url=https://repo.anaconda.com/miniconda/Minico... | true |
ae2946774fb538da96ac9a8ec0ff0a440bded6e4 | Shell | crdoconnor/personalenv | /bin/digclock.sh | UTF-8 | 1,533 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# SCRIPT: digclock.sh
# USAGE: ./digiclock &
# PURPOSE: Displays time and date in the top right corner of the
# screen using tput command.
# To stop this digclock use command "kill pid"
################################################################
####################### VARIABLE DECLARATION ###########... | true |
c6d9b2317debeda3762d0b3e985a4799f4467244 | Shell | lalawue/shell_script_stuff | /upload_script.sh | UTF-8 | 3,007 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Program: Upload shell script
# Purpose: Upload the all the normal files under the publish_dir
# Author : Sucha <suchaaa@gmail.com>
# Version: 2.00
# Usage : Fill in your PUBLISH_DIR and FTP information blow , then
# run it anywhere.
#
# History: v2.00 - 2014.01.04
# * Using ftp... | true |
d8710cfd55dde2bed18f9b57d31cfb1217c084f6 | Shell | SultanSGillani/dotfiles | /roles/zsh/files/functions/runx.zsh | UTF-8 | 210 | 3.5625 | 4 | [
"ISC"
] | permissive |
# Run a command x times | Usage: runx <value>
# http://www.stefanoforenza.com/how-to-repeat-a-shell-command-n-times/
runx() {
n=$1
shift
while [ $(( n -= 1 )) -ge 0 ]
do
"$@"
done
} | true |
10625a4708944539b77e23de6faa633a7037631e | Shell | OSSSP/cgc-monitor | /cgc-monitor/simics/slaveInstall/cpAndRun.sh | UTF-8 | 332 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# copy the script to add user cgc to the remote host, and then execute it
# user created with no password, access via ssh keys
HOSTS=hosts.txt
if [ ! -z "$2" ]; then
HOSTS=$2
fi
pscp -h $HOSTS -l mike $1 /tmp/$1
./mikessh.sh "chmod a+x /tmp/$1" $HOSTS
echo "command will be: /tmp/$12"
./mikessh.sh "/tmp/... | true |
c71a9a110b1a78da9fe26b07353313e7337b35c3 | Shell | zs1621/bashStudy | /test_construct_01032014/various_test_construct.sh | UTF-8 | 553 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# the following 4 cases have same meaning
#1
if /usr/bin/[ -z "$1" ]
then
echo "No command-line arguments"
else
echo "First command-line argument is $1"
fi
echo
#2
if [ -z "$1" ]
then
echo "No command-lane arguments"
else
echo "First command-line argument is $1"
fi
echo
#3
if test -z "$... | true |
16de1c8dd332359adb7ee88554d2271ed4a6811f | Shell | yupswing/dotfiles | /dotfiles/bin/cpuwatch | UTF-8 | 1,561 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# LAUNCH EXAMPLES
# - launch watcher, log on file and kill old istances
# ./cpuwatch 40 >> cpuwatch.log &
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
echo "cpuwatch [THRESHOLD:40] [SLEEP:0] [AVERAGE_FOR_SECONDS:30] >> /path/to/log"
echo " the script check if the 'instant' CPU percantage usa... | true |
4e5d6340b00366075d6a40a1bca0899aaaa508a9 | Shell | devcontrol/VBoxMaestro | /VBoxMaestro.sh | UTF-8 | 932 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#VBoxManager bash script handler
command=$1
server="${@:2}"
case "$command" in
'start')
echo "Will start machine: ""$server"
VBoxManage startvm $server --type=headless
echo "DONE; \n"
;;
'save')
echo "Will save machine: ""$server"
for server
do
if [ "$server" != "save" ] && [ "$server" ... | true |
06d82ab6da178b9a33a1a00e59a7c08159a4c7fd | Shell | onireto/CS1XA3 | /Project01/project_analyze.sh | UTF-8 | 1,143 | 3.578125 | 4 | [] | no_license | #!/bin/bash
function todoLog(){
# Puts all #TODO into the the todo.log file
grep -r "#TODO" * --exclude=project_analyze.sh > todo.log;
echo "TODO is placed in todo.log";
}
function fileCount(){
# Outputs the count of haskell, java script, css , python, html and bash script files
haskell=$(find . -type f - name ".hs" |... | true |
79e5e0c9190e7f2cd63d103fc7fc5c69674d7d93 | Shell | m-e-l-u-h-a-n/Information-Technology-Workshop-I | /Linux assignments(before-mid-sem)/assignment-4/scripts/14.sh | UTF-8 | 127 | 3.09375 | 3 | [] | no_license | #!/bin/bash
echo "Enter a string"read s
if [[ $(rev <<< "$s") == "$s" ]]
then
echo "Palindrome"
else
echo "Not a Palindrome"
fi | true |
3b5398a482cf309b9eeca54727722054b7cea609 | Shell | langyuxiansheng/vue-aliplayer-v2 | /pages.sh | UTF-8 | 366 | 2.671875 | 3 | [
"MIT"
] | permissive | echo "打包 => dist";
# 打包 => dist
npm run build;
# 更新gh-pages
echo "更新gh-pages";
git branch -D gh-pages;
echo "删除gh-pages";
git checkout -b gh-pages;
echo "创建并切换到gh-pages";
git add -f dist;
git commit -m 'create gh-pages';
git push origin -d gh-pages;
git subtree push --prefix dist origin gh-pages;
echo "已推送gh... | true |
5836b1604fc097fed8d6636e4dde84202e7888a2 | Shell | ideal/scrot | /man/create-man.sh | UTF-8 | 574 | 3.65625 | 4 | [
"MIT-advertising",
"MIT-feh"
] | permissive | #!/bin/bash
# Copyright 2015-2019 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
# Create a manpage using txt2man command.
#
# This script can be used under BSD-3-Clause license.
TEST=$(txt2man -h 2> /dev/null)
[ "$TEST" ] || { echo -e "\nYou need to install txt2man, from https://github.com/mvertes/txt2man.\n"; ... | true |
dbed8e1a65cbe5ac956bfd03d5a18f0d62fb5133 | Shell | luiscg99/PracticaA-SI | /prac06.sh | UTF-8 | 331 | 3.0625 | 3 | [] | no_license | read -p "Introduce la cantidad de litros de agua consumidos: " litros
total=0
if [ $litros -le 50 ]; then
total=$((total+20))
fi
if [ $litros -gt 50 ] && [ $litros -le 200 ]; then
total=$((litros/20))
total=$((total+20))
fi
if [ $litros -gt 200 ]; then
total=$((litros/10))
total=$((total+20+30))
fi
echo "El total ... | true |
e69bca25ea99e3a8ab2e29815d01a9e720a8653e | Shell | Jay-R-H/practisefiles | /forwhilefiles/primenumber.sh | UTF-8 | 220 | 3.671875 | 4 | [] | no_license | #!/bin/bash -x
read -p "Enter the number :" n
for(( count=2 ; count<=$n ; count++ ))
do
test=$(( $n % $count ))
if [ $test -eq 0 ]
then
echo "$n is not a prime number "
else
echo "$n is a prime number "
fi
break
done
| true |
f0b5b236c9bb3d41966926fb056d6d0b1b5d6c9b | Shell | SixSq/dataClay | /demos/wordcount/3_BuildApps.sh | UTF-8 | 567 | 3.25 | 3 | [] | no_license | #!/bin/bash
DCLIB="../../tool/lib/dataclayclient.jar"
if [ ! -f $DCLIB ]; then
echo "[ERROR] dataClay client lib (or link) not found at $DCLIB."
exit -1
fi
if [ -z $COMPSSLIB ]; then
echo "[ERROR] COMPSSLIB variable with valid COMPSS path is undefined"
exit -1
fi
if [ ! -f $COMPSSLIB ]; then
echo "[ERROR] COMPSs... | true |
542581bf40629502b946e2fabd128effe6ddadff | Shell | klauern/dot-vim | /bootstrap.sh | UTF-8 | 295 | 3.234375 | 3 | [] | no_license | #!/bin/bash
# Use this script to set up your environment for vim if you have never done this before.
set -ue
readonly PROGNAME=$(basename "$0")
readonly PROGDIR=$(readlink -m "$(dirname "$0")")
cd $PROGDIR
mkdir -p tmp/{backup,swap,undo}
rm -f ~/.vimrc # if it exists
ln -rs vimrc ../.vimrc
| true |
11e845e7560985ec4a5a0f0a96e4c471211d84fe | Shell | bboerner/dotfiles | /osx/env.bash | UTF-8 | 1,014 | 2.953125 | 3 | [
"MIT"
] | permissive |
#
# Mac OS X - Pythong
#
PYTHON_ROOT="$HOME/Library/Python/2.7"
if [[ -d $PYTHON_ROOT/bin ]]; then
export PATH="$PYTHON_ROOT/bin:$PATH"
[[ -d $PYTHON_ROOT/man ]] && export MANPATH="$PYTHON_ROOT/man:$MANPATH"
[[ -d $PYTHON_ROOT/lib ]] && export LD_LIBRARY_PATH="$PYTHON_ROOT/lib:$LD_LIBRARY_PATH"
fi
unset P... | true |
397f43de7405ab4aa2ccb3d6d93eeb92920c65b3 | Shell | CitizenScienceCenter/k8s_charts | /deploy/certificate-manager/replicate.sh | UTF-8 | 329 | 3.109375 | 3 | [] | no_license | #!/bin/zsh
secret=tls-certificate-secret
echo $secret
sed "s/auxsecret/$secret/g" replicated_secret.yaml > replicated_secret-$secret.yaml
NS=$(kubectl get ns | grep -v kube-system | awk '{ print $1 }' | tail -n +2)
#Get NS - kube-system
for i in $NS; do
echo $i
kubectl apply -f replicated_secret-$secret.yaml -n... | true |
ca39f21eb414b5ed695d7faa39d0702369341b78 | Shell | mathias-nyman/blackarch | /packages/freeradius-wpe/PKGBUILD | UTF-8 | 1,635 | 2.671875 | 3 | [] | no_license | pkgname=freeradius-wpe
pkgver=2.0.2
pkgrel=3
pkgdesc="The premier open source RADIUS server - Wireless Pwnage Edition (WPE), demonstrating RADIUS impersonation vulnerabilities"
groups=('blackarch' 'blackarch-wireless')
arch=('i686' 'x86_64')
url='http://www.freeradius.org/'
license=("GPL")
provides=('freeradius')
depen... | true |
e1057cdd8927d081f42847dbec8fa622c4a0a793 | Shell | shydefoo/vimrc | /my_plugins/firenvim/release.sh | UTF-8 | 4,526 | 3.578125 | 4 | [
"MIT",
"GPL-3.0-only"
] | permissive | #!/bin/sh -e
if ! [ -e ./package.json ] ; then
echo "Not in firenvim repository. Aborting."
exit 1
fi
if [ "$1" = "" ] ; then
echo "No new version specified. Aborting."
exit 1
fi
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ] ; then
echo "Not on master. Aborting."
... | true |
bda44db4e22ea44d9acfd71911b0900f5f022947 | Shell | online-ventures/accounts | /config/docker/dev/entrypoint.sh | UTF-8 | 742 | 3.4375 | 3 | [] | no_license | #!/bin/bash
bundle check || bundle install --binstubs="$BUNDLE_BIN"
if [ -z $1 ]; then
if [ -f tmp/pids/server.pid ]; then
echo "Stopping old server processes..."
kill -SIGINT "$(cat tmp/pids/server.pid)" >/dev/null 2>&1
rm tmp/pids/server.pid
fi
echo "Starting rails server in $RAILS_ENV environment... | true |
0cb24c0498fc146b94d9f475e541c818234abd6b | Shell | kahsieh/bioconda-recipes | /recipes/grid/build.sh | UTF-8 | 412 | 2.828125 | 3 | [] | no_license | #!/bin/bash
set -eu -o pipefail
outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $outdir
mkdir -p $PREFIX/bin
cd $SRC_DIR
cp grid.sh GRiD*.R README.md update_database.sh bowtie.txt check_R_libraries.R $outdir
cp -R blast_database $outdir
cp -R PathoScope $outdir
chmod +x $outdir/*.sh
ln -s $outdir/... | true |
b62aebef01f123f9f39026faf983453d6762d945 | Shell | edwardsmarkf/server-migration | /clamav.txt | UTF-8 | 2,264 | 3.046875 | 3 | [] | no_license | #! /usr/bin/bash -w
#####clamav ####### -- 2016-02-06 -- moved from README 2019-06-19
## make SURE clamav is installed:
clamscan --version ;
/usr/bin/clamscan --version ;
## dont forget to change 'SERVER-NAME-HERE' ...!
mkdir --verbose /var/log/clamav/ ; ### need this to start the log directory !
#!/b... | true |
e87cfceb443c3573cc7e992e868f899bf7802a3f | Shell | neichin/CM_MISOMIP | /Templates/Slurm/launchSck.slurm | UTF-8 | 2,166 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#### JOB NAME
#SBATCH -J <jobName>
#### RESSOURCES: Here 10 nodes (i.e. 240 cores) (each node as 24 cores)
#SBATCH --nodes=<nodes>
#SBATCH --ntasks=<tasks>
#SBATCH --ntasks-per-node=24
#SBATCH --cpus-per-task=1
#SBATCH --constraint=BDW28
##SBATCH --constraint=HSW24
#SBATCH --exclusive
#### TIME
#SBATCH... | true |
9745c6b53cfd33a5be6c12f1c449b208028fbbf9 | Shell | code1w/linux_shell | /softlink.sh | UTF-8 | 310 | 3.265625 | 3 | [] | no_license | #!bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
srcdir=/data/work/code/srvcode-dev
for file in $srcdir/*
do
if test -f $file
then
bname=$(basename $file)
ln -s $srcdir/$bname $DIR/$bname
fi
if test -d $file
then
bname=$(basename $file)
ln -s $srcdir/$bname $DIR/$bname
fi
done
| true |
ddeb20d63ed413d78c978dc3f86287dc7c644153 | Shell | MnTIF/mntif.github.io | /vendor/heroku/heroku-buildpack-php/support/build/apache | UTF-8 | 1,817 | 3.28125 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: libraries/zlib, libraries/pcre
OUT_PREFIX=$1
# fail hard
set -o pipefail
# fail harder
set -eux
DEFAULT_VERSION="2.4.10"
dep_version=${VERSION:-$DEFAULT_VERSION}
dep_dirname=httpd-${dep_version}
dep_archive_name=${dep_dirname}.tar.gz
depdeps_archive_n... | true |
20e8969d0608cef21cbecbd6971f540202b8ea48 | Shell | 3rdstage/exercise3 | /thirdstage.exercise.truffle/scripts/vault-start.sh | UTF-8 | 1,593 | 2.96875 | 3 | [] | no_license | #! /bin/bash
# References
# - https://www.codementor.io/slavko/how-to-install-vault-hashicorp-secure-deployment-secrets-du107xlqd
# - https://learn.hashicorp.com/vault/getting-started/deploy
readonly script_dir=$(cd `dirname $0` && pwd)
readonly run_dir=$(mkdir -p "${script_dir}/../run/vault" && cd "${scri... | true |
4ae3e4465e34c8dfb64d759c47bf6c40c4fc8227 | Shell | fort-nix/nix-bitcoin | /pkgs/python-packages/python-bitcointx/get-sha256.sh | UTF-8 | 810 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
. "${BASH_SOURCE[0]%/*}/../../../helper/run-in-nix-env" "git gnupg" "$@"
TMPDIR=$(mktemp -d -p /tmp)
trap 'rm -rf $TMPDIR' EXIT
cd "$TMPDIR"
echo "Fetching latest release"
git clone https://github.com/simplexum/python-bitcointx 2> /dev/null
cd python-bitcointx
latest=python-bitco... | true |
d260635b8b24ad1dbba49e228c7482b8d962f483 | Shell | AngelosKatsantonis/workable-assignment | /src/slave/setup-slave.sh | UTF-8 | 907 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [ ! -e ~/configuration.done ]; then
echo "*:*:*:rep:$REPL_PW" > ~/.pgpass
chmod 0600 ~/.pgpass
until ping -c 1 -W 1 master
do
echo "Waiting for master to ping..."
sleep 1s
done
rm -rf /var/lib/postgresql/10/main/*
until pg_basebackup -h master -D /var/lib/postgresql/10/main/ -U rep -vP
do
e... | true |
32d8dbab3ee81bc07e817a5408ebac819d93bb41 | Shell | joystonmenezes/operating-sysyem | /leapyr.sh | UTF-8 | 255 | 3.3125 | 3 | [] | no_license | #!/bin/sh
echo "Enter year to check whether it is leap year or not"
read inpyr
x=`expr $inpyr % 4`
y=`expr $inpyr % 100`
z=`expr $inpyr % 400`
if [ $x -eq 0 ] && [ $y -ne 0 ] || [ $z -eq 0 ]
then
echo "It is a leap year"
else
echo "Not a leap year"
fi
| true |
e9f09c73eaab54ce65490207680de39e01729a0c | Shell | maltejk/uberspace-scripts | /bin/uberspace-pop3-auth-logger | UTF-8 | 159 | 2.671875 | 3 | [] | no_license | #!/bin/bash
umask 0077
REALHOME=`echo $HOME | sed 's/::/:/g;'`
echo $IP > $REALHOME/last_pop3
echo "$USER from $IP" | logger -p mail.notice -t pop3
exec "$@"
| true |
0b9ab66715d8f2c666b9403289c7c98bfa1bee02 | Shell | axelstram/algo3-tp2 | /src/ej3/test/correr_tests_faciles.sh | UTF-8 | 209 | 3.03125 | 3 | [] | no_license | #!/bin/bash
n=$1
max=$2
inc=$3
if [[ ($inc == 0) || ("$inc" == "") ]]; then
let inc=10
fi
while [ $n -le $max ]
do
nombre="medicionesDeFacilesDe$n"
./problema3 $nombre < "testsFacilesDe$n"
let n+=inc
done
| true |
3b4af62e9f492e79711be6aa9bf495638c58d138 | Shell | rdius/GrapheBuilder4STIS | /Vectorisation.sh | UTF-8 | 472 | 2.59375 | 3 | [
"MIT"
] | permissive | dossier=".../4.20.3/segmented"
cd $dossier
for a in $(ls *_merged.tif) do
do
echo "============="$a
mkdir -p $dossier/withoutnodata
mkdir -p $dossier/shapefile
/OTB-7.3.0-Linux64/bin/gdal_translate -of GTiff -a_nodata 0 $dossier/$a $dossier/withoutnodata/$a
done
cd $dossier
for a2 in $(ls *_mer... | true |
b2c97bf9aa9330b43ffd67a8596b88e77a6cb6b8 | Shell | jeffpeterson/dotfiles | /home/bin/wifi | UTF-8 | 1,530 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
source "${BASH_SOURCE%/*}/_includes.sh"
en=en0
usage_name wifi <<-DESC
A tool for managing WiFi on macOS.
DESC
usage_cmd info <<-DESC
Print the current wifi status.
DESC
usage_cmd local <<-DESC
Print the wifi local ip and copy it to the clipboard.
DESC
usage_cmd global <<-DESC
Print the gl... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.