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
b47d27eccab72a363e057723e9bb35b778405e8f
Shell
chtz/proof
/scripts/lookup-signature-local.sh
UTF-8
127
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash FILE=$1 HASH=$(shasum -a 512 $FILE) curl -s -H "Content-Type: text/plain" -d "$HASH" http://localhost:8080/hashes
true
2093ef096bdd02a64669880907fbf970d764cb74
Shell
seelelin/rf-zalenium-runner
/scripts/build.sh
UTF-8
510
3.1875
3
[]
no_license
#!/usr/bin/env bash set -e ### globals #################################################################### this_path="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" release_name="$(cat "$this_path/../release_name")" robotframework_version="$(echo "$release_name" | cut -d '-' -f 1)" ### main #######################...
true
a4dd696d98ae122648d652cdb98748634af66515
Shell
karpase/SituatedTemporalPlanningExperiment
/naive.sh
UTF-8
1,291
3.796875
4
[]
no_license
#!/bin/sh # Parameters: <til_adjustment> <domain> <problem> <basename_for_files> # Implements the naive approach: takes as input a PDDL domain and file, and # 1. Adjusts the timestamps of the TILs by til_adjustment # 2. Calls a planner on the new problem # 3. Adjusts the timestamps on the resultsing plan # 4. Calls VAL...
true
05277d50ee4cae46c16729480d83007b94486197
Shell
0xdead8ead/firmware_reversing
/firmware/Netgear_Centria_WNDR4700/squashfs-root/etc/net6conf/6bridge
UTF-8
1,261
3.578125
4
[]
no_license
#!/bin/sh . /etc/net6conf/6data.conf WAN_IF=`config get wan_ifname` reset_iface_ip6() { local dev=$1 ip6s=`ifconfig $dev |grep "inet6 addr" |grep "Link" |awk '{print $3}'` echo "$ip6s" |while read ip6; do $IP -6 addr del ${ip6} dev $dev done } start_service() { brctl addif $bridge $WAN_IF brctl setfd $bridge...
true
33312cb72c7836a56b597c42bcc85e0c542d6acd
Shell
z88dk/z88dk-build
/build2.sh
UTF-8
10,001
3.65625
4
[]
no_license
#!/bin/bash # # Script to produce an autobuild stage="" echo "#########################################################################" echo echo "Build starting" echo echo "#########################################################################" function check_result { ret=$? if [ $ret != 0 ]; then echo "***...
true
2faaea71510d636d41e0977a527863549179dd1f
Shell
LinuxOSsk/Shakal-NG
/install_archlinux.sh
UTF-8
1,035
3.5
4
[ "MIT" ]
permissive
#!/bin/sh PYTHON=python3 #install dependencies as root echo "Root password for dependencies installation." su root -c "./install_archlinux_dependencies.sh" ret=$? if [[ $ret != 0 ]]; then echo "Installation of dependencies failed. Aborting..."; exit 1 fi if which npm > /dev/null then echo "Node.js .. OK" el...
true
2b1a53e72b231e983b08fa40032786cc82e12c47
Shell
whigg/scripts
/Bernese/get_data_2_datapool.sh
UTF-8
273
2.609375
3
[ "MIT" ]
permissive
#!/bin/bash # # # load weekly data to the datapool current_week=$(gps_date -t -o "%W"); prelast_week=$(($current_week - 2 )) # load EPH (daily) and ERP (weekly) /home/gnssuser1/bin/get_code2Data $prelast_week # load DCB /home/gnssuser1/bin/get_code2BSW52 $prelast_week
true
cd56d3ee98c3e0a17ea6d3f9feb3ab9532b88ebe
Shell
sunwenbo/deploy-system
/k8s-java8-build.sh
UTF-8
1,612
3.0625
3
[]
no_license
#!/usr/bin/env bash set -e project=$1 codepath=$2 group=$3 dir=${PWD} rm -rf optdir startdir mkdir -p optdir startdir if [ "$group" == "shanghai" ] then cd odyssey-commons mvn clean install -DskipTests cd $dir cd optdir wget -nv http://mvn.senses-ai.com:8081/repository/rawPkg/hadoop-tool/hadoo...
true
13d19e93d744f63ff59baac58c12553d359a9e05
Shell
bpmason1/corsair
/scripts/run
UTF-8
522
3.234375
3
[]
no_license
#! /bin/bash set -e RED='\033[0;31m' NC='\033[0m' # No Color if [ -z $LISTEN_ADDR ]; then echo "ERROR - unset environment variable LISTEN_ADDR" exit 1 fi if [ -z $PROXY_ADDR ]; then echo "ERROR - unset environment variable PROXY_ADDR" exit 1 fi SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" ...
true
897faacda58fb73b8c41e7a0aa3eda92a1e339b0
Shell
petronny/aur3-mirror
/gtk-kde42-oxygen-theme/PKGBUILD
UTF-8
680
2.734375
3
[]
no_license
pkgname=gtk-kde42-oxygen-theme _pkgname=kde42-oxygen pkgver=0.3 pkgrel=2 pkgdesc='KDE4 Oxygen Theme Ported to GTK+' arch=('i686' 'x86_64') depends=('gtk-engines' 'gtk-engine-murrine') license=('GPL') url=('http://gnome-look.org') source=($url/CONTENT/content-files/99926-kde42-oxygen.tar.gz) md5sums=('58bf2d9c527847d885...
true
2edb71146443630452010133158a494c7927b6cd
Shell
hienbv/vagrant-ubuntu1604
/scripts/ubuntu1604/03-setup-php70.sh
UTF-8
1,159
2.625
3
[ "MIT" ]
permissive
#!/bin/bash # ****************************************** # Developer: HienBV(Bui Van Hien) # Email:hienbv.it@gmail.com # Date: 08-11-2017 # ****************************************** # Install PHP7 sudo apt-get install -y; # Install module of PHP7 sudo apt-get install -y libapache2-mod-php php php-mcrypt php-curl php...
true
8e0b561a8367433febdbdfac0c833793014a6672
Shell
GhatikaWaykole/shell-program
/for-loop/harmonicNumber.sh
UTF-8
143
3.3125
3
[]
no_license
#!/bin/bash -x echo enter the number read num for (( i=1 ;i<=$num; i++ )) do echo 1/$i # if [ $i -lt $num ]; # then # echo "+" # fi done
true
ec11d22a9b2ad1dc5b615a60e88b0b6b48c97aca
Shell
dywisor/fischstaebchen
/overlay/src/stagedive_bootstrap_arch/hooks/stagedive/bootstrap/arch/_functions-target.sh
UTF-8
3,884
3.703125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh ## Do not source this file directly. ## _functions.sh and env.sh must be loaded prior to this file. ## ## ## Copyright (c) 2014-2015 André Erdmann <dywi@mailerd.de> ## ## Distributed under the terms of the MIT license. ## (See LICENSE.MIT or http://opensource.org/licenses/MIT) ## : ${__HAVE_ARCH_BOOTSTRAP_B...
true
8be37b4543973a080d34992b98a9f1532e768385
Shell
stormlovetao/rnaSeq
/viralFusion/callCandidateFusion.sh
UTF-8
1,755
2.625
3
[]
no_license
#!/bin/bash # de nove assemble rna reads labeled to virus and human-virus # Prepare pair end reads #extract reads'ID which are mixed by human part and virus part module_name=`basename $0` sample_name=HC_NZ-H152_MCPY_4_rep1 homo_sapiens_taxid=9606 virus_taxid=113553 work_dir=/PHShome/tw786/neurogen/Tao/kraken_output/...
true
2f7766a3011ce1babddbfb316eb14b57c2084c19
Shell
glensc/monitoring-plugin-check_domain
/test.sh
UTF-8
316
3.296875
3
[]
no_license
#!/bin/sh dir=$(dirname "$0") whois=$dir/whois.sh sh=${SH:-/bin/sh} for domain in ${*:-$(grep -Ev '^#' "$dir/domains")}; do server=${domain##*:} domain=${domain%%:*} server=${server#$domain} echo "-> $domain" $sh -$- ./check_domain.sh -d $domain ${server:+-s $server} -P $whois echo "<- $domain" done exit 0
true
85a143105988e5c0b73b238712b1d61bdbf4ae1b
Shell
elsa-lab/base-env
/Package/Dependency/install-netdata.sh
UTF-8
1,631
3.46875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Cause the script to exit on any errors # Reference: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ set -euo pipefail NETDATA_CONFIG="/etc/netdata/netdata.conf" NETDATA_PLUGIN_DIS=( "diskspace" "cgroups" "tc" "idlejitter" "slabinfo" "ebpf_process" "charts.d" ...
true
c77e194489a467295c480190734b171742fbeeb7
Shell
engineerpig/binPsf
/digh.sh
UTF-8
172
2.625
3
[]
no_license
#!/bin/sh zone=$1 dig +short any $zone for sub in mail pop imap webmail ftp www pay spay uatpay; do printf "${sub} = " dig +short any ${sub}.$zone printf "\n" done
true
c6814180822ed98de0469fd900cada74fdc8e99d
Shell
johnko/gtfc
/bin/gtfc-parse
UTF-8
612
3.796875
4
[]
no_license
#!/bin/sh # gtfc parse will set variables USER HOST PORT # Usage # in a sh file # . ~/bin/gtfc-parse user@hostname:port MYUSER="`whoami`" PORT="22" if echo ${TOSPLIT} | grep '@' >/dev/null 2>&1 ; then if [ "x" != "x${TOSPLIT%@*}" ]; then MYUSER="${TOSPLIT%@*}" fi fi HOSTANDPORT="${TOSPLIT#*@}" if [ "...
true
d5b0be34d52efb6cf641fa464bc212886b808417
Shell
kohta-ikegami/pS22-LMNA
/getBasecovFromBg.sh
UTF-8
1,308
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash # getBasecovFromBg.sh # Copyright (c) 2016, Kohta Ikegami # All rights reserved. # October 22, 2016 # if [ $# -lt 3 ] # '-lt' stands for less than then echo -e "\tby Kohta Ikegami 2015; all rights reserved" echo -e "\n\tUsage: `basename $0` [target] [bedgraph] [chrom] | stdout" echo -e "\n\t[targ...
true
268190500c78af8f8bc22f608c8cf5ada356f68b
Shell
USMCFighter94/CS4121-Project-4
/launch.sh
UTF-8
115
2.609375
3
[]
no_license
#!/bin/sh for i in *.cm do ./cmc input/$i java -jar ~/CS4121/Mars4_5.jar $(echo "$i"|sed ’s/cm$/s/’) done
true
05cb2ab26746a265551012065a66755b6fa54276
Shell
enter-haken/book
/add_numbers.sh
UTF-8
98
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash i=0 ls -1r | while read line; do mv $line `printf "%02d-$line" $i`; ((i++)) done
true
dd0723747aace66b1959d8c7c08b965b508ef20f
Shell
Ascend/ModelZoo-PyTorch
/PyTorch/contrib/audio/speech-transformer/test/utils/subword/prepare_subword_text.sh
UTF-8
1,710
3.9375
4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
#!/usr/bin/env bash # 2019 Dongji Gao # This script generates subword text form word text. # For example, <noise> internatioal -> <noise> inter@@ nation@@ al # @@ here is the separator indicate the poisition of subword in word. # Subword directly followed by separator can only appear at he begining or middle of word....
true
8959590dc4f0dd964fcfc6d7e6528f0c8d268065
Shell
cbodden/scripts
/mysql_backup.sh
UTF-8
932
3.046875
3
[]
no_license
#!/bin/bash DIRP=/home/lgarion/site_bak/ DATE=$(date +"%m-%d-%y") MYSQL_SERVER_REMOTE= MYSQL_SERVER_LOCAL= USER= PASSWORD_REMOTE='' PASSWORD_LOCAL='' # LOOP_VAR="wordpress_test lotgd ilts_wp" LOOP_VAR="lotgd ilts_wp" TGZ=${DIRP}mysql/*tgz for LOOP_VAR_TXT in $LOOP_VAR do LOOP_VAR_FILE=${DIRP}mysql/poa_${LOOP_VA...
true
701b68be1e917f7604eb0036c3f9296b0e6c2587
Shell
vikky410/vagrant-symfony
/vagrant-config/setup.sh
UTF-8
2,000
2.828125
3
[]
no_license
#!/bin/bash echo "Provisioning virtual machine..." apt-get update > /dev/null 2>&1 echo "Installing Git..." apt-get install git -y > /dev/null 2>&1 echo "Installing Nginx..." apt-get install nginx -y > /dev/null echo "Updating PHP repository..." apt-get install python-software-properties build-essen...
true
702349794cf971948d3b9c168793c83c5f65f911
Shell
shilad/CartoStudy
/resize-images.sh
UTF-8
388
3.125
3
[]
no_license
#!/usr/bin/env bash for dir in content nav verification; do old=static/images/maps-orig/$dir new=static/images/maps/$dir rm -rf $new mkdir -p $new ls $old/ | while read f; do png="$new/$f" jpg="${png/png/jpg}" echo "creating $jpg" convert -background white -alpha rem...
true
f98f2bb440ee3249e01f2aca1ad856218abc605f
Shell
amaotone/amalog
/deploy.sh
UTF-8
292
3.015625
3
[]
no_license
#!/bin/bash echo -e "Deploying updates to GitHub...\n" rm -rf public/ hugo git add -A msg="rebuilding site at $(date +"%Y-%m-%d %H:%M:%S")" if [ $# -eq 1 ] then msg="$1" fi git commit -m "$msg" git push origin master git subtree push --prefix=public git@github.com:amaotone/amalog.git gh-pages
true
caf507343ee455a60f48dd0583bd2541af034e16
Shell
ravigopireddy51/devops299
/sample.sh
UTF-8
114
3.09375
3
[]
no_license
#!bin/bash a=0 b=1 read -p " enter a number:"n for ((i=0; i<=n; i++)) do echo "$a" fn=$((a+b)) a=$b b=$fn done
true
018b6ebd2b68f640cadcbe07d0724b7e0fe46c89
Shell
AnwarShah/sergrep
/fbscript.sh
UTF-8
1,877
4.25
4
[]
no_license
#!/bin/bash # Author : Serg Kolo # Date: Dec 5, 2015 # Description: Script to render image and set it as background # in conjunction with fbterm # Depends: fbterm,fbi, awk # Written for: http://askubuntu.com/q/701874/295286 function printUsage { echo "<<< Script to set background image in TTY console" echo "<<< Wr...
true
051ee3c960fbca74c05fec47fee23ba8056147e5
Shell
shahmatd/rhel7_clonedisk
/rhel7_clonedisk.bash
UTF-8
5,741
3.671875
4
[]
no_license
#!/bin/bash ######################################################################################## # Author: Shahmat Dahlan <shahmatd@gmail.com> # Date: 30/10/2019 # Description: RHEL 7.x/CentOS 7.x OS dd cloning # all filesystems are xfs. # Pending: # 1. Running of grub2-mkconfig -o /boot/grub2/grub.cfg on the chroo...
true
a1d399e4142b8b3ba9a0dffee940c1c92f76d14b
Shell
vmonteco/packages-archlinux
/aur/tn40xx/PKGBUILD
UTF-8
1,634
2.609375
3
[]
no_license
# $Id$ # Maintainer: Ido Rosen <ido@kernel.org> # # NOTE: To request changes to this package, please submit a pull request # to the GitHub repository at https://github.com/ido/packages-archlinux # Otherwise, open a GitHub issue. Thank you! -Ido # pkgname='tn40xx' pkgdesc="Tehuti Networks tn40xx network dr...
true
96171cbe6cf20a627ba41275463df11df3ff1f7f
Shell
akdev1l/legacy-projects
/core-js-cleaner/clean-core-js
UTF-8
503
2.8125
3
[]
no_license
#!/bin/bash UPSTREAM_URL="https://github.com/zloirock/core-js.git" CLEAN_URL="git@github.com:akdev1l/core-js.git" WORKDIR="$(mktemp -d)" PATCH_FILE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/0001-remove-job-seeking-ad.patch" git clone "${UPSTREAM_URL}" "${WORKDIR}" cd "${WORKDIR}" git -C "${WORK...
true
3219ed08da6cafbb18c1d20e03f955382863fece
Shell
mccurdyc/dotfiles
/files.headless/.exports
UTF-8
2,097
2.625
3
[]
no_license
#!/bin/bash # https://wiki.archlinux.org/index.php/XDG_Base_Directory export XDG_DATA_HOME="$HOME/.local/share" export XDG_CONFIG_HOME="$HOME/.config" export SRC_DIR="$HOME/src/github.com" export ZOEKT_DATA_DIR="$HOME/.zoekt" export ZOEKT_INDEX_DIR="$ZOEKT_DATA_DIR/index" export ZOEKT_REPOS_DIR="$ZOEKT_DATA_DIR/repo...
true
072b68a7a4c1050a90282d974f4afd43b0d35b48
Shell
NapoleonWils0n/cerberus
/bash/brackets.sh
UTF-8
282
3.03125
3
[]
no_license
#!/bin/bash #Square brackets—matches any of a series of characters in a filename. #For example, ls a[rn]t.jpg matches art.jpg and ant.jpg, but does not match aft.jpg. #If the first character is a caret (^), it matches every character except for the characters l ls a[rn]t.jpg
true
6e018b31da1c6e08f453ece74789d97a8200ec4c
Shell
RedisLabsModules/readies
/bin/enable-utf8
UTF-8
2,552
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash PROGNAME="${BASH_SOURCE[0]}" HERE="$(cd "$(dirname "$PROGNAME")" &>/dev/null && pwd)" READIES=$(cd $HERE/.. && pwd) . $READIES/shibumi/defs create_utf8_profile_script() { local profile_d=`get_profile_d` if [[ -n $1 ]]; then local language="$__language" fi cat <<-EOF > $profile_d/utf8.sh ex...
true
ba021af18f73dc77bee01c40ebce9170fac7f4f4
Shell
memoryleak47/utils-library
/bin/ul/completer
UTF-8
1,611
3.578125
4
[]
no_license
#!/bin/bash usage="Usage:\tcompleter -a\t\t-> complete all\n\tcompleter -p\t\t-> complete all path-dependent\n\tcompleter <binfile>" if [ -z "$1" ]; then echo -e "$usage" return fi if [ "$1" == "set-keymap" ] || [ "$1" == "-a" ]; then complete -W "$(ls $ul_resdir/keymaps/)" "set-keymap" fi if [ "$1" == "set-keyb...
true
196d2f98f9072fbf927aaf6ecd33d3fd03f7c0cc
Shell
pennygulati/ddm
/ddm
UTF-8
25,899
3.859375
4
[]
no_license
#!/bin/bash VERSION='0.4' # DDM # See included documentation # Written by Dieter Plaetinck # http://dieter.plaetinck.be # http://github.com/Dieterbe/ddm # This code is licensed under GPL v3. See http://www.gnu.org/licenses/gpl-3.0.txt # # SOME MISC FUNCTIONS # usage() { cat << EOF This is ddm $VERSION usage: ...
true
dcce2efa128c18c0b1a408014afa0f27b62fd31a
Shell
ssb22/wm6-utils
/pwi2txt.sh
UTF-8
680
3.625
4
[ "Unlicense" ]
permissive
#!/bin/bash # Recover most text from .PWI notes files # generated by some versions of Windows Mobile # Silas S. Brown 2018,2022 - public domain - no warranty # Where to find history: # on GitHub at https://github.com/ssb22/wm6-utils # and on GitLab at https://gitlab.com/ssb22/wm6-utils # and on BitBucket https://bit...
true
4929f9aa149234e04574ef87d742fb5db9dcfc2c
Shell
jakeyeung/Yeung_et_al_2018_TissueSpecificity
/scripts/three_way_contingency_tables/run.mara_and_downstream.byargs.sh
UTF-8
1,078
2.875
3
[]
no_license
#!/bin/sh # Jake Yeung # run.mara_and_downstream.byargs.sh # Run MARA and Downstream in a single script # 2017-05-02 rscript="/home/yeung/projects/tissue-specificity/scripts/three_way_contingency_tables/run_mara_on_liver_specific_DHS_SqlDiffModsDiffCutoffs.byargs.R" sumscript="/home/yeung/projects/tissue-specificit...
true
6c2bf3ce064e20417cade17af0915e365d515486
Shell
sealmindset/discover
/nmap.sh
UTF-8
8,782
3.578125
4
[]
no_license
#!/bin/bash # # Copyright 2016... nmap.sh authors # # nmap.sh is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # nmap.sh is dis...
true
6ec7e5f52677b233d0f0f121049e60fef7042c87
Shell
brownbelt/fathomless
/iac2/setup-iac2.sh
UTF-8
5,258
4.0625
4
[]
no_license
#!/bin/bash # # setup iaa monitor server # title() { echo "[*]==================================================[*]" echo "[*] Installing... IA Agent C2 Server [*]" echo "[*]==================================================[*]" } # func requires args: username chk_usr() { ...
true
242761359409d135c13cd1c8972ccf9f282078b1
Shell
bambam2174/homesbin
/execon_t
UTF-8
263
3
3
[]
no_license
#!/bin/bash while IFS='' read -r line || [[ -n "$line" ]]; do CMD="$2 $line"; echo $CMD; FILENAME=basename "$line" $2 "$line"; if [ $? -ne 0 ]; then echo $CMD >> ~/tmp/execon_t_errors.txt; fi done < "$1" shell_session_update
true
4499872610eeccc5ec4704cb3553101e999043f2
Shell
Krishtof-Korda/ouster_example_cartographer
/scripts/install_ros_dependencies.bash
UTF-8
958
2.984375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # get UBUNTU_CODENAME, ROS_DISTRO, REPO_DIR, CATKIN_DIR source $SCRIPT_DIR/identify_environment.bash export DEBIAN_FRONTEND=noninteractive sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $UBUNTU_CODENAME main\" > /etc/apt/sour...
true
328e0966f36d4202cf8af269af5989e5ff65ef2b
Shell
forkoton/exonum-java-binding
/run_ejb_app_tests.sh
UTF-8
917
3.140625
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # Runs EJB App tests (ejb-core/rust/ejb-app). # # ¡Keep it MacOS/Ubuntu compatible! # Fail immediately in case of errors and/or unset variables set -eu -o pipefail # Use the Java that Maven uses. # # Unfortunately, a simple `which java` will not work for some users (e.g., jenv), # hence this a bit...
true
b00148596155d262689d44558c85cea905675c1e
Shell
demisto/content
/.devcontainer/createCommand.sh
UTF-8
521
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash set -e echo "Fixing permissions" sudo chown demisto .venv sudo chown demisto node_modules sudo chown demisto /workspaces sudo chown -R demisto $HOME echo "Setting up VSCode paths" cp .devcontainer/settings.json .vscode/settings.json touch CommonServerUserPython.py touch DemistoClassApiModule.py path=$...
true
b60020455c916fd88e4d90072d23c2f1da29c817
Shell
oxmc/ObsidianOS
/files/addrepo.sh
UTF-8
1,687
4.1875
4
[]
no_license
#!/bin/bash #Functions function error { echo -e "\e[91m$1\e[39m" if [ "$2" == "exit" ]; then exit 1 else fwe="1" ers+="\n$1" fi } function warning { echo -e "\e[91m$2\e[39m" sleep "$1" } #variables TARGETARCH="armhf" ARCH="$(dpkg --print-architecture)" fwe="0" ers="" #Main clear echo "Checki...
true
3601e8fb99efa6debe3b07a848eccdfe56e54936
Shell
rsiota/.config
/bash/functions.d/system
UTF-8
727
3.328125
3
[]
no_license
#!/usr/bin/env bash # Quickly grep a process function psg() { ps auxww | grep -i --color=always "$@" | grep -v "grep.*$@" } # Select command name with fzf and show memory usage function psmem() { ps -o rss= -p $(pidof "$(ps -ec | fzf | awk '{print $4}')") \ | awk '{print $1*4, "KiB"}' } function mtop() { ps -ce...
true
232e20b56b6e060f89dbb8ede1123c7eb1b01a01
Shell
Kenfernandezjr/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/5-4_bad_luck_8_is_your_chance
UTF-8
286
3.421875
3
[]
no_license
#!/usr/bin/env bash # displaying "Holberton School" "bad luck" 4 slot "good luck" 8 slot n=0 while (( n < 10 )) do n=$(( n+1 )) if [ "$n" -eq 4 ] then echo "bad luck" elif [ "$n" -eq 8 ] then echo "good luck" else echo "Holberton School" fi done
true
c06016be1d43f4412cc64a9652f72df5fd656f2e
Shell
and3rsonls/Linux-From-Scratch
/lfs-systemd/stage4/docbook-xml
UTF-8
3,419
2.984375
3
[]
no_license
#!/bin/bash set -e TMP=${TMP:-/tmp/work} LOG=${LOG:-$HOME/logs/stage4} SRC=${SRC:-/sources} name=docbook-xml version=4.5 mkdir -p $TMP/$name-$version $LOG unzip -d $TMP/$name-$version $SRC/$name-$version.zip { time \ { cd $TMP/$name-$version install -v -d -m755 /usr/share/xml/docbook/xml-dtd-$versi...
true
f124514e4b1500ffa958e098e07853bac1fc8e65
Shell
maxneuvians/piipan
/tools/common.bash
UTF-8
920
3.78125
4
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash # # Common preamble for bash scripts. # Exit immediately if a command fails set -e # Unset variables are an error set -u # Conform more closely to POSIX standard, specifically so command substitutions # inherit the value of the -e option. The more targeted inherit_errexit option # would be preferred, but...
true
a0142519c2cb40a0fe1581f9e9a6e6aa314e0e5d
Shell
facebookincubator/antlir
/tools/buck
UTF-8
1,672
4.375
4
[ "MIT" ]
permissive
#!/bin/bash set -e # This is a wrapper script for the buck build tool binary. This will first check # to see if the actual buck binary needs to be downloaded and if so, will attempt # to do so from the Antlir S3 bucket, where we have prebuilt artifacts for buck. resolve_path() { local path="$1" pushd . > /dev/nu...
true
4fbfee6a9d5d437df4ae93ed5117364fbc218b74
Shell
wise-cloud/plesk-to-s3
/monthly.sh
UTF-8
2,850
3.1875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # _ #| |_ _ _ ___ ___ ___ ___ ___ _ _ #| | | | . | -_| _|_ -| _| | | #|_|_|_ | _|___|_| |___|_| \_/ # |___|_| # # hypersrv.com | Web at scale solutions # # monthly.sh Stephen Martin <sm@hypersrv.com> # -----------------------------------------...
true
846ed5ac384243236986185bd078f0350f5a7eea
Shell
wang-shun/flute
/scripts/run-acceptance-tests.sh
UTF-8
653
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ACCEPTANCE_TEST_CLASSES=$(find flute-acceptance/src/main/ -name '*Test.java'|sed -e 's/.java//g'|sed -e 's/\//\./g'|sed -e 's/flute-acceptance.src.main.//g' |tr "\n" " ") JAVA_AGENT_ARGS="-javaagent:flute-agent/build/libs/flute-agent-all-0.1.4.jar=$(readlink -f flute-integration/src/test/resources/acceptan...
true
0e6d8f082b019fb8165e4a8220c0cb5c22b8b529
Shell
weigemo/puppet-example
/install_scripts/install.sh
UTF-8
631
3.5
4
[]
no_license
#!/bin/bash . ./func.inc.sh echo "Please choose the task" options="Install-Puppet-Server Install-Puppet-Client Install-Single-Machine Config-Puppet-Server Config-Puppet-Client Exit" select opt in ${options}; do case "${opt}" in "Install-Puppet-Server" ) install_master $1 exit ;; "Install-Puppet-Client" )...
true
df3340c3cb342db957c7c843379338c42fc039e5
Shell
hmcts/sscs-bulk-scan
/bin/idam-user-token.sh
UTF-8
436
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash ## Usage: ./idam-user-token.sh [role] [user_id] ## ## Options: ## - role: Role assigned to user in generated token. Default to `ccd-import`. ## - user_id: ID assigned to user in generated token. Default to `1`. ## ## Returns a valid IDAM user token for the given role and user_id. ROLE="${1:-ccd-impor...
true
c89e2698c7415050ef6cfcb8766f4548f9307479
Shell
gideonite/cn_pipeline
/scripts/map_run_cbs.sh
UTF-8
463
3.140625
3
[]
no_license
#!/bin/bash if [ "$#" -ne 4 ]; then echo "usage: <path/to/run_cbs.r> <path/to/DNAcopy> <dir of cbs_in files> <log_file>" exit -1 fi OUT=/ifs/e63data/sander-lab/dresdnerg/galaxy-tmp/cbs_out.$RANDOM mkdir $OUT R=/srv/opt/R/bin/R for f in `ls $3/*`; do #R CMD BATCH --no-save "--args path/to/DNAcopy in_file ...
true
8569726638d356449c4e48e585778320883a84f4
Shell
aino/wfinstall
/make_dirs
UTF-8
127
2.84375
3
[]
no_license
#!/bin/bash for d in bin log log/nginx run etc lib; do if [ ! -d $HOME/$d ]; then mkdir -p $HOME/$d fi done
true
a2e6179b59c06fa8266443803979ce96f1d5e4b5
Shell
awsengineer/CFN
/Nested/v1.5_UsingDynamoDB/run.sh
UTF-8
1,703
2.65625
3
[]
no_license
echo -n "Stack name to create: " read stackname bucketname="mehdi100" keypair="my_singapore_keypair" region="ap-southeast-1" rm -f *template wget -q https://raw.githubusercontent.com/awsengineer/CFN/master/Nested/v1.5_UsingDynamoDB/Master.template -O Master.template wget -q https://raw.githubusercontent.com/awsengine...
true
16f976022e025723c6df944eaaeff25c7aa4a95b
Shell
winkerVSbecks/basscss-cp
/basscss-cp.sh
UTF-8
706
3.703125
4
[]
no_license
output_dir=./${1:-basscss} if [ ! -d $output_dir ]; then mkdir $output_dir fi cp ./node_modules/basscss/css/basscss.css $output_dir/basscss.css cp ./node_modules/basscss-basic/index.css $output_dir/basic.css ADDONS=./node_modules/basscss-addons/modules for i in $ADDONS/* do # Line breaks are imp...
true
a84fe8d99c9f3ea4167b17b5f41b11073fde5207
Shell
deastman313/gsoc-xhp-html5
/archive.sh
UTF-8
623
2.875
3
[]
no_license
#!/bin/bash ARCHIVE="xhp-html5-1.0" echo $ARCHIVE rm -rf $ARCHIVE rm $ARCHIVE.tar.gz rm $ARCHIVE.zip mkdir $ARCHIVE mkdir $ARCHIVE/php-lib cp php-lib/core.php $ARCHIVE/php-lib/ cp php-lib/html5.php $ARCHIVE/php-lib/ cp php-lib/init.php $ARCHIVE/php-lib mkdir $ARCHIVE/res cp res/*.js $ARCHIVE/res/ cp res/*.css $ARCH...
true
171847a39d6e1a3ff04bfe71930f426b914d6caf
Shell
tischda/almira-rpm
/packages/sonar/src/main/scripts/04.postinstall.sh
UTF-8
1,188
3.03125
3
[ "Apache-2.0" ]
permissive
# Remove Windows scripts and executables rm -f @{destBase}/elasticsearch/bin/*.{exe,bat} # Make scripts executable chmod 755 @{destBase}/bin/linux-x86-64/*.sh chmod 755 @{destBase}/bin/linux-x86-64/wrapper chmod 755 @{destBase}/elasticsearch/bin/* # Configure startup script sed -i 's|chkconfig: 2345 20 80|chkconfig: ...
true
4051f3150b9826a1595b6bb70f2e457e2ccc9d82
Shell
mickaelandrieu/NFluentjs
/bin/nfluentjs
UTF-8
560
3.25
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # NFluentjs Shell Command CMD_DIR=$PWD NFLUENT_DIR=$(dirname $(readlink -f $0)) cd $NFLUENT_DIR . ../config/path.conf if [[ "$CASPERJS_CMD" != *"/"* ]] then CASPERJS_PATH=$(which $CASPERJS_CMD) SYMLINK=$(readlink -f $CASPERJS_PATH) SYMLINK_RET=$? if [ ! $SYMLIN_RET ] the...
true
0010419fb7bd77187ea00db145b23f29977ea233
Shell
VentusYue/eecs467-Finalproject-Perception
/track/scripts/clean.sh
UTF-8
335
3.1875
3
[]
no_license
#!/bin/bash # FILE=../targets/*.jpg # if test -f "$FILE"; then # echo "$FILE exist" # fi count=`ls -1 ../targets/*.jpg 2>/dev/null | wc -l` if [ $count != 0 ]; then rm -rf ../targets/*.jpg echo true fi count1=`ls -1 ../frames/*.jpg 2>/dev/null | wc -l` if [ $count != 0 ]; then rm -rf ../frames/*.jpg ...
true
4a82b3f2c0ffbd39eb5b77234a43541fa97798a5
Shell
KASOGIT/lemipc
/Graphic/run.sh
UTF-8
414
2.8125
3
[ "MIT" ]
permissive
#!/bin/sh ## run.sh for in /home/kaso/Documents/rendu/EPITECH/YEAR2/PROJECT/PSU_2015_lemipc ## ## Made by ## Login <@epitech.net> ## ## Started on Wed Mar 23 03:21:34 2016 ## Last update Wed Mar 23 21:00:05 2016 ## cmpt=0 div=`expr $1 / $2` team=1 while [ $cmpt -lt $1 ] ; do ./lemipc $PWD $team & cmp...
true
5e71586558099ba6609e624989c30ac09b2487a3
Shell
dan-nl/europeana-portal-shell-scripts
/includes/remove-wars.sh
UTF-8
239
2.765625
3
[]
no_license
#!/bin/bash # remove portal wars msgHeader "INFO" "remove wars" if [ $remove_wars == true ]; then removeDirectoryOrFile wars "$TOMCAT_WEBAPP_DIR"/ -f msg "INFO" "" else msgResultTabbed "INFO" "remove wars" "skipped" msg "INFO" "" fi
true
efd8fbedca3ff326a095967fdc41d2bd21cc8953
Shell
OpenTrustGroup/fuchsia
/scripts/check-gn-format
UTF-8
1,266
4.09375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" readonly BUILDTOOLS_DIR="${SCRIPT_DIR}/../buildtools" readonly...
true
eff5d24e76852c3a1f0dccf57d641aa63805bcee
Shell
Yagami360/graphonomy_api-server_gke
/run_gke_gpu.sh
UTF-8
2,358
3.3125
3
[]
no_license
#!/bin/sh set -eu PROJECT_ID=myproject-292103 REGION=asia-northeast1-a #REGION=asia-northeast1-c #REGION=us-central1-a #REGION=us-central1-c #REGION=asia-east1-a GPU_TYPE=nvidia-tesla-t4 #GPU_TYPE=nvidia-tesla-k80 CLUSTER_NAME=graphonomy-cluster-gpu POOL_NAME=graphonomy-pool-gpu POD_NAME=graphonomy-pod-gpu SERVICE_NA...
true
6406afbc8308c6468dca91f034765c28fa5aae29
Shell
octonion/basketball-w
/ncaa_pbp/load_ncaa_tsv.sh
UTF-8
1,576
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash cmd="psql template1 --tuples-only --command \"select count(*) from pg_database where datname = 'basketball-w';\"" db_exists=`eval $cmd` if [ $db_exists -eq 0 ] ; then cmd="createdb basketball-w" eval $cmd fi psql basketball-w -f loaders_tsv/create_ncaa_pbp_schema.sql tail -q -n+2 tsv/ncaa_teams_...
true
6ff15f67c8325e1b3844c95d328719491830915f
Shell
dpishchukhin/bnd_issue_4382
/bnd/structure/src/main/resources/bin/setenv
UTF-8
1,386
3.1875
3
[]
no_license
#!/bin/sh # # handle specific scripts; the SCRIPT_NAME is exactly the name of the GATEWAY # script: gateway # # if [ "${GATEWAY_SCRIPT}" == "SCRIPT_NAME" ]; then # Actions go here... # fi # # general settings which should be applied for all scripts go here; please keep # in mind that it is possible that scripts migh...
true
dde135f40b8bd740758a2aec2efefc92088d6ea4
Shell
elsampsa/valkka-examples
/aux/memwatch.bash
UTF-8
464
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash ## sudo apt-get install smem ## at htop press key 'H' => see only processes, not threads ## https://www.selenic.com/smem/ ## https://www.golinuxcloud.com/check-memory-usage-per-process-linux/ if [ $# -ne 1 ]; then echo "Give interval in seconds" exit fi sleeptime=$1 while true do # cat /proc/$1/sma...
true
d39534e0524fa8a38cb4ece4fde7e2fd0d54c480
Shell
jdvillegas25/holberton-system_engineering-devops-2
/0x04-loops_conditions_and_parsing/2-while_holberton_school
UTF-8
169
3.015625
3
[]
no_license
#!/usr/bin/env bash # This script displays Holberton School 10 times COUNTER=0 while [[ $COUNTER -lt 10 ]]; do echo 'Holberton School' let COUNTER=COUNTER+1 done
true
d0b52ada03ec08943cc403497668f352a3bf0e47
Shell
amg1127/TheGirl-downloader
/helper_baixa_wallpapers.sh
UTF-8
4,528
3.625
4
[]
no_license
#!/bin/bash wget_comum="" [ "$anoatras" ] || anoatras=4 export anoatras ./helper_verifica_comandos.sh || exit 1 . ./helper_descobre_nome_garota.sh # Parametro 1: mensagem de erro sai () { echo "Erro: $1." exit 1 } # Parametro 1: ano do ensaio # Parametro 2: mes do ensaio # Parametro 3: a garota # Parametro...
true
b2ce384274c07c60d4681071c45012c7b8dd05eb
Shell
fgarel/install
/source/environnementTravail/installOpenVPN.sh
UTF-8
602
2.640625
3
[]
no_license
#!/bin/sh echo "#" echo "# la doc est ici" echo "# https://angristan.fr/installer-facilement-serveur-openvpn-debian-ubuntu-centos/" echo "#" echo "# Téléchargement d'un script qui automatise l'installation" echo "wget --no-check-certificate https://raw.githubusercontent.com/Angristan/OpenVPN-install-nyr/master/openvpn...
true
a9f3148dade2cf31ad3e48060a932c7a2ced366f
Shell
dada99/bash-scripts
/function2.sh
UTF-8
99
2.71875
3
[]
no_license
#!/bin/bash func1 () { local v1='bcd' printf "%s\n" "$v1" } v1='abc' func1 printf "%s\n" "$v1"
true
edf3e4f8a1e0ca137dd3756fb394722ac2be6aeb
Shell
baranowb/harmonia
/tests/testsuite.sh
UTF-8
557
2.609375
3
[]
no_license
#!/bin/bash echo "Run Tests..." bats -t tests/eap-job-tests.bats > eap.tap bats -t tests/eat-job-tests.bats > eat.tap bats -t tests/upgrade-components-report-test.bats > upgrade-components-report.tap cd perun || exit 1 bats -t tests/run-test-unit-tests.bats > ../perun-run-test.tap bats -t tests/perun-unit-tests.bats > ...
true
bc1217b708a7e569be2136fb488dd8a9f6bbde45
Shell
alexs-sh/tekon-utils
/test/suite_msr.sh
UTF-8
1,887
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash # Простой тест для проверки вывода при отсутсвующей связи OUT=/tmp/out BINDIR="$1" TEST_CNT=1 fail() { echo $1 exit 1 } test_output() { echo -n "TEST #${TEST_CNT} : $1..." TEST_CNT=$((TEST_CNT + 1)) # Проверка кол-ва строк LN=$(wc -l ${OUT} | cut -f 1 -d' ') EXPECT=6 if [ "$LN" -ne "$EXPEC...
true
fda973aff3b40f536408f3919c5441968affa3c3
Shell
hatemyselfandyouall/ftpservices-project
/ftpservices-web-project/bin/check.sh
UTF-8
391
3.09375
3
[]
no_license
#!/bin/bash cd `dirname $0`/.. BASE=`pwd` PROJECT_PATH=$BASE . "$BASE/bin/setenv.sh" if [ "$ISRUN" != "1" ]; then echo "fail 1." exit 1 else status=`curl -I -m 10 -o /dev/null -s -w %{http_code} http://127.0.0.1:${PORT}` if [ "$status" == "200" ] || [ "$status" == "302" ] || [ "$status" == "301" ] || [ "$status...
true
5b46e62c7a6c6b76338afcd0e52f4bef5f4bf195
Shell
guadalinex-archive/guadalinex-2005
/tags/v3.0/generation_system/live/initramfs-tools/scripts/nfs
UTF-8
935
3.484375
3
[]
no_license
# NFS filesystem mounting -*- shell-script -*- # FIXME This needs error checking # Paramter: Where the root should be mounted mountroot () { [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/nfs-top" run_scripts /scripts/nfs-top [ "$quiet" != "y" ] && log_end_msg modprobe nfs # For DHCP modprobe af_pack...
true
b8f649637221646ffd7732db4c2cf9eb84f67b0f
Shell
ricardowebdev/scripts
/Shell/writefile.sh
UTF-8
2,116
2.8125
3
[]
no_license
# Se teve mudanças salva os dados em um arquivo if [ $FILE -eq 1 ] then FIM=$(date '+%Y/%m/%d %H:%M:%S'); DATA="/opt/monitor/"$(date -d 'today' '+%d-%m-%Y')".json"; >> $DATA; echo '{' > $DATA; echo '"begin": "'$INICIO'",' >> $DATA; echo '"connection":"'$CONEXAO'",' >> $DATA; ech...
true
0ee86be19f2a0e985a6b0bb7f20b4d25731fa098
Shell
khorevaa/gunk
/httprule/gen.sh
UTF-8
419
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash SRC=$(realpath $(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)) set -e PKGPATH=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/internal/httprule pushd $PKGPATH &> /dev/null git clean -f -x -d git reset --hard git pull popd &> /dev/null rm -f $SRC/*.go FILES=$(ls $PKGPATH/*.go|grep -v test) cp $FILE...
true
6bf0c0746688d334b640f575715d76f06b114d5e
Shell
shangshengfang/spring-cloud-example
/cloud-api-gateway/src/main/docker/wait-for-dependencies.sh
UTF-8
203
2.984375
3
[]
no_license
#!/bin/bash URL=$1 STAT=`curl -I -m 10 -o /dev/null -s -w %{http_code} ${URL}` until [ ${STAT} -eq 200 ] do sleep 3 STAT=`curl -I -m 10 -o /dev/null -s -w %{http_code} ${URL}` echo "${STAT}" done
true
01209fa6c6c1e8539c5e2dda88e31ed14ee97d47
Shell
FixHarDeZ/centralizedplaybook
/playbook/roles/create_resources_quota/templates/apply-ocp.sh.j2
UTF-8
6,432
3.171875
3
[]
no_license
#!/bin/bash # =================== Varibale Declaration ================== APP_SCOPE="{{ item.APP_SCOPE }}" SVC_GROUP="{{ item.SVC_GROUP }}" ENV="{{ item.ENV }}" {% if item.ENV != '' %} ENV="-{{ item.ENV }}" ENV_LABEL="envName={{ item.ENV }}" {% endif %} if [[ ${APP_SCOPE} == "unknown" ]]; then echo "Sorry, Please ...
true
3c9869cd8a06624fe2101f752326990db10f5768
Shell
vzaicev/bash
/2022/11_anastsia_sabilo/lab1/lab01_z03.sh
UTF-8
277
3.0625
3
[]
no_license
#!/bin/bash if [ -n "$1" ]&&[ "$1" == "-task" ];then echo "Задание 3. Вывести строку, содержащую символ кавыка и" echo " символ,$, символ конца строки ?n." echo fi echo "\"" echo "\$" echo "\\n"
true
69d6d6c865dcdbd458d4258607def60d83c7fc29
Shell
zhufengme/docker-nginx-with-php7
/startup.sh
UTF-8
1,095
3.1875
3
[]
no_license
#!/bin/bash path_of_nginx_template="/templates/nginx" nginx_conf_file="/etc/nginx/sites-enabled/default" path_of_php_template="/templates/php" php_cli_conf_file="/etc/php/7.0/fpm/conf.d/10-docker-ext.ini" php_fpm_conf_file="/etc/php/7.0/cli/conf.d/10-docker-ext.ini" echo "Appling setting..." if [ $HTTPS ]; then ...
true
8b015eacbbcfdb735b87995b990b3efaa713e669
Shell
dmitry-saprykin/env
/update-fork.sh
UTF-8
307
2.828125
3
[]
no_license
#!/bin/bash # FORK NAME: origin # UPSTREAM NAME: upstream remote=upstream for brname in `git branch -r | grep upstream | grep -v master | grep -v HEAD | sed -e 's/.*\///g'`; do git branch --track $brname $remote/$brname ; done git pull --rebase --all git push --all origin git push --tags origin
true
5a552d7d2de142114b86c74fddc73ff7c5637cee
Shell
alexz12948/Web-Scraper-and-Analyze
/scrape.sh
UTF-8
542
3.890625
4
[]
no_license
#!/bin/sh : ' Author: Alexander Zsikla Project: web_scrape.py Date: Fall 2019 Description: Takes in a URL and creates a csv file with the name of the domain and moves it into a folder called CSV_Files ' if [ $# == 0 ]; then echo "Usage: $0 <URL> <Optional: -A (analyze)>" exit 0 fi mkdir CSV_Files for URL in $@;...
true
5898a9a36734adea7433a2679ee6ce0c98d35c8c
Shell
BlockLiu/AHashFlow
/src/switch-8.2.0/ptf-tests/dtel/integration-tests/nc_server.sh
UTF-8
468
2.53125
3
[]
no_license
#!/bin/bash # increase file descriptor limit: https://underyx.me/2015/05/18/raising-the-maximum-number-of-file-descriptors # echo 55000 | sudo tee /sys/fs/cgroup/pids/user.slice/user-1000.slice/pids.max # disable offloading #sudo ethtool -K ens1f1 rx off #sudo ethtool -K ens1f1 tx off #sudo ethtool -K ens1f1 tso off #...
true
a50bc00463013517ad672b8a98c3a283b692c7ce
Shell
MaximilianHanussek/BOOTABLE
/run_benchmarks_centos_image.sh
UTF-8
7,646
3.15625
3
[]
no_license
#!/bin/bash #run_benchmarks max_cores=$(nproc) max_cores_velvet=$(expr $max_cores - 1) half_cores=$( expr $max_cores / 2) half_cores_velvet=$(expr $half_cores - 1) quarter_cores=$(expr $max_cores / 4) one_core=1 clean=0 while getopts c option do case "${option}" in c) clean=1;; esac done run_benchmark_tools () { cor...
true
12adda02e272bd32117896c4bd2fff865c5012c0
Shell
GouriDeo/CodingClub
/CodingClub/dayForteen/mobileNo.sh
UTF-8
228
3.390625
3
[]
no_license
#!/bin/bash -x function number() { read -p "Enter the country code then mobile number " number pattern="^([0-9]{2})[[:space:]]{1}[0-9]{10}" if [[ $number =~ $pattern ]] then echo valid else echo not valid fi } number;
true
25940ae84ee7f1e937d0f88278c60b9fbf1f4ff4
Shell
melezhik/archlinux-install
/modules/grub/story.bash
UTF-8
884
3.296875
3
[]
no_license
debug=$(config grub.debug) [[ $debug ]] && set -x grub_target=$(config grub.target) grub_type=$(config grub.type) grub_partition=$(config grub.partition) if [[ $grub_target ]]; then arch-chroot /mnt pacman -S --noconfirm grub os-prober if [[ $grub_type == 'efi' ]] && [[ $grub_partition ]]; then real_efi_partit...
true
e05d79fe9e3ec9fba74f94883cbea5dcacef1dba
Shell
katharinegillis/dot-adminer
/update.sh
UTF-8
199
2.640625
3
[]
no_license
#!/usr/bin/env bash if [ ! -d "$HOME/utils" ]; then mkdir "$HOME/utils" fi cd "$HOME/utils/adminer" || return docker-compose down git pull origin master docker-compose pull docker-compose up -d
true
8758f37d2f8772974f8d9907f62ca45d151b8f00
Shell
HaoLab/PURITY
/pyclone/step1_prepare_pyclone.sh
UTF-8
2,483
3.078125
3
[]
no_license
#!/usr/bin/bash ###准备运行pyclone的tsv文件(需要snv结果和cnv结果,其中cnv结果为cnvkit结果命令为cnvkit.py call -v *.snv.vcf(varscan) -i TUMOR -n NORMAL;snv结果(varscan)需进行annovar注释,注释命令为:/work-a/app/annovar/table_annovar.pl --buildver hg19 --otherinfo -remove -protocol refGene,ljb2_pp2hdiv,ljb2_pp2hvar,exac03,clinvar_20160302,gnomad_exome -oper...
true
00a3726bf7df69962d082e166e43c265d2da0794
Shell
dotmpe/user-conf
/script/vc-uc.lib.sh
UTF-8
1,835
3.671875
4
[]
no_license
#!/bin/sh vc_gitdir() { test -n "${1-}" || set -- "." test -d "$1" || err "vc-gitdir expected dir argument" 1 test -z "${2-}" || err "vc-gitdir surplus arguments" 1 local pwd="$(pwd)" cd "$1" repo=$(git rev-parse --git-dir 2>/dev/null) while fnmatch "*/.git/modules*" "$repo" do repo="$(dirname "$repo...
true
ca7a73e308ad7f006c610e9d61bfa5e794ed701c
Shell
udbhav-chugh/SystemSoftwareLab-CS241
/postmidsem/shell2/q1.sh
UTF-8
240
3.59375
4
[]
no_license
#! /bin/bash echo Enter two numbers: read a b if [[ $b -le $a ]]; then #statements temp=$b else temp=$a fi ans=0 for (( i = $temp ; i >=1 ; i-- )); do if [[ $a%$i -eq 0 && $b%$i -eq 0 ]] then ans=$i i=0 fi done echo $ans
true
a23462d24270fd686d744400796f90f530fbd3e0
Shell
pkoptilin/docker-eclm
/init.sh
UTF-8
1,473
2.546875
3
[]
no_license
if [ "x$JDBCURL" = "x" ]; then JDBCURL="jdbc:oracle:thin:@oracle:1521:XE" fi if [ "x$FULLHA" = "x" ]; then FULLHA="/opt/jboss/wildfly/standalone/configuration/standalone-full-ha.xml" fi if [ "x$CPATH" = "x" ]; then CPATH="/opt/jboss" fi #remove all comments sed -i.bak 's/<!--.*-->//' $FULLHA sed -i.bak "s/<conn...
true
f9fc1682ec33d735f5eb2f3b9f546e3948235ae9
Shell
delkyd/alfheim_linux-PKGBUILDS
/dcrspy-git/PKGBUILD
UTF-8
1,198
2.8125
3
[]
no_license
# Maintainer: Andy Weidenbaum <archbaum@gmail.com> pkgname=dcrspy-git pkgver=20170210 pkgrel=1 pkgdesc="Decred data monitor" arch=('i686' 'x86_64') makedepends=('git' 'glide' 'go') groups=('decred') url="https://github.com/chappjc/dcrspy" license=('ISC') options=('!strip' '!emptydirs') source=(git+https://github.com/c...
true
6503be3e6eb578a2e07219180b6446bae59087fb
Shell
xratzh/XRSK
/X61.sh
UTF-8
789
3.40625
3
[ "MIT" ]
permissive
#! /bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH [ "$EUID" -ne '0' ] && echo "Error,This script must be run as root! " && exit 1 # yum install -y http://vault.centos.org/6.7/centosplus/x86_64/Packages/kernel-2.6.32-573.1.1.el6.centos.plus.x86_64.rpm yum install -y http:...
true
851165734440ff19e77175b47a1003668db488cb
Shell
aprokop/package_configs
/trilinos_fortrilinos_e3sm
UTF-8
2,360
2.75
3
[ "MIT" ]
permissive
#!/bin/bash EXTRA_ARGS=$@ rm -f CMakeCache.txt rm -rf CMakeFiles/ rm -f build.ninja rm -f rules.ninja ARGS=( -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_INSTALL_PREFIX=$HOME/local/opt/trilinos-fortrilinos -D BUILD_SHARED_LIBS=ON ### COMPILERS AND FLAGS ### -D Trilinos_ENABLE_Fortran=ON -...
true
fef107cbf4a39ae7d4d3d9d89d8bfd354503cb33
Shell
amerlyq/airy
/dict/run-regex
UTF-8
649
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash -eu #%USAGE: -- supports 'grep' arguments #% ./$0 'abc' -- search words/phrase containing 'abc' #% ./$0 -x 'abc\w+' -- search whole words starting with 'abc' set -o pipefail db=~/.cache/airy/dict.index [[ -t 1 ]] && exec > >(sed -ru " s|${@: -1}|$(tput setaf 3)$(tput bold)\0$(tput sgr0)|g ") ldicts()...
true
0d1bf877340baa469a7ac74242354db21c633391
Shell
durnezj/iptables-simple-firewall
/ip_blocker.sh
UTF-8
1,354
3.03125
3
[]
no_license
#!/bin/bash/ function block_port { printf "Blocking port " printf $1 printf " from the outside\n" #iptables -I INPUT -p udp -s 10.8.0.0/24 --dport $1 -j ACCEPT #iptables -I INPUT -p tcp -s 10.8.0.0/24 --dport $1 -j ACCEPT #iptables -I INPUT -p udp -s 192.168.1.0/24 --dport $1 -j ACCEPT #iptables -I INPUT -p tc...
true
63cdd23a5071cde3dc4f549bd64ff94033a673f4
Shell
xeno14/dotfiles
/install.sh
UTF-8
579
3.140625
3
[]
no_license
#!/bin/bash dotfiledir="$(cd $(dirname $0) && pwd)" installtxt="${dotfiledir}/install.txt" cat $installtxt | while read line; do echo $line src=$dotfiledir/$line dst=${HOME}/$line ln -snfv $src $dst done # zinit # https://github.com/zdharma/zinit sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/...
true