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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
513446d4e6d970ab3f3d73fafc5e5a848fe9a612 | Shell | bala4rtraining/awesome-cka-guide | /workspace/SYSDIG/ovn_infrastructure/jenkins-sh/grafanaobj.sh | UTF-8 | 8,097 | 4.03125 | 4 | [] | no_license | #!/bin/sh
#
# File: grafanaobj.sh
# Purpose: 1. Download grafana objects from the grafana server to create a tar.gz file
# 2. Upload grafana objects from tar.gz file replacing any with same filename
# 3. optionally allow for filtering (on import and export) based on filename regex
# ... | true |
dcbd263198080ca1c6bcda3fc87e1067927dfe93 | Shell | wplib/box-cli2 | /cmd/util/cmd/get-sha1-checksum/get-sha1-checksum.sh | UTF-8 | 411 | 3.84375 | 4 | [] | no_license | #
# Command: box util get-sha1-checksum <filename>
#
# Returns just the sha1 checksum for a file
# (omits the filename, unlike shasum and sha1sum)
#
if (( 0 == "$#" )) ; then
stdErr "No filename passed."
return 1
fi
filename="$1"
if [ "${BOXCLI_PLATFORM}" = "macOS" ] ; then
sha1="$(shasum "${filename}")"
... | true |
914d3431dc0244d2b5ec4486309be8724f98ba98 | Shell | prankard/RetroPie-Randomizers | /functions.sh | UTF-8 | 6,803 | 3.703125 | 4 | [] | no_license | #!/bin/bash
###################################################
# Test
#
# Globals:
# None
#
# Arguments:
# $1 system-name (eg. "snes")
# $2 rom filename (eg. "SuperMetroidRandomized.smc")
# $3 image (eg. "image.png")
#
# Returns:
# Nothing
#
function addGameToXml()
{
xmlstarlet edit --inplace --upda... | true |
4c7dde34514652319bdd90cf34bd571bf0624c0b | Shell | Thorlak2202/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/7-clock | UTF-8 | 265 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
# This script is displaying "Holberton School" 10 times
h="0"
while [ $h -lt 13 ]
do
echo "Hour: $h"
i="1"
while [ $i -lt 60 ]
do
echo "$i"
case $i in "59")
;;
esac
i=$((i+1))
done
h=$((h+1))
done
| true |
c1b0bf7397c0bc6c5cbfa60d36d5c41199af037e | Shell | tshr20140816/test20180821 | /80_install/post_install_main.sh.unrar | UTF-8 | 737 | 3.046875 | 3 | [] | no_license | #!/bin/bash
set -x
date
start_date=$(date)
chmod 777 start_web.sh
export PATH="/tmp/usr/bin:${PATH}"
export CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-fuse-ld=gold"
gcc --version
g++ -fuse-ld=gold -Wl,--version
gcc -c -Q -march=native --help=target
gr... | true |
d2f24028d51945e317215a2b04ba2be42ba19cfc | Shell | LittleJ0hnny/CloudTemplate | /config-service/bootstrap.sh | UTF-8 | 157 | 2.515625 | 3 | [] | no_license | #!/bin/bash
while ! nc -z "$LOGSTASH_HOST" "$LOGSTASH_PORT"; do
echo "Waiting for the Log Service"
sleep 5
done
java $JAVA_OPTS -jar $ARTIFACT_FILE | true |
7f21db6c5397544f7fc02353e185bba48b8fdd6d | Shell | docopt/docopts | /tests/build_doc.bats | UTF-8 | 3,378 | 3.890625 | 4 | [
"MIT",
"LicenseRef-scancode-fsf-notice"
] | permissive | #!/usr/bin/env bash
#
# unit test for helper for building the README.md
#
source ../build_doc.sh
output_split_lines() {
local oldIFS=$IFS
IFS=$'\n'
local i=0
local l
for l in $output
do
lines[$i]=$l
i=$((i+1))
done
IFS=$oldIFS
}
setup() {
# https://github.com/docopt/docopts/issues/39
if ... | true |
1c00b21080b74bb0bd69d1e3320f1d9b31ace490 | Shell | iTKunst/dts | /tmpl/smtp/docker/linux/pGO.sh | UTF-8 | 1,388 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=SC2086
source settings.sh
source bLOG.sh
log_load pGO
source tENV.sh
CONT=$PROJ_CONT
CONT_DIR=$PROJ_CONT_DIR
CONT_MNT_DIR=$PROJ_CONT_MNT_DIR
HOST=$PROJ_HOST
HOST_DIR=$(pwd)$PROJ_HOST_DIR
HOST_MNT_DIR=$(pwd)$PROJ_HOST_MNT_DIR
IMG=$PROJ_IMG
IP=$PROJ_IP
LABEL=$PROJ_LABEL
MODE=$PROJ_MOD... | true |
a4fa5366ae4b46a45889ea107d624a28a082b128 | Shell | QualiSystemsLab/Colony-Cloudformation | /applications/redirect-vm/init.sh | UTF-8 | 618 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e # Stop Script on Error
# save all env for debugging
#printenv > /var/log/colony-vars-"$(basename "$BASH_SOURCE" .sh)".txt
apt-get update -y
echo '==> Install nginx'
apt-get install nginx -y
echo '==> Configure nginx'
cd /etc/nginx/sites-available/
cp default default.backup # backup def... | true |
242f4c472dabec6f50fda413f2347ef3fef60b96 | Shell | jlou96/dotfiles | /config/autostart-scripts/mouse.sh | UTF-8 | 860 | 3 | 3 | [] | no_license |
# !/bin/sh
# sed "s/pattern1/pattern2" replaces pattern1 with pattern 2
# ".*id=([0-9]+).*" matches any line containing id=NUMBER
# \1 references the 1st capture group, ([0-9]+), i.e. NUMBER
# in the end, only NUMBER is written to stdout.
# -r enables extended regexp syntax,
# https://www.gnu.org/software/sed/manual... | true |
6dfc404ba22974d6f394e9fa7c232524d0e5a9e1 | Shell | NOAA-EMC/DATM-MOM6-CICE5 | /tests/datm_conf/datm_slurm.IN_orion | UTF-8 | 1,182 | 2.53125 | 3 | [] | no_license | #!/bin/sh
#SBATCH -e err
#SBATCH -o out
#SBATCH --account=@[ACCNR]
#SBATCH --qos=@[QUEUE]
#SBATCH --partition=@[PARTITION]
### #SBATCH --ntasks=@[TASKS]
#SBATCH --nodes=@[NODES]
#SBATCH --ntasks-per-node=@[TPN]
#SBATCH --time=@[WLCLK]
#SBATCH --job-name="@[JBNME]"
#SBATCH --exclusive
set -eux
set +x
source ./module-s... | true |
b0e0bbfd05d34c742f4d3babfd54a8f40689a01a | Shell | maxwen/android_device_brcm_rpi4 | /scripts/mk-raspi64-large-image.sh | UTF-8 | 3,220 | 3.546875 | 4 | [] | no_license | #!/bin/sh
#IN_IMAGE_DIR=$OUT_DIR/target/product/rpi4/
#IN_BOOT_FILES=$ANDROID_BUILD_TOP/vendor/brcm/rpi4/proprietary/boot/
#OUT_IMAGE_FILE=$HOME/raspberrypi/omni-$ROM_BUILDTYPE.img
if [ -z $ROM_BUILDTYPE ]; then
echo "missing ROM_BUILDTYPE"
exit 0
fi
options=$(getopt -o ho:i:b: -- "$@")
[ $? -eq 0 ] || {
... | true |
e15cb00300e8310adbacaf1a326c2bae1ba44164 | Shell | Chapabu/dockerfiles | /ubuntu/16.04/usr/local/share/bootstrap/common_functions.sh | UTF-8 | 2,506 | 3.734375 | 4 | [] | no_license | #!/bin/bash
load_env() {
set +x
shopt -s nullglob
set -- /usr/local/share/env/*
if [ "$#" -gt 0 ]; then
for file in "$@"; do
# shellcheck source=/dev/null
source "${file}"
done
fi
}
get_user_home_directory() {
local USER="$1"
if [ -z "$USER" ]; then
return 1
fi
getent passwd ... | true |
08a1c39b85c17d17b451379b0f7886f75b9cf88f | Shell | jcihain/woobuntu-installer | /scripts/Students/webgoat.sh | UTF-8 | 603 | 2.578125 | 3 | [] | no_license | #!/bin/sh
sudo rm -rf /opt/woobuntu/webgoat
sudo mkdir -p /opt/woobuntu/webgoat
sudo chmod a+rw /opt/woobuntu/webgoat
cd /opt/woobuntu/webgoat
sudo wget https://github.com/WebGoat/WebGoat/releases/download/7.0.1/webgoat-container-7.0.1-war-exec.jar -O webgoat.jar
cat > /tmp/webgoat.desktop <<EOF
[Desktop Entry]
Version... | true |
b3657e82c616ac13dd7c6280657928dba12334d5 | Shell | XGWang0/Suse_testsuite | /tests/qa_test_coreutils/qa_test_coreutils/orig_test_suite/chmod/usage | UTF-8 | 2,077 | 4.0625 | 4 | [] | no_license | #!/bin/sh
# Verify that chmod works correctly with odd option combinations.
if test "$VERBOSE" = yes; then
set -x
chmod --version
fi
. $srcdir/../lang-default
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit ... | true |
d38de66a6b305038844e91e83d4cd2686e94f3f9 | Shell | axilleas/humblebundle | /pkgbuilds/spaz-hib/PKGBUILD | UTF-8 | 2,546 | 3.53125 | 4 | [] | no_license | # Maintainer: Sam S. <smls75@gmail.com>
pkgname=spaz-hib
pkgver=2012_09_18
_hibver=09182012
pkgrel=0
pkgdesc='Space Pirates and Zombies, a top-down space combat game (Humble Bundle version)'
url='http://spacepiratesandzombies.com/'
arch=('i686' 'x86_64')
license=('custom:commercial')
depends=('gcc-libs' 'libgl' 'sdl' ... | true |
ae07f717e4a94de79e64c4a0bf6f4afbae6f71e5 | Shell | OpenMandrivaAssociation/dovecot | /dovecot-init | UTF-8 | 1,504 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Init file for Dovecot IMAP daemon
#
# Written by Dag Wieers <dag@wieers.com>.
#
# chkconfig: 345 57 46
# description: Dovecot IMAP Daemon
#
# processname: dovecot
# config: /etc/dovecot.conf
# pidfile: /var/run/dovecot
### BEGIN INIT INFO
# Provides: dovecot
# Required-Start: $network $remote_fs
# Requ... | true |
e037050e629a75b1324719bf98da7f05a4c9d4f9 | Shell | jazzwang/docker-pool | /cloudera-director/bin/director | UTF-8 | 986 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
case "$1" in
new)
echo "[32;1m[INFO] Creating new cloudera-director docker instances ...[0m"
docker create -it --name director -h director.etu.im -v ${PWD}:/vagrant jazzwang/cloudera-director:centos6 /bin/bash
;;
start)
echo "[32;1m[INFO] Starting cloudera-director docker instances ...[0m"
docker s... | true |
24fde36c6c1f44e5be3468adc9f90fdb9e985b95 | Shell | vp-sdeniau/vp-ansible | /roles/admin_docker/tasks/files/purge_volumes_docker.sh | UTF-8 | 135 | 2.9375 | 3 | [] | no_license | #!/bin/bash
volumes=$(docker volume ls -qf dangling=true)
if [ -n "$volumes" ] ;then
docker volume rm $volumes
else
echo "empty"
fi
| true |
b59c9fbabd2aaa96bf2c74778ea61dc4470d7ca5 | Shell | cloudfoundry-community/jumpbox-boshrelease | /jobs/inventory/templates/bin/run | UTF-8 | 752 | 3.203125 | 3 | [
"TMate",
"MIT"
] | permissive | #!/bin/bash
set -e
source /var/vcap/jobs/jumpbox/config/bashrc
EXITSTATUS=0
check() {
name=$1
echo -en "Checking \e[1;35m${name}\e[0m... "
if ! $* >/dev/null 2>&1; then
echo -e "\e[1;31mFAILED!\e[0m"
EXITSTATUS=1
else
echo -e "\e[1;32mOK\e[0m"
$* 2>&1 | sed -e 's/^/ /g'
fi
echo
}
export HOME=/var/vcap... | true |
f2e5ecab3010d20afe3970cd7f7c996072f05335 | Shell | Makaque/Modsenfree | /buildcs.sh | UTF-8 | 1,551 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
MANAGED="/c/Program Files (x86)/Steam/steamapps/common/Oxenfree/Oxenfree_Data/Managed/"
SYSTEM="$MANAGED/System.Core.dll"
MONO35=./Libraries/Mono/lib/mono/3.5-api/Microsoft.Build.Engine.dll,./Libraries/Mono/lib/mono/3.5-api/Microsoft.Build.Framework.dll,./Libraries/Mono/lib/mono/3.5-api/Microsoft.Bu... | true |
a56589d25e54ef1a7f0a7ce371345e127e4037e8 | Shell | deep5050/smart-radio | /chrome.sh | UTF-8 | 742 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Remove existing downloads and binaries so we can start from scratch.
rm google-chrome-stable_current_amd64.deb
rm chromedriver_linux64.zip
rm -f driver/*
# Install Latest Chrome.
set -ex
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stabl... | true |
b65ab4a4dd67a67fc81d06883d23484ac84089af | Shell | lemonal88/Linux_Study | /practise/sh03.sh | UTF-8 | 963 | 2.546875 | 3 | [] | no_license | # sh03.sh
#!/bin/bash
# Program:
# This proggress shows default parameters
# History:
# 2018-05-27 Lvhongbin First Relsase
echo "The script's name is ==> $0"
echo "The argument[0] is ==> $1"
echo "The argument[1] is ==> $2"
# 这里需要用引号吧$@括起来,其实括不括起来都无所谓
echo "The arguments is ==> '$@'"
echo "The arguments.length ... | true |
20905a71ccbdf7a0069dde6a5a35619a0797af09 | Shell | joybinchen/cmake-generator | /compile_commands | UTF-8 | 1,657 | 3.21875 | 3 | [] | no_license | #! /bin/bash
CC_LOGGER_SCRIPT=$(realpath $0)
CC_LOGGER_DIR=$(dirname ${CC_LOGGER_SCRIPT})
COMPILE_DB=compile_commands.json
if [[ -e ${COMPILE_DB} ]]; then
BACKUP_TAG=$(stat --printf=%y ${COMPILE_DB} |sed 's| |_|' | cut -d'.' -f1)
mv ${COMPILE_DB} ${COMPILE_DB}.${BACKUP_TAG}.json
fi
#echo CodeChecker log -k -o comp... | true |
99b2e5e9311799dde4fd88dc989b338860fe1779 | Shell | tvdtb/ad-docker-ws | /99_config_companion/server/docker-cmd.sh | UTF-8 | 143 | 3.03125 | 3 | [] | no_license | #!/bin/sh
CONFIG=$1
echo Startup, config file = $CONFIG
while true; do
echo $(date) ----------------------------
cat $CONFIG
sleep 5
done | true |
7b145d116dd5ddc4648270215663e2a174417e13 | Shell | flecoqui/azure | /azure-quickstart-templates/201-vmss-debian-glusterfs-mysql-autoscale/install-apache.sh | UTF-8 | 3,594 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# This bash file install apache on debian
# Parameter 1 hostname
wm_hostname=$1
wm_ipaddr=`ip addr show eth0 | grep global`
environ=`env`
echo "Environment before installation: $environ"
echo "Installation script start : $(date)"
echo "Apache Installation: $(date)"
echo "##### wm_hostname: $wm_hostname... | true |
2cab573c96071a7cbf177c4ee5cafe7fe719626f | Shell | jonasvdd/SPRAAK-docker | /convert_tel_data.sh | UTF-8 | 769 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# variables: CHANGE THESE!
dbase=name_of_my_dbase
wav_src=path_to_the_root_of_your_dbase
wav_tel_dst=path_to_where_the_telephone_version_of_the_dbase_must_be_written
# find all wav files and make a corpus file; since we have no orthographic transcription, we use '#' (silence) as transcription
find "${wav_... | true |
caaecfab8eaed75d9b64254652c4fe681d388a7c | Shell | nextmovesoftware/CEX | /src/doc/man/mansrc/xrefmans.sh | UTF-8 | 1,985 | 4.21875 | 4 | [] | no_license | #!/bin/sh
#
# Cross references one set of man pages against another. This is used to
# add cross-references to the section 5 man pages (object descriptions),
# referring each object to the section 3 man pages (functions) that apply.
#
# Each section 3 .mansrc file has a non-printing <objects> section containing
# ... | true |
d6fcfa78da18f63db18e6a933411e83ff78b1cf5 | Shell | cdelatte/puppet-os_docker | /support/run-update.sh | UTF-8 | 418 | 3.484375 | 3 | [] | no_license | #!/bin/bash -xve
BASEDIR=$(cd "$(dirname "$0")"; pwd)
docker build -t os_docker-updater .
COMMAND=/update-configs.sh
if [ $# -eq 1 ]; then
if [ "$1" == "tesora" ]; then
COMMAND=/tesora-update-configs.sh
fi
fi
docker run --rm \
--hostname os-docker \
-v $BASEDIR/$COMMAND:/$COMMAND \
-v $BASED... | true |
34eea7d8649f846956d35083696d606a2ea2071d | Shell | Tsaregorodtsev/rsha | /praks2/lisa_kasutaja | UTF-8 | 367 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#
if [ $# -ne 1 ]; then
echo "kasutus juhend: $0 kasutajanimi"
else
kasutajanimi=$1
useradd $kasutajanimi -m -s /bin/bash
if [ $? -eq 0 ]; then
echo "kasutaja nimega $kasutajanimi on lisatud susteemis"
cat /etc/passwd | grep $kasutajanimi
ls -la /home/$kasutajanimi
else
echo "probleem kasutaja $kasutaj... | true |
fbbaf75b75e984ee686cca6cd2b92c25da8f578f | Shell | asokani/docker-base | /letsencrypt-cron.sh | UTF-8 | 579 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ -f /etc/secrets/letsencrypt/domain.csr ]
then
SIGNED_CRT="$(mktemp --suffix=signed_crt)"
sudo -u acme date >> /var/log/acme/acme_tiny.log
sudo -u acme /usr/bin/python /opt/acme_tiny.py --account-key /etc/secrets-global/letsencrypt/letsencrypt-account.key --csr /etc/secrets/letsencrypt/domain.csr ... | true |
e3092335236e124aeb770516ec764da03682aef3 | Shell | authlete/authlete-jose | /bin/jose-generator | UTF-8 | 1,371 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# LICENSE
# -------
#
# Copyright (C) 2018 Authlete, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | true |
1be9d0490a3f5de4852e6dde916b51700adbc72a | Shell | emmanuele-abbenante/transaction-report | /src/main/script/load_transactions.sh | UTF-8 | 912 | 2.796875 | 3 | [] | no_license | #!/bin/sh
APP_PATH=/home/emmanuele/workspace/java/transaction-report/target/transaction-report-0.0.1-SNAPSHOT-fat.jar
TRANSACTIONS_DIR=/home/emmanuele/Scrivania/Documenti/Finanze\ personali/Movimenti
# Loading credit card transactions
for year in $(seq 2017 2018)
do
for month in $(seq -w 1 12)
do
echo... | true |
3cf54e2f50a38118bb49ada50f4bd23cc7803bad | Shell | emazzotta/dotfiles | /bin/videorotate | UTF-8 | 277 | 3.359375 | 3 | [] | no_license | #!/bin/bash
set -e
if test "${2}"; then
extension=${1#*.}
name="${1%%.*}"
ffmpeg -i "${1}" -map_metadata 0 -metadata:s:v rotate="${2}" -codec copy "${name}_rotated.${extension}"
else
echo "usage: $(basename "${0}") <file_name> <rotation [90,-90,180,...]>"
fi
| true |
6884a647ab40ebe7ac2c7188e603b6e70cfa4efa | Shell | sye/hax | /makeHTML.sh | UTF-8 | 377 | 2.859375 | 3 | [] | no_license | #! /bin/bash
# script to make every cpp/h file to html
find . -iname "*.cpp" -exec vim {} -c TOhtml -c wq -c q \; #render them .cpp
find . -iname "*.h" -exec vim {} -c TOhtml -c wq -c q \; #render them .h
cd ~/public_html/cprog/lab3
rm -f *.html #clean the old files
cd ~/cprog10/lab3/hax
find . -iname "*.html" -exec ... | true |
d96f8485750d43bca30e2337016b7a03b2fd0f0b | Shell | necrosato/uoregon-secday | /launch_agent_defense/encrypt.sh | UTF-8 | 707 | 3.375 | 3 | [] | no_license | #!/bin/bash
PUBKEY=~/.msgprotect/id_rsa.pub
ARCHIVE=~/Library/Containers/com.apple.iChat/Data/Library/Messages/Archive
MESSAGES=~/Library/Messages/Archive
DPATH=''
cd ${ARCHIVE}
if [ $? -eq 0 ]; then
DPATH=$ARCHIVE
fi
cd ${MESSAGES}
if [ $? -eq 0 ]; then
DPATH=$MESSAGES
fi
cd ${DPATH}
mkdir keys
find ./* -i... | true |
ab6c82512a81ddb341971c3fa9a1079672c77a1a | Shell | prezi/gradle-profiler | /src/main/resources/org/gradle/profiler/perf/configure_sudo_access.sh | UTF-8 | 819 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
realuser=${1:-$USER}
gradle_user_home=${2:-$HOME/.gradle-profiler}
if [ "$realuser" = "root" ]; then
echo "usage: $0 [userid] [gradle_user_home]"
exit 1
fi
cat >/tmp/sudoers_perf$$ <<EOF
Defaults!/usr/bin/perf use_pty
$realuser ALL=(ALL) NOPASSWD: /usr/bin/perf, /bin/kill, $gradle_user_home/tools/b... | true |
15b249e88f5ccabac30da6391dfcecbbb82ec162 | Shell | xiangchunyang/pprof | /internal/binutils/testdata/build_mac.sh | UTF-8 | 573 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
# This is a script that generates the test MacOS executables in this directory.
# It should be needed very rarely to run this script. It is mostly provided
# as a future reference on how the original binary set was created.
set -o errexit
cat <<EOF >/tmp/hello.cc
#include <stdio.h>
int main() {
pri... | true |
36775edd80f5e3a2e77e70500a1f749f47d6c578 | Shell | wess/alloy | /alloy/__helpers.sh | UTF-8 | 246 | 2.71875 | 3 | [] | no_license | #
# __helpers.sh
# alloy
#
# Author: Wess Cope (you@you.you)
# Created: 11/20/2020
#
# Copywrite (c) 2020 Wess.io
#
#!/usr/bin/env bash
pause() {
read -p "$*"
}
quit() {
echo >&2 "$@"
exit 1
}
define(){ IFS='\n' read -r -d '' ${1} || true; } | true |
7e5ead5d7d705b1eb34640d8a11b31c5d1b762fc | Shell | Woona/src | /school/class | UTF-8 | 7,516 | 2.625 | 3 | [] | no_license | #!/bin/bash
debug=false; sday=false; repeat=true; disp=false
function calc {
read -p "Hour:" hour
read -p "minutes:" minute
awk "BEGIN {print $hour*60+$minute}"
exit
}
function graph {
g1="_"; g2="_"; g3="_"; g4="_"; g5="_"; g6="_"; g7="_"; g8="_"; g9="_"; g10="_"; g11="_"; g12="_"; g13="_"; g14="_"; g15="_"; g16... | true |
207dc7dfcfd72b617899f79d0eb85cc8f0b04de0 | Shell | cuvidk/os-setup | /install.sh | UTF-8 | 4,449 | 4.03125 | 4 | [] | no_license | #!/bin/sh
WORKING_DIR="$(realpath "$(dirname "${0}")")"
CONFIG_FILE="${WORKING_DIR}/install.config"
. "${WORKING_DIR}/config/shell-utils/util.sh"
usage() {
print_msg "Usage: ${0} --config <filename>\n"
}
check_root() {
test $(id -u) -eq 0
}
check_conn() {
ping -c 4 archlinux.org
}
check_uefi_boot() {
... | true |
cbd6c7491e3d03ba081ea8ffee70366bf7121131 | Shell | dockhippie/memcached | /latest/overlay/usr/bin/healthcheck | UTF-8 | 193 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
source /usr/bin/entrypoint
CHECK="$(echo stats | nc 127.0.0.1 11211 | grep uptime 2>/dev/null)"
if [[ "${CHECK}" =~ "STAT" ]]; then
exit 0
fi
exit 1
| true |
a84c56cdcc705a9e49d7a4f384ac103744e2083c | Shell | akoenig/dotfiles-ng | /bin/helpers/profile | UTF-8 | 1,127 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Helper which exposes the path to the respective profile
# configuration file
#
# Author: André König <andre.koenig@posteo.de>
#
SHELLTYPE="$(basename /$SHELL)"
if [ $SHELLTYPE = "bash" ]; then
if [ -f "$HOME/.bashrc" ]; then
PROFILE_CONFIGURATION="$HOME/.bashrc"
elif [ -f "$HOME/.bash_... | true |
2ad8732a760f4ea0a463155fd4b474d30c4fb027 | Shell | nyirock/mg_blast_wrapper | /cycle_wrapper_v1.2.bash | UTF-8 | 1,186 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
dir_name="mg1_shear100_2000"
chunk_size=100
increment=50
iterations=40
rm -rf $dir_name
mkdir $dir_name
#location=$dir_name"/it_1"
format="csv,fasta"
alen="100"
metagenome=IMG\ Data/76969.assembled.fna,IMG\ Data/76969.unassembled_illumina.fna
reference="all_AP_WPS-2_bacterium.fna"
#echo $location
#python mg... | true |
314a47862690a75c897cd50ba3ab2bfdb78697c0 | Shell | yijunyu/demo | /datasets/linux-4.11-rc3/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh | UTF-8 | 2,216 | 3.484375 | 3 | [
"BSD-2-Clause",
"Linux-syscall-note",
"GPL-2.0-only"
] | permissive | #!/bin/bash
#
# Given the results directories for previous KVM-based torture runs,
# check the build and console output for errors. Given a directory
# containing results directories, this recursively checks them all.
#
# Usage: kvm-recheck.sh resdir ...
#
# This program is free software; you can redistribute it and/o... | true |
bad6f2fd30485c400af70764d1f17e59258753fd | Shell | vaginessa/Pi-Kitchen | /sdcard/pi-kitchen/020-usb-device-module/_RUNONCE/install_0_usbdevicemodule.sh | UTF-8 | 509 | 3.375 | 3 | [] | no_license | #!/bin/sh
#Set the path of the PiZeroCombined file
modulesource="/home/pi/recovery/pi-kitchen/020-usb-device-module/module/PiZeroCombined.tar.gz"
modulefolder=PiZeroCombined
#Extract the module to tmp directory
tar xvzfC $modulesource /tmp/
#Copy the boot partition files to /boot
sudo cp -R /tmp/PiZeroCombined/fat32/... | true |
2f37633c52bf7e17a4f87ef6ccc14202dc63ee57 | Shell | balsini/dotfiles | /bin/email_sync | UTF-8 | 656 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
POLLTIME_S=${POLLTIME_S:-180}
VERBOSE=${VERBOSE:-0}
LOCKFILE=/tmp/email_sync.lock
function clean_up {
rm -f $LOCKFILE
exit
}
trap clean_up SIGHUP SIGINT SIGTERM SIGKILL
echo "Locking..."
lockfile -r 0 $LOCKFILE || exit 1
while [ 1 ]; do
# Trigger an update of the local mailbox
while [ 1 ]; do
i... | true |
4b2c1f76e2112efeef55877a9575c0c7e508bcac | Shell | slaash/scripts | /rpi/rsync-ubuntu-iso.sh | UTF-8 | 204 | 2.671875 | 3 | [] | no_license | #!/bin/bash
myDir="$(dirname "$0")"
source ${myDir}/retry.sh
for rel in focal jammy
do
retry -s 20 -m 3 rsync -Lav rsync://cdimage.ubuntu.com/releases/${rel}/*-desktop-amd64.iso /repo/ubuntu/
done
| true |
6f0750568908645b1bd94697107059d51b394be6 | Shell | fusion-research/mapconstruction | /algorithms/Ahmed/script_to_run.sh | UTF-8 | 535 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #To Compile:
CODE_PATH="MapConstruction/" #path to the MapConstruction folder.
cd $CODE_PATH
javac -d bin/ src/mapconstruction2/*.java
#To Run:
INPUT_PATH="" #path to the folder that constains all input tracks
OUTPUT_PATH="" #path to the folder where output will be written
EPS=150.0 #epsilon in meters
HAS_ALTITUDE=fal... | true |
ae2236360731b7522cb33691fd33e6cddb87960c | Shell | rh9/blockssh | /script/GEO_from_ip.sh | UTF-8 | 4,317 | 3.078125 | 3 | [] | no_license | #!/bin/sh
rm -f /tmp/ram/geo/geo_data_id.dt
if [ -z $1 ]
then
exit 0
fi
GEO_ip=$1
if [ `echo $GEO_ip | grep '\.' | wc -l` -eq 0 ]
then
exit 0
fi
otl=1
time_live=0
if [ ! -e /tmp/ram/geo ]
then
mkdir /tmp/ram/geo
fi
geo_data_id=`echo "use proxy; SELECT id from geo where ip='$GEO_ip' order by t limit 1" ... | true |
e1432b5f5d1266db44a976076014c253492a9fb7 | Shell | reef-technologies/cookiecutter-rt-django | /{{cookiecutter.repostory_name}}/devops/scripts/vars.sh | UTF-8 | 455 | 3.203125 | 3 | [
"BSD-3-Clause"
] | permissive | [ "$1" != "staging" ] && [ "$1" != "prod" ] && echo "Please provide environment name to deploy: staging or prod" && exit 1;
PROJECT_DIR=`cd "$(dirname "${BASH_SOURCE[0]}")" && pwd`/../../
[ "$1" != "prod" ] && APP_SUFFIX="-$1"
APP_OWNER=$(aws sts get-caller-identity --query "Account" --output text)
APP_REGION="{{ c... | true |
a0d011df136e57710b7559add924be92300f1a90 | Shell | JakubBrojacz/MINILang-tests | /test.sh | UTF-8 | 2,828 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Copyright (c) 2020 Tomasz Herman
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | true |
31626a8ec62f55088a18a35a7c5955b3e45dd02a | Shell | helm/acceptance-testing | /scripts/completion-tests/completionTests.sh | UTF-8 | 30,861 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!bash
#
# Copyright The Helm Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | true |
dc72858dc9f54cd6098b05ff749e775748641240 | Shell | zielmicha/sandboxd | /example.sh | UTF-8 | 155 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ls /
ls -l /opt
ls -l /data
sudo # should return Operation not permitted
echo "hey!"
for i in {0..9}; do
echo "work $i"
sleep 1
done
| true |
6f71f652a0cf7506b414a33cace8d7f87bd86a83 | Shell | janelia-flyem/libdvid-cpp | /conda-recipe/build.sh | UTF-8 | 4,666 | 3.765625 | 4 | [
"BSD-3-Clause"
] | permissive | set -x
# Depending on our platform, shared libraries end with either .so or .dylib
if [[ $(uname) == 'Darwin' ]]; then
DYLIB_EXT=dylib
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include -stdlib=libc++"
else
DYLIB_EXT=so
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include"
# Don't specify these -- let conda-build do ... | true |
aad98f69283dbc634caf62f92ddaf4ddba81f6f2 | Shell | doc22940/tdoku | /BENCH.sh | UTF-8 | 2,112 | 3.796875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Run multiple benchmark configurations
#
# BENCH.sh <arch_name> <taskset_cpu_mask> <spec_1> ... <spec_n>
#
# Where a spec is compiler_optlevel_{native|sse4.2}[_pgo]
#
# e.g.,
# BENCH.sh i7-4930k 0x20 gcc-6_O3_native gcc-6_O3_sse4.2 clang-8_Ofast_native_pgo
#
# flags to tell BUILD.sh to include all solve... | true |
531b9ff483e7a0c0230507696090bb9d3001fecd | Shell | clifmo/CloudflareDDNS | /cfddns.sh | UTF-8 | 20,033 | 4.1875 | 4 | [] | no_license | #!/bin/sh
#
# update Cloudflare DNS records with current (dynamic) IP address
# Script by Asif Bacchus <asif@bacchus.cloud>
# Last modified: May 10, 2021
# Version 2.2
#
### text formatting presets using tput
if command -v tput >/dev/null; then
[ -z "$TERM" ] && export TERM=xterm
bold=$(tput bold)
... | true |
5570b67ec04c80c7e659360006c8f9d25b6412f4 | Shell | ekcomputer/random-wetlands | /polsar_pro/editEnviHdr.sh | UTF-8 | 669 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# Script to add georef line to ENVI header
# inputs are .ann and .hdr file name
# note: imaginary .bin files have wrong data type (float instead of complex)
#PARSE
long=$(cat $1 | grep -e "grd_pwr.col_addr" | awk '{print $4}')
lat=$(cat $1 | grep -e "grd_pwr.row_addr" | awk '{print $4}')
longpx=$(cat $1 |... | true |
0dbdbc33329d39adbf3389d16409d98b95f66433 | Shell | Gravity-Hub-Org/gravity-node-middleware | /run-geth.sh | UTF-8 | 1,423 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
address_qty=0
simple_start () {
docker run -d --name ethereum-node -v $HOME/ethereum:/root \
-p 8545:8545 -p 30303:30303 \
ethereum/client-go --dev --rpcapi personal,web3,eth --rpc --rpcaddr '0.0.0.0' \
--dev.period 5 --rpcport 8545 --ws \
--wsaddr '0.0.... | true |
b9a2af988f793709de839fa397a30c9167aa9769 | Shell | kapral/install-couchdb | /install-couchdb.sh | UTF-8 | 526 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
sudo apt-get update || true
sudo apt-get --no-install-recommends -y install \
build-essential pkg-config runit erlang \
libicu-dev libmozjs185-dev libcurl4-openssl-dev
wget http://apache-mirror.rbc.ru/pub/apache/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz
tar -xvzf apache-couchdb-2.0.0... | true |
29f2aad7b0e3b290353072bcf7b00248e99d5859 | Shell | silverlyra/kubes | /push | UTF-8 | 1,202 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
if [[ -n "$(git status --porcelain)" ]]; then
echo >&2 './push can only be run with a clean Git checkout'
exit 2
fi
for t in types/*; do
version="$(basename "$t")"
parent=''
commit=''
if git rev-parse --verify "$version" >/dev/null 2>&1; then
parent="$(git rev-p... | true |
61c8412e6362492df5bd5a3b91796f6175c048f8 | Shell | ILCogCompCuratorToHadoop/CuratorHadoopInterface | /scripts/directory_restructure.sh | UTF-8 | 626 | 3.125 | 3 | [] | no_license | #!/bin/bash
# A script to rearrange output from the Ant build of the CuratorHadoopInterface into the recommended directory structure specified in the README.
# You must run this script from its original location in the scripts directory!
echo -e "Copying Ant output into recommended directory structure..."
mkdir ../... | true |
14267c01826622f739ef8cdfecceca89d188c623 | Shell | pashashiz/hadoop | /word-counter/scripts/run-task.sh | UTF-8 | 569 | 2.84375 | 3 | [] | no_license | #!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
base=./..
echo 'Cleaning HDFS data...'
hdfs dfs -rm -r -skipTrash input/word-counter
hdfs dfs -rm -r -skipTrash output/word-counter
echo 'Cleaning local data...'
rm -R -f ${base}/output/*
echo 'Loading input data into HDFS...'
hdfs dfs -mkdir -p input
hdfs dfs -put ... | true |
89f479fe67aad19b5a7a621912e5e889813e92c9 | Shell | aurbasica/lfs-pkgbuilds | /e2fsprogs/PKGBUILD | UTF-8 | 1,068 | 2.921875 | 3 | [
"MIT"
] | permissive | pkgname=e2fsprogs
pkgver=1.43.3
pkgrel=1
pkgdesc='Utilities for handling the ext2/3/4 filesystems'
arch=('x86_64')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('77e753f77222a0a7a334d7d93c900ea6cb339ed40af29952e414fc4e45d8c5c01d67771978a941195effe666d... | true |
562ca148d45f1d27075f02eb2b83594a059b3520 | Shell | morristech/dotfiles-72 | /bash/prompt.sh | UTF-8 | 1,180 | 3.125 | 3 | [
"Unlicense"
] | permissive | # those backslashes ARE escaping
# shellcheck disable=SC1117
readonly COLOR_BLACK="\[\033[0;30m\]"
readonly COLOR_RED="\[\033[0;31m\]"
readonly COLOR_GREEN="\[\033[0;32m\]"
readonly COLOR_BROWN="\[\033[0;33m\]"
readonly COLOR_BLUE="\[\033[0;34m\]"
readonly COLOR_PURPLE="\[\033[0;35m\]"
readonly COLOR_CYAN="\[\033[0;36m... | true |
ee8c51e7b1859d84d82bbbf192ea62e4b09a2f11 | Shell | repomu/rclonebp | /bin/compile | UTF-8 | 607 | 3.390625 | 3 | [] | no_license | #!/bin/sh
indent() {
sed -u 's/^/ /'
}
echo "-----> Install rclone"
BUILD_DIR=$1
VENDOR_DIR="vendor"
FILE="rclone-v1.47.0-linux-amd64"
DOWNLOAD_URL="https://github.com/ncw/rclone/releases/download/v1.47.0/$FILE.zip"
echo "DOWNLOAD_URL = " $DOWNLOAD_URL | indent
cd $BUILD_DIR
mkdir -p $VENDOR_DIR
cd $VENDOR_... | true |
362b1d798741f1367dbfc91701695ea37a91ae29 | Shell | apache/cloudstack | /scripts/storage/qcow2/managesnapshot.sh | UTF-8 | 10,829 | 3.640625 | 4 | [
"GPL-2.0-only",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown"
] | permissive | #!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Lice... | true |
bfedfd3408b29dc56c9c88e821b89aef20ff9692 | Shell | arnoldsandoval/dotfiles | /brew.sh | UTF-8 | 2,543 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Homebrew
if ! which brew > /dev/null; then
echo '📦 Installing Homebrew'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;
# zsh/ohmyzsh
echo '📦 Installing zsh'
brew install zsh
echo '📦 Installing Oh My Zsh!'
sh -c "$(curl -fsSL https://raw... | true |
c088be38fda91578cacea5b13ecd0ad3c469eaa3 | Shell | bleshik/folders-to-flickr-sets-uploader | /download-set.sh | UTF-8 | 1,558 | 3.421875 | 3 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: download-set.sh
#
# USAGE: ./download-set.sh SET-NAME
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Alexey Balchunas,... | true |
b57621c37a68e9db9f04b8f7d92ea421eb801e90 | Shell | GiantSpaceRobot/tsRNAsearch | /bin/Generate-depthfile-stats.sh | UTF-8 | 262 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
newname=$(echo $1 | awk -F '_mean-std_sorted.tsv' '{print $1}')
cp $1 ${newname}_depth.inf
echo -e "Feature\tMean\tStandard Deviation\tCoefficient of Variation" \
> Header.txt
cat Header.txt \
${newname}_depth.inf \
> ${newname}_depth_stats.tsv
| true |
6228859393b0a6cfa73529791dda7c5418d023e2 | Shell | mocha-parallel/mocha-parallel-tests | /test/parallel/parallel.sh | UTF-8 | 345 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
TIMESTAMP_START="$(date +%s)"
OUTPUT=$(dist/bin/cli.js -R spec test/parallel/tests --timeout 10000 --slow 10000)
TIMESTAMP_FINISH="$(date +%s)"
TIMESTAMP_DIFF=`expr $TIMESTAMP_FINISH - $TIMESTAMP_START`
if [[ $TIMESTAMP_DIFF -lt 10 ]]; then
exit 0
else
echo "Tests running time was $TIMESTAMP_DIF... | true |
42d1d0be9a8c57f7f2973d826185e9af3cffb991 | Shell | firstkeaster/BigData_proj | /task_freq.sh | UTF-8 | 1,050 | 3 | 3 | [] | no_license | #!/bin/bash
# Ask the user for their name
echo Hello, which type of query do you want?
read varname
echo I got $varname
echo dataset?
read data
echo I got $data
module load python/gnu/3.4.4
/usr/bin/hadoop fs -rm -r -f "task_fftmp.out"
if [ "$varname" == find_format ]
then
/usr/bin/hadoop fs -rm -r -f "task_fftmp.o... | true |
0ba9f6eb79882e2ded8d267b8c04be3610deb42a | Shell | voc/cm | /bundlewrap/bundles/apt/files/kernel-postinst.d | UTF-8 | 413 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# /etc/kernel/postinst.d/unattended-upgrades
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
linux-image-extra*::postrm)
exit 0;;
esac
if [ -d /var/run ]; then
touch /var/run/reboot-required
if ! grep -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /var/run/reboot-required.pkgs 2> /dev/nul... | true |
8d23ca28f3bc6e86089cf355831ec8e64a237080 | Shell | triton-inference-server/server | /qa/L0_backend_python/env/test.sh | UTF-8 | 12,111 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Copyright 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice,... | true |
0157441b6c75fadf13ec8fa05629739be0caeb09 | Shell | jollywho/Yaya-tan | /lib/scripts/eidpl.sh | UTF-8 | 739 | 3.296875 | 3 | [] | no_license | pend="/dev/sr0: writable, no read permission"
res=$(sudo file -s /dev/sr0)
printf "waiting..."
while [[ $res == $pend ]]
do
res=$(sudo file -s /dev/sr0)
done
printf "done.\n"
sudo mount /dev/sr0 /media/1
a=$(find /media/1 -type f -printf x | wc -c)
b=$(find /media/1 -type d -printf x | wc -c)
casper_path=/mnt/casper/... | true |
24510cf26b8d8ede57d0d6fd3f81bf4da3c7e590 | Shell | bsc-dd/hecuba | /cassandra4slurm/scripts/execute.sh | UTF-8 | 13,108 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###############################################################################################################
# #
# Application Launcher for Slurm ... | true |
62019170c8a61fb49d5a62d1415edf3df0c640e8 | Shell | ohtu-rekry/recruitment-tool | /scripts/deploy-k8s.sh | UTF-8 | 986 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
npm prune --production
if [ ! -d ${HOME}/google-cloud-sdk/bin ]; then
rm -rf ${HOME}/google-cloud-sdk;
curl https://sdk.cloud.google.com | bash >/dev/null;
fi
source ${HOME}/google-cloud-sdk/path.bash.inc
gcloud components update kubectl
docker build -t ${DOCKER_IMAGE}:${TRAVIS_BUILD_NUMBER... | true |
23eec69014a6187ebc533a353f6bc9e980e0159c | Shell | andry81/tacklelib | /bash_tests/unit/02_traplib/01_push_trap/test_1.sh | UTF-8 | 1,462 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -n "$BASH" ]]; then
if [[ -z "$SOURCE_TACKLELIB_BASH_TACKLELIB_SH" || SOURCE_TACKLELIB_BASH_TACKLELIB_SH -eq 0 ]]; then
# builtin search
for BASH_SOURCE_DIR in "/usr/local/bin" "/usr/bin" "/bin"; do
[[ -f "$BASH_SOURCE_DIR/bash_tacklelib" ]] && {
source "$BASH_SOURCE_DIR/bash_tacklelib... | true |
2e81099d1a18a25ea7e1ea162e7250fd3e7e10cc | Shell | phreaker56/dmvps | /modulos/gen/VPSbot/TeleBotGen/sources/menu | UTF-8 | 2,367 | 2.703125 | 3 | [] | no_license | #!/bin/bash
menu_src () {
bot_retorno=" ⚡ Bienvenido al BotGen ADM-VPS ⚡\n"
if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
bot_retorno+="$LINE\n"
bot_retorno+=" ⚠️ TENDRAS ACCESO ILIMITADO ⚠️ \n 🚫 Sin TU RESELLER EN LA KEY 🚫"
bot_... | true |
37885d059b13e0b9f0114e576bfc99c862a98092 | Shell | LArbys/ubdl | /scripts/container_setenv.sh | UTF-8 | 1,145 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# LOCATIONS FOR UBDL CONTAINER (FOR USE ON TUFTS TYPICALLY)
# ROOT
source /usr/local/root/build/bin/thisroot.sh
# CUDA
# typical location of cuda in ubuntu
export CUDA_HOME=/usr/local/cuda-10.0
[[ ":$LD_LIBRARY_PATH:" != *":${CUDA_HOME}/lib64:"* ]] && export LD_LIBRARY_PATH="${CUDA_HOME}/lib64:${LD_LIBRA... | true |
a99b16bf00d3a7a5a89c7b2747c39bd958258b69 | Shell | bigdatalyn/bigdatalyn.github.io | /files/Linux/tigerVNC/TigerVNC-server automated installer for OL6.8.txt | UTF-8 | 2,292 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#author: alexandru.dobritescu@oracle.com
#date: 10-May-2018
#version: 1.0
#Each VNC desktop is associated with a user account. Change this value according to your needs.
display="1"
port="5901"
#Installing TigerVNC-Server
#this is checking wether TigerVNC-Server is installed or not; if it is not then it ... | true |
c498a35a8ac84ff63b649c1facbd21acfeaa63e6 | Shell | gungwald/utils | /java/bin/java-set-fonts.sh | UTF-8 | 672 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
FONT_NAME=monofur
FONT_TYPE=plain
FONT_SIZE=25
FONT_SPEC="$FONT_NAME-$FONT_TYPE-$FONT_SIZE"
# Swing fonts - Haven't gotten these to work
JDK_JAVA_OPTION="-Dswing.aatext=true -Dswing.plaf.metal.controlFont=$FONT_SPEC -Dswing.plaf.metal.userFont=$FONT_SPEC"
# Plastic fonts - Haven't gotten these to work
JDK... | true |
b0d8d149ee218bf079d60dca62da5ebf322d109b | Shell | ladyson/Weather-and-Crime | /Training_Pipeline/AccessData/FormatDataScripts/optimize_sample_ratio.sh | UTF-8 | 705 | 2.84375 | 3 | [] | no_license | for ratio in 100 50 40 30 20 10 5 4 3 2 1
#for ratio in 1 2 # for testing code
do
mkdir shooting
cp WeatherandCrime_Data.shooting.ones.csv shooting
cp WeatherandCrime_Data.shooting.zeroes.csv shooting
./bag_and_bin.sh WeatherandCrime_Data.csv 10 1 $ratio
#./bag_and_bin.sh WeatherandCrime_Data.csv 1 1 ... | true |
d6f08d5de1aa31f4469be70d8f9bed35fec1638a | Shell | IslamAlam/ml-setup | /conda_all.sh | UTF-8 | 8,395 | 2.609375 | 3 | [] | no_license | #!/bin/bash
NB_USER=$USER
CONDA_DIR=$ROOT_DIR/conda
BASE_DIR=$ROOT_DIR/
# Install Tini
conda install --quiet --yes 'tini=0.18.0' && \
conda list tini | grep tini | tr -s ' ' | cut -d ' ' -f 1,2 >> $CONDA_DIR/conda-meta/pinned && \
conda clean --all -f -y
# Install Jupyter Notebook, Lab, and Hub
# Generate a... | true |
48c7476901f1d3acc4953ce9a26f66a5f25090fa | Shell | archmangler/botfactory | /knowledgebase/makekb.sh | UTF-8 | 2,510 | 3.5625 | 4 | [] | no_license | #!/usr/bin/bash
#Small snippet to create a QnA knowledgebase
#From Microsofts DTO json format
#example: https://raw.githubusercontent.com/microsoft/botbuilder-tools/master/packages/QnAMaker/examples/QnADocumentsDTO.json
#https://github.com/microsoft/botbuilder-tools/tree/master/packages/QnAMaker/examples
kbase_file_pa... | true |
79d5f428968b4bce659b8204c641da809b3c346d | Shell | dawlane/cerberus | /src/builders/bash/tools.sh | UTF-8 | 6,527 | 3.578125 | 4 | [
"Zlib"
] | permissive | #!/bin/bash
# TOOL BUILDER FUNCTIONS VERSION
# THE SCRIPT IS PART OF THE CERBERUS X BUILER TOOL.
# Function to build transcc
do_transcc(){
EXITCODE=0
do_info "BUILDING TRANSCC WITH $COMPILER"
# Check for an exisiting transcc
[ -f "$BIN/transcc_$HOST" ] && { rm -f "$BIN/transcc_$HOST"; }
... | true |
32aea18116747158ece2b50e44dd10078c94ccaf | Shell | ternandsparrow/wild-orchid-watch-pwa | /scripts/rsync-up.sh | UTF-8 | 991 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# copies your working directory to some other computer.
# Intended to be used with the docker-shell.sh script when you're tight on
# internet quota. Start a VM in the cloud, use the docker-shell.sh to quickly
# get a dev server running. Continue working on your local machine and use this
# script to rsync t... | true |
4282e61b8482ab22130c6f62a335cf83c48d99e8 | Shell | eleniums/blackjack | /machine/scripts/generate_training_data.sh | UTF-8 | 523 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
iterations=1000
output="./machine/testdata/training.csv"
converted="./machine/testdata/training_converted.csv"
echo "Running simulation to generate training data..."
./scripts/run.sh -standard-ai -random-ai -num-players 0 -num-rounds $iterations -generate-training-data -training-data-file $output $... | true |
1cb719c96e67d9e6cf71d7e65eb2805e9d4d820a | Shell | stefanhummel/ADE_Db2_Lift | /ADE_sample_data/load_sample_data.sh | UTF-8 | 777 | 3.125 | 3 | [] | no_license | #################################################################################################
# Licensed Materials - Property of IBM
# (c) Copyright IBM Corporation 2019. All Rights Reserved.
#
# Note to U.S. Government Users Restricted Rights:
# Use, duplication or disclosure restricted by GSA ADP Schedule
# Contr... | true |
328edf4c64b47803150e84d529daccdaeea097ae | Shell | tapis-project/tapis-files | /release/release-update.sh | UTF-8 | 3,022 | 3.96875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Build, tag and push docker image for the release cycle.
# This is the job run in Jenkins as part of jobs 1_release-start and 2_release-update in
# Jenkins folder TapisJava->2_Release-Service-<service>
# RC version must be the first and only argument to the script
# Existing docker login is used for push
#... | true |
97f7b507709ad4b581d0eadad8c6d2983ac5bcd0 | Shell | Valuimnee/linux-command-line-networking | /execve-hash/execve.txt | UTF-8 | 94 | 2.625 | 3 | [] | no_license | #!/bin/bash
T=$(sha1sum "$1" | cut -b 1-40)
echo $T
p=/home/calapova_maria/dir
cp "$1" $p/$T
| true |
9d0946695248d76efdfc4f45526d6622191a76d5 | Shell | ContainerSolutions/core-plans | /yarn/plan.sh | UTF-8 | 1,126 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | pkg_name=yarn
pkg_origin=core
pkg_version=0.22.0
pkg_source="https://yarnpkg.com/downloads/$pkg_version/yarn-v$pkg_version.tar.gz"
pkg_shasum=e295042279b644f2bc3ea3407a2b2fb417a200d35590b0ec535422d21cf19a09
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="Yarn is a package manager for your ... | true |
e65c1a092a06018935b3edeb6bae811e512e651e | Shell | MagicalStrangeQuark/Linux | /Sample/Case.sh | UTF-8 | 266 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/zsh
NUMERO=3;
case $NUMERO in
1)
echo "1";
;;
2||3)
echo "2|3";
;;
4|5|6|7|8|9|10)
echo "4|5|6|7|8|9|10";
;;
*)
echo "Não foi possível encontrar o valor presente";
;;
esac | true |
0c536a407e92d270187525c04875bfbeaf6dc647 | Shell | illwieckz/datarepotools | /drt-gittest | UTF-8 | 584 | 3.4375 | 3 | [
"ISC"
] | permissive | #! /bin/sh
### Legal
#
# Author: Thomas Debesse <dev@illwieckz.net>
# License: ISC
#
_error () {
printf 'ERROR: %s\n' "${1}" >&2
exit 1
}
if ! [ -x "$(which git)" ]
then
_error 'git not installed'
fi
if ! [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = 'true' ]
then
_error 'not within git repository'... | true |
4a259f67e5121d8e5183d973f5bdb3488b3edd44 | Shell | dcycle/drupal_inquicker | /scripts/ci.sh | UTF-8 | 413 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#
# Run tests on Circle CI.
#
set -e
echo ""
echo " => Running fast tests"
echo ""
./scripts/test.sh
echo ""
echo " => Deploying Drupal 9"
echo ""
./scripts/deploy.sh 9
echo ""
echo " => Running some tests on the running Drupal 8 environment"
echo ""
./scripts/test-running-environment.sh
echo ""
echo " => ... | true |
9afa7ddf7923d0b7b29c3a2208dabeb23a4171a1 | Shell | luyongxi/deep_share | /experiments/scripts/archive/train_cls_branch_scratch.sh | UTF-8 | 744 | 2.703125 | 3 | [] | no_license | #!/bin/bash
iters=$1
stepsize=$2
base_lr=$3
model=$4
last_low_rank=$5
rounds=$6
aff_type=$7
set -x
set -e
export PYTHONUNBUFFERED="True"
LOG="../logs/train_dynamic_branch_scratch_${aff_type}.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec &> >(tee -a "$LOG")
echo Logging output to "$LOG"
cd ../..
time ./tools/train_cls.py ... | true |
01dc5a44d4706fd0ddd31bb71001e690f70bd7ff | Shell | harryrackmil/manhattan-trees | /treeCount.sh | UTF-8 | 1,101 | 2.59375 | 3 | [] | no_license | #!/bin/bash
cURL https://data.cityofnewyork.us/api/views/4eh7-xcm8/rows.csv?accessType=DOWNLOAD | grep -v ^1230\" | grep -v \"1230 | sed "s/a\ Circle,/a\ Circle/" | sed "s/\"//" > tmp.man
diff data/ManhattanTree.csv tmp.man > tmp.diff
if [ ! -e data/ManhattanTree.csv -o -s tmp.diff ]
then
rm -r data
mkdir data
... | true |
cd839f36673c584869020e24a049c74b15fa2c91 | Shell | jgarte/adventofcode-2020 | /11-1.sh | UTF-8 | 1,378 | 3.71875 | 4 | [] | no_license | #!/bin/sh
height="$(wc -l < "$3")"
height="$(( height + 1 ))"
width="$(head -1 "$3")"
width="${#width}"
around() {
r="$1"
c="$2"
head -"$(( r - 1 ))" > /dev/null # smaller rows
head -c"$(( c - 1 ))" > /dev/null # smaller columns
head -c3
head -1 > /dev/null # rest of the line
head -c"$(( c - 1 ))" > /dev/null #... | true |
47ef83b731c3dbb7996868b2e9bb869cc21a751f | Shell | dierobotsdie/random | /bin/copyhscripts | UTF-8 | 1,196 | 2.75 | 3 | [] | no_license | #!/bin/bash
hadoophome=~/HADOOP/hadoop-3.0.0-SNAPSHOT
common="hadoop-common-project/hadoop-common/src/main"
hdfs="hadoop-hdfs-project/hadoop-hdfs/src/main"
yarn="hadoop-yarn-project/hadoop-yarn"
mapred="hadoop-mapreduce-project"
kms="hadoop-common-project/hadoop-kms/src/main"
function copier
{
local dest=$1
shift
... | true |
a89db3e35ea709999bedcc2ec54b2f8e8e4906b4 | Shell | sasurau4/9ccs | /debug.sh | UTF-8 | 165 | 2.8125 | 3 | [] | no_license | #!/bin/bash
execute() {
input="$1"
./9ccs "$input" > debug.s
cc -o debug debug.s test_func.o
./debug
echo "status: $?"
}
execute ./test/debug.c | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.