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
d5dd40c470fa77dd3dc04073db95fe96a340e33e
Shell
crackerizer/kicad-footprint-script
/TerminalBlock_Dinkle_DT-55-B01X.sh
UTF-8
7,074
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash echo 'Generator script for Dinkle Terminal Block DT-55' PIN_LIST=$(seq 2 30) PITCH=10.0 generate_pad() { local pin_list=$(seq 0 $(($1-1))) local output local pin local PAD_DRAW local PIN_DRAW for pin in $pin_list; do local DX=$(bc <<< "scale=2; $pin*$PITCH") PAD_DRAW=" (fp_line...
true
a8f6b618a9e6b6e2a2e79da09a0f3535504dbe91
Shell
HexHive/magma
/tools/captain/post_extract.sh
UTF-8
2,579
3.953125
4
[]
no_license
#!/bin/bash ## # Pre-requirements: # + $1: path to captainrc (default: ./captainrc) # + env EXTRACT: path to extraction script (default: captain/extract.sh) ## cleanup() { rm -rf "$TMPDIR" } trap cleanup EXIT if [ -z $1 ]; then set -- "./captainrc" fi # load the configuration file (captainrc) set -a source...
true
530882e0fbdb719a9d69d44caac77e3e614c6862
Shell
jbaublitz/ci
/blackbox/reset-upstream-stratis-repos.sh
UTF-8
1,424
3.28125
3
[]
no_license
#!/bin/bash set -e STRATISD_REPO="https://github.com/stratis-storage/stratisd.git" STRATIS_CLI_REPO="https://github.com/stratis-storage/stratis-cli.git" STRATISD_N=$(rpmspec -P stratisd.spec | grep ^Name | awk {'print $2'}) STRATISD_V=$(rpmspec -P stratisd.spec | grep ^Version | awk {'print $2'}) STRATISD_R=$(rpmspec...
true
64ee20c953df427d83439c72bfdd7d03c1be4c7b
Shell
grasingerm/mnumerics
/scripts/build_test_clean.sh
UTF-8
110
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash scripts/build.sh for f in build/bin/test_* do echo "Running test: $f" $f done rm -R build/
true
3ba695dc91c56cd1da235780957eb7d9bb3cafd4
Shell
fedushare/ecp-ssh-demo-environment
/sp/ecp-ssh/configure.sh
UTF-8
1,697
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash set -e set -x echo "tls-server-end-point" > /root/.gss_saml_ec_cb_type echo "tls-server-end-point" > /home/vagrant/.gss_saml_ec_cb_type cat <<EOF > /etc/profile.d/mech_saml_ec_debug.sh export MECH_SAML_EC_DEBUG=true EOF chmod +x /etc/profile.d/mech_saml_ec_debug.sh #cat <<EOF > /home/vagrant/.gss_eap_i...
true
4ce39a7f6c9147dd304229e2a2a9ed2dc07558d9
Shell
NVIDIA/spark-rapids
/jenkins/spark-tests.sh
UTF-8
13,389
2.9375
3
[ "LicenseRef-scancode-warranty-disclaimer", "Zlib", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # # Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
true
45c302f51b34481179331d7a1d103a4d52210e07
Shell
josh-kaplan/dnd-npc-generator
/scripts/s3sync.sh
UTF-8
512
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # Run this from the project root directory pushd handouts mkdir -p public for f in `ls`; do if [ -f $f ]; then EXT=`echo $f | cut -d '.' -f 2 | tr '[:upper:]' '[:lower:]'` SHASUM=`sha256sum $f | awk '{print $1}'` cp $f public/$SHASUM.$EXT fi ...
true
6a9fc7ece463f34993ddfc2558c18b38adf85e41
Shell
joe-santoro/My-Scripts
/lhccertification/scripts/scriptlets/ipv6-off-procnet
UTF-8
476
3.75
4
[]
no_license
#!/bin/bash # # - - - # authority: Local/9 # description: Examines /proc/net for evidence of IPv6 # - - - set -e . `dirname $0`/../../lib/functions check() { # Anything written to stdout or stderr indicates a compliance problem. echo "))= Non-empty /proc/net/if_inet6 indicates an IPv6 interface:" cat /p...
true
c236bd0fc5a4ea4eb8110c1934a2d0fd13b97a49
Shell
gtmanfred/PKGBUILDs
/aur/advancemenu/PKGBUILD
UTF-8
668
2.515625
3
[]
no_license
# Contributor: Sebastian Wolf <fatmike303 at googlemail dot com> pkgname=advancemenu pkgver=2.5.0 pkgrel=1 pkgdesc="A frontend for AdvanceMAME emulator" arch=('i686' 'x86_64') url="http://advancemame.sourceforge.net" depends=('advancemame') license=('GPL') source=(http://downloads.sourceforge.net/sourceforge/advancema...
true
137b43d8eea121aa9ed4bc1360785a3d52ccc707
Shell
z0rzi/my_env
/scripts/docker_wrapper.sh
UTF-8
806
3.359375
3
[]
no_license
#!/bin/bash GREEN='\033[1;32m' RED='\033[1;31m' BLUE='\e[1;34m' BACK='\033[1;30m' SHADOW='\033[0;37m' GRAY=$SHADOW NC='\033[0m' if [ "$1" = "ps" ] && [[ ! "$@" =~ --format ]]; then shift echo -e "`docker ps $@ --format "Name . . . . ${BLUE}{{.Names}}${NC}\nID . . . . . ${RED}{{.ID}}${NC}\nImage ID . . {{.Ima...
true
729fa618b2450e2be5f1df912ebb4053b4796728
Shell
notqmail/notqmail
/binm2.sh
UTF-8
311
2.640625
3
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh # Using splogger to send the log through syslog. # Using binmail to deliver messages to /var/spool/mail/$USER by default. # Using SVR4 binmail interface: /bin/mail -r exec env - PATH="QMAIL/bin:$PATH" \ qmail-start \ '|preline -f /bin/mail -r "${SENDER:-MAILER-DAEMON}" -d "$USER"' \ splogger qmail
true
9e1e7525670cc7c9ba9c0583f86a17cb9e4ae5e9
Shell
tymons/bees-analyzer
/scripts/prepare-parallel-data.sh
UTF-8
4,463
3.984375
4
[]
no_license
#!/bin/bash RED=$(tput setaf 1) RESET=$(tput sgr0) echo -e "${RED}\nTHIS IS SCRIPT FOR PREPARING DATA TO ANALYSIS. BE SURE THAT ALL DATA IS READY!!!\n${RESET}" DATA_ROOT_DIC='/home/tymons/Projects/003.eUL/workspace/Ranalysis/data/csvresults' DATA_RESULT_DIC='/home/tymons/Projects/003.eUL/workspace/Ranalysis/data/temp'...
true
06798774cdbef8100712b8cefd57a128a005f030
Shell
marciopocebon/nix-dotfiles
/home-manager/configs/zsh/linux-desktop_zshrc.zsh
UTF-8
1,597
3.03125
3
[]
no_license
typeset -U path path=($HOME/.config/emacs/bin $HOME/.poetry/bin $HOME/.cargo/bin $HOME/.local/bin $HOME/n/bin $HOME/.ghcup/bin $HOME/.local/share/julia/bin $path) export TERMINAL="kitty" export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive export LD_LIBRARY_PATH=$LD_LIBRARY_PA...
true
da34f76eefe7f887749b307467677ce664c3ffe0
Shell
mguillemot/hosting-scripts
/deploy/apache-itk/rights.sh
UTF-8
635
4.25
4
[]
no_license
#!/bin/sh # # Enforce proper rights for a user. # For Apache-ITK based installations. # # Author: Matthieu Guillemot # Created: February 28th 2010 # ME=`whoami` if [ "$ME" != "root" ] then echo "ERROR: This script should be run as root" exit 1 fi HOME="$1" if [ -z "$HOME" ] then echo "USAGE: $0 <dir>" echo ech...
true
28c45ea74aee64b4af59d9391a49eb1abcdf9f61
Shell
OpenMandrivaAssociation/scala
/get-source.sh
UTF-8
515
3
3
[]
no_license
#!/bin/sh set -x VER=$(fedpkg verrel | sed -e 's/^scala\-\(.*\)\-.*$/\1/') FNS=scala-$VER rm -rf $FNS/ git clone git://github.com/scala/scala.git $FNS cd $FNS git checkout v$VER git log --pretty=format:"%H%n%ci" v$VER | head -n 2 | \ sed -e 's/\-//g' -e 's/\s\+.*//g' >../scala.gitinfo cd .. tar -zcf $FNS.tgz --ex...
true
a16bc39e08d4bd8c07bd8ac3de48bfa80abf900f
Shell
monarc99/aur
/lua-path/PKGBUILD
UTF-8
980
2.609375
3
[]
no_license
# Maintainer: Caleb Maclennan <caleb@alerque.com> _rockname=path pkgbase="lua-$_rockname" pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname") pkgver=0.3.1 _rockrel=1 pkgrel=4 pkgdesc='File system path manipulation library' arch=('i686' 'x86_64') url="https://github.com/moteus/$pkgbase" ...
true
aae706d1e39058e29ceba62a985312cce1ad296c
Shell
AnsariAbdulBasit/shell-scripting-tutorial
/Conditional-if-elif-else-fi.sh
UTF-8
208
3.34375
3
[]
no_license
#! /bin/bash echo "Please enter number" read n #n=30 if (( $n > 100 )); then echo "$n is greater than 100 " elif [ $n -gt 50 ]; then echo "$n is greater than 50" else echo "$n is less than 50" fi
true
824839509102ec834bd9f7a402cf9b88da317732
Shell
demorym/COSMO_extended_sandbox
/0_get_data/run_prev_nex_months
UTF-8
2,309
3.078125
3
[]
no_license
#!/bin/bash export LM_YYYY_BEGIN=2005 export LM_MM_BEGIN=09 bd_data=/project/pr04/ERAinterim/${LM_YYYY_BEGIN}/ERAINT_${LM_YYYY_BEGIN}_${LM_MM_BEGIN}.tar.gz next_date=$(date -d "${LM_YYYY_BEGIN}-${LM_MM_BEGIN}-01 1 month" +%Y-%m-%d ) echo 'Now' echo ${LM_YYYY_BEGIN}_${LM_MM_BEGIN} echo 'next' echo $next_date LM_YY...
true
e8baa628fbcc26c6e79cc31eaf82993c6332f178
Shell
nathan-lapinski/megamanjs
/tools/build.sh
UTF-8
398
2.796875
3
[]
no_license
#! /usr/bin/env bash TOOLS_DIR=$(dirname $0) SRC_DIR="$(dirname $0)/../src" BUILD_DIR="$(dirname $0)/../build" mkdir -p $BUILD_DIR cp "${SRC_DIR}/prod.html" "${BUILD_DIR}/index.html" cp "${SRC_DIR}/prod.css" "${BUILD_DIR}/megaman.css" cp "${SRC_DIR}/prod.js" "${BUILD_DIR}/main.js" cp -r "${SRC_DIR}/resource" "${BUI...
true
9fb818eab3a512ef1e9165d89c44eedce791407a
Shell
AliasWarHammer/active-module-stats
/skeleton_script.sh
UTF-8
444
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash # Author: PES1201700134, Parth Shah # Date: 10-11-2019 # Runs modinfo on each lsmod from /proc/modules while read p; do modarr=($p) echo "name: " ${modarr[0]} echo "size: " ${modarr[1]} echo "instances: " ${modarr[2]} echo "dependancies: " ${modarr[3]} echo ...
true
558bc43dfba7ba8a23eb2dd7dddc6a237ebef8c9
Shell
CAAPA/gwas_adpc_imputation_pipeline
/scripts/create_caapa_freq_files.sh
UTF-8
1,730
3.671875
4
[]
no_license
#!/bin/bash #Set parameters if [ "$#" -eq "0" ] then echo "Usage: ${0##*/} <chr_start> <chr_end>" exit fi chr_start=$1 chr_end=$2 mkdir ../data/working for ((chr=$chr_start; chr<=$chr_end; chr++)); do #Apply QC as documented in VCF_DataRelease_README_Oct2015.pdf, and extract only SNPs vcftools --gz...
true
06148e04995cdb10cd15b4a8a87d7db8f4398217
Shell
freegeek-pdx/fg-git-tools
/git-pull-cron
UTF-8
445
3.796875
4
[]
no_license
#!/bin/sh # TODO: add locking if [ -z "$1" ]; then echo "Usage: $(basename $0) directory" exit 1 fi if [ ! -d "$1" ]; then echo "$1 is not a directory" exit 1 fi if [ ! -d "${1}/.git" ]; then echo "$1 is not git checkout" exit 1 fi RET=23 T=$(mktemp) cd "$1" git pull 2>&1 > $T RET=$? cat $T |...
true
55e1f65c4bc60f3c2befb5584690642bb3974287
Shell
TheSmurfs/shellscripts
/select_people.sh
UTF-8
276
2.90625
3
[]
no_license
#!bin/bash team=(丝丝 坤坤 花花 涛涛 标标 龙龙 蔡蔡) echo "名单共有七名成员:${team[@]}" echo -n "让我们倒数三秒:3" sleep 1 echo -e -n "\b2" sleep 1 echo -e -n "\b1" sleep 1 echo -e "\b0" echo "我们选出的队员是:${team[(( $RANDOM%7 ))]} "
true
fc19286d02ebb9211abe30be2db7a5411ad533be
Shell
alexivkin/minecraft-launcher
/get-minecraft-client.sh
UTF-8
9,394
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # get the latest version and build the latest set -euo pipefail if [[ $# -eq 0 ]]; then echo Specify the Minecraft Version or "latest" for the latest version of minecraft exit 0 fi MAINLINE_VERSIONS_JSON="https://launchermeta.mojang.com/mc/game/version_manifest.json" # could also do latest.snaps...
true
594e184acf19ec959161b0e2d1c182c813f4f8e0
Shell
raresteak/linux_scripts
/dice_roller_D6.sh
UTF-8
575
3.875
4
[]
no_license
#!/bin/sh # D6 dice roller # Written with Tunnels and Trolls game in mind but # game that uses a number of D6's can use this script. read -p "Enter number of D6 to roll: " DICE TOTAL=0 TOTALSIX=0 echo "Rolling $DICE" echo "Possible max of rolling $DICE is $(( $DICE * 6 ))" while [ $DICE -ge 1 ] do X=$(shuf -i 1-6 ...
true
2dad0bdb410a781720927e83c52c59da2b761936
Shell
cloudfoundry-community/windows-stemcell-concourse
/tasks/functions/utility.sh
UTF-8
2,446
3.828125
4
[ "MIT" ]
permissive
#!/bin/bash # # Task Description: # Odd utlity functions to make life easier. # # ###################################### # Description: # # Arguments: # None ####################################### function writeErr() { local msg="${1}" echo "[ERROR]: ${msg}" } ###################################### # Descripti...
true
0292adcd38c3db71a547e93759a9c356f14091e6
Shell
techniumlabs/service-catalog
/contrib/hack/migration-check.sh
UTF-8
8,565
3.640625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2017 The Kubernetes 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 applicab...
true
0d9389093933acf29d1101c9bc1122e5c4a26261
Shell
mlevin2/useful-things
/scripts/dedupe-and-link
UTF-8
967
4.125
4
[]
no_license
#!/usr/bin/env bash # dedupe files between two directories and replace with symlinks # ------------------------------------------------------------------------------- # for any file found in the "non-authoritative" location that also exists in the # "authoritative" location, delete the non-authoritative copy and repla...
true
bc7bb045f53838653013a0b1bb7e7c15c9e521e1
Shell
amuletml/amulet
/tools/sign.sh
UTF-8
447
3.109375
3
[]
permissive
#!/usr/bin/env bash set -e export GPG_TTY=$(tty) ls result/* | while read -r file; do printf "==> Signining %s\n" $file test -r $file || ( echo "Can't read $file"; exit 1 ) echo $SIGNING_KEY_PW | \ gpg --batch --passphrase-fd 0 --detach-sign \ --pinentry-mode loopback \ --armor $file ec...
true
c9513489dcaeabb5a227da3e7f86d195b01f70ba
Shell
pivotalsquid/stackdriver-tools
/scripts/build-custom-tile-docker.sh
UTF-8
1,007
3.484375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#! /bin/bash # This script builds a BOSH release of stackdriver-tools and uses the tile # generator to pacakge it into a tile. It expects VERSION to be set to a valid # semantic version, GOPATH to be set, and PATH to include $GOPATH/bin, which # must contain the `bosh2`, `golint` and `ginkgo` binaries. # # It is meant...
true
086bdbf8a6ab4e059c6adc54cacea3703f6123ba
Shell
pished/arch-dotfiles
/bin/scripts/gltheme
UTF-8
3,871
3.1875
3
[]
no_license
#!/bin/sh # TODO: # change themes from: nvim, kitty, rofi, polybar, gkt, firefox, Xresources, bspwmrc, dunstrc chosen="$(printf "Nord\nGruvbox" | rofi -dmenu -p "New Theme")" NVIM="$HOME/.config/nvim/lua/config.lua" ROFI="$HOME/.config/rofi/" GTK="$HOME/.config/gtk-3.0/settings.ini" FIRE=$(echo ~/.mozilla/firefox/*....
true
9c073f072f0b511f1767ccb88f72862a572c1e69
Shell
joanrieu/parac
/test.sh
UTF-8
154
2.625
3
[]
no_license
#!/bin/bash set -e OUT=a.out exec 3>&1 exec >"$OUT.s" ./ParaC.sh "$@" exec 1>&3 cat "$OUT.s" gcc -m32 -o "$OUT" "$OUT.s" src/ParaC.c -lpthread -g ./$OUT
true
9d96bfbe27eae8f70bcfb4f7089034b71be7289f
Shell
sujithkpanoor/fosslab
/expt1.sh
UTF-8
313
2.96875
3
[]
no_license
echo "user name is :$USER " echo "login name is :$LOGNAME" echo "current working shell :$SHELL" echo "home directory is : $HOME " echo "operating system type is : $OSTYPE " echo "current path is :$PATH " echo "current directory is: $(pwd)" echo "the number of users currently logged in is :`who | wc -l`"
true
4ab3f2e550181d06a24837458280e37403cbc8ef
Shell
TMcMac/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/8-for_ls
UTF-8
188
3.546875
4
[]
no_license
#!/usr/bin/env bash # a script to display the contents of a file less the leading numbers and hyphen current_dir="$(ls .)" for name in $current_dir do echo "$name" | cut -d '-' -f2 done
true
7950c796c09e58371f2d4558c90de5b9ae174e45
Shell
greatlse/TURTLE
/gamess-cpu/examples/parallel_GAs/test_jobs/validate.sh
UTF-8
1,740
4.4375
4
[]
no_license
#!/bin/sh # Simple script to validate the base outputs # Default locations of the validate program, vtab file and # list of jobs is set below - change these as necessary # Work out where the base test directory is if [ "${0:0:1}" = "/" ] then # we've been called with an absolute path so just get the directory ...
true
4af4e77afba04208a24382607828ba103fcf3db2
Shell
fhoeben/hsac-fitnesse-fixtures
/docker/test/runTests.sh
UTF-8
510
3.390625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env sh FITNESSE_CP="wiki/fixtures:wiki/fixtures/*" CMD="java -cp ${FITNESSE_CP} ${FITNESSE_OPTS} $* nl.hsac.fitnesse.junit.JUnitConsoleRunner nl.hsac.fitnesse.HsacFitNesseSuiteStarter" echo "${CMD}" if [ "${RE_RUN_FAILED}" = "true" ]; then echo "An attempt will be made to rerun failed tests, should the...
true
5bc057186ce324282c4280372d14277c07d4ad5e
Shell
adamaveray/blight
/run.sh
UTF-8
1,476
3.75
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" APP_PATH="${DIR}/Blight.phar" # Load system paths PATH_POSTS="${DIR}/$( php -f ${APP_PATH} config:paths.posts )" PATH_PAGES="${DIR}/$( php -f ${APP_PATH} config:paths.pages )" PATH_DRAFTS="${DIR}/$( php -f ${APP_PATH} config:paths.drafts )" PATH_ASSE...
true
db636af5bf471b16baccb1b90194bdba33f970a5
Shell
eerimoq/monolinux-example-project
/3pp/linux/tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc
UTF-8
3,486
3.890625
4
[ "MIT", "Linux-syscall-note", "GPL-2.0-only" ]
permissive
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: ftrace - test for function traceon/off triggers # flags: instance # # Ftrace allows to add triggers to functions, such as enabling or disabling # tracing, enabling or disabling trace events, or recording a stack trace # within the ring buffer. # # This test is...
true
7093e83eac430c85c736a1f0f974553b0410dc15
Shell
sarroutbi/buscobici
/procscripts/wiggle_proc.sh
UTF-8
7,629
3.5625
4
[ "ISC" ]
permissive
#!/bin/bash # # Copyright © 2012-2013 Sergio Arroutbi Braojos <sarroutbi@gmail.com> # # Permission to use, copy, modify, and/or distribute this software # for any purpose with or without fee is hereby granted, provided that # the above copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
true
e81bb9e5a6d879adfc6d1b57a0db78d26bab3e15
Shell
gazlee/mac-scripts
/Autodesk-Maya-2019-Silent-Install.sh
UTF-8
1,588
3.140625
3
[]
no_license
#!/bin/sh #This scripts installs Maya 2019 silently and with the option for a network license server. #Easiest way to deploy is to create a package that will copy "Install Maya 2019.app" into /tmp/ then run this script as a post-install task. #Tested with macOS 10.13, 10.14 and 10.15 beta using a Jamf Composer package....
true
5d7a7fb54afba2cbd4fce03cd34a6daaec65030b
Shell
kgmyshin/swagger-auto-server-sample
/scripts/pr-for-client-if-needed.sh
UTF-8
1,217
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash # android repositoryの取得 HASH=$(git rev-parse --short HEAD) mkdir ~/android cd ~/android git clone git@github.com:kgmyshin/swagger-auto-android-sample.git cd swagger-auto-android-sample #差分チェック wget https://kgmyshin.github.io/swagger-auto-server-sample/swagger.json swagger.json DIFF_COUNT=$(diff swagger.js...
true
5231ff67370b0d6234ebae787a3e64b8ed3b00c3
Shell
Freifunk-Nord/nord-site
/.gitlab-ci/patch.sh
UTF-8
640
3.828125
4
[]
no_license
#!/usr/bin/env bash set -e -o pipefail shopt -s nullglob unset REVERT err() { ( >&2 echo $@ ) } usage() { err "${0} [ -r] <patchdir> <target>" exit 1 } while getopts "r" opt; do case $opt in r) REVERT=1;; *) usage;; esac done shift $((OPTIND - 1)) PATCHDIR="$1" TARGET="$2" [ -n "$PATCHDIR" ] && [ -d "$...
true
13f11293054308a3a96e73f62a7e28ca06079bb2
Shell
harrisonlab/hop_genomics
/SNP_calling/indel_realignment_v2.sh
UTF-8
1,371
2.921875
3
[]
no_license
#!/usr/bin/env bash #SBATCH -J indel_realignment #SBATCH --partition=himem #SBATCH --mem-per-cpu=12G #SBATCH --cpus-per-task=30 ########################################################################## #INPUT: # 1st argument: Refrence fasta # 2nd argument: sample name (prefix) to be used to identify it in the futur...
true
62a166e1209f23f771357368dbd6e3e8dd2016a2
Shell
karunsiri/dotfiles
/git_template/hooks/post-checkout
UTF-8
123
2.65625
3
[]
no_license
#!/bin/sh local_hook="$HOME"/.git_template.local/hooks/post-checkout if [ -f "$local_hook" ]; then . "$local_hook"; fi
true
4d22c27c0a3fa6964f1a2c96df59e1678e5ffd9b
Shell
psyriccio/c1syntaxx
/fix-links.sh
UTF-8
753
2.953125
3
[]
no_license
#!/bin/bash cd ./root echo "Fixing links etc..." find ./ -name "*" -type f -print0 | xargs -0 sed -i -e 's/v8help:\/\/SyntaxHelperContext\//\/c1syntax\//g' find ./ -name "*" -type f -print0 | xargs -0 sed -i -e 's/v8help:\/\/SyntaxHelperLanguage\//\/c1syntax\//g' find ./ -name "*" -type f -print0 | xargs -0 sed -i -e '...
true
3863e5e355cd056037e62db2613c64aadeb1278d
Shell
raonifn/dotfiles
/install/03-zsh-theme.sh
UTF-8
588
4.09375
4
[]
no_license
#!/bin/bash dir=$(dirname $0) if ! zsh --version; then echo "Install zsh and run $0" exit 1 fi if [[ ! -d $HOME/.oh-my-zsh ]]; then echo 'Installing Oh My ZSH'; sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" fi echo 'Installing themes' cd $dir/../zsh/th...
true
5a54d8898c150db94176e6597b389805b2e7dd0d
Shell
moha-rk/EP3_SO
/script.sh
UTF-8
7,129
2.859375
3
[]
no_license
#!/bin/bash # script rm fs.txt echo Sistema de arquivos vazio echo ---------------------- FS vazio \(1 e 4\) ---------------------- input1='./arquivos_teste/Teste1.txt' input2='./arquivos_teste/Teste456.txt' cria='./arquivos_teste/mount.txt' for i in `seq 1 30` do ./ep3 < $cria echo "$i"; start=`date +%s%N...
true
25cc36e47b70857d4ee754516bc38f7326eb741d
Shell
i72pecaf/2-_SegundoCuatrimestre
/PAS/PASP4/recibidos/p3__/ejercicio6.sh
UTF-8
2,081
3.734375
4
[]
no_license
# Comprobación de argumentos if [ $# -ne 1 ]; #Solo recibe el nombre del directorio que tenemos que recorrer then echo "ERROR: La ejecución del programa debe ser '$0 <nombre_directorio>'" exit 1 fi #Compruebo que el argumento pasado sea un directorio if [ ! -d "$1" ]; then echo "ERROR: El argumento $1 no es un direc...
true
f96dee2a0f2756311e20813b30a7530d420d83c9
Shell
angelajburden/reconstruction-code
/script_recon_DR12_mock
UTF-8
872
2.5625
3
[]
no_license
#!/bin/bash for i in {2..20} do let ia=i-1 let is=1+5*ia let ie=5*ia+5 echo "#!/bin/bash" > tmp3.sub echo "#PBS -q regular" >> tmp3.sub #echo "#PBS -l nodes=1:ppn=12,walltime=20:00:00,pmem=100mb" >> tmp3.sub #echo "#PBS-l walltime=00:30:00 -l mppwidth=12" >> tmp3.sub echo "#PBS -l mppwidth=24" ...
true
813d4768d10ee9bf2cc08a2a2abfa339fb4f0854
Shell
pragmagrid/lifemapper-server
/src/rocks-lifemapper/updateDB.in
UTF-8
3,465
3.9375
4
[]
no_license
#!/bin/bash # # Update @LMHOME@/config/config.lmserver.ini file with correct ip info # usage () { echo "Usage: $0" echo "This script stops apache, applies needed database table changes," echo "recreates types, views, and functions, then restarts apache" } TimeStamp () { echo $1 `/bin/date` >> $LO...
true
c375b7598d964dff015679d04c5b3ad1ffb967cf
Shell
florjaco/DWIReproducibleNormalization
/0_MainScript_DTINormalizationtoMNI152T1ViaIndividualFATemplate.sh
UTF-8
2,085
3.625
4
[]
no_license
#!/bin/sh # Main Script # Normalization of DTI images to MNI152_T1_1mm template via an intermediate individual FA template. # Input Parameters: #<directory> is the full path to the folder where FA, MD and B0 images are be stored, all in a SUBJECT folder. Inside the FA and B0 folders we will have the FA and B0 FA-d...
true
1bc74805095920f8b89b61e15c9e0dca9147170d
Shell
johnkdoe/freeforall
/xolawareAboutInfoVersionInfoInSettings.sh
UTF-8
809
2.859375
3
[]
no_license
#!/bin/sh # # this should be invoked after xolawareStashInfoAndRootPlist.sh, # xolawareIncrementProductSettingsBuildNumber.sh and # xolawareProductSettingsShortVersion-from-git.sh, and before # the regular Copy Bundle Resources Build Phase echo '-- Auto-Insert Version Info In System Settings Script --' PLISTBUDDYCMD...
true
8bfa685eb8ca1f918cd2919ec65b99697957290e
Shell
hasantayyar/terraform-nodeping-module
/http_check/create.sh
UTF-8
455
2.859375
3
[]
no_license
#!/bin/bash # this script is used to create new http checks # See https://nodeping.com/docs-api-checks.html set -o nounset set -o errexit set -o pipefail set -o errtrace NODEPING_URL=$1checks?token=$2 TARGET=$3 CONTACT_GROUP_ID=$4 curl -X PUT \ -d\ 'json={"sens": 2, "threshold":15, "interval": 1,"target":"'"$TA...
true
40474db9f8b1cbd06ffe9317296a43e1dfbee440
Shell
SteveCossy/IOT
/MQTTupload/Run-At-Reboot.sh
UTF-8
715
2.890625
3
[]
no_license
OUTFILE=/home/pi/Run-At-Reboot-Text OUTERROR=/home/pi/Run-At-Reboot-Error echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* >>$OUTFILE echo -n About to start at: >>$OUTFILE date >>$OUTFILE # DON'T Wait for webiopi to get started # while [ `ps -ef | grep -v grep | grep -c webi...
true
06819de55ebda1e3ca480882a5a47956cdd1cb34
Shell
faker2081/pikachu2
/projects/ai/naic_seg/gseg/third/satellite_seg/submit.sh
UTF-8
684
2.828125
3
[]
no_license
#!/bin/bash resuts_dir=$1 use_crf=$2 test_dir=dataset/CCF-testing-Semi #use crf if [ ${use_crf} -eq '1' ] ; then if [ ! -f ${resuts_dir}/vis_test_1_post.png ] ;then python utils/inference.py ${test_dir}/1.png ${resuts_dir}/vis_test_1_pred.png ${resuts_dir}/vis_test_1_post.png & fi if [ ! -f ${resuts_dir}/vis_tes...
true
e950f53919cd4b60c4f470fcfaa17252eb429a61
Shell
acolomba/skel
/dotfiles/bashrc
UTF-8
4,165
3.4375
3
[]
no_license
# do nothing if non-interactive [[ $- != *i* ]] && return # completion; this runs only on 4+ if (( $BASH_VERSINFO >= 4 )); then IFS=: read -a paths <<< "$PATH" for path in "${paths[@]}"; do for location in ${path}/../etc/bash_completion ${path}/../share/bash-completion/bash_completion ${path}/../etc/pr...
true
b6840b962ba3668cc53fb1e686e33baa5c4f7480
Shell
supreet-s8/PMRSAP
/PMR-MGMT2RCKLN/CODE/mgmt2rckln/opt/traps-data-tx.sh
UTF-8
1,370
3.421875
3
[]
no_license
#!/bin/bash # Sync data for 24 hours. ALL Alarm files for last 10 days; snmptrapd.log, /var/log/snmptrapd.log.1.gz #------------------------------------------------------------- source "/data/scripts/PMR/opt/rckln-pm.cfg" if [[ $? -eq '0' ]]; then if [[ `am_i_master` -ne '0' ]]; then exit; fi fi #-------------------...
true
63cc57d2d6104b832e7082e5033668b05e29f206
Shell
ckaznocha/dotfiles
/home/.zshrc
UTF-8
2,252
2.734375
3
[ "MIT" ]
permissive
# Fig pre block. Keep at the top of this file. [[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" #! /zsh # Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random...
true
2f240a12511710561bc6668d89e4fd6771cf953f
Shell
blancheta/pre-format-pull-request-on-pre-push
/pre-push
UTF-8
1,963
4
4
[]
no_license
#!/bin/sh # An example hook script to verify what is about to be pushed. Called by "git # push" after it has checked the remote status, but before anything has been # pushed. If this script exits with a non-zero status nothing will be pushed. # # This hook is called with the following parameters: # # $1 -- Name of t...
true
ed803865c4059e1be59c40bebae9ee0ba8e542da
Shell
sndwvs/slarm64_rootfs
/depend_check.sh
UTF-8
353
3.234375
3
[]
no_license
#!/bin/sh export LC_MESSAGES=C LOG="depend" for exe in $(ls /{s,}bin /usr/{s,}bin);do if [[ -d ${exe/:/} ]];then echo -e "$exe" >> /$LOG DIR=${exe/:/} elif [[ $(ldd ${DIR}/$exe | grep "not found") ]];then echo -e "\t$exe" >> /$LOG ldd ${DIR}/$exe | grep "not found" | xargs ech...
true
d839dccbc597c6bb84f79736290aa1be7e9b522d
Shell
HeapStats/heapstats-builder
/experimental/ubuntu/build.sh
UTF-8
848
3.3125
3
[]
no_license
#!/bin/bash # Proxy setting source maven-proxy.sh if [ -n "$LOCAL_GZ_ARCHIVE" ]; then tar xvfz archive/$LOCAL_GZ_ARCHIVE else if [ "$VER" != "2.0" ] && [ "$VER" != "2.1" ]; then VER=trunk fi # Clone from HeapStats repo if [ "$VER" = trunk ]; then hg clone http://icedtea.classpath.org/hg/heapstats ...
true
864de15edbc7e94dc5e68b1039cd2a5e2a7683f2
Shell
anthonyrisinger/vps-lxc
/etc/profile.d/vps-lxc.sh
UTF-8
388
3.328125
3
[]
no_license
#!/bin/bash # add vps-lxc to PATH; export VPS_CONF l=vps-lxc; s=vps if [ -z "$(type -t ${l} ${s})" ]; then for x in {,/vps,/usr,/usr/local,/opt,/opt/local}/etc/{${l}/${l},${s}/${s}}.conf; do if [ -f "${x}" ]; then export VPS_CONF="${x}" [ "${x}" != "${x#/etc/}" ] || export PATH="${P...
true
37039883c45b442b88cfceaf3645fa69e08fea04
Shell
garotconklin/terraform
/buildr_scripts/dev-api_buildr.sh
UTF-8
2,839
3.34375
3
[]
no_license
#!/bin/bash # dev.api.digitalclone.com: ENV='dev' SLACK_CHANNEL='#release' # default branch(s) api_branch="master" # while [ $# -gt 0 ]; do case "$1" in --version=*) version="${1#*=}" ;; --dc_api=*) api_branch="${1#*=}" ;; *) printf "* Error: Invalid argument.*\n" exi...
true
081b7a5dea268bb3b45527e063b89e3a5ebbce17
Shell
dbaasgit/PhysicalStandbyWithDGBroker
/roles/sbdb19c_create/templates/lsnr_upd.sh.j2
UTF-8
850
3.109375
3
[]
no_license
#!/bin/bash export ORACLE_HOME= {{ oracle_home }} export LSNR_FILE= {{ stlsnr_file }} export ENTRY_NAME= {{ oracle_sbsid }} export TNS_ADMIN_DIR= {{ tns_path }} export TARGET_SID=`echo {{ oracle_sbsid }} | tr '[:lower:]' '[:upper:]'` chk_entry=`cat {{ tns_path }}/{{ stlsnr_file }} | grep "SID_LIST_LISTENER =" | wc -...
true
a2437456f94009b5d9bc6123bbb2d0b1d0179d32
Shell
jhonnjc15/holberton-system_engineering-devops
/0x05-processes_and_signals/4-to_infinity_and_beyond
UTF-8
167
3.21875
3
[]
no_license
#!/usr/bin/env bash # Bash script that displays To infinity and beyond indefinitely. inf_count=1 while [ $inf_count ] do echo "To infinity and beyond" sleep 2 done
true
be838a1ed1c15193ae9a26c7bb2143c45d86b064
Shell
sidspencer/xmd-cli
/linux/thunar-setxmd
UTF-8
293
2.796875
3
[]
no_license
#!/bin/bash OUTPUT="/tmp/thunar-setxmd.output" >$OUTPUT dialog --title "Tags" --inputbox "Please enter a comma-only separated list of tags" 100 100 2>$OUTPUT TAGS=$(<$OUTPUT) echo "${TAGS}" /home/dis/bin/setxmd "${TAGS}" "${@}" rm $OUTPUT echo "###### Please Close This Terminal ######"
true
a37e6178347676b7bb2668131291b7646044134f
Shell
Calnex/optware
/scripts/clean-build
UTF-8
643
2.96875
3
[]
no_license
#!/bin/sh if [ -d "$PWD/builds" ]; then { sudo kill -9 $(sudo lsof -t +D $PWD/builds); } fi if [ -d "$PWD/staging" ]; then { sudo kill -9 $(sudo lsof -t +D $PWD/staging); } fi if [ -d "$PWD/packages" ]; then { sudo kill -9 $(sudo lsof -t +D $PWD/packages); } fi if [ -d "$PWD/toolchain" ]; then { sudo kill -9 $(sudo lso...
true
4b1b402f7156ee54e06886719e3f3569a177837e
Shell
aoqingy/vCloudTerminal-Ubuntu1804
/vfd/var/www/vfd/script/media_play.sh
UTF-8
204
2.890625
3
[]
no_license
#!/bin/bash cd `dirname $0` . ./vf_display.sh [[ -f /root/.vflock ]] && exit [[ `ps -ef |awk '$0 ~ /ffplay/ && $0 !~ /awk/''{print $2}'` ]] && exit if [[ ${1} ]] then ffplay -fs ${1} -ss ${2:-0} fi
true
629075d46ecd7c5eb2b471dc7b1ff5838ef1bf0d
Shell
soumenbiswas/local-linux-repo
/bash_scripting/Day8/num_word.sh
UTF-8
575
3.46875
3
[]
no_license
#!/bin/bash read -p "Enter any number in between (0-5)" num if [ "${num}" -gt -1 -a "${num}" -le 6 ] then echo "The number is in range" if [ "${num}" -eq 0 ] then echo "input number is zero" elif [ "${num}" -eq 1 ] then echo "input number is one" elif [ "${num}" -eq 2 ] then echo "input number ...
true
6f1e57bdf4d7b61e17f5c300ec9a28e0434c6934
Shell
ludat/zshrc
/zshrc
UTF-8
1,725
2.734375
3
[ "MIT" ]
permissive
# load zgen export ZGEN_DIR="$HOME/.zsh/zgen/" source "$HOME/.zsh/zgen.zsh" source "$HOME/.zsh/bzr.zsh" source "$HOME/.zsh/completion.zsh" source "$HOME/.zsh/correction.zsh" source "$HOME/.zsh/directories.zsh" source "$HOME/.zsh/functions.zsh" source "$HOME/.zsh/git.zsh" source "$HOME/.zsh/grep.zsh" source "$HOME/.zsh...
true
830a031095e870eb023506caeb9ab6b849c32f60
Shell
mariushoch/Tools-hoo
/tests/phpunit/phpunit.sh
UTF-8
230
2.625
3
[]
no_license
#!/bin/bash if [ -r $(dirname $0)/phpunit.phar ] then php $(dirname $0)/phpunit.phar --bootstrap=$(dirname $0)"/../../includes/Autoloader.php" "$@" else phpunit --bootstrap=$(dirname $0)"/../../includes/Autoloader.php" "$@" fi
true
3c71a6fc7c22cc64251b58ab9d8598a84cdb1356
Shell
wbglizhizhong/DNA-methylation-signatures-of-duplicate-gene-evolution-in-angiosperms
/scripts/analyses_sh/At_build_table.sh
UTF-8
751
2.90625
3
[]
no_license
#!/bin/bash --login #SBATCH --time=3:59:00 #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --cpus-per-task=1 #SBATCH --mem=1GB #SBATCH --job-name job_reports/build_table #SBATCH --output=%x-%j.SLURMout cd $PBS_O_WORKDIR export PATH="$HOME/miniconda3/envs/gene-duplication/bin:$PATH" export LD_LIBRARY_PATH="$HOME...
true
b75ce9b4dbe7ff8868788ed5e40832452f861e1a
Shell
mceme/sentinelimgc
/share/travis_setup.sh
UTF-8
151
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/bash set -evx mkdir ~/.dashcore # safety check if [ ! -f ~/.dashcore/.dash.conf ]; then cp share/dash.conf.example ~/.dashcore/dash.conf fi
true
57b467f6d251856e1f41e9325d3a5b30d35cd2ae
Shell
wajihyassine/turbinia
/k8s/tools/helper.sh
UTF-8
1,030
2.5625
3
[ "Apache-2.0" ]
permissive
# Setup some useful things alias k=kubectl # Apply a yaml file alias kaf='kubectl apply -f' # Exec into a pod alias ke='_ke(){ kubectl exec --stdin --tty $1 -- /bin/bash; unset -f _ke; }; _ke' # Get logs alias kl='kubectl logs' alias kl1h='kubectl logs --since 1h' alias kl1m='kubectl logs --since 1m' alias kl1s='kubect...
true
a1cf6a1cdf6a43b12a27c49bc52b178506af5a22
Shell
mrskycriper/itmo.operating-systems
/Lab04/rmtrash.sh
UTF-8
582
3.625
4
[]
no_license
#!/bin/bash if [[ (-z "$1") || (-n "$2") ]] then echo "Error, invalid arguments" exit 1 fi (find "$1" 2> /dev/null > /dev/null) || (echo "Error, no such file found" ; exit 1) input="${1// /_}" #echo $input (find ~/.trash 2> /dev/null > /dev/null) || (mkdir ~/.trash) trashedFileName=$(tree ~/.trash | tail -1 | a...
true
be7782ccb01f0e850510a10fe3c809f57506e34f
Shell
danielcbaldwin/dotfiles
/bin/.bin/i3-blur-wall.sh
UTF-8
3,422
3.546875
4
[]
no_license
#!/bin/bash CURRWORKSPACE=$(wmctrl -d | grep '*' | cut -d ' ' -f1) #echo "Current workspace: $CURRWORKSPACE" WINDOWS=$(wmctrl -l | cut -d ' ' -f3 | grep $CURRWORKSPACE | wc -l) #echo "Open windows on workspace$CURRWORKSPACE: $WINDOWS" CURRWALLPAPER=$(tail -n1 ~/.fehbg | cut -d "'" -f2) #echo "Wallpaper path: $CURRWA...
true
85a926743f518b5fa1baa80574c17d208fc1742e
Shell
xwang0818/scripts
/datesetcst.sh
UTF-8
301
2.953125
3
[]
no_license
#!/bin/bash update_kernel_params() { echo Setting date on $1 ssh $1 bash -c "' cp /usr/share/zoneinfo/America/Chicago /etc/localtime date '" } for i in `seq 1 50`; do update_kernel_params compute$i done update_kernel_params controller1 update_kernel_params controller2
true
3446bf5dd148b63d739677cad038ba1a137c7ad4
Shell
StruggleYang/random-v
/dockerBuild.sh
UTF-8
496
2.703125
3
[]
no_license
#!/bin/bash echo "==== commit id =====" gid=$(git rev-parse --short=7 HEAD) echo $gid echo -e "runing [cnpm || npm install]······" cnpm install || { echo -e "run [cnpm install] faild, try run [ npm install ]"; npm install; }; echo "==== runing [npm run build] ====" npm run build echo "==== copy dist to docker/apps ====...
true
8bdb8976d833a4f6e4270fa49759f6b00ede9b88
Shell
OpenSourceConsulting/playce-meerkat
/agent/runtarget.sh
UTF-8
378
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $ANT_HOME ] ; then EXE_ANT=$ANT_HOME/bin/ant else export ANT_HOME=$(pwd)/apache-ant-1.9.6 fi echo ANT_HOME: $ANT_HOME export MRUN_OPTS="$1" if [ e$2 != "e" ] ; then export MRUN_OPTS="$MRUN_OPTS $2" fi if [ e$3 != "e" ] ; then export MRUN_OPTS="$MRUN_OPTS $3" fi echo ant...
true
ec54dfccdce6cc1113996dc88f91fa9c24a8239d
Shell
lijiansheng325/python-2019
/perfmon.sh
UTF-8
3,301
3.328125
3
[]
no_license
#!/bin/bash # Version: 2017.04.14 ############ BEGIN Adjustable Parameters ############ # How many seconds you refresh data SLEEP_SECONDS=3 # ADB Device Serial Number ADB_SN="" # How many seconds you check for /proc/stat change CPU_STAT_SECONDS=1 #QCOM S820A CPU Temp Sensors TSENSOR_LIST="0 1 2 3 4 5 6 7 8 9 10 11 12...
true
5a50324d929b0b7646743ea7673d3d7dfdcdd6d9
Shell
Physik-Institut-UZH/marmotX_SC_plots
/scripts/set_grafana_env.sh
UTF-8
218
2.53125
3
[]
no_license
#!/bin/sh GF_CONFIG_PART=`cat ./configs/grafana.ini` GF_CONFIG=`echo "$GF_CONFIG_PART"; echo "user = '$GF_EMAIL_USER'"; echo "password = '$GF_EMAIL_PASSWORD'"` printf "$GF_CONFIG" | docker secret create gf_email_config.ini -
true
11b8e298dcc19c91d1805980ced2fc2998475fee
Shell
girlich/VMs
/3VMs
UTF-8
2,050
3.1875
3
[]
no_license
#!/bin/bash VM1_MAC=08:00:00:00:00:01 VM2_1_MAC=08:00:00:00:00:12 VM2_3_MAC=08:00:00:00:00:32 VM3_MAC=08:00:00:00:00:03 SN_1=10.10.10.0/24 VM1_IP=10.10.10.11 VM2_1_IP=10.10.10.12 SN_2=10.10.20.0/24 VM2_3_IP=10.10.20.12 VM3_IP=10.10.20.13 set -x case $1 in start) #create bridge between 1. and 2. VM ./basis-scr...
true
6f3c338ad341029d9539d7490d4bcafaee08434a
Shell
cwchentw/objcgic
/clean
UTF-8
330
3.65625
4
[ "MIT" ]
permissive
#!/bin/sh # Modify the variable to fit your local make MAKE=make if ! command -v $MAKE 2>&1 1>/dev/null; then echo "No Make on the system" >&2 exit 1 fi # Set your own custom variables here. CGI_PROGRAM= if ! [ -z "$CGI_PROGRAM" ]; then SET_CGI_PROGRAM="CGI_PROGRAM=${CGI_PROGRAM}" fi $MAKE clean $SET_C...
true
685e2e9f014cc783813b7b343e352cfee3ad0a56
Shell
Louden7/WVU_cybe266_Final
/check_etc_passwd.sh
UTF-8
468
3.125
3
[]
no_license
#!/bin/bash while IFS=: read -r f1 f2 f3 f4 f5 f6 f7 do if(($f3 == '0')) then string="$string$f1:$f2:$f3:$f4:$f5:$f6:$f7\n" fi if(($f3 < '1000')) then if grep -q "nologin" <<< $f7 then a="temp" elif grep -q "false" <<< $f7 then b="temp" else shell=...
true
d602c940997155f5552cc717378f140dd90880bf
Shell
zlsun/dotfiles
/files/bin/rofi-mime-default
UTF-8
607
3.421875
3
[]
no_license
#!/usr/bin/env bash dmenu='rofi -dmenu -i' mimes=$(cat /usr/share/mime/types) apps=$(find /usr/share/applications/ ~/.local/share/applications -name '*.desktop') while true; do mime=$(echo "$mimes" | $dmenu -p 'MIME:') [ -z "$mime" ] && exit orig=$(xdg-mime query default $mime) app=$(echo "$apps" |...
true
7f4b6de5287ac81ca18e0546e546a1e0869c5a4a
Shell
savoirguinee/moodlemobile2
/.github/scripts/functions.sh
UTF-8
904
3.8125
4
[ "BSD-3-Clause", "0BSD", "GPL-3.0-or-later", "GPL-1.0-or-later", "WTFPL", "CC0-1.0", "Apache-2.0", "CC-BY-3.0", "AFL-2.1", "MIT", "JSON", "Unlicense", "BSD-2-Clause" ]
permissive
#!/bin/bash source "./scripts/functions.sh" function get_behat_plugin_changes_diff { # Grab hashes from app repository currenthash=`git rev-parse HEAD` initialhash=`git rev-list HEAD | tail -n 1` # Move into plugin repository to find previous hash cd tmp/local_moodleappbehat i=0 previous...
true
3275969057938cd8d6001ff59ce648b0df04b52c
Shell
tuna/fakeTunet
/iptables.sh
UTF-8
886
2.53125
3
[]
no_license
#!/bin/bash LANIF="wlan0" WANIF="eth0" iptables -F iptables -t mangle -F iptables -t nat -F iptables -X OFFLINE iptables -F OFFLINE iptables -t mangle -A PREROUTING -i $LANIF -m set ! --match-set logged src -j MARK --set-mark 1 iptables -t mangle -A PREROUTING -i $LANIF -m set --match-set logged src -j MARK --set-mar...
true
b05aff4c34705a94645e729416ebd9a63fa41b61
Shell
WarrenDavidAnderson/genomeAnalysis
/motifAnalysis/TOMTOMcode/getHomer.sh
UTF-8
1,818
3.328125
3
[]
no_license
dir=/home/wa3j/meme-5.0.3/motif_databases/WAdbs cd ${dir} # get the homer motifs cd /home/wa3j/meme-5.0.3/motif_databases/WAdbs/homer wget http://homer.ucsd.edu/homer/custom.motifs # specify name for home motif file outfile=HOMER.meme infile=custom.motifs # specify motifs motifsids=( $(cat custom.motifs | grep ">"...
true
fa7b99584e50be0852a250c149cb2f8036149eac
Shell
Maverobot/dotfiles
/.scripts/vpndetect
UTF-8
266
2.796875
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash result=$(nmcli -t -f type,state,connection d | egrep "^(tun|tap):connected" | awk -F':' '{ print $3 }') if [[ -z $result ]]; then output=' N/A' else output=" $result" color="#00FF00" fi echo ${output} echo ${output} echo ${color} exit
true
a34243e2e9e67ce47d16225db979d51983bc1da7
Shell
nguyentritai2906/fzf-eopkg
/fzf-eopkg.plugin.zsh
UTF-8
2,381
3.78125
4
[]
no_license
#!/usr/bin/env zsh FE_PREVIEW="echo {} | cut -d' ' -f1 | xargs -I{} eopkg info {} | bat" FE_TIEBREAK="length,begin,end,index" FE_CACHE=true FE_CACHE_PATH=$HOME/.config/repo-la.txt FE_CACHE_INTERVAL=$(( 60 * 60 * 24 * 15 )) if ! command -v fzf >/dev/null; then echo 'fzf command not found: please install via "sudo ...
true
a03732e053d90f9324104fee9848c2fa4d906c80
Shell
pstambaugh14/jenkins-k8s
/jenks_service_connect_IN_PROGESS.sh
UTF-8
3,192
3.65625
4
[]
no_license
#!/bin/bash echo "Getting the Jenkins accessible IP address... " hostip=`kubectl get pods -n jenkins -o yaml | grep -i hostip | awk '{ print $2 }'` echo "$hostip is the IP address of the Jenkins service." echo "" echo "Getting the Jenkins accessible Port... " serviceport=`kubectl get service -n jenkins -o json |grep -i...
true
795625d09aee545c55ecf0e127acf480618bfd88
Shell
jlassi1/holberton-system_engineering-devops
/0x05-processes_and_signals/100-process_and_pid_file
UTF-8
665
3.328125
3
[]
no_license
#!/usr/bin/env bash #Write a Bash script that: #Creates the file /var/run/holbertonscript.pid containing its PID #Displays To infinity and beyond indefinitely #Displays I hate the kill command when receiving a SIGTERM signal #Displays Y U no love me?! when receiving a SIGINT signal #Deletes the file /var/run/holbertons...
true
7af8303c224c35171fe7b43a1131e5e0224521cc
Shell
loicseguin/dotfiles
/bash_profile
UTF-8
233
2.96875
3
[]
no_license
# # ~/.bash_profile # # Get environment variables from ~/.profile source "$HOME/.profile" # Start X if it is not already running. #if [[ ! $DISPLAY && XDG_VTNR -le 2 ]]; then #exec startx #fi [[ -f ~/.bashrc ]] && . ~/.bashrc
true
27c63fb4c0ccb64a649f6ead61f4082c9a4e31ec
Shell
lukeshingles/scripts
/xz2zstd.sh
UTF-8
3,096
4.09375
4
[ "MIT" ]
permissive
#!/usr/bin/env zsh set -e set -o pipefail if [ $# -eq 0 ]; then echo 1>&2 "Usage: $0 [file ...]" exit 3 fi function trap_ctrlc() { # perform cleanup here if [[ -f "$incompletefile" ]]; then rm $incompletefile echo "Ctrl-C caught...deleted incomplete file: $incompletefile" fi # exit shell ...
true
a0f87556241ab04d867ef2e2c46d70039f42d8e1
Shell
Kilo9/restart
/restart
UTF-8
247
2.921875
3
[]
no_license
#!/bin/bash #make sure to run from correct dir if [ ! -d tmp ]; then mkdir tmp echo "[info] Made tmp dir" fi touch tmp/restart.txt echo "[info] touched tmp/restart.txt" #touch ~/.pow/restart.txt #echo "[info] touched ~/.pow/restart.txt"
true
b33307022c5bd408559d4826ea6674a9a7098780
Shell
dmbyte/clusterbuilder
/wipedrives.sh.src
UTF-8
1,552
3.265625
3
[]
no_license
#!/bin/bash part=`cat /etc/mtab |cut -f1 -d" "|grep dev|uniq|grep "/"|xargs|cut -f1 -d" "` part=${part#/dev/} disk=$(readlink /sys/class/block/$part) disk=${disk%/*} disk=${disk##*/} osdrive=$disk echo OS Drive=$osdrive for j in `ls /sys/block` do unset pids i=1 if [ $j != $osdrive ] then echo "*** wiping ...
true
fcadbb773508e462edcd6173f71c43d57005ba9b
Shell
Weixd/linux_c_cplusplus
/bash/bash_back/00_常规数据拷贝/ar.sh
UTF-8
375
3.5625
4
[]
no_license
#!/bin/bash # get local ip's last octet IP=`ip route get 172.18.0.1 | awk '{print $NF; exit}'` oct4=$(echo ${IP} | tr "." " " | awk '{ print $4 }') dateStr=`date +"%Y-%m-%d"` if [ -n "$1" ]; then dateStr="$1" fi for ff in `ls -d ${dateStr} | xargs -l basename` do if [ -d ${ff} ]; then set -x; tar cf ${ff}_${...
true
7df185ddcef91f0a4ac6e07bdddef61683fe2145
Shell
marcolarosa/pdsc-data-loader
/scripts/setup-pi.sh
UTF-8
2,829
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash if [ "$(whoami)" != 'root' ] ; then echo "Run me as root. Something like: sudo ./setup-pi.sh" exit -1 fi echo "nameserver 1.1.1.1" > /etc/resolv.conf # set up AU locale cp /etc/locale.gen /etc/locale.gen.backup echo -e "en_AU.UTF-8 UTF-8\n" > /etc/locale.gen locale-gen # ensure SSH is is started...
true
b7e474366443e5f62fb52dcec4d8d0918dd83ba0
Shell
siliu/GridFTP_xfer_cksum
/seq_xfer/seq_block_xfer_10G_20_time_block2G.sh
UTF-8
988
2.84375
3
[]
no_license
#! /bin/bash GRIDFTP_PATH=/home/siliu/gridftp-cooley/bin #Deal with files from 1 to 19 for i in {1..20} do data10g=10G.data$i #10G data for j in {0..4} do offset=$((2000*j))M blockname=$data10g\_$((j+1)) #Transfer the blocks from 1 to 5 of file i (time $GRIDFTP_PATH/globus-url-copy -p 1 -off $offset ...
true
12c01e7cd87f522684e205188ac4d95d8f28c8bf
Shell
carlos-fernandez-tierconnect-com/kafka-scripts
/startVizix.sh
UTF-8
2,849
3.125
3
[]
no_license
#! /bin/bash #================================================================ #% DESCRIPTION #% #================================================================ VIZIX_HOME=/home/cfernandez/src/mojix/riot DOCKER_COMPOSE_HOME=/home/cfernandez/Documents/docker/kafka2 echo "Starting vizix deploy..." echo $VIZIX_HOME ...
true