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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f473810f3a02d2a9facc7bef8a2c853b8c8371d1 | Shell | onap/holmes-engine-management | /engine-d-standalone/src/main/assembly/bin/run.sh | UTF-8 | 4,028 | 3.21875 | 3 | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
#
# Copyright 2017-2021 ZTE 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.0
#
# Unless required by applicab... | true |
1334fe6d375b8fc6a2906ef0b910736189298d3c | Shell | Deron-D/otus-linux | /lab07/httpd_log_analyze.sh | UTF-8 | 2,681 | 3.796875 | 4 | [] | no_license | #!/bin/sh
# Define variables:
# First found log file
LOGFILE=$(find / -type f -name "access-4560-644067.log" | sed '2,$d')
# Lockfile
LOCKFILE=/tmp/httpd_log_analyze.pid
# Report file
REPORTFILE=/tmp/httpd_log_analyze_report.txt
# Number of TOP active IPs
X=10
# Number of TOP requested locations
Y=10
# File for save pr... | true |
015051906fd63a3d183a13b7c95cc9ed27b4d15e | Shell | anshu0612/Excel-Killer-E-Learning-App | /entrypoint.sh | UTF-8 | 736 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh -l
# remove dupes in the case where we are deploying to amazon from our local machines
rm -f lambda-deploy.zip
zip -r ./lambda-deploy.zip *
#sam build
sam package --output-template-file \
packaged.yaml --s3-bucket "$BUCKET_NAME"
if sam deploy --template-file packaged.yaml \
--region us-east-1 --cap... | true |
9d26c7e507b9d43f55ecefdc45085cd0efce6582 | Shell | ohmyzsh/ohmyzsh | /lib/history.zsh | UTF-8 | 1,478 | 3.8125 | 4 | [
"MIT"
] | permissive | ## History wrapper
function omz_history {
local clear list
zparseopts -E c=clear l=list
if [[ -n "$clear" ]]; then
# if -c provided, clobber the history file
echo -n >| "$HISTFILE"
fc -p "$HISTFILE"
echo >&2 History file deleted.
elif [[ -n "$list" ]]; then
# if -l provided, run as if calli... | true |
a8bc750fd687b388a3899ad4fde00a3b8aafd1ae | Shell | florez/PhenoAnalyzer | /PhenoCodes/run_sim.sh | UTF-8 | 3,411 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#Este código crea las condiciones para la simulación en MadGraph.
#Se crea un contador de prueba para verificar que se creen todas las simulaciones. Se ubica en la carpeta donde deben quedar las carpetas de las simulaciones.
COUNTER=0
echo El contador es $COUNTER
echo "import model mssm" > mgcode
echo "gen... | true |
31f71a297eedd6f0504a750906c3656b6023a600 | Shell | mxm0z/armadillo | /set_rules_firewalld.sh | UTF-8 | 518 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Author = Mxmzs
# License = MIT
#
echo "Opening $port/$protocol"
firewall-cmd --add-port "$port"/"$protocol"
firewall-cmd --permanent --add-port "$port"/"$protocol"
echo "Adding masquerade"
firewall-cmd --add-masquerade
firewall-cmd --permanent --add-masquerade
local_ip=`ip route get 8.8.8.8 | awk 'N... | true |
0bb39c0b1f6c059d120557795ca491059e247ca4 | Shell | gmarsay/rpki-rtr-client | /rtr_client/simple-connect-ssh.sh | UTF-8 | 436 | 2.921875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | :
#
# FYI type password at prompt - the username/password as per RFC8210 is rpki/rpki
#
HOST="rtr.rpki.cloudflare.com"
PORT="8283"
# -N Do not execute a remote command. This is useful for just forwarding ports.
# -T Disable pseudo-terminal allocation.
exec ssh \
-N \
-T \
-o StrictHostKeyChecking=Yes ... | true |
93432a926931441acb8b79115af2c85447bd1004 | Shell | qlycool/azure-devops-examples | /devops-springboot-web/build.sh | UTF-8 | 2,989 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Spring Boot application build script. Note that there are several
# @SpringBootApplication classes in this project, therefore there are
# several Maven POM files with specify their <mainClass> and Spring Profile.
# Chris Joakim, 2019/11/05
arg_count=$#
skip_tests=true
mvn_clean_compile() {
echo "m... | true |
b2cb170a9225a2a4e2a88a855953f3dc78146673 | Shell | huang195/actions-install-iter8 | /install.sh | UTF-8 | 1,122 | 3.296875 | 3 | [] | no_license | #!/bin/sh
#############################################################
# Check for input parameters
#############################################################
if [ -z "$INPUT_KUBECONFIG" ]; then
echo "KUBECONFIG input parameter is not set, exiting..."
exit 1
fi
if [ -z "$INPUT_ITER8_VERSION" ]; then
echo "... | true |
72898ce2992abf1bc6bef3fd48e776852bb34e70 | Shell | sigoa/pybm | /aaMenuXOR.sh | UTF-8 | 5,062 | 3.328125 | 3 | [] | permissive | #!/bin/bash
########################################################################################
# usage example: menu pwd whoami ls ps
# giving you a menu with 4 options to execute in bash shell / Konsole
# call in bash as: . menu1 # if menu1 is the file name with this script in... | true |
b163115fcd47a2b2e7d9e3ccb50cc48afa0207cc | Shell | portpaw/dotfiles | /.zshrc | UTF-8 | 1,540 | 3 | 3 | [] | no_license | # default user
# export DEFAULT_USER="jmooring"
export DEFAULT_USER="jon"
# path modifications
export PATH="$HOME/.bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH"
export MANPATH="/usr/local/man:$MANPATH"
# default pager
export PAGER="less -R"
# command aliases
alias c="code"
alias cdp="cd $HOME/Projects"
ali... | true |
725f331dd98824df638219dbbd4bda22960ceaa2 | Shell | jcampanaaxa/typescript-test | /scripts/test.sh | UTF-8 | 350 | 2.921875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
DEFAULT_FAILFAST_FLAG=false
DEFAULT_CONCURRENCY=4
CONCURRENCY=${1:-$DEFAULT_CONCURRENCY}
FAILFAST_FLAG=${2:-$DEFAULT_FAILFAST_FLAG}
FAILFAST="{ echo ''; }"
if [ "$FAILFAST_FLAG" != false ]
then
FAILFAST="{ echo 'FAILED!' ; exit 1; }"
fi
npm run eslint -- . || eval $FAILFAST
npm run units concurrency=$C... | true |
51b62c251ceaea544ef62ab4185e86176b899e8f | Shell | bennes1/codenames | /appgo.sh | UTF-8 | 821 | 3.84375 | 4 | [] | no_license | #!/bin/bash
case $1 in
dbshell)
container="codenames_mong"
cmd="bash"
;;
dbprompt)
container="codenames_mong"
cmd="mongosh -u admin -p pass"
;;
webshell)
container="codenames_frontend"
cmd="bash"
;;
esac
if [ -z ${container+x} ]; then
echo "Command $1 not recognized."
else
id=`docker ps | grep ... | true |
b1dc739f71e3b55b86978710bad1d9d2293fd182 | Shell | t50504/CLASHanalyst | /suite/bin/fun_comp/compare.sh | UTF-8 | 3,417 | 3.078125 | 3 | [] | no_license |
shell_folder=$(cd "$(dirname "$0")";pwd)
if [ ! -e "plot" ];then
echo mkdir plot
mkdir plot
fi
name=$1
python ${shell_folder}/compare.py select $name
echo select done
pir_out=pir.tab
hyb_out=hyb.tab
clan_out=clan.tab
hybrid_file=/home/bba753951/Django/master_project/media/uploadfile/$name/hyb_file_comp.fas... | true |
343f6b7dcff5af516511d3bc807a659321c727e5 | Shell | swissmanu/barefoot | /.travis/before_install.sh | UTF-8 | 702 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo '######################################'
echo '# BEFORE INSTALL #'
echo '# - START - #'
echo '######################################'
echo '---- Installing NaturalDocs ----'
sudo apt-get update
sudo apt-get install naturaldocs
sudo ln -s /usr/bin/naturaldocs... | true |
cf0a821b7873937fd942124d9cf94c947cc148e9 | Shell | killall5/devops-2020-05 | /pre-ansible/distribute.sh | UTF-8 | 194 | 2.96875 | 3 | [] | no_license | #!/bin/sh
HOSTS="ubuntu.local ubuntu.local"
read -s -p "Enter sudo password: " password
for host in $HOSTS; do
scp setup.sh $host:
echo $password | ssh $host sudo -S ./setup.sh
done
| true |
6d591f7aa86037d6922fc81e52d6faaa7f60b564 | Shell | Seagate/cortx-motr | /conf/st | UTF-8 | 9,512 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# 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
#
# U... | true |
a9a47ef57ab50ba7745e031fb50c5ea502b85af0 | Shell | CRAWlab/ARLISS | /2017/Tools/convert_coordinates.py | UTF-8 | 1,020 | 2.515625 | 3 | [] | no_license | #!/bin/sh
# convert_coordinates.py
#
#
# Created by Joseph Fuentes on 9/13/17.
#
def convert_latitude(lat_NS):
""" Function to convert deg m N/S latitude to DD.dddd (decimal degrees)
Arguments:
lat_NS : tuple representing latitude
in format of MicroGPS gps.latitude
Returns:
... | true |
4e1b26cef1b47f755016a1d3010a28f69b975631 | Shell | a-azad/geomexx.com | /deploy.sh | UTF-8 | 414 | 3.328125 | 3 | [] | no_license | #!/bin/sh
# If a command fails then the deploy stops
set -e
# delete docs folder
rm -rf docs
# Go to builder folder
cd www
# Build the project.
# if using a theme, replace with `hugo -t <YOURTHEME>`
hugo
cd ..
# # Add changes to git.
git add -A
# # Commit changes.
msg="rebuilding site $(date)"
if [ -n "$*" ]; t... | true |
e333612828465e900fcbe57f18250cd80b51a231 | Shell | jlin21/henchman-demo | /demoapp | UTF-8 | 1,337 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#
# chkconfig: 35 90 12
# description: mom_sender-cache script
#
# Source function library.
. /etc/rc.d/init.d/functions
DEMO_APP_DIR=/home/vagrant/demoapp
DEMO_APP_LOG_DIR=/var/log/demoapp
DAEMON=$DEMO_APP_DIR/server.js
DESC=demoapp
PID_DIR="/var/run/demoapp"
PID_FILE="${PID_DIR}/${DESC}.pid"
LOCK_FILE=$... | true |
69a9be2af02a767f4940950f7593b6681f7db898 | Shell | tais-aero/lugram | /print.sh | UTF-8 | 647 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# TODO: DRY with make.sh
filter=${1}
filter=${filter:=.*}
echo "#!/bin/bash" > out/entrypoint.sh
echo "set -e" >> out/entrypoint.sh
echo Generating screens 2>&1
screens=$(lua generate.lua fosdem17/list screens | grep -v "^$" | grep "${filter}")
echo "Will generate screens: ${screens}" 2>... | true |
c51619abc6d91b396f00c2b1795e7da443beec94 | Shell | LiberatorUSA/GUCEF | /projects/premake4/Premake4Common.sh | UTF-8 | 3,086 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Turn on tracing, we want to see what's going on
#set -x
# Remember the dir where we started out since we use relative paths
scriptPath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
PREMAKE4COMMON_SCRIPTSTARTDIR=${scriptPath%/*}
echo "PREMAKE4COMMON_SCRIPTSTARTDIR = $PREMAKE4COMMON_SCRIPTSTAR... | true |
0ec2c26d3a9991069bad6c84cbc9dfc12108d61c | Shell | friism/linuxkit | /base/alpine-build-toybox/build.sh | UTF-8 | 222 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
FILES=$@
make $FILES > /dev/null
[ $# -eq 0 ] && FILES=toybox
# TODO symlinks if just use toybox
mkdir -p /out/bin
mv $FILES /out/bin
printf "FROM scratch\nCOPY bin/ bin/\n" > /out/Dockerfile
cd /out
tar cf - .
| true |
93b007878b94ce2664fbbb8be1cd7416f9f25e4b | Shell | magnushamrin/github-action-install-dependent-sfdx-packages | /entrypoint.sh | UTF-8 | 592 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# The execution of this script stops if a command or pipeline has an error.
# For example, failure to install a dependent package will cause the script
# to stop execution.
wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
mkdir sfdx-cli
tar xJf sfdx-linux-amd64.tar.xz -C... | true |
0178814affdc20dd65de04e97c5161d018719b6e | Shell | arcaneastronaut/dotfiles | /config-groups/foundation/home/.bashrc | UTF-8 | 2,732 | 2.796875 | 3 | [
"Unlicense"
] | permissive | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
[ -z "$PS1" ] && return
color_black_black='\[\e[0;30m\]'
color_black_red='\[\e[0;31m\]'
color_black_green='\[\e[0;32m\]'
color_black_yellow='\[\e[0;33m\]'
color_black_blue='\[\e[0;34m\]'
color_blac... | true |
06b1c2a20bc3e2a89c4b38f28cbbe8c2cc9a8ece | Shell | pavankayankota/CapgeminiDevopstraing | /shellscripting/assignment07.sh | UTF-8 | 311 | 3.09375 | 3 | [] | no_license | #! /usr/bin/bash
shopt -s expand_aliases
alias TODAY="6/7/2021"
alias UFILES="find/home -user user"
TODAYSDATE="6/7/2021"
USERFILES='find/home-user user'
echo "Today's Date : $TODAYSDATE"
echo "user files : $USERFILES"
A='TODAY'
B='UFILES'
echo "with Alias, TODAY IS: $A"
echo "with Alias, UFILES IS : $B" | true |
95855570be1e0e9af0c81db9f003b8888b8da32a | Shell | brad-payne/k8s-cloud-loadbalancer | /lb-nodeport/run.sh | UTF-8 | 491 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source lb-nodeport.f
echo " - Running createLoadBalancer"
createLoadBalancer haproxy default
# echo " - Cleaning up old files"
# rm -f /etc/httpd/conf.d/*.bl
# echo " - Copying files"
# mv -f kubernetes.services.conf /etc/httpd/conf.d/
# mv -f *.service.bl /etc/httpd/conf.d/
# echo " - Restartin... | true |
b1f204c3b64fb82689e741110500dc10d6714803 | Shell | isabella232/mapbox-maps-ios | /scripts/code-coverage/generate-json-report.sh | UTF-8 | 1,205 | 3.671875 | 4 | [
"ISC",
"BSL-1.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-object-form-exception-to-mit",
"BSD-3-Clause",
"Zlib"
] | permissive | #
# Prerequisite:
# Prior to running this script, you must have generated an xcresults bundle that
# contains a code coverage report. This can be done by:
# 1. Running tests locally in Xcode with `gather reports` enabled for that scheme.
# 2. Running the tests locally via the relevant make command.
#
# Purpose:
# This... | true |
f117dd65a2300ec4c648d48ce3811db9af297f1f | Shell | WhitewaterFoundry/fedora-remix-rootfs-build | /linux_files/check-dnf.sh | UTF-8 | 187 | 2.828125 | 3 | [] | no_license | #!/bin/sh
# Only the default WSL user should run this script
if ! (id -Gn | grep -c "adm.*wheel\|wheel.*adm" >/dev/null); then
return
fi
if [ -z "${WSL2}" ]; then
sudo check-dnf
fi
| true |
c6fe04d7ff548bc9180143595a59a9e1c158296a | Shell | Loutcho/oeis | /A300997/src/main/prolog/graphviz.sh | UTF-8 | 533 | 2.90625 | 3 | [] | no_license | GV="moitmoit.gv"
> $GV
echo "digraph G {" >> $GV
echo " rankdir=\"LR\";" >> $GV
echo " node [shape=\"none\" style=\"filled\" fillcolor=\"#BBBBBB\"];" >> $GV
echo " edge [arrowhead=\"none\" arrowtail=\"normal\" dir=\"back\"];" >> $GV
n=1
while [ $n -le 16 ]
do
echo "\"[$n]\" [label=\"[$n]\" fillcolor=\"#BBFFBB\"];" >>... | true |
15e09dc228958e2770266ab84a20b5d1f6b300c6 | Shell | Luavis/dotfiles | /.zshrc | UTF-8 | 998 | 2.71875 | 3 | [] | no_license | export ZSH=~/.oh-my-zsh
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export LANG=en_US.UTF-8
ZSH_THEME="bureau"
plugins=(git git-flow cp tmux osx fzf
autojump fast-syntax-highlighting zsh-autosuggestions kubectl)
bindkey '[C' forward-word
bindkey '[D' backward-word
# load dotfiles
for file in ~/.{ex... | true |
14ff0301462cb8e73263c5df0bc6259dc419f171 | Shell | Nemie/syco | /var/clam/viruscan.sh | UTF-8 | 1,464 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# __author__ = "mattias@fareoffice.com"
# __copyright__ = "Copyright 2011, The System Console project"
# __maintainer__ = "Daniel Lindh"
# __email__ = "syco@cybercow.se"
# __credits__ = ["???"]
# __license__ = "???"
# __version__ = "1.0.0"
# __status__ = "Production"
# Random sleep to start within 12 hour... | true |
3e5158fe48c60a9cd940bfb78d686ba5262bc4c8 | Shell | infernalheaven/HexType | /scripts/install-hextype-files.sh | UTF-8 | 6,483 | 2.65625 | 3 | [] | no_license | #!/bin/bash
#This script softlinks our modified files into the LLVM source tree
#Path to llvm source tree
llvm=`pwd`/llvm
clang=`pwd`/clang
src=`pwd`/src
runtime=`pwd`/compiler-rt
#llvm include
llvminc=$llvm/include/llvm
#llvm pass
llvmpass=$llvm/lib/Transforms/Instrumentation
#llvm passutil
llvmutil=$llvm/lib/Tra... | true |
94cd31d3192f2beba4657d59a3f3f3c48c6ffab5 | Shell | zleba/alignment | /installARMA.sh | UTF-8 | 375 | 2.734375 | 3 | [] | no_license |
version=10.2.1
pwd=$PWD
mkdir -p $pwd/arma/install
cd $pwd/arma
#wget https://sourceforge.net/projects/arma/files/armadillo-8.500.1.tar.xz/download && tar xf download
wget http://sourceforge.net/projects/arma/files/armadillo-${version}.tar.xz && tar xf *.tar.xz
cd $pwd/arma/armadillo-${version}
cmake . -DCMAKE_I... | true |
f2cc0a126680ef2f5ea31f631da34b6a7983dafa | Shell | kie4280/GoDrive | /scripts/stop_dlv.sh | UTF-8 | 177 | 2.609375 | 3 | [] | no_license | #!/bin/bash
echo "stopping debug server"
sleep 1
if ps -a| grep -E "^.*[0-9]+ dlv$"; then
echo "exit" | dlv connect :2345
sleep 1
killall dlv
fi
echo "stopped" | true |
1ad5e6f97e9b7be3974c9fa4441785d93147322f | Shell | cvasilak/mbed-edge-examples | /mqttpt-example/mqttgw_sim/mqtt_gw_crypto_api.sh | UTF-8 | 6,266 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ----------------------------------------------------------------------------
# Copyright 2018 ARM Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#
# 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 ... | true |
273f35b5ef0f86bb32f38dd6e470ef8cc367c881 | Shell | eginez/mutualTlsgo | /certs/create.sh | UTF-8 | 1,357 | 2.71875 | 3 | [] | no_license | #!/bin/sh
mkdir ca client server
## Root CA first
echo Creating root
cd ca
mkdir certs crl newcerts private
touch index.txt
echo 1000 > serial
#Generate key
openssl genrsa -aes256 -out private/key.pem 2048
#Create root certificate
openssl req -config ../openssl.cnf \
-key private/key.pem \
-new -x509 ... | true |
4fd51a8912529219c4f187423eb1b4ec0659ada0 | Shell | thomassuedbroecker/cloud-native-starter | /openshift-scripts/show-urls.sh | UTF-8 | 3,882 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
root_folder=$(cd $(dirname $0); cd ..; pwd)
exec 3>&1
function _out() {
echo "$(date +'%F %H:%M:%S') $@"
}
CFG_FILE=${root_folder}/local.env
# Check if config file exists, in this case it will have been modified
if [ ! -f $CFG_FILE ]; then
_out Config file local.env is missing! Check our instruct... | true |
6e822e81785b7eb070ac48b89fced122fe16a89c | Shell | ZQyou/osc-ood-config | /ood-test.osc.edu/apps/myjobs/templates/Basic_ANSYS_FLUENT_Serial_Job_Owens/fluent.sh | UTF-8 | 859 | 2.75 | 3 | [
"MIT"
] | permissive | #PBS -N ondemand/sys/myjobs/basic_ansys_fluent_serial
#PBS -l walltime=00:30:00
#PBS -l nodes=1:ppn=1
#PBS -l software=ansys+1
#PBS -j oe
# A basic FLUENT Serial Job
# Further details available at:
# https://www.osc.edu/resources/available_software/software_list/ansys/fluent
#
# The following lines set up the FLUENT... | true |
37f3e6e65b488f9fe8925be9b56d6f69f00ca4d9 | Shell | jflemer/selenium-oneshot | /build.sh | UTF-8 | 386 | 3.109375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set +x
if [ ! -e docker-compose ]; then
curl -L --fail https://github.com/docker/compose/releases/download/1.22.0/run.sh -o docker-compose
chmod +x docker-compose
fi
NAME="${PWD##*/}"
docker build --tag "${NAME}-selenium:latest" selenium
docker build --tag "${NAME}-runner:latest" runner
sed -e 's/@@N... | true |
7930836d39e769b7c5174646055aca8918c4927e | Shell | d3v1l401/PeGo | /build.sh | UTF-8 | 229 | 2.671875 | 3 | [] | no_license | #!/bin/bash
disos=$(uname)
if [[ "$disos" == "Linux" ]]; then
go build -buildmode=plugin "$(pwd)/plSources/GoLangIdentifier/main.go" -o "../../plugins/goident.p4pg"
else
echo "Unsupported Go Build Architecture"
fi
| true |
466de84a52e3234b1c2041e552be0a4ae827868d | Shell | gljivar/powerplant | /.git_hooks/pre-commit | UTF-8 | 463 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/sh
PRETTIER=./node_modules/.bin/prettier
if [ ! -f "$PRETTIER" ]; then
echo "prettier not found; run 'npm install' before commit to enable auto-formatting"
exit 1
fi
jsfiles=$(git diff --cached --name-only --diff-filter=ACM "*.js" "*.jsx" | tr '\n' ' ')
[ -z "$jsfiles" ] && exit 0
# Prettify all staged .j... | true |
58837e258be38b16ca04743e1787487bcfd7d5f9 | Shell | praveenn7/KKN1 | /p90.sh | UTF-8 | 341 | 3.375 | 3 | [] | no_license |
read -p "Enter a emp name:" ename
echo $ename|grep -qE "^[A-Z][a-z]+$"
if [ $? -ne 0 ];then
echo "Emp name is not in title case format"
exit
fi
read -p "Hello..$ename enter your emp ID:" eid
echo $eid|grep -qE "^[A-E][0-9]{3}$"
if [ $? -ne 0 ];then
echo "Emp id:$eid is not valid format"
exit
fi
echo -e "Emp name:$... | true |
2fce4f3b766123328049a076dc3d6eee9ea49218 | Shell | jpikel/School-Projects | /Encryption Server/compileall | UTF-8 | 892 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#
# Filename: compileall
# Author: Johannes Pikel
# ONID: pikelj
# Date: 2017.03.01
# Class: CS344-400
# Assignment: Program 3 OTP
# Description: a bash script file that will compile the 5 programs that are
# a part of the OTP program 3.
# otp_enc_d is the encryption server
# otp_enc is the encryption clien... | true |
f2602f70865dc3e06eed922211965802b40186cf | Shell | neutrons/StatisticsService | /bin/mantidstats | UTF-8 | 2,086 | 3.9375 | 4 | [
"EPICS"
] | permissive | #!/bin/bash
# This is really just a helper for the init.d script.
# If you want to run the program manually, you're probably better off just
# running python itself.
# First, figure out where we're installed so that we know how to find the
# main module. We do this with a combination of $0 and (maybe) $PWD.
# ${0:0:... | true |
07c188ff5fe483f2397ca635e0456dde193d9f7b | Shell | phyletica/gekgo | /data/genomes/cyrtodactylus_philippinicus_KU330797/assembly/idba_output/30-100-10/job_scripts_and_data/idba_monitor.sh | UTF-8 | 1,112 | 2.9375 | 3 | [
"CC-BY-4.0"
] | permissive | #PBS -N idba_monitor
#PBS -l nodes=1:ppn=1,mem=256m,walltime=350:00:00
#PBS -S /bin/sh
#PBS -q long
#PBS -M joaks1@ku.edu
source ${HOME}/.bash_profile
cd $PBS_O_WORKDIR
kmin=30
kmax=100
kinc=10
output_dir=${PBS_O_WORKDIR}/idba_output
qsub_file=${PBS_O_WORKDIR}/idba.sh
log_file=${output_dir}/log
proc_num=42285
proc_... | true |
a1917591a8c5c3281bcf1c9669b9207a38f1c70e | Shell | Yzoni/cuckoo-docker | /run_host_3.sh | UTF-8 | 292 | 2.71875 | 3 | [] | no_license | #!/bin/bash
set -x
echo "Phase 4: Starting installation"
# Setup vars
source ./common
# Creating snapshot
docker exec -ti $DID /bin/bash -c "source ./venv-vmcloak/bin/activate && vmcloak snapshot win10_x64 win10_x64_clean 192.168.56.101 -d --vrde"
echo "Phase 4: Installation finished"
| true |
c187b62818caecbe4ad83ea96ec9f796b10da196 | Shell | ECP-WarpX/WarpX | /Tools/Release/newVersion.sh | UTF-8 | 3,442 | 4.125 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | #!/usr/bin/env bash
#
# Copyright 2021 Axel Huebl
#
# This file is part of WarpX.
#
# This file is a maintainer tool to bump the versions inside WarpX'
# source directory at all places where necessary.
#
# Note: this script is only tested with GNUtools (Linux)
set -eu -o pipefail
# Maintainer Inputs ###############... | true |
2ed735f1856e5362068f0fe832e9bf919549fb4f | Shell | izumin5210-sandbox/rails-modern-frontend-with-docker-sample | /script/bootstrap | UTF-8 | 265 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
dirname=$(dirname $0)
if [ ! -e $dirname/../.env ]; then
cp -v $dirname/../.env{.sample,}
fi
set -x
$dirname/clean
docker-compose build
$dirname/rails db:create
$dirname/rails db:migrate
$dirname/rails db:seed_fu
$dirname/server
| true |
3da64d92790d39fecfd54e427dc81525ee054a39 | Shell | ZachWunder/LocalSync | /sync.sh | UTF-8 | 466 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# $1 = Local Directory
# $2 = S3 Bucket (don"t include s3://)
# $3 = AWS Profile Name
# Watch local dir
fswatch -d $1 |
while read -r directory ; do
# Syncs from S3 to local directory (Pull)
AWS_PROFILE=$3 aws s3 sync s3://$2 $1 --exclude "*.DS_Store" --exclude ".git/*" --exclude ".obsidian/*"
# ... | true |
d2d949503d2b64747b0c459fec6fbffc43a9ed76 | Shell | vhbb/cmssw | /VHbbAnalysis/Heppy/test/crab/localTest.sh | UTF-8 | 466 | 2.796875 | 3 | [] | no_license | #!/bin/sh
FILES=`echo "print ' '.join(config.JobType.inputFiles)" | python -i heppy_crab_config.py `
DIR=/tmp/localtest$2
mkdir $DIR
echo -e "process.source.fileNames = ['$1']\nprint process.dumpPython()" | python -i heppy_crab_fake_pset.py > $DIR/PSet.py
for i in $FILES ; do
cp $i $DIR
done
cp heppy_crab_script.sh $D... | true |
f4fabb1687cb58e38d40f8205ccf63c8ba7bd5b5 | Shell | grahamgilbert/crostini_setup | /crostini_setup.sh | UTF-8 | 2,961 | 3.0625 | 3 | [] | no_license | #!/bin/bash
CURRENTUSER=`logname`
apt install -y lsb-release software-properties-common
# gcloud
# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.g... | true |
6829dab17775c0781b6ca5e3c817fd7138f1d79b | Shell | c0axial/MacC2 | /setup.sh | UTF-8 | 429 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
openssl req -new -newkey rsa:2048 -nodes -out ca.csr -keyout ca.key && openssl x509 -trustout -signkey ca.key -days 365 -req -in ca.csr -out ca.pem
echo Enter IP/hostname of your MacC2 server:
read server
echo Enter listening port for your MacC2 server:
read port
python3 macro_generator.py -s $server ... | true |
a056c16aa38aff03eb7b59abaee2ec34accf8d3c | Shell | BM1880-BIRD/bm1880-system-sdk | /ramdisk/target/overlay/bm1880/etc/run_usb.sh | UTF-8 | 3,642 | 3.65625 | 4 | [] | no_license | CLASS=acm
VID=0x30b1
PID=0x1003
MANUFACTURER="Bitmain"
PRODUCT="USB Com Port"
SERIAL="0123456789"
MSC_FILE=$3
BM_DIR=/tmp/usb
BM_GADGET=$BM_DIR/usb_gadget/g_1880
FUNC_NUM=0
MAX_EP_NUM=4
TMP_NUM=0
EP_IN=0
EP_OUT=0
case "$2" in
acm)
CLASS=acm
;;
msc)
CLASS=mass_storage
;;
bcm)
CLASS=bcm
;;
*)
if [ "$1" = ... | true |
abb196c0de77ce8bf303fb4cd4eeed421433bf78 | Shell | alphaaurigae/gentoo_unattented-setup | /var/var_main.sh | UTF-8 | 1,388 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | CRYPTSETUP="YES" # THIS VAR DEFINES IF CRYPTSETUP IS ACTIVATED FOR ROOT, # YES DEPENDS ON var/chroot_variables.sh SYSAPP_DMCRYPT="YES"!!!! if set to no and SYSAPP_DMCRYPT="YES" #crypset is defined in useflag as option var/chroot_variables.sh
# OPTION AS IS NO = LVM ON ROOT ; YES = LVM ON CRYPTSETUP_ROOT
## DRIVES &... | true |
7d86c5587e6d06b303054e942566d0807bc4ad5a | Shell | danbikle/forecast4 | /script/calc_dips.bash | UTF-8 | 361 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# calc_dips.bash
# This script should transform a series of GSPC prices into a series of dips.
# Demo:
# ./calc_dips.bash
# I should run this script in the folder which holds this script:
cd `dirname $0`
# I should get the prices before I generate the dips:
./reqp.bash
# I should calculate the dips:
~... | true |
7acafcee67342af2fccba25267f7e724dc3cd72d | Shell | anniyanvr/DeepSpeech-1 | /examples/voxceleb/sv0/local/emb.sh | UTF-8 | 1,979 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | true |
a33220cc0b670107b1801596d7f081b0dafa9acf | Shell | rubythonode/slash-developers | /generate-docs.sh | UTF-8 | 1,101 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
rm -dfr docs
echo "Processing Markdown"
for filename in $(find raw_docs -type f -name '*.md'); do
echo $filename
original_string=$filename
string_to_replace_with=docs
result_string="${original_string/raw_docs/$string_to_replace_with}"
echo $result_string
mkdir -p "$(dirname "$result_... | true |
9e9f124bef10bb4acba7a7956d105b6e122ee921 | Shell | aleandros/metaprogramming-demo | /wtf.sh | UTF-8 | 431 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
TARGET=$1
if ! (pgrep $TARGET &>/dev/null) ; then
echo "Process not found"
exit 1
fi
most_memory() {
ps aux --sort -%mem |
sed -n 2p |
awk '{print $11; print $4}' |
paste -sd,
}
log_memory() {
while true
do
echo "$(date),$(most_memory)%" >> "most-memory.log"
sleep 2
done
}
... | true |
33f1f69f1ba450fbfacfc9e137a1868adfe8e0a9 | Shell | hesong1976/onos | /tools/test/bin/onos-check-intent | UTF-8 | 557 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# -----------------------------------------------------------------------------
# Checks that all intents in the system have a given state.
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/too... | true |
11e60b4db1e2bbeaa96e68118d8dda52afbbd5e4 | Shell | petronny/aur3-mirror | /fcgiwrap-git/PKGBUILD | UTF-8 | 1,287 | 2.8125 | 3 | [] | no_license | # Contributor: Ron Huang <ronhuang+aur at gmail dot com>
pkgname=fcgiwrap-git
pkgver=20100930
pkgrel=1
pkgdesc="Simple FastCGI wrapper for CGI scripts"
arch=('i686' 'x86_64')
url="http://github.com/gnosek/fcgiwrap/"
license=('MIT')
depends=('spawn-fcgi')
makedepends=('git' 'autoconf' 'automake' 'fcgi')
provides=('fcgiw... | true |
2b2ffe6f134499dc2a5712d4fe0d73bde234eca0 | Shell | qizhenghai2020/mdserver-mac-reinstall | /cmd/base/cmd_icu.sh | UTF-8 | 786 | 2.890625 | 3 | [
"MIT"
] | permissive | #! /bin/sh
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
DIR=$(cd "$(dirname "$0")"; pwd)
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
MDIR=$(dirname "$DIR")
mkdir -p $MDIR/source/cmd
echo 'icu4c start'
if [ ! ... | true |
273ca30ebb8ed782b2acfc17ba06ef93ed4ef9a3 | Shell | quattrococodrilo/terminal_curso | /8_readValidate.sh | UTF-8 | 535 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Programa para ejemplificar cómo capturar la información del usuario
# y validarla.
# Author: Luis Fernando Cruz Carrillo
# Email: quattrococodrilo@gmail.com
option=0
backupName=""
clave=""
echo "Postgres Utilities program"
# Acepta el ingreso de información de solo un caracter
read -n1 -p "Enter an o... | true |
9526239f3049c26e21e108d2037c104b1be87d2b | Shell | ezyang/pytorch-unattached | /tools/cpp_build/build_nanopb.sh | UTF-8 | 514 | 3.3125 | 3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -ex
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
pushd $SCRIPTPATH
source ./build_common.sh
echo "Building nanopb"
mkdir -p $NANOPB_BUILDPATH
pushd $NANOPB_BUILDPATH
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:STRING=$INSTALL_PREFIX \
-DCMAKE_INSTALL_MES... | true |
72fcdefdd20695b32584953157cf331bf2b650c6 | Shell | AngelofWoe/arkos | /RG351P-M/Ubuntu OS Partition/usr/share/initramfs-tools/hooks/kmod | UTF-8 | 430 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/sh -e
# Copy the compatibility symlinks until initramfs-tools will be converted
# to use the kmod program.
if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions
copy_exec /bin/kmod
cp -a /sbin/modprobe /sbin/rmmod "$DESTDIR/sbin/"
mkdir -p "$DESTDIR/lib/modprobe.d/"
if [ "$(ech... | true |
3bf2e1d39123449a5be8474c57cda2dfe39a2417 | Shell | eij/Shot | /shot | UTF-8 | 597 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
VERSION="1.0"
type -P scrot &>/dev/null || { echo "Scrot is missing, install it." >&2; exit 1; }
type -P tell &>/dev/null || { echo "Tell is missing, install it." >&2; exit 1; }
SHOT_FOLDER="$HOME/"
SHOT_FILE="`date +%s%N`.png"
while getopts "hn:" OPT
do
case $OPT in
n)
if [ `echo $OPTARG | grep "... | true |
6fe02d34d7e6135b3816f5bafd2d1a4666ebac4a | Shell | rommi4/rvconfig | /.bashrc | UTF-8 | 3,639 | 3.25 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# expor... | true |
cd851ec335a15200536d48387ce4d27d59be93e5 | Shell | thovarMS/5clickTemplates | /RawCluster/install-abq.sh | UTF-8 | 2,949 | 2.515625 | 3 | [] | no_license | #!/bin/bash
USER=$1
LICIP=$2
HOST=`hostname`
echo $USER,$LICIP,$HOST
yum install -y redhat-lsb-core
yum install -y compat-libstdc++-33.i686
yum install -y ksh
mkdir /mnt/resource/scratch/applications
mkdir /mnt/resource/scratch/INSTALLERS
mkdir /mnt/resource/scratch/benchmark
wget -q http://azbenchmarkstorage.blob.c... | true |
18f11dd108b2924e7e1844c48f61b7ff0526a696 | Shell | StoutCEE/server_setup | /LAMP/lamp_setup.sh | UTF-8 | 851 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
hostip="$(ip addr | grep 'state UP' -A2 | awk '/inet / {print $4}')"
# Apache2 Install
# Installing Apache2
apt-get update
apt-get -y install apache2
# Add host IP to Apace2 Config File
echo ServerName $hostip >> /etc/apace2/apache2.conf
# Check for errors and restart Apache2
apache2ctl configtest
systemc... | true |
c086a774b5118b4eac5825a000b748498549cbd5 | Shell | yihanxiaotai/bash_scripts | /rasp.sh | UTF-8 | 2,236 | 3.296875 | 3 | [] | no_license | #! /bin/bash
# script to install/create an environment for ReAgent in CentOS 8 (no GPU)
# based on https://github.com/facebookresearch/ReAgent/blob/master/docs/installation.rst
# installing git and other packages (development, utilities).
sudo yum install git gcc openssl-devel bzip2-devel libffi-devel zlib-devel wget ... | true |
f80e239b016ed5126909666c078ddb4515aa82a8 | Shell | uchilaka/wp-in-docker | /scripts/checkEntrypoint | UTF-8 | 144 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -f "./docker-entrypoint.sh" ]]; then
echo "Docker entrypoint exists!"
else
echo "docker-entrypoint.sh not found :("
fi | true |
a6ee46bdb91a47db99312aac925a6a2fd0a512b2 | Shell | martelogan-personal-site/personal-site-release | /deploy.sh | UTF-8 | 4,640 | 4.34375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Script to automate build and deployment of personal website.
# Copyright (C) 2015 Logan Martel - All Rights Reserved
# Permission to copy and modify is granted under the GNU Apache License 2.0
# Last revised 06/29/2018
# See README.md for further details.
# Note, this script has been modified & ... | true |
1d17744784ee4a736bdd33255a846105eb0cad37 | Shell | ckaserer/latex-resume | /bashrc | UTF-8 | 360 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
readonly LATEX_RESUME_SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# latex-resume
function latex-resume () {
local command="docker run --rm -i --net=none -v "${LATEX_RESUME_SCRIPT_DIR}":/data ckaserer/latex:full lualatex cv.tex"
echo "+ ${command} $@" && ${command} $@
}
readonly -f lat... | true |
d45fcf9df9a99c40892324aa4ebb0690dbd0d114 | Shell | termux/termux-packages | /packages/gitui/build.sh | UTF-8 | 1,248 | 3 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://github.com/extrawurst/gitui
TERMUX_PKG_DESCRIPTION="Blazing fast terminal-ui for git written in rust"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE.md"
TERMUX_PKG_MAINTAINER="@PeroSar"
TERMUX_PKG_VERSION=0.23.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/extrawurst... | true |
c5872507a31748182f0acd67912ebb88f16e863c | Shell | hjanime/IGCSA | /hbase-genomes/aws-scripts/local-pipeline-run.sh | UTF-8 | 3,069 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ ! -f "$EMR_HOME/elastic-mapreduce" ]; then
echo "EMR_HOME not set."
exit
fi
#if [ $# -lt 3 ]; then
# echo "USAGE: $0 <New Genome Name: string> <Terminate on failure: true/false> <s3 bucket> <number of cores: default=3>"
# exit
#fi
TERM="TERMINATE_JOB_FLOW"
#if [ $2 == "false" ]; then
# TERM="C... | true |
fe06103f91684ecca8ecaca44f5022d850b465dd | Shell | losipiuk/ircmdbot | /devenv.sh | UTF-8 | 1,837 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# stolen from https://raw.githubusercontent.com/kokosing/git-gifi/master/devenv.sh
# thanks grzesiek
if [[ "$VIRTUAL_ENV" == "" ]]; then
VIRTUAL_ENV="/Users/losipiuk/workspace/virtualenvs/ircmdbot"
fi
COMMANDS="help init install build release"
SETUP='python setup.py'
function _err() {
echo $*
e... | true |
c30677491138f2b872ac264156b85207992aee3b | Shell | kreativekorp/open-relay | /AlcoSans/build.sh | UTF-8 | 2,506 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
# Find FontForge
if command -v fontforge >/dev/null 2>&1; then
FONTFORGE="fontforge"
elif test -f /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge; then
FONTFORGE="/Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge"
else
echo "Could not find FontForge."
... | true |
e7f03162f9c020deb95f7ec1ac8ab9af7b0ae382 | Shell | jasoncuriano/dotfiles | /bootstrap-all.sh | UTF-8 | 645 | 4.28125 | 4 | [] | no_license | #!/usr/bin/env bash
wait_for_space() {
read -n1 -r -p "Press space to continue..." key
if [ "$key" = '' ]; then
echo "Continuing..."
else
echo "Exiting"
exit 1
fi
}
wait_for_space
echo "Making macos.sh executable"
chmod +x "macos.sh"
echo "Running macos.sh"
sh "macos.sh"
decla... | true |
f930f0cf3d0f3f9096a1392ebb0d0293cae95b94 | Shell | Mirocow/site-create | /site-create.sh | UTF-8 | 17,062 | 3.6875 | 4 | [] | no_license | #!/bin/bash
if [ ! -n "$BASH" ] ;then echo Please run this script $0 with bash; exit 1; fi
function trim()
{
echo "$1" | awk '{gsub(/^ +| +$/,"")} {print $0}'
}
function create_site()
{
site_name=$HOST
site_alias=$ALIAS
site_addr=$IP
password=$(date +%s | sha256sum | base64 | head -c 16 ; echo)
if [ ... | true |
8457b53a9076c39ce3d20468e39a59d7f2cb255e | Shell | Hoboneer/.dotfiles | /graphical/.config/bspwm/watch/pulseaudio | UTF-8 | 1,569 | 3.828125 | 4 | [] | no_license | #!/bin/sh
# DESCRIPTION: Watch for changes to audio volume, outputting to `xob`
# DEPENDENCIES: pactl(pulseaudio-utils) xob
echo "$$" > "$XDG_RUNTIME_DIR/bspwm/watch_pulseaudio.pid"
default_sink_name="$(LC_ALL=C pactl info | awk '/^Default Sink:/{print $3; exit}')"
default_sink_id="$(LC_ALL=C pactl list short sinks |... | true |
c573a91a93b37f680b4bab1544192b387b89f4b1 | Shell | meticulo3366/kolla | /docker/common/nova/nova-libvirt/start.sh | UTF-8 | 463 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
CMD="/usr/sbin/libvirtd"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Config-internal script exec out of this function, it does not return here.
set_configs
# TODO(SamYaple): Unify this with config-internal. Tweak libvirt.conf rather
# than chang... | true |
d811da8d733582c3f3b7e0d123ee8971a5560986 | Shell | thingsboard/thingsboard.github.io | /_includes/docs/reference/performance-scripts/init-tests.sh | UTF-8 | 1,052 | 3.0625 | 3 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | #!/bin/bash
. test-ips.sh
COUNTER=0
for IP in ${IPS}; do
let COUNTER++
echo "INIT ${COUNTER} FOR ${IP}"
ssh -i ~/.ssh/aws/smatvienko.pem -o StrictHostKeyChecking=accept-new ubuntu@${IP} <<'ENDSSH'
set +x
#optional. replace with your Thingsboard instance ip
#echo '52.50.5.45 thingsboard' | sudo tee -a /etc/host... | true |
feb781c4e107ff58b551dc7efde0519a135ee9fd | Shell | asiekierka/twili | /pkgs/xz/build.sh | UTF-8 | 218 | 2.921875 | 3 | [] | no_license | #!/bin/sh -e
VER=5.0.3
test -e xz-$VER.tar.bz2 || wget http://tukaani.org/xz/xz-$VER.tar.bz2
rm -rf xz-$VER;tar -xf xz-$VER.tar.bz2
cd xz-$VER
./configure --prefix=/
make
make DESTDIR=$1 install
cd ..
rm -rf xz-$VER
| true |
3cd86791e98c50fdd22c47177f51e70491f9d0a0 | Shell | sanusatyadarshi/hsc | /examples/e01.6/ca-mars.morgen.net/create.sh | UTF-8 | 6,029 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# -----------------------------------------------------------
# (1) Setup CA for org mars.morgen.net
# creates home directory for TLS-CA Server and TLS-CA client
# -----------------------------------------------------------
mkdir -p ca/server
mkdir -p ca/client/admin
docker-compose up -d
#copys the org1-... | true |
4647e18c7f5deacd14ff7420e33fc4c88c1c1428 | Shell | jakubfabijan/UTC-shift-checker | /utcget.sh | UTF-8 | 163 | 3.296875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
get="$(expr $(date +%H) - $(date -u +%H))"
if [[ $get -lt 0 ]]
then
echo UTC$get
elif [[ $get -gt 0 ]]
then
echo UTC+$get
else
echo UTC
fi
| true |
93de91a86e893cbe597d05323d3a3318d6516439 | Shell | ColdenCullen/d2dl | /build/ddl/doc.sh | UTF-8 | 975 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# doc.sh
source build/ddl/ver.sh $@
packageName="../downloads/ddl.sdk.$ddlDocVersion.zip"
echo "Building DDL Documentation"
rm $packageName
# crawl the source tree
$nolinkbuild -o- doc/ddl/xhtml.ddoc -Dd./doc/ddl/html -full -Xmango ddl/all.d
$nolinkbuild -o- doc/ddl/xhtml.ddoc -Dd./doc/d... | true |
8e7d6b54e47e213ec4cf532d6bec1197636ce0b1 | Shell | borodust/lisp-scripts | /lisps/lisp-script-prologue.sh | UTF-8 | 145 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
SCRIPTING_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)"
LISP_SCRIPT=$1
export LISP_SCRIPTING_SCRIPT_PATH=$LISP_SCRIPT
shift
| true |
5aa1639e8d8678d6524239d8ea751b97edbfa3a5 | Shell | virajkulkarni14/bash_basix | /moreifscript.sh | UTF-8 | 442 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/zsh
clear
echo -n "Enter a number: "
read num
if [ "$num" -eq 10 ] #spaces here are important, eq -> equal
# put the echo statement here and it will still say good num for any num
then
echo "The number is 10!"
elif [ "$num" -lt 10 ] #less than
then
echo "This number is less than 10"
elif [ "$num" -gt 20 ] ... | true |
38bf54b82041cfefd8d0f5a17010319b22f64b84 | Shell | slash-segmentation/CHM | /wrappers/panfish/test/runCHM.sh.bats | UTF-8 | 7,470 | 3.328125 | 3 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bats
setup() {
export THE_TMP="${BATS_TMPDIR}/runCHM" 1>&2
/bin/mkdir -p $THE_TMP 1>&2
/bin/cp ${BATS_TEST_DIRNAME}/../panfishCHM.properties "$THE_TMP/." 1>&2
/bin/cp -a ${BATS_TEST_DIRNAME}/../scripts/.helperfuncs.sh "$THE_TMP/." 1>&2
/bin/cp -a ${BATS_TEST_DIRNAME}/../scripts/runCHM.sh "$TH... | true |
d64d81f8bd46f7c8a4761364c9daa57eb8c702d9 | Shell | 5l1v3r1/scripts-46 | /python-fushcache | UTF-8 | 491 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
# this file is part of the nil0x42's git repositories
# for the current version, take a look at:
# https://github.com/nil0x42/scripts
# Recursive removal of python cache files from <directory>.
# (removes all `*.pyc` and `__pycache__/` files)
# Usage: python-flushcache <directory>
# If <director... | true |
56eb3e607d220080fb534e71e0420f555cc81116 | Shell | argv01/zmail | /zmail/config/overflow.sh | UTF-8 | 635 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Certain implementations of the Borne shell have a 1K limit on the
# length of the target word for case statements. That presents a
# problem for our configure script, which easily exceeds this limit
# while accumulating $DEFS.
#
# This script attempts to hit this buffer limit in whatever shell
# interpret... | true |
a13204e9c03fb1e4bf9c1f9da8eab0c01486ca8f | Shell | gfontenot/dotfiles | /setup/install-homebrew | UTF-8 | 430 | 3.046875 | 3 | [] | no_license | #!/bin/sh
set -e
echo ""
echo "==========================================="
echo "Setting up Homebrew"
echo ""
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
|| echo "Homebrew already installed"
eval "$(/opt/homebrew/bin/brew shellenv)"... | true |
d3d6db0220f2eb3742363555476b909a8f6ed32d | Shell | jirka-h/fpuAccuracy | /plot.sh | UTF-8 | 16,960 | 2.53125 | 3 | [] | no_license | #!/bin/bash
TITLE_PREFIX=$(lscpu | grep "Model name:" | awk -F':[[:blank:]]*' '{print $2}')
COMMAND_FILE=plotcmds.txt
[ -f fyl2x-r1.txt.xz ] && gnuplot <<EOF
set title "$TITLE_PREFIX FYL2X (1.0-2.0)"
set xlabel "Biased Exponent of Extended Precision input Argument"
set ylabel "Error in ULPs"
set grid
set term png size... | true |
ecb119d05bc674c1660c44ea3219206579509e65 | Shell | lodybo/dotfiles | /shell/functions.sh | UTF-8 | 2,429 | 3.96875 | 4 | [
"MIT"
] | permissive | # Shell functions
############################################
# Dotfiles
############################################
dotfiles_latest()
{
dotfiles_version=$(git -C "$DOTFILES" tag --list | awk '{print $0}' | awk '{t=$0} END{print t}')
dotfiles_latest_tag="$(git ls-remote --tags https://github.com/lodybo/dotfiles.... | true |
f9966389addff42a036a8aa9d145a3849dcc4db7 | Shell | JamesLinus/shell | /sh.d/repository.sh | UTF-8 | 634 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# Massimo Lauria, 2013, 2015
#
# Commands for controlling all my repositories
# simultaneously.
# It requires `function` capabilities from the shell.
[ -n "$BASH" ] || [ -n "$ZSH_NAME" ] || return 0
function myrepos() {
MAINREPOS=(~/config ~/personal ~/lavori)
COMMANDS=$@
if [[ -z "$@" ]]... | true |
3ce7ccddc5bc84dddfd0b2aebc132e8ed97b4b6a | Shell | Aitthi/Nginx-Server-Blocks | /ng-mt.sh | UTF-8 | 1,334 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#color
RESTORE='\033[0m'
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LYELLOW='\033[01;33m'
LBLUE='\033[01;34m'
LPURPLE='\033[01;35m'
LCYAN='\033[01;36m'
WHITE='\033[01;... | true |
f82aeb6c2814885ae8f7350776e4838ec9f1faff | Shell | mediamicroservices/mm | /makemetadata | UTF-8 | 2,925 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# make metadata creates a set of metadata reports for an archival information package on all files in the objects subdirectory.
VERSION="0.2"
SCRIPTDIR=$(dirname "${0}")
. "${SCRIPTDIR}/mmfunctions" || { echo "Missing '${SCRIPTDIR}/mmfunctions'. Exiting." ; exit 1 ;};
DEPENDENCIES=(ffprobe mediaconch exifto... | true |
33c87d92444e61b4edf80dbfc8e812918dc771e8 | Shell | ashim95/pbsmt_scripts | /train_supervised.sh | UTF-8 | 1,706 | 2.859375 | 3 | [] | no_license |
# Script for training a supervised translation model for SRC-TGT pair
trainDir=$PWD/$1
SRC=$2
TGT=$3
LM_TGT=$PWD/$4
N_THREADS=48
# moses
MOSES_PATH=$PWD/moses_linux_64bit # PATH_WHERE_YOU_INSTALLED_MOSES
TOKENIZER=$MOSES_PATH/scripts/tokenizer/tokenizer.perl
NORM_PUNC=$MOSES_PATH/scripts/tokenizer/normalize-punct... | true |
0f3247c0300bed678cff790d72e79472524f9b64 | Shell | MelodyShih/cuFINUFFT-bench | /scripts/run_alltype_acc.sh | UTF-8 | 824 | 2.96875 | 3 | [] | no_license | #!/bin/zsh
has_gpu=0
nvidia-smi > /dev/null && has_gpu=1
if [ $has_gpu = "1" ]; then
echo "running 2d type 1"
python nuffttype1_acc.py 2 > ../results/2d1_acc.dat
echo "running 3d type 1"
python nuffttype1_acc.py 3 > ../results/3d1_acc.dat
echo "running 2d type 2"
python nuffttype2_acc.py 2 > ../results/2d2_acc.d... | true |
b6111a23a2166eab1a6283f4b8c61188a85490b5 | Shell | requiel20/fuzzing-SAT-solvers | /suts/solver1/test_files.sh | UTF-8 | 376 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# Test that sat solver constructs formulas with respect to the cnf files.
REPORT_DIR='./tests/report'
mkdir -p $REPORT_DIR
if [ "$(ls -A $REPORT_DIR)" ]; then
rm $REPORT_DIR/*
fi
for file in ./tests/*.cnf
do
basename=$(basename $file)
diff -B <( cat $file | sed 's/ 0//g' | sed '/^c/d' | sed ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.