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
63cefb41ad9dcac43fce5a68b35cc40dbd882dbe
Shell
stv2509/microservices
/ansible/instance/01-install_package.sh
UTF-8
1,156
3.296875
3
[]
no_license
#!/bin/bash ################################################################# echo "##- Install CFSSL -##" wget -c -q --https-only --timestamping \ https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 \ https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 chmod +x ./cfssl_linux-amd64 ./cfssljson_linux-amd64 sudo mv -f...
true
70bba370b474c43d5519c9dab86ec64a337a1367
Shell
billhinkle/lutronsmartthings
/lutronpro_pinger/lutronize
UTF-8
5,488
3.875
4
[]
no_license
#!/bin/bash # lutronize - send commands directly to the Lutron node server for SmartThings # don't forget to chmod +x lutronize # n.b. do yourself a favor: keeping further options in alphabetical order. / wjh 20180117 / Bill Hinkle lnsuri="http://localhost:5000/" errcho(){ >&2 echo $@; } isnumeric() { [[ $1 =~ ^[0-9]+...
true
4d568de1d53822a3de90ac2a504bc09cf0063290
Shell
Colin-Ragush/AWSR
/scripts/08_terminate_ec2.sh
UTF-8
901
4.21875
4
[ "MIT" ]
permissive
#!/bin/bash # Terminate a known Amazon EC2 Instance # load local settings if not already loaded [[ $SCR_DIR ]] || SCR_DIR="$(cd "$(dirname "$0")/."; pwd)" [[ $PRJ_DIR ]] || source "$SCR_DIR/02_setup.sh" # terminate a known instance if [[ -z $EC2_INSTANCE_ID ]]; then echo -e "$ERROR No EC2 Instance ID found." \...
true
3d724093edd326f140b7e8a4ca0270f1bf46fd6f
Shell
fspieler/dotfiles
/fun-scripts/strjoin
UTF-8
318
3.859375
4
[]
no_license
#!/bin/bash # if first arg is -p, an extra delimiter will precede output if [ x"$1" == x"-p" ] ; then firstflag=false; shift else firstflag=true fi delim=$1 final="" for i in ${@:2} ; do if [ $firstflag = true ] ; then final=$i firstflag=false else final=$final${delim}$i fi done echo $final
true
7e8d40f8f754742fff4fc23843c164c6fb214a30
Shell
nynhex/Perinoid_Linux_Project
/functions/privoxy/source_privoxy_functions.sh
UTF-8
915
2.984375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Source_privoxy_functions(){ _dir="${1:-$_script_dir}/functions" source "${_dir}/privoxy/config_privoxy/privoxy_client_configs.sh" source "${_dir}/privoxy/init_scripts/privoxy_init_client.sh" source "${_dir}/privoxy/lib_activations/activate_privoxy_configs.sh" source "${_dir}/privoxy/installers/aptget_privoxy_insta...
true
308512d1f027a8748c2bdb97b0a2b76410effc9f
Shell
mooosword/myscripts
/bin/backup.sh
UTF-8
283
3.703125
4
[]
no_license
#!/bin/sh if [ $# -lt 1 ]; then echo 'Usage: backup [filename]' exit fi filename=$1 ext=${filename##*.} echo $ext if [ $ext = 'pdf' ] || [ $ext = 'doc' ] || [ $ext = 'docx' ] || [ $ext = 'chm' ]; then cp $filename ~/Documents/Books/ cp $filename ~/mybooks/ fi
true
d9f973d38c51ac4f0715ebd1a8a9bb8eba5141f3
Shell
kadensungbincho/Online_Lectures
/Udemy/shell_scripting/logging2.sh
UTF-8
251
3.609375
4
[]
no_license
#!/bin/bash logit() { local LOG_LEVEL=$1 shift MSG=$@ TIMESTAMP=$(date +"%Y-%m-%d %T") if [ $LOG_LEVEL = 'ERROR' ] || $VERBOSE then echo "${TIMESTAMP} ${HOST} ${PROGRAM_NAME}[${PID}]: ${LOG_LEVEL} ${MSG}" fi }
true
07cc85d0fd66d05849cd0ab2a86875b38422dd75
Shell
nunojun/docker-common
/registry/run-registry.sh
UTF-8
884
4.15625
4
[]
no_license
#!/bin/bash # Default values for registry PORT=5000 NAME="registry" # Parse options usage() { echo "Usage: $0" echo " -h : shows the usage" echo " -n <registry-name> : optional. \"registry\" is the default name." echo " -p <port-number> : optional. \"5000\" is the default port number." ex...
true
361a972d4b86762832e411dc7f65ebcf8e5b0b88
Shell
d123456ddq/FCRN-DepthPrediction
/tensorflow/scripts/encode_video_jet.sh
UTF-8
535
2.53125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # Dependencies: sudo apt-get install ffmpeg ffmpeg -r 30 -f image2 -s 304x288 -i output/fcrn_cv/frame%06d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p output/frame.mp4 ffmpeg -r 30 -f image2 -s 304x288 -i output/fcrn_cv/jet%06d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p output/jet.mp4 ffmpeg -i output/...
true
7b2024e0ae4b41ff8431308fab5e5bfd6673d628
Shell
LucChoubert/MeteoServer
/runDockerEnv.sh
UTF-8
1,599
3.140625
3
[]
no_license
#!/bin/sh docker stop redis-server docker rm redis-server docker stop retriever-daemon docker rm retriever-daemon docker stop api-server docker rm api-server docker stop webui-server docker rm webui-server docker stop redis-commander docker rm redis-commander docker stop portainer docker rm portainer #docker bui...
true
fc90c81c0f573dfcd9d14736f4bc90c387ff3693
Shell
Opentotum/fab_diagnostic
/scripts/bash/network_ethernet_gw.sh
UTF-8
1,511
3.625
4
[]
no_license
#!/bin/bash # -*- coding: utf-8; -*- # # (c) 2017 FABtotum, http://www.fabtotum.com # # This file is part of FABUI. # # FABUI is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
true
d9b4dd934afab66be03e9e92f10d1d0d875b4ca9
Shell
intel/intel-graphics-compiler
/scripts/buildSLT.sh
UTF-8
3,247
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh #=========================== begin_copyright_notice ============================ # # Copyright (C) 2022 Intel Corporation # # SPDX-License-Identifier: MIT # #============================ end_copyright_notice ============================= set -e # UBUNTU_VERSION supported value [ 20, 22 ] ...
true
e73ce813954fbca4f845478b2c37a2bfee3a3a53
Shell
rohe/fed-oidc-op
/ch/create_fos.sh
UTF-8
811
2.734375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash if [ ! -d "fo_bundle" ] then mkdir "fo_bundle" fi if [ ! -f "fo_bundle/https%3A%2F%2Fedugain.org%2F" ] then create_jwks.py > fo_bundle/https%3A%2F%2Fedugain.org%2F fi if [ ! -f "fo_bundle/https%3A%2F%2Fswamid.sunet.se%2F" ] then create_jwks.py > fo_bundle/https%3A%2F%2Fswamid.sunet.se...
true
10e94d3da7bf154cbf59ddda0b8a89b0b59b29b7
Shell
delkyd/alfheim_linux-PKGBUILDS
/nvidia-ck/PKGBUILD
UTF-8
2,118
2.859375
3
[]
no_license
# Maintainer: graysky <graysky AT archlnux.us> # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> # Contrubutor: Thomas Baechler <thomas@archlinux.org> pkgname=nvidia-ck pkgver=387.12 pkgrel=1 epoch=1 _extramodules=extramodules-4.12-ck _pkgdesc="NVIDIA drivers for linux-ck." pkgdesc="$_pkgdesc" arch=('i686' 'x86_64'...
true
cadf523518fcfe98b766392b01b0fa0195bb0c08
Shell
benjamingarzon/LongitudinalMyelinMapping
/MyelinMapping/OrganizeData.sh
UTF-8
7,936
4
4
[]
no_license
#!/bin/bash # Organize data to adopt the HCP raw data naming convention and folder structure Usage() { echo "" echo "Author: Benjamin Garzon <benjamin.garzon@gmail.com>" echo "v 1.0, May 2015" echo " Convert the raw dicom data and organize them to adopt the HCP raw data naming convention and folder ...
true
8448fcd4fb564b30049ce1d7e35c338eaab4aeab
Shell
dkeg/inspin
/volume
UTF-8
988
3.46875
3
[]
no_license
#!/bin/sh # original by z3bra # modified by dkeg # 2015 # additional output for mute,speaker,headphone test "$1" = "-h" && echo "usage `basename $0` [+|-|!]" && exit 0 state() { amixer get Master | sed -n 's/^.*\[\(o[nf]\+\)]$/\1/p' | uniq } level() { vol=$(amixer get Master|awk 'NR==5 {print $4}'|cut -d '%...
true
9b259a4dd52be2622d9d4e2b3e343e7fd5e1d2bf
Shell
morningspace/kube-assist
/commands/pods.sh
UTF-8
2,859
4.375
4
[]
no_license
#!/bin/bash . $(dirname $(dirname $0))/utils.sh function list_failed_pods { local namespace local all_namespaces local restarts_cap while [[ $# -gt 0 ]]; do case "$1" in -n|--namespace) namespace=$2; shift 2 ;; -A|--all-namespaces) all_namespaces=1; shift ;; -r|--restarts) re...
true
ad5420552224d2b1be59f3221682aaf3ce70a245
Shell
dendrites/dendrites
/greet.sh
UTF-8
141
2.9375
3
[]
no_license
#!/bin/bash echo "" > $2 while true; do read line < $1 cmds=( $line ) src=${cmds[0]} msg=${cmds[1]} echo "$src hello" > $2 done &
true
2e76b07eb203a14fefb7710d9fc74fbf4f5c69f3
Shell
jdmichaud/gziped
/test/generate_dataset.sh
UTF-8
361
3.953125
4
[]
no_license
#!/bin/bash if [[ $# -ne 1 ]] then echo "usage: generate_dataset.sh <folder>" exit 1 fi input_folder=$1 rm -fr $input_folder/index.txt for file in $(ls $input_folder) do echo $file md5=$(md5sum $input_folder/$file | cut -c1-32) gzip -c $input_folder/$file > $input_folder/$file.gz cat >> $input_folder/ind...
true
b3b0d989a09945f0be0202417d726c17a8e3cb87
Shell
diogocustodio/rufles
/bbs/yuicompressor.minify.sh
UTF-8
183
2.84375
3
[]
no_license
#!/bin/bash [ ! -e "$1" ] && exit 1; input="$1" extension="${input##*.}" output="${input%.*}.min.${extension}" java -jar yuicompressor-*.jar "$input" -o "$output" --charset utf-8
true
eaecb7a6108f83eef6dbd8d25aa169813f87febe
Shell
kva/cydia
/create.sh
UTF-8
757
2.921875
3
[]
no_license
#!/bin/bash # tampilan di terminal echo -n "Masukkan nama folder yang ingin diproses: " # menyimpan input keyboard read folder # menyalin folder ke alamat tujuan scp -r $folder root@172.20.10.1:/var/mobile/Documents # membuat .deb file ssh root@172.20.10.1 dpkg -b /var/mobile/Documents/$folder # menyalin .deb file...
true
e5f18947a79eb61fa0abcb59aa39fe500480ea38
Shell
institutotim/fdenp-landing-web
/entrypoint.sh
UTF-8
471
3.265625
3
[]
no_license
#!/usr/bin/env bash set -e set -o pipefail blow_up() { echo "Missing required enviroment variable '$1'. Please, take a look at the manual." >&2 exit 1 } [ "$ZUP_API_URL" ] || blow_up 'ZUP_API_URL' [ "$LANDING_API_URL" ] || blow_up 'LANDING_API_URL' sed -i "s@{ZUP_API_URL}@$ZUP_API_URL@g" /var/www/unicef-landing-pag...
true
0d7a0a5b13d0325ab8fc9bb6f67ace1f54660b6b
Shell
Azure/kubernetes-volume-drivers
/flexvolume/blobfuse/deployment/install-blobfuse-flexvol-ubuntu.sh
UTF-8
737
3.375
3
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/sh VER="1.0.1" echo "install blobfuse, jq packages ..." #get Ubuntu version OS_VERSION=`lsb_release -r | awk '{print $2}'` echo "current OS version: $OS_VERSION" PKG_TARGET=/tmp/packages-microsoft-prod.deb wget -O $PKG_TARGET https://packages.microsoft.com/config/ubuntu/$OS_VERSION/packages-microsoft-prod.deb ...
true
cff34128b51a4d2b6e7ca80f30c0c18ddbf8166b
Shell
07012220/latihanvspsu
/4Preprocessing/Preprocessing.sh
UTF-8
2,530
3.21875
3
[]
no_license
#!/bin/bash ## /** ## * @file Preprocessing.sh ## * @brief Do Preprocessing: BPF, Normalize, TVG ## * @author fahdi@gm2001.net ## * @date April 2013 [update] ## * @todo Normalize basd on RMS value of Downgoing at certain window ## * @param input SU file to process ## * @param output_bpf output SU file after BPF filter...
true
96e8c596f1b30ae834b6a21400c7b04d882e200b
Shell
trebabcock/fgl-client
/build.sh
UTF-8
191
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash if [ $# -eq 0 ]; then echo "Version not provided" exit 1 fi CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build rm version.json echo "{\"version\":\"$1\"}" > version.json
true
c5d3c029fc8f82586ec4d926ba3dd6a997f45d19
Shell
Junweiren/cs1730-syscalls
/man/man5/gen.sh
UTF-8
101
2.640625
3
[ "MIT" ]
permissive
for i in `ls /usr/share/man/man5 | sed -e 's/.5.gz//'`; do man -t 5 $i | ps2pdf - $i.5.pdf done
true
fc6904f8b88d406027305f1578b03071229f2fd9
Shell
zalcobia/meapps.sh
/meapps.0.1.sh
UTF-8
4,225
3.125
3
[]
no_license
#!/bin/bash # Descrição: Programa 'My Essential Apps' ou 'meapps' para Debian. Instala aplicações essenciais. # Versão: 0.1 # Data: 4/Agosto/2021 # Desenvolvedor: Pedro Graça # País: Portugal # Contacto: xalcobia@gmail.com # INSTRUÇÕES DE EXECUÇÂO # 1. As LISTAS podem ser modificadas para adicionar os teus repositór...
true
cd4aefa7e979c791eca9003c87267e232d9e7a1c
Shell
subaohuang/easy-era5-trck
/post_process/resize_png.sh
UTF-8
627
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash PREFIX_ARR=( "SP_Jan16" ) SUFFIX="png" STRT_F=0 END_F=648 N_FRM=$(( $END_F - $STRT_F )) SCRIPT_DIR=`pwd` WRK_DIR=../fig/ cd $WRK_DIR echo $WRK_DIR rm -f *noborder* L_PREFIX=${#PREFIX_ARR[@]} for((IPRE=0;IPRE<L_PREFIX;IPRE++)) do PREFIX=${PREFIX_ARR[$IPRE]} b='' for((I=$STRT_F;I<=${END_F};I...
true
b99103ce8edc4912bc85b6d802e14e86f603d6a5
Shell
voslak/valarm
/valarm
UTF-8
1,975
3.8125
4
[]
no_license
#!/bin/bash VALARM_NAME=valarm VALARM_VER=0.0.3 MUSIC_PATH=/home/pi/music/ DI_URL=http://listen.di.fm/public3/ LUB_URL=http://rzg.pl/player/ nofit_cnt=0 function valarm_usage { echo Usage:$VALARM_NAME '<time>' '<music type>' if [ -n "$1" ]; then exit "$1" fi } function valarm_play_music { case $2...
true
55ba090aa422add503603f461bd57094f007accc
Shell
inz/docker-reg
/docker-reg.sh
UTF-8
875
3.640625
4
[]
no_license
#!/bin/bash MACH=$1 PORT=$2 SERV=$3 shift shift shift CTL="etcdctl -C http://${ETCD_PORT_10000_TCP_ADDR}:${ETCD_PORT_10000_TCP_PORT}" KEY="/services/${SERV}/${MACH}" trap "$CTL rm $KEY; exit" SIGHUP SIGINT SIGTERM while [ 1 ]; do DOCKER_PORTS=$(docker port $MACH $PORT) KV=$@ KV="host=$(echo $DOCKER_PORTS | aw...
true
3c7c24415852f14331323f10f3e7deb2f52c563b
Shell
oliv5/profile
/.rc.d/15_zip.sh
UTF-8
1,589
3.8125
4
[]
no_license
#!/bin/sh # Quick zip compress/deflate zp() { for SRC; do if [ "$SRC" != "${SRC%.zip}" ]; then zpd "." "$SRC" else zpa "${SRC%%/*}.zip" "$SRC" fi done } # Zip compress zpa() { local ARCHIVE="${1:?No archive to create...}" shift 1 zip -r9 "$ARCHIVE" "$@" } # Zip deflate (in place whe...
true
04b80cc7ae84e1c2eddb553b1c2cecbc5353080f
Shell
oukooveu/cloud-gateway
/tests/stop
UTF-8
106
2.515625
3
[]
no_license
#!/bin/bash set -eo pipefail cd $(dirname $0) vagrant destroy -f [ -d .venv ] && rm -rf .venv echo OK
true
5893d2257bb11805859a6c601ec239f84200fa10
Shell
moenasser/bash
/pivot
UTF-8
909
4.09375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash source colors usage(){ piv=$(bold `basename $0`); cat <<EOF $piv [-d delim] [-r] | [-h] Given lines of stdin, prints them as 1 line separated by `bold delim`. When reversed, `bold -r`, will take one long line and split it into several lines using `bold delim` as separator. `bold -d` D...
true
194cf6f19596fc222ff3ae7510be76b831f1261b
Shell
chetnap19/FlipCoinSimulation
/usecase8.sh
UTF-8
622
3.296875
3
[]
no_license
#!/bin/bash echo "Enter 1st Number :" read a echo "Enter 2nd Number :" read b echo "Enter 3rd Number :" read c declare -A result result[0]=$(( $a + $b / $c)) result[1]=$(( $a * $b + $c)) result[2]=$(( $a % $b + $c)) result[3]=$(( $c + $a * $b)) result[4]=$(( $a / $b + $c )) echo ${result[@]} echo ${!result[@]} Num...
true
b859c06078f82039e832039b93fced78da038e10
Shell
srknzl/bash
/0-create_script.sh
UTF-8
364
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # This script creates a script once it gets its name. # Then it gives it executable permissions. # Then it writes into its first line this '#!/bin/bash' called Sha-Bang (# sharp and ! bang combined) echo "What should be the name of the file(e.g 1-hello_world.sh)?" read scriptname touch $scriptname chmod +x ...
true
5ebc1d88cd2d33395add3e59cdf8b809452d93e2
Shell
MontufarEric/code_snippets_bigData
/003_hadoop/setup.sh
UTF-8
2,436
2.984375
3
[]
no_license
#!/usr/bin/env bash echo "INSTALLING JAVA" sudo apt update mkdir /opt cd /opt wget -O jdk-8u221-linux-x64.tar.gz \ -c --content-disposition \ "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=239835_230deb18db3e4014bb8e3e8324f81b43" tar -zxf jdk-8u221-linux-x64.tar.gz rm jdk-8u221-linux-x64.tar.gz cd sudo t...
true
570e6a07ae91ff4b8fb2c91ce577a01446165b90
Shell
AihamAbusaleh/SYSO-SS16
/v1/v1.sh
UTF-8
4,736
3.796875
4
[]
no_license
#!/bin/bash # Constants OUTPUT="stdout_1.log" OUTPUT_ERR="errorout_1.log" VERSION="4.2.3" CORES=$(cat /proc/cpuinfo | grep processor | wc -l) export ARCH="x86" export CC="ccache gcc" function copy_files { echo "* Copying files..." cd "$TARGET" if [ -e "files" ]; then echo "* Deleting files..." ...
true
f55b70e6f8683a751ba553c2de8f822bf858a7f0
Shell
axos88/docker-run-action
/entrypoint.sh
UTF-8
422
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ ! -z $INPUT_USERNAME ]; then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin fi echo "$INPUT_ENV" > env-file echo "$INPUT_RUN" | sed -e 's/\\n/;/g' > semicolon_delimited_script exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPT...
true
64975ee9ac5be814981ff4744a94c2b9c9abb048
Shell
RyanZSU/SDE
/.bashrc
UTF-8
4,278
3.5
4
[]
no_license
# If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac ################################# Ryan Changes ################################# export TERM=xterm-256color export EDITOR=vi export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 alias ls='ls -G' alias scr='screen -aAL -t' a...
true
385f60a8d07c22cbc84073ced6843ee3a43fcf2b
Shell
FieldDB/AuthenticationWebService
/test/routes/deprecated.sh
UTF-8
6,485
3.234375
3
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/bash function coloredEcho(){ local exp=$1; local color=$2; if ! [[ $color =~ '^[0-9]$' ]] ; then case $(echo $color | tr '[:upper:]' '[:lower:]') in black) color=0 ;; red) color=1 ;; green) color=2 ;; yellow) color=3 ;; blue) color=4 ;; magenta) color=5 ;; cyan) color=6 ;; white|*) color=7 ;...
true
1da2e4c47ffe3ee9cf6e01f8275ef09d908d1c22
Shell
ghcjs/ghcjs
/utils/cleanPackage.sh
UTF-8
615
3.109375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # generic/hacky package cleaning if [ $# -ne 1 ]; then echo "usage: $0 <dir>" echo "" echo "clean cabal package build artifacts from <dir>" exit 1 fi ( cd "$1" || exit 1; echo "cleaning: $PWD" rm -rf dist dist-install autom4te.cache rm -f config.status config.log rm -f *.buildinfo rm ...
true
c5dfc26ef63072f2f22b6a48d27c3635f4ca83d3
Shell
rome1france/miron-client
/miron-autorun
UTF-8
622
3.203125
3
[]
no_license
#!/bin/bash # ### BEGIN INIT INFO # Provides: miron-client # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start and stop miron-client # Description: Start and stop miron-client. ### END INIT INFO # RUN=/usr/bin/miro...
true
e3ab7dfd803196a71626ef047c0df46226ce357a
Shell
typeorm/typeorm
/docker/oracle/docker-entrypoint.d/050-npm-compile.sh
UTF-8
228
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # exit when any command fails set -e npx rimraf build/compiled npx tsc cp /config/ormconfig.json build/compiled/ormconfig.json if [ ! -f ormconfig.json ]; then cp ormconfig.json.dist ormconfig.json fi
true
e23c7dfea6fe0e126856b0fb8ce00e7a340794bf
Shell
firstcoincom/blockchain-network-on-kubernetes
/debug.sh
UTF-8
491
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ -d "${PWD}/configFiles" ]; then KUBECONFIG_FOLDER=${PWD}/configFiles else echo "Configuration files are not found." exit fi kubectl create -f ${KUBECONFIG_FOLDER}/peerdebug.yaml kubectl create -f ${KUBECONFIG_FOLDER}/tooldebug.yaml PEERDEBUG_NAME=$(kubectl get pods | grep "peerdebug" | a...
true
f01a7ccace446528bf3eecac044e2816f6710cfe
Shell
rancher/rancher
/tests/validation/tests/v3_api/resource/terraform/scripts/optional_write_files.sh
UTF-8
504
4.03125
4
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
#!/bin/bash # This script pulls raw files and writes to specified locations. # For example, it can be used to write HelmChartConfig or custom PSA files. files=$1 if [ -n "$files" ] then file_array=($(echo "$files" | tr ' ' '\n')) for current_file in "${file_array[@]}"; do file_location=$(echo "$current_file"...
true
9b22936e093a777b887e3c9893c145b9f521aebd
Shell
ppabc/dac
/alpine-consul-php5/root/etc/zabbix/zabbix_agentd.conf.d/scripts/php-fpm-check.sh
UTF-8
454
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash HOST="localhost" PORT="73" status="php-fpm_status" function query() { curl -s http://${HOST}:${PORT}/${status}?xml | grep "<$1>" | awk -F'>|<' '{ print $3}' } if [ $# == 0 ]; then echo $"Usage $0 {pool|process-manager|start-time|start-since|accepted-conn|listen-queue|max-listen-queue|listen-queue-len|...
true
0411a1448917ca359182a06008e8be021de25cbd
Shell
uttam47/unix-sandbox
/directory-operations.bash
UTF-8
710
3.9375
4
[]
no_license
#!/bin/bash # creating a directory... echo "Enter the name of directory which is to be created:" read directory_name mkdir $directory_name # first check if the directory exist or not, then create it... echo "Create another diretory, enter the name:" read d2 if [ -d "$d2" ] # -d command return true if the ...
true
3bf1758a51d3c1ebb784ee3fd0c09a887ce7e16d
Shell
emhaye/get-repos
/get-repos.sh
UTF-8
568
2.859375
3
[]
no_license
function get_repos() { curl --silent "https://api.github.com/orgs/gohugoid/repos" | grep '"full_name":' | sed -e 's/^.*": "//g' -e 's/",.*$//g' >> repos.txt } get_repos cat repos.txt function get_clone_urls() { curl --silent "https://api.github.com/orgs/gohugoid/repos" | grep '"clone_url":' | sed -e 's/^.*": "//g'...
true
28d772704cab938147e6a036b87b77140eedccf5
Shell
Lemon080910/xiaomi_3c
/squashfs-root/lib/config_post_ota/netifd_config_post_ota.sh
UTF-8
1,114
2.515625
3
[]
no_license
#!/bin/sh # add troubleshoot netowrk /sbin/uci -q batch <<-EOF >/dev/null delete network.diagnose set network.ready=interface set network.ready.proto=static set network.ready.ipaddr=169.254.29.1 set network.ready.netmask=255.255.255.0 commit network EOF has_smartvpn_old_version=$(uci get smartvpn.settings 2>/dev/null...
true
6ebab910f955491f5a9551af26b2b15c01732e0f
Shell
hthuong09/dotfiles
/.bin/bar/battery
UTF-8
670
3.203125
3
[]
no_license
#!/usr/bin/env bash ICON_BATTERY="\ue238" ICON_BATTERY_CHARGING="\ue200" ICON_BATTERY_FULL="\ue1ff" ICON_BATTERY_HALF="\ue1fe" ICON_BATTERY_EMPTY="\ue1fd" function icon() { if [[ "$2" != "" ]]; then COLOR=$2 else COLOR=$COLOR_ICON fi echo "%{F$COLOR}%{T2}$(printf $1)%{T-}%{F-}" } bat=$...
true
6d6f6a78b1fad882347398a21fc34e1065e2fdf4
Shell
jessepav/boxtools
/py/setup-venv.sh
UTF-8
168
2.515625
3
[]
no_license
#!/bin/bash cd "$(realpath $(dirname "$0"))" [[ ! -d venv ]] && python -m venv venv [[ -f requirements.txt ]] && ./venv/bin/python -m pip install -r requirements.txt
true
0720cb8d4afcd834075450e6c05885864d4c6365
Shell
theoremoon/ShellgeiBot-Image
/docker_image.bats
UTF-8
26,140
3.4375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bats bats_require_minimum_version 1.5.0 @test "5ktrillion" { run -0 bash -c "5ktrillion -5" [ "$output" = '5000兆円欲しい!' ] } @test "abcMIDI" { run -0 bash -c "abc2midi -ver" [[ "$output" =~ abc2midi ]] } @test "agrep" { run -0 bash -c "echo unko | agrep -2 miko" [ "$output" = "unko" ] } @t...
true
36fd63e10338c9334c767f1d6e8275805dd7ff55
Shell
bopopescu/Cloud-User-Management
/openstack/openstack-helm/liblxd/templates/bin/_liblxd.sh.tpl
UTF-8
1,972
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash {{/* Copyright 2017 The Openstack-Helm 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 or agre...
true
e586ccfc82f073d68c5234a13990609e4cfae0c6
Shell
hiturria/bosmarmot
/tests/run_pkgs_tests.sh
UTF-8
4,953
3.890625
4
[]
no_license
#!/usr/bin/env bash # ---------------------------------------------------------- # PURPOSE # This is the test manager for monax jobs. It will run the testing # sequence for monax jobs referencing test fixtures in this tests directory. # ---------------------------------------------------------- # REQUIREMENTS # m #...
true
331cfcd1282222eb3431dc7389cf4b86e8b22532
Shell
alisw/AliRoot
/MONITOR/alistoragemanager/setupStorageDatabase.sh
UTF-8
1,307
2.78125
3
[]
permissive
#!/bin/bash HOST="localhost" # IP of machine on which mysql database is located PORT="123" DATABASE="database" USER="user" PASS="pass123" TABLE="table" STORAGE_PATH="/some/path/" MAX_SIZE="300000000" MAX_OCCUPATION="100" REMOVE_PERCENT="50" EVENTS_IN_FILE="20" EVENT_SERVER="localhost" # IP of machine running alieve...
true
857d8f012fecf61ed1ef982f42cdfc376c98eafc
Shell
originaluko/vSphere_PowerCLI
/vsphere_powercli-service/build-java.sh
UTF-8
592
2.875
3
[ "MIT" ]
permissive
#!/bin/sh # Copyright (c) 2012-2018 VMware, Inc. All rights reserved. # Mac OS script # Note: if Ant runs out of memory try defining ANT_OPTS=-Xmx512M if [ -z "$ANT_HOME" ] || [ ! -f "${ANT_HOME}"/bin/ant ] then echo BUILD FAILED: You must set the environment variable ANT_HOME to your Apache Ant folder exit 1 fi...
true
b0d6310f72153d34a46056d7fc469f459b820def
Shell
idenkov/shell-scripts
/logs.sh
UTF-8
963
3.546875
4
[]
no_license
#!/bin/bash #Bash script to add all magento logs to rsyslog conf #If you type something wrong you will have to go and delete all added configurations in rsyslog.conf FIND="$(which find)" while [[ -z "$server_id" ]] do read -p "Server ID, e.g. qaw1, ops2 etc.: " server_id done while [[ -z "$rsyslog_ip" ]] do r...
true
68cbe6998417ab11e69fde46b32cf4e926ef5d91
Shell
ghdl/ghdl-cosim
/vhpidirect/vffi_user/crypto/run.sh
UTF-8
385
2.546875
3
[ "Apache-2.0", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env sh cd "$(dirname $0)" set -e echo "> Analyze vffi_pkg" ghdl -a --std=08 --work=ghdl ../../vffi_user.vhd ../../vffi_user-body.vhd echo "> Analyze c/tb.vhd" ghdl -a --std=08 c/tb.vhd echo "> Build tb_c (with encrypt.c and c/caux.c)" ghdl -e --std=08 -Wl,-I../.. -Wl,encrypt.c -Wl,c/caux.c -o tb_c -Wl,-...
true
161d8ff44da2d7e8c8bd46ad8cce5f7bfee2bedb
Shell
kb5wck/IRLP
/newslinefeed.wb8odf
UTF-8
5,291
3.203125
3
[]
no_license
#!/bin/bash # # Amateur Radio Newsline Feed Script with PTT and TOT Override # # Written for Dale W9LKI (4049) # # Version: 4.0 # # Written By: Dave Parks WB8ODF Node: 8139 (wb8odf@yahoo.com) # # Date: Jan 22, 2013 # Update: Apr 14, 2016 # By: Dave Parks # # # NOTICE: NO WARRANTY IS EXPRESSED AS TO THE SUITABILITY OR...
true
0603a919eb3be49aaa571d108e28d2dc9700d3ae
Shell
aygean219/shell
/s8.sh
UTF-8
108
2.84375
3
[]
no_license
#!/bin/bash for f in $* do sort $f | uniq -c |sort -n | tail -1 > file.txt done sort -o file.txt file.txt
true
f7ac7441d2735856e7490833411491d72b0a88f0
Shell
legacy-codedigger/Solaris-2.6-Source-Code
/Solaris_2.6/os_net/src_ws/usr/src/cmd/sgs/tools/so425.sh
UTF-8
1,697
3.390625
3
[]
no_license
#! /bin/sh # @(#) so425 1.2 94/03/27 # # so425: convert a 4.x so to something suitable for linking on 5.x. # NMTMP=/tmp/so425.nm.$$ ASTMP=/tmp/so425.$$.s # Set this to point at a 4.x "nm" command NM4=$HOME/4bin/nm trap 'rm -rf $NMTMP $ASTMP' 0 HUP INT TERM # Get the 4.x namelist from the library $NM4 -n $1 >$NMTMP if ...
true
05f31f050b0fd18a5e910f76204541c5004d3a29
Shell
krugerke/lemp
/docker/containers/php/setup.sh
UTF-8
269
2.640625
3
[]
no_license
#!/bin/bash apt-get update apt-get -y install apt-utils apt-get install nano apt-get -y install autoconf apt-get -y install build-essential apt-get -y install zip apt-get -y install git for file in bin/setup/*; do [ -f "$file" ] && [ -x "$file" ] && "$file" done
true
5b81d3202918b44462ac1948b101c927cf31ef0d
Shell
miteshklio/wastemaster-inc
/srv/salt/mariadb/files/mysql_secure.sh
UTF-8
1,697
3.453125
3
[]
no_license
#!/bin/bash # # Config # ROOT_PASS='{{ pillar['mysql']['root_pass'] }}' APP_DB='{{ pillar['mysql']['app_db'] }}' APP_USER='{{ pillar['mysql']['app_user'] }}' APP_PASS='{{ pillar['mysql']['app_pass'] }}' # # Initial setup # RESULT=`mysqlshow --user=root --password=${ROOT_PASS} ${APP_DB}| grep -v Wildcard | grep -o $...
true
d0a64a1af752a510dcc9a01eea2e91d34f1ee89b
Shell
jonasrk/MA-Scripts
/old/unrolled_countpoints.sh
UTF-8
775
2.59375
3
[]
no_license
#!/bin/bash echo "Bash version ${BASH_VERSION}..." for j in 30centroids2.txt 30centroids3.txt 30centroids4.txt 30centroids5.txt do echo $j for i in `seq 1 25` do echo $i date +%Y.%m.%d-%H:%M:%S time java -cp target/rheemstudy-1.0-SNAPSHOT.jar:/home/jonas.kemper/rheem/rheem-distro/target/rheem-distro-0.4.0-SNAPSHOT...
true
c08a3c384e8e7ea78ebf43738aa0182d535d477c
Shell
tawk/tawk-opencart2
/docker/build.sh
UTF-8
471
3.484375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e; build_dir=$(dirname $0); module_dir=$build_dir/bin/tawkto; if [ -d "$module_dir" ]; then echo "Removing existing module folder"; rm -r $module_dir; fi echo "Creating module folder"; mkdir -p $module_dir; echo "Install dependencies" composer run release --working-dir=$build_dir/.. echo "Copying ...
true
0713cf2dd58651202b201fed175b7ffa04a6de27
Shell
surajkumar0/unix_utilities
/git/git_commands.sh
UTF-8
1,137
3.546875
4
[]
no_license
# This command is used to look at the current git branch. git branch # The following command is used to create a new branch and also switch to that branch. # Use the above `git branch` command to verify that you're on the new branch. git checkout -b new_branch_name # Now make all the code changes that you want. ...
true
49721a95372e2dc1c892e1e234b2eac68049bc5b
Shell
yfang1644/FArm_distro
/script/file
UTF-8
276
3.171875
3
[]
no_license
#!/bin/bash PKG_NAME=$1 PKG_VERSION=5.29 PKG_DEPENDS="zlib" PKG_MAINTAINER="Christos Zoulas (christos@astron.com)" PKG_SECTION="tools" PKG_SHORTDESC="File type identification utility" buildpkg() { ../configure ${TARGET_CONFIGURE_OPTS} make $MAKEFLAGS make DESTDIR=$INSTALL_PKG install }
true
59eda798620c07d47074ecedce5bdb386f161ea6
Shell
hi-time/pocci
/bin/oneoff
UTF-8
1,709
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash set -e BASE_DIR=$(cd $(dirname $0)/..; pwd) source ${BASE_DIR}/bin/lib/init-env if [ -z "${POCCIR_OPTS}" ]; then if [ -f "${CONFIG_DIR}/.env" ]; then POCCIR_OPTS="--env-file ${CONFIG_DIR}/.env" export `grep DNS_ADDRESS ${CONFIG_DIR}/.env` if [ `docker ps |grep "${DNS_CONTAINER}...
true
0f31e3dddffef2a1b8afcf5fb475aa3d9a39a4be
Shell
Feiox/CentOS-Attachment
/wdcp-v2-update/root/mysql5.6.sh
GB18030
2,759
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # MySQL 5.5.36 update scripts # Author: wdlinux # Url: http://www.wdlinux.cn # Modify: KenGe IN_DIR="/www/wdlinux" #cpu = `grep 'processor' /proc/cpuinfo | sort -u | wc -l` if [ ! $1 ];then MYS_VER=5.5.36 parameter="-DCMAKE_INSTALL_PREFIX=$IN_DIR/mysql-$MYS_VER -DSYSCONFDIR=$IN_DIR/etc -DWITH_INNOBASE_STO...
true
38ef540e3f6a79c5319af42714f8544d5a4a0330
Shell
roidayan/ovs-tests
/ecmp_setup_test_060_180/180/load_120.sh
UTF-8
1,245
2.609375
3
[]
no_license
#!/bin/bash P1="ens2f0" P2="ens2f1" modprobe -r mlx5_ib mlx5_core modprobe -r openvswitch sleep 1 modprobe -v openvswitch sleep 1 modprobe -v mlx5_core sleep 1 vms=`virsh list | grep run | awk '{print $1}'` for i in $vms; do virsh destroy $i ; done echo 0 > /sys/class/net/$P1/device/sriov_numvfs echo 0 > /sys/cl...
true
50353640da92ac119176f0cc749d0f0d6702c6a4
Shell
iqlusioninc/tmkms
/tests/support/run-harness-tests.sh
UTF-8
1,104
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash TMKMS_BIN=${TMKMS_BIN:-"./target/debug/tmkms"} TMKMS_CONFIG=${TMKMS_CONFIG:-"/harness/tmkms.toml"} HARNESS_BIN=${HARNESS_BIN:-"tm-signer-harness"} TMHOME=${TMHOME:-"/harness"} # Run KMS in the background ${TMKMS_BIN} start -c ${TMKMS_CONFIG} & TMKMS_PID=$! # Run the test harness in the foreground ${HARNES...
true
3a96dcac87aafe4027e5bfe7dd2b28116031bafd
Shell
EstephaniaCalvoC/AirBnB_clone_v2
/0-setup_web_static.sh
UTF-8
1,357
3.5
4
[]
no_license
#!/usr/bin/env bash # Configurate Nginx with: # Port 80 # Permanent redirection /redirect_me. # Use custom 404 error page # Custom header X-Served-By # Prepare server to deploy apt-get update apt-get -y install nginx # Create forlders mkdir -p /data/web_static/{releases/test,shared} # Create default page echo "<html...
true
dcefbf89d5d60897745abdd8e43c84371c14dc0e
Shell
MuhammadAbuBakar95/kernel-specialization
/occam_pipe_line/run_occam.sh
UTF-8
471
2.578125
3
[]
permissive
# ${1} -> work directory # ${2} -> manifest file # ${3} -> keep.list # ${4} -> kernel specialization home cp ${3} ${1}/. cp ${2} ${1}/. cd ${4}/LLVMPasses make build_UsedInAsm cd ${4}/occam_pipe_line cp generateExclusionSymbols.py ${1}/. cd ${1} KS_PATH=${4} python generateExclusionSymbols.py ${2} exclusion_list cat...
true
ca54e694f143fbb628ef36ad20aa6f7a775d90c6
Shell
arunasri/rails31mongo
/script/chop
UTF-8
608
3.984375
4
[]
no_license
#!/bin/bash output=$2 if [ -d $output ]; then rm -rf $output fi mkdir -p $output # create a temporary file containing the header without # the content: head -n 1 $1 > header.csv # create a temporary file containing the content without # the header: tail -n +1 $1 > content.csv # split the content file int...
true
cfa5130d4aba9563315b7ef60b26f3db650423b5
Shell
Communica/devop-scripts
/installApache.sh
UTF-8
1,143
3.0625
3
[]
no_license
#!/bin/sh # file: installApache.sh # author: technocake # desc: Installs apache2 with php5 mysql and copies backupconfig + www files on pompel # date: 05.05.2011 15:42 ########################################################################################### echo "Installing apache mit php5 mit mysql" sudo apt-get in...
true
ff5505ac9d8d56f4148fe55e87859f09706a1a39
Shell
JoshuaSBrown/Excimontec
/slurm_script.sh
UTF-8
632
2.8125
3
[ "MIT" ]
permissive
#!/bin/bash #SBATCH -J Excimontec # Job name #SBATCH -p partition_name #SBATCH -n 48 # Number of tasks #SBATCH -t 01:00:00 # Maximum walltime #SBATCH --cpus-per-task=1 version_num=v1.0-beta.3 ParameterNum=default # Setup job directory mkdir $SLURM_JOB_ID cd $SLURM_JOB_ID cp ../Excimontec.exe ./Excimontec.exe cp ../pa...
true
884806ab49024a45caff8d9cfc580261b2f10960
Shell
TangoMan75/bash_aliases
/src/network/get-ip.sh
UTF-8
268
3.25
3
[ "MIT" ]
permissive
#!/bin/bash ## Get external IP function external-ip() { local IP IP="$(curl -s ipv4.icanhazip.com || wget -qO - ipv4.icanhazip.com)" if [ -z "${IP}" ]; then IP="$(curl -s api.ipify.org || wget -qO - api.ipify.org)\n" fi echo "${IP}" }
true
d709ac6affcc5189e4724dbd514e5b0fd16af413
Shell
vitalinux/vx-pms-dev
/usr/bin/vx-git-createdir
UTF-8
535
4.09375
4
[]
no_license
#!/bin/bash # File: /usr/bin/vx-git-createdir # Permissions: root:root 755 # Syntax: vx-git-createdir <PATH> # Author: Alberto Gacías <alberto@migasfree.org> # Creates a file called .createdir at empty directories from a path _PATH=$1 if [ -z "$_PATH" ] then echo "Enter a directory as a parameter" exit 1 fi ...
true
1dc7c4c3a03617cbde520dd21ead7a28feca887f
Shell
Rob-123/linuxgsm
/functions/fn_details
UTF-8
4,844
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # LGSM fn_details function # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk # Version: 170214 # Description: Displays server infomation. # Standard Details # This applies to all engines fn_details_os(){ echo -e "" echo -e "\e[93mDistro Details\e[0m" printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' ...
true
e5dbb9a9297ca278cdd983815b0acbd40bdc64c3
Shell
IdeaSynthesis/dokku-autosync
/install
UTF-8
622
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eo pipefail [[ $DOKKU_TRACE ]] && set -x source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" plugin-install() { # add the global include if [[ ! -f "${DOKKU_ROOT}/.ssh/config" ]] ; then echo -e "Include ${DOKKU_ROOT}/*/autosync\n" >> "${DOKKU_ROOT}/.ssh/config" chmod ...
true
09526d012c5a0165347ec879b16f57547379563b
Shell
sgn/dotfiles
/sh/91-term-title.zsh
UTF-8
196
3.21875
3
[ "0BSD" ]
permissive
set_term_title () { print -Pn "\e]0;$1\a" } # Reload autoloadable functions function freload () { while (( $# )); do unfunction $1 autoload -U $1 shift done } compdef _functions freload
true
5550851e84d8e885542f0d4fc810d8a153637274
Shell
JDeuce/dotfiles
/.bashrc
UTF-8
1,610
3.171875
3
[]
no_license
# If not running interactively, don't do anything [ -z "$PS1" ] && return # TZ/Locale settings export TZ=/usr/share/zoneinfo/America/Winnipeg export MM_CHARSET=utf8 export LANG=en_CA.UTF-8 export LC_ALL=en_CA.UTF-8 export LC_COLLATE=C # Editor if ( which vim > /dev/null ) then alias vi=vim export EDITOR=vim ...
true
9dd3b274c4c7f477ce224f86ca358ec7ccb95f9f
Shell
petronny/aur3-mirror
/plex/PKGBUILD
UTF-8
1,666
2.59375
3
[]
no_license
# Maintainer : Anish Bhatt <anish[removethis][at]gatech[dot]edu> pkgname=plex _majorver=0.9.7.12 _minorver=407 _suffix=db37d6d pkgver=${_majorver}.${_minorver} _dver=${_majorver}.${_minorver}-${_suffix} pkgrel=1 pkgdesc='Plex Media Server' url='http://www.plexapp.com/linux' arch=('i686' 'x86_64') source=(plex-${pkgve...
true
508404a1a58f29f7538cb7106779eb1e010ca048
Shell
mauri870/assembly-fun
/test_runner.sh
UTF-8
410
3.890625
4
[]
no_license
#!/bin/bash set -e TESTDIR=tests SRCDIR=src function build_and_test() { echo "Compiling \"$1\"..." PROGRAM="$1" make echo "Running test for \"$1\"..." bats "$TESTDIR/$1.bats" } make clean > /dev/null for PROGRAM in $(ls -d src/*/ | cut -f2 -d'/') do if [ $# -eq 1 ] && [ "$1" != "$PROGRAM" ] ...
true
e1d7f47d88a58a61a4d0c6f29b84325de7e56aaa
Shell
fbudin69500/NIRALSystemScripts
/UpdateSlicerExtensions.script
UTF-8
8,350
3.625
4
[]
no_license
#!/bin/bash createNewBranch () { tool=$1 mainBranch="$2" localMainBranch="$3" #Create new branch for update branchName=update-${tool}${localMainBranch} if [ `git branch | grep -c $branchName` -ne 0 ] then echo "Removing existing local branch: $branchName" git branch -D $branchName fi git chec...
true
3a217607595c5c81eb7a4fb8b144cbfb463d735d
Shell
webmandman/docker-commandbox
/resources/publish.sh
UTF-8
2,457
3.6875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e cd $TRAVIS_BUILD_DIR echo "CWD: $PWD" echo "Dockerfile: $TRAVIS_BUILD_DIR/${BUILD_IMAGE_DOCKERFILE}" # Push Version into Images: $IMAGE_VERSION IS SET IN TRAVIS sed -i -e "s/@version@/$IMAGE_VERSION/g" $TRAVIS_BUILD_DIR/${BUILD_IMAGE_DOCKERFILE} # Build our deployment image fresh so that no artif...
true
be1306a30b67128e5709a67efcc4da5defe1813c
Shell
shawwn/scrap
/mkalias2
UTF-8
366
3.734375
4
[]
no_license
#!/bin/sh dir="`pwd`" cd "$(dirname "$0")" home="`pwd`" cd "${dir}" old="$1" new="$2" if [ -z "$new" ]; then echo " mkalias <existing-script-name> <new-name>" echo " (aborts if <new-name> already exists)" exit 1 fi if [ -e "$new" ]; then 1>&2 echo "Exists, aborting: $new" exit 1 fi cat <<EOF | mkmod -q "...
true
7c660226c0c4646d3bc4fa055616116fcba90908
Shell
martinfjant/php-blog
/provisioner.sh
UTF-8
2,715
3.171875
3
[]
no_license
#!/bin/bash echo "--- Installing and configuring PHP 7.0 and MySQL ---" sudo apt-get install python-software-properties -y sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php -y sudo apt-get update sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y sudo apt-get --purge autoremove -y sudo service php7.0-fpm ...
true
245ff8eb6e72a326d292f07ca50bc2aff37e788c
Shell
ohak/facilities-db
/4_deduping.sh
UTF-8
3,709
2.5625
3
[]
no_license
################################################################################################ ## DEDUPING ################################################################################################ ## NOTE: This script requires that your setup the DATABASE_URL environment variable. ## Directions are in the REA...
true
5907b69994c457dcf29c720e1ebe58e6e5f2707f
Shell
HalaEzzat/DBEngine
/insert.sh
UTF-8
2,969
3.25
3
[]
no_license
flag="false" db=$1 tb=$2 for file in /home/hala/dbEngine/DB/$db/* do if [ "$file" == "/home/hala/dbEngine/DB/$db/$tb" ] then flag="true" break fi done if [ "$flag" == 'true' ] then m=1 coun=1 for c in `cut -d: -f2 "/home/hala/dbEngine/DB/$db/$tb/schema"` do ...
true
5a531970c7dd85c514d286cc4fc3f6fae9933c38
Shell
gungwald/utils
/unix/bin/reinstall
UTF-8
237
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh unset ID . /etc/os-release if [ $ID = 'fedora' -o $ID = 'rhel' -o $ID = 'centos' -o $ID = 'sles' -o $ID = 'opensuse' ] then echo `basename "$0"` does not know how to 'do' that yet. else apt-get install --reinstall "$@" fi
true
286bf9f2943fd82168a3f30d1b7f6ddb53b653a5
Shell
mirswamp/java-assess
/util/create_release_bundle.sh
UTF-8
3,373
3.875
4
[]
no_license
#! /bin/bash p=`basename $0` ## Create a java-assess release. ## Must be run from root directory of java-assess workspace. make_tarball=true make_cksum=true p_swamp=/p/swamp while [ $# -gt 0 ] ; do case $1 in --swamp-root) p_swamp=$2 shift ;; --no-tar) make_tarball=false ;; --no-ck) make_cksum=fals...
true
828af0290619fd9d415df07e240a07426da56390
Shell
JiyeongHa/colorLGN
/align_LGN_ROI.sh
UTF-8
12,410
2.765625
3
[]
no_license
###Align everything to T1@main ###T1@main is anatomy aligned to main epi data. (from ?_main.results) ### #0429 2020 #Align LGN_?_hk2 roi to main #LGN_?_hk2 is a bigger roi than ?_hk SN=14 SN_DIR=/group_hpc/WMShimLab2/PSY_Color/Colorv3/${SN}/Img_data LGN_PD_DIR=${SN_DIR}/LGN_PD PD_id=190314KYJ PD_DIR=/group_hpc/WMShi...
true
6abec9eeade5787ea2c8510513a77127c5d88f75
Shell
KlausWogelius/bin
/master
UTF-8
784
3.109375
3
[]
no_license
#!/bin/bash #kommando: # master $1 $2 #beskrivelse: # kommandoen skaber en virtuel maskine ud fra en installations-iso-fil # "$1.iso" iso-filens navn # "$2.qcow2" er masterens navn #præmis: # iso-filen eksisterer og hedder "~/.qemu/iso/$1.iso" #output: # masteren kommer til at hedde "~/.qemu/vm/$2.qcow2" # ...
true
1cf10fc1b92e737bf622d99c7fb78efda4f3b8cd
Shell
tomasbasham/dotfiles
/.chezmoiscripts/run_onchange_before_10_compile_terminfo_descriptors.tmpl
UTF-8
483
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env sh # -*-mode:sh-*- vim:ft=sh # compile_terminfo_descriptors # ============================================================================= # Compile tmux specific terminfo profiles with "tic" to support italics inside # tmux. # # Some system might already have them, but in April 2021 most still don't #...
true
ca6fe3a8218c96a62887c3bb8bd1ff90c276f8f0
Shell
adampower48/ca4022
/setup_scripts/hive_install.sh
UTF-8
871
2.671875
3
[]
no_license
# Download hive wget https://ftp.heanet.ie/mirrors/www.apache.org/dist/hive/hive-3.1.2/apache-hive-3.1.2-bin.tar.gz tar -xvzf apache-hive-3.1.2-bin.tar.gz # Set hive home export HIVE_HOME=$(pwd)/apache-hive-3.1.2-bin # Add hive vars to bashrc echo ' export HIVE_HOME='$HIVE_HOME' export PATH=$PATH:$HIVE_HOME/bin ' >> ...
true
d0c5bf6d55ef2d0add297c9d47ce5747f39959a0
Shell
Newton-Climate/CLARREO_OSSE
/submit_parallel
UTF-8
2,035
2.90625
3
[]
no_license
#!/bin/sh #submit from the directory where the executable is #============================================================================== # This is a CCSM batch job script for scs #============================================================================== ## BATCH INFO #PBS -l nodes=4:ppn=8:lr #PBS -l walltim...
true
34293f41cb7d9cf204c8d81f71b3370773e97579
Shell
eisop/plume-lib
/.travis-build.sh
UTF-8
918
3.0625
3
[]
no_license
#!/bin/bash ROOT=$TRAVIS_BUILD_DIR/.. # Fail the whole script if any command fails set -e if [[ "${TYPECHECK}" != "true" ]]; then make USE_CODECOV=1 all-but-emacs check else ## Build Checker Framework (cd $ROOT && git clone https://github.com/typetools/checker-framework.git) || (cd $ROOT && git clone https://git...
true
ebc6ad7957aa8478a3e3003043e7fabfa658997d
Shell
Datanexus/kafka
/roles/cruisecontrol/templates/linkedin.cruisecontrol.j2
UTF-8
2,395
3.453125
3
[]
permissive
#!/usr/bin/env sh # (c) 2016 DataNexus Inc. All Rights Reserved. # Licensed software not for distribution if [ $# -eq 0 ] || [ "$1" = "-h" ] ; then printf "Usage:\\t{{ cruisecontrol.service_name}} [-h]\\thelp\\n" printf "Usage:\\tsudo -H -u {{ cruisecontrol_user }} {{ cruisecontrol.user_service }}/{{ cruisecontrol....
true
8acb5a038d6ad0ba8cd7412607dccb60728a4fbc
Shell
ceremcem/smith-sync
/btrfs-sync.bak
UTF-8
4,480
3.953125
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash set -eu -o pipefail safe_source () { [[ ! -z ${1:-} ]] && source $1; _dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; _sdir=$(dirname "$(readlink -f "$0")"); }; safe_source # end of bash boilerplate safe_source $_sdir/lib/all.sh show_help(){ local script=$(basename $0) local reason=${1:-} ...
true