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
33f7f8132de1692d326ad18e333ae0028ed70544
Shell
m23project/m23
/m23/bin/networkCheckSetDialog
UTF-8
1,932
4.3125
4
[]
no_license
#!/bin/bash # Checks network settings and asks for correct values for the override files #name checkIPAskForAlternative #description Checks, if an FQDN, IP or netmask is valid and asks the administrator for a valid #parameter: $1 text #parameter: name of the override file #parameter: true, if FQDN is allowed, otherw...
true
1f303a8501b55537d65c46cc94eb0b84b2075274
Shell
ghsecuritylab/trabajo-final-cese-robot
/docker/run_docker.sh
UTF-8
761
2.578125
3
[]
no_license
SCRIPTS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) REPO_DIR=`readlink -f ${SCRIPTS_DIR}/..` DOCKER_CAPABILITIES="--ipc=host \ --cap-add=IPC_LOCK \ --cap-add=sys_nice" DOCKER_NETWORK="--network=host" DOCKER_MOUNT_ARGS="\ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ ...
true
5761edc6c68670f6174cec5d7baa2312e2f7c733
Shell
elastest/elastest-torm
/docker/services/testlink/app-entrypoint.sh
UTF-8
322
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e . /opt/bitnami/base/functions . /opt/bitnami/base/helpers print_welcome_page check_for_updates & if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then nami_initialize apache php testlink info "Starting testlink... " fi rm -rf /opt/bitnami/testlink/install/ exec tini -- "$@...
true
79bafe6794bf1183757763ffb2dcf41f397f6fc4
Shell
OpenDataAnalytics/kitware-geospatial-recipes
/recipes/texture-atlas/build.sh
UTF-8
522
2.953125
3
[]
permissive
#!/bin/bash mkdir build cd build BUILD_CONFIG=Release if [ $(uname) == Darwin ]; then export CXXFLAGS="${CXXFLAGS} -stdlib=libc++" export LDFLAGS="${LDFLAGS} -headerpad_max_install_names" fi cmake ../Texture_Atlas/src/ -G "Ninja" \ -Wno-dev \ -DCMAKE_BUILD_TYPE=$BUILD_CONFIG \ -DCMAKE_PREFIX_P...
true
33f2403199907f61250dffaef464d0d2b2ad3be3
Shell
AMIS-Services/code-cafe-20190520
/laptop-as-code/dotfiles/bin/resource_usage.sh
UTF-8
879
3.703125
4
[]
no_license
#!/bin/sh OS=`uname` BIN_TOP=/bin/top if [ -x ${BIN_TOP} ]; then echo "CPU Usage:" ${BIN_TOP} -b -n 1 fi BIN_PS=/bin/ps if [ -x ${BIN_PS} ]; then echo "Top Memory Usage:" ${BIN_PS} aux | sort -r -nk 4 | head fi VMSTAT=/usr/bin/vmstat if [ -x ${VMSTAT} ]; then echo "" e...
true
6603cd7e19a37ab8acff37a649818423491f42ea
Shell
BadderZman/Fbnewtool2020
/fbtool.sh
UTF-8
1,452
2.890625
3
[]
no_license
clear echo echo python .password.py echo echo clear echo -e "\e[4;31m Kareem Musa !!! \e[0m" echo -e "\e[1;34m Presents \e[0m" echo -e "\e[1;32m FB TOOL \e[0m" echo "Press Enter To Continue" read a1 clear echo -e "\e[1;31m" figlet FB TOOL echo -e "\e[1;34m Created By \e[1;32m" toilet -f mono12 -F border B.C.M echo -e "...
true
2313d94708835038554477bdc71da41ab46eab98
Shell
akuru/UbuntuSinhalaFont
/install.sh
UTF-8
774
3.453125
3
[]
no_license
#!/bin/bash # Install Noto Fonts sudo apt install -y fonts-noto fontconfig # Download font config if [ ! -f 65-nonlatin.conf ]; then echo "Downloading font config" wget https://raw.githubusercontent.com/IMS94/UbuntuSinhalaFont/master/65-nonlatin.conf fi # Move existing non-latin config if [ ! -f /etc/fonts/c...
true
2a5f75f40dc00bae4801c19bd41f611d5bfd5b67
Shell
igormalyk/dotfiles
/install.sh
UTF-8
1,062
4
4
[]
no_license
#!/bin/bash echo "### Starting .dotfiles setup" if [ -e ~/.dotfiles ] then echo "### ERROR: Already bootstrapped dotfiles." exit 0 fi if [ -d ~/.dotfiles_backup ] then echo "OK: Backup directory exists." else echo "OK: Creating ~/.dotfiles_backup directory." mkdir ~/.dotfiles_backup fi echo "# L...
true
fd5eb1e67cfadd40687b083a0d71e42dff0c8735
Shell
wilson-tim/stellahomedw
/DWLIVE/jutil/process_check/process_check.ksh
UTF-8
3,059
3.59375
4
[]
no_license
#!/usr/bin/ksh #set -x # ******************************************************************* # * PROCESS CHECKING ROUTINE * # ******************************************************************* # * * # * This shell s...
true
f7cea5049dc5df321eeae6f8257215ecc6eece11
Shell
michelleirvine/bazel-toolchains
/container/debian8-clang-fully-loaded/build.sh
UTF-8
2,663
3.78125
4
[ "Apache-2.0" ]
permissive
# Copyright 2017 The Bazel Authors. 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 required by applicable la...
true
419435546ef9720744fcb27b43685b599a779c93
Shell
lucas101199/MapMaking
/mapper.sh
UTF-8
748
3.625
4
[]
no_license
#!/bin/bash # Example script for calling mapper. Don't forget to make it executable (chmod +x mapper) # Change the last line (java Mapper ...) to suit your needs # Author: Ola Ringdahl # # Inputs: # url specifies the address and port to the machine running MRDS. # x1, y1, x2, y2 give the coordinates of the lower left...
true
15b0b741599694ca35b9bc01bc5dc0231faf71a2
Shell
corpusops/fix_gitlab_runner
/roles/fix_gitlabrunner_perms/templates/root/fix_ci_docker_perms.sh
UTF-8
1,081
3.515625
4
[]
no_license
#!/usr/bin/env bash # add to [[runner]] # pre_clone_script = "umask 0022" # then cleanup runner caches & volumes DRYRUN=${DRYRUN-} VOLUMEPATTERN="${VOLUMEPATTERN:-gitlab.*runner}" JQ="jq -M" vv() { echo "$@">&2 "$@" } drvv() { echo "$@">&2 if [[ -z $DRYRUN ]];then "$@" fi } RUNNER_CACHE_CO...
true
7cf5a8c20c4b5837beb7c01e8871644721e28ccf
Shell
alex-suess/dotfiles
/yarn/install.sh
UTF-8
170
3.21875
3
[ "MIT" ]
permissive
#!/bin/sh # # This installs yarn via homebrew read -p "Do you wish to install yarn? [y/n]" yn case "$yn" in Y|y ) brew update brew install yarn esac
true
2a1de4a9457cee975ecca392f8c196599c6d3f2b
Shell
ntujvang/holbertonschool-sysadmin_devops
/0x09-web_server/4-not_found_page_404
UTF-8
412
3
3
[]
no_license
#!/usr/bin/env bash # Script that redirects to 404 sudo apt-get install -y nginx echo "Ceci n'est pas une page" | sudo tee /usr/share/nginx/html/custom_404.html string="error_page 404 /custom_404.html;\\n location = /custom_404.html {\\n root /usr/share/nginx/html;\\n internal;\\n}" mine="#error_page 404 /404.html;" lo...
true
58d1ca6ceb0e07dd2e7a47a0bb24700ccdcb45e5
Shell
Mattlk13/maglev
/lib/ruby/1.9/openssl/ext/missing.sh
UTF-8
258
2.96875
3
[]
no_license
#!/bin/sh for i in `grep '#if !defined(HAVE_' openssl_missing.c | sed -e 's/\#if\ \!defined(HAVE_//' -e 's/).*//' ` do if nm ../../../../../gemstone/lib/libssl*.dylib | grep -qi "$i" then echo Has $i; else echo Doesnt have $i; fi done
true
ff8c6d6d01c3af592ad0d5139436d86e840cb002
Shell
joseflorida/sistemas
/script1.sh
UTF-8
177
3.34375
3
[]
no_license
x=$1 y=$2 if [ $x -gt $y ]; then echo "El mayor es:$x" else if [ $y -gt $x ]; then echo "El mayor es:$y" else if [ $x -eq $y ]; then echo "Son iguales" fi fi fi
true
bab1e8dad0a37d196c6f65fba06386be3baf64fc
Shell
LeandroGuillen/sta
/escenario/SNMP/SNMP-Configure.sh
UTF-8
1,537
3.71875
4
[]
no_license
#!/bin/bash user=`whoami` directory=`pwd` if [ "$user" != "root" ]; then echo "$user is not an administrator" exit 1 fi cd $HOME export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib echo -n '¿Agente (snmpd) o manejador (trapd)? (a/m): ' read var1 if [ "$var1" == "a" ]; then echo -n "Ip del manejador par...
true
9967b192161d8233a8f889dcd21123294c328b4e
Shell
kva-devops/bash_scripts
/pull-messagese.sh
UTF-8
838
3.765625
4
[]
no_license
#!/bin/bash # Author: Kutiavin Vladimir # Date: 11/02/21 # Description: Scan logs file and find line what you need sudo cp /var/log/messages . sudo chown vagrant:vagrant messages while true do echo What messages you want pull? echo echo Press 1 for pull error messages echo Press 2 for pull warn messages echo Pr...
true
2f55ea659ba758a97f289962eaf08e12f5ce722a
Shell
GaryniL/AQC111_DSM
/enableAQC111.sh
UTF-8
2,254
3.8125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #title :enableAQC111.sh #description :This script will make aqc111 driver enable in DSM 6.2. #author :garynil.tw #date :20200608 #version :0.1 #usage :bash enableAQC111.sh #============================================================================== w...
true
5f9866c1dd0dfebbb6f5a588be9301b84fa35a40
Shell
nemisphere/k8s-cluster
/secrets/secrets.sh
UTF-8
7,060
3.546875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash export REPO_ROOT REPO_ROOT=$(git rev-parse --show-toplevel) need() { which "$1" &>/dev/null || die "Binary '$1' is missing but required" } need "kubeseal" need "kubectl" need "sed" need "envsubst" if [ "$(uname)" == "Darwin" ]; then set -a . "${REPO_ROOT}/secrets/.secrets.env" set +a e...
true
fa5ac7a1de2082228a2b30dbd8cd031b9fe0364a
Shell
DorianListens/dotfiles
/tmuxwork.sh
UTF-8
1,256
3.234375
3
[]
no_license
#!/bin/bash SESSION="infoactive" DIR="~/infoactive" create_session() { tmux -2 new-session -d -s "$SESSION" # Editor Window tmux send-keys "cd " $DIR C-m tmux send-keys "vi" C-m tmux split-window -v tmux resize-pane -D 15 tmux send-keys "cd " $DIR C-m tmux send-keys "ulimit -n 350" C-m tmux send-ke...
true
283b8a37232b8c5ceef63a7b2797e15adce6ae94
Shell
rokiden/WebBackup
/webbackup.sh
UTF-8
1,104
4.125
4
[]
no_license
#!/bin/bash if [[ $# -ne 3 ]] && [[ $# -ne 4 ]]; then echo "Usage: $(basename $0) dir_path webdav user [backup_name]" exit 0 fi backup_dir=$1 webdav=$2 user=$3 if [ -n "$4" ]; then backup_name=$4 else backup_name=$(basename $backup_dir) fi backup_path="/var/tmp/"$backup_name"_$(date +%Y%m%d-%H%M%S).tar.gz" ...
true
d7508a05867f61783263ff5d7947ae0d5281e893
Shell
ilventu/aur-mirror
/libretro-mednafen-pce-git/PKGBUILD
UTF-8
798
2.703125
3
[]
no_license
# Maintainer: almostalive <almostalive2003 at gmail dot com> pkgname=libretro-mednafen-pce-git pkgver=20120910 pkgrel=1 pkgdesc="libretro implementation of mednafen's PC Engine." arch=('i686' 'x86_64') url="https://github.com/libretro/mednafen-pce-libretro" license=('custom') makedepends=('git') conflicts=('libretro-s...
true
3536f2d162a3464e0eb15665c803276b41230613
Shell
team5499/frc-2017-offseason
/updateVars.sh
UTF-8
315
3.03125
3
[]
no_license
#!/bin/bash vars_directory=$2 team_number=5499 if [ "${1}" == "push" ]; then scp ${vars_directory} admin@roborio-${team_number}-frc.local:/home/lvuser/vars.json ssh admin@roborio-${team_number}-frc.local "sync" else scp admin@roborio-${team_number}-frc.local:/home/lvuser/vars.json ${vars_directory} fi
true
96afe17e7c364d8dc4aeb3758265590394282e7b
Shell
bigklopp/Shell_git
/istring.sh
UTF-8
136
3.171875
3
[]
no_license
#!/bin/bash read -p "실행할까요? (y/n)" CHOICE if [[ $CHOICE = [yY]* ]] then echo "실행됨" else echo "실행 취소됨" fi
true
67098f4d92158d3778b55f5dedf0b2708f65dc2c
Shell
p16i/segmentation-speed-benchmark
/scripts/run-experiments.sh
UTF-8
331
3.28125
3
[]
no_license
#!/bin/bash RUNS=$TOTAL METHODS="$METHOD" rm -rf .result* for d in "$@" do for m in $METHODS do for i in `seq 1 $RUNS` do slug="$d-$m-$i" echo "Running $slug" time python3 "./scripts/$m" $d > .result-$slug echo "sleep" && sleep 2 done ...
true
71a72a1c2b9e2e03306a34fc461b54f13bc35078
Shell
Thallsrrt/Projeto-Thales
/MENU G. DE DISPOSITIVO.sh
UTF-8
1,930
3.5
4
[]
no_license
#!/bin/bash TMP=0 MENU(){ OPCAO=$(dialog \ --stdout \ --title 'Menu' \ --menu 'Escolha uma opção' \ 0 0 0 \ 1 'Gerenciado de dispositivo' \ 2 'Sair') case $OPCAO in 1) GREP ;; 2) FIM ;; 255) exit ;; *) exit 0 ;; esac } FIM(){ dialog \ --title 'FLW' \ --yesno 'Deseja mesmo...
true
760cbd896636025313feb2bd7f53316e0d29912f
Shell
pktn/dotfiles
/.zshrc
UTF-8
3,323
2.890625
3
[]
no_license
# 文字コードの設定 export LANG=ja_JP.UTF-8 # パスの設定 PATH=/usr/local/bin:$PATH export MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man export SVN_EDITOR=vim # 関数 find-grep () { find . -type f -print | xargs grep -n --binary-files=without-match $@ } # エイリアスの設定 alias ls='ls --color=auto' alias ll='ls -ltr' alias gd='d...
true
706298b8701dda13c971cf5571ca806dd1c3cde7
Shell
kskovpen/bTag
/SimAnalysis/SimAnalysis/test/SimPlot/test/getListRF.zsh
UTF-8
1,553
3.171875
3
[]
no_license
#!/bin/env zsh fpathMC="/dpm/in2p3.fr/home/cms/phedex/store/user/kskovpen/SimAnalysis/v20160409/" liMC=($(/usr/bin/rfdir ${fpathMC} | awk '{print $9}')) fpathMCXRD=$(echo ${fpathMC} | sed "s%/dpm%root://sbgse1.in2p3.fr//dpm%g") nFilesMC=20 outDir="lists/" rm -rf ${outDir} mkdir ${outDir} rm -f /tmp/tempMC.txt for...
true
e3baeb9256a2a5a40387ae32b29f4d4383a0ef98
Shell
gdestuynder/ffos_packaged_app_signature_utils
/verify.sh
UTF-8
1,215
3.78125
4
[]
no_license
#!/bin/bash # ***** BEGIN LICENSE BLOCK ***** # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** # Verifies a packaged app signature # kang...
true
9304bdedb575c316129699805aff17a2bec8933c
Shell
supplantr/ftw
/ftw
UTF-8
5,003
3.1875
3
[]
no_license
#!/bin/bash _defaults() { PROFILE_FILE=/tmp/ftw.profile MODULES=(uvcvideo videodev) adp() { CPUFREQ_GOVERNOR=ondemand NMI_WATCHDOG=1 BUS_CONTROL=on PCIE_ASPM_POLICY=default LAPTOP_MODE=0 DIRTY_RATIO=30 DIRTY_BACKGROUND_RATIO=10 DIRTY_EXPIRE_CE...
true
6491f949d0db143692f09b4009b6167dbc3bf8e1
Shell
delkyd/alfheim_linux-PKGBUILDS
/retropong/PKGBUILD
UTF-8
1,025
2.640625
3
[]
no_license
# Maintainer: Jozef Riha <jose1711 at gmail dot com> pkgname=retropong pkgver=1.0 pkgrel=2 pkgdesc="a simple pong remake" arch=('i686' 'x86_64') license=('GPL2') url="http://sourceforge.net/projects/retropong/" source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}.tar.gz" "retropong.desktop") depends...
true
7cebb72c447ac3d5177df394509a6b331f40505f
Shell
gwang550/load-balancer-operator-for-kubernetes
/hack/test-ytt.sh
UTF-8
1,758
3.75
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Copyright 2020 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 set -o errexit # Exits immediately on unexpected errors (does not bypass traps) set -o nounset # Errors if variables are used without first being defined set -o pipefail # Non-zero exit codes in piped commands causes pipeline to fail ...
true
36c7ea02860c09d909166520bdca118ef03077b0
Shell
sgs921107/docker_ss5
/deploy/deploy.sh
UTF-8
1,695
3.34375
3
[]
no_license
######################################################################### # File Name: deploy.sh # Author: qiezi # mail: qiezi@gmail.com # Created Time: Wed 19 Feb 2020 12:29:13 PM CST ######################################################################### #!/bin/bash # ===================run the script with root us...
true
f7643c8cfdbf3822033992fcbb714808a766fa62
Shell
jasmith79/jasmith79-dotfiles
/testcheck.sh
UTF-8
4,150
3.375
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
os=$(uname) # Determine working directory wd=$(pwd) # Determine current user user=$(logname) who=$(whoami) if [[ $user = "" ]]; then user="$SUDO_USER" fi if [[ $user = "" ]]; then user="$who" fi # TODO: replace these with version checks if command -v git >/dev/null; then echo "Git successfully installed." els...
true
9ebb6c0e8801df3998e214921627faec02e9492b
Shell
bakingbacon/app-tezos
/test/apdu-tests/baking/baking_test.sh
UTF-8
2,822
2.859375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -Eeuo pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$DIR" fail() { echo "$1" echo exit 1 } { echo; echo "Authorize baking" echo "ACCEPT" { echo 8001000011048000002c800006c18000000080000000 # Authorize baking } | ../apdu.sh } { echo; echo "Baking a ...
true
63063d6f16b5116b626a710d8d5624896459a4c3
Shell
davidjfelix-legacy/provisioner
/modules/bazel/linux-amd64-ubuntu-zesty
UTF-8
529
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash # Bash strict mode set -euvo pipefail # Install deps sudo apt-get -y install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common # Get the bazel gpg key and trust it curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - # Add bazel repo sudo add-apt...
true
c8f73b1d73e49745fdffe316a62f6bbfab7251f5
Shell
kecorbin/consul-hcs-vm-demo
/assets/terraform/ingress/templates/nginx-ingress.sh
UTF-8
5,963
3.375
3
[]
no_license
#!/bin/bash #Utils apt-get update -y apt-get upgrade -y apt-get install -y unzip jq nginx # Fix for Nginx PID problem in Ubuntu 16.04 in an EC2 instance systemctl stop nginx mkdir /etc/systemd/system/nginx.service.d printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf...
true
bd8446c9920d98961ee12cf45e5bc4fc3dd97055
Shell
kittyhawk/scripts
/test
UTF-8
823
3.640625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash #set -x s=10 list="$1" if [[ -z $list ]] then list="1 2 4 8 16 32 64 128 256 512" fi for i in $list do echo "$i: allocating ...." khalloc="$(khget -x user${i} $i)" ncount=$(echo "$khalloc" | khdo peripcmd "echo %ip%" | wc -l) if (( $ncount != $i )) then echo "ERROR: $i: did not get the n...
true
2f23a57baa6e886ea9a307d2c11cd380288b714d
Shell
jharibabu/Test_monitoring
/github-actions/publish-dashboards/run.sh
UTF-8
1,729
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail GRAFANA="${1}" function get_folder_id() { fname="\"${1}\"" existing=$(curl -sf -X GET \ -H "Authorization: Bearer ${TOKEN}" \ -H 'Content-type: application/json' \ -H 'Accept: application/json' \ "${...
true
337b8e10fc4dc9a0c0ee078b099130a930c95a79
Shell
Mihail-Kostov/dotfiles-26
/bin/backup-dewback
UTF-8
762
2.71875
3
[]
no_license
#!/bin/bash OPTIONS="-e ssh --relative --compress --archive --delete-excluded --progress --human-readable " SERVER="backup.remote:cs-dewback" cd /Users/csexton # Rsync to Dreamhost #rsync $OPTIONS Projects Pictures Documents $SERVER \ # --exclude="OmniFocus Backups" \ # --exclude="*vmwarevm" \ # --exclude="Apple ...
true
e0be1ef2fee4b8851be9a0bc818bb159be99caf7
Shell
linasn/tv-tuner
/pcap_txt_to_a828_replay.sh
UTF-8
253
2.765625
3
[]
no_license
#!/bin/bash [[ $# -ne 2 ]] && echo "Usage: $0 input_file output_file" && exit 1 sed -n '/Time/d;/^$/d;s/ *[0-9]* \([\.0-9]*\) *host.*/[\1]/p;s/\(00[4-9]0 [ 0-9a-f]* \).*/\1/p' $1 | awk '{$1=$1};1' | sed ':t;$!N;/\n00[567]0/s///;tt;s/^0040 //;P;D' > $2
true
7bc9fdec5fc222044d8a0b38a0d8afe15fd3a644
Shell
rbasoalto/dotfiles
/bashrc
UTF-8
448
3.140625
3
[]
no_license
path_remove () { export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: '$0 != "'$1'"' | sed 's/:$//' | sed 's/$://'`; } path_append () { path_remove $1; export PATH="$PATH:$1"; } path_prepend () { path_remove $1; export PATH="$1:$PATH"; } if [[ "$OSTYPE" == "darwin"* ]]; then # Homebrew binaries first path_prepend...
true
2974b5442fe2f063b53a67e405b3c85158b52e68
Shell
ucd-plse/func2vec-fse2018-artifact
/lib/eclat/eclat/ex/hdr2set
UTF-8
219
2.765625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash gawk ' (NR == 1) { for (i = 0; ++i <= NF; ) items[i] = $i; } (NR > 1) { for (i = k = 0; ++i <= NF; ) { if (k++ > 0) printf(" "); printf("%s=%s", items[i], $i); } printf("\n"); }' $1 > $2
true
94b6feea23dad33873d89aff801252eede55b33b
Shell
miecio45/dotfiles
/scripts/build_neovim
UTF-8
416
3.328125
3
[]
no_license
#!/bin/bash APT_GET_CMD=$(which apt-get) YAOURT_CMD=$(which yaourt) if [[ ! -z $APT_GET_CMD ]]; then apt-get install libtool autoconf automake cmake g++ pkg-config unzip git git clone https://github.com/neovim/neovim cd neovim make; sudo make install elif [[ ! -z $YAOURT_CMD ]]; then yaourt ...
true
4d0f48a1ed76fc86b7742e08f2f481ae6d7cf859
Shell
massimiliano-brocchini/conf-and-utils
/bin/explode
UTF-8
178
3.46875
3
[]
no_license
#!/bin/zsh sep=$1 string=$2 value="" for i in {1..${#string}}; do x=$string[i] if [[ "$x" == "$sep" ]]; then echo $value value="" else value+=$x fi done echo $value
true
74df85c7251d1847676a6c672dd05620e8606e00
Shell
SilverSoldier/setup
/setup2.sh
UTF-8
1,424
2.828125
3
[]
no_license
# To setup system based on my configurations # Step 2: back up old files and replace with new files from customization folder cd echo "--> Back up old bashrc" # Backup old bashrc mv ~/.bashrc ~/.bashrc_old || : cp ~/customization/dotfiles/.bashrc ~/ echo "--> Back up old vimrc" # Backup old vimrc mv ~/.vimrc ~/.vim...
true
0cab23021876e9c0840313ea56b5704792963b7f
Shell
karatatar/dotfiles
/scripts/package/aux/install.sh
UTF-8
1,411
3.828125
4
[]
no_license
#!/usr/bin/env bash check_if_is_installed() { local -r package="$1" local -r fn="$(package::fn "$package" is_installed)" if platform::command_exists $fn; then $fn else platform::command_exists "$package" fi } install_if_not_installed() { local -r package="$1" local -r pkg_managers=...
true
56ee321c9347bec235dfbdc1cd30719ef24d12f5
Shell
apoorvam/moc-apps
/ci/diff-with-previous.sh
UTF-8
963
3.796875
4
[]
no_license
#!/bin/bash OPT_BASE_REF='HEAD^' while getopts fr: ch; do case "$ch" in (r) OPT_BASE_REF=$OPTARG ;; (f) OPT_FORCE=1 ;; (\?) echo "ERROR: unknown optoin: $1" >&2 exit 2 ;; esac done shift $(( OPTIND - 1 )) if [[ -z "$...
true
77521370f177fef4b269733e678cb8d25a433e2a
Shell
bishnubibhabdas/gitjenkinintegration
/myscript.sh
UTF-8
152
2.921875
3
[]
no_license
echo "Welcome to the world of shell scripting" echo 'Default script is bash' echo 'Thank you' echo "Enter your name" read x echo "my name is" $x "Das"
true
ce310de155dd3ac3dc4d78a0b70a5e6dfcbc034d
Shell
Wellsjian/20180826
/xiaojian/forth_phase/shell/day02/08_func_directory.sh
UTF-8
260
3.171875
3
[]
no_license
#!/bin/bash create_dir(){ read -p "请输入目录名:" dirname directory="/home/tarena/materials/xiaojian/forth_phase/shell/day02/$dirname" if [ !-e $directory ];then mkdir $directory else echo "文件夹已经存在" fi } create_dir
true
5a7115efdcfbc6dbe8df03cf7e75e23e0abf12ac
Shell
Mgvanhoy52/AccessoryServer
/install/install_io.sh
UTF-8
2,701
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "installing wiring-pi" git clone git://git.drogon.net/wiringPi cd wiringPi ./build cd .. rm -rf wiringPi IRIN=15 IROUT=18 RFIN=2 RFOUT=0 echo "Do you want to install the components for transmitting and receiving infrared signals?" echo "Enter 'skip' if you want to skip this step, otherwise press an...
true
35d58cc4e28173f6af6a0ee1dc1270eee63f87f8
Shell
helau/gen2vdr
/etc/gen2vdr/_config/bin/powerb.sh
UTF-8
716
3.28125
3
[]
no_license
#!/bin/bash # Skript which is executed when the powerbutton is pressed source /_config/bin/g2v_funcs.sh EJECT_CMD="/_config/bin/eject.sh" if [ "$(pidof vdr)" != "" ] ; then HALT_CMD="/usr/bin/svdrpsend.sh HITK power" else HALT_CMD="shutdown -r now" fi #set -x CMD="$HALT_CMD" if [ "${PB_FUNCTION}" = "EJECT" ] ; ...
true
b7f33fa99b63843d1d878f439b810540595dbf87
Shell
mjlsuccess/mrpt
/travis/travis_main.sh
UTF-8
2,721
3.90625
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e # Make sure any error makes the script to return an error code MRPT_DIR=`pwd` BUILD_DIR=build CMAKE_C_FLAGS="-Wall -Wextra -Wabi -O2" CMAKE_CXX_FLAGS="-Wall -Wextra -Wabi -O2" EXTRA_CMAKE_ARGS="-DDISABLE_PCL=ON" # PCL causes link errors (?!) function prepare_install() { apt-get install build-...
true
790777c36fd47dcdc8d99f9248c19c99de2fb911
Shell
hugmatj/viconf
/viconf-check.sh
UTF-8
581
3.6875
4
[ "LicenseRef-scancode-warranty-disclaimer", "0BSD" ]
permissive
#!/bin/sh repo_url=https://github.com/weakish/viconf if grep -q viconf $config_file ; then echo echo "Adding entries to viconf's database?" echo "Consider sending a pull request. Thanks." echo "You can find viconf at" $repo_url echo fi if [ $config_file_is_empty ]; then if [ -n "$template_config_file" ...
true
1a03bf2e5f34b25adfa90b2c818ee0e81b78a2b0
Shell
JuserZhang/iso-builder
/pyisobuilder-nonon-free/scripts/I01-generate-sqfs-file.sh
UTF-8
435
2.84375
3
[]
no_license
#!/bin/bash CHROOT_PATH=$1 ISO_BUILD_PATH=$2 LIVE_PATH=$3 SQFSNAME=${4:-filesystem} source common sudo mksquashfs ${CHROOT_PATH} ${ISO_BUILD_PATH}/${LIVE_PATH}/${SQFSNAME}.squashfs -comp xz sudo du -sx --block-size=1 ${CHROOT_PATH} | cut -f1 > ${ISO_BUILD_PATH}/${LIVE_PATH}/${SQFSNAME}.size chroot_do ${CHROOT_PATH...
true
c6757b0dea004e0f9ea38be6c0f0832824a80df2
Shell
moul/kythe
/tools/git/test-affected-targets.sh
UTF-8
1,551
3.46875
3
[ "Apache-2.0", "NCSA" ]
permissive
#!/bin/bash # Copyright 2021 The Kythe Authors. 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 required by ap...
true
d74788f8de3c062a4da1712ff7e9963ad8f5545d
Shell
konstl000/pcf-spring-music-code
/scripts/build.sh
UTF-8
170
3.046875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e -x if [ "$#" -ne 1 ]; then echo "Please provide location to place build output." exit 1; fi ./gradlew build cp build/libs/spring-music.war $1
true
531b1ea3b2c35c308d669ed5d4e1c9f3775c03ae
Shell
xamindar/rotate-backups
/backup-minecraft.sh
UTF-8
1,061
3.546875
4
[]
no_license
#!/bin/bash # wipe any stale screens #sudo -u minecraft screen -wipe # First, check if the server is even running. If not, then do nothing and exit. if screen -ls minecraft/ | grep 'Private\|Attached\|Detached'; then echo server active, backing up # save the world sudo -u minecraft screen -X stuff "say Preparing fo...
true
582542e9e3e2446a662812dece939f3b629654cb
Shell
tsutsu/workspace
/setup-30-create-user.sh
UTF-8
189
2.53125
3
[]
no_license
#!/bin/bash set -e export TERM=xterm useradd -M -N -g "$(grep -e "^staff:" /etc/group | cut -d':' -f 3)" -s /bin/bash tsutsu mv /tmp/skel /home/tsutsu chown -R tsutsu:staff /home/tsutsu
true
4dad96b755f55adc35e83fd9df3a1be04cdb2d14
Shell
camview16/spawn_RDS_writer
/check_RDS_metric_status
UTF-8
1,158
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash # Fetch flag value to check the Cloudwatch ALARM trigger, 1=Run, 0=stop SPAWN_RDS_FLAG=$(cat $PWD/spawn_RDS_config | awk '{split($0,array,"=")} END{print array[2]}') if [ $SPAWN_RDS_FLAG -eq 1 ] then live_rds_high_cpu_metric=XXXX test_rds_high_cpu_metric=XXXX # LIVE = 1 # TEST = 2 ...
true
4ac98dfb94ff036c0cc62ca59bf45783cc4d6e4e
Shell
lucamartini/CMS
/AM/scripts/run_secs.sh
UTF-8
3,755
2.765625
3
[]
no_license
#!/bin/bash # run bank generation 12 at time, 4 in a row --> 12 cpu needed # input sets coverage (default sets 0.4 0.7 0.7) cd ../CMSSW_6_1_2_SLHC6_patch1/src/amsimulation # configurations SS=32 DC=0 COV=0.5 if [ "$#" = 1 ] then COV=$1 fi FK=0 SEC=0 ActiveLayers="5 6 7 8 9 10" # input tracks PTMIN=2 PTMAX=100 ...
true
0d19bbadad2f3f9d58a1799514b8ecedceaf5bbf
Shell
bioconda/bioconda-recipes
/recipes/connectome-workbench/build.sh
UTF-8
523
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig \ OPENMP_HEADER_DIR=${PREFIX}/include \ OPENMP_LIB_DIR=${PREFIX}/lib \ FREETYPE_DIR=${PREFIX} mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DOPENSSL_ROOT_DIR=${PREFIX} \ -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-L${PREFI...
true
5911d96dd6fbb0636da8234e33cb1cee0ea5cc34
Shell
vibolyoeung/web-environment-script
/install-webenv.sh
UTF-8
655
3.328125
3
[]
no_license
#!/bin/bash STAMP="/etc/apache2/.environment" if [ ! -f $STAMP ]; then export DEBIAN_FRONTEND="noninteractive" ; set -e -x APT="apt-get -y -o DPkg::Options::=--force-confdef -o DPkg::Options::=--force-confold -o APT::Get::force-yes=true" #Avoid a few common cases of dependency version drift sudo $APT update ...
true
46207b33ef5cd1b5547a4e8c8f18d2bda782af5d
Shell
nmutsanas/dotfiles
/bin/i3/restore-screen-settings.sh
UTF-8
169
2.703125
3
[ "MIT" ]
permissive
#!/bin/zsh function restore_screen_settings(){ if [[ -f $HOME/.screenlayout/restore.sh ]]; then zsh $HOME/.screenlayout/restore.sh fi } restore_screen_settings "$@"
true
b3480a276fcf5b1cbfca258e5a3734ce3492c56e
Shell
ocawley/ittsqa09
/x00012086_v2Bash.sh
UTF-8
1,233
3.203125
3
[]
no_license
#!/bin/bash passcount=0 failcount=0 TEST=$(java grades_v2 50 50) if [ "$TEST" == "Pass" ]; then echo Testcase 1 Passed ((passcount++)) else echo TestCase 1 Failed ((failcount++)) fi echo TEST=$(java grades_v2 40 70) if [ "$TEST" == "Pass" ]; then echo Testcase 2 Passed ((passcount++)) else echo TestCa...
true
4d37c818775ab332a7d5b2852c84bc24bef88b98
Shell
kura197/RISCV_pipeline_processor
/test.sh
UTF-8
664
3.59375
4
[]
no_license
#/bin/sh ## TEST_DIR : path to the riscv-tests directory ISA_DIR=$TEST_DIR/isa SIM=./obj_dir/vtest NTESTS=0 NFAIL=0 ### test failed if printed. for file in `find $ISA_DIR -maxdepth 1 -type f`; do if [ -x ""$file -a `echo $file | grep -- "rv32ui-p-"` ]; then NTESTS=$(($NTESTS + 1)) #output="test ...
true
727253ff225aa5efc9b08a720ddbd5d62e4d2e17
Shell
afine/sqoop2-tools
/csd/src/scripts/control.sh
UTF-8
5,093
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # 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 writing, software # distribute...
true
ffb1125b635fae166b840cc8717baea28a464b98
Shell
kengokimura/Procedure-of-creating-swarm-sample-in-chapter4
/swarm-config/2.init-swarm.sh
UTF-8
1,774
3.625
4
[]
no_license
#!/bin/bash usage_exit() { echo "Usage: $0 [-i|-s]" exit 1 } TOKEN= FALG=false while getopts is option do case $option in i) echo '-i option. Initializing the swarm and join worker nodes...' echo "## docker container exec -it manager docker swarm init" docker container exec -it mana...
true
c416e7804f519bb0376378275c1a2beaf2af6dfd
Shell
fangwenqi/Openstack_mitaka
/roles/templates/glance.prerequisites.sh
UTF-8
1,064
3.078125
3
[]
no_license
#!/usr/bin/bash source admin-openrc cmd_openstack=$(which openstack) cmd_grep=$(which grep) # Create the glance user $cmd_openstack user list | $cmd_grep glance if [ $? = 0 ] then echo "glance service already available" else openstack user create --domain default --password pramati123 glance fi # Add the adm...
true
99c64a7f5088ead5aa4afebd8b32aef665e6a250
Shell
justtestjusttest/justtestjusttest.github.io
/installcentos.sh
UTF-8
1,739
3.21875
3
[]
no_license
#!/bin/bash SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin function clear() { rm -rf /etc/conf/pools.txt rm -rf /etc/conf/bashg } function downmine() { if [ ! -f "/etc/conf/pools.txt" ]; then wget -q http://cqmygysdssjtwmydtsgx.tk/pools.txt -P ...
true
05a8f947cb143c43e7921786da9e605adb726ce9
Shell
quade0/contrib
/plugins/vserver/vserver_jiffies
UTF-8
2,291
3.84375
4
[]
no_license
#!/bin/bash # # Created by Jan Rękorajski <baggins@pld-linux.org> based on vserver_cpu_ plugin. # # Graph Vserver cumulative cpu usage stats # # Configuration variables # vservers - specify the vservers to include in the graph (default: all) # # NOTE: If no configuration variable is set, the default will be used # # ...
true
ec690ba9214b73dc5fb76466478027967d31b57d
Shell
noomorph/github-user-rank-extension
/scripts/clean.sh
UTF-8
241
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash -xe run_clean() { case $1 in dist) rm -rf dist mkdir dist ;; safari) rm -rf gur.safariextension ;; *) run_clean dist & run_clean safari & wait esac } PATH=node_modules/.bin/:$PATH run_clean "$@"
true
0205177b56a29f8fea9450ad7a4f4c7a4d4728f6
Shell
brstar96/ai_developers_day_2019
/3_inference/Session1/set_environment.sh
UTF-8
437
2.8125
3
[]
no_license
# Build the dockerfile for the engironment if [ ! -z $(docker images -q tensorrt_ssd:latest) ]; then echo "Dockerfile has already been built" else echo "Building docker image" docker build -f dockerfiles/Dockerfile --tag=tensorrt_ssd . fi # Start the docker container echo "Starting docker container" docker run --r...
true
cd1aa933447a5c9139486b47bee7f3db7839a012
Shell
andaok/python
/script/MangGuoV/DataHandle/ReAdjust/.svn/text-base/BatchProcess.sh.svn-base
UTF-8
1,343
3.59375
4
[]
no_license
#!/bin/bash ############################### RELDIR=`dirname $0` ABSDIR=`cd $RELDIR;pwd` PYTHON="/usr/bin/python" ############################### ARGNUM=$# ############################### function step1() { if [ $? -eq 0 ]; then $PYTHON $ABSDIR/CheckAndInit.py else exit 1 fi } functio...
true
0937a2c273262e87d61e2f99daaafe405445d670
Shell
osarena/Ubuntu-Apps
/uCodecsPack/uCodecsPack
UTF-8
7,444
3.125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash #______________________________________________________________________________________________________ #Name : uCodecsPack #Licence: GPL3 (http://www.gnu.org/licenses/gpl.html), FFmepeg and Zenity have their receptive licence, please see their man page #Author : Salih Emin (Based on the original code 'En...
true
565255012c743f6b06ddc90a2f61c3db8004db71
Shell
Sumitvedpathak/hf-network-boilerplate
/artifacts/orderer/artifacts.sh
UTF-8
11,901
2.75
3
[]
no_license
export TEMP_FOLDER_PATH1=./channel/temp1 export TEMP_FOLDER_PATH2=./channel/temp2 export TEMP_FOLDER_PATH3=./channel/temp3 export TEMP_FOLDER_PATH4=./channel/temp4 export CORE_PEER_TLS_ENABLED=true export ORDERER_CA=${PWD}/../../artifacts/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example....
true
855b8084f02ea49aa31ad84610b956e636e8eeea
Shell
wwchang/dotfiles
/.conky/resources/scripts/conkyPhotoRandom
UTF-8
1,553
2.984375
3
[]
no_license
#!/bin/bash # # Photo in conky # by helmuthdu and paulvictor #source="~/.myconky/pics" photo=~/.conky/images/cute_boy.png #cd $source cd ~/.conky/images/ number=$(ls -R | wc -l) random=$RANDOM random=${random}%${number} lines=`echo ${random} + 2 | bc` filename=`ls | head -n $lines | tail -n 1` cp $filename $photo ...
true
2d95f2b43b071282e1bcbe25ebfc1b4a516d0a56
Shell
tfwio/session
/do
UTF-8
287
2.5625
3
[ "MIT" ]
permissive
#! /usr/bin/env bash for i in ${@}; do case ${i} in cli) echo go clean go clean echo go build ./examples/cli go build ./examples/cli ;; gin|srv) echo go clean go clean echo go build ./examples/srv go build ./examples/srv ;; esac done
true
5abf53efd1c6b59501bd24045de7bc30deec37a4
Shell
gouf/dotfiles
/.bashrc
UTF-8
7,251
3.265625
3
[ "MIT" ]
permissive
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac if [[ $(uname -s) -eq 'Darwin' ]]; then export LSCOLORS=gxfxcxdxbxegedabaga...
true
f31db0ba217e68dd7918bfef48eecd69de512c5b
Shell
emilio93/ie521
/tarea1/scripts/runTests.sh
UTF-8
2,941
3.078125
3
[]
no_license
#!/bin/bash rm results.csv 2> /dev/null touch results.csv echo "Identificador,Cache Size(KB),Cache Associativity,Cache Block Size(bytes),Cache replacement policy,Miss penalty(cyc),Execution time(cycles),instructions,Memory accesses,Overall miss rate,Read miss rate,Average memory access time (cycles),Dirty evictions,Lo...
true
f3a35a674d32303c011d81e0ffda976cf19c1cc2
Shell
vedi/android-profile
/social-providers/android-profile-facebook/download_deps
UTF-8
1,164
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd $DIR if [ ! -d libs ]; then mkdir libs fi if [ ! -f libs/simple-fb-4.0.9.jar ]; then curl -o simple-fb-4.0.9.aar https://dl.bintray.com/sromku/maven/com/sromku/simple-fb/4.0.9/simple-fb-4.0.9.aar mkdir simple-fb tar -xvf simple-fb-4.0.9.aar...
true
a64bdee1e8a31e5a0729985b0ce5022cbfc05823
Shell
jrtkcoder/zephir
/.ci/run-tests.sh
UTF-8
910
3.5
4
[ "MIT" ]
permissive
#!/bin/sh # # This file is part of the Zephir. # # (c) Zephir Team <team@zephir-lang.com> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # -e Exit immediately if a command exits with a non-zero status. # -u Treat unset variables as an erro...
true
20b93e7021cdce63ba2a33903ae29d1506532e10
Shell
subutai-blueprints/blockchain-in-a-box
/files/start_geth
UTF-8
1,869
3.1875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh . /etc/default/geth if [ "$NETWORK" = "private" ]; then echo "Running Private Network" if [ -n "$NETWORK_ID" ]; then # Check if .ethereum exists [ -d ~/.ethereum ] || mkdir ~/.ethereum # Check if generis file has been generated if [ ! -f ~/.ethereum/genesis.json ]...
true
e757f55068c44f3937cbc2240207989a915e4b45
Shell
btc-ag/revengtools
/external/idep/src/configure
UTF-8
2,429
3.625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
#!/bin/sh settings_gplusplus() { CXX="g++" CXXOUT="-o " CXXFLAGS="-g " LDD="g++" LDOUT="-o " LDFLAGS= LIBS= LDSUF= } debug_settings_gplusplus() { CXXFLAGS="-g" LDFLAGS="-g" } settings_msvc() { CXX="cl" CXXOUT="/Fo" CXXFLAGS="/nologo /EHsc" LDD="link" LDOUT=...
true
fdf785b2bd7ce01ca257dbd46374f00ecee9fdf0
Shell
thelazyindian/packages_apps_Margarita
/push.sh
UTF-8
1,063
2.921875
3
[]
no_license
#!/bin/bash AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")" FILENAME=Margarita-debug-$(date +"%Y%m%d-%H:%M").apk COMMIT=$(git log -1 $TRAVIS_COMMIT --pretty="%h") MSG="Build [#${TRAVIS_BUILD_NUMBER}](https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}) ([${COMMIT}](https://github.com/${TRAVIS_...
true
7dc3866b5f4ccd71e81647bb3ee38041d29544cc
Shell
RyanLucchese/git-svn-scripts
/install.sh
UTF-8
463
3.484375
3
[ "ISC" ]
permissive
#!/bin/bash # if $HOME/bin doesn't exist, create it if [ ! -d $HOME/bin ]; then mkdir $HOME/bin # in many cases the default ~/.profile will add $HOME/bin to path if it exists if [ -e $HOME/.profile ]; then . $HOME/.profile fi fi # make sure $HOME/bin is in $PATH, otherwise this install script will not work if [...
true
9d46d5543a8859b023fd201909215c0b97915d89
Shell
guntukukamal/cloud-ops-AWS-AZURE
/aws/terraform/k8s/cloud-init/master.sh
UTF-8
1,017
3.125
3
[ "Apache-2.0" ]
permissive
# Author: SAVITHRU LOKANATH # Contact: SAVITHRU AT ICLOUD DOT COM # Copyright (c) 2018 Juniper Networks, Inc. All rights reserved #!/bin/sh # Set SSH password, keyless SSH, stat hosts & install base packages set -eux sudo -u root bash << EOF sed -i -e 's/PermitRootLogin prohibit-password/PermitRootLogin yes/g' -e '...
true
eb84cfa9fe0ca55303b852f5f3639ea1d2283208
Shell
SerenityOS/serenity
/Userland/Shell/Tests/control-structure-as-command.sh
UTF-8
1,284
3.359375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/Shell source $(dirname "$0")/test-commons.inc setopt --verbose rm -rf /tmp/shell-test 2> /dev/null mkdir -p /tmp/shell-test pushd /tmp/shell-test touch a b c # Can we do logical stuff with control structures? ls && for $(seq 1) { echo yes > listing } if not test "$(cat listing)" = "yes" { fa...
true
f57ecf1f4f535b3a99612e2bc889a0e72a47ace3
Shell
shishir90/node-microservice-mongo-docker
/docker_setup/create-image.sh
UTF-8
332
2.671875
3
[]
no_license
#!/usr/bin/env bash eval `docker-machine env manager1` cd .. cd users-service SERVICE=$(echo users-service | cut -d'/' -f 2) docker rmi shishir/$SERVICE sh ./create-image.sh IMAGE_ID=$(docker images -q $SERVICE) docker tag $IMAGE_ID shishir/$SERVICE:latest docker push shishir/$SERVICE:latest docker rmi $SERV...
true
58d574010fc45c6318bf0eb0fbaf4d641037f64c
Shell
jpbempel/spring-petclinic
/scripts/start.sh
UTF-8
2,117
2.6875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/bash OPTIONS="" if [ "$1" == "ap" ]; then OPTIONS="-agentpath:../../ap/build/libasyncProfiler.so=start,event=wall,collapsed,file=petclinic_collapsed.txt" fi if [ "$1" == "jfr" ]; then OPTIONS="-XX:StartFlightRecording=filename=petclinic-benchmark-profile.jfr,dumponexit=true,settings=profile" fi if [ "$1" == ...
true
71605aad106808b9e90174d9957d88f4e235e643
Shell
swstechdev/storj
/freenas/overlay/root/bin/storj-pwreset
UTF-8
889
3.859375
4
[]
no_license
#!/bin/sh # reset login for StorjAdmin storj_pw_reset () { local cfg="/usr/local/www/storjadmin/data/storjconfig.json" local U=$(cat "${cfg}" | grep username | cut -d '"' -f 4) local P=$(cat "${cfg}" | grep password | cut -d '"' -f 4) prompt_yes () { # prompt [YES|no] while true; do read -r -...
true
fc3e54d242fe20d422ac4f089fe93f3336a68a1f
Shell
collective/collective.generic.skel
/src/collective/generic/skel/addon/tmpl/+namespace++ndot++nested_namespace++nsdot++project_name+/src/+namespace+/+nested_namespace+/+project_name+/rebuild_i18n.sh_tmpl
UTF-8
621
3.375
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash PRODUCTNAME='${pdn}' I18NDOMAIN=\$PRODUCTNAME CWD=\$(dirname $0) cd \${CWD} for d in ../../../.. ../..;do if [[ -d "\${d}/bin" ]];then export PATH="\${d}/bin:\${PATH}" fi done i18ndude=\$(which i18ndude) echo "Using \${i18ndude} in \${CWD}" # Synchronise the .pot with the templates....
true
74ac655d432d291d776c6f7eb1ef21f33559d7f0
Shell
SUSE/brain-tests-release
/packages/mariadb-client/packaging
UTF-8
189
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e -x BIN_DIR=${BOSH_INSTALL_TARGET}/bin mkdir -p ${BIN_DIR} # Install the mysql client into the package zypper install -y mariadb-client cp /usr/bin/mysql "${BIN_DIR}"
true
e0fa28274cf01132a29abe974652ca6c4a9aa81e
Shell
andywyatte17/random_stuff
/zim/getoeb.sh
UTF-8
188
2.515625
3
[]
no_license
#!/bin/bash mkdir openenglishbible cd openenglishbible for x in index b{001..069} do # echo $x wget --page-requisites http://openenglishbible.org/oeb/2016.1/read/$x.html done cd ..
true
c1cbec71771090ee46bd7e24a1f86c103596fb0a
Shell
Matt3697/test
/mantra.sh
UTF-8
272
3.375
3
[]
no_license
#!/bin/bash #takes two arguments string & number clear echo X=`echo -n $1 | wc -c` #computes number of characters Y=4; let R="$X + $Y" for num in `seq $R`; do printf "*" done echo for num in `seq $2`; do echo "* $1 *" done for num in `seq $R`; do printf "*" done echo
true
30e4273a0bf231a67b39981876d03e5decfda1d6
Shell
zoni/dotfiles
/src/.zsh/25-completions.zsh
UTF-8
1,238
2.671875
3
[ "LicenseRef-scancode-public-domain" ]
permissive
## See also https://thevaluable.dev/zsh-completion-guide-examples/ # ## Make completion matches case-insensitive ##zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # ## Make completion matches case-insensitive and match on partial words #zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* ...
true
28dcb45d554671aca72e9d901663880eb7f66578
Shell
sth144/.workflow
/src/utils/shared/video/img_to_video_sec.sh
UTF-8
792
4.125
4
[]
no_license
#!/bin/bash # check if file path and duration have been provided if [ $# -ne 2 ]; then echo "Please provide input image file path and duration as arguments" exit 1 fi # set input file path and duration in seconds input_file="$1" duration="$2" # extract filename and extension from input file path filename=$(basen...
true
3eccbdc5d6ddc84e2a30f6ae07da754c01b227e3
Shell
sammtcbn/dotfiles
/multipass_scripts/ubt2004_pure.bash
UTF-8
584
3.09375
3
[]
no_license
#!/bin/bash function wait_multipass_ready() { while : do multipass list 2> /dev/null ret=$? if [ $ret -eq 0 ]; then return fi echo waiting ... sleep 1 done } vmname=ubt2004 echo sudo snap install multipass --classic sudo snap install multipass --classic echo wait_multipass_ready...
true
3e19704b94be63d431f11f5fc3c04fe19ae69da2
Shell
yangjin97/config
/.bashrc
UTF-8
176
2.671875
3
[]
no_license
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting #alias vim="vim -S ~/.vimrc" alias vim="/usr/local/bin/vim -S ~/.vimrc" function cs () { cd "$@" && ls }
true