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
5d2fe0640864e857554c15829bf227ec354a0e0c
Shell
emersonff/CMEECourseWork
/Week1/Code/ConcatenateTwoFiles.sh
UTF-8
98
2.5625
3
[]
no_license
#!/bin/bash #merge two files into a new file cat $1 > $3 cat $2 >> $3 echo "Merge File is" cat $3
true
b1ced31fc29d7f9321d0adc007cb9b601cc0e929
Shell
okwrtdsh/travisLatexSlack
/build.sh
UTF-8
539
3.515625
4
[]
no_license
#!/bin/bash -eu rm -rf $OUTPUT_DIR mkdir $OUTPUT_DIR current=$(pwd) for fpath in `find . -name "*.tex"`; do dname=$(dirname $fpath) froot=${fpath%.*} name=${froot##*/} platex -output-directory=$dname $froot cd $dname pbibtex -kanji=utf8 $name cd $current platex -output-directory=$dname $froot platex -output-...
true
5d69f2d02b1f4817c7c9f2c76afbc84fb9938f75
Shell
liaoya/packer-template
/cloud/custom/motd.sh
UTF-8
845
3.609375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash -eux echo "==> Recording box generation date" date > /etc/box_build_date echo "==> Customizing message of the day" MOTD_FILE=/etc/motd if [ -d /etc/apt ]; then # Debian like system PLATFORM_RELEASE=$(lsb_release -sd) if [[ -n ${VM_NAME} && $(lsb_release -cs) != "${VM_NAME}" ]]; then PLATFO...
true
90baa61b3fbc5fe78940a6cde27226ae169684b1
Shell
cradlepoint/helm-wrapper
/helm
UTF-8
4,604
4.21875
4
[ "MIT" ]
permissive
#!/bin/bash ##### # helm-wrapper tool simplifies helm/tiller version and namespace management. # # See https://github.com/cradlepoint/helm-wrapper for installation instructions. # ##### set -e # exit on any error # helper to scan caller-supplied parameters isParamSpecified() { PARAM=$1 for P in "${@:2}"; do ...
true
2cb7e5b6665110013cd9ddc7c45bcd6202706e10
Shell
zhamadeh/Alignment-Pipeline
/pe-alignment_pipeline/sspipe(server-PE)/scripts/11-preseq.sh
UTF-8
1,647
3.765625
4
[]
no_license
#This is a wrapper script that analyzes a batch of libraries using preseq #It takes a path to a directory as an argument, so run it like this: bash preseq.sh /path/to/directory_with_libraries #It will generate a complexity curve for each library and plot them individually and all together. It will also estimate the amo...
true
4fecbbc6368a41363da746f0b39e39b98d111346
Shell
tnakaicode/jburkardt
/cpp_arrays/pointers.sh
UTF-8
392
3.3125
3
[]
no_license
#!/bin/bash # g++ -c pointers.cpp if [ $? -ne 0 ]; then echo "Errors compiling pointers.cpp" exit fi # g++ pointers.o if [ $? -ne 0 ]; then echo "Errors linking pointers.o." exit fi # rm pointers.o # mv a.out pointers ./pointers > pointers_output.txt if [ $? -ne 0 ]; then echo "Errors running pointers." exi...
true
5661f8a3ff55551eba22eb952394f8bae5cfe656
Shell
RuoAndo/nii-cyber-security-admin
/detection/CD-session-KF/count_Session_Institutional.sh
UTF-8
2,441
3.765625
4
[]
no_license
#!/bin/bash ############## # Init ############### export PGHOST=192.168.72.2 export PGPORT=5432 export PGDATABASE=attack_data_analysis export PGUSER=niiada_rdb export PGPASSWORD=yOw8@WCv7 #################################### ### Param Check #################################### if [ $# -ne 1 ]; then echo "-------...
true
c39b830c6b6d3d0dd214eabd4692651f56debfc8
Shell
nextcloud/nextcloudpi
/bin/ncp/BACKUPS/nc-restore-snapshot.sh
UTF-8
1,800
3.46875
3
[]
no_license
#!/bin/bash #!/bin/bash # Nextcloud restore backup # # Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> # GPL licensed (see end of file) * Use at your own risk! # # More at nextcloudpi.com # install() { :; } configure() { [[ -d "$SNAPSHOT" ]] || { echo "$SNAPSHOT doesn't exist"; return ...
true
0790b2ccdb267ea6757ffd6f06441e60fc6ab948
Shell
Guardians-DSC/newbies
/respostas/anderson.vidal/exercicio_3/resposta3.sh
UTF-8
1,659
3.515625
4
[]
no_license
#!/bin/bash #Anderson Fellipe de Vasconcelos Vidal - 117110162 - anderson.vidal@ccc.ufcg.edu.br #copiando o arquivo ls.log para o diretório de trabalho cp ~/newbies/questoes/exercicio_3/ls.log . #inicializando variaveis maiorTempo1=0.0; maiorTempo2=0.0; maiorTempo3=0.0; #buscando as 3 syscall com maiores tempos de e...
true
74e48a0a4632e4de6803ad27e5cca7344fb06dfd
Shell
coocla/cmdb
/static/repo/reInstallVMsAgent.sh
UTF-8
4,005
3.859375
4
[]
no_license
#!/bin/bash #author: coocla #description: Install surge agent. just so~ function validateRunAsRoot { currentuser=`whoami` if [ "$currentuser" == "root" ];then echo `date "+%Y-%m-%d %H:%M:%S"`": 运行用户检查通过,当前用户为root" else echo `date "+%Y-%m-%d %H:%M:%S"`": 错误: 当前导入主机脚本需要以root用户运行,请切换到root用户下再执行!" exit ...
true
b416f1c24dc2d92b0e161dc7c376ffc5f62b1124
Shell
Iiishka/neucoin
/doc/contrib/windows/compile-dependencies.sh
UTF-8
4,182
3.3125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash DEPENDENCY_PATH="/c/Dependencies/" # You should not have to edit this file starting from here set -e set -u PATH=${DEPENDENCY_PATH}/mingw32/bin:$PATH cd "${DEPENDENCY_PATH}" WIN_DEPENDENCY_PATH="$(pwd -W)" find -maxdepth 1 -name '*.gz' -o -name '*.tar' -o -name '*.tar.gz' | while read archive;...
true
d39050cebc979ff995e913e9f03a0c21cc79756f
Shell
delkyd/alfheim_linux-PKGBUILDS
/seturgent/PKGBUILD
UTF-8
601
2.59375
3
[]
no_license
# Maintainer: Jiří Prokop <jprokop@synaptiko.cz> pkgname=seturgent _pkgver=1.4 pkgver=1.4.0 pkgrel=1 pkgdesc="Set an applications urgency hint (or not)" arch=('i686' 'x86_64') url="https://github.com/synaptiko/seturgent" license=('MIT') depends=('libx11') makedepends=('gcc' 'make') provides=('seturgent') source=('http...
true
5c4117156d7d9fa26a63e9b739285660717119ae
Shell
sazae657/TnkEyes
/.travis.zip.sh
UTF-8
197
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash if [ "x${TRAVIS_TAG}" = "x" ]; then echo "TRAVIS_TAG undefined" exit 9 fi rm -rf bin/zip mkdir bin/zip pushd bin zip -r zip/x86_64-linux-${TRAVIS_TAG}.zip Release || exit popd
true
2c3c4b63a5fe946298eadaf892b2ec5330750a31
Shell
thinkbot-project/api
/scripts/runserver.sh
UTF-8
752
3.5
4
[]
no_license
#!/usr/bin/env bash setup_env() { source venv/bin/activate source config/secrets/$1.sh if [ $1 = "local" ] then source ~/Work/FEniCS/dev/share/dolfin/dolfin.conf && export PYTHONPATH=${PYTHONPATH}:../:../../ && export CC=/usr/bin/gcc && export CXX=/usr/bin/g++ fi } run_webapp() { if [ $1 = "l...
true
a1f9631fffe203ba129031cee533880bb63f0682
Shell
TeX-Live/texlive-source
/texk/web2c/omegaware/ligkern.test
UTF-8
2,464
2.859375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-permissive" ]
permissive
#! /bin/sh -vx # $Id$ # Copyright 2017-2018 Karl Berry <tex-live@tug.org> # Copyright 2014 Peter Breitenlohner <tex-live@tug.org> # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _wofm2opl=$BinDir/wofm2opl$ExeExt _wopl2ofm=$BinDir/wopl2ofm$ExeExt _wovf2ovp=$BinDir/wovf2o...
true
3c170e5e7daa327d12f81e2f488728107e344ded
Shell
zouzj-2009/screwdriver
/targetcls/customized/sbin/info.target.sh
UTF-8
523
2.71875
3
[]
no_license
#!/bin/bash if [ "$1" = "-t" ];then echo "id h c s l capacity vendor type state" echo "------------------------------------------------ ------------- ---------" fi cat /proc/scsi_target/scsi_target 2>/dev/null|awk '/Target:/{ printf "%-5s %-8s %8s%s " , $2, $4, $6, $7 getline printf "%...
true
8d7846f9b52ba12b679e133958be8027c83d7891
Shell
expo/expo
/apps/bare-expo/scripts/create-emulator.sh
UTF-8
1,521
3.453125
3
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
#!/usr/bin/env bash API_LEVEL=$1 emulator_name="bare-expo" ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT:-$ANDROID_HOME} if $ANDROID_SDK_ROOT/tools/android list avd | grep -q $emulator_name; then echo " ☛ Found an existing an emulator named ${emulator_name}" exit 0; fi if [ $API_LEVEL -eq 21 ] then PACKAGE="syste...
true
305b6a4f68ace34c087568f5259d27f9f32e1a7e
Shell
omniosorg/kayak
/installer/rpool-install
UTF-8
2,376
3.578125
4
[]
no_license
#!/usr/bin/bash # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. ...
true
1751ecfc0ebcaa23a2540ec9e852fa4cd2a8bc97
Shell
sschwartz96/config
/.config/polybar/scripts/play_or_pause.sh
UTF-8
514
3.265625
3
[]
no_license
#!/bin/bash media_status=$(playerctl -playerctld status 2>&1 | tail -1) no_players="No player could handle this command" if [ "$media_status" == "$no_players" ]; then echo elif [ "$media_status" == "Stopped" ]; then echo "Stopped" elif [ "$media_status" == "Paused" ]; then playerctl --player=playerctld metada...
true
fbe655a9eba7deb855ccfc41f60e0d30f20c7b03
Shell
codacy-badger/go-learn
/install.sh
UTF-8
1,991
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash initArch() { ARCH=$(uname -m) if [ -n "$DEP_ARCH" ]; then echo "Using DEP_ARCH" ARCH="$DEP_ARCH" fi case $ARCH in amd64) ARCH="amd64";; x86_64) ARCH="amd64";; i386) ARCH="386";; ppc64) ARCH="ppc64";; ppc64le) ARCH="ppc64le";; s...
true
fbf33a9cf9ee13dc0dbf78dc26a273ee4c96ea10
Shell
AlbertYTH/dlna-microstack
/project/dlna/version.sh
UTF-8
682
3.484375
3
[]
no_license
#!/bin/bash src_dir=${PWD}/../../../include/dlna version_dir=${src_dir} file_prefix=Defines build_version=`LANG=C svn info ${version_dir} | awk -F : '$1 == "Revision" { print $2}'` build_version=`echo ${build_version}` old_header=${src_dir}/${file_prefix}.h new_header=${src_dir}/${file_prefix}.hbak cp ${src_dir}/${file...
true
dc92fe019b19ca48315914e754188791b9c9c583
Shell
Naincy224/naincyassignment
/practice problem day 7/Day7ques1.sh
UTF-8
465
3
3
[]
no_license
for (( i=0; i<10; i++ )) do num=$(($RANDOM%900 +1)); array[i]="$num"; done arraylength=${#array[*]}; echo ${array[@]}; for (( i=0; i<arraylength; i++ )) do for (( j=i+1; j<arraylength; j++ )) do if [ ${array[i]} -gt ${array[j]} ] then temp=${array[i]}; ...
true
79bec5d26da5e80f90adfaaae8fa72941f47a043
Shell
imjarp/CodeSnippets
/android_wifi_connect.sh
UTF-8
429
2.984375
3
[]
no_license
#!/bin/bash echo "--Killing adb" adb kill-server sleep 1 echo "--Starting adb" adb start-server sleep 1 echo "--Android ip device" adb shell ip -f inet addr show wlan0 sleep 1 ip=$(adb shell ip -f inet addr show wlan0 | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1) sleep 1 echo "--Restarting in usb mode" adb u...
true
8de3c50e095444b282be12393472511d79b78a3c
Shell
SebastianBurger1337/scooteq-api
/test-status.sh
UTF-8
261
2.515625
3
[]
no_license
http_code= curl -s -w "%{http_code}" localhost:8080/v1/health if [[ $http_code -eq "200" ]]; then echo "`date` - Status is lookin' good!" >> monitoring.txt else echo "`date` - Status code is NOT 200. I repeat, status code is NOT 200!" >> monitoring.txt fi
true
8713d7e333d76d4502c02625b28a32b8aafba9e0
Shell
providenetwork/indra
/ops/start-daicard.sh
UTF-8
1,000
3.578125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e # Turn on swarm mode if it's not already on docker swarm init 2> /dev/null || true project="daicard" domainname="$1" indra_url="$2" proxy_image="connextproject/daicard_proxy:latest" if [[ -z "$domainname" || -z "$indra_url" ]] then echo "daicard domain name (1st arg) and indra url (2nd arg...
true
76c6bd2ec0f4bc286606ad25509e2d189a778bfd
Shell
jmzaleski/unix
/bin/alias_shells/safeback.sh
UTF-8
301
3.46875
3
[]
no_license
#!/bin/sh dir=`date +safe.%h%d.%T` if test -d $dir then echo $0: $dir already exists. exit without copy exit 2 fi if mkdir $dir then cp *.c *.h *.style Imakefile Makefile $dir echo $0 made copy: ls -l $dir/* else echo $0: could not create $dir. exit without copy exit 2 fi exit 0
true
c560c88e06fd4d7ea9b676f0c594f65f1622f6ef
Shell
serverok/server-setup
/cpanel/php-modules.sh
UTF-8
559
2.96875
3
[]
no_license
#!/bin/bash # Author: ServerOK.in # Email: admin@serverOK.in # Install PHP modules in Cpanel Server. PHP_VERSIONS=( "56" "70" "71" "72" "73" ) PHP_MODULES=( 'curl' 'exif' 'ioncube10' 'iconv' "intl" 'fileinfo' 'fpm' 'mbstring' 'soap' 'zip' "gd" ) for ((i...
true
9e5d71cea32f5d6a50efafa633f46f6d033ba6e5
Shell
compenguy/atsam3xa
/hal/build.sh
UTF-8
261
3.09375
3
[ "0BSD", "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euo pipefail DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ACTION=${1:-build} for mcutype in $(ls ${DIR}/../pac/ | grep '^atsam3') ; do echo -e "\n--==[ ${mcutype} ]==--" cargo ${ACTION} --features ${mcutype:2} done
true
1c8c44cc7e712687fd8719f280ad4c61d1796c45
Shell
meatbeefpork/bind9
/bin/tests/system/chain/tests.sh
UTF-8
14,441
2.625
3
[ "ISC" ]
permissive
# Copyright (C) Internet Systems Consortium, Inc. ("ISC") # # 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/. # # See the COPYRIGHT file distributed with this work f...
true
da3c217cc06abf3e0501ed9e3dc415229122b593
Shell
petronny/aur3-mirror
/gnome-shell-extension-searchrecentlyused-git/PKGBUILD
UTF-8
914
3.1875
3
[]
no_license
# Maintainer: Scott Garrett <mail@exovenom.net> pkgname=gnome-shell-extension-searchrecentlyused-git pkgver=10 pkgrel=1 pkgdesc="GNOME Shell extension to search recently used files from the overview." arch=('any') url="https://github.com/bmh1980/gnome-shell-extension-searchrecentlyused" depends=('gnome-shell') license...
true
b68242ab08bf53ced63d14ad235a48fa8e35e094
Shell
thomasspitaler/craft-scripts
/private/database-restore
UTF-8
227
3.125
3
[]
no_license
#! /usr/bin/env bash # include .env file if it exists config_path=$(dirname $0)/../.env if [[ -f "$config_path" ]]; then source "$config_path" fi db_restore_cmd=$(dirname $0)/database-restore-"$DB_DRIVER" $db_restore_cmd
true
86e42df8f2e530fcd3dfd6e1b0706e0aed81a31c
Shell
Huangyan0804/Python
/Tesseract-ocr/calculator2-images/name.sh
UTF-8
191
2.625
3
[]
no_license
#!/bin/bash let i=1 path=/home/howie/Desktop/workcode/Python/Tesseract-ocr/calculator2-images echo ${path} cd ${path} for file in *.png do mv ${file} ${i}.png let i=i+1 done exit 0
true
d43d6d4ca3f6ee03f9b6b80f6ae2c918ca941a8a
Shell
apollowesley/jun_test
/tmp/sys/shell/spring cloud/dmcp
UTF-8
4,652
3.90625
4
[]
no_license
#!/usr/bin/env bash SHELL=$(basename $0) DMCP_VERSION=v2.0.0 HOST=127.0.0.1 DMCP_PREFIX=dmcp- DMCP_SUFFIX=.jar SERVICE_NAME_LIST=(nacos monitor master publish quality gateway) SERVICE_PORT_LIST=(8848 8000 8083 8081 8082 8080) error(){ echo -e "\033[31m $1 \033[0m" } success(){ echo -e "\033[32m $1 \033[0m" } ...
true
4f466b40985cbb73f4998846d8c96cea71101d3b
Shell
Abhinal/Oslab
/Assignment 2/16.sh
UTF-8
106
2.984375
3
[]
no_license
#!/bin/bash read -r num fact=1 for ((i = 2; i <= num; i++)); do fact=$((fact * i)) done echo $fact
true
ecc58f96aa38d450c59f59a1eb3663f537fd4d7f
Shell
delkyd/alfheim_linux-PKGBUILDS
/merlin-linkage/PKGBUILD
UTF-8
951
2.953125
3
[]
no_license
# Maintainer: Alex Henrie <alexhenrie24@gmail.com> pkgname=merlin-linkage pkgver=1.1.2 pkgrel=1 pkgdesc="Bioinformatics linkage analysis tool" arch=('i686' 'x86_64') url="https://csg.sph.umich.edu/abecasis/Merlin" license=('custom:merlin') depends=('zlib') source=("$url/download/merlin-$pkgver.tar.gz") sha256sums=('aa3...
true
16d2ff30007d62ce3300c523c606e109a8410942
Shell
intelsdi-x/snap-plugin-collector-pysmart
/scripts/pkg.sh
UTF-8
3,078
3.578125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #http://www.apache.org/licenses/LICENSE-2.0.txt # # #Copyright 2016 Intel Corporation # #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...
true
32bdab1891e4817d0715ba8e69eab0709e8ab5ba
Shell
RapidProjectH2020/GVirtuS
/gvirtus-installer
UTF-8
1,274
3.109375
3
[ "Apache-2.0" ]
permissive
#! /bin/bash set -e if [ $# -ne 1 ]; then echo usage: $0 "<path-of-installation-folder>" exit 1 fi INSTALL_FOLDER=$1 echo $INSTALL_FOLDER cd gvirtus #make clean ./autogen.sh --prefix="${INSTALL_FOLDER}" make make install cd .. cd gvirtus.cudart #make clean ./autogen.sh --prefix="${INSTALL_FOLDER}" make make...
true
4524bec67c2701cd294d544df4188d4746b8c364
Shell
liujicun/packages
/sh/chkhosts
UTF-8
192
3
3
[]
no_license
#!/bin/bash HLIST=$(cat /root/ipadds.txt) for IP in $HLIST do ping -c 3 -i 0.2 -W 3 $IP &> /dev/null if [ $? -eq 0 ] then echo "Host $IP is up." else echo "Host $IP is down." fi done
true
cce3b03ec59e7db56f9c569e53d91bfb7c3fc338
Shell
whit2333/spectrometer_angles
/marking_test
UTF-8
7,861
3.015625
3
[]
no_license
#!/bin/bash image_half_width=384 shms_pixels_per_tick=15.55 shms_pixels_per_floortick=14.7 # returns the correction for non linearity of camera as function of x pixel # it is the deviation from the central slope at x=384 of shms_pixels_per_floortick shms_image_delta_x() { local x="$((${1}-${image_half_width})).0" ...
true
6b9728916efc8507cb78c6b8b53dda0a3cad25dd
Shell
gstackio/dingo-postgresql-release
/jobs/router/templates/bin/haproxy_ctl
UTF-8
1,619
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e PATH=/var/vcap/packages/haproxy/bin:$PATH PID_FILE=/var/vcap/sys/run/router/haproxy.pid NAME=haproxy DAEMON=$(which haproxy) CONFIG=/var/vcap/sys/run/router/haproxy.cfg DESC="HAProxy" USER=vcap TIMESTAMP=$(which date) set +e error_code=x i="0" while [[ $i -lt 20 && "${error_code}" != "0" ]]; do...
true
e9f18ee326f2deb1faa9813cb4a2abe88f79d266
Shell
mirabilos/shellsnippets
/mksh/sysadmin/mvndput.sh
UTF-8
2,509
3.71875
4
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/mksh # $Id: mvndput.sh 2077 2011-06-09 12:30:40Z tglase $ #- # Copyright (c) 2011 # Thorsten Glaser <t.glaser@tarent.de> # # Provided that these terms and disclaimer and all copyright notices # are retained or reproduced in an accompanying document, permission # is granted to deal in this work without restrictio...
true
07382ce9b282e35fe9e282c36bd5e02814fe4548
Shell
jhoblitt/puppet-display
/templates/debian/xvfb.erb
UTF-8
685
3.4375
3
[]
no_license
#!/bin/sh DISPLAY=:<%= scope.lookupvar('display::display') %> WIDTH=<%= scope.lookupvar('display::width') %> HEIGHT=<%= scope.lookupvar('display::height') %> COLOR=<%= scope.lookupvar('display::color') %> XVFB=/usr/bin/Xvfb ARGS="$DISPLAY -nolisten tcp -fbdir /var/run -screen 0 ${WIDTH}x${HEIGHT}x${COLOR...
true
de3fec32f724f5e5cc4a87277972ba9fbce80401
Shell
rbhenao/hensystem
/.bash_aliases
UTF-8
1,037
3.40625
3
[]
no_license
alias tor='cd /home/ryan/tools/tor-browser_en-US; ./start-tor-browser.desktop' alias npm-exec='PATH=$(npm bin):$PATH' alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # function to create a bash script and make it executable. function tchmod() { if [[ -n "$1" ]]; then echo "#!/bin/bash" >> $1 && chmod...
true
c3f84a2d6913e3132594cc7925f72f0dee19d006
Shell
12buntu/practice-git
/push.sh
UTF-8
829
3.78125
4
[]
no_license
#!/bin/bash echo -e "What is your name?\n" read name date=$( date +%m/%d/%y ) git checkout -B $date-$name git add --all echo -e "This should push code from your computer to the master (default) branch of the git repository as well as create a new branch for today, for backup" echo -e "\nCommit message: (type 'skip' i...
true
b3783894b8ea6bece787a0333a72e1993e69d232
Shell
applied-systems-biology/misaxx-utils
/linux-builds/generic/install-opencv.sh
UTF-8
1,143
2.890625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash OPENCV_SOURCES="https://github.com/opencv/opencv/archive/3.2.0.zip" OPENCV_CONTRIB_SOURCES="https://github.com/opencv/opencv_contrib/archive/3.2.0.zip" source ./commons.sh download_zip_if_not_exist $OPENCV_SOURCES opencv-3.2.0 download_zip_if_not_exist $OPENCV_CONTRIB_SOURCES opencv_contrib-3.2.0 OPENCV...
true
2292367b5731f517cee497354a049a0a98738e1a
Shell
kaihowl/dotfiles
/zsh/test.sh
UTF-8
372
2.65625
3
[ "MIT" ]
permissive
#!/bin/zsh -i set -e echo "Test that start up and basic user input to shell work without errors" # This was added after a faulty linter change led to printing the following on all key presses # sh:1: url-quote-magic: function definition file not found expect -c "strace 4" "$DOTS/zsh/userinput.test.expect" echo "Check...
true
d3130257a8bfeab73453cebaadf68bdd9ca13dc2
Shell
lgannoaa/global-workflow
/ush/wave_outp_spec.sh
UTF-8
8,084
3.5625
4
[]
no_license
#!/bin/bash # ################################################################################ # # UNIX Script Documentation Block # Script name: wave_outp_spec.sh # Script description: Generates ASCII data files with the wave spectral data...
true
4e274f484b823c2372fd8d0bd0f99da0edb2ca5c
Shell
vimukthi-git/go-centrifuge
/build/scripts/run_swagger.sh
UTF-8
379
2.59375
3
[ "MIT" ]
permissive
#!/bin/sh SWAGGER_PATH=$GOPATH/src/github.com/centrifuge/go-centrifuge/centrifuge/invoice echo "Launching swagger-ui docker container..." echo "Loading swagger.json from: $SWAGGER_PATH" echo "Go to http://localhost:8085/ to access it once it's done starting." docker run --rm -p 8085:8080 -e SWAGGER_JSON=/data/invoice....
true
8fe8557dd66e6544d9b878ffe133435e0f5b7f98
Shell
levithomason/dotfiles
/git/aliases.zsh
UTF-8
7,120
3.828125
4
[ "MIT" ]
permissive
# Use `hub` as our git wrapper: # http://defunkt.github.com/hub/ hub_path=$(which hub) if (( $+commands[hub] )) then alias git=$hub_path fi alias ga=fnGitAdd alias gb=fnGitBranch alias gba='git branch -a' alias gd=fnGitDelete alias gdf=fnGitDeleteFeature alias gbm=fnGitBranchMaster alias go=fnGitCheckout alias gol=fn...
true
c0cd799bbb7f445ec9a2b00d1e5aca577e5cea53
Shell
kazuhikoh/toqi
/cron/download-marunare.sh
UTF-8
535
2.984375
3
[]
no_license
#!/bin/bash PATH=/usr/local/bin:$PATH PATH=$PATH:~/bin PATH=$PATH:~/.npm-global/bin readonly OUT_DIR="$1" readonly SLACKPOST_ID="$2" cd "$OUT_DIR" hibikiradio download sora 'marunare.${program.episode.updated_at.slice(0,10).replace(/\//g,"")}.archive.mp4' exitcode=$? { echo "(⊃^ω^)⊃ DOWNLOAD: 徳井青空のまぁるくなぁれ! (アーカイブ...
true
dd894b5e0338e7ef74af03be284794535f25a235
Shell
oottppxx/enigma2
/plugins/quarterpounder/src/make.sh
UTF-8
770
3.015625
3
[ "MIT" ]
permissive
#!/bin/bash PKG_NAME=$(grep OE control.tmpl | cut -d" " -f2) CONTROL_FILES="postrm postinst preinst" DATA_PATH=/usr/lib/enigma2/python/Plugins/Extensions/QuarterPounder DATA_FILES="README.txt quarterpounder.png setup.xml plugin.py __init__.py" VERSION_FILE=plugin.py VERSION=$(grep VERSION= ${VERSION_FILE} | cut -d= -f2...
true
2104aa841984559ecc2fe5d85dfbab5ff5db12a1
Shell
Goshagosha/mcontroller
/findports.sh
UTF-8
189
2.59375
3
[]
no_license
#!/bin/bash ls -1 /dev > ~/before.txt; read -p "Plug in device and press something to continue"; ls -1 /dev > ~/after.txt; diff ~/before.txt ~/after.txt; rm ~/before.txt; rm ~/after.txt
true
5b654bd67deccc423f9962b3447e502f7618de0e
Shell
pigetnet/core
/system/removeAccount
UTF-8
193
3
3
[]
no_license
#!/bin/bash /show/description "Removing user $1" if id -u "$1" >/dev/null 2>&1; then userdel $1 else /show/nlbecho "User doesn't exists";/show/minibox_SKIP /show/listUsers fi
true
d1a0c2d4dd7c77f621c0e884b6f4b118a18785dc
Shell
sulavtimilsina/qiskit-terra
/tools/ghpages_documentation_deploy.sh
UTF-8
1,711
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # Authors: Diego M. Rodriguez <diego.moreda@ibm.com> # Script for generating the sphinx documentation and deploying it in the # Github P...
true
f4cb3dc3d75a7e1c4a3b9599c9fd6659605de35c
Shell
nickvollmar/dotfiles
/gitalt.sh
UTF-8
967
4
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Usage: # From a clean git directory, invoke `git alt` to quickly create a "backup" # branch whose name is ${current_branch}-alt. # # I realize this is not idiomatic Git -- arguably, the point of source control # is that you shouldn't need to do this. But I often rebase my work-in-progress # branc...
true
13c4b4edfc9826c968460853fd453bdaba0efbaa
Shell
fossabot/MQTT-Explorer
/scripts/uiTests.sh
UTF-8
1,320
3.328125
3
[]
no_license
#!/bin/bash function finish { echo "Exiting, cleaning up" tmux send-keys -t record q || echo "No tmux was running" #echo kill $PID_XVFB $PID_CHROMEDRIVER $PID_MOSQUITTO #kill $PID_XVFB $PID_CHROMEDRIVER $PID_MOSQUITTO } trap finish EXIT DIMENSIONS="1024x720" SCR=99 # Start new window manager Xvfb :$SCR -scre...
true
af16b9d69dc3744e89e994f7741b9446cba5cb37
Shell
sbendavi/gerrit-admin
/hooks/custom_hooks/patchset-created.bz.98.set_POST
UTF-8
2,080
3.859375
4
[]
no_license
#!/bin/bash ## @file ## Moves the bugs in the commit message to POST state. Configuration variables: ## - CHECK_TARGET_RELEASE -> Pairs of 'branch|regexp' to match agains the bug ## target release, if regexp starts with '!' it will be negated ## - US_PRODUCT - Name of the downstream product ##################...
true
4b3d90567264d52c3acdebb98ff50381300ad17c
Shell
marlemion/datafari
/debian7/bin/start-datafari.sh
UTF-8
9,050
3.3125
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-free-unknown", "LGPL-2.1-or-later", "LGPL-2.0-or-later", "OFL-1.1", "LicenseRef-scancode-jdom", "BSD-3-Clause", "CDDL-1.0", "PostgreSQL" ]
permissive
#!/bin/bash -e # # # Startup script for Datafari # # if (( EUID == 0 )); then echo "You need to be a non-root user to run this script." 1>&2 exit 100 fi DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${DIR}/set-datafari-env.sh" source "${DIR}/utils.sh" source $INIT_STATE_FILE source $CONFIG_FILE...
true
4a786d87c11b2c68599f072c957f5faac9691011
Shell
DrTom/debuntu_setup_scripts
/bin/debuntu_fun.sh
UTF-8
36,930
3.40625
3
[ "Unlicense" ]
permissive
function debuntu_ci_chromedriver_install { TMDIR=`mktemp -d` cd $TMDIR MACHINE_BITS=`uname -m | cut -d '_' -f 2` curl -s -L "http://chromedriver.storage.googleapis.com/2.8/chromedriver_linux${MACHINE_BITS}.zip" > chromedriver.zip unzip chromedriver.zip mv chromedriver ~/bin cd rm -rf $TMDIR } function debuntu_ci_domin...
true
7537f6821a274e1b4dcde3e61a083ccf690acd43
Shell
dwaipayanroy/WebDoc_Indexer_Retriever_QE
/scripts/index-tar.sh
UTF-8
1,880
3.921875
4
[]
no_license
#!/bin/bash # Generate the properties file and consequently execute the CollectionIndex program cd ../ # readlink (for getting the absolute path) must be installed if [[ "$USER" == "dwaipayan" ]]; then stopFilePath="/home/dwaipayan/smart-stopwords" else homepath=`eval echo ~$USER` stopFilePath="$homepath...
true
0d13df56532b1f947b021820bc4649959c8a417b
Shell
emersion/chameleon
/deploy/release_bundle
UTF-8
1,430
3.953125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # Copyright (c) 2014 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. GS_MIRROR_URL='gs://chromeos-localmirror' HTTP_MIRROR_URL='http://commondatastorage.googleapis.com/chromeos-localmirror' BUNDLE_PATH='distfi...
true
c004379dc362f6543beea5ef6e37409c1e157315
Shell
invinst/CPDBv2_backend
/bin/pg_dump.sh
UTF-8
1,190
3.90625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/.. FILE_DIR="$(cd "$(dirname "$2")"; pwd)" if [ "$1" == "-h" -o "$1" == "--help" ]; then echo "Dump data from PostgreSQL database." echo "" echo "Usage: `basename $0` {--production|--beta|--staging|--local(default)...
true
c26833df6ecc825b8d4d5b6a50c2aed7b2310a13
Shell
krahul084/my_shellscripts
/arraysh.sh
UTF-8
225
3.203125
3
[]
no_license
#!/bin/bash #Simple script to loop over the array myarray=("websrv1" "krahulsrv1" "websrv2" "websrv5") COUNT=0 for index in ${myarray[@]}; do echo "Processing for server: ${myarray[COUNT]}" COUNT=$(( $COUNT + 1 )) done
true
6e03946bc8cb82acd14068525c6fa81a05076b44
Shell
jaybpaid/telmore-platform-automation
/terraform/concourse/0-set-env.sh
UTF-8
448
2.515625
3
[]
no_license
#!/bin/bash -e echo "Enter the opsman user name: " read varname export OM_USERNAME=$varname echo "Enter the opsman password: " read varname export OM_PASSWORD=$varname echo "Enter the decryption passcode: " read varname export OM_DECRYPTION_PASSPHRASE=$varname echo "Enter the Concourse admin user name: " read va...
true
d43fc4c3a3c765f42e4af795018be02b9f9692d7
Shell
EnriquePernia/Delete-Github-Repo
/scripts/delete_repos.sh
UTF-8
488
3.484375
3
[]
no_license
#!/bin/sh # Delete a bunch of GitHub repos #Declare repos list, as there isn't really a good way to encode an array variable into the environment. REPOS="repo1 repo2" # Local .env if [ -f .env ]; then # Load Environment Variables export $(cat .env | grep -v '#' | awk '/=/ {print $1}') fi for repo in $REPO...
true
9c8225523ba319a28df8f5b9afa7b980f5b72531
Shell
adrifromhh/cutaudio
/cutaudio.sh
UTF-8
2,197
4.09375
4
[]
no_license
#!/bin/bash # Verbose mode #verbose="TRUE" syntax="cutaudio.sh INPUT OUTPUT LENGTH TITLE" if [[ $# -lt 4 ]]; then echo "-- Too few arguments --" echo "Please specify at least an input file, output file and a duration for resulting chunks" echo "Syntax: $syntax" exit 1 elif [[ $# -gt 4 ]]; then echo ...
true
ce23e2a390b89937678de0dce2e4e3646095ba0e
Shell
ByteHackr/ctf-writeups
/tryhackme/bof1.sh
UTF-8
2,209
3.421875
3
[]
no_license
#!/usr/bin/env bash # simple script to solve tasks eight and nine (the final two overflows) of the buffer overflow room # on tryhack me: https://tryhackme.com/room/bof1 # based on the write-up here: https://l1ge.github.io/tryhackme_bof1/ # this room is not as easy as it makes itself out to be :D # util function in ...
true
ff15a3d1ab49c442bced694708c2e4d0d11a952d
Shell
haitaoge/micapipe
/functions/01_proc-dwi.sh
UTF-8
12,963
3.65625
4
[]
no_license
#!/bin/bash # # DWI structural processing with bash: # # Preprocessing workflow for diffusion MRI. # # This workflow makes use of MRtrix3 # # Atlas an templates are avaliable from: # # https://github.com/MICA-MNI/micaopen/templates # # ARGUMENTS order: # $1 : BIDS directory # $2 : participant # $3 : Out parcDir...
true
ab3daea2185abb197ea88dfa131bfedf49d09807
Shell
jsonlee0x01/mallacc
/scripts/measure_sampling_overhead.sh
UTF-8
552
2.671875
3
[]
no_license
#!/bin/bash BMK_LINE="./Xalan_base.O3gcc -v t5.xml xalanc.xsl" BMK_LINE="/home/skanev/gperftools/output_no_magic/gauss_native" SAMPLING_EVENTS="INSTRUCTIONS_RETIRED:period=2000003" COUNTING_EVENTS="INSTRUCTIONS_RETIRED" SAMPLING_LINE="perf record --pfm-events ${SAMPLING_EVENTS} -o GLOB -- ${BMK_LINE}" COUNTING_LINE...
true
1d86e9946618905b1d5f6535f41c3afe86dcdb9c
Shell
sandboxww/it
/Scripts/printing/Add_GA_Printers_2015.sh
UTF-8
5,044
2.546875
3
[]
no_license
#!/bin/bash #This script will reset printing system #Stop CUPS launchctl stop org.cups.cupsd #Backup Installed Printers Property List if [ -e "/Library/Printers/InstalledPrinters.plist" ] then mv /Library/Printers/InstalledPrinters.plist /Library/Printers/InstalledPrinters.plist.bak fi #Backup the CUPS conf...
true
c359f8070c457d63c3f738f64b83d04a4a6d8acf
Shell
9ightcor3/Camouflage-Multifunctional-Bot
/script.sh
UTF-8
1,125
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh Text_To_Display() { echo "###############################################################################" echo " " echo " Choose the option for the necessary Operation" echo " " echo " 1. BORDER SECURITY " echo " " echo " 2. BOMB DETECTION " echo " ...
true
3a2c1cc9613e8958f92cdd73889b6e570d3ea97b
Shell
ChastityAM/LinuxShell
/Lab2_5.sh
UTF-8
671
3.546875
4
[]
no_license
#!/bin/bash #************************************** # Script for calculator # Author: Chastity M Date: 11 FEB 2021 #************************************** echo "Enter first number" read x echo "Enter second number" read y addition(){ add=$(( x + y )) echo "Add: " $add subtraction #invoke function in anoth...
true
e99daa4608ac2f71b799cdbe906f480b8d02d218
Shell
choko343/mptcp_shell
/slave.sh
UTF-8
2,096
3.140625
3
[]
no_license
#!/bin/bash -u umask 000 cwd=`dirname $0` cd $cwd if [ -e "function.sh" ]; then source "function.sh" else echo "function.sh does not exist." exit fi source rootdir.txt if [ -e "default.conf" ]; then source default.conf check_exist_extended_parameter fi kernel=$(uname -r) rcv_command=$1 if [ "...
true
5cdc041c3b1aa43cce1af0b7e66f163de402ca8e
Shell
SliTaz-official/tazirc
/tazirc-lb
UTF-8
1,714
4.125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # # TazIRC-lb - SliTaz IRC Log Bot : Keep it very small! # # Copyright 2014 (C) SliTaz GNU/Linux - BSD License # Author: Christophe Lincoln <pankso@slitaz.org> # . /lib/libtaz.sh # Internationalization TEXTDOMAIN='tazirc' export TEXTDOMAIN # Help and usage if [ ! "$1" ] || [ ! "$2" ]; then cat << EOT $(bo...
true
401201e41da880eac96f1b42c8ad425a8cf9b136
Shell
michelllee/learning-the-shell
/files-practice-1.sh
UTF-8
509
4.125
4
[]
no_license
#!/bin/bash # 1. Print out 'Enter a filename to check: ' # 2. Read user input into a variable `fileName` # 3. Print out 'Checking existence of [fileName]....' # 4. Use an if statement to print out either 'Exists' or 'Does not exist' # 5. Test out the command with an existing file # 6. Test out command with a file that...
true
c8681c257ede14fbfe0b69ad333cfb197e1684a4
Shell
nirgeier/git-scripts
/bisect/generateRandomChanges.sh
UTF-8
1,168
4.375
4
[]
no_license
#!/bin/bash echo -e "" echo -e "${Yellow}How many files to generate: [default: 3]${Color_Off}" read count if [ -z "$count" ]; then count=3 fi typeset -i count if [ "$count" -lt 1 ]; then echo -e "${Red}Please set number greater then 0" exit fi echo -en "${Yellow}Type the file name that you want to use: [d...
true
a6db8f8cbd8efa4511d626b4e67d3d623200deae
Shell
NuSkooler/enigma-bbs
/misc/install.sh
UTF-8
6,007
4.0625
4
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash { # this ensures the entire script is downloaded before execution ENIGMA_NODE_VERSION=${ENIGMA_NODE_VERSION:=14} ENIGMA_BRANCH=${ENIGMA_BRANCH:=master} ENIGMA_INSTALL_DIR=${ENIGMA_INSTALL_DIR:=$HOME/enigma-bbs} ENIGMA_SOURCE=${ENIGMA_SOURCE:=https://github.com/NuSkooler/enigma-bbs.git} TIME_FORMAT...
true
072ef72c1f5a5c8b2b73ff0751a2c91e7d9a2d9c
Shell
vrajesh-r/shopify-plugin-backend-test
/deploy/rootfs/usr/bin/migration
UTF-8
1,068
3.125
3
[]
no_license
#!/usr/bin/env sh if [ "$SLICE_ENVIRONMENT" == "true" ]; then apk add postgresql-client export PGUSER="$SHOPIFY_PLUGIN_BACKEND_POSTGRES_MIGRATION_USERNAME" export PGPASSWORD="$SHOPIFY_PLUGIN_BACKEND_POSTGRES_MIGRATION_PASSWORD" export PGDATABASE="$SHOPIFY_PLUGIN_BACKEND_POSTGRES_DATABASE" export P...
true
a3b4b9cea1f1862002b4d65f6e21756837c2213b
Shell
jgroszko/dotfiles
/install.sh
UTF-8
775
3.421875
3
[]
no_license
#!/bin/bash -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # # Requirements: # # - Fura Code or similar font with powerline glyphs # # # tmux conf # pipenv run jinja2 tmux.conf.tmpl colors.local.json > tmux.conf if [ ! -e ~/.tmux.conf ]; then ln -s $DIR/tmux.conf ~/.tmux.conf fi pipenv...
true
616f22458746842c63bf5ea81cb54ec1acb3bfdd
Shell
sumoii/STLFRassembly
/shellfile/bin/Step.4.1.2.quast.sh
UTF-8
825
3.390625
3
[]
no_license
#!usr/bin # -N quast helpdoc(){ cat << EOF Description: Quast of assembled genomic Option: -f The path of assembled file -q The path of quast.py EOF } while getopts ":f:q::h help" opt do case $opt in f) assembly=$OPTARG ;; q) quast=$OPTARG ;; ...
true
952af9f9169cd0da289192747eb844706ba6db2a
Shell
hyperledger/aries-agent-test-harness
/aries-test-harness/allure/same_as_yesterday.sh
UTF-8
620
3.484375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This directory is where you have all your results locally, generally named as `allure-results` ALLURE_RESULTS_DIRECTORY='./allure-results' # Project ID according to existent projects in your Allure container - Check endpoint for project creation >> `[POST]/projects` PROJECT_ID=${PROJECT_ID:-general} DIR...
true
dfbb7ffb9279e753784f2f1aaa446f72f1396fb0
Shell
patryk-gpl/jumpstart-kali
/scripts/install_default_tools.sh
UTF-8
933
3.25
3
[ "MIT" ]
permissive
#!/bin/bash -e # # This script will create a default group and user work_dir=$(dirname $(realpath $0)) source $work_dir/common.sh isPrivilegedUser eLog "Update APT packages" apt-get update eLog "Install Python3.7, pip, vim" apt-get install -y \ chromium \ curl \ lsb-release \ ...
true
0300fee1d232f4a0f5325a275516a7798f9d449b
Shell
bmchrist/dotfiles
/zsh/prompt.zsh
UTF-8
1,535
3.03125
3
[]
no_license
autoload -U promptinit promptinit autoload -U colors && colors autoload -Uz vcs_info zstyle ':vcs_info:git:*' check-for-changes true zstyle ':vcs_info:*' stagedstr "${fg[red]}!${reset_color}" zstyle ':vcs_info:*' unstagedstr "${fg[yellow]}?${reset_color}" zstyle ':vcs_info:*' enable git svn #hg ssh_conn="" if [[ -n ...
true
d2f682d8f6dd17a4fb74655106108c5c117602cc
Shell
Zengwn/android-platform-ndk
/build/tools/unpack-cache.sh
UTF-8
1,138
3.1875
3
[]
no_license
#!/bin/bash # # Copyright (C) 2013, 2014 The Android Open Source Project # # 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 require...
true
e6d5047b4391125d9694406f0d7befa9505a4054
Shell
9d0/thinkfan
/thinkfan
UTF-8
173
3
3
[]
no_license
#!/bin/rc fn usage { echo usage: thinkfan [0-7] exit usage } switch($#*){ case 0 io -Er 0x2f | sed 's/0x//' case 1 ~ $1 [0-7] || usage io -Ew 0x2f $1 case * usage }
true
9c1b991203604e6c77519f3724572563b262b724
Shell
Kichkun/dostav.ai
/vovan_lkh/workdir/PDPTW/run_PDPTW
UTF-8
737
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # Usage: ./run_PDPTW class name max_trials runs [ optimum ] if [ -z "$4" ]; then echo "./run_PDPTW class name max_trials runs [ optimum ]" exit fi lkh="../../LKH" class=$1 name=$2 max_trials=$3 runs=$4 optimum=$5 par=TMP/$name.pid$$.par mkdir -p TOURS mkdir -p TOURS/$class mkdir -p TMP echo "SPE...
true
57a986d8027ddda322de30015c9961cb4898d8a8
Shell
telamonian/dotfiles
/src/dotvars.sh
UTF-8
380
3.109375
3
[]
no_license
#!/usr/bin/env bash # some common vars used by several bash files in this package if [ -z "${DOT_REPO}" ]; then echo "DOT_REPO not defined" >&2; exit 1; fi # relative paths (with respect to DOT_REPO) DOT_BASH="bash_profile.d" DOT_BUNDLE="bundle_spec.d" DOT_HOME="home.d" DOT_SETTING="setting.d" DOT_VM="virtual_machin...
true
cc121e465b821cb32506344ff39f804725f4e58a
Shell
ClockworkNet/cmc
/cmc
UTF-8
11,863
4.25
4
[ "MIT" ]
permissive
#!/bin/bash # # ControlMaster Controller - Eases management of SSH ControlMaster connections # # Notes # • `kill -sigalrm SESSION_PID` will result in SSH leaving a stale socket # #### SETUP #################################################################### set -o errexit set -o errtrace set -o nounset #### Variables...
true
ac4d69906427f2154a68c9aa621013f56c77a6f2
Shell
RyanTech/yueji
/tools/study/linux/script/test.sh
UTF-8
58
2.515625
3
[]
no_license
#!/usr/bin/env bash for i in {1..10} do echo $i done
true
4fcc09f3c8ccffce30e7e09850673a0097a25004
Shell
ryandavis3/probash
/ch6/ex1.sh
UTF-8
978
4.28125
4
[]
no_license
#!/bin/bash # Rewrite 'isvalidip' using parameter expansion instead of # changing IFS # Check argument for valid dotted-quad IP Address isvalidip2() #@ USAGE: isvalidip DOTTED-QUAD { case $1 in # reject the following: # empty string # anything other than digits and dots # an...
true
a02b341726c17255edb246065fdfeecf7f09e476
Shell
pratyush1999/SOME-MORE-BASH-SCRIPTS
/q15.sh
UTF-8
701
3.109375
3
[]
no_license
#! /bin/bash k=0 for i in `cat q15_url.txt` do x[k]=$i k=`expr $k + 1` done wget --no-proxy -O q1.html ${x[0]} > /dev/null 2>&1 wget --no-proxy -O q2.html ${x[1]} > /dev/null 2>&1 cat q1.html q2.html > q3.html k=0 for i in `sed 's/<[^>]*>//g' q3.html |sed 's/[^[:alnum:]]\+//g' |sed '/^\s*$/d'| tr ' ' ...
true
65300e547582e215bb3729a7d94fe2e9caff7d6b
Shell
Geonaute/BashSetups
/Master.sh
UTF-8
491
3.078125
3
[]
no_license
#!/usr/bin/bash clear echo echo echo "Welcome to Deamon Industries" echo "===This is the master controler==" echo echo break="===============================" echo $break echo "1. Recon People" echo "2. Recon Domain" echo "3. Open list in Firefox" echo "4. Open Domain's robot.txt in firefox" echo echo -n "Choice: " ...
true
4bc6fd1526198cf5276f5e03b9ce43b944df7257
Shell
thynson/neovim
/scripts/get-libuv.sh
UTF-8
363
2.65625
3
[ "Vim" ]
permissive
. scripts/common.sh uv_repo=joyent/libuv uv_ver=v0.11.19 uv_dir="$deps/uv-$uv_ver" uv_sha1=5539d8e99e22b438cf4a412d4cec70ac6bb519fc rm -rf "$uv_dir" github_download "$uv_repo" "$uv_ver" "$uv_dir" "$uv_sha1" cd "$uv_dir" sh autogen.sh ./configure --prefix="$prefix" make make install rm "$prefix/lib/"libuv*.{so,dylib}...
true
bbc14f51b66b8f6c4d3dab4b3a5efab5cc01c23c
Shell
kellyt1/vue-ui-sample-2
/deploy/scripts/env.sh
UTF-8
1,826
3.5
4
[]
no_license
#! /bin/bash # env.sh # set application specific items export WEB_SUBDOMIAN=hepdataportalui export STACKNAME=$WEB_SUBDOMIAN-ui-s3cloudfront-stack CERT_ARN_NONPROD=arn:aws:acm:us-east-1:938619397650:certificate/4fe467c4-09e0-4115-b91c-819505c63b26 CERT_ARN_PROD=arn:aws:acm:us-east-1:100582527228:certificate/TBD # set...
true
26672595cfc0a8ea8f5be0f730aaae733d4ca6c0
Shell
af1tgc/temporary
/HPUX.sh
UHC
126,719
3.359375
3
[]
no_license
#!/bin/sh LANG=C export LANG alias ls=ls CREATE_FILE=`hostname`"_hpux_"`date +%m%d`.txt CHECK_FILE=`ls ./"$CREATE_FILE" 2>/dev/null | wc -l` perm_check() { unset FUNC_FILE unset PERM unset NUM unset PERM_CHECK unset OWNER_FUNC_RESULT unset PERM_FUNC_RESULT unset VALUE FUNC_FILE=$1 ...
true
f6a57df02ebc00367dfee6b5fa4cbdda39c8450f
Shell
aswna/vimdeck-show
/bin/show.sh
UTF-8
3,364
3.953125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e set -u # some box drawing characters (see the full list at the end of this file) # ┌─┬─┐ ╭─┬─╮ # ├─┼─┤ ├─┼─┤ # └─┴─┘ ╰─┴─╯ # some dots, circles, and boxes # ·・•⚫⬤● ⚬⚪○○ ◌ # ░ █ ▄ ▀ FILEPATH=$(readlink -f "${BASH_SOURCE[0]}") SCRIPT_DIR=$(cd "$(dirname "${FILEPATH}")" && pwd) REAL_BASE_DIR=...
true
08b56639bb72925b98c68ad210ea3e2a0d1034fe
Shell
scottt/godev-container
/.bashrc
UTF-8
441
2.90625
3
[]
no_license
# User specific aliases and functions export HISTSIZE=200000 # ignoreboth equals ignoredups and ignorespace # the latter is used like an "incognito mode" for the shell export HISTCONTROL=ignoreboth alias gdb='gdb -q' mkcd() { case $# in 1) local D=$1 ;; *) printf 'usage: mkcd DIR-NAME\n'>&2 ; return 2 ;; esac mk...
true
05ecd14f1c1eb4a9b100a433fe040378b855ec5d
Shell
atisu/image-synthesis
/frontend/testing/cancel_request.sh
UTF-8
179
2.546875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -eq 0 ] then echo "$0 <request_id>" exit 1 fi curl -H "Content-Type: application/json" -X DELETE http://localhost:4000/api/imagebuilder/build/$1
true
0f55f80ffe730e5ef95f938a233a5d174a5111c7
Shell
bbockelm/cvmfs-stratum1-replicator
/stop-cvmfs-snapshots
UTF-8
660
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# != 0 ]; then if [ $# -gt 1 ] || [ "$1" != "-f" ]; then echo "Unrecognized option(s): $*" >&2 echo "Usage: stop-cvmfs-snapshots [-f]" >&2 echo " Stops new cvmfs snapshots from starting." >&2 echo " The [-f] option immediately stops running snapshots too." >&2 ...
true
16ba10085ceaa140ad980eebf711ac3267ea8656
Shell
Global-localhost/okd-machine-os
/entrypoint.sh
UTF-8
4,337
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -exuo pipefail REPOS=() STREAM="next-devel" REF="fedora/x86_64/coreos/${STREAM}" # additional RPMs to install via os-extensions EXTENSION_RPMS=( NetworkManager-ovs checkpolicy dpdk gdbm-libs glusterfs glusterfs-client-xlators glusterfs-fuse kernel-devel kernel-headers libdrm libgfr...
true