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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fe47a0070a9f9ad6b35de215dcdfc10c9cb6f4e6 | Shell | fuzziebrain/docker-apex-stack | /oml-kit/installR.sh | UTF-8 | 584 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Run as root
CRAN_MIRROR_URL=${CRAN_MIRROR_URL:-https://cran.r-project.org}
R_HOME=/usr/lib64/R
yum-config-manager --enable ol7_optional_latest ol7_addons
yum install -y \
make \
automake \
gcc \
gcc-c++ \
pango-devel \
libXt-devel \
libpng12 \
unzip \
R-3.3.0-2.el7
... | true |
3b234e86b4f3c88240833b59321775948d1d1c47 | Shell | simple-linux-tools/file-manipulation-scripts | /find-last-modified | UTF-8 | 202 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#
# USAGE: find-last-modified [<location>] [<number of last modified files>]
find ${1:-.} -type f 2> /dev/null| xargs stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head -${2:-30}
| true |
7b1745f3ea2503eb4749fded47a3ad04e004cbd6 | Shell | samuel-messing/otto | /src/build_and_run.sh | UTF-8 | 3,187 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# Builds entire project and runs the server.
# TODO - check that we're running in top-level dir.
# TODO - kill existing server first.
function install_command() {
if [[ ! $(command -v $1) ]]; then
echo "[one-time] Installing $1";
sudo apt-get install $2
fi
}
install_command 'clang-for... | true |
a110aa043ed2f0460aca8d141faf8454894f418f | Shell | CSenshi/Information-Theory-Checker | /HW3/script/check.sh | UTF-8 | 5,447 | 3.859375 | 4 | [] | no_license | # !/bin/bash
if [ "$#" -ne 8 ] && [ "$#" -ne 10 ] && [ "$#" -ne 12 ] && [ "$#" -ne 14 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " StandardForm.XXX, ParityChec... | true |
ba87b4cce91bd25efebd915e66ead9a082473784 | Shell | weiyaom/BigDataGroupProjects | /Java_Kafka/installKafka.sh | UTF-8 | 403 | 2.65625 | 3 | [] | no_license | #!/bin/sh
cd /opt
#Get Kafka
sudo wget http://apache.mirrors.hoobly.com/kafka/2.3.1/kafka_2.12-2.3.1.tgz
#Extract the file
sudo tar -xzvf kafka_2.12-2.3.1.tgz
#Remove zip file
sudo rm kafka_2.12-2.3.1.tgz
#Update the bash profile
echo -e '\n#Kafka Home' >> ~/.bash_profile
echo 'export KAFKA_HOME=/opt/kafka_2.12-2.3.1... | true |
9de31959681931ba5e89636da1243c1b954766ca | Shell | jeanregisser/dotfiles | /bin/install-nodes | UTF-8 | 220 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
source "$(dirname "$0")/script-helpers"
msg "Install node.js versions"
NODES=(
'v6.9.1'
'v7.5.0'
'v8.2.1'
)
for item in "${NODES[@]}"
do
nvm install $item
done
#nvm alias default node
| true |
61904f32a6b0d1c729fc6015a6e8856db8d5508c | Shell | l50/bash-scripts | /install_ansible.sh | UTF-8 | 7,280 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -----------------------------------------------------------------------------
# install_ansible.sh
#
# Install ansible
#
# Usage: bash install_ansible.sh
#
# Author: Jayson Grace, jayson.e.grace@gmail.com, 8/2/2017
#
# Resources:
# https://stackoverflow.com/questions/19622198/what-does-set-e-mean-... | true |
e83acf4553bd7e12bc30eef73c4f51d3fa07af0a | Shell | rohankadekodi/SplitFS | /scripts/ycsb/run_ycsb_soft.sh | UTF-8 | 715 | 2.828125 | 3 | [] | no_license | #!/bin/bash
src_dir=`readlink -f ../../`
cur_dir=`readlink -f ./`
setup_dir=`readlink -f ../configs`
pmem_dir=/mnt/pmem_emul
run_ycsb()
{
fs=$1
for run in 1
do
sudo rm -rf $pmem_dir/*
sudo taskset -c 0-7 ./run_fs_soft.sh LoadA $fs $run
sleep 5
sudo taskset -c 0-7 ./run_fs_s... | true |
582a050864181545603f79f47d0eddac14f9448e | Shell | skyformat99/quant | /notebook.sh | UTF-8 | 317 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
#!/usr/bin/env bash
BASEDIR=`dirname $0`
cd "$BASEDIR"
if [[ ! -d research ]];then
mkdir research
fi
if [ `ps aux | grep jupyter | wc -l` -gt 1 ];then
echo "the notebook is already running,stop it first"
exit
fi
#启动notebook
nohup jupyter notebook --ip 0.0.0.0 > logs/notebook.log & | true |
272544631c401c74784f7bc0b64972cf29ea8a57 | Shell | Irkka/squire | /lib/squire/ui/cli/usage.sh | UTF-8 | 300 | 2.921875 | 3 | [] | no_license | require_relative '../../meta.sh'
function squire_usage() {
squire_version
cat <<USAGE
# To locate squire installation and load it up
eval \$(squire init)
# To install or uninstall local or global libraries
squire <install (-g)|uninstall (-g)>
USAGE
return 1
}
export -f squire_usage
| true |
72c928800b5a5b07faa1a63b8571aa0872a7c92a | Shell | jwermuth/docker-mongo-cluster | /resolveips.sh | UTF-8 | 767 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
pipework also great, but If you can use hostname other than ip then you can try this script
#!/bin/bash
# This function will list all ip of running containers
function listip {
for vm in `docker ps|tail -n +2|awk '{print $NF}'`;
do
ip=`docker inspect --format '{{ .NetworkS... | true |
d2181b7c745e140d3fe77d8e57dc65648e964d2a | Shell | emersion/confiture.utils | /massctl.sh | UTF-8 | 2,995 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Dependencies : -
APP_VERSION='0.1'
APP_AUTHOR='$imon'
collectChanges=false
collectChangesNoConfirm=false
generatePkgs=false
addPkgsToRepo=false
while test $# -gt 0
do
if [ "$1" = '--help' ] || [ "$1" = '-h' ] ; then
echo "=== Lighp package mass controller ==="
echo " version $APP_VERSION ... | true |
60cf6b4b0efcc76a66922a727109bd51595afd15 | Shell | ElsevierSoftwareX/SOFTX_2018_97 | /setup/setup_env_2.7.sh | UTF-8 | 967 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Must run this script from SimPrily
# Tested on Ubuntu 16.04
echo "This will set up a python virtual environment with python 2.7 and include all the required packages for SimPrily."
echo "This script requires sudo privileges and apt-get.
If you do not have sudo privileges or cannot install apt-ge... | true |
407af14f1caae014a34438ff4158932aa6eee575 | Shell | blackwut/dotfiles | /preferences.sh | UTF-8 | 30,480 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
if csrutil status | grep -q enabled; then
echo "Please disable System Integrity Protection (SIP) by following sleepimage.sh script description."
exit
fi
if command -v dockutil; then
echo "Please install dockutil"
exit
fi
# Close any open System Preferences panes, to prevent them f... | true |
e8c4065d2ae53d5a663eb3b0bbf99811b30afbb9 | Shell | leventyalcin/docker_build_scripts | /image_src/dev_basic/assets/home/.bashrc | UTF-8 | 1,154 | 4.125 | 4 | [
"MIT"
] | permissive | for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
if [[ -r /etc/profile.d/bash_prompt.sh ]]; then
. /etc/profile.d/bash_prompt.sh
elif [[ -r /etc/profile.d/color_prompt ]]; then
. /etc/profile.d/color_prompt
else
export PS1='\[\033[01;32m\]\h\[\033[01;36m\]\W... | true |
0362dd4a25701639931079fbf61dd852d51b3c01 | Shell | mgijax/pgmgddbschema | /comments/MLD_Concordance_create.object | UTF-8 | 1,794 | 2.671875 | 3 | [] | no_license | #!/bin/sh
cd `dirname $0` && . ./Configuration
cat - <<EOSQL | ${PG_DBUTILS}/bin/doisql.csh $0
COMMENT ON TABLE mgd.MLD_Concordance IS 'Defines Concordance values for Hybrid Experiment. The Concordance table contains results for either Markers or Chromosomes. Concordance values are stored as integers which represe... | true |
753f9397d59a16ebf6bb93a3867c57f677d962be | Shell | coreboot/vboot | /tests/futility/test_gbb_utility.sh | UTF-8 | 9,054 | 3.296875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -eux
# Copyright 2014 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
me=${0##*/}
TMP="$me.tmp"
# Work in scratch directory
cd "$OUTDIR"
# Helper utility to modify binary blobs
REPLACE="${BUILD_RUN}/tests/futility/binary_editor"... | true |
af502111d9a5e16ff184e1c73cb6ddede69a45e1 | Shell | ritcheyer/dotfiles | /git/aliases.zsh | UTF-8 | 1,185 | 2.984375 | 3 | [
"MIT"
] | permissive | # Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=... | true |
eedc121a7323fd808c27e4447b5fe769275f815b | Shell | julp/ugrep | /test/utr.sh | UTF-8 | 3,359 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# charset: UTF-8
declare -r TESTDIR=$(dirname $(readlink -f "${BASH_SOURCE}"))
declare -r DATADIR="${TESTDIR}/data"
# Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters
# replaced as specified by the ANSI C standard. Ba... | true |
f2fdeb5de49be7aa3c8d680292d3c6207199e3c1 | Shell | cloudfoundry/metric-store-ci | /tasks/enable-disable-alert-failure/run.sh | UTF-8 | 747 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
. ./metric-store-ci/tasks/shared_bash
set -eoux pipefail
current_version=$(cat slack-rate-limit-version/version)
patch_version=$(patch_from_semver ${current_version})
alert_multiple=${alert_multiple:-5}
ignore_first=${ignore_first:-false}
if [[ ${patch_version} -gt 1 && $(( ${patch_version} % ${a... | true |
b6370cdaf93c3bcd5bad2a58c8e1bbf4a1f4c6cd | Shell | Nectolink/BashScript | /arry.sh | UTF-8 | 218 | 3.75 | 4 | [] | no_license | #!/bin/bash
func()
{
#Filling Arry with loop
echo Lenth of Arry:-
read en
for((i=0; i<=$en; i++))
do
read a
arry[$i]=$a
done
}
func
#Arry In List Foreach
echo arry in list:-
for var in ${arry[*]}
do
echo $var
done
| true |
32aede4576d0a59753b9aee1829013e4798ffcd9 | Shell | ShubhamChaurasia/spark-rapids | /integration_tests/run_pyspark_from_build.sh | UTF-8 | 7,439 | 3.140625 | 3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Copyright (c) 2020-2021, NVIDIA 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 applicable... | true |
72fdc5e58ccc9270513eb94ba7c0c8d8d2caa30c | Shell | fvegaucr/slack | /fer_theconstructor/bin/remote_pack_deploy.sh | UTF-8 | 2,910 | 3.84375 | 4 | [] | no_license | #!/bin/bash
PACKAGE=$1
ACTION=$2
NOTIFY=$3
HOST=$4
CHECK_INSTALL='`ssh $HOST "whereis $PACKAGE | cut -d : -f2"`'
INSTALL=`ssh '$HOST' "sudo apt-get install $PACKAGE -y"`
REMOVE=`ssh $HOST "sudo apt-get remove $PACKAGE -y"`
REMINSTLOG="../var/remote_installer_sh.log"
FILE_APP="../files/index.php"
RESTART=`ssh $HOST "s... | true |
ebe463362caf30a7598a765a512d803c4f846203 | Shell | timerzpro/termux-packages | /packages/git-crypt/build.sh | UTF-8 | 739 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://www.agwa.name/projects/git-crypt/
TERMUX_PKG_DESCRIPTION="git-crypt enables transparent encryption and decryption of files in a git repository."
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.6.0
TERMUX_PKG_MAINTAINER="@jottr"
TERMUX_PKG_SHA256=777c0c7aadbbc758b69aff1339ca61697011ef7b92f1... | true |
72cfad1fabcdd0fce2176aa9f7bc5f13d9047b3a | Shell | nlamirault/kzenv | /libexec/kzenv-version-name | UTF-8 | 1,169 | 4 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Summary: Show the current Kustomize version
set -e
[ -n "${KZENV_DEBUG}" ] && set -x
source "${KZENV_ROOT}/libexec/helpers"
[ -d "${KZENV_ROOT}/versions" ] \
|| error_and_die "No versions of kustomize installed. Please install one with: kzenv install"
KZENV_VERSION_FILE="$(kzenv-version-file)... | true |
7c35076ea35268ac1e62652e6466016dadab434a | Shell | jqrsound/EYESY_OS_for_RasPiSound | /pisound-ctl/eyesy_launch.sh | UTF-8 | 692 | 3.109375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright (C) 2017-2018 Vilniaus Blokas UAB, https://blokas.io/pisound
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
#
systemctl start eyesy-python.service
systemctl start eyesy-web.service
systemctl start ... | true |
33f263a4e815a8130b22a928886c4c49b57a794e | Shell | linktoakilan/wildflyapp | /entrypoint.sh | UTF-8 | 703 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -u # Fail on unset variables
set -e # Fail if any command fails
#get container IP from the container metadata
CONTAINER_IP=$(curl -s http://169.254.170.2/v2/metadata | jq -r .Containers[0].Networks[0].IPv4Addresses[0])
PORT_OFFSET=0
echo "Using Container IP: ${CONTAINER_IP}"
echo "Using Port Offset: ${... | true |
90fb712b06c98329b5c182e92a46087522cd5bc4 | Shell | cirocosta/llb | /utils/setup-routing.sh | UTF-8 | 994 | 3.515625 | 4 | [] | no_license | #!/bin/bash
set -o errexit
set -o xtrace
main() {
case $1 in
setup)
setup
;;
clean)
clean
;;
*)
echo "Usage: ./setup-routing.sh (setup|clean)"
exit 1
;;
esac
}
clean() {
ip -all netns delete
ip link delete br1 || true
}
setup() {
ip netns add namespace1
ip netns add n... | true |
37734a3e96ae097872efb4d40f4d158f22f35be2 | Shell | socal-ucr/djinn | /tonic-suite/img/scripts/ALL.sh | UTF-8 | 350 | 3.046875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
declare -a RTT
for DIR in {1..12}
do
mv ${DIR}_run 4_sem_results/
for FILE in {25..64..1}
do
tail -n 900 ${FILE}.out >> temp
OUTPUT="$(../${1}.py -i temp)"
rm temp
RTT[${FILE}]="${RTT[${FILE}]},${OUTPUT}"
done
cd ../
done
for i in {25..64}
do
... | true |
3139009c235a675b2e381c84492ee4c905913a44 | Shell | ulic75/unraid_vm_icons | /icon_download.sh | UTF-8 | 5,316 | 3.734375 | 4 | [] | no_license | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # Download custom vm icons from github and add them to Unraid server # #
# # by - SpaceinvaderOne # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # ... | true |
47bb147dea8251bca3d2a55028178e2e9a66951e | Shell | Huawei/DJ_Ansible | /scripts/project002/todo/executeTodo.sh | UTF-8 | 1,305 | 3.25 | 3 | [] | no_license | #!/bin/bash
# please modify USER、IP、PORT、USP4O
export API_USER=gatewayUser
export IP=""
export PORT="26335"
export USP4O="/yunwei/usp4o.jar"
TODO_TASK_NAME=$1
UUID_REG="\w{8}(-\w{4}){3}-\w{12}"
IPMC_USER="`stat -c '%U' $0`"
CURRENT_USER="`/usr/bin/id -u -n`"
if [[ "${IPMC_USER}" != "${CURRENT_USER}" ]]
then
echo... | true |
638910a136ec470a731398bc4c9819b7e2c4d9aa | Shell | tianbingsz/Paddle | /paddle/scripts/travis/build_and_test.sh | UTF-8 | 636 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source ./common.sh
python -c 'import pip; print(pip.pep425tags.get_supported())'
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
CMAKE_EXTRA="-DWITH_SWIG_PY=OFF"
else
CMAKE_EXTRA="-DWITH_SWIG_PY=ON"
fi
cmake .. -DWITH_GPU=OFF -DWITH_DOC=OFF -DWITH_TESTING=ON -DON_TRAVIS=ON -DON_COVERALLS=ON ${CMAKE_EXTRA}
... | true |
1995c3dab57b4d3b56469d5989111a371589f17b | Shell | chef/anka-buildkite-plugin | /tests/pre-command.bats | UTF-8 | 1,078 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
load '/usr/local/lib/bats/load.bash'
# Uncomment to enable stub debug output:
# export BUILDKITE_AGENT_STUB_DEBUG=/dev/tty
@test "Execute with PRE_COMMANDS (yaml list)" {
export BUILDKITE_PLUGIN_ANKA_PRE_COMMANDS="echo 123 && echo 456
echo got 123 && echo \" got 456 \"
buildkite-agent artifact ... | true |
cff2cac3539723a5c7567b2f64d1863057e009e2 | Shell | oldgcode/config | /zsh/precmd.zsh | UTF-8 | 3,667 | 4.03125 | 4 | [] | no_license | checkAndSetWindowTitle() {
local program_name="$1";
program_name=$(convertAliasToFull "$program_name");
# Set the window name to the currently running program.
if ! isShortName "$program_name"
then
setWindowTitle $(getTitleFromProgram "$program_name");
window_reset="yes"
fi
}
getTitleFromProgram() {
loca... | true |
381bf3da12e703ce29c7964864fad24bd4282644 | Shell | atmaivancevic/2017 | /iTOL/runPrintPopupInfo.sh | UTF-8 | 393 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# Use this file to print popup HTML code for all genomes
# Takes as input a text file containing species names and NCBI txid number
# E.g. input txt file looks like:
#Macropus eugenii 9393
#Homo sapiens 9606
#...
while IFS= read -r line; do
echo "reading input: $line"
./printPopupInfo.sh $line >> htmlF... | true |
f68d605afd018cc4ab47664af323415dac229955 | Shell | Scott-Galloway/sg-setup | /admin_install.sh | UTF-8 | 906 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
#Scott Galloway environment setup for admin
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
ub_ver="$(lsb_release -d | awk -F: '{print $2}')"
#deb_ver="$(echo "$(uname -v)" | grep -i debian > /dev/null 2>&1;\
# echo $?)"
#cen_ver="$(echo "$(uname -v)" | grep -i centos > /dev/null... | true |
387356e737b478691edbcbc2eb775c1d4536a2a3 | Shell | Yusarin/K-VConsistency | /CausalMulticastRun.sh | UTF-8 | 851 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
gradle jar
for id in $(seq 1 $1)
do
echo "$id"
echo $(uname)
if [ $(uname) = "Darwin" ]; then
if [ -n "$2" ]; then
echo "$2/$id"
osascript -e "tell application \"Terminal\" to do script \"cd $PWD && java -cp build/libs/CS425MP1.jar Process.CausalMulticastDemo $id CausalConfigurat... | true |
3f84449e5006dc2a5f5b1757572612ba0f5aed3e | Shell | maorfr/git-keeper | /repos.sh | UTF-8 | 706 | 2.90625 | 3 | [] | no_license | #!/bin/bash
[ -z "$APP_INTERFACE_USER" ] && echo "Please define APP_INTERFACE_USER env var" && exit 1
[ -z "$APP_INTERFACE_PASSWORD" ] && echo "Please define APP_INTERFACE_PASSWORD env var" && exit 1
# APP_INTERFACE_URL default value
[ -z "${APP_INTERFACE_URL}" ] && APP_INTERFACE_URL="https://app-interface.devshift.n... | true |
9a16c8235e4089ee6a0a31c472cc4c4c1553fb14 | Shell | zxt243416724/Openstack-HA-Deployment | /vm_install_rabbitmq_and_setting_native_cluster.sh | UTF-8 | 2,336 | 3.25 | 3 | [] | no_license | #!/usr/bin/bash
section=`hostname`
bind_ip=$(/usr/bin/bash readini.sh cluster_variables.ini $section int_ip)
master_vm_name=$(/usr/bin/bash readini.sh cluster_variables.ini default master)-vm
master_vm_ip=$(/usr/bin/bash readini.sh cluster_variables.ini $master_vm_name int_ip)
#we delete rabbitmq-server-master and k... | true |
2f1afe42fefec09417da8626cc74e7f70842b9c4 | Shell | chopins/chopins.github.com | /download/pdnss | UTF-8 | 2,561 | 3.609375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
trap 'EX=1;exit' INT
trap 'EX=1;exit' TERM
EX=0
NSIPLIST='http://public-dns.info/nameservers.txt'
CACHE=$(dirname $(realpath $0))/cacheip.txt
echo '' > $CACHE
has_dns=3
has_domain=3
for arg in $*
do
if [ $has_dns -eq 1 ];then
NSIPLIST=$arg
has_dns=2
continue
fi
if [ ... | true |
e0715d2d9f2bd0be5b7bf646d7581c93b2dd9da5 | Shell | ElComeback/Kuminecraft-v.2.0-SP | /bin/minecraft.sh | UTF-8 | 1,607 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# Abre Ngrok y si falla, reintenta en 10 segundos...
start_tunnel(){
while true
do
echo -n "Iniciando Ngrok... "
bin/ngrok tcp -authtoken $NGROK_API_TOKEN -log stdout --log-level debug ${mc_port} &> ngrok.log
echo -n "Fallido, reintentando en 10 segundos... "
sleep 10
done
}
graceful_shutdown()... | true |
5b0191af795a5dddac25447ab7815c0c3cd218b7 | Shell | xdamatada/dirty_rom_cooker | /scripts/buildscripts/prepdownload.sh | UTF-8 | 755 | 3.296875 | 3 | [] | no_license | #!/bin/bash
echo "Downloading the Source. Please wait"
echo "This will take anywhere between 30"
echo "minutes and four hours (Depending on"
echo "network Speed. This requires a 5-6gb"
echo "download"
echo
echo
echo "Downloading Repo"
cd ~/
mkdir -p ~/dirty/bin
export PATH=${PATH}:~/dirty/bin
curl https://dl-ssl.googl... | true |
9c0b73a5d3b1c763ca59190a5c1036b860212b8b | Shell | kdruelle/zsh | /plugins/git/git.flow.comp.zsh | UTF-8 | 15,253 | 3.734375 | 4 | [] | no_license | #!zsh
#
# Installation
# ------------
#
# To achieve git-flow completion nirvana:
#
# 0. Update your zsh's git-completion module to the newest verion.
# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD
#
# 1. Install this file. Either:
#
# ... | true |
30bdd9eaa593b4f0e60c7b01ea9e78937afda545 | Shell | alcarl/auto-reaver | /reCheckFoundPin | UTF-8 | 1,978 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# following script was created to deal with situation when only PIN is printed, but not WPA PSK
# so script searches WPA PSK until reaver spits it out, using while loop
# perl checks wheter PSK is printed, if so, exit is called.
if [ -z "$1" ] || [ -z "$2" ]; then
echo "There's common situation that reav... | true |
95939098f1de8f9a0fcca3b2ee4e1f53278a8c5e | Shell | MarriShruthi/first | /empWageSal.sh | UTF-8 | 240 | 3.421875 | 3 | [] | no_license | #!/bin/bash -x
isPresent=1;
randomCheck=$(( RANDOM%2 ))
if [ $isPresent -eq $randomCheck ]
then
echo "Employee is present";
empRatePerHr=20;
e mpHrs=8;
salary=$(($empHrs*$empRaePerHr))
else
echo "Employee is absent";
salary=0;
fi
| true |
8c13954ffdfe9d70d09ea8142dc3d49265b22e01 | Shell | bandgeekndb/imageNow | /Bash/commonAppImport.sh | UTF-8 | 11,476 | 3.5 | 4 | [] | no_license | #!/bin/bash
set -o errexit
### --- Configuration --- ###
# Set this to 1 if you need to load some files and don't want emails to go to everybody.
sneakLoading="0"
# Set this to 1 if we're at the low point in the cycle and may expect fewer than the full amount of zips.
cycleMessage="1"
if [ $sneakLoading == 1 ]; then ... | true |
9576556a2f3d4f30ea2285cbb3ef9744113eb167 | Shell | masukomi/masuconfigs | /bin/branch_finder | UTF-8 | 1,375 | 4.0625 | 4 | [] | no_license | #!/bin/sh
# branch_finder "grep string" search_type
# search types
if [[ "$#" -lt 2 ]]; then
echo "Usage: branch_finder <grep_string> <search_type>"
echo "search types: last_commit, codebase"
exit 0
fi
echo "WARNING: This will blow away all uncommitted changes. ok? [y/n]"
read OK
if [[ "$OK" == "y" ]]; then
LOOKI... | true |
fddd854418dde3a40c9be981b3363f5ad1d31018 | Shell | bluelamar/WsRuler | /scripts/check_cdb.sh | UTF-8 | 3,502 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Get the root /:"
curl http://localhost:5984/
echo "Get the utils index.html:"
curl http://localhost:5984/_utils/index.html
echo "Get the utils verify install:"
curl http://localhost:5984/_utils/index.html#verifyinstall
AUTHHDR="Authorization:"
#AUTHUSER="wsruler"
AUTHPWD="oneringtorule"
AUTHUSER="... | true |
869cd6928f4bf91ffa93f0992766690ee3c26d40 | Shell | nawa/back-friend | /functional-tests/run_tests.sh | UTF-8 | 987 | 3.25 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
TESTS_RESULT=0
echo "======================= Prepare environment ======================="
docker-compose --file functional-tests/docker-compose.yml down
docker-compose --file functional-tests/docker-compose.yml up -d postgres
#wait for postgres start. Can be improved
sleep 5;
docker-compose --file functio... | true |
6843cc1d7bb2ebd9bbb11a30cc56938869e8309b | Shell | KoShimizuV/learnings | /bash/for2.sh | UTF-8 | 127 | 2.8125 | 3 | [] | no_license | #!/bin/sh
echo "1 b c" > tmp.txt
echo "2 b c" >> tmp.txt
IFS=$'\n'
for line in `cat tmp.txt`
do
echo "line=${line}"
done
| true |
4490901e03daa3de0a4d52a9a28c582bf46e0643 | Shell | yunju/DMAnaRun2_AddModules | /prod/printEOSFile.sh | UTF-8 | 577 | 3.171875 | 3 | [] | no_license | #!/bin/bash
scriptname=`basename $0`
EXPECTED_ARGS=3
userid="syu"
if [ $# -eq $(( EXPECTED_ARGS - 1 )) ]
then
echo "user ID is set to "$userid
else if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: ./$scriptname directory outputFileName userid"
echo "Example: ./$scriptname AbelianZPrime_ZH_lljj_M800-MADGRAPH... | true |
36f4ed1e1ad3b6569810e50013fdc0ab039c4048 | Shell | biodranik/landing-hugo | /tools/watch.sh | UTF-8 | 554 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Useful debug options:
# -e aborts if any command has failed.
# -u aborts on using unset variable.
# -x prints all executed commands.
# -o pipefail aborts if on any failed pipe operation.
set -euo pipefail
# Project root directory without slash at the end.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}"... | true |
7f1dd174c0c8748527578c8fc6062811836241ed | Shell | geircode/setting-up-ghost-in-azure | /phpmyadmin/docker-compose.up.sh | UTF-8 | 481 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BASEDIR=$(dirname "$0")
echo "$BASEDIR"
cd $BASEDIR
docker rm -f phpmyadmin-1
docker-compose -f docker-compose.yml down --remove-orphans
docker network create -d overlay --attachable setting_up_ghost_in_azure_network
docker-compose -f docker-compose.yml up -d --remove-orphans
# wait for 1-2 seconds for t... | true |
8ae6e4b1a962fed823149dc02f9a082744a81c09 | Shell | mdehollander/longread-UMI-pipeline | /scripts/check_primer_position.sh | UTF-8 | 1,994 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# DESCRIPTION
# Script for checking position of gene specific primers
# in read terminals when used with custom library preparation.
# Custom library preparation includes change or modification to
# any adaptors and/or use of Nanopore barcoding kits.
#
# IMPLEMENTATION
# author Søren Kar... | true |
f8882836ac18d0c5c1aad0b649a2d272fc0d73ec | Shell | Zeebrow/wish | /plugins/fmt_md_text/build.sh | UTF-8 | 584 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
bin_output_name=${1:-fmt_md_text}
randomname=$(uuidgen)
container=wish/"$bin_output_name"
d=`pwd`
[ ${d##*/} != "fmt_md_text" ] && echo "must run build from ./plugins/fmt_md_text" && exit 1
printf "building...\n"
docker build --build-arg BIN_OUTPUT_NAME="$bin_output_name" -t "$container" . || exit 1
printf... | true |
7e0704013db0eb0491f2d4044b14f4826008599b | Shell | cyberark/bash-lib | /tests-for-this-repo/helpers.bats | UTF-8 | 5,630 | 3.390625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | . "${BASH_LIB_DIR}/test-utils/bats-support/load.bash"
. "${BASH_LIB_DIR}/test-utils/bats-assert-1/load.bash"
. "${BASH_LIB_DIR}/init"
# run before every test
setup(){
temp_dir="${BATS_TMPDIR}/testtemp"
mkdir "${temp_dir}"
afile="${temp_dir}/appendfile"
}
teardown(){
temp_dir="${BATS_TMPDIR}/testtemp"... | true |
eca26f90a2e746a3993fcf9aa93458a0f7c01212 | Shell | Mount565/binlogDumper | /find_sql_for_gtid.sh | UTF-8 | 414 | 3.546875 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ];then
echo "Usage: sql file and an GTID arg are required. "
echo "This program will print all the sql statement included in the GTID which is the arg you passed."
echo "eg: $0 rollback_2018-07-26.sql d5902ad8-ec43-11e7-9df7-5254006b29ec:4567774"
exit 1;
fi
file=$1
gtid=$2
cat $file ... | true |
21a28c144fda331b60fdce0386cb9ed8760b6852 | Shell | kingman/home-lab | /provisioning/esp32/smart_desk/scripts/initialize-esp-idf.sh | UTF-8 | 1,163 | 4.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -o pipefail
clone_git_repository_if_not_cloned_already() {
destination_dir="$1"
git_repository_url="$2"
if [ -z "$destination_dir" ]; then
echo "ERROR while cloning the $git_repository_url git repository: The destination_dir variable is not set, or set to an empty string"
... | true |
228320d7cb6ed5e90c3e3b106c72ecadf085ef08 | Shell | TomYang9/attack-surface-framework | /redteam/metasploit/start | UTF-8 | 1,774 | 3.21875 | 3 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
if test "f$1" "=" "f"
then
echo "Error, please specify a JobID"
exit 1
fi
. /opt/asf/tools/scripts/arguments metasploit $1
DATE_STAMP=`date +"%Y%m%d%H%M%S"`
JOB_FOLDERS="/home/asf/jobs"
JOB_FOLDER="$JOB_FOLDERS/$1"
JOB_OUTPUT_FOLDER="$JOB_FOLDER/$DATE_STAMP"
TERM="xterm"
if ! test -e "$JOB_FOLDER"... | true |
a64a646a61b4e1abc7bc677fa46d6ef1d8b39893 | Shell | mertinger/cf-checker | /test_files/test.sh.old | UTF-8 | 3,065 | 3.25 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/ksh
#
#cd Test_Files
outdir=tests_output.$$
mkdir $outdir
export PYTHONPATH=/home/ros/software/python/cdat-lite:/home/ros/software/python/udunits
std_name_table=http://cfconventions.org/Data/cf-standard-names/current/src/cf-standard-name-table.xml
area_table=http://cfconventions.org/Data/area-type-table/curre... | true |
3827a76b89aa22fb19af14ce23cc61de5276c829 | Shell | injectedfusion/hedera-gcs-setup | /setup.sh | UTF-8 | 2,177 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Setup Script for hedera-gcs-setup
mkdir -pv ~/Desktop/hedera-mirror-node/vars ~/Desktop/hedera-mirror-node/roles
touch ~/Desktop/hedera-mirror-node/inventory.ini
cat >> ~/Desktop/hedera-mirror-node/inventory.ini <<- _EOF_
[mirrornode]
IPADDRESS ansible_ssh_user=USERNAME
_EOF_
touch ~/Desktop/hedera-mirro... | true |
9c4860028d14dd606113ddd44597af29ee12c7c6 | Shell | Jpocas3212/aur | /brick/PKGBUILD | UTF-8 | 1,250 | 2.71875 | 3 | [] | no_license | # Maintainer: Andrew Krasichkov <buglloc _ at _ yandex _ dot _ru>
pkgname=brick
pkgver=0.1.26.31
pkgrel=1
pkgdesc="Unofficial Bitrix24 messenger client"
arch=('i686' 'x86_64')
url="https://github.com/buglloc/brick"
license=("MIT")
depends=("alsa-lib" "desktop-file-utils" "gconf" "libxtst" "libxss" "xdg-utils" "gtk2" "... | true |
ed24d649de85c36c83f18f80b214839105d7f1a4 | Shell | Asenar/prestashop-devtools | /.git-templates/prepareAutoupgrade/hooks/pre-commit | UTF-8 | 937 | 3.265625 | 3 | [] | no_license | #!/bin/sh
#
# file : pre-commit
# desc : This hook dump your prestashop database in dump.sql and add this file (git add) before the commit.
# The dump is made with --skip-extended-insert option to make database state comparaison really easy.
# This hook is the reciprocal of post-checkout.
#
#
# a... | true |
8951f62253dd61a2938bddbeec37be243713a8e3 | Shell | kinshuk-jain/anmonline | /scripts/run-server.sh | UTF-8 | 703 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# download file from s3
aws s3 cp s3://kinarva/docustore.zip .
# rename the file
NAME="docustore"_`date +%Y_%m_%d_%H_%M_%S`
mv docustore.zip $NAME".zip"
# unzip it
unzip $NAME".zip" -d "$NAME"
rm $NAME".zip"
cd $NAME
# Copy pm2 ecosystem file
cp ../ecosystem.config.js .
# restart server
pm2 restart ec... | true |
91bee36ed26071e9f6c68c8eca5b256c0b66e8e4 | Shell | castle-sky/verdaccio | /scripts/e2e-setup-ci.sh | UTF-8 | 256 | 3.078125 | 3 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"CC-BY-4.0",
"CC-BY-NC-SA-4.0",
"CC-BY-SA-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -e
HERE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
TEMP_DIR="$(mktemp -d)"
cd "${TEMP_DIR}"
echo $TEMP_DIR
echo $HERE_DIR
git config --global user.email "you@example.com"
git config --global user.name "John Doe"
| true |
80a610b69f6c2190b9ac65b75d24afcdcb7422cb | Shell | tommibergman/crescendo-pp | /create_jobfiles.sh | UTF-8 | 541 | 3.421875 | 3 | [] | no_license | #!/bin/bash
if [[ -n "${1}" ]]
then
y1=${1}
else
echo "usage ${0} startyear [endyear]"
exit
fi
#if no end
[[ -n "${2}" ]] && y2=${2} || y2=${1}
if [[ ${y2} -lt ${y1} ]]
then
echo "usage ${0} startyear [endyear]"
echo "endyear must be larger than or equal to staryear"
exit
fi
for yyyy in $(ev... | true |
8918f845b9edf868bed59bc0b3cae086a925354e | Shell | ggiammat/r2 | /application-controller/eels-application-controller/e2c-eels-ac/src/main/resources/vm/eelsdeploy_light.sh | UTF-8 | 445 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #install application controller
IP_AC="${1}"
scp ../target/E2CEelsAC-1.1-SNAPSHOT.jar root@$IP_AC:eelsAC/
scp ../applicationcontroller.properties root@$IP_AC:eelsAC/
scp ../eelsapplication.properties root@$IP_AC:eelsAC/
#install application local agent
shift
for ipaddress in $@
do
scp ../../E2CEelsALA/target/E2CEels... | true |
f5d0fa34d1a01dec6bac15255ab31c85084a7075 | Shell | stoe/dotfiles | /.zshrc | UTF-8 | 1,163 | 3.1875 | 3 | [] | no_license | #!/bin/zsh
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
do... | true |
f6250d0b5989c5f047c863e21048200c9a08ebae | Shell | cancenik/translation-variation | /SCRIPTS/BASH_SCRIPTS/submit_pickrell_rnaseq.sh | UTF-8 | 287 | 2.515625 | 3 | [] | no_license | #!/bin/bash
PICKRELL=/srv/gs1/projects/snyder/ccenik/PICKRELL_RNASEQ
cd $PICKRELL
for dir in $(find . -maxdepth 1 -mindepth 1 -name 'GM*' -type d -printf '%f\n')
do
cd $PICKRELL/$dir/
pwd
zcat * > Merged_Reads.fastq
qsub ~/SCRIPTS/BASH_SCRIPTS/alignment_strategy_pickrell_qsub.sh
done | true |
5323b336bf25fc72805be67635b8df6dc2d09628 | Shell | pizzanfruit/react-remote-container | /.vscode/docker-network-disconnect.sh | UTF-8 | 219 | 2.96875 | 3 | [] | no_license | # !/bin/sh
DEVCONTAINER_NETWORK_NAME=$1
if [ -z "$DEVCONTAINER_NETWORK_NAME" ]; then
echo "Please provide network to disconnect from"
exit 1;
fi
docker network disconnect $DEVCONTAINER_NETWORK_NAME $HOSTNAME
| true |
c2e1a32dc6153bb5e2955dc97e54a9ee8ebd0723 | Shell | project-oak/oak | /scripts/build_reproducibility_index | UTF-8 | 1,061 | 3.96875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Check that artifacts can be reproducibly built, both when re-building them on the same machine
# over time, but also when built on different machines (e.g. locally vs on GCP).
#
# This script should be re-run every time any of these artifacts changes, and should be checked in
# so that we can enforce in... | true |
d9ae54534a7beb7d65d9be510a7d14d22db189c6 | Shell | allisterke/invest-lab | /concept/decorate-cz.sh | UTF-8 | 508 | 2.734375 | 3 | [] | no_license | #!/bin/bash
KEY=重组
while read -r LINE; do
echo "$LINE" |\
perl -ne 's/([[:digit:]]+年[[:digit:]]+月[[:digit:]]+日|[[:digit:]]+年[[:digit:]]+月|[[:digit:]]+年)((?:(?![[:digit:]]+年[[:digit:]]+月[[:digit:]]+日|[[:digit:]]+年[[:digit:]]+月|[[:digit:]]+年).)*)('$KEY')/<span style="font-style:italic; font-weight:bolder; font-si... | true |
9347723670a03ea16c6b4446279433c052c26451 | Shell | ryanplusplus/hld-save-utils | /edit.sh | UTF-8 | 343 | 2.734375 | 3 | [
"MIT"
] | permissive | TMPDIR=`mktemp -d`
mkdir -p $TMPDIR
cp $1 `dirname $1`/backup.sav
cat $1 | base64 --decode > $TMPDIR/decoded
dd count=60 if=$TMPDIR/decoded of=$TMPDIR/header bs=1 >& /dev/null
dd skip=60 if=$TMPDIR/decoded of=$TMPDIR/body bs=1 >& /dev/null
vi $TMPDIR/body
cat $TMPDIR/header $TMPDIR/body > $TMPDIR/modified
cat $TMPDIR/... | true |
8cbfd43372d7a97c887aa47f2e4ceaf2bb3f11a8 | Shell | stiles69/bin | /Set-MOTD.sh | UTF-8 | 1,197 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#===============================================================================
#
# FILE: Set-MOTD.sh
#
# USAGE: ./Set-MOTD.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Brett Salemink (), admin@roguedesi... | true |
4930ac60f826d08b44d20997e95a7c6c2782370d | Shell | raphaelmeyer/playground-6pnwam0r | /cmake-project/common.sh | UTF-8 | 800 | 4 | 4 | [] | no_license | #!/bin/bash
function fail {
exit_code=$1
message=$2
echo "TECHIO> message --channel \"Hint!\" ${message}"
echo "TECHIO> success false"
exit ${exit_code}
}
function check_failure {
exit_code=$1
if [ ${exit_code} -ne 0 ]; then
fail ${exit_code} "CMake build failed."
fi
}
function run_cmake {
proj... | true |
e3cbd9f57155671677b3f931d29d9b1ffaa4acd3 | Shell | redhat-cip/osp-delivery-tools | /analyse_heat.sh | UTF-8 | 2,061 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright (C) 2015 Red Hat, Inc.
#
# Author: Hugo Rosnet <hrosnet@redhat.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... | true |
5a0283466943a0580066ea7b387bfd68919fd4f9 | Shell | ldclakmal/ballerina-security | /scenarios/e-commerce-system/test.sh | UTF-8 | 1,020 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | source assert.sh
echo -e "\n--- Starting WSO2IS STS ---"
docker run -p 9443:9443 ldclakmal/wso2is-sts:latest &
sleep 90s
echo -e "\n--- Starting Payment Service ---"
cd payment_service
bal run &
sleep 20s
echo -e "\n--- Starting Delivery Service ---"
cd ../delivery_service
bal run &
sleep 20s
echo -e "\n--- Startin... | true |
c235a5871c1b2a4020531a4ae601a64a8ee5bb5c | Shell | tudor-berariu/bricks-ml-assignment | /2015/bricks/start_server.sh | UTF-8 | 1,007 | 2.703125 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <scenario>"
exit
fi
./delete_pipes.sh
./create_pipes.sh
make
if [ "$1" -eq 1 ]; then
./bricks-game-server --gamesNo 1000000 --height 4 --width 4 \
--bricks distributions/dist1 \
--verbose 0 \
... | true |
d04664cc0775299b4c0806737cc9be5f45fc5e9f | Shell | xCloudx8/Analysis_fasta_file_genomes | /analysis_virus.sh | UTF-8 | 3,027 | 2.828125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
VIRUSES=(
"Pseudomonas_phage_phi-6_segment_L"
"Enterobacteria_phage_phiX174_sensu_lato"
"Enterobacteria_phage_T4"
"Bacillus_phage_phi29"
"Enterobacteria_phage_T5"
"Sulfolobus_spindle-shaped_virus_4"
"Enterobacteria_phage_M13"
"Sulfolobus_islandicus_rod-shaped_virus_1"
"Enterobacteria_ph... | true |
3251291672c0e26426189d612dcdffa28cf6a30f | Shell | SURAJTHEGREAT/dockerpymongowebframework | /bin/write-env.sh | UTF-8 | 1,541 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Create env files in the specified directory
CONF_DIR=${1:-conf}
mkdir -p ${CONF_DIR}
if [ ! -f ${CONF_DIR}/mongo.env ]; then
echo "MONGO_HOST=${MONGO_HOST:-mongo_db}" > ${CONF_DIR}/mongo.env
echo "MONGO_PORT=${MONGO_PORT:-27017}" >> ${CONF_DIR}/mongo.env
if [ -z ${MONGO_DB} ]; then
echo "#MO... | true |
d0f284928e69d23158e5641f266e793a5aa7e91a | Shell | elon-avisror/weather-api | /server/weather_api.sh | UTF-8 | 562 | 2.546875 | 3 | [] | no_license | #!/bin/bash
# TODO: check json structure before executing the api call
# run the call_cds_api.py file with the parameters request.json file
python call_cds_api.py < request.json
# get the database (grib) result from the call_cds_api.py file and convert it to json file with the name: result.json (using grib_cli)
grib... | true |
98180a1aa1dd30eda0e62cb2dbcd7d00b98f6e9f | Shell | Fei-Guo/multi-tenancy | /incubator/virtualcluster/hack/lib/docker-image.sh | UTF-8 | 3,540 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | true |
f0174f9eac4b10406e8017c94cbd31727feca65a | Shell | binarin/rabbit_destructive_tests | /apps/sut/priv/git_checkout_cluster.sh | UTF-8 | 2,901 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
set -eu
set -o pipefail
export LANG=C
if ${trace:-false}; then
set -x
fi
ROOT=$(dirname $(readlink -f $0))
RABBIT_DIR=${1:?}
NUM_NODES=${2:-3}
: ${NUM_USERS:=10}
node-numbers() {
seq 1 ${1:?}
}
purge-node() {
local node_number="${1:?}"
local node_name
node_name="$(node-name ... | true |
59a6a5c3148cf345b02bada906896720497a48bc | Shell | kaltsi/Mass-and-Balance | /parse_template.sh | ISO-8859-15 | 6,692 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#
# template-file aircraft.specs [output_dir]
#
set -euo pipefail
debug=${debug:-0}
export LC_CTYPE=C
fail() {
echo "FAIL: $*"
exit 1
}
if [ $# -lt 2 ] ; then
echo "Usage $0 template aircraft.specs [output_dir]"
exit 1
fi
[ ! -f "$1" ] && fail "template file: $1 - not found."
[ ! -f "$2... | true |
04642bac781d9239f2b63ac4eab2972e913c25db | Shell | ilventu/aur-mirror | /guile-ncurses/PKGBUILD | UTF-8 | 678 | 2.828125 | 3 | [] | no_license | # Contributor: tantalum <tantalum at online dot de>
pkgname=guile-ncurses
pkgver=1.3
pkgrel=1
pkgdesc='Guile bindings for the GNU NCurses library'
arch=(any)
license=(GLPL3)
depends=(guile ncurses libunistring)
url=http://www.gnu.org/software/guile-ncurses/
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz... | true |
cb2cb9886c2739e450ff5b2ac8114b9cd17f4443 | Shell | luotao1/benchmark | /api/run_op_benchmark.sh | UTF-8 | 940 | 3.40625 | 3 | [] | no_license | #!/bin/bash
OP_BENCHMARK_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )"
test_module_name=${1:-"tests"}
gpu_ids=${2:-"0"}
timestamp=`date '+%Y%m%d-%H%M%S'`
if [ ${test_module_name} = "tests" ]; then
log_dir_name="logs"
elif [ ${test_module_name} = "tests_v2" ]; then
log_dir_name="logs_v2"
else
ec... | true |
cd1b5b7a8351a33e600ed7444ee7db478eb3e596 | Shell | xuxiandi/libssdb | /build.sh | UTF-8 | 1,771 | 3.34375 | 3 | [] | no_license | #!/bin/sh
BASE_DIR=`pwd`
TARGET_OS=`uname -s`
LEVELDB_PATH="$BASE_DIR/deps/leveldb-1.14.0"
SNAPPY_PATH="$BASE_DIR/deps/snappy-1.1.0"
MAKE=make
case "$TARGET_OS" in
Darwin)
#PLATFORM_CLIBS="-pthread"
#PLATFORM_CFLAGS=""
;;
Linux)
PLATFORM_CLIBS="-pthread"
;;
CYGWIN_*)
... | true |
9b76f364b86114454c9c372e3db7fdbfd54214c8 | Shell | BharathR-Git/ec2-user | /scripts/createsoft.sh | UTF-8 | 490 | 3.125 | 3 | [] | no_license | #!/bin/bash
echo "Create a softlink"
read file
echo "Enter a file name"
if [ ! -f $file ];then
echo "$file doesn't exist"
exit 1
fi
echo "Enter softlink name of a file $file"
... | true |
3b29adc441579212b08d57efc8f2ca91eaf3485a | Shell | jk983294/CommonScript | /linux/ShellScript/for/create_user.sh | UTF-8 | 118 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# use arguments
# ./create_user.sh a b c d
for u in $*; do
echo "add user $u"
done
echo "finished"
| true |
cc910f1402bfa1ae09e6ad1c25937c2e8b4a8a72 | Shell | artpol84/jobstart | /slurm_deploy/files/slurm_kill.sh | UTF-8 | 599 | 3.375 | 3 | [
"BSD-3-Clause-Open-MPI"
] | permissive | #
# Copyright (C) 2016-2017 Mellanox Technologies, Inc.
# All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
#!/bin/bash -x
SLURM_INST=$1
function kill_binary()
{
name=$1
if [ ! -f "$SLURM_INST/var/$name.pid" ]; then
return 0
fi
pid=... | true |
47b1b53124461b0d729ac2fc536d0f1d78eb0e2a | Shell | porcupine18/rwloadsim | /src/rwlpatch.sh | UTF-8 | 714 | 3 | 3 | [
"UPL-1.0"
] | permissive | #!/bin/bash
#
# Copyright (c) 2021 Oracle Corporation
# Licensed under the Universal Permissive License v 1.0
# as shown at https://oss.oracle.com/licenses/upl/
#
# Create a new rwlpatch.c file
#
# History
#
# bengsig 10-feb-2021 Only patch, rest in rwlwatermark
# bengsig 16-dec-2020 Make first patch zero
# bengsi... | true |
9086392f931a67c921788186a52a2f284241ab90 | Shell | anutter4/dotfiles | /bash/available-scripts.d/screen.sh | UTF-8 | 335 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#
# Helps screen share ssh-agents
#
# Must have the following in .screenrc:
#
# unsetenv SSH_AUTH_SOCK
# setenv SSH_AUTH_SOCK $HOME/.screen/ssh-auth-sock.$HOSTNAME
_ssh_auth_save() {
ln -sf "$SSH_AUTH_SOCK" "$HOME/.screen/ssh-auth-sock.$HOSTNAME"
}
alias screen='_ssh_auth_save ; export HOSTNAME=$(hostn... | true |
f8bf6dc2e1a63eda92ad69177e907eef8750f5ba | Shell | jlefrique/dotfiles | /bin/markup.sh | UTF-8 | 191 | 2.734375 | 3 | [] | no_license | #!/system/bin/sh
# Add markups in Android logcat
COUNTER=1
while read line; do
LINE="Markup #${COUNTER} -- ${line}"
echo ${LINE}
log -t ${LINE}
let COUNTER=COUNTER+1
done
| true |
c51e81dca8b23ec3c691edf0d595ad0cbf739cef | Shell | mrosata/kleos | /setup-sudo.sh | UTF-8 | 1,766 | 4.5 | 4 | [] | no_license | #!/bin/bash
echo "This script must be ran as root. The reason for this is that"
echo "installing sudo isn't a decision that you can make unless you"
echo "are the root user of a system. This script installs sudo, but"
echo "most systems include sudo already. This is a hack really, I am"
echo "comfortable running this ... | true |
e3bdfdbc9125732a582203793c59763309e4e6f1 | Shell | shrekee/code | /shell/homework/auto_mysqldump.sh | UTF-8 | 2,653 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# File Name: auto_mysqldump.sh
# Author: Liwqiang
# mail: shrekee@qq.com
# Created Time: Sat 04 Aug 2018 09:54:47 PM CST
#在每天凌晨4点(在服务器最冷清时热备份,crontab 来执行),通过mysqldump自动热备份数据库(全备)
#
#热备份的要求:
# 1、因为可能同时有myisam和innodb两种引擎,所以要backup前要锁表;--lock-tables
# 2、全备 所以加参数 --all-databases
# 3、为了将来好还原,可以截断二进制日志,... | true |
d55ccba144e0dd455d2dd34996f3b17f23043cac | Shell | hadasz/web3studio-bootleg | /packages/bootleg-common/bin/bootleg-setup-ganache | UTF-8 | 775 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
cleanup_ganache() {
# Kill the ganache instance that we started (if we started one and if it's still running).
if [ -n "$ganache_pid" ] && ps -p $ganache_pid > /dev/null; then
echo "Stopping Ganache"
kill $ganache_pid
fi
}
ganache_port=8545
ganache_mnemonic="candy maple cake sugar pu... | true |
b0f5a0637d469c310a6b07aa94a46b7cc7ed04ad | Shell | 2019surbhi/mudcookies | /src/train-celltype-with-scpred.sh | UTF-8 | 1,240 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
usage="
$BASH_SOURCE <seurat.obj> <scpred.obj> [nproc]
<seurat.obj> : cell_type annotation must be in meta.data
<scpred.obj> : scpred object
[nproc] : multi-cores (default 2)
"; if [ $# -lt 1 ];then echo "$usage";exit; fi
ip=$1
op=${2:-"out_scpred.rds"}
nproc=${3:-2}
cat << 'EOF' | sed "s#INPUT#$ip#" | s... | true |
96c7f9057b763dc6710022d45ad58333abab0025 | Shell | amila-ku/ansible-aws-autoscaling | /roles/create_asg/files/user_data_ubuntu.sh | UTF-8 | 736 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
... | true |
ca249934a57102f9e0a59564bbe9b20d5ec95266 | Shell | kingsleychow/CardioDBSg | /bin/update_V2ENS.sh | UTF-8 | 1,715 | 2.546875 | 3 | [] | no_license | #/bin/bash
##################################################################################################
# 9. V2Ensembls (incremental updates)
##################################################################################################
# called withn bin/update_tables_ater_run.sh
# global variables defined i... | true |
e0ec5fb123dce8b7f862ba6b7381902350016744 | Shell | pierrz/europeana_experiments | /statistics/APIstats_ThemColl_v1.1__mainLists.sh | UTF-8 | 2,288 | 3.40625 | 3 | [] | no_license | # ___________________________________________________________________________________
# This script is licensed under the MIT license. (http://opensource.org/licenses/MIT)
# Credits: Pierre-Edouard Barrault
# http://pierrz.com
# Script designed in order to pull statistics from the Europeana Search API and feed into s... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.