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
7a3790c29b3711c6b0cc14e8baf8df4b202ba161
Shell
christophstrasen/devenv
/build-power-tmux.sh
UTF-8
1,203
3.390625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Print out every line being run set -x # If a command fails, exit immediately. set -e apt-install() { sudo apt-get install --no-install-recommends -y "$@" } install-tmux() { # libevent-2.0-5 is a run-time requirement. apt-install tmux } install-powerline() { # POWER TMUX sudo pip install ...
true
bc3049e8e7b32efa46fafe26b63008b4aaf4387e
Shell
terriblememory/stupidgit
/gpush
UTF-8
404
3.453125
3
[]
no_license
#!/bin/sh if [ "$1" == "--help" ]; then echo " gpush -- push changes to origin" echo " usage: gpush" exit 1 fi if !(git add .); then echo "'git add' failed." exit 1 fi if !(git commit); then echo "'git commit' failed." exit 1 fi echo "Pushing to the remote origin." if !(git ...
true
8532d864d890fb8f0148b7b0810e8654069e7620
Shell
rdaaalux/meta-variscite-amx3
/utils/emmc-recovery.sh
UTF-8
863
2.84375
3
[]
no_license
#!/bin/bash umount /run/media/mmcblk1p1 umount /run/media/mmcblk1p2 sfdisk -D -H 255 -S 63 -C 950 /dev/mmcblk1 << EOF ,9,0x0C,* 10,,,- EOF sync umount /run/media/mmcblk1p1 umount /run/media/mmcblk1p2 mkfs.vfat -F 32 -n "boot" /dev/mmcblk1p1 mkfs.ext3 -L "rootfs" /dev/mmcblk1p2 sync rm -rf /run/media/mmcblk1p1 m...
true
ad21bde3a25cc953584f1622054ad4425c9b47af
Shell
mkpandit/maestrohtbase
/etc/db/mysql/htvcenter-mysql-functions
UTF-8
38,441
3.5
4
[]
no_license
#!/bin/bash # htvcenter mysql-specfic functions # # htvcenter Enterprise developed by htvcenter Enterprise GmbH. # # All source code and content (c) Copyright 2014, htvcenter Enterprise GmbH unless specifically noted otherwise. # # This source code is released under the htvcenter Enterprise Server and Client License, u...
true
79cb686f63f4d8dadc16b63d9349456f989d3d53
Shell
charnet1019/scripts
/shell/es/delete_by_date_range.sh
UTF-8
364
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # 删除指定日期范围内的数据 HOST=localhost:9200 INDEX=my_index START_DATE=2022-01-01 END_DATE=2022-03-31 curl -XPOST "${HOST}/${INDEX}/_delete_by_query" -H 'Content-Type: application/json' -d '{ "query": { "range": { "timestamp": { "gte": "'${START_DATE}'", "lte": "'${END_DATE}'" ...
true
c36dbec3cfade86da62b704cea064d8a48b7cf06
Shell
audrina/nec-mcts
/episodic_mcts/nn_mcts/run.sh
UTF-8
253
2.875
3
[ "MIT" ]
permissive
#!/bin/bash FILE=./20_8Othello if ! [ -d "$FILE" ]; then mkdir $FILE fi outputFile="/20_8text.txt" resultFile="/20_8result.txt" python3 main.py > $FILE$outputFile python3 play.py > $FILE$resultFile python3 plot.py $FILE$resultFile $FILE$outputFile
true
d9fc94c4277bb4c76b60e38c7eb129e25e47f58d
Shell
marcellodesales/pizero-docker-demo
/join/auto_join_wlan.sh
UTF-8
681
3.5
4
[]
no_license
#!/bin/bash # Usage: auto_join_swarm.sh <consul_ip:port> # Default: auto_join_swarm.sh 192.168.0.200:8500 export consul_addr=192.168.0.100:8500 if [ ! -z $1 ]; then export consul_addr=$1:8500 fi echo "Using consul: $consul_addr" export eth0_addr=$(ip addr show wlan0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f...
true
c43a1dd24f4a41c6f176fec238877fece0729f75
Shell
bolajiy/beer
/recipes/zrc2019/run.sh
UTF-8
2,401
3.4375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e ####################################################################### ## SETUP # Directory structure datadir=data feadir=features expdir=exp # Data db=zrc2019 dataset=train # Features feaname=mfcc # AUD training # The number of epochs probably needs to be tuned to the final data. epoc...
true
538d79de2aeed2b3952fb84fba64faa3b747b707
Shell
shengqh/TP53_isogenics_exomeseq_3772_hg38
/bwa/pbs/P_64B_bwa.pbs.sh
UTF-8
2,241
2.828125
3
[ "MIT" ]
permissive
cd '/scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa/result' set -o pipefail if [[ -e /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa/result/P_64B.unsorted.bam.failed ]]; then rm /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa/result/P_64B.unsorte...
true
d8c827440d8cca5a973a4a2f4faacf8b17aed64a
Shell
KaarelP2rtel/taringvara
/build.sh
UTF-8
1,079
3.875
4
[]
no_license
#!/bin/bash #Filter out words that are too long, too short, and contain special characters. filter(){ awk 'length($0) < 8 && length($0) > 4 && $0 !~ "[äöüõþð- ]"' | awk '{print tolower($0)}' | sort | uniq } reduce-list-length(){ shuf --head-count "$1" | sort } print-d6-numbers(){ echo {1..6}{1..6}{1..6}...
true
934bfa85dab2020b85b58661eaa1e4941e8077e1
Shell
BlenderCN-Org/H-MRI_Search_and_Rescue
/hkt_Experiments/launch/setup_exp.sh
UTF-8
2,102
3.328125
3
[]
no_license
#!/bin/bash if [ $# -ne 3 ]; then echo "usage: $0 <number of robots> <mode> <map>" exit fi ROBOS=$1 MODE=$2 MAP=$3 ROBOT_IDS="[" HUMAN_INPUT="[1" if [ $ROBOS -gt 2 ]; then Xs=( -8 -6.8 -7.25 -8.7 -9.15 ) Ys=( -6.75 -7.6 -9 -9 -7.57 ) else Xs=( -8 -6.91 ) Ys=( -6.75 -8.615 ) fi for i in $(seq 0 ...
true
28ffe879c862d5ca263344073f859dc29962c730
Shell
robdimsdale/robdimsdale-ci
/staticfile-website/build-hugo-site/task
UTF-8
381
3.15625
3
[ "MIT" ]
permissive
#!/bin/sh set -eux website_dir="${PWD}/website" website_built_dir="${PWD}/website-built" cp -R "${website_dir}/"* "${website_built_dir}" cp -R "${website_dir}/.git" "${website_built_dir}" cp -R "${website_dir}/.gitignore" "${website_built_dir}" ( cd "${website_built_dir}" if [ "${BASE_URL}" = "" ]; then hu...
true
4e2a41abcec3e91c674f564a9b064b903d981eee
Shell
aakidev/shell_scripting
/as5.sh
UTF-8
382
2.734375
3
[]
no_license
#!/bin/sh #5. How to write script, that will print, Message ""Hello World"", in Bold and Blink effect, and in different Colors like red, brown etc using echo command." echo "\e[1;36m Hello World \e[0m" echo "\e[0;31m Hello World \e[0m" echo "\e[0;32m Hello World \e[0m" echo "\e[0;38m Hello World \e[0m" echo "\033[...
true
22a8379cb2f02fd03e8ab8b99d9a4af599830d8d
Shell
saurabh727/Deployment_using_Ansible
/ansible/roles/ap_scheduler/templates/uninstall-scheduler.sh.j2
UTF-8
650
2.515625
3
[]
no_license
#!/bin/bash source /etc/profile.d/{{ app_name }}.sh echo "stopping scheduler..." && sv stop scheduler && echo "scheduler stopped." echo "stopping sch-executor..." && sv stop sch-executor && echo "sch-executor stopped." [ "$(rpm -q {{ py_rpm_filename_centos6 }})" ] && echo "removing python rpm..." \ ...
true
81e140b81e3696f7df9cd707f0f264d5f9844297
Shell
NOAA-SWPC/parallel-workflow
/workflow/ush/global_getdump.sh
UTF-8
10,309
3.515625
4
[]
no_license
#!/bin/sh ################################################################################ #### UNIX Script Documentation Block # . . # Script name: global_getdump.sh # Script description: Copies a global dump # # Author: Mark Iredell ...
true
3ef67ea9b99b9f9f8a057c819551c1c38b727b2e
Shell
gutao1994/backup_file_by_shell
/allshell/test/commonLib.sh
UTF-8
2,743
3.453125
3
[]
no_license
function isLeapYear (){ local tmp_y=$1 if [[ $(($tmp_y%4)) -eq 0 && $(($tmp_y%100)) -ne 0 ]] || [ $(($tmp_y%400)) -eq 0 ] then echo yes else echo no fi } function inArray (){ local arr=($1) local val=$2 local is_in=no for item in ${arr[*]} do if [ $item...
true
b3a465f9b491b62736595787f6a31ade27454f03
Shell
PizzaFactory/che-editor-gwt-ide
/build.sh
UTF-8
167
2.609375
3
[]
no_license
#!/bin/sh set -e set -u if [ -f ./build/che-editor-plugin.tar.gz ]; then rm -rf ./build fi cd etc mkdir -p ../build tar zcf ../build/che-editor-plugin.tar.gz .
true
8e111e84e78c6ddbb0c81ded62f980a87d2c27cb
Shell
hvoecking/zfs-utils
/usr/lib/systemd/systemd-sleep/unmount_zfs.sh
UTF-8
244
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash -e POOL=tank case $1/$2 in pre/*) if zfs list | grep -q "^${POOL} " then kill -9 $(lsof | grep /$POOL | sed -r "s/^[^ ]+ *([0-9]+).*/\1/" | tr '\n' ' ') zpool export -f $POOL fi ;; post/*) ;; esac
true
98ce72f138b1811233588129ff600eb0e2e0d1a3
Shell
paramDevops/Bash_scripts
/rename.sh
UTF-8
151
2.765625
3
[]
no_license
#!/bin/bash echo "enter file names" #ls -lrt $1 newfile=ls -l --time-style='+%d/%m/%Y' test.sh # awk {print $6} #echo "$newfile" #mv $1 $newfile
true
2de6a41af7b12ba76d37035d9c8f759b719a04b3
Shell
FlyBase/fast-track-your-paper
/db/scripts/pull_chado_data.sh
UTF-8
1,724
3.78125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Die on errors set -Eeuo pipefail # This script pulls select data from production chado and stores it in the db/data directory. # Usage: # $ cd db # $ PGHOST=localhost PGUSER=josh PGPORT=6543 PGDATABASE=production_chado ./scripts/pull_chado_data.sh # # To change Postgres connection defaults pleas...
true
9d73ec915e5203e8f3a1c51ca842511303932d49
Shell
tony-gk/operation-system-labs
/lab5/rmtrash
UTF-8
504
3.71875
4
[]
no_license
#!/bin/bash if ! [[ -n $1 ]]; then echo "Enter file name" exit 1 elif ! [[ -f $1 ]]; then echo "File doesn't exist" exit 1 fi filepath=$(realpath "$1") cd $(dirname $0) if ! [[ -d .trash ]]; then mkdir .trash echo 0 > .trash/.last trashname=0 else trashname=$(($(cat .trash/.last) + 1)) echo $trash...
true
d81d2c60d4202ca597945b6339ec55b8cdbdd7e7
Shell
aland-zhang/docker-percona-xtradb-cluster
/entrypoint.sh
UTF-8
9,089
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright (c) 2017 Alexander Trost # # 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 a...
true
d1d4387ea3a20f422662404545eb2d470511171d
Shell
1313ou/sqlunet-browser
/tools/tohtml-wordnet2html.sh
UTF-8
222
3.09375
3
[]
no_license
#!/bin/bash #target t=$1 if [ -z "$t" ]; then read -p 'item >' t fi xsl="wordnet2html-ns.xsl" xout=- xout=$t-fragment.html xin=$t.xml #for xin in $@; do ./xsl-transform.sh $xin $xout $xsl html #read -p 'done ' #done
true
fc07218ff852928dce2326c4828da67af9717ce6
Shell
rellikhsu/mmproxy-installer
/mmproxyInstaller.sh
UTF-8
307
3.296875
3
[]
no_license
#!/bin/bash CURL=`which curl` if [ $? -ne 0 ]; then echo "Please install curl first" exit fi # Download and chmod mmproxyURL="https://github.com/path-network/go-mmproxy/releases/download/1.0/go-mmproxy-linux-x86_64" ${CURL} -L -O ${mmproxyURL} mv go-mmproxy-linux-x86_64 go-mmproxy chmod 755 go-mmproxy
true
d1115a41b6782f978ccaaa1a3619b27aa5c4e604
Shell
TerraTech/lizardfs-flexvolume
/lizardfs
UTF-8
6,040
3.546875
4
[]
no_license
#!/bin/bash ################################## # Credits to the original authors: # https://github.com/lowet84 (original author) # https://github.com/M0nsieurChat (updates for Kubernetes >=1.6.3 compatibility) ################################## ######### # Derived from M0nsieurChat's version and overhauled for Kuberne...
true
a7916408940882abd4cf60085862f5de4a34a23f
Shell
hydrargyrum/attic
/group-lines/test.sh
UTF-8
676
3.703125
4
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh -eu # shellcheck enable= cd "$(dirname "$0")" got=$(mktemp sorted.XXXXXX) trap 'rm "$got"' EXIT init () { ./group-lines "$@" > "$got" } check () { diff -u - "$got" } # basic test (sort groups, keep lines order) init "\b\d{4}-\d{2}\b" <<- EOF foo 2022-08-20 baz 2022-09-01 bar 2022-08-19 qux 2021-0...
true
c92df09cf6f412204710456d7506c3a6e270dbe7
Shell
Mausy5043/boneboot
/beaglebone/mod-files.sh
UTF-8
1,678
3.28125
3
[ "MIT" ]
permissive
ME=$(whoami) HERE=$(pwd) # Install information about the wifi-network #cp /home/debian/bin/wpa.conf /etc/wpa_supplicant/wpa_supplicant.conf # Sometimes files have the wrong group. Correct that here # echo "Correcting owners/permissions" # find / -group 116 -exec chown root:root {} \; # -exec chmod 744 {} \; # chmod +...
true
f26f8bf44a1b5ff1d2c88063e7b62a05614e6d13
Shell
asaferamos/suppliermanager
/supplier.sh
UTF-8
2,754
3.65625
4
[]
no_license
#!/bin/bash if [ -z "$@" ] ; then ARG="--help" else ARG="$@" fi for i in $ARG do case $i in --build) echo $'\nBuilding Supplier Manager by Asafe Ramos...\n' sudo docker-compose up -d echo $'\nInstall dependencies for api...\n' # sudo docker exec -it...
true
e6a9c4c052f0a80e0e962ca072036734516ed0c8
Shell
dzl-dm/cometar
/repository/script/post_receive_hook.sh
UTF-8
4,979
3.484375
3
[]
no_license
#!/bin/bash newrev=master conffile=$(realpath $(dirname $0)/../config/conf.cfg) while [ ! $# -eq 0 ] do case "$1" in -p) shift conffile=$(realpath "$1") ;; -r) shift newrev=$1 ;; esac shift done source "$conffile" unset GIT_DIR; rm -rf "$TEMPDIR/git" mkdir -p "$TEMPDIR/git" eval "$GITBIN cl...
true
05b0f1ab301d7131cc3c36ffa67cec3ac83c438a
Shell
adityadani/xfstests
/257
UTF-8
2,372
3.40625
3
[]
no_license
#! /bin/bash # FS QA Test No. 257 # # File System snapshot tests (large files) # #----------------------------------------------------------------------- # Copyright (c) 2011 YOUR NAME HERE. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Ge...
true
c3c7c4b5bb01e32dd70420aad6f6e2005ae1117f
Shell
NLeSC-Storyteller/query-builder-daemon
/scripts/storyteller.sh
UTF-8
681
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash LIB="/src/StoryTeller/target" DATA_DIR="/data" RESOURCES_DIR="/src/vua-resources" SERVER="http://130.37.53.35:50053" ID=$1 QUERY=$2 LIMIT=$3 echo "starting query to KnowledgeStore" java -Xmx2000m -cp "$LIB/StoryTeller-v1.0-jar-with-dependencies.jar" \ vu.cltl.storyteller.json.JsonMakeStoryFromTripleData...
true
bd20a944ceea501c0a0b5aaf4c560f3aec6a9a08
Shell
celeron55/minetest-worldtest
/minetest-worldtest-check-and-set.sh
UTF-8
1,043
3.78125
4
[ "WTFPL" ]
permissive
#!/bin/bash dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ $# -ne 2 ]; then if [ $# -ne 3 ]; then echo "Usage: $0 <minetest git directory> <world directory> [<result file>]" exit 1 fi resultfile_dst=$3 else resultfile_dst="" fi gamedir=$1 worlddir=$2 #echo "-- Making world in $worlddir using $gam...
true
cb5384ff652dc5c2e600bdeb766e658f9db9a96d
Shell
HackerSuid/ace-core
/tools/breakup_stress.sh
UTF-8
540
2.875
3
[]
no_license
#!/bin/sh echo "Shortening sequence..." if [ -f "sampledata/bitmaps/high-order/STRESS/12.bmp" ] then echo "The sequence shouldn't be shortened." exit fi mv sampledata/bitmaps/high-order/STRESS/11.bmp sampledata/bitmaps/high-order/STRESS/12.bmp mv sampledata/bitmaps/high-order/STRESS/10.bmp sampledata/bitmaps...
true
31fff390e21b7aabb3a3dd289abbf615f4cceebd
Shell
Shan1024/build-automation-artifacts
/github-maintenance/removelabelRepo.sh
UTF-8
1,134
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #REMOVE LABELS TO REPOS #PROVIDE THE LOCATION TO THE FILE WITH LIST OF REPOS NAMES repoList="/<PATH>/<FILE NAME>.txt" FILELINE=`cat $repoList` echo START for LINE in $FILELINE ; do #deleteing type/bug curl --include --request DELETE "https://api.github.com/repos/$LINE/labels/Type/Bug?access_token=<TO...
true
64220b1f83262ce64176c4a3c428bcf5b056a8a2
Shell
Swipe650/swipe-conky
/conky-configs/conky/conkygoogleplaymusic/time
UTF-8
576
3.421875
3
[]
no_license
#!/bin/bash if pidof -x "$(basename 'Google Play Music Desktop Player')" > /dev/null then time_cur=$(cat "$HOME/.config/Google Play Music Desktop Player/json_store/playback.json" | jq -r '.time.current') time_tot=$(cat "$HOME/.config/Google Play Music Desktop Player/json_store/playback.json" | jq -r '.time.total') ...
true
86d190625a8804552baa08145e9ae6ba472eda53
Shell
taliesins/packer-templates
/scripts/networking.sh
UTF-8
395
2.6875
3
[ "MIT" ]
permissive
#!/bin/sh -x #echo "Cleaning up udev rules..." if [ -f /etc/udev/rules.d/70-persistent-net.rules ]; then rm /etc/udev/rules.d/70-persistent-net.rules mkdir /etc/udev/rules.d/70-persistent-net.rules fi if [ -d /dev/.udev ]; then rm -rf /dev/.udev/ fi if [ -f /lib/udev/rules.d/75-persistent-net-generator.r...
true
18d1828a811eed451925af9040dba1af609ca00e
Shell
dblandin/dotfiles
/local/bin/gravatar
UTF-8
187
2.984375
3
[]
no_license
#!/usr/bin/env sh if [ -z "$1" ]; then printf "usage: gravatar <email>" >&2 exit 1 fi curl "https://gravatar.com/avatar/$(echo -n $1 | md5sum | cut -d ' ' -f 1)?s=500" > avatar.png
true
5ab0112d79fc8a0836ad1f0c6907a3111be8dd02
Shell
webrtc/KITE
/scripts/linux/path/kite_t
UTF-8
6,891
3.78125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash function downloadTests(){ echo "PREPARING TESTS:" downloadSampleTests downloadPrivateTests echo "FINISH PREPARING TESTS:" echo "=================================================================" } function downloadSampleTests(){ if [ -d KITE-Sample-Tests ] then read -p "KITE-Sample-Tests alread...
true
188e99aeb37c56aed53206f5ffdd77a9e6b97175
Shell
TachiWeb/TachiWeb-Server
/scripts/travisDeploy.sh
UTF-8
1,293
3.203125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash mkdir -p ~/.ssh echo "$SFTP_KEY" | base64 --decode > ~/.ssh/id_rsa chmod 400 ~/.ssh/id_rsa REPO_DIR="${SFTP_DIR}/${TRAVIS_REPO_SLUG}" VERSION_DIR="${TRAVIS_BUILD_NUMBER}_${TRAVIS_COMMIT}" BASE_DIR="$REPO_DIR/$VERSION_DIR" NATIVES_DIR="$BASE_DIR/natives" BASE_LOC="${SFTP_USER}@${SFTP_HOST}" LATEST_...
true
f1cadec5f894823d4950bada55ec08b9a3851aad
Shell
k4therin2/bashrc
/.bashrc
UTF-8
5,050
3.59375
4
[]
no_license
# ~/.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 # don't put duplicate lines or lines starting with space in the history. # Se...
true
5ea958cd618a2eb7534215d6ab963072c46cd1be
Shell
rozim/ChessData
/Analysis/dump.sh
UTF-8
207
3.4375
3
[]
no_license
for fn in *.sqlite; do if [ $fn == mega.sqlite ] ; then echo MEGA else sql=$(basename $fn .sqlite).sql echo $fn :: $sql echo " " sqlite3 ${fn} <<EOF .output ${sql} .dump .quit EOF fi done
true
436537b119dca3e66f983c64aa8ac0c35e380038
Shell
Spinebelt/slibs
/s
UTF-8
2,664
3.921875
4
[]
no_license
#!/bin/bash # slibs v0.1 # https://github.com/Spinebelt/slibs stream_name=$1 stream_platform=$2 stream_quality=$3 default_platform='twitch.tv' pwd=$(pwd) dirname=$(dirname "$0") # List of platforms with their domainless names for ease of use. : << 'END' TODO: Make an array containing all supported platform names ...
true
d5bad42142bdede3a728a2b0ea7597c4bc8cddd2
Shell
Sheidbrink/zgrab
/setup_ztools.sh
UTF-8
2,503
3.828125
4
[]
no_license
#!/bin/bash # *** IMPORTANT *** # # Before running this script, you MUST setup the following environment # variables. Consider adding them to your bashrc for persistence. # #export PATH=$PATH:/usr/local/go/bin #export GOPATH=$HOME/go-code #export PATH=$PATH:$GOPATH/bin # Additionally you may wish to configure the fol...
true
be28098959cc64d8b15273a283d7c429a9e10417
Shell
fuzzysteve/esi-swagger-ui
/run.sh
UTF-8
2,568
3.9375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # use this script to (re)start your local ESI Swagger UI # # prereqs: # - a client ID for the datasource, be sure to enable all ESI scopes. # create a TQ client here -> https://developers.eveonline.com/applications # # - a docker server, available at $DOCKER_MACHINE_NAME, or localhost # # - port 8000 avai...
true
5e00508ca448837c3dfdc2aa8857c9ae45ba2d69
Shell
kevinmcmahon/dotfiles
/scripts/URLDecode.sh
UTF-8
391
3.296875
3
[]
no_license
#!/bin/bash # # URL Decode # https://gist.github.com/levigroker/892fd435d701b4e8f56bfcec819d5ef2 # # A BBEdit Text Filter script to take textual input and produce URL decoded text of the same. # See http://bbeditextras.org/wiki/index.php?title=Text_Filters # Levi Brown # @levigroker # levigroker@gmail.com # January 12,...
true
e0bce20d4527e8aafc5fc6281ca9958454732995
Shell
ivanpang1996/shorten-url
/sh/Q2.sh
UTF-8
251
3.21875
3
[]
no_license
#!/bin/bash -e NAME_TAG=$1 ip=$(aws ec2 describe-instances --filters "Name=tag:${NAME_TAG},Values=" --query "Reservations[*].Instances[*].PublicIpAddress" --output=text) if [ -z "${ip}" ] then echo "Host not found" else ssh ec2-user@"${ip}" fi
true
5f6d5735cc95d9e9639b0422aabeb8a64961e450
Shell
olexdziuba/bash
/linux/sys_status.sh
UTF-8
557
3.28125
3
[]
no_license
#!/bin/bash echo "" echo "************************************************************" echo "System Report for $(cat /etc/hostname) ($(hostname -I | awk '{print $1}'))" echo "Generated at $(date)" echo "************************************************************" echo "Uptime: $(uptime -p)" echo "Kernel Versi...
true
e71e3627a4f4ca0893a4d126fcc1705179294eee
Shell
dabest1/devopstoolbox
/mysql/info/mysql_db_report.sh
UTF-8
569
3.453125
3
[]
no_license
#!/usr/bin/env bash username="root" password="password" database="mydatabase" echo "Host: $HOSTNAME" echo echo "Database: $database" echo echo "Tables:" tables="$(mysql --batch --skip-column-names -u"$username" -p"$password" "$database" -e 'SHOW TABLES')" echo "$tables" echo for table in $tables; do echo "Table: $...
true
04c2e2caf65d90099202b495d69dec1b27c8cf1d
Shell
rmeleromira/ansible-zencash-nodes
/password.sh
UTF-8
185
3.03125
3
[]
no_license
#!/bin/bash if [[ -v ANSIBLE_VAULT_PASS ]] then echo $ANSIBLE_VAULT_PASS else read -p "enter vault password:" password echo $password export ANSIBLE_VAULT_PASS="$password" fi
true
e7ee11f9c4f172689d25e90a987b3aa07630f062
Shell
JakubMakaruk/UMCS
/Linux/praca domowa 2 AWK SED/zad1b.sh
UTF-8
311
2.609375
3
[]
no_license
#!/bin/bash awk -F "," ' BEGIN{sum_f=0; sum_m=0; count_f=0; count_m=0} { gsub("\"","",$0); if($1=="female") { sum_f+=$7; count_f++; } else { sum_m+=$7; count_m++; } } END{ print "Średni wynik dziewcząt:" sum_f/count_f "\n Średni wynik chłopców:" sum_m/count_m } ' StudentsPerformance.csv
true
d281ab71e28afc641c7c0966eabbacb083d1f023
Shell
keepwatch/hpfeeds-arcsight
/hpfeeds_logger-arcsight.sh
UTF-8
1,601
3
3
[]
no_license
#!/bin/bash set -e apt-get update apt-get install -y git python-pip python-dev pip install virtualenv SCRIPTS=`dirname $0` cd /opt/ git clone https://github.com/keepwatch/hpfeeds-arcsight.git cd hpfeeds-arcsight virtualenv env . env/bin/activate pip install -r requirements.txt chmod 755 -R . IDENT=hpfeeds-arcsight...
true
d3b75e684aabe837190d92a19a2e75e993a74d4e
Shell
CMS-HGCAL/TestBeamDAQ
/install_otsdaq.sh
UTF-8
3,409
3
3
[]
no_license
#!/bin/bash baseDir=/opt/baseOTSdaq Base=hgcal_daq Products=otsdaq_productarea V=e10 if [ ! -d "${Products}" ];then echo "[INFO] OTSdaq product area ${Products} not found: creating it now" mkdir ${baseDir}/${Products} cd ${baseDir}/${Products} curl http://scisoft.fnal.gov/scisoft/packages/ups/v5_2_0/u...
true
00d6a6b1b1be500373f8ff9ee604b946e9b0c502
Shell
tshr20140816/apache_module
/utils/post_install_aria2.sh
UTF-8
4,047
3.359375
3
[]
no_license
#!/bin/bash set -x date start_date=$(date) chmod 755 start_web.sh gcc --version git --version git --help pkg-config --help # ***** postgresql ***** postgres_user=$(echo ${DATABASE_URL} | awk -F':' '{print $2}' | sed -e 's/\///g') postgres_password=$(echo ${DATABASE_URL} | grep -o '/.\+@' | grep -o ':.\+' | sed -e...
true
00e3a4ff9cf8fe3c2b45b6c82a40932357d018c2
Shell
JetBrains/intellij-community
/java/java-tests/testData/codeInspection/bytecodeAnalysis/data/compile.sh
UTF-8
447
2.859375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # use Java 9+ JAVAC="$(which javac)" if [ ! -x "$JAVAC" ]; then echo "Java compiler not defined" exit 1 fi rm -rf classes mkdir classes "$JAVAC" -g --release 8 -d classes src/Expect*.java "$JAVAC" -g --release 8 -d classes -cp classes src/data/*.java rm -rf classes/bytecodeAnalysis/data/ExtTestConver...
true
a5547e975e9f3f861a381f5e633c335e47a3e663
Shell
jonboulle/jtools
/bin/authors
UTF-8
126
2.625
3
[]
no_license
#!/bin/bash authors=$(git log $@ --pretty=format:"%an" | sort | uniq | tr '\n' ',' | sed -e 's#,#, #g') echo ${authors:0:-2}
true
1e9791e6c484ee360a162f119dd3787a5494fc61
Shell
nevillelyh/dotfiles
/.dotfiles/libexec/bin-wrapper.sh
UTF-8
13,008
3.84375
4
[]
no_license
#!/bin/bash set -euo pipefail if [[ -f "$HOME/.dotfiles/files/bs.sh" ]]; then # shellcheck source=/dev/null source "$HOME/.dotfiles/files/bs.sh" else eval "$(curl -fsSL bit.ly/bs-dot-sh)" fi cache="$HOME/.dotfiles/libexec/cache" os=$(echo "$BS_UNAME_S" | tr "[:upper:]" "[:lower:]") arch="$BS_UNAME_M" br...
true
b8785591c0a8cf2cf0aebab773c90ab0c2bcc390
Shell
mlevin2/useful-things
/scripts/quiet
UTF-8
335
3.875
4
[]
no_license
#!/usr/bin/env bash vol="$1" if [[ "$vol" =~ ^[1-9]$ ]] && [ $vol -gt 0 ] && [ $vol -le 9 ] then newvol="0.00${vol}" message="Setting volume to ${newvol}" osascript -e "set volume 0.00${vol}" osascript -e "display notification \"${message}\" with title \"Quiet\"" echo $message else echo "Usage: $(basename...
true
fd47e7085c68caae93d1346f15cffb6e3a3bcb10
Shell
KamiNetwork/lab_3
/practice.sh
UTF-8
199
3.359375
3
[]
no_license
#!/bin/bash echo "Enter a number:" read -r numOne echo "Enter a second number: " read -r numTwo sum=$(($numOne + $numTwo)) echo "The sum is: $sum" let prod=numOne*numTwo echo "The product is: $prod"
true
2664834e5833d551bf5b69b93577f5a8e3249da2
Shell
jankonas/docker-cron-php
/images/php/app/cron/deserialize-args.sh
UTF-8
569
3.53125
4
[]
no_license
#!/usr/bin/env bash # https://stackoverflow.com/questions/3069163/how-to-serialize-and-deserialize-command-line-arguments-to-from-string if [ -z "$1" ]; then echo "Usage: deserialize data [optional arguments]" echo "Example: \"deserialize cXFx_d3d3_0 eee rrr\"" echo " will execute \"eee rrr qqq www\"" ...
true
3975cf4e012e1dc10c6454554d9458a547f794cf
Shell
smarty-kiki/api_frame
/project/tool/naming_project.sh
UTF-8
1,631
3.4375
3
[ "MIT" ]
permissive
#!/bin/bash sed_name() { cat $1 | sed -e "s/api_frame/$2/g" > $1.new && mv $1.new $1 } if [ ! -n "$1" ] ;then echo "Usage: $0 <name>" exit fi ROOT_DIR="$(cd "$(dirname $0)" && pwd)"/../.. mv $ROOT_DIR/project/config/development/nginx/api_frame.conf $ROOT_DIR/project/config/development/nginx/$1.conf mv $...
true
4372ec4550346d73b3b3dce3b5807284565a526a
Shell
cellosofia/openshift-nodejs
/.s2i/bin/save-artifacts
UTF-8
161
3.3125
3
[]
no_license
#!/bin/bash # Stream the npm folder tar archive to stdout if [ -d ${HOME}/.npm ]; then pushd ${HOME} > /dev/null tar cf - .npm popd > /dev/null fi
true
4e9beec9f36be822323e22a4f47b3e3687282642
Shell
mofan398419242/internetsecurity
/bin/start_r_training.sh
UTF-8
285
2.671875
3
[]
no_license
#!/bin/bash date_dir=$1 base_path=$(cd `dirname $0`; pwd) printf "start r training data..." sh ${base_path}/start_r_training_data.sh ${date_dir} printf "finish r training data." printf "start r training job..." sh ${base_path}/start_r_training_job.sh printf "finish r training job."
true
e9176a7fe62ba638673d456c5bea3709576196d1
Shell
vunovikov/zbx_backup
/v0.3/zbx_backup_v0.3.2.sh
UTF-8
1,319
3.828125
4
[ "MIT" ]
permissive
#!/bin/bash ### Setttings ### # Directories and files dest=/mnt/nfs/vlxc02/vmon01 tmp=/tmp fullBackup=$dest/zbx_backup_$(date +%d.%m.%Y).tar.xz logFile=$dest/backuplog.log # Database backup settings user="zabbix" pass="zabbix" DB="zabbix" sqlDump=$tmp/zbx_sqldump_$(date +%d.%m.%Y).sql sqlDumpHash=$tmp/zbx_sqldump_$(...
true
55798ef6a91d842a3a309a655a218fe9af864f63
Shell
deathgrasp/Evosuite-Test-Assistant
/scripts/runOnAllProjectsOracle
UTF-8
7,884
3.453125
3
[]
no_license
#!/bin/bash #for [Lang, Closure, Chart, Time] projects, run 5 tests on the buggy class after fix, and then test it before the fix export PATH=$PATH:~/defects4j/framework/bin echo starting FILE=Report.csv echo "project, BugID, Bugged class, Time given to evosuite, Num of failures" > $FILE NAME=Lang TESTS=65 for i in ...
true
ba211d26cad0f39fa6f4459ae81372f071339ac5
Shell
kmoore134/overmind
/share/overmind-lib.sh
UTF-8
14,193
4
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # Copyright 2015 # License: BSD # Kris Moore <kris@pcbsd.org> # Default dataset DSET="/overmind" # The default node location NODEDIR="${DSET}/nodes" # Default PXE boot dir PXEROOT="${DSET}/pxeboot" ##################################################################### # Exit with a error message exit_err(...
true
7bc0ea758908c3b8fd7096291ca3244f5a508a39
Shell
seriema/retro-cloud
/docker/compose/user-access.sh
UTF-8
1,347
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash # Abort on error, error if variable is unset, error if any pipeline element fails, and print each command. set -euox pipefail echo 'Verify access permissions of different directories' # Added when the user was created as root so the user didn't have regular access to $HOME. [[ $(stat -c %a /home/pi) -eq 7...
true
3f3e573679fb80448f7913554b7169c7b29d4cab
Shell
cnyuanh/malaria_mitogenome
/765G/ass.sh
UTF-8
1,110
2.9375
3
[]
no_license
#!/bin/bash #SBATCH --time=00:01:00 #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --job-name=ass #SBATCH --mem=10000 #SBATCH --output=ass.log #Description: Assemble the mitochondrial genomes based on putative mitochondrial reads #Written by: Jorge Eduardo Amaya Romero #Last revision: 14-10-2016 module purge module lo...
true
725323c3e8c2e7420ba6d7f2c1849716b4030813
Shell
glevand/tdd--qemu-installers
/qemu-distro-installer.sh
UTF-8
15,328
4.125
4
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/bin/env bash usage() { local old_xtrace old_xtrace="$(shopt -po xtrace || :)" set +o xtrace echo "${script_name} - Create or start a QEMU installation." >&2 echo "Usage: ${script_name} [flags]" >&2 echo "Option flags:" >&2 echo " -h --help - Show this help and exit." >&2 echo " -v --verbose ...
true
f0fd29f10a432d9b5ad33a33f3c701dc20c6e6ca
Shell
prasad98765/Terminal
/Function/PrimePalindromeNo.sh.save.1
UTF-8
469
3.5
4
[]
no_license
#!/bin/bash -x reverse=0 flag=1 read -p "Enter the number" n fristNumber=$( PrimePalindrome ) function PrimePalindrome() { while [ $n -gt 0 ] do a=`expr $n % 10 ` n=`expr $n / 10 ` reverse=`expr $reverse \* 10 + $a` done echo $flag } read -p "Enther the Secound Number "n SecoundNumber=$( PrimePalindrom...
true
aa27fd8b9151c9d4c03b5ed1d166ca78a54b70e6
Shell
ni-k-azakov/itmo_stuff
/os_and_bash/lab_02/7.sh
UTF-8
989
3.046875
3
[]
no_license
for process in $(ps ax -o pid | sed 1d) do rchar_temp=$(grep -s -i "rchar" /proc/$process/io | awk '{print $2}') if [[ -z $rchar_temp ]] then continue fi echo $process" "$rchar_tmep >> task_7_temp.txt done sleep 5s for process in $(ps ax -o pid | sed 1d) do rchar_temp=$(grep -s -i "rchar" /proc/$process/io | awk '{pri...
true
185f60561de7b2abb39fddaa115bfac90c4012f7
Shell
Ph3nol/Docker-Arch
/install.sh
UTF-8
545
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh GITHUB_LAST_RELEASE_ENDPOINT="https://api.github.com/repos/Ph3nol/Docker-Arch/releases/latest" DESTINATION_BIN_PATH="/usr/local/bin/docker-arch" echo "--- Docker-Arch - Installation script ---" PHAR_DOWNLOAD_LINK=$(curl -s "$GITHUB_LAST_RELEASE_ENDPOINT" | grep browser_download_url | cut -d '"' -f 4) echo ...
true
c1f4dffbe3cae7e53e6d5011b7648470ee5a7c2a
Shell
dcato/prezto
/modules/iterm2/init.zsh
UTF-8
189
2.796875
3
[ "MIT" ]
permissive
# # Defines iTerm2 functions and aliases # # Authors: # Daiuske Cato <daisuke.cato@gmail.com> # # Return if requirements are not found. if [[ "$LC_TERMINAL" != "iTerm2" ]]; then return 1 fi # # Aliases #
true
8189a047719fdc4d93b9f1d30d76069137d3044a
Shell
strategist922/grand-challenge.org
/cycle_docker_compose.sh
UTF-8
711
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "Starting docker-compose, press Ctrl+D to cycle docker compose using a down-up cycle" echo "Press Ctrl+C (once) to stop" sleep 1 export TRAVIS_BUILD_NUMBER=$(git describe --always --dirty) export TRAVIS_BRANCH_SAFE=$(git rev-parse --abbrev-ref HEAD | sed "s/[^[a-zA-Z0-9]]//" | sed "s/[/]/-/") make -...
true
e8b90222decf4879266e32fd217227254848a7cc
Shell
petrosagg/resin-mopidy
/start.sh
UTF-8
990
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash mkdir -p /root/.config/mopidy MOPIDY_CONFIG='/root/.config/mopidy/mopidy.conf' touch "$MOPIDY_CONFIG" cat >> "$MOPIDY_CONFIG" <<-EOF [http] hostname = ${MOPIDY_HTTP_HOSTNAME:-::} port = ${MOPIDY_HTTP_PORT:-80} [mpd] hostname = ${MOPIDY_MPD_HOSTNAME:-::} port = ${MOPIDY_MPD_PORT:-6600} [soundcloud] ena...
true
d71ce33f1e105c9a3e868ed6dc4804afc4338667
Shell
NgHLDaniel/PeekingDuck
/scripts/check_headers.sh
UTF-8
860
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash dir=peekingduck copyright='AI Singapore' license='www.apache.org/licenses/LICENSE-2.0' top_rows=15 # assuming copyright and license are within first top_rows of file fail=false # For easy troubleshooting, show all the files which do not have the required headers for file in $(find $dir -type f -name '*.py...
true
efdde6ac8e4d3e325aa96ac9a7833e771869391e
Shell
haijunsu/QC
/2015spring/ResarchCourse/scripts/createPD.sh
UTF-8
361
2.90625
3
[]
no_license
#!/bin/bash for files in *.csv; do if [ -f "$files" ]; then # do something #echo $file #score $files "$files.pss" #NB30D20A150I5V2data5_1000.csv.pss.top1.pg.part.2.pd if [ -f "${files}.pss.top1.pg.part.2.pd" ]; then echo "file exists" else #echo $files create-parent-grouping-p...
true
0c31550bacf754d4fb2fd2b67a6cb8170d15550f
Shell
happyleaf-money/masternode-install
/hlf-install.sh
UTF-8
874
2.65625
3
[]
no_license
#!/bin/bash apt-get update --yes && apt-get install --yes build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev libevent-dev wget software-properties-common add-apt-repository --yes ppa:bitcoin/bitcoin && apt-get update apt-get install --yes libdb4.8-dev libdb4.8++-dev libminiupnpc-dev l...
true
60d320b792a66248ae4ec51481fca4e1dcbd2730
Shell
ittp/bash-scripts
/snippets/check_for_command.sh
UTF-8
1,846
4.34375
4
[ "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
#!/bin/bash # # How to check if a command is accessible. This will work even with '-e' option # turned on # set -e set -u # Command is a bash builtin so this won't work in other shells # # The -v option means to print out verbose information about the command. # That's not needed but with -v or -V (the -V gives mo...
true
e65c675714559ad8f4656340eb3218192df59767
Shell
gandhi-21/gaurav-uncleand.us-learning-log
/linux-fundamentals/trash_empty.sh
UTF-8
176
3.40625
3
[]
no_license
#!/bin/sh echo "Emptying the trash folder" empty_trash() { cd rm -rf .custom_trash } if [ -d ~/.custom_trash ] then empty_trash fi echo "Trash folder is empty"
true
ae3e2cdb5dbd1a293456b949d563b52e916eddd6
Shell
wang-feng/dj
/dj
UTF-8
3,562
3.3125
3
[]
no_license
#!/bin/bash if [[ $# -lt 1 ]]; then echo "" echo "Usage: $0 <caseTag>" echo "" echo "Examples:" echo " $0 cc" echo " $0 snc" echo " $0 fm" echo " $0 test" exit fi function showCmdTitle { echo "$cmdTitle" } cmdsWithSingleTitle="PbDumpTbls coh_cc" cmdsWithDoubleTitle="FES...
true
d2db424541089dafd30e7f19d86f98f8076f56d5
Shell
wikimedia/wikimedia-discovery-analytics
/bin/build_venvs_in_skein.sh
UTF-8
3,298
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # As of late 2020 the analytics cluster is running debian stretch, but all # hosts accessing it are running buster. This means we can no longer build the # venv's necessary from hosts like an-airflow1001 or stat1007. Instead we are # going to build venvs inside the cluster itself, using skein to submit a...
true
1a1f657889c5047aece5799f171d68497178c3fd
Shell
chenasraf/dotfiles
/.zshrc
UTF-8
5,035
2.78125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
# Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="robbyrussell" # Uncomment the following line to use case-sensitive ...
true
761b63ef343d55e4bc90ea322c99b4688e85c70e
Shell
CMSgov/bluebutton-web-server
/docker-compose/bluebutton_server_start.sh
UTF-8
3,966
3
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/sh DB_MIGRATIONS=${DB_MIGRATIONS:-true} SUPER_USER_NAME=${SUPER_USER_NAME:-'root'} SUPER_USER_EMAIL=${SUPER_USER_EMAIL:-'bluebutton@example.com'} SUPER_USER_PASSWORD=${SUPER_USER_PASSWORD:-'bluebutton123'} BB20_ENABLE_REMOTE_DEBUG=${BB20_ENABLE_REMOTE_DEBUG:-false} BB20_REMOTE_DEBUG_WAIT_ATTACH=${BB20_REMOTE_DE...
true
021c902ab4707044591a7991646053fcd787b04e
Shell
pkumaschow/elk-stack
/scripts/get_ami_images.sh
UTF-8
485
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh AMI_IMAGE_NAME="ubuntu/images/hvm-ssd/ubuntu-wily-15.10-amd64-server-20160217.1" # http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region for region in us-east-1 us-west-2 us-west-1 eu-west-1 eu-central-1 ap-southeast-1 ap-northeast-1 ap-southeast-2 ap-northeast-2 sa-east-1 do printf "\"$re...
true
f0631e4bed164420726a421f1c762d98c6099b90
Shell
ernoaapa/linux-packages
/bin/install-docker.sh
UTF-8
446
2.828125
3
[ "MIT" ]
permissive
#!/bin/sh set -eu apt-get update && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - apt-key fingerprint 0EBFCD88 add-apt-repository \ "deb https://download.docker.com/linux/debian...
true
d4ff5a37b7a1a697faded880d4e729e1295b88d0
Shell
fwsGonzo/physboot
/stubify.sh
UTF-8
298
3.078125
3
[]
no_license
#!/bin/bash set -e DEVICE=${1:-"0000:06:00.0"} # unbind echo $DEVICE > /sys/bus/pci/devices/$DEVICE/driver/unbind # extract PCI id PCI_ID=`lspci -s $DEVICE -n | cut -d " " -f 3 | tr : " "` echo "Device PCI id: $PCI_ID" # bind to vfio-pci driver echo $PCI_ID > /sys/bus/pci/drivers/vfio-pci/new_id
true
ac9a1df1b978a1db94dc129b185300945e846b69
Shell
xingguangsixian/react-native-upload
/src/build-ios.sh
UTF-8
711
3.421875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e if [ -z "$(readlink $0)" ] then dir=$(dirname $0) else dir=$(dirname $0)/$(dirname $(readlink $0)) fi libs=$dir/libs ios_export_plist=$(node $libs/get-config.js ios-export-plist# "$@") if [ -z "$ios_export_plist" ] then echo -e "\n\033[31mError: The parameter \"ios-export-plist\" is...
true
008575cb82ba562d5346c21f674bfe573e60e19d
Shell
msaunby/listening-trees-2018
/public/start-chromium.sh
UTF-8
686
2.59375
3
[]
no_license
#!/bin/bash id=#1 myhost="https://trees.connectedexeter.uk:8443/node.html${id}" #extra_opts="--kiosk --disable-infobars" extra_opts="" options="--disable-session-crashed-bubble --no-first-run --allow-running-insecure-content --allow-insecure-localhost --disable-popup-blocking" # if you remove all the profile, you'll...
true
2c308bc39af097bf0fb6f4b23c07cd0002e8af6c
Shell
ramble-inc/embarcadero
/entrypoint.sh
UTF-8
2,575
3.78125
4
[ "MIT" ]
permissive
#!/bin/sh -eux echo "Arriving at Embarcadero..." AUTHOR_USERNAME="$1" AUTHOR_EMAIL="$2" MAPPINGS="$3" DEST_USERNAME="$4" DEST_REPO="$5" DEST_BRANCH=${6:-main} CREATE_PR=${7:-false} DEST_PR_BASE_BRANCH=${8:-main} # input validation if [ -z "$AUTHOR_USERNAME" ] then echo '"author-username" must be defined' return ...
true
93e1af99652b1bb212348a4fb857abcd0dfb6241
Shell
shubhamkumar1739/Linux_Workshop
/conditions.sh
UTF-8
192
3.28125
3
[]
no_license
#!/bin/bash a=10 b=20 c=30 if [ $a -gt $b ] then echo "$a is greater than $b" else echo "$b is greater than $a" fi if [ $a -gt $b -o $a -gt $c ] then echo "$a is not the smallest no" fi
true
a92fee89268ce3bb1a8053fcd688bf73eaedf0bd
Shell
Disco-Dave/dotfiles
/migrations/1644882283__setup-docker.sh
UTF-8
231
2.625
3
[]
no_license
#!/bin/zsh set -e source "$_DOTFILES_HOME/zsh/zshenv" if [[ "$_HOSTNAME" != "virt" && "$_HOSTNAME" != "sandbox" ]]; then sudo pacman -S --needed docker sudo gpasswd -a david docker sudo systemctl enable --now docker fi
true
cccce020a2e6c1fed4737c610d8eb8ad6aa17d87
Shell
buymeasoda/dotfiles
/setup/fish.sh
UTF-8
357
3.34375
3
[]
no_license
#!/bin/bash echo echo "Setting fish as default shell" echo # Validate if [[ ! -f $(brew --prefix)/bin/fish ]]; then echo "fish is not available, please install via homebrew" return fi # Setup sudo sh -c "echo $(brew --prefix)/bin/fish >> /etc/shells" chsh -s $(brew --prefix)/bin/fish # Config mkdir ~/.config ln...
true
66ffdec2bf5343095e3ae8399bcbe6399888497b
Shell
karenetheridge/misc
/install/generic/.profile.d/ssh.sh
UTF-8
1,794
3.5625
4
[]
no_license
# this file is install/generic/.profile.d/ssh.sh fix_ssh_agent() { eval $(ssh-agent) for f in ~/.ssh/id_{rsa,ecdsa,ed25519} ; do if [ -e $f ]; then echo ssh-add -t 25920000 --apple-use-keychain $f ssh-add -t 25920000 --apple-use-keychain $f fi done } # having troubles getting t...
true
080a290ced14eb5a907335f0cda933647f8b73ad
Shell
bossm0n5t3r/auto-setup
/linux/unused-setup.sh
UTF-8
4,839
3.078125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash c='\e[32m' # Coloured echo (Green) r='tput sgr0' #Reset colour after echo # Installing Anaconda echo -e "${c}Installing Anaconda"; $r cd wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh bash Anaconda3-2019.07-Linux-x86_64.sh echo -e "${c}Anaconda Installed Successfully."; ...
true
96b3efac32ec30cde46c21288d6c2f616d76a5f8
Shell
Mystic918/Mystic
/auto-ngnix
UTF-8
813
2.78125
3
[]
no_license
#!/usr/bin/env bash #安装编译环境 yum -y install gcc gcc-c++ #安装pcre软件包(使nginx支持http rewrite模块) yum install -y pcre pcre-devel wget #安装openssl-devel(使nginx支持ssl) yum install -y openssl openssl-devel #安装zlib yum install -y openssl openssl-devel #创建用户 #useradd nginx #echo "123" | passwd --stdin nginx #下载安装nginx的安装包 wget ...
true
2f81475d001ac171fc5fc6a5dab8d58c7a9cc44a
Shell
blaylockbk/wrfxpy
/clamp2mesh.sh
UTF-8
166
2.9375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ $# -eq 0 ] then echo usage: ./clamp2mesh.sh wrffile x y: exit 1 fi cd $(dirname "$0") PYTHONPATH=src python src/clamp2mesh.py $*
true
a4040d5db1d0d7b51b93114d6d004df051c37c9a
Shell
lavinia-rizac/useful-aliases
/aliases.sh
UTF-8
826
2.859375
3
[]
no_license
#!/bin/bash # start vagrant box and connect alias vagon='vagrant up && vagrant ssh' # suspend a vagrant box alias vagof='vagrant suspend' # suspend a vagrant box and close terminal window/tab alias vagoff='vagrant suspend && exit' # destroy vagrant box alias vagkill='vagrant destroy' # destory vagrant box alias al...
true
8c2011addc0ae5d23b898287190cdc0a558b4c23
Shell
UCL/terraform-azure-sirf
/scripts/spinUp.sh
UTF-8
717
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash CSVFILE=${1} PREFIX=${2} IMGPREFIX=${3} RESGROUP=${4} while IFS=, read -r ID LOC MACHSIZE do MACHSIZE=`echo $MACHSIZE | tr -d '\r'` MACHNAME="${PREFIX}${ID}" IMG="${IMGPREFIX}${LOC}" ARGS="az vm create -g $RESGROUP -n $MACHNAME --location ${LOC} --image ${IMG} --admin-username sirfuser --...
true
c2737c68b27431bdd1831cc49f630519df8283e9
Shell
mendrugory/opensouthcode2019
/code/6/prod/scripts/up.sh
UTF-8
1,950
3.46875
3
[ "MIT" ]
permissive
#!/bin/bash cd "$(dirname "$0")/.." . ./env.sh # Admin IP echo "Getting Admin IP" export TF_VAR_admin_ip=$(curl https://ipinfo.io/ip) echo "Creating Infrastructure" terraform init terraform apply -auto-approve echo "Pointing to $TF_VAR_cluster_name" aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name $TF...
true
30e5be7fe1cabaaa504102c14815e900c08b5a9e
Shell
prannonpendragas/salt-formula-maas
/maas/files/restore.sh
UTF-8
1,767
2.734375
3
[ "Apache-2.0" ]
permissive
{%- from "maas/map.jinja" import region with context %} {%- set backup_dir = pillar.get('backupninja', {}).get('client', {}).get('target', {}).get("home_dir", "/srv/backupninja") -%} {%- set database = region.get("database", {}) -%} export PGHOST={{ database.get("host", "localhost") }} export PGUSER={{ database.get("...
true