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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
761505516a6c417f6666aee579fdbd17b9fb86bc | Shell | jeffreydurieux/neurohack_dl_gan | /oasis_png_loop.sh | UTF-8 | 845 | 3.578125 | 4 | [
"MIT"
] | permissive |
# create scan list file
rm scan_list.txt
rm subj_list.txt
cd ..
cd OASIS3_T1
ls | sed 's/_MR*/ /' | awk '{print $1}' | uniq >> subj_list.txt
# first loop: extract directory of first T1w image for each unique subject
for subj in $(cat 'subj_list.txt') ; do
echo "running script on $subj"
a=`ls "$subj"_MR_d*/* | awk... | true |
0a453bc9dd4152e91dd9816cdd09d0818dddfb94 | Shell | bsc-wdc/compss | /builders/specs/sc/install | UTF-8 | 6,451 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
####################################################################################################
# Name: install
# Description: Script to install COMPSs
# Parameters: <targetFolder> Folder where to install COMPSs
# ATTENTION: The target Folder will be completely remove... | true |
7640ba883b8ff478b5692ae6ac6295985c4a9834 | Shell | mikelangelo-project/vTorque | /src/components/iocm/iocm-common.sh | UTF-8 | 3,140 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2016-2017 HLRS, University of Stuttgart
#
# 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 app... | true |
f01d8d613ab2fcbb867a0ae3dcc8cfe405b43ea6 | Shell | dawmlight/vendor_oh_fun | /hihope_neptune-oh_hid/00_src/v0.3/prebuilts/lite/sysroot/build/thirdparty_headers.sh | UTF-8 | 2,465 | 3.265625 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-musl-exception",
"BSD-2-Clause",
"MIT"
] | permissive | #!/bin/bash
#Copyright (c) 2020-2021 Huawei Device Co., Ltd.
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#Unless required by applicable law... | true |
886e016f913233c41d4d9741a1f458c10609f7e2 | Shell | vipoo/msxrc2014 | /msxsys-build/tools/sf | UTF-8 | 922 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
PWD=$(pwd)
if [[ "$1" == "-s" ]]; then
SRC_DIR=$2
for file in "${@:3}"
do
sf "${SRC_DIR}/${file}"
done
exit 0
fi
SRC_FILE=$1
DEST_FILE=$2
PATTERN="\*"
if [[ "${SRC_FILE}" =~ $PATTERN ]]; then
for file in ${PWD}/${SRC_FILE}
do
[ -e "$file" ] || continue
target=... | true |
6a981fbfac4c60c6c62d41ffa52c4325f81e70e5 | Shell | andriipanchuk/test | /nagiosxi/fullinstall | UTF-8 | 4,867 | 3.984375 | 4 | [] | no_license | #!/bin/bash -e
# Set up system variables
./init.sh
. ./xi-sys.cfg
. ./functions.sh
# Explicitly set umask
umask 0022
# Install log
log="install.log"
# Installation is interactive by default
export INTERACTIVE="True"
# INSTALL_PATH is current dir for use in making install dir independent
export INSTALL_PATH=`pwd`
# ... | true |
d812c5c5fc5157da3ab1df5f42eef11908d6f221 | Shell | joshuarubin/dotfiles | /private_dot_config/yabai/executable_yabairc | UTF-8 | 4,098 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# the scripting-addition must be loaded manually if
# you are running yabai on macOS Big Sur. Uncomment
# the following line to have the injection performed
# when the config is executed during startup.
#
# for this to work you must configure sudo such that
# it will be able to run the command withou... | true |
88b628eafac332cac135a27bd11a24a7c9daef99 | Shell | mdholloway/mediawiki-vagrant | /setup.sh | UTF-8 | 415 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if ! which vagrant > /dev/null; then
echo "Vagrant doesn't seem to be installed. Please download and install it"
echo "from http://www.vagrantup.com/downloads.html and re-run setup.sh."
exit 1
fi
vagrant config --required
echo
echo "You're all set! Simply run \`vagrant up\` to boot yo... | true |
43f4f50352a8dc7cbd0c167d5c77380750671779 | Shell | kaihenzler/rapid-prototyping-nestjs | /docker/db/entrypoint.sh | UTF-8 | 700 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# start db in background to execute query and create db if needed
/opt/mssql/bin/sqlservr &
killAndWait() {
echo "shutting down process $1"
kill $1 && tail --pid=$1 -f /dev/null
echo "finished shutting down $1"
}
echo "Testing if database was created ..."
/opt/mssql-tools/bin/sqlcmd -S localh... | true |
f5c8bbc2312aafa3c7f44c18d7b0215eb69ef7b9 | Shell | Thaodan/pkg_diff | /src/lib/options/5-debug.in.sh | UTF-8 | 255 | 2.9375 | 3 | [] | no_license | #!/bin/sh
#help_begin
# -D : debug enable debug mode
# -V : enable verbose mode
# -m : be chatty
#help_end
args=DVm
arg_func=option_debug
option_debug()
{
case $arg in
D) debug=true;;
V) verbose=true;;
m) msg=true;;
esac
}
| true |
1209ba6118c40a33fc5db29639ed18549aa329f6 | Shell | Nicholas-Kron/Kron_Cohort77_CoExpression_Analysis | /scripts/bash/MakeAllSalmonBBDukScripts.sh | UTF-8 | 1,619 | 2.78125 | 3 | [] | no_license | #! /usr/bin/env bash
projdir="/scratch/projects/fieberlab/Batch77"
salmondir="/nethome/n.kron/local/salmon/0.11.2/bin"
project="fieberlab"
transcriptome="${projdir}/Genome/GCF_000002075.1_AplCal3.0_rna.fna.gz"
index="${projdir}/Genome/AplCal3.0_salmon_index"
if [ ! -d ${projdir}/salmon ]
then
mkdir ${projdir}/s... | true |
39bcdcab9045b17ca921824ea8a06aa513839270 | Shell | mbelanabel/repositorio-scripts-alumnos | /36_JuanTonda/2018/36_2018_JuanT_cambiarT.sh | UTF-8 | 663 | 3.1875 | 3 | [] | no_license | #!bin/bash
# JUAN TONDA. Mayo 2018
# cambiar el tamaño de un disco virtual
# solicita el fichero que queremos cambiar
# vboxmanage modifyhd [fichero_vdi] --resize [tamaño]
# fichero_vdi-> sustituir por el que correspondar a extender
# tamaño -> p.e. (para 40 GB.) - 40960 (indicado en bytes)
clear
# solicitamos e... | true |
35c0412d01c78cd6552b270b9507e56775853649 | Shell | mindis/hillview | /bin/rebuild.sh | UTF-8 | 325 | 2.796875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
# A small shell script which rebuilds both projects that compose Hillview
mydir="$(dirname "$0")"
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
source $mydir/config.sh
# Bail out on first error
set -e
export MAVEN_OPTS="-Xmx2048M"
pushd $mydir/../platform
mvn install
popd
pushd $mydir/../web
mvn package
... | true |
7a9b9256cff2b5dac333d8cb478e45b3bfd4956e | Shell | fcrespo82/dotfiles | /functions.d/git | UTF-8 | 189 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env sh
git-status-recursive() {
find . -name .git -execdir bash -c 'echo -en "\033[1;31m"repo: "\033[1;34m"; basename "`git rev-parse --show-toplevel`"; git status -s' \;
} | true |
6ae98a279358e5b3f75394d1145c1d5e12c8e04c | Shell | Alpha666/SoalShiftSISOP20_modul1_T13 | /soal1.sh | UTF-8 | 1,538 | 3 | 3 | [] | no_license | #!/bin/bash
echo "Region yang memiliki profit paling sedikit : "
poina=`awk -F "," 'FNR>1{(seen[$13]+=$NF)}END{for(i in seen)print i, seen[i]}' Sample-Superstore.csv | sort -n | awk 'FNR<2{print $1}'`
echo "$poina"
echo ""
echo "2 negara bagian yang memiliki profit paling sedikit dari poin A "
poinb=`awk -F "," -v a=$... | true |
f2bcbc105b4bd2f536b2dacb24e8c0635b057d7a | Shell | EdrianI/openeew-detection | /detector | UTF-8 | 1,176 | 3.203125 | 3 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
set -em
initialized_check_file="/opt/openeew/.initialized"
if [ -f "${initialized_check_file}" ]; then
echo "✅ Already initialized, skipping initialization"
else
echo "⏲ Initializing..."
if [ -n "${username}" ] && [ -n "${password}" ]; then
echo "🔑 Using authentication"
touch /opt/o... | true |
1b067ddb9554a544b3b3dc42e0fef74682332f1d | Shell | schanur/extreme-defaults | /scripts/max-optipng | UTF-8 | 584 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit -o nounset -o pipefail
# Command line parameter parsing and dependency checks.
function desc { echo "Runs optipng with slowest settings to archieve maximum PNG file compression"; }
function usage { echo "Usage: $(basename ${0}) PNG_INPUT_FILE"; }
if [ ${#} -eq 1 ]; then if [ ${1} = "-h" -o ... | true |
6ea4c0a33905da37e99ef3cdb3db803c1091df8b | Shell | reanisz/dotfiles | /nvim/setup_nvim-dein.sh | UTF-8 | 345 | 3.015625 | 3 | [] | no_license | #!/bin/sh
init_target nvim-dein
process_nvim-dein(){
directory .cache
if [ $command = "setup" ] ; then
exec_cmd curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > /tmp/deininstaller.sh
exec_cmd sh /tmp/deininstaller.sh $HOME/.cache/dein/
exec_cmd rm /tmp/d... | true |
39181957c37dd18d505191c842769893fb0fdf12 | Shell | kimprado/challenge-payment-processor-api | /configure | UTF-8 | 5,238 | 3.640625 | 4 | [] | no_license | #!/bin/bash
set -e
CURDIR=`pwd`
DIR=".tmp-configure"
DOCKER_GROUP="docker"
GO_VERSION="go1.13.4"
GO_PKG="$GO_VERSION.linux-amd64.tar.gz"
GO_BASE="/usr/local"
GO_ROOT="$GO_BASE/go"
GO_ROOT_VERSION="$GO_BASE/$GO_VERSION"
JMETER_VERSION="apache-jmeter-5.1.1"
JMETER_PKG="$JMETER_VERSION.tgz"
JMETER_BASE="/usr/local"
JME... | true |
f5d8bb60f8cd2ce02fda20aac2950c8a952c3a8d | Shell | nsaeki/utils | /s3bucketsize | UTF-8 | 825 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Print S3 bucketsize
# Usage: s3bucketsize profile-name bucketname
PROFILE=$1
BUCKET=$2
if date -d yesterday > /dev/null 2>&1; then
START_DATE=`date -d yesterday +%Y-%m-%dT00:00:00+09:00`
else
START_DATE=`date -v -1d +%Y-%m-%dT00:00:00+09:00`
fi
END_DATE=`date +%Y-%m-%dT00:00:00+09:00`
OPTS=
if ... | true |
9e43dfa5a7b27ca49b9ef72a76cb0544fc00bf62 | Shell | vibhorrawal/Lab-work | /sh/q6.sh | UTF-8 | 280 | 3.078125 | 3 | [] | no_license | #!/bin/bash/
echo "Enter number of rows to be printed: "
read n
i=$n
clear
k=0
while [ $i -gt 0 ]
do
j=$i
m=$k
while [ $m -ge 0 ]
do
echo -n " "
m=$(($m-1))
done
k=$(($k+1))
while [ $j -gt 0 ]
do
echo -n "* "
j=$(($j-1))
done
echo
i=$(($i-1))
done
| true |
c3b42f6b795e1eae926fc9162dbfa31751b087d1 | Shell | Writtic/dotfiles | /zsh/.zshrc.d/bump | UTF-8 | 248 | 3.125 | 3 | [] | no_license | #!/bin/bash
function bumps {
svc="$1"
part="${2:-0}"
#git tag|grep "${svc}-v"|sed "s/${svc}-//"|sort|tail -1|bump -stdin -part="$part"|sed "s/^/${svc}-/"
git tag|grep "${svc}-v"|sort|tail -1|bump -prefix "${svc}-v" -stdin -part $part
}
| true |
5da39e5b495805826d4e792f1558a810c8da9eda | Shell | satinderiitd/Linux-Learning | /process-status-check.sh | UTF-8 | 128 | 2.515625 | 3 | [] | no_license | #!/bin/bash
for vm in server1 server2 server3;
do
echo -e "\n$vm"
ssh $vm
sudo systemctl status docker | head -n3
done
| true |
33ea7df9ea9479344fe503ffef567245a51466c5 | Shell | tammersaleh/github-local-sync | /missing | UTF-8 | 798 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
if [[ $# != 1 ]]; then
echo " Usage: $(basename $0) <DIRECTORY>"
echo " Example: $(basename $0) $HOME/code"
echo
echo "Examines the git repositories in \`DIRECTORY\` and outputs all which _aren't_ starred on github."
echo
echo "Assumes that the repositories in \`DIRECTORY... | true |
5c3fb2e8288ffe700a4d7d81781cc2f25f1d682e | Shell | CSGO-Analysis/linuxgameservers | /functions/fn_validateserver | UTF-8 | 721 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# LGSM fn_validateserver function
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 010115
# Description: Runs a server validation.
local modulename="Validate"
fn_rootcheck
fn_syscheck
fn_printwarn "Validating may overwrite some customised files."
sleep 1
echo -en "\n"
echo -en "https:... | true |
f2cc5edc429ce197d1f530c1838113064f103a3c | Shell | nikitadurasov/emacs-config | /reload.sh | UTF-8 | 955 | 3.78125 | 4 | [] | no_license | #!/usr/bin/bash
# get newest version of configs
cd $(dirname $BASH_SOURCE)
git pull origin master
# check if everything went fine
getExitCode=$?
if [[ $getExitCode != 0 ]]; then
exit $getExitCode
fi
function clean() {
git clean -nx
read -p "Clean the above files (y/n)" -n 1
echo
echo "**** Proces... | true |
abbdb8645642b779c3e9a9ec38be06b23ff9ee90 | Shell | jtstorck/proxy-nifi-docker | /scripts/start.sh | UTF-8 | 686 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in#answer-246128
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR=$SCRIPT_DIR/..
# clone Sandeep's repo, which creates docker containers to compile Knox,
# start an LDAP, and start... | true |
65d9474e56b05d21263855454712228f3c4c625f | Shell | billsioros/MPIsuite | /MPIs/mpis-profile | UTF-8 | 3,228 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
. "${MPIS_UI}"
REQUIRED=( MPIS_OUTPUT_ROOT MPIS_STDOUT_EXTENSION MPIS_STDERR_EXTENSION MPIS_USER_ID MPIS_COMPILER MPIS_SCHEDULER MACRO VALUES PROCESSES THREADS_PER_PROCESS TIME_PATTERN )
RESULTS="results.csv"
function max
{
list=""
for value in $*
do
list="$value, $list"
done
... | true |
ffab4515f23a91d2fc7a3182257bad58d2c9836c | Shell | sy250/getqiitaitems | /get_qiita_items.sh | UTF-8 | 954 | 3.1875 | 3 | [] | no_license | #!/bin/bash
MAX_PER_PAGE=100
items_count=$(./get_authenticated_user.sh | jq -r '.items_count')
# echo "items_count""${items_count}"
# Header print
echo likes_count,page_views_count,title,id,created_at
page_count=1
per_page=$items_count
page_left=$items_count
if [ $page_left -gt $MAX_PER_PAGE ]; then
per_page=$MAX... | true |
2bd759ec5b5be862a0a5c56a7ade22ad065faad3 | Shell | mf-collinhayden/mongotools | /install_mongomem.bash | UTF-8 | 5,531 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Starting setup...."
echo ""
echo ""
# Install necessary pre-requisite packages
sudo apt-get install git
sudo apt-get install python-pip
sudo apt-get install build-essential python-dev
# Get the repo files
cd /home/ubuntu
mkdir mongomem_source
cd mongomem_source
git clone https://github.com/ContextL... | true |
aea611a204a25283b2f13dc0a2e17913284046c6 | Shell | geku/workshop-vm | /provision/install-packages.sh | UTF-8 | 1,328 | 2.546875 | 3 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | echo Installing some packages using apt-get...
whoami
# add repository for microsoft visualstudio code packages
curl -sS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
echo "deb [arch=amd64] http://packages.microsoft.com/repos/vsc... | true |
37e925dfde726f6f4d6e34c17a9ba05405986742 | Shell | simbadSid/cubeRemapper_perfBenchmark | /srcAlignedMemAlloc/compileAndRunTest.sh | UTF-8 | 1,054 | 3.109375 | 3 | [] | no_license | #!/bin/bash
progDir="src"
prog="mem_shell"
testFile="test"
outputTestFile="output"
testFileList=`ls $testFile/*.in`
cd $progDir
make clean
make
cd ../
cd $outputTestFile/test
rm -f *
cd ../../
for file in $testFileList
do
./$progDir/$prog < $file > $outputTestFile/$file
done
echo "Différence between the ex... | true |
f739dcec65684a9425f8bf9626d41e0eaf692804 | Shell | poojasri6799/Assignment | /Gambler.sh | UTF-8 | 414 | 3.65625 | 4 | [] | no_license | #!/bin/bash
read -p "enter amount to start: " n
if [[ $n -gt "100" && $n -lt "200" ]]
then
won=0
loss=0
while(( $n > 0 && $n <= 200 ))
do
random=$(( $RANDOM%2 ))
case $random in
1) n=$(($n +1 ))
echo -n " $n"
won=$(($won + 1 ))
;;
0) n=$(( $n - 1 ))
echo -n " $n"
loss=$(($loss + 1 ))
;;
esac
done
e... | true |
6e6e6d8d247668157989739765adc5bdda3a4606 | Shell | alanoakes/Repentance | /DataPreprocessing.sh | UTF-8 | 1,114 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# Constructing CSV Format
cat Data/Scripture_Raw.txt |\
sed 's/ KJV\] /",/g' |\
sed 's/\[/"/' |\
sed 's/\s/","/' |\
sed 's/\:/","/' |\
sed -e '1i"Book","Chapter","Verse","Text"\' \
> Data/Scripture_TextAndStrongs.csv
# Constructing Scripture Text Only CSV Format
cat Data/Scripture_TextAndStrongs.csv... | true |
c79df4897be2b0756d1e0089aafa5c3c3c81ce66 | Shell | protoben/erlang_junk | /crypto/euclid.sh | UTF-8 | 335 | 3.65625 | 4 | [] | no_license | #!/bin/bash
function usage {
cat << EOF
Usage: $0 m n
m,n in Z
EOF
}
function gcd {
local m n gcd temp
m=$1
n=$2
gcd=1
[ $m -eq $n ] && {
echo $m
return
}
while [ $n -ne 0 ]; do
temp=$n
n=$(($m % $n))
m=$temp
done
echo $m
}
[ $# -ne 2 ] && {
usage
exit 1
}
GCD=$(gcd $1... | true |
7b6acf339174680de075f8c3ee568b868108a90f | Shell | mzimmerm/flutter_charts | /tool/make_new_chart_type_structure.sh | UTF-8 | 469 | 3.859375 | 4 | [
"BSD-2-Clause-Views"
] | permissive | #!/usr/bin/env bash
# Creates a set of directories and empty dart files for a new chart type.
echo Usage: $0 newChartType
chartType=${1:-UNSET}
if [[ -z "$chartType" ]]; then
echo Invalid chartType="$chartType", exiting
exit 1
fi
echo chartType = $chartType
mkdir {$chartType}
for file in \
$chartType/chart.... | true |
09b665d818dfd9fe85ad332f07757f30e07c4f4f | Shell | kalrish/cxx-ucem | /install.bash | UTF-8 | 2,924 | 3.921875 | 4 | [
"MIT"
] | permissive | declare -A -r default_installation_dir_variables=(
[prefix]='/usr/local'
[exec_prefix]='${installation_dir_variables[prefix]}'
[includedir]='${installation_dir_variables[prefix]}/include'
[libdir]='${installation_dir_variables[exec_prefix]}/lib'
)
declare -A installation_dir_variables not_explicitly_set_installati... | true |
605515ed83e19d00a28cfa80bcf96b2f91e262cb | Shell | trawick/emptyhammock-project-template | /deploy/install_roles.sh | UTF-8 | 929 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
cleanup() {
exit_code=$?
rm -f "${TEMPFILE}"
exit $exit_code
}
TEMPFILE=$(mktemp /tmp/install_roles.XXXXXX)
trap "cleanup" INT TERM EXIT
if ls -l roles | grep ^l >/dev/null; then
echo "**************************************************************************"
echo "* At leas... | true |
9051e4e85a66afc472f2deb0a18340869e020453 | Shell | tacow/setup | /utils/History | UTF-8 | 96 | 3.203125 | 3 | [] | no_license | #!/bin/sh
if [ $# -lt 1 ]
then
history
else
PATTERN=$1
history | grep ${PATTERN}
fi
| true |
4e98460eedcbee747210c8574ea36cc2868d4cb7 | Shell | 1313ou/sqlunet-browser | /wordNet/artwork-relations/make-artwork.sh | UTF-8 | 3,578 | 2.78125 | 3 | [] | no_license | #!/bin/bash
thisdir="`dirname $(readlink -m $0)`"
thisdir="$(readlink -m ${thisdir})"
dirres=../src/main/res
dirassets=../src/main/assets
dirapp=..
RED='\u001b[31m'
GREEN='\u001b[32m'
YELLOW='\u001b[33m'
BLUE='\u001b[34m'
MAGENTA='\u001b[35m'
CYAN='\u001b[36m'
RESET='\u001b[0m'
list_fore="
base_dom
base_pos
base
"
... | true |
d563ace42b313e4775ae65aa2e02684f8be73440 | Shell | hg2c/hellogrpc | /scripts/golang.sh | UTF-8 | 708 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
DOCKER_WORKDIR=/go/src/$APP_PACKAGE
DOCKER_BUILD_IMAGE="hg2c/golang:alpine"
golang::docker::run() {
run docker run --rm -ti \
-w ${DOCKER_WORKDIR} \
-v ${PROJECT_ROOT}:${DOCKER_WORKDIR} \
$DOCKER_BUILD_IMAGE \
${@:-bash}
}
golang::build() {
local AP... | true |
cb96143e9fc417c83a39644bd2b6ff20d3fcea23 | Shell | systemkern/Hermes | /HermesFtp/src/test/resources/entrypoint.sh | UTF-8 | 408 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
chmod -R 0555 /home/ftpusers/hermes
pure-pw useradd hermes -u ftpuser -d /home/ftpusers/hermes < /home/ftpusers/hermes/hermespasswords.tmp > dev/null
pure-pw mkdb
rm /home/ftpusers/hermes/hermespasswords.tmp
echo "connect to FTP using hermes/hermes on {DOCKER_MACHINE_IP}:21"
/usr/sbin/pure-ftpd ... | true |
ead40d48b569a04997840e6c3d565bd9a59662be | Shell | floscr/old-vimrc-dotfiles | /home/.dotfiles/functions/video_and_audio.zsh | UTF-8 | 792 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# Download youtbe video and notify
alias y='__youtube_dl_notify'
function __youtube_dl_notify() {
dst="$HOME/Movies/Youtube"
if [[ ! -d $dst ]]; then
mkdir -p $dst
fi
cd $dst
youtube-dl $@
title="$(youtube-dl --get-title $@)"
terminal-notifier \
-title "Video Downloaded" \
... | true |
619710e7548c96128ef7eb15a30543f897da01cc | Shell | kboom/iga-adi-giraph | /results-external-extraction/extract-entry.sh | UTF-8 | 3,150 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
DAG_HEIGHT=${DAG_HEIGHT:-11}
SUPERSTEPS_IN_TIME_STEP=$(echo "4 * ${DAG_HEIGHT} + 6" | bc)
LAST_SUPERSTEP_BEGINNING=$(echo "${SUPERSTEPS_IN_TIME_STEP} + 1 + (${IGA_STEPS} - 2) * (${SUPERSTEPS_IN_TIME_STEP}+2)" | bc)
INIT_SUPERSTEP="${LAST_SUPERSTEP_BEGINNING}"
FIRST_ROOT_SUPERSTEP=$(echo "${LAST_SU... | true |
44352bcace2da2118e07aeb6542757d025c49450 | Shell | anthony-chu/build-tool | /nightly.sh | UTF-8 | 2,408 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source bash-toolbox/init.sh
include app.server.version.AppServerVersion
include calendar.util.CalendarUtil
include command.validator.CommandValidator
include curl.util.CurlUtil
include file.util.FileUtil
include help.message.HelpMessage
include logger.Logger
include props.reader.util.PropsR... | true |
a7bfe68d54576c5d9c9f76e2feeaf4889ffa9c25 | Shell | Diogo-Paulico/os_bootstrap_installer | /install.sh | UTF-8 | 2,050 | 2.921875 | 3 | [] | no_license | PREINSTALL=./pre_install.sh
if [ "$EUID" -ne 0 ]; then
echo -e "\e[31mThis script needs root privileges! Please run with sudo!\e[0m"
exit
fi
if test -f "$PREINSTALL"; then
cp -R ../configurator_taker /home/"$SUDO_USER"/
bash "$PREINSTALL"
exit
fi
#remove libreoffice and geary
sudo apt rem... | true |
dfcb9cad6165f3f356f8db6fcb0482c1deb0c8f8 | Shell | puppetlabs/puppetlabs-splunk_hec | /tasks/examples/cleanup_tokens.sh | UTF-8 | 477 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
declare -x PUPPET='/opt/puppetlabs/bin/puppet'
declare -x CURL='/bin/curl'
SSLDIR=$($PUPPET config print ssldir --section master)
CERTNAME=$($PUPPET config print certname --section master)
USERNAME="$PT_username"
$CURL -X DELETE "https://$CERTNAME:4433/rbac-api/v2/tokens" \
--tlsv1 \
--cacert $SSLDI... | true |
d6abbcfbf789607d2c5ea729b0ad4fce50aa7809 | Shell | demeritcowboy/github-periodic-summary | /github-summary.sh | UTF-8 | 2,216 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# For this to work the cron script has to cd to our folder first.
. ./github-summary.cfg
. $GITHUB_SUMMARY_PATH/github-summary-lastcursor.cfg
# format our query in the weirdo way that the api wants
read -r -d '' query << ENDQUERY
{
"query": "query { repository(owner:\"$GITHUB_REPO_OWNER\", name:\... | true |
4327322f1213702171aa29e156c3223b134f08d0 | Shell | uwplse/verdi-raft | /extraction/vard-debug/scripts/start-tmux.sh | UTF-8 | 527 | 2.703125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
function start-vard-command {
PORT=800${1}
echo -e "./vard.native" "-dbpath \"/tmp/vard-$PORT\"" \
"-port \"$PORT\"" \
"-node 1,localhost:9001" "-node 2,localhost:9002" "-node 3,localhost:9003" \
"-me \"$1\""
}
tmux new-sess... | true |
9c5e749c98dc20caf41010553dca54f329580f31 | Shell | rpappalax/deploy-tools | /autopush/watch.sh | UTF-8 | 619 | 3.171875 | 3 | [] | no_license | source config.sh
URL_STATUS="https://$HOST_UPDATES/status"
clear;
JSON=`curl -s "$URL_STATUS"`
VERS_OLD=`echo $JSON | /usr/local/bin/jq '.version' ;`
say $VERS_OLD
while :; do
clear;
JSON=`curl -s "$URL_STATUS"`
VERS=`echo $JSON | /usr/local/bin/jq '.version' ; sleep 5;`
if [ "$VERS_OLD" == "$VERS" ];... | true |
d9ea1eaaf8f7909e01012d5020311cdb906468b6 | Shell | theappleman/ci-roles | /run.sh | UTF-8 | 364 | 3.484375 | 3 | [] | no_license | #!/bin/bash
while getopts c:vKs opt; do
case $opt in
c) transport="-c $OPTARG"
;;
K|s|v) exargs="$exargs -$opt"
;;
esac
done
shift $((OPTIND-1))
hosts=$1
shift
playbook=$(mktemp -p .)
echo -e "---\n- hosts: $hosts\n roles:" > $playbook
for role in $@; do echo " - $role"; done >> $playbook
ansible-playbook ... | true |
effa55147a408942e5581c0c277cb4854bb6142f | Shell | yaolongli520/rootfs | /unit_tests/BAT/bat-uart.sh | UTF-8 | 2,989 | 4.125 | 4 | [] | no_license | #!/bin/bash
#
# Tests for the uart ports:
# - check that data is correctly transmitted and received in loopback mode
# - check that multiple bytes data is correctly transmitted and received in
# loopback mode for various baud rates
#
# This test tries to be board-independent
#
set -e
batdir=$(dirname $(readlink -f... | true |
b1e4ebbf0e586a61b00e872541dd7488ee2367d8 | Shell | DavidAlphaFox/haystack | /bin/package | UTF-8 | 1,519 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2012-2016 Peter Morgan <peter.james.morgan@gmail.com>
#
# 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
#
# Un... | true |
39b99bc7a65718bc648b8a4258fa801e4760afca | Shell | hostersecurity/automated-tests | /intrusiontest.sh | UTF-8 | 1,898 | 3.484375 | 3 | [] | no_license | MAGIC_FILE="magic_hostersecurity.php"
function runtestcommand()
{
echo "START TEST $4 FOR $1"
echo "#################################" > tmptest/$3/$4.test
echo " TEST CASE NAME : $4" >> tmptest/$3/$4.test
echo " COMMAND : $2" >> tmptest/$3/$4.test
echo " URL : $1" >> tmptest/$3/$4.test
echo "############... | true |
edeb107a97f6010741f0e534184de23a7dc35d90 | Shell | tathagata/moneymotion | /process | UTF-8 | 807 | 2.796875 | 3 | [] | no_license | #!/bin/bash
awk '
BEGIN{
while( getline < "categories") list[$2]=$1;
}
function trim(s) {gsub(/[[:blank:]]/,"_",s);return s}
{
FS=",";
NR>7
if($13=="Debit"){
pos=trim($3)
if (pos in list){
expense[list[pos]]+=$4;
print "[\47"list[pos]"\47,new Date("substr($2,1,10)"),"expense[list[pos]]"],"
#print pos"... | true |
d17dd52d52f4fd4decc29b1b7bfdab4ed97f192a | Shell | hassoon1986/repo | /archlinuxcn/oce-git/PKGBUILD | UTF-8 | 1,155 | 2.546875 | 3 | [] | no_license | # Maintainer: Yichao Yu <yyc1992@gmail.com>
# Contributor: Giuseppe Borzi <gborzi@ieee.org>
# Contributor: Brice M<E9>alier <mealier_brice@yahoo.fr>
# Contributor: Michele Mocciola <mickele>
pkgname=oce-git
pkgver=0.17.0.304.g9fa6390e2
pkgrel=1
pkgdesc="Open CASCADE community edition, 3D modeling & numerical simulatio... | true |
caf0f50bbc466d319c8ca67b11b4c02a65353be5 | Shell | mfkiwl/jet | /tools/CtsTest/jenkinsCTSflash.sh | UTF-8 | 2,657 | 4.09375 | 4 | [] | no_license | #!/bin/bash
#obtain workspace directory from argument
WORKSPACE=$1
#Number of tries allowed to enable ADB throughout the while script
TRIES=5
#JET mounting location
MNTPNT="/mnt/JET"
#JET enable adb location
JETADBLOCATION="/mnt/JET/ReconApps/LispXML/Input/adb.lxl"
#JET auto-generated file for adb
JETADBOUTLOCATIO... | true |
a7ab78e0aa2405267a5df5d39d0245357aed7aee | Shell | LiamLombard/dots | /applyconfigs.sh | UTF-8 | 178 | 2.921875 | 3 | [] | no_license | #!/bin/sh
copyfolder()
{
cp -Rf $1/* $2
}
copyfile()
{
cp -Rf $1 $2
}
copyfolder "polybar" "/home/liam/.config/polybar"
copyfolder "openbox" "/home/liam/.config/openbox" | true |
ea45a843b5326b24085a627ec7451a6216137217 | Shell | dougllcooper/dotfiles | /.local/bin/remaps | UTF-8 | 822 | 2.734375 | 3 | [] | no_license | #!/bin/sh
# This script is called on startup to remap keys.
# Increase key speed via a rate change
xset r rate 300 50
# Map the caps lock key to super...
#setxkbmap -option caps:super
# But when it is pressed only once, treat it as escape.
#killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
# Changed - press one i... | true |
b8ac4456f4d8b7fc74cbf4a5ddbaf0e0c2211ead | Shell | davidddw/imageBuilder | /centos_7.2_kvm_livecloud/build_kvm.sh | UTF-8 | 682 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
: ${BUILD_VERSION:="v$(date +'%Y%m%d%H%M%S')"}
: ${BUILD_NAME:="CentOS_7.2-x86_64"}
: ${VM_NAME:="centos_7.2"}
export BUILD_NAME
export VM_NAME
export BUILD_VERSION
PWD=`pwd`
FILENAME=${VM_NAME}
PACKER=/usr/bin/packer
if [ -e "${PWD}/disk" ];
then
rm -rf ${PWD}/disk
fi
if [ ! -e "${PWD}/fin... | true |
94a2eb2592deaa1db279d5ea9d2d203e582f4575 | Shell | PaddlePaddle/paddle-ce-latest-kpis | /ce_cloud_models/paddleNLP/linux/scripts/lexical_analysis/infer.sh | UTF-8 | 1,291 | 3.21875 | 3 | [] | no_license | #unset http_proxy
HTTPPROXY=$http_proxy
HTTPSPROXY=$https_proxy
unset http_proxy
unset https_proxy
#外部传入参数说明
# $1: $XPU = gpu or cpu
#获取当前路径
cur_path=`pwd`
model_name=${PWD##*/}
echo "$model_name 模型样例测试阶段"
#路径配置
root_path=$cur_path/../../
code_path=$cur_path/../../models_repo/examples/lexical_analysis/
log_path=$ro... | true |
87285419a4151fc9a4a3477ad50ee4a3471efc60 | Shell | dimitrov570/uni-operating-systems-course | /exam_prep/shell/task13.sh | UTF-8 | 193 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
exit 1;
fi
if [ ! -d $1 ]; then
exit 2;
fi
find "$1" -type l -printf "%Y %p\n" 2> /dev/null | awk '{if ($1 == "N" || $1 == "L" || $1 == "?") print $2}'
| true |
dd32bfafdd55193fb2f6ad5c2bf781431a22ecdf | Shell | soundarrk/az-ip-fwd | /ip_fwd.sh | UTF-8 | 3,028 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#--------------------------------------------------------------------------
usage() {
echo -e "\e[33m"
echo "usage: ${0} [-i <eth_inte... | true |
0014757113f6fd4687ef2e951de66c681eec2737 | Shell | abijith-kp/os_lab | /lab2/odd_even.sh | UTF-8 | 182 | 3.734375 | 4 | [] | no_license | #check wheather the given number is odd or even
#!/bin/bash
read -p "enter a no.: " n
chk=`expr $n % 2`
if [ $chk == 0 ];
then
echo "$n is even"
exit
fi
echo "$n is odd"
exit
| true |
a6e2e8e87d59bbdbea4e9535e999eade6e8f8a96 | Shell | ArshamR/CS480-Group-Project | /detect.sh | UTF-8 | 1,121 | 3.796875 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: <output file>, <log file> (Don't include path, file must be in same directory) "
exit 1;
fi
if [ ! -e $2 ]
then
echo "Log file does not exist"
exit
fi
if [ -e $1 ]
then
rm $1
fi
results=$1
declare -a sourceIps
count=0
while read p;
do
timeS=`echo "$p" | awk '... | true |
b54c546d0c001ec841bb2478bea95772c12d07e0 | Shell | freyes/pinhole | /tests/run.sh | UTF-8 | 330 | 2.859375 | 3 | [] | no_license | #!/bin/bash -x
echo "launching gunicorn"
gunicorn pinhole.common.app --access-logfile access.log --log-file - --log-level error &
GPID=$!
if [ "x$?" != "x0" ]; then
echo "Error running gunicorn"
exit 1
fi
pushd tests/
echo "running casperjs"
casperjs test *.js
EX=$?
echo "killing gunicorn: $GPID"
kill $GPID
... | true |
e4a16e7881c5e2c44fb68ae3232a7c695d57b36b | Shell | Desenho2018-1/simian | /scripts/sh/docker-deploy.sh | UTF-8 | 641 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Represents the latest version of the project according to setup.py file
VERSION=$(python setup.py --version)
echo "Latest Simian version is $VERSION";
# double validation in script and in .travis.yml
if [[ "${TRAVIS_BRANCH}" == "master" ]]; then
echo "Deploying to Docker registry latest Simian...";
d... | true |
366a6c1dd5ec396bdbe5fe2f43b43394b94ea18f | Shell | pivotal-sadubois/pcfconfig | /demos/pas-demo-articulate/demo_articulate_cleanup.sh | UTF-8 | 771 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | cf unmap-route articulate-v2 apps.pcfone.io --hostname articulate-workshop
cf routes > /tmp/cfroutes
for host in articulate-workshop articulate-temp articulate-attendee-service; do
cnt=$(egrep -c " $host " /tmp/cfroutes)
if [ $cnt -gt 0 ]; then
dom=$(egrep " $host " /tmp/cfroutes | awk '{ print $3 }')
echo... | true |
5e7b82a3349f41af67d9cd487b2329f12548a2d9 | Shell | monch1962/wilee | /demo/jsonplaceholder.typicode.com/010-postman-to-wilee.sh | UTF-8 | 1,422 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
POSTMAN_TESTS=./test-cases/postman-collections/*.json
for postmanfile in ${POSTMAN_TESTS}
do
TEST_ID=`cat $postmanfile | jq -r '.info._postman_id'`
TEST_DESCRIPTION=`cat $postmanfile | jq '.info.name'`
#echo "TEST_ID: " $TEST_ID
#echo "TEST_DESCRIPTION: " $TEST_DESCRIPTION
POSTMAN_HOST=`cat $post... | true |
ebc3c0ff711b7f897d642833d0178aca115b1ee3 | Shell | concourse/ci | /tasks/scripts/fly-build | UTF-8 | 775 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# vim: set ft=sh
set -e -x
export GOPATH=$PWD/gopath
export PATH=$PWD/gopath/bin:$PATH
platform="$(go env GOOS)"
arch="$(go env GOARCH)"
output="$PWD/fly-${platform}"
ldflags=""
if [ -e final-version/version ]; then
final_version="$(cat final-version/version)"
ldflags="-X github.com/concourse/conco... | true |
93223cab2b993370928b17633f2f34d0c26c51aa | Shell | moravianlibrary/mapseries | /catalog/docker.sh | UTF-8 | 203 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
TARGET_DIR=$JBOSS_HOME/static
cd /build/catalog
npm install
gulp
mkdir -p $TARGET_DIR/catalog
cp -r dist/* $TARGET_DIR/catalog
# clean up after yourself
cd /
rm -rf /build/catalog
| true |
432a0e29702b00488d95e86469716ea2bf6ec4b4 | Shell | jimstedman/prezto | /runcoms/zshrc | UTF-8 | 537 | 2.90625 | 3 | [
"MIT"
] | permissive | #
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
wd() {
. ~/bin/wd/wd.sh
}
alias ll="ls -al... | true |
67c70866ea22426c7e210a5cd8479c38137bae50 | Shell | uva-bi-sdad/iarpa_embers | /code/consolidate-score-threshold1.sh | UTF-8 | 639 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#PBS -lwalltime=25:00:00
#PBS -lnodes=1:ppn=1
#PBS -W group_list=ndssl
#PBS -q ndssl_q
#PBS -j oe
#PBS -o pbs.log
## Calculate the number of processors requested so we can
## automatically fill in the "np" parameter for mpirun commands
cd $PBS_O_WORKDIR
NUM_PROCS=`/bin/cat $PBS_NODEFILE | /usr/bin/wc -l... | true |
8b691e1f5d86f43ba29ec698adae151c1579e282 | Shell | petronny/aur3-mirror | /sks-hg/sks.install | UTF-8 | 716 | 3.265625 | 3 | [] | no_license | post_install() {
echo -n "adding sks system group... "
groupadd -r sks && echo -n "done."
echo
echo -n "adding sks system user... "
useradd -c "Synchronizing OpenPGP Key Server" -r -d /var/lib/sks -g sks -s /bin/bash sks && echo -n "done."
echo
mkdir -p /var/run/sks
chown sks:sks /var/run/sks
chmod ... | true |
84372e175d78e31f60895fb1326d8ac362e31d5c | Shell | mlutfy/nagios-plugins | /test/check_ddos.bats | UTF-8 | 7,312 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test_helper
@test 'Test check_ddos.sh when ok' {
[[ $OS != 'Linux' ]] && skip 'Skip - not on Linux'
local netstat_output='Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 ... | true |
a291cd2544a8391882952505a134c0df85550368 | Shell | codeb2cc/zsh | /zshrc | UTF-8 | 3,772 | 3.1875 | 3 | [] | no_license | # Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=20480
SAVEHIST=20480
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/codeb2cc/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstal... | true |
08a27f6a5e5d4b126f2a06b5dcf0bd5b2b929475 | Shell | gianose/gitpullrepo | /test/test_gpeclr.sh | UTF-8 | 10,031 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
# Author: Gregory Rose
# Createdi: 20170410
# Name: test_gpeclr.sh
# Relative Working Directory: ${NAMESPACE}/test/test_gpeclr.sh
declare TST_GPECLR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${TST_GPECLR_DIR}/../lib/const.sh
. ${NAMESPACE}lib/unittest.sh
. ${NAMESPACE}lib/excp.sh
... | true |
0d0a11681d16ac36a0476b619c73d6809ce959e5 | Shell | pawelma/ubob_bot | /run.sh | UTF-8 | 237 | 3.0625 | 3 | [] | no_license | #!/bin/bash
if [ -e configuration/settings.rb ];
then
echo "Configuration found, running ubob bot"
ruby app.rb 2>&1
else
echo "No configuration found! adjust & cp configuration/settings.rb.example -> configuration/settings.rb"
fi
| true |
f19f97adea2e3c762dfc487f85cd71a367266b05 | Shell | emphanos/quickstart-build | /quickimage-clean.sh | UTF-8 | 1,090 | 3.609375 | 4 | [] | no_license | #!/bin/bash
echo "*** Cleaning $1"
# ############################################## Get settings
. settings.sh
# ############################################## Functions
## Destroy a vm in Virtualbox. Suppress "does not exist" errors.
qs_vbox_clean() {
echo "** Removing output virtualbox image: $1 ..."
vboxm... | true |
47db2c712241ff7aaf42973e158f83945bfb98de | Shell | arxaqapi/licence-info | /S6/secu_info/ping_securise.sh | UTF-8 | 7,042 | 3.53125 | 4 | [] | no_license | #! /bin/bash
set -o pipefail
DIR=$(pwd)
my_id=""
declare -A NoncePour
function hex_to_binary () {
xxd -r -p
}
function binary_to_hex () {
xxd -p
}
function to_base64 () {
openssl base64
}
function from_base64 () {
openssl base64 -d
}
function remove_newlines() {
tr -d '\n'
}
function add_newli... | true |
90335b5e67f4036914275c1ff1b35447e86fcefc | Shell | wmthu/paper_hard_to_measure_well | /code/git_hooks/setup_hooks.sh | UTF-8 | 476 | 3.1875 | 3 | [] | no_license | #!/bin/bash
set -euf -o pipefail
# Get the directory the setup_hooks.sh script is in:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DEST=$DIR/../../.git/hooks
# See directions in http://mirrors.ctan.org/macros/latex/contrib/gitinfo2/gitinfo2.pdf
cp -pi "$DIR/post-checkout" "$DEST/"
cp -pi ... | true |
0f85748f19cb513f84bbbd100761570fe4dfc397 | Shell | AyazKhuraishi/springboot-keycloak-swagger | /service-orchestration/src/main/docker/press-release/run.sh | UTF-8 | 633 | 2.703125 | 3 | [] | no_license | #!/bin/sh
echo "********************************************************"
echo "Starting OAuth 2.0 Service on $OAUTH20_HOST:$OAUTH20_PORT"
echo "********************************************************"
while ! `nc -z $OAUTH20_HOST $OAUTH20_PORT`; do sleep 3; done
echo "******* The OAuth 2.0 Provider has started"
ech... | true |
a99198b0c1c188438f0347b07a52e34298f1add7 | Shell | ntarmos/eXO | /bin/run.sh | UTF-8 | 277 | 2.703125 | 3 | [] | no_license | #!/bin/sh
PROJECT_ROOT=`dirname $0`/..
EXOROOT=$PROJECT_ROOT
MAINCLASS=ceid.netcins.exo.Frontend
EXOCP=$EXOROOT/classes:$EXOROOT/jars/freepastry:$EXOROOT/jars/eXO
for jar in `find $EXOROOT/lib -type f -name '*.jar'`; do
EXOCP=$EXOCP:$jar
done
java -cp $EXOCP $MAINCLASS $*
| true |
8d82303cec5dfd436d54157e31a53f148677403f | Shell | sanjan/shell_tools | /hsbcscript.sh | UTF-8 | 1,062 | 2.921875 | 3 | [] | no_license | #!/bin/bash
file=$1
threads=/opt/mobileway/tmp/threads.txt
wrkdir=/opt/mobileway/tmp
#zgrep 'submit:\|submit_resp' /opt/mobileway/swiftmq/log/smppsvr_common99/smpp.log.2011-03-09.gz | sort -k3,3 | awk '{print $2" "$3" "$7}' | less
zgrep 'submit:\|submit_resp' $file | awk '{print $3}' | sort | uniq | tr -d ... | true |
c1a138ffa134b70e6974c20a56c7f86bcc88490c | Shell | Dc-cpu-arch/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/3-until_holberton_school | UTF-8 | 126 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
# prints Holberton School 10 times
i=0
until [ $i -eq 10 ]
do
echo "Holberton School"
i=$((i + 1))
done
| true |
58fc1b876b6ed208e977953990a2309068823fc1 | Shell | thomasdelhomenie/swf-scripts | /jenkins/translation/build-translation-branches.sh | UTF-8 | 3,637 | 3.046875 | 3 | [] | no_license | #!/bin/bash -eu
# Script to build Translation branches:
# * X-x.x-translation
# * X-x.x-translation-jipt
set -e
mkdir -p ${WORKSPACE}/sources
arr=("gatein-portal" "platform-ui" "commons" "ecms" "social" "wiki" "forum" "calendar" "integration" "platform")
for project in "${arr[@]}"
do
echo "Clone git repo $project of... | true |
96952ae49eb4afe125570fe52a8d701e0ed7f99f | Shell | platrum/module-bundler | /bundle.sh | UTF-8 | 208 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
docker run --rm \
-v $SOURCE_DIR:/app/src \
-v $TARGET_DIR:/assets \
-w /app \
webpack-module-bundle ${@:2}
| true |
89b01d3aa7a6fbede705a9a978a106bff133cf69 | Shell | LiamBao/TextEngineExample | /bin/te_mergeindex.sh | UTF-8 | 477 | 2.65625 | 3 | [] | no_license | LIB="../trunk/lib"
TE_LIB="../trunk/dist/te.jar"
CORE_LIB="../../CICCore/trunk/dist/ciccore.jar"
TECONF="../conf"
HADOOPCONF="../hadoop_conf"
TARGET_INDEX="/home/textd/data/IndexRepo_2007"
SRC_INDEX="/home/textd/data/IndexRepo_history/"
for f in `find $LIB -type f -name "*.jar"`
do
CLASSPATH=$CLASSPATH:$f
done
CLASS... | true |
188b259fe7fa5f55576c2295702719c6ad91a160 | Shell | sabrehagen/dotfiles-i3 | /.config/i3/move-to-next-window-of-type.sh | UTF-8 | 823 | 3.25 | 3 | [] | no_license | WINDOW_CLASS=$1
CURRENT_WORKSPACE=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
PREVIOUS_WORKSPACES=$(i3-msg -t get_workspaces | jq '.[].num' | sort -n | awk -v current=$CURRENT_WORKSPACE '$1 < current')
NEXT_WORKSPACES=$(i3-msg -t get_workspaces | jq '.[].num' | sort -n | awk -v current=$CURRENT... | true |
df40441f9201fe1cc7f74ede5c2dfde79a10d67a | Shell | tracyvierra/vigilant-pancake | /bash scripting/scripts/temp_convert.sh | UTF-8 | 661 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Author: Tracy Vierra
# Date Created: 2/8/2022
# Date Modified: 2/8/2022
# Description:
# Usage:
# ./temp_convert.sh <unit> <temp>
while getopts "c:f:" opt; do
case "$opt" in
c) # convert from celsius to farenheit
result=$(echo "scale=2; ($OPTARG * (9 / 5)) + 32" | bc)
;;
f) # convert from fah... | true |
abc299aa73e2142400fe29e4cb3765df7d898fd3 | Shell | toddgator/tiberius | /library/rhel7/_hold/S30-real-time-updates.sh | UTF-8 | 1,725 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# 201402071200
##
# pps_real_time_updates configuration
##
export APP_NAME=$(basename $0 | sed "s/\.sh$//g" | sed "s/^S..-//g")
##
# Memory Settings
##
##
# SDI application configuration
##
echo "$(grep JVM /opt/sdi/sdi_service_scripts/templates/sdi.${APP_NAME}.conf)
PORT=$(cat /opt/sdi/sdi_service_scrip... | true |
0b3046ad2bcf8e5cfcae5aed269404346db8cb15 | Shell | mhus/mhus-docker | /pi-hole/debian-root/etc/cont-init.d/20-start.sh | UTF-8 | 1,593 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/with-contenv bash
set -e
bashCmd='bash -e'
if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then
set -x ;
bashCmd='bash -e -x'
fi
if [ "${PH_NAMESERVER:-0}" != 0 ] ; then
echo nameserver ${PH_NAMESERVER} > /etc/resolv.conf
fi
$bashCmd /start.sh
# Gotta go fast, no time for gravity
if [ -n "$PYTEST" ]; then
... | true |
955e41a6f982b05ff70f15748dd253426d3fa721 | Shell | joseph-long/dotfiles | /setup_workspace.sh | UTF-8 | 3,789 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Usage: curl -OL [...]/raw/setup_workspace.sh && bash setup_workspace.sh
# or: BASEDIR=/groups/jrmales/josephlong bash setup_workspace.sh
source ~/.profile
set -xo pipefail
# cd
OSTYPE=$(uname)
case "$OSTYPE" in
Darwin) platform=MacOSX ;;
Linux) platform=Linux ;;
*) exit 1 ;;
esac
# Based on... | true |
fa24d4f24e1473ef0eb9242d09624b5ea527b606 | Shell | phebous/promscale-bosh-addon-release | /jobs/promscale/templates/promscale-ctl.erb.old | UTF-8 | 928 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RUN_DIR=/var/vcap/sys/run/promscale
LOG_DIR=/var/vcap/sys/log/promscale
PIDFILE=${RUN_DIR}/pid
case $1 in
start)
mkdir -p $RUN_DIR $LOG_DIR
chown -R vcap:vcap $RUN_DIR $LOG_DIR
cd /var/vcap/packages/promscale/bin
/var/vcap/packages/promscale/bin/promscale -db-host <%= p('promscale.db... | true |
0a53398ad80ba5b9630f24884454d58d559b1c6e | Shell | dettrace/dettrace | /test/samplePrograms/procdump.sh | UTF-8 | 179 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# set -eEuo pipefail
for f in `ls /proc`; do
echo -n "$f: ";
if [ -f "/proc/$f" ];
then
cat "/proc/$f" | md5sum
else
echo "not a file"
fi
done
| true |
eb3afe7a8ff7ad045d64c802b7d7bd10e8b14e3f | Shell | wzzrd/ocp36-azure-simple | /deploy.sh | UTF-8 | 4,443 | 4.125 | 4 | [] | no_license | #!/bin/bash
# Shell script to deploy OpenShift 3.6 on Microsoft Azure
# Magnus Glantz, sudo@redhat.com, 2017
OK=0
if [ -f ./deploy.cfg ]; then
. ./deploy.cfg
if test -z $RHN_ACCOUNT; then
OK=1
elif test -z $OCP_USER; then
OK=1
elif test -z $OCP_PASSWORD; then
OK=1
elif test -z $SUBSCRIPTION_POOL; then
OK=... | true |
deffcf68db68cadbc435bb2f01a4d4a259b5cf2e | Shell | michaelcunningham/oracledba | /adhoc/gather_stats_npdb530.sh | UTF-8 | 2,001 | 3.0625 | 3 | [] | no_license | #!/bin/sh
target_server=npdb530
this_server=`uname -n | cut -f1 -d.`
if [ "$this_server" != "$target_server" ]
then
echo "You are trying to run this script on the wrong server."
echo "It is intended to only run on the "$target_server" server."
exit
fi
log_date=`date +%a`
adhoc_dir=/dba/adhoc
log_file=$adhoc_dir/l... | true |
faff9bcf61c3723d1ed3c6476a26571f65214a67 | Shell | josephvoss/dotfiles | /.local/bin/wal-set | UTF-8 | 635 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Script to set colors generated by 'wal'
# https://github.com/dylanaraps/wal
# Source generated colors.
export HOME=/home/jvoss14
source "$HOME/.cache/wal/colors.sh"
reload_dunst() {
pkill dunst
dunst \
-lb "${color0:-#F0F0F0}" \
-nb "${color0:-#F0F0F0}" \
-cb "... | true |
1e96c8b0ae8d63fa2b77ae76ceaaf032d1397dba | Shell | doronbehar/msmtpq | /msmtpq | UTF-8 | 10,645 | 3.859375 | 4 | [] | no_license | #!/bin/sh
set -e
config_dir="${XDG_CONFIG_DIR:-${HOME}/.config}"/"$(basename "$0")"
config_file="${MSMTPQ_CONFIG:-${config_dir}/default.conf}"
function _usage {
local options=(
'-c,--config <FILE>'
'-l,--list'
'-r,--run'
'-v,--verbose'
'-n,--dry-run'
'-h,--help'
... | true |
cdd2f754020d08458c571612a45b6203bd0d2012 | Shell | uvt/blackarch | /packages/libowfat/PKGBUILD | UTF-8 | 555 | 2.65625 | 3 | [] | no_license | pkgname=libowfat
pkgver=0.29
pkgrel=2
pkgdesc="GPL reimplementation of libdjb"
arch=(i686 x86_64)
url=http://www.fefe.de/libowfat/
makedepends=(dietlibc)
license=(GPL)
install=libowfat.install
source=(http://dl.fefe.de/$pkgname-$pkgver.tar.bz2)
md5sums=('1187c6acf11429e7adb9ebe180f644bb')
build() {
cd $srcdir/$pkgna... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.