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
e15ae829da717783d292650395cbeb4e68b99a89
Shell
googleads/google-ads-ruby
/scripts/codegen.sh
UTF-8
850
2.59375
3
[ "Apache-2.0", "MPL-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-protobuf" ]
permissive
#!/bin/bash set -euxo pipefail rm -rf lib/google/ads/google_ads/factories mkdir -p lib/google/ads/google_ads/factories bundle exec ruby codegen/main.rb bundle exec standardrb --fix -- lib/google/ads/google_ads/factories/**/*.rb lib/google/ads/google_ads/factories.rb GEM_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >...
true
00e569caf6d4a9895b26b4d6a47bbc216d23188f
Shell
Shubham-Sahoo/Operating-System
/Assignment_1/1b.sh
UTF-8
293
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash mkdir 1.b.files.out FILES=$(ls 1.b.files/) FILES=(${FILES[@]}) touch 1.b.out.txt for FILE in ${FILES[@]} do det=$(sort -nr "1.b.files/$FILE") touch "1.b.files.out/$FILE" echo $det > "1.b.files.out/$FILE" echo $det >> 1.b.out.txt done sort -nr 1.b.out.txt > /dev/null
true
070e1ab434f54ec7abdf812b3d681ea86f3ed053
Shell
tamerlanST/rapi_test
/report/get_report_data.sh
UTF-8
1,884
2.625
3
[]
no_license
#!/bin/bash source ../lib.sh #report/update_report svc='report/update_report' params='{"n":"get_report_data","ct":"avl_unit","p":"{\"bind\":null}","tbl":[{"n":"unit_stats","l":"Статистика","f":0,"c":"","cl":"","p":"{\"address_format\":\"0_10_5\",\"time_format\":\"%E.%m.%Y_%H:%M:%S\",\"us_units\":0}","sch":{"y":0,"m"...
true
267b7e5c988ad579c859dffce712ee5ff33ab9b4
Shell
hy0kl/study
/shell/remote.sh
UTF-8
4,308
4.0625
4
[]
no_license
#!/bin/sh # Time-stamp: <2011-05-28 18:02:10 Saturday by taoshanwen> readonly PROGRAM_NAME="remote.sh" readonly PROGRAM_VERSION="1.0" bin=`dirname "$0"` bin=`cd "$bin"; pwd` echo $bin cat "$bin"/common.sh exit 0 . "$bin"/common.sh usage() { code=1 if [ $# -gt 0 ]; then code="$1" fi if [ "$...
true
ec3782f6b88e6d26bf72e8bc5fc1639f786bd706
Shell
Kukuster/howmanysquares
/containers/compile/ubuntu1804clang_debug/compile.sh
UTF-8
649
3.1875
3
[]
no_license
#!/bin/bash # for stability and compatibility reasons, # because it's the GraphicsMagick++-config command is what gives actual exact keys required for proper compilation of a C++ with Magick++ library, # and because output of this command substantially depends on the platform, # it was decided to calculate those keys b...
true
113e17ab8722bfe91247dffdb9c558e61a219138
Shell
pikju/api-umbrella
/templates/etc/perp/trafficserver/rc.main.etlua
UTF-8
1,242
3.40625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e -u # Redirect stderr to stdout exec 2>&1 umask "<%- config['umask'] %>" if [ "${1}" = "start" ]; then echo "starting ${2}..." api_umbrella_user="<%- config['user'] %>" api_umbrella_group="<%- config['group'] %>" run_args=("-e" "rc.env") if [ -n "$api_umbrella_user" ]; then r...
true
dd700385bb0536309e045d226f5dc13a5e4e32dd
Shell
skywind3000/vim
/tools/bin/fff
UTF-8
32,923
3.84375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # fff - fucking fast file-manager. get_os() { # Figure out the current operating system to set some specific variables. # '$OSTYPE' typically stores the name of the OS kernel. case $OSTYPE in # Mac OS X / macOS. darwin*) opener=open file_flags=b...
true
6647ad2ff6115241e957a00a2addf3803a8bf683
Shell
karouu/bash-script-learning
/Mad_Libs.sh
UTF-8
206
2.640625
3
[]
no_license
#!/usr/bin/env bash echo "pls enter a Noun then press Enter:" read noun echo "pls enter a Verb then press Enter:" read verb echo "pls enter a Adjective then press Enter:" read adj echo "$noun $verb $adj"
true
ba128405d5dd8c16d5861b6de0212a9a7377e513
Shell
ns-bak/tetracorder-tutorial
/src-local/specpr/manual.programmers.notes.html/convert.all.to.html
UTF-8
230
2.953125
3
[]
no_license
#!/bin/sh # Print commands on HP-UX. Roger N. Clark Feb 28. 2008 for i in \ Cover \ sec1 \ sec2 \ sec3 \ sec4 \ sec5 \ sec6 \ sec7 \ sec8 do echo "groff -t -e -T html $i > ${i}.html" groff -t -e -T html $i > ${i}.html done
true
80b07c802d843a778e302aa34d55736714704b9e
Shell
hariknair77/bash
/until.sh
UTF-8
70
2.640625
3
[]
no_license
#!/usr/bin/bash i=10 until [[ $i -lt 3 ]]; do echo $i let i-=1 done
true
52beef628be785e257f1da979798019235b37c83
Shell
i3wm/configFiles
/scripts/ubuntu-minimal/lubuntu.sh
UTF-8
5,602
3.125
3
[]
no_license
#!/bin/bash # Check if the internet connection connection was configured properly printf '\nDid you configure the internet connection properly by running both `nm-connection-editor` & `nm-applet`?\n' read -p 'Continue? (y/n): ' choice case "$choice" in y* | Y*) gtr=1;; *) exit;; esac # Release variable unset gtr u...
true
e901b4d0d57afed6da86eec258e778c9cdf53862
Shell
mcthoren/scripts
/patch_box
UTF-8
887
3.28125
3
[ "Unlicense" ]
permissive
#!/bin/sh # this is meant to be run from cron. # the idea here is: when i'm on vacation my OpenBSD boxes take care of themselves. # XXX todo: only restart daemons when necessary # until we figure out how to do that, just restart all the daemons # in case a crypto lib, the daemon itsself or sth important updated. ec...
true
3b9e774a78247f1c2dc58405b02f4e63e443d932
Shell
brunotikami/Configuration
/bashrc
UTF-8
790
2.765625
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' export EDITOR="vim" export LANG=zh_CN.UTF-8 complete -cf sudo export HISTSIZE="100" alias grep='grep --color=auto' alias cls='clear' alias ll='ls -l' alias trs='trs {=zh}' functio...
true
9fb826407e48b2b56e47e0c32f8578ddfa675835
Shell
didistars328/bash_scripting
/if.sh
UTF-8
1,843
2.921875
3
[]
no_license
#!/bin/bash RESTORE=$'\033[0m' RED=$'\033[00;31m' GREEN=$'\033[00;32m' YELLOW=$'\033[00;33m' BLUE=$'\033[00;34m' PURPLE=$'\033[00;35m' CYAN=$'\033[00;36m' LIGHTGRAY=$'\033[00;37m' LRED=$'\033[01;31m' LGREEN=$'\033[01;32m' LYELLOW=$'\033[01;33m' LBLUE=$'\033[01;34m' LPURPLE=$'\033[01;35m' LCYAN=$'\033[01;36m' WHITE=$...
true
a2f5082606feca3767352f8dc0b0bf964d10a116
Shell
Tobilan/data-diode
/transfer_data/scripts/create_serial_recv_startup_cron
UTF-8
1,114
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh echo "Adding cron entry to start Serial Receive on startup" echo "Starting cron" sudo crontab -l echo " " echo "Adding cron entry" # Initialize UART0 CTS/RTS echo "@reboot /opt/sierra/data_diode/transfer_data/scripts/gpio/gpio_set_UART0_flow_control.sh" > cron_serial_startup # Set GPIO 26 (Remote R...
true
8917f2b4bcf3786acfbf41de0a047ba293959cdf
Shell
mezarin/kabanero-operator
/contrib/get_operator_config.sh
UTF-8
685
3.625
4
[ "Apache-2.0", "BSD-2-Clause", "LGPL-2.1-or-later", "BSD-3-Clause", "GPL-1.0-or-later", "MPL-2.0" ]
permissive
#!/bin/bash set -Eeuox pipefail BASEURL=$1 DEST=$2 if [ -z ${BASEURL} ]; then echo "Usage: get_operator_config.sh [base url] [output filename]" exit -1 fi if [ -z ${DEST} ]; then echo "Usage: get_operator_config.sh [base url] [output filename]" exit -1 fi curl -f $BASEURL/operator.yaml -o operato...
true
e554d61669aee2922d6c98e773df7e20d22dfdb9
Shell
gnclmorais/formation
/slay
UTF-8
8,587
3.640625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash ############################################################################### # ERROR: Let the user know if the script fails ############################################################################### trap 'ret=$?; test $ret -ne 0 && printf "\n \e[31m\033[0m Formation failed \e[31m\033...
true
c8e80a0adafc6705c878d715d8f32e0cc97c3c8b
Shell
jphein/boxen
/usr/share/ltsp/screen.d/boxen/vncviewer
UTF-8
1,466
3.734375
4
[]
no_license
#!/bin/sh # # Screen script that launches vncviewer. Can be called from lts.conf # like this: # SCREEN_07="vncviewer -fullscreen server" # or like this: # SCREEN_07="vncviewer" # # Copyright (c) 2016 Jeffrey Hein <http://jphein.com> # # This software is licensed under the GNU General Public License version 2, # the...
true
c948a6369eb7056bd10b9cdc097329ca9e270b01
Shell
vaishnavisirsat/Assignment10Three
/flipCoinCombination3.sh
UTF-8
565
3.203125
3
[]
no_license
#!/bin/bash -x head=1 tail=0 HH=0 HT=0 TH=0 TT=0 for (( c=0 ; c<4 ; c++ )) do arr[0]=$(($RANDOM%2)) arr[1]=$(($RANDOM%2)) if (( ${arr[0]}==$head && ${arr[1]}==$head )) then HH=$(($HH+1)) elif (( ${arr[0]}==$head && ${arr[1]}==$tail )) then HT=$(($HT+1)) elif (( ${arr[0]}==$tail && ${arr[1]}==$head )...
true
8788df88116a24d6a926aa643d043f65c77b1b88
Shell
the-redback/contrib
/keepalived-vip/build/build.sh
UTF-8
1,435
3.3125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2015 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 applicable law ...
true
38104f8d1d96b372ab62cfb7a184c1a2195f3aba
Shell
lulugyf/cproj
/csf_sc/sh/cpsmake.sh
GB18030
11,075
3.171875
3
[]
no_license
##CPPļб FirstCppFile="" CppFileList="" ProgType="" #######builder bc bp server liupengc ####### #### get "sh cppcompile.sh bc_bp_server.cpp lib str" ### #### θ 1 , bc or bp or server name get_cps_lib() { my_date=`date +%Y%m%d%H%M%S` lib_result_file=$FirstCppFile"_"${my_date} sh cppcompile.sh $P...
true
9d5d5aadf4e0434c810c1ff98f20f2df239f4ca9
Shell
exrat/upload-mktorrent
/up.sh
UTF-8
5,699
3.640625
4
[]
no_license
#!/bin/bash # # Auteur ......... : ex_rat d'après le script d'Aerya | https://upandclear.org # https://upandclear.org/2016/09/29/script-simpliste-de-creation-de-torrent/ # Variables ...... : A définir ici et ne pas modifier la suite du script # User ruTorrent & URL d'annonce USER=exrat TRACKER="htt...
true
931904bd7cf4954b11dd9c1fbfc118d3dd55406f
Shell
dancor/dancomp
/old-bin/rrd
UTF-8
212
3.234375
3
[]
no_license
#!/bin/sh # run, sleep, notify, record if [[ $# -lt 2 ]] then echo 'usage: '"$0"' <secs> <command>'; exit; fi N="$1" shift C="$@" snt "$N" 'STOP '"$C" & PID=$! rrr "$@" ps "$PID" > /dev/null && kill "$PID" ;
true
5bab790257cb0328bd13cf2ad77d93379079333a
Shell
Bondzio/AUR
/gnome-shell-extension-window-buttons-git/PKGBUILD
UTF-8
2,253
3.0625
3
[]
no_license
# Maintainer: XZS <d dot f dot fischer at web dot de> # Contributor: Pi3R1k <pierrick.brun at gmail dot com> pkgname=gnome-shell-extension-window-buttons-git pkgver=10_e.g.o.r6.g9aad6a8 pkgrel=1 pkgdesc="Extension which puts minimize, maximize and close buttons in the top panel." arch=('any') url="https://github.com/da...
true
a5198587cbfb12fbf1fbe2cfd004c3f6c4476d59
Shell
JetBrains/teamcity-msbuild-logger
/tools/dotnet-sdk
UTF-8
847
4.15625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash function sdk_help(){ echo ".NET Command Line SDK Switcher (1.0.0) Usage: dotnet sdk [command] Usage: dotnet sdk [version] Commands: latest Swtiches to the latest .NET Core SDK version list Lists all installed .NET Core SDKs help Display help Versions: An installed version numb...
true
f31ecc836f7ae5679abe4bb3be4b7966ff2dd260
Shell
amm834/developement_env_setup
/dev_env_setup.sh
UTF-8
1,085
3.515625
4
[]
no_license
#!/usr/bin/env bash if [[ $(uname -m) != "aarch64" ]]; then echo -e "Your environment should be \e[32mAndroid (aarch64/arm64)\e[0m" exit 1 fi #remove motd file rm $PREFIX/etc/motd # install coreutils apt upgrade && apt update -y # install packages pkgs=("git" "wget" "zsh" "composer" "php" "apache" "php-apac...
true
50e44aa3eda43ed0627a9da88e74a1982b6c4d18
Shell
solderzzc/cloudrouter-1
/build/rpms/legacy/build-components.sh
UTF-8
1,981
4.125
4
[]
no_license
#!/usr/bin/env bash COMPONENTS_DIR=${COMPONENTS_DIR-./components} RPM_BUILD_SOURCES=$(rpmbuild --eval '%{_sourcedir}') RPM_BUILD_RPMS=$(rpmbuild --eval '%{_rpmdir}') RPM_BUILD_SRPMS=$(rpmbuild --eval '%{_srcrpmdir}') RPM_BUILD_OPTS=(--define="distribution $OS") function usage(){ echo "${BASH_SOURCE[0]} [-s|-h]" ...
true
003df111f7f0d97d70b592a68376c4c887792943
Shell
daiqian111/V4-panel
/config/diy.sh
UTF-8
391
3.1875
3
[]
no_license
#!/usr/bin/env bash #panel路径 PanelPath="/jd/panel" #判断panel文件夹是否存在,若不存在,复制/jd目录内 if [[ ! -d "$PanelPath" ]]; then echo "控制面板已和谐,重新拷贝面板目录..." cp -r /jd/config/panel /jd/ echo "启动控制面板挂载程序..." pm2 stop /jd/panel/server.js pm2 start /jd/panel/server.js else echo "控制面板还存在." fi
true
be4c3441309f848106049f03c922e25a1151d99b
Shell
Luoyadan/UCR-CS172-Project
/crawler.sh
UTF-8
229
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh if [ -z "$1" ]; then TWEETS=0 else TWEETS=$1 fi if [ -z "$2" ]; then mkdir -p data FILEPATH="data" else mkdir -p $2 FILEPATH=$2 fi echo "Writing twitter data to /$FILEPATH ..." python twitterGeo.py $TWEETS $FILEPATH
true
066f9d78b534e972cf443998119b3e8e11263adb
Shell
c3w/snapdragon
/html/ackall.cgi
UTF-8
175
2.859375
3
[]
no_license
#!/bin/sh TRAP_DIR="/data/snapdragon/traps" cd ${TRAP_DIR} for trap in *trap; do { mv -- ${trap} ${trap}.ack }; done echo "Location: http://ipncore.com/snapdragon/" echo
true
6209cf10696d65a212120691967813b659a5500f
Shell
phidra/discussion-testing-pbf2json
/test.sh
UTF-8
184
2.53125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -o errexit set -o nounset set -o pipefail root_dir="$(realpath "$(dirname "$0")" )" set -o xtrace "${root_dir}/_build/bin/converter" "${root_dir}/data/data.osm.pbf"
true
b17268a6a5469441de4c5e615118c51b8ca7249b
Shell
timkuel/2750-SPT-Projects
/project2/contact_one.sh
UTF-8
713
3.703125
4
[]
no_license
!/bin/bash ## Timothy Kuelker ## Uses grep to search a pattern inside of the here document ## Loops through continuously until user enters control + c x="" ##loop runs until a break command is entered while [[ true ]] do echo -e "\nEnter a regex to search the HERE document for, or hit CTR-C to exit" read x ##checki...
true
303b63858586061d37a7f19229e874267d3c4077
Shell
henryho1612/dotfiles
/.zshrc
UTF-8
5,894
2.9375
3
[]
no_license
# Path to your oh-my-zsh configuration. 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", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="jaischeema" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohm...
true
3e675521072a8173fa5030908a800b9c55f62a09
Shell
rimjhimroy/katacoda-scenarios-1
/azure-functions/azure-functions-java/set-env.sh
UTF-8
456
2.546875
3
[]
no_license
apt-get update yes | apt-get install ca-certificates curl apt-transport-https lsb-release gnupg curl -sL https://packages.microsoft.com/keys/microsoft.asc | \ gpg --dearmor | \ tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null AZ_REPO=$(lsb_release -cs) echo "deb [arch=amd64] https://packages.microso...
true
7b4cf477fd8356dede6c9b21f935537ed382b707
Shell
ammilam/mac-intro
/cleanup.sh
UTF-8
1,269
3.359375
3
[]
no_license
#! /bin/bash # this script is intended to clean up the resources created by the setup.sh terraform state pull > terraform.tfstate REGION=$(cat terraform.tfstate|jq -r '.outputs.location.value') REPO=$(cat terraform.tfstate|jq -r '.outputs.repo.value') TOKEN=$(cat token) USERNAME=$(cat terraform.tfstate|jq -r '.outputs....
true
d3d6532109e782fa30bdc9be1f55493fdc1bed8a
Shell
mjambon/blog
/src/dictionary/shrink-images
UTF-8
290
3.625
4
[]
no_license
#! /bin/bash # # Take the original images and reduce their size to as to make the web page # faster to load. # set -eu src_dir=img/orig dst_dir=img for src in "$src_dir"/*.jpg; do dst=$dst_dir/$(basename "$src") echo "resize $src -> $dst" convert "$src" -resize 500x500 "$dst" done
true
43d2db438fe87f565c32b63585711116d7c474b7
Shell
dds/dotfiles
/bin/restart-gpgagent
UTF-8
391
3.1875
3
[ "MIT" ]
permissive
#!/bin/sh [ -z "$GPG_KEY" ] && echo "Must set \$GPG_KEY environment variable" && exit 1 pkill -9 '(ssh-agent|gpg-agent)' for keystub in $(gpg --with-keygrip --list-secret-keys $GPG_KEY | grep Keygrip | awk '{print $3}'); do keyfile="${GNUPG_HOME:-$HOME/.gnupg}/private-keys-v1.d/$keystub.key" [ -w "$keyfile" ] &...
true
3ca40b86920bd7ee01bf9d2064ae38d96fcefd0d
Shell
hopefulp/sandbox
/pypbs/pbs_vasp_kisti_skl2.sh
UTF-8
694
2.984375
3
[]
no_license
#!/bin/sh #PBS -V #PBS -A vasp #PBS -q normal #PBS -l select=20:ncpus=40:mpiprocs=40:ompthreads=1 #PBS -l walltime=48:00:00 if [ -z $PBS_JOBNAME ]; then echo "Usage:: qsub -N dirname $SB/pypbs/pbs_vasp.sh" exit 1 fi log_dir=$PBS_O_WORKDIR jobname=$PBS_JOBNAME wdir=$jobname log_file=$log_dir/${PBS_JOBID}_$jobn...
true
8a2ff1ef138f3eaa4021788c70cb12034fb2fe8f
Shell
molleweide/dorothy
/commands/get-array
UTF-8
113
2.53125
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/usr/bin/env bash source "$DOROTHY/sources/strict.bash" size="$1" for (( i=0; i < size; i++ )); do echo done
true
598c06a029a4f2c5ef7ea8d6ad823532f4a55b91
Shell
ramanath16/devops
/shell-scripting/bashdirectorycheck.sh
UTF-8
177
3.640625
4
[]
no_license
#!/bin/bash directory=$1 #bash check if directory exists if [ -d $directory ]&& [ ! -z '$directory' ]; then echo "Directory exists!" else echo "directory does not exists!" fi
true
0bd1b8b1b57ed635c207fbc8ee18df087eda76b5
Shell
voltrevo/docker-workspace
/dw
UTF-8
1,059
4.15625
4
[]
no_license
#!/bin/bash -e trim() { local var="$*" # remove leading whitespace characters var="${var#"${var%%[![:space:]]*}"}" # remove trailing whitespace characters var="${var%"${var##*[![:space:]]}"}" echo -n "$var" } function dw_rm() { docker volume rm "dw-$1" >/dev/null } function dw_create() { docker ru...
true
6e83dde72a9e176b9e954306bd28cd31b7d1ce39
Shell
google/jsonnet
/test_suite/count_tests.sh
UTF-8
354
3.3125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash NUM_TESTS=0 NUM_FILES=0 for TEST in *.jsonnet ; do NUM_FILES=$((NUM_FILES + 1)) if [ -r "$TEST.golden" ] ; then NUM_TESTS=$((NUM_TESTS + 1)) else NUM_TESTS=$((NUM_TESTS + $(grep "std.assertEqual" $TEST | wc -l))) fi done echo "There are $NUM_TESTS individual tests ...
true
6d4a04bef8ccb10ef6e21cc058f58518a349aa72
Shell
pascalw/inlets-heroku
/inlets-client.sh
UTF-8
252
2.625
3
[]
no_license
#!/usr/bin/env sh APP_URL=$(heroku info -s | grep web_url | cut -d= -f2) echo "Connecting to $APP_URL...\n" inlets client \ --remote $(echo "$APP_URL" | sed 's/https:/wss:/' | sed 's/.$//') \ --token $(heroku config:get TOKEN) \ --upstream "$@"
true
d7a95c4bfee8ec749ccc925ce7ca33c7463d8fe0
Shell
southpolenator/SharpDebug
/dumps/download.sh
UTF-8
885
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash dumps_version="dumps_3" ARTIFACTS_USER='cidownload' ARTIFACTS_PASSWORD='AP6JaG9ToerxBc7gWP5LcU1CNpb' ARTIFACTS_URL="https://sharpdebug.jfrog.io/sharpdebug/api/storage/generic-local/$dumps_version/" command -v curl >/dev/null 2>&1 || { echo "Please install 'curl'." >&2; exit 1; } command -v unzip >/dev/null...
true
d7395f92c9cda51b16fae4d388a24b46c3b4d943
Shell
vaquarkhan/spark-dataframe-introduction
/src/bash/download-for-cluster.md
UTF-8
797
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Check wheather you have bsondump command or not if [ `which bsondump` == "" ]; then echo "WARN: You don't have bsondump command. You should install mongodbd." exit fi # Make a directory to store downloaded data mkdir -p /mnt/github-archive-data/ cd /mnt/github-archive-data/ # Download Github Archiv...
true
384090609a7104ed460db0f9865214c173e63287
Shell
JamieJQuinn/dotenv
/scripts/open_terminal
UTF-8
187
2.53125
3
[]
no_license
#!/usr/bin/env bash if wmctrl -l | grep xfce-main-terminal -q; then xfce4-terminal --tab --initial-title=xfce-main-terminal else xfce4-terminal --initial-title=xfce-main-terminal fi
true
b97407c9a618c74c70fa59c7076054ac2245438d
Shell
dudeofawesome/docker-minecraft-server
/src/servers/spigot/entrypoint.sh
UTF-8
1,469
3.71875
4
[ "MIT" ]
permissive
#!/usr/bin/env sh set -e if "$EULA"; then echo "eula=true" > /data/eula.txt else echo "Error: Minecraft server EULA needs to be accepted" echo "Set env var EULA to true to accept" exit 1 fi if [ ! "$MINECRAFT_VERSION" ]; then echo "You must set MINECRAFT_VERSION in env." echo "Specify a version of Minecr...
true
dcb663e5d250b360137b570fa71fa36609243ff3
Shell
SmartLyu/shell
/Get_path
UTF-8
241
3.1875
3
[]
no_license
#!/bin/bash # email: luyu151111@163.com path=${0%/*} echo $path | grep '^/' &>/dev/null if [ $? -ne 0 ];then path=$(echo $path | sed -r 's/.\/*//') path=$PWD/$path fi path=$(echo $path | sed -r 's/\/{2,}/\//') echo '脚本所在位置为'$path
true
f1453a284e355cbfe0c8250fc3b2e1869afed999
Shell
revuloj/revo-medioj
/araneujo-s/voko-sesio-sekretoj.ŝablono
UTF-8
915
3.171875
3
[]
no_license
#!/bin/bash #set -x secrets=$(docker secret ls --filter name=voko-sesio. -q) if [ ! -z "${secrets}" ]; then echo "# forigante malnovajn sekretojn voko-sesio.* ..." docker secret rm ${secrets} fi echo echo "# metante novajn sekretojn..." ftp_password=$(cat /dev/urandom | tr -dc A-Z_a-z-0-9 | head -c${1:-16}) ...
true
f702f06c28f53aeee361d0a7dc251db265e84255
Shell
RafaelAPB/blockchain-integration-framework
/weaver/tests/network-setups/fabric/shared/network2/fabric-ca/registerEnroll.sh
UTF-8
15,262
2.875
3
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
function createOrg1 { NW_CFG_PATH="$1" CA_PORT="$2" echo "NW_CFG_PATH = $NW_CFG_PATH" echo "Enroll the CA admin" echo mkdir -p $NW_CFG_PATH/peerOrganizations/org1.network2.com/ export FABRIC_CA_CLIENT_HOME=$NW_CFG_PATH/peerOrganizations/org1.network2.com/ # rm -rf $FABRIC_CA_CLIENT_HOME/fabric-ca-client...
true
fd0b506ba5c40c8cf3ce31af8770f1acc9ace149
Shell
Monet-Network/monetd
/e2e/tests/evictiontest/run-test.sh
UTF-8
653
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash set -eu mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" NET=${1:-"evictiontest"} PORT=${2:-8080} CONFIG_DIR="$HOME/.giverny/networks/$NET/" KEY_DIR="$HOME/.giverny/networks/$NET/keystore/" PWD_FILE="$mydir/../../networks/pwd.txt" # The network starts with two nodes, A and B, both ...
true
04aa877e93da1ba16fe29187fff1b3145c78a486
Shell
daeyun/Nebula
/scripts/dev-run.sh
UTF-8
468
2.65625
3
[]
no_license
#!/bin/sh SCRIPT_DIR=`dirname $0` source "$SCRIPT_DIR/config.sh" cd $SERVICE_ROOT ./sbt one-jar cd - MAIN_JAR=$SERVICE_ROOT"target/scala-2.10/nebula_2.10-*-one-jar.jar" chmod 755 $MAIN_JAR java -server -Xmx10240m -jar $MAIN_JAR \ -admin.port=':9990' \ -service.port='42001' \ -graph.path='/resources/neb...
true
bd7380719e5c31351189eb34bf49f00beeefc4f7
Shell
mehdibehroozi/hcp-diffusion-dcm
/sumGlobal.sh
UTF-8
640
3.15625
3
[ "MIT" ]
permissive
## Get streamline count for track types dir_results=/projects/ap66/uqjmcfad/HCP_SubcorticalRoute/Results/Global for tcktype in SC-PUL PUL-AMY; do cd ${dir_results}/endsonly/${tcktype} rm -rf ${dir_results}/${tcktype}/count_* for i in *.tck; do filename=$(basename ${i} .tck) count=$(tckinfo ${i} | sed '3!d' | gr...
true
ba2c63174d9bb811cb37d7166b76fcbe9d295855
Shell
msiatczy/ksh_examples
/sybaseenv/scripts/findNondefaultConfigs.scr
UTF-8
4,545
3.59375
4
[]
no_license
#!/bin/ksh #-------------------------------------------------------------------------- # Usage: findNondefaultConfigs.scr -S <DBSERVER>|all # # Description: Look for logins which do not have access to their default database # # Location: Full directory path for location of script. If there is a # master c...
true
23c3237bb1466dfff8f3a10523a69f194d517126
Shell
adriananeci/k8s-the-hard-way
/c.local_vagrant_kubeadm/scripts_kubeadm_local/07_k8s_cni.sh
UTF-8
1,331
3.203125
3
[]
no_license
#!/usr/bin/env bash config_separator=":" if [[ ${os} == "windows" ]] then config_separator=";" fi export KUBECONFIG="~/.kube/config${config_separator}./kubeconfig" kubectl config view --flatten > ~/.kube/config kubectl config use-context 'kubernetes-admin@kubernetes' nc_command="nc" command -v ${nc_command} >/d...
true
6984f9d1b2e336123848ef1608a73356d5312941
Shell
cwida/fsst
/paper/evolution.sh
UTF-8
4,212
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash # output format: STCB CCB CR # STCB: symbol table construction cost in cycles-per-compressed byte (constructing a new ST per 8MB text) # CCB: compression speed cycles-per-compressed byte # CR: compression (=size reduction) factor achieved (for i in dbtext/*; do (./cw-strncmp $i 2>&1) | awk '{ l++; if (...
true
79f06fac2c6e95e6cba4dd647c3ee7d2ca51d584
Shell
BrianElugan99/datawave-muchos
/scripts/dw-play-redeploy.sh
UTF-8
399
2.8125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # This script is intended only to simplify your interaction with datawave.yml playbook # for the purpose of forcing a rebuild and redeploy of datawave on your cluster. # Note that any script arguments are passed thru to Ansible directly. readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" ...
true
53ea3ad23aa392db83ee78f188e47a7c37b1c222
Shell
cr3/dotfiles
/bin/screen-attach
UTF-8
771
3.640625
4
[]
no_license
#!/bin/sh # -U option basically means "terminal does not have UTF-8 support" if test "$1" == "-U"; then unset LC_CTYPE fi # Bring in my ssh-agent, so screen will have it available in all windows. keychain --nocolor --quiet ~/.ssh/id_rsa . ~/.keychain/`hostname`-sh # Not a standard environment variable, but I need ...
true
ccd421791386465e3ac78d2e5e14e3fe656ee882
Shell
RATDistributedSystems/workload-generator
/create-conf.sh
UTF-8
226
3.21875
3
[]
no_license
#!/bin/bash str="" for i in $(echo $PARAM_WEBSERVER_ADDR | tr "," "\n"); do str="server $i:$PARAM_WEBSERVER_PORT;\n\t\t$str" done FILENAME=$1 sed -i "s/#PARAM_SERVER_CONFIG#/${str}/g" $FILENAME /etc/init.d/nginx restart
true
5ede00c8529762bd1ff8cfc1b91d9eaaffdca052
Shell
khollbach/config-files
/.config/bash/prompt
UTF-8
1,889
4.15625
4
[]
no_license
#!/bin/bash PROMPT_COMMAND=prompt_command #prompt_contents='\u@\h:\w' prompt_contents='\w' prompt_color=9 # Different prompt color, to tell my machines apart. regex='^khollbach-96.*$' if [[ $(hostname) =~ $regex ]]; then prompt_color=14 fi unset regex # This sets the prompt, $PS1. # # It automatically re-runs e...
true
4ad865789c0820c5e6bee9c3e54ffca59e4a74f4
Shell
eumel8/otc_ims
/tests/test.sh
UTF-8
658
2.5625
3
[]
no_license
#!/bin/sh # Prerequisites: # Cloud API Credentials # image disk on OBS ansible011:bionic-server-cloudimg-amd64.vmdk echo "SCENARIO 1: create image" ansible-playbook test.yml -e "image_name=ansible-image01 image_url=ansible011:bionic-server-cloudimg-amd64.vmdk image_min_disk=12 localaction=create waitfor=true" || exit ...
true
e136f5e5689a642113cfb69b3e91b5aa4f01b5cc
Shell
vonLeebpl/WotExplorer
/.provision/scripts/php.sh
UTF-8
3,614
2.953125
3
[]
no_license
#!/usr/bin/env bash export LANG=C.UTF-8 PHP_TIMEZONE=$1 HHVM=$2 PHP_VERSION=$3 if [[ $HHVM == "true" ]]; then echo ">>> Installing HHVM" # Get key and add to sources wget --quiet -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee...
true
1f6043355d57e6cfa4daf515ac047b9f8471de91
Shell
fervitor/Atividades_Shell
/Lista_1/4.sh
UTF-8
259
2.515625
3
[]
no_license
#!/bin/bash d1=1 d2=2 d3=3 echo -e"OS DIRETORIOS SERÂO ENCAMINHADOS PARA O ARQUIVO que_lista_linda.txt NA PASTA TMP" echo -e $(ls $d1) >> /tmp/que_lista_linda.txt echo -e $(ls $d2) >> /tmp/que_lista_linda.txt echo -e $(ls $d3) >> /tmp/que_lista_linda.txt
true
3479bc496449c96242a6aae1f3dded37f4a5a3cd
Shell
davidddw/imageBuilder
/debian_8.x_kvm_livecloud/scripts/base.sh
UTF-8
1,058
2.65625
3
[ "Apache-2.0" ]
permissive
cat <<'EOF' > /etc/apt/sources.list deb http://ftp.cn.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.cn.debian.org/debian/ jessie main contrib non-free deb http://ftp.cn.debian.org/debian-security/ jessie/updates main deb-src http://ftp.cn.debian.org/debian-security/ jessie/updates main EOF apt-get ...
true
fa94b014f01698727a09304e023d87a67a13f97e
Shell
skobba/fdk-tools
/search-and-replace/fdk-rename.sh
UTF-8
428
3.578125
4
[]
no_license
#!/bin/bash path=~/github_brreg/fdk/applications replace_list=./fdk-rename-list.txt file_type="*.jsx" IFS=$'\n' # make newlines the only separator set -f # disable globbing for i in $(cat < "$replace_list"); do IFS=' ' read -ra VALUES <<< "$i" #Convert string to array #echo Old: ${VALUES[0]...
true
9d56b60b4175ad1df7ddef5416b6e9dc379403c4
Shell
son-link/ejemplos-dialogos-bash
/sino_dialog.sh
UTF-8
246
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash # Ejemplo de Si/No dialog --title "Pregunta" --yesno "¿Quiere continuar con la operación?" 0 0 if [ $? = 0 ]; then dialog --title "Si" --msgbox "Vamos a continuar" 0 0; else dialog --title "No" --msgbox "Hasta luego" 0 0; fi clear
true
f23ec53b0042ce374f06083ca569f90ddc5c34f1
Shell
SBU-BMI/quip_prad_cancer_detection
/prediction_3classes/other/start_color.sh
UTF-8
811
2.515625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash source ../conf/variables.sh cd color nohup bash color_stats.sh ${PATCH_PATH} 0 8 &> ${LOG_OUTPUT_FOLDER}/log.color_stats_0.txt & nohup bash color_stats.sh ${PATCH_PATH} 1 8 &> ${LOG_OUTPUT_FOLDER}/log.color_stats_1.txt & nohup bash color_stats.sh ${PATCH_PATH} 2 8 &> ${LOG_OUTPUT_FOLDER}/log.color_stats_2...
true
5e06586e3b8186a7487a182cf1268de082c86b9a
Shell
tuksik/ubuntu-cookbooks
/cookbooks/go-server/recipes/install.bash
UTF-8
1,315
3.90625
4
[ "MIT" ]
permissive
#!/bin/bash function installDependencies() { apt-get update apt-get install -y default-jre-headless } function install() { # Install local serverPackageFile="$(getTemporaryFile "$(getFileExtension "${serverDownloadURL}")")" local agentPackageFile="$(getTemporaryFile "$(getFileExtension "${agentD...
true
9747c8404bc0530f65a5977ac32eef6674c0d0fc
Shell
pombase/fypo
/comprehensive_diff/make_comprehensive_diff.sh
UTF-8
1,017
3.28125
3
[ "CC-BY-4.0" ]
permissive
#!/bin/sh # Wrapper script for docker. # # We map this folder to a docker volume # IMAGE=${IMAGE:-odkfull} ODK_JAVA_OPTS=-Xmx16G ODK_DEBUG=${ODK_DEBUG:-no} TIMECMD= if [ x$ODK_DEBUG = xyes ]; then echo "Running ${IMAGE} with ${ODK_JAVA_OPTS} of memory for ROBOT and Java-based pipeline steps." TIMECMD="/usr/bi...
true
3b67fc2aa8c121486fd0c7d419cb229b2a6a799e
Shell
convox/convox
/examples/httpd/scripts/mariadb_check.sh
UTF-8
873
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex -o pipefail dburl=$MARIA_URL if [ $1 == "mysql" ]; then dburl=$MYSQL_URL fi proto="$(echo $dburl | grep :// | sed -e's,^\(.*://\).*,\1,g')" # remove the protocol url="$(echo ${dburl/$proto/})" # extract the user (if any) userpass="$(echo $url | grep @ | cut -d@ -f1)" pass="$(echo $userpass | gre...
true
1abbfc02d74fd8c3de29f6ad2ff0331fac240c96
Shell
brownman/SHELL_STEPS
/BANK/round_up.sh
UTF-8
439
3.3125
3
[]
no_license
round_up(){ #depend_cmd: notify-send #echo "`whoami`:$@" >> $file_log count=`cat $file_count` re='^[0-9]+$' if ! [[ $count =~ $re ]] ; then echo "error: Not a number" >&2; rm $file_count; exit 1 fi let 'count += 1' echo "$count" > $file_count notify-send "round" "X $count" } set_env(){ file_count=$dir_...
true
a432840a20b6685035ce18fff84a2e6e8ab53e9b
Shell
oeg-upm/gtfs-bench
/generation/resources/csvs/distribution.sh
UTF-8
820
3
3
[ "Apache-2.0" ]
permissive
declare -a arr=("AGENCY.csv" "TRIPS.csv" "CALENDAR.csv" "FEED_INFO.csv" "FREQUENCIES.csv" "CALENDAR_DATES.csv" "ROUTES.csv" "STOPS.csv" "STOP_TIMES.csv" "SHAPES.csv") #Move cwd to here if needed if [ ! -z "$2" ] then cd $2 fi unzip $1.zip -d $1 cd $1 for j in "${arr[@]}" do NAME=`basename $j .csv` csvjson $j ...
true
1bb0a7ac1ab9c05ca257645bf8c2ea7f7ba8d896
Shell
NicoPampe/dotFiles
/lock
UTF-8
150
2.59375
3
[]
no_license
#!/bin/bash cd ~/.i3/Pictures/ declare -a arr=(*.png) RANGE=${#arr[@]} index=$RANDOM let "index %= $RANGE" i3lock -i ~/.i3/Pictures/${arr[$index]}
true
5db381b8f460b9689e5a38e57384da7a7800b25a
Shell
viewstools/morph
/release.sh
UTF-8
164
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash set -e VERSION=`npm version $1` echo $VERSION git commit -am "chore: $VERSION" git tag $VERSION git push git push --tags echo "Now run: npm publish"
true
54e97e8c8820a7b233e4ac8d31e6b5c12bbc75c7
Shell
contours/corenlp
/add-doc-ids.sh
UTF-8
230
3.4375
3
[]
no_license
#! /bin/sh for filepath do filename=$(basename $filepath) docid=${filename%.txt} outfile=${filepath/%txt/xml} echo "<doc id=\"$docid\">" > $outfile cat $filepath >> $outfile echo "</doc>" >> $outfile done
true
6e571985cef9a1f6e5fa20a5e04a346f9b8e1989
Shell
lboecker/dotfiles
/bashrc
UTF-8
1,982
3.5
4
[ "ISC" ]
permissive
#!/bin/bash stty -ixon -ixoff shopt -s checkwinsize shopt -s histappend PROMPT_COMMAND=prompt_command HISTSIZE=100000 HISTCONTROL=ignoreboth export VISUAL=vim export PAGER=less if command -v gpg > /dev/null 2>&1; then # shellcheck disable=SC2155 export GPG_TTY=$(tty) fi alias grep='grep --color=auto' if ls ...
true
a85d2097fab8fa7c0f7dd7dbb09ddb13c534fe40
Shell
sasye93/containerization-samples
/target/scala-2.12/containerize/build_20191114_114205/compose/swarm-init.sh
UTF-8
5,099
2.71875
3
[]
no_license
#!/bin/sh (docker node ls | grep "Leader") > /dev/null 2>&1 if [ $? -ne 0 ]; then docker swarm init --advertise-addr eth0 fi SKIP_NET_INIT=0 docker network inspect timeservice > /dev/null 2>&1 if [ $? -eq 0 ]; then docker network rm timeservice > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Could not remove net...
true
ddaa2ae594b0b96cf787ed0471e55aba0b024f5f
Shell
makiolo/npm-mas-mas
/cmaki_scripts/ci.sh
UTF-8
707
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash set -e export NPP_CACHE="${NPP_CACHE:-FALSE}" env | sort if [[ -d "bin" ]]; then rm -Rf bin fi if [[ -d "artifacts" ]]; then rm -Rf artifacts fi if [[ -d "node_modules" ]]; then rm -Rf node_modules fi if [ -f "artifacts.json" ]; then rm artifacts.json fi if [ -f "package.json" ]; then echo [1/2...
true
b8f6d2aaa68dc0608c2b62f64250460c3dec06b4
Shell
saeidzebardast/dotfiles
/.bashrc
UTF-8
617
3.015625
3
[]
no_license
source ~/.exports # append to the history file, don't overwrite it shopt -s histappend # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color) color_...
true
ee0823dd749bfc6fce361239e84b29acf95a8855
Shell
alejandro1395/GenPhenprimates
/Quality_resequenced/Check_premature_STOP_codon/CountStopCodons_JA.sh
UTF-8
1,565
2.890625
3
[]
no_license
#!/bin/bash #SBATCH --array=1-15995 #SBATCH --job-name=CountStop #SBATCH --output=/dev/null #SBATCH --error=/dev/null #SBATCH --time=06:00:00 #Define modules module purge module unload gcc/4.9.3-gold module load gcc/6.3.0 module load PYTHON/3.6.3 module load EMBOSS #Define PATH argument SPECIES_IDs=/scratch/devel/ava...
true
e3350f68356c3caa9d6b2519475875924c43763e
Shell
jordanblakey/shell-scripting
/loops.sh
UTF-8
639
3.484375
3
[]
no_license
#!/bin/bash # WHILE LOOPS num=1 while [ $num -le 10 ]; do echo $num num=$((num + 1)) # Need $ for assignment done num=1 while [ $num -le 20 ]; do # Not sure why need $num for this conditional but not on the next line. if (( ((num % 2)) == 0 )); then num=$((num + 1)) continue fi if ((num >= 15)); ...
true
d670529c2592edf573e7af848f685d67e566a0fb
Shell
unicefuganda/ureport
/ci-start-server.sh
UTF-8
1,143
3.53125
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash SETTINGS_FILE=$1 if [[ -z "${SETTINGS_FILE}" ]]; then echo -e "\nERROR: You must pass in a settings file to run with, e.g. 'ci_settings'\n" exit -1 fi echo "Ensure you have uwsgi installed (brew install uwsgi)" VIRTUALENV_ACTIVATE="${UREPORT_VIRTUAL_ENV_HOME}/bin/activate" cd ureport_project e...
true
74ec2ff208a169ab0099577f388d3df49c09bf7f
Shell
nedbat/dot
/.config/shellrc/open.sh
UTF-8
85
2.875
3
[]
no_license
if command -v xdg-open >/dev/null; then open() { xdg-open "$@" } fi
true
88a5c29b6582304ba04a19a2c8ffe45238b00192
Shell
MartinBasti/actions
/markdownlint/action.sh
UTF-8
135
2.671875
3
[]
no_license
#!/usr/bin/env bash cd "$GITHUB_WORKSPACE" || exit 1 declare exitstatus exitstatus=0 mdl -g . || exitstatus=$? exit "$exitstatus"
true
091471c7b44f0cc503e5cf61f12dc4458e6d2f53
Shell
pgoultiaev/nomad-demo
/vagrant_build.sh
UTF-8
1,140
2.609375
3
[]
no_license
export DEBIAN_FRONTEND=noninteractive sudo apt-get update sudo apt-get -qq install apt-transport-https ca-certificates sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D echo "deb https://apt.dockerproject.org/repo debian-jessie main" | sudo tee /etc/a...
true
f846ddd42985251c0d60d62b4f7e2338d4e9b30c
Shell
hpcc-docker-kubernetes/HPCC-Docker-Ansible
/hpcc-tools/mon_ips.sh
UTF-8
3,149
3.859375
4
[]
no_license
#!/bin/bash SCRIPT_DIR=$(dirname $0) function usage() { cat <<EOF Usage: $(basename $0) EOF exit 1 } function collect_ips() { if [ -z "$1" ] || [ "$1" != "-x" ] then trials=3 while [ $trials -gt 0 ] do ${SCRIPT_DIR}/get_ips.sh ${SCRIPT_DIR}/get_ips.py -i $ips_dir -l $lbs_...
true
5a1c102b37fb9cf8ef0bfc9885f7afcd4f48eebb
Shell
crazyguy106/cfclinux
/steven/network_research/exercises/day1/script_improved.sh
UTF-8
2,105
4.1875
4
[]
no_license
#!/bin/bash # Get ip from user IP=$1 if [ -z "$IP" ] then echo "Please enter an IP address as an argument" exit fi # Check if SSH is open nmap $IP -p 22 -oG nmap_info.scan if [ -z "$(cat nmap_info.scan | grep 22 | grep open)" ] then echo "[!] Port is closed on $IP, please try again with a new IP" exit fi # Che...
true
163c64487c3d697488a9ad2067d70ef95077d932
Shell
Nabarun21/Anomaly-Detection-for-ECAL-DQM
/semi_supervised_learning/test/run29.sh
UTF-8
1,727
2.875
3
[]
no_license
#!/bin/bash ##$ -pe smp 24 # 24 cores and 4 GPUs per machine # so ask for 4 cores to get one GPU #$ -M ndev@nd.edu #$ -m abe #$ -q gpu # Specify queue #$ -l hostname="qa-1080ti-004" # This job is just going to use one GPU card #$ -N choose_loss ...
true
024f1463ebcbf30a17061e9957034f0b9f24f67f
Shell
krishnakumarkp/sdk_generator
/git_push.sh
UTF-8
1,801
4.21875
4
[]
no_license
#!/bin/sh SCRIPT="$0" echo "# START SCRIPT: $SCRIPT" echo_usage() { echo "Usage: $0 -s swagger_version" echo "" echo "-s swagger_version the tag of the swagger file in git repo" echo "-h print help" } SWAGGER_VERSION= while getopts :s:c:h opt; do case $opt in s) SWAGGER_VERSION=$OPTARG ;; h) ...
true
e8e21a0bf82035aaf96b083cf0d86f26e1d8cb98
Shell
jmchatman/BASH
/bash_tutorial/ch_09/reply.sh
UTF-8
286
2.78125
3
[]
no_license
#!/bin/bash #reply.sh echo echo -n "What is your favorite vegtable?" read echo "Your favorite vegtable is $REPLY." echo echo -n "What is your favorite fruit?" read fruit echo "Your favorite fruit is $fruit." echo "but..." echo "Value of \$REPLY is is still $REPLY." echo exit 0
true
2f2a4e38da403e2770f266564ffe579d7c2590f1
Shell
calestar/my-config
/bin/serve_doc
UTF-8
458
3.671875
4
[]
no_license
#!/bin/bash if [ ! $# = 1 ]; then echo "Expecting exactly one argument: the path (or file) to serve" exit fi if [ -d $1 ]; then directory=$1 else directory=$(dirname $1) fi directory=$(realpath $directory) echo "Serving $directory, will be hosted on:" echo $DOCKER_HOST | sed -e 's![^/]*//\([^:]*\).*!http://...
true
88d63e6630259e254bb98ed4924023642c175b4a
Shell
iagoleal/dotfiles
/.bin/searcher
UTF-8
381
3.46875
3
[]
no_license
#!/bin/sh FOLDER="$(realpath "$1")" finder() { fzf-ueberzogen.sh --prompt="β " --scheme=path --info=inline --no-multi --preview 'fzf-preview.sh {}' } spawn() { herbstclient spawn xdg-open "$@" } item=$(cd $FOLDER && rg --files | sed "s:^\./::g" | finder) exit_code=$? item_path="$FOLDER/$item" if [ $exit_code ==...
true
e46292fffc4772845ef6ae794221f0b9c7471b07
Shell
sspeng/HTMBench
/benchmark/memcached-set/memcached/compile.sh
UTF-8
726
3.046875
3
[]
no_license
#!/bin/bash set -x CURRENT=$(pwd) TM_LIB=${TSX_ROOT}/lib/rtm chmod u+x configure if [ "$1" == "origin" ]; then ./configure --prefix=$CURRENT/build_origin sed -i 's/-O2/-O3/g' Makefile make clean make -j && make install mv memcached build_origin/ fi if [ "$1" == "rtm" ]; then ./configure --prefix=$CURRENT/buil...
true
38269670b0f8c7dbaf705b2fb93d122260649923
Shell
kmhofmann/selene
/.azure-pipelines/ubuntu-18.04_install_vcpkg_deps.sh
UTF-8
501
2.953125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash vcpkg_base_dir=$1 shift vcpkg_libraries=$@ echo "vcpkg_base_dir=${vcpkg_base_dir}" echo "vcpkg_libraries=${vcpkg_libraries}" echo "CC=${CC}" echo "CXX=${CXX}" echo "CXXFLAGS=${CXXFLAGS}" echo "LDFLAGS=${LDFLAGS}" CC=gcc-8 CXX=g++-8 CXXFLAGS="" LDFLAGS="" ${vcpkg_base_dir}/vcpkg/bootstrap-vcpkg.sh...
true
96dc83b80086cf4e47c01111af85b869cfdb1c2c
Shell
HongboTang/Dpseudoobscura_LinkedSelection
/Scripts_AlignmentAndSNPCalling/step5_initialvariants.sh
UTF-8
586
2.90625
3
[]
no_license
#!/bin/bash #SBATCH --mem=100GB cd /datacommons/noor2/klk37/BackgroundSelection/BAMS_forGATK PATH=/datacommons/noor/klk37/java/jdk1.8.0_144/bin:$PATH export PATH #Create initial variant calls #ulimit -c unlimited FILES=*.bam for BAM in $FILES do ID="$(echo ${BAM} | awk -F'[.]' '{print $1}')" echo "calling variant...
true
838466bafcedc8f81f63424ed04500e1dd829405
Shell
RNNPredict/LSTM-MXNet-
/production/submit-job.sh
UTF-8
1,891
3.296875
3
[]
no_license
#!/bin/sh WKDIR=$(pwd) if [ ! -d "${WKDIR}/.git" ]; then echo 'This script must be executed on local git repository root dir.' 1>&2 exit 1 fi if [ -z "$JOB_QUEUE_NAME" ]; then echo "Missing environment variable 'JOB_QUEUE_NAME'." 1>&2 exit 1 fi if [ -z "$JOB_DEFINITION_NAME" ]; then echo "Missing environment...
true
d39ba110c14b9f4586aea5918495b7b40c29ce1f
Shell
mikalv/mkinitcpio-ykfde
/install/ykfde
UTF-8
352
2.6875
3
[]
no_license
#!/bin/sh build() { add_binary /usr/lib/udev/ykfde add_file /usr/lib/initcpio/udev/20-ykfde.rules /usr/lib/udev/rules.d/20-ykfde.rules add_file /etc/ykfde.conf add_file /etc/ykfde-challenge / add_module 'usbhid' } help() { echo "This hook adds support for opening LUKS devices with Yubico key." echo "Please use...
true
bd3bc1d20a0551a27d1dcb9350bf4d655c926b3a
Shell
lukakerr/dotfiles
/bin/git_ssh.sh
UTF-8
1,124
4.3125
4
[]
no_license
# Change all git repository remote urls to ssh # After the first run, there should be no output # if ran again (and no new git repos are created). # This means all remote origins have been updated function set_url() { echo "Updating remote to: " git@github.com:$1/$2.git git remote set-url origin git@github.com:$1...
true
55a180eefb6c03b2f94824685a86c936cbcd56c4
Shell
chuckxyu/docker-cent6-mrtg
/set.sh
UTF-8
543
2.71875
3
[]
no_license
#!/bin/bash sleep 2 IP=$(ip addr list eth0 | grep "inet " | cut -d' ' -f6 | cut -d/ -f1) echo "ip address = $IP" sed -ri "s/%%IPADDRESS%%/$IP/" /etc/snmp/snmpd.conf sed -ri "s/%%IPADDRESS%%/$IP/" /root/mk-mrtg.sh cat /etc/snmp/snmpd.conf | grep mynetwork cat /root/mk-mrtg.sh | grep cfgmaker echo "Start snmp service.."...
true
263b01b4ee82b5a1d4a78448b21d6712b37ed7d7
Shell
TapiocaTechnologies/.scripts
/ping_hosts
UTF-8
603
3.421875
3
[]
no_license
#!/bin/bash #serverList=(192.168.1.116 192.168.1.11 192.168.1.12) figlet Tapioca Ping || echo -e "Tapioca Ping" echo "-------------------------------------------------------------------------------------------" echo "Please enter a list of IPs / hostnames to ping (ex localhost 127.0.0.1): " read -a serverList for host...
true