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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fb120e6ce7560dd2cf5f60fb8d772b8654aa81f6 | Shell | srikanthkris/lockdown-learning | /week3/test_loops.sh | UTF-8 | 112 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# This is an example loop
for i in a b c d
do
echo ${i}
done
echo 'hello world'
| true |
8bf780f3a943c0da2495f8950ed2159f4508ca87 | Shell | KerTakanov/ProjetInfo424 | /demos/demo_filtres_hsv.sh | ISO-8859-1 | 801 | 2.640625 | 3 | [] | no_license | function wait {
read -p "Appuyez sur n'importe quelle touche pour continuer... " -n1 -s
clear
}
echo "==================================================="
echo "============ Démonstration Filtres HSV ============"
echo "==================================================="
echo "Application du filtre Teinte... | true |
c112cdcfbddb29e09c2f28f93fc1d5a0d6d19a43 | Shell | JaredBoone/dotfiles.old | /macos/set-defaults.sh | UTF-8 | 4,735 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` timestamp until finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
# Save screenshot... | true |
03cbe91d367b6f71db2fd051ae63939bbaee9940 | Shell | martinboller/update-leap | /update-leap.sh | UTF-8 | 5,078 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#####################################################################
# #
# Author: Martin Boller #
# #
# Email: martin@boll... | true |
34d55cf21c38681abf687592536f1eb80dd8b9fb | Shell | akjadhav/susi_linux | /system-integration/scripts/susi-linux | UTF-8 | 1,019 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Start/Stop the SUSI.AI main program
# this wrapper is installed as follows:
# user mode
# .../SUSI.AI/bin/
# .../SUSI.AI/pythonmods/
# system mode
# prefix/bin/
# prefix/lib/SUSI.AI/pythonmods
do_start() {
DIR="$(dirname "$(readlink -f "$0")")"
PMA="$(readlink -m "$DIR/../pythonmods")"
... | true |
bb6d838530e878ccccfe2e5efbc98ac0ecf07097 | Shell | AbdelOuery/dotfiles | /install.sh | UTF-8 | 705 | 3.578125 | 4 | [] | no_license | #!/bin/bash
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
# Populating git user inside git_config
echo "Setting up git user file!"
read -p "Enter your username [ (b) bypass this step ]: " git_user
# Scripts and rcs
ln -s $SCRIPT_PATH/git_config /home/$USER/.gitconfig
ln -s $SCRIPT_PATH/vim_conf... | true |
e059f5da22d24ce6bc46e19e1fe1bc87d2bc4474 | Shell | tbielawa/Class-Code | /CS450/tdf-os/tags/module-r4/utils/version | UTF-8 | 285 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# 6 modules = 1/6 minor numbers each release towards 1.0.0
# R1 = 0.16.66
# R2 = 0.33.33
# R3 = 0.50.00
# R4 = 0.66.66
# R5 = 0.83.33
# R6 = 1.00.00
NUM_VERSION="0.3.33"
VERSTR="tdf-os version: ${NUM_VERSION} $(date +%F) ($(svn info | grep 'Revision' -))"
echo $VERSTR
| true |
05e63f1a0bf707286276a6c6ac3b92f3e40b9a5a | Shell | ReanyAlex/unix_and_bash | /bash-scripting/iftest.sh | UTF-8 | 185 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
let "a=$1*$2"
if [ $a -gt 674 ]
then
echo "The numbers multiplied to $a and are larger than 674"
else
echo "The numbers multiplied to $a and are not larger than 674"
fi
| true |
117bedf30ee71a5eafd9db1953f6a9030fee2f47 | Shell | omskvelo/race-numbers | /#old/make-start-numbers-17/add_bg.sh | UTF-8 | 151 | 2.734375 | 3 | [] | no_license | #!/bin/bash -ex
cd "$(dirname "${BASH_SOURCE[0]}")"
mkdir -p out
cd out_num
for f in *.pdf; do
pdftk $f background ../bg.pdf output ../out/$f
done | true |
386761bd55d54830d07384f297947623c10c3a2c | Shell | TiloGit/Workflow_Chef | /multinodes/apply_ifix/baw_multinodes_apply_ifix.sh | UTF-8 | 7,543 | 3.25 | 3 | [] | no_license | #!/bin/bash
# set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
#
# Operating Systems Supported
# Ubuntu 16.04 LTS; Ubuntu 18.04 LTS
#
# IBM Business Automation Workflow Cookbook Project, https://github.com/IBM-CAMHub-Open/cookbook_ibm_workflow_multios
#
# This script work w... | true |
d7e20ce6cc4afa8933bc434e289561f8f714f64d | Shell | convirt/Ubuntu1204 | /install/cms/common/functions | UTF-8 | 7,504 | 3.125 | 3 | [] | no_license | #!/bin/bash
#
# ConVirt - Copyright (c) 2008 Convirture Corp.
# ======
#
# ConVirt is a Virtualization management tool with a graphical user
# interface that allows for performing the standard set of VM operations
# (start, stop, pause, kill, shutdown, reboot, snapshot, etc...). It
# also attempts to simplify va... | true |
044d7c3cb6b405bb7c1f2615827ac6abdd3fd268 | Shell | c2theg/srvBuilds | /docker/docker_volume.sh | UTF-8 | 435 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ ! -d "/media/data" ]; then
mkdir /media/data
fi
if [ ! -d "/media/data/containers" ]; then
mkdir /media/data/containers/
fi
#-----------------------------------------------------
echo "\r\n Create volume 'ContainerVolumes' \r\n "
docker volume create ContainerVolumes
echo "\r\n Inspect the ... | true |
1fa0007dde130a53117af3729c18ed934bb8a71b | Shell | mcvsubbu/incubator-pinot | /contrib/pinot-druid-benchmark/run_benchmark.sh | UTF-8 | 7,124 | 2.859375 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"NAIST-2003",
"bzip2-1.0.6",
"OpenSSL",
"CC-BY-2.5",
"CC-BY-SA-3.0",
"CDDL-1.0",
"MIT... | permissive | #!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License");... | true |
fb560df0b4daae8d425396b26dbd9ac7f61be807 | Shell | denisidoro/dotfiles | /scripts/script/yaml | UTF-8 | 828 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
##? YAML parser
##?
##? Usage:
##? yaml
##?
##? Examples:
##? eval "$(yaml my.yaml yaml_)"
source "${DOTFILES}/scripts/core/main.sh"
doc::maybe_help "$@"
main() {
# echoerr "reading yaml!"
local -r prefix=$2
local -r s='[[:space:]]*'
local -r w='[a-zA-Z0-9_]*'
local -r fs=$(ec... | true |
2910e492b61464900066c5c42197f85950b8d871 | Shell | urmi-21/RNAseq | /map_fastq2.sh | UTF-8 | 716 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#this file starts from fastq-file and finally maps reads to transcriptome
#[1] file_directory_with_SRA
#[2] outdir
#UrMi 17/11/2017
#load all required modules
#module load salmon
#required for bridges
#module load sra-toolkit
file_dir=$1
thisnode=$(/bin/hostname)
thisdir=$(pwd)
#copy index to local
#echo "... | true |
b574f115acfffe5a558e772993297e7763af3cf6 | Shell | JoelQFernandez/ultimate-squid-privoxy-tor | /ultimate-squid-privoxy-tor | UTF-8 | 21,904 | 3.375 | 3 | [] | no_license | #! /bin/bash
main()
{
ifs;
counter;
paths;
csv;
countryCode;
nodes
}
## Function: ifs()
## Internal Field Separator Command For Heping With Creating Arrays
##
ifs()
{
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
}
paths()
{
torConfigurationDirectory="/usr/local/etc/tor"
torDataDirectory="/var/lib"
torProgramDirectory... | true |
fb038ef68b2046602824cd973cd6d378be9fc345 | Shell | FPlatz95/master_thesis | /WWTP_sequences/TaxonomicClassification/graftM/graftM_SILVA.sh | UTF-8 | 871 | 2.515625 | 3 | [] | no_license | #!/bin/bash
module purge
module load parallel
module load GraftM/0.13.1-foss-2018a-Python-3.6.4
samples_path=/srv/MA/Projects/microflora_danica/analysis/projects/MFD_seges/results/WWTP_sequences/graftM
data_path=/srv/MA/Projects/microflora_danica/analysis/projects/MFD_seges/data/WWTP_sequences
graftm_package=/shared-... | true |
9ec019990c1ad3c11039926f341173ed7f6e61f5 | Shell | foomango/GeckoHA | /src/ha/bin/hustha | UTF-8 | 1,647 | 3.671875 | 4 | [] | no_license | #!/bin/bash
HAPATH="/root/src/ha"
HA863CFG="/root/domu/ha863/remus/ha863.conf"
PROG="hustha"
DOMAIN="ha863"
DEST="hp2"
function state {
state=$(xm list $DOMAIN 2>/dev/null | awk 'NR==2{print $5}')
case $state in
"r-----" | "-b----")
echo "run"
;;
"--p---")
... | true |
6ecb74ab786467750eb155887dd3f3bcc7040fe4 | Shell | johnae/dotfiles | /home/.profile.d/008_utils.sh | UTF-8 | 1,009 | 3.203125 | 3 | [] | no_license | ## lwp
for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
alias "$method"="lwp-request -m '$method'"
done
#### Some aliases
alias latest="ls -tr | tail -1"
## size of current folder and contents
alias fsize="du -h -c ./ | tail -1"
alias cd..="cd .."
alias ..="cd .."
alias brewup='for od in `brew outdated`; ... | true |
5f5a8bd0c5c308ea3e676427fb63d8cb3bc10e60 | Shell | heryssantos/ezops-test-hery | /devops/build.sh | UTF-8 | 927 | 3.234375 | 3 | [] | no_license | #!/bin/sh
echo "Stoping container"
docker container stop node-container
docker container stop nginx-container
echo "Removing container"
docker container rm node-container
docker container rm nginx-container
echo "Removing images"
docker image rm ezops-test-hery_node
docker image rm ezops-test-hery_nginx
echo "Check ... | true |
43f59fa25251cd4629a4721ece49f346af7a41c2 | Shell | M1ckmason/teth | /examples/bin/private_blockchain.sh | UTF-8 | 256 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
geth=${GETH:-geth}
echo "***** Using geth at: $geth"
echo "Start geth server..."
$geth --datadir data --networkid 31415926 --rpc --rpccorsdomain "*" --nodiscover --unlock 3ae88fe370c39384fc16da2c9e768cf5d2495b48 --password <(echo -n 123456)
| true |
18d6a2762c019482bc58483a45cbe1c7707af887 | Shell | 0x4A6F/travis-debug | /test/run_vagrant_kitchen.sh | UTF-8 | 330 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
echo "**** Box setup ***"
echo "* mkdir /kitchen"
mkdir -p /kitchen
#echo "* cp -ar /mnt/shared /kitchen"
#cp -r /mnt/shared/. /kitchen
echo "* ln -sf /mnt/shared /kitchen"
ln -sf /mnt/shared/* /kitchen/
echo "* cd /kitchen"
cd /kitchen/*
echo "* python test/travis_run.py"
python test/tra... | true |
eb7f9bfdf027f1155948fb3366a14d76813675d4 | Shell | WeiyiGeek/Study-Promgram | /Linux运维进阶/Linux/shell/Shell-syntax/IF.sh | UTF-8 | 573 | 3.671875 | 4 | [] | no_license | #!/bin/bash
#if分支语句
read -p "Please INput A:" a
read -p "Please INput B:" b
read -p "Please INput C:" c
#单分支语句(1)
if [ $a == $b ];then
echo "a is equal to b!!"
fi
if [ $a != $b ];then
echo "a is not equal to b!!"
fi
#单分支语句(2)
if [ $c == $b ];then
echo "c is equal to b!!"
else
echo -e "c is not equal to b!!\n"
fi... | true |
3517556b6b92fe6589357324f13395aec09d0ace | Shell | Ykisialiou/concourse-playground | /certtest/task.sh | UTF-8 | 87 | 2.578125 | 3 | [] | no_license | #!/bin/bash
if [[ $DEBUG == true ]]; then
set -ex
else
set -e
fi
echo $TEST_KEY
| true |
6d9712b748d5f5c939600043d07e6be163d8d1eb | Shell | pfista/neovim | /.ci/coverity.sh | UTF-8 | 520 | 2.828125 | 3 | [
"LicenseRef-scancode-generic-cla",
"Vim",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | . "$CI_SCRIPTS/common.sh"
# temporarily disable error checking, the coverity script exits with
# status code 1 whenever it (1) fails OR (2) is not on the correct
# branch.
set +e
curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh |
COVERITY_SCAN_PROJECT_NAME="neovim/neovim" \
COVERITY_SCAN_NOTI... | true |
870a5fa63e34610bd8304493eef68463fd109088 | Shell | step66/opencvonx64 | /opencv-on-x64.sh | UTF-8 | 1,702 | 2.96875 | 3 | [
"MIT"
] | permissive | # This script installs opencv 3.1.0 onto an x64 device
# Taken from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/
# Change permissions first with: chmod 0755 opencv-on-x64.sh
# Then run with: ./opencv-on-x64.sh
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential ... | true |
492008b10b89c6c9c7d2806975b0ed37e86ce920 | Shell | leotoneo/opa-fm | /Esm/rpm_runmake | UTF-8 | 6,277 | 3.375 | 3 | [] | no_license | #!/bin/bash
# BEGIN_ICS_COPYRIGHT8 ****************************************
#
# Copyright (c) 2015, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must reta... | true |
842759e329b4127dcf4151235d389a8fa5366661 | Shell | KellyLSB/mashbash | /source/text.bash | UTF-8 | 610 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
# Text Manipulation
function capitalize() { sed -e 's/^\(.\{1\}\)/\U\1/gi'; }
function upper() { awk '{print toupper($0)}'; }
function lower() { awk '{print tolower($0)}'; }
# Color Effects
function color() { IFS= read -r text <&0; echo -e $2 "\e[$1m$text\e[0m"; }
function black() { co... | true |
1f09badaf8aefef079c0f9fc0696f6dc1cb0566e | Shell | KijinKims/Novel-Virus-Discovery-Pipeline | /pipeline_v1.0.sh | UTF-8 | 12,041 | 3.390625 | 3 | [] | no_license | #!/bin/sh
###############################################################
# #
# Novel Virus Discovery Pipeline #
# #
# This pipeline is for identifying chanses of #
# existing viruses in biological sample using #
# NGS data. #
# #
# Any theoretical que... | true |
2d44c0cffadb1ee8030fd1caac62f18ea62a0952 | Shell | zarlo/gameservers | /scripts/old/build.sh.old | UTF-8 | 2,099 | 3.53125 | 4 | [
"GPL-3.0-only",
"MIT"
] | permissive | #!/bin/bash
shopt -s globstar
SPCOMP_PATH=$(realpath "tf/addons/sourcemod/scripting/spcomp64")
COMPILED_DIR=$(realpath 'tf/addons/sourcemod/plugins/')
SCRIPTS_DIR=$(realpath 'tf/addons/sourcemod/scripting/')
chmod 744 "$SPCOMP_PATH"
git diff --name-only HEAD "$1" | grep "\.sp$" > ./00
# ==========================
... | true |
b47c767945e54bd9385316129c3ad262634e07ef | Shell | ignatka89/ci-mvp | /add_job.sh | UTF-8 | 589 | 2.609375 | 3 | [] | no_license | #!/bin/bash
curl -s -XPOST 'http://localhost:8080/createItem?name=seed_jobs_test' -u admin:admin --data-binary @config.xml -H "Content-Type:text/xml" > /dev/null
if [ $? -eq 0 ] ;
then echo 'job add in jenkins and create pipeline. Please wait 60s when all enviroment start'
sleep 60 && curl -X POST http://admin:... | true |
e16b435a1f96c20ae609c152a986665a17511614 | Shell | PaulTrampert/ansible-docker-image | /entrypoint.sh | UTF-8 | 395 | 3.578125 | 4 | [] | no_license | #!/bin/sh
set -e
# Ensure user/group exist for ssh
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
envsubst < /passwd.template > /tmp/passwd
if [ "$1" = 'ansible-playbook' ]; then
if [ ! -z "$GIT_REPO" ]; then
rm -rf playbook
git clone $GIT_REPO playbook
fi
if [ -f playbook/requirements.yml ]; then
... | true |
c86f951b2661c1955aef4ba0b21dcab69b24aae4 | Shell | alpha-li/netplugin | /scripts/netContain/ReleaseContainer.sh | UTF-8 | 2,109 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | contiv_version=""
docker_user="contiv"
docker_password=""
image_name="contiv/netplugin"
image_tag=""
function usage {
echo "Usage:"
echo "./ReleaseContainer.sh -v <contiv version> -u <docker user> -p <docker password> -i <image name> -t <image tag>"
echo "Example: ./ReleaseContainer.sh -v v0.1-11-30-2016.20-08-2... | true |
e72ba8b1970d1167eb8bd6a285c84686f3d3488a | Shell | khobatha/bahmni-reports | /scripts/hostnameConfig.sh | UTF-8 | 226 | 2.875 | 3 | [] | no_license | #!/bin/bash
while read -r line
do
echo "$line" | grep 'uts' &> /dev/null
if [ $? == 0 ]; then
uts_id=`echo "$line" | awk -F" " '{print $4}'`
nsenter --target $uts_id --uts hostname $1
fi
done < <(lsns)
| true |
f9b613000882f1f8b0936d38707fb85c0405bfcd | Shell | Shourai/xidlehook | /publish.sh | UTF-8 | 997 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
git reset
do_package() {
echo "Running tests..."
cargo check --manifest-path "$1/Cargo.toml"
cargo test --manifest-path "$1/Cargo.toml"
cargo check --all-features --manifest-path "$1/Cargo.toml"
cargo test --all-features --manifest-path "$1/Cargo.toml"
# If the loc... | true |
c7d12d157e20bdc94e9e6f63c3312f472c8f0e45 | Shell | weejulius/.donotrepeatyourself | /install.sh | UTF-8 | 291 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# http://www.gnu.org/software/bash/manual/bash.html
# 1. ln all the commands to $home/bin
ln_commands(){
for f in $(find commands/ali-work -name "*.sh" -type f); do
chmod u+x $f
echo $f
source $f
done
source init.sh
}
#ln_commands
source init.sh
| true |
07c8cd6beb98e36a6db3b08e3a05bdc6d7b6cdc1 | Shell | chaitanyasrinivasan/motif_discovery | /scripts/find_motif.sh | UTF-8 | 8,640 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
##### Chaitanya Srinivasan #####
##### Parallel de novo regulatory motif discovery tool #####
helpFunction()
{
echo -e "Usage: $0 -i [/path/to/data] -w [motif size] -t [BED/FASTA/GENES]\n"
echo -e "Required arguments:"
echo -e "\t-i, --input\tFile path to the sequence, genomic coordinates, or genes lis... | true |
8ee14cc685180eca930e5f6c8fdfdc8c04d0bb4c | Shell | OEHU/data-marketplace | /scripts/install.sh | UTF-8 | 189 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #/usr/bin/env/sh
set -e
components="server client"
for component in $components
do
printf "\n\nInstalling dependencies: $component\n"
cd $component
npm install
cd ..
done
| true |
4e9a4a03bb062a4ad9975d3195e84d6510e878dd | Shell | joaofnds/dotfiles | /dot_scripts/executable_switch-theme | UTF-8 | 747 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
export PATH="/usr/local/bin:$PATH"
export PATH="$HOME/.bin:$PATH"
declare theme
declare other_theme
is_dark=$(osascript -l JavaScript -e "Application('System Events').appearancePreferences.darkMode.get()")
if [[ "$is_dark" == "true" ]]; then
theme="dark"
other_theme="lig... | true |
72c6094679c02aeafee3f81c7103703c720302cc | Shell | Shubham-Kadam-17/MyRepository | /EmpWage.sh | UTF-8 | 855 | 3.34375 | 3 | [] | no_license | #!/bin/bash -x
isFullTime=2
isPartTime=1
absent=0
empRatePerHr=20;
workingday=0
workinghr=0
max_working_day=20
max_working_hr=50
da_counter=1
function cal_work_hr () {
case $1 in
$isFullTime )
empHrs=8
;;
$isPartTime )
... | true |
03efade6f86158f6847e7065b2307091c1d190bb | Shell | delkyd/alfheim_linux-PKGBUILDS | /labjack-exodriver-git/labjack-exodriver.install | UTF-8 | 396 | 3.046875 | 3 | [
"MIT"
] | permissive | post_install() {
getent group labjack >/dev/null || usr/sbin/groupadd -g 237 labjack
udevadm control --reload-rules 2>/dev/null
cat << EOF
===> Add users that require access to labjack to the "labjack" group
EOF
}
post_upgrade() {
post_install $1
}
post_remove() {
groupdel labjack >/dev/null 2>&1 || true
... | true |
028f5335147ee816fab531e83626df104cd838f2 | Shell | gch1p/captive-netns-helper | /captive-portal.sh | UTF-8 | 755 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $EUID -eq 0 ]; then
echo "error: this script should not be launched as root"
exit 1
fi
if [ $# -eq 0 ]; then
echo "error: no command specified"
exit 1
fi
export $(dhcpcd -U $IFACE)
if [ -z "$domain_name_servers" ]; then
echo "error: \$domain_name_servers variable not found"
e... | true |
6ec8265ed6671792d59fa8e8e5fa0ba356df84a5 | Shell | fairwood136/traefik | /.semaphoreci/setup.sh | UTF-8 | 1,322 | 2.734375 | 3 | [
"CC-BY-3.0",
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
for s in apache2 cassandra elasticsearch memcached mysql mongod postgresql sphinxsearch rethinkdb rabbitmq-server redis-server; do sudo service $s stop; done
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=3072
sudo mkswap /swapfile
sudo swapon /swapfile
sudo rm -rf /home/runne... | true |
7345ac14b4506595fcdc28f341b20aaf38c76c01 | Shell | valentineus/auth-http | /build.sh | UTF-8 | 511 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Author: Valentin Popov
# Email: info@valentineus.link
# Date: 2017-08-14
# Usage: /bin/sh build.sh
# Description: Build the final package for installation in Moodle.
# Updating the Environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export PATH="$PAT... | true |
c0c227f06c30ff9bbb7aee02a6c5f12557d654a8 | Shell | yeoman-projects/generator-jhipster-liquibase | /test-integration/scripts/12.2-run-incremental.sh | UTF-8 | 948 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
source $(dirname $0)/00-init-env.sh
cd "$JHI_FOLDER_APP"
npm uninstall generator-jhipster generator-jhipster-liquibase
if [[ "$JHI_LIQUIBASE" == "jdl" ]]; then
#-------------------------------------------------------------------------------
# Generate with JDL
#------------------------... | true |
7c54bbb51186b00b663a40e01ff150c91a015676 | Shell | cha63506/dots | /dunwall/bin/bar.bak/status.sh | UTF-8 | 5,936 | 3.734375 | 4 | [] | no_license | #!/bin/sh
source $(dirname $0)/config.sh
OUT=$default_output
function fg() {
case $1 in
bar) echo "\f$2" ;;
tmux) echo "#[fg=${colors[$2]}]" ;;
none) echo "" ;;
?) echo "\f$2" ;;
esac
}
function bg() {
case $1 in
bar) echo "\b$2" ;;
tmux) ... | true |
2962879ed4364fd23a7459694f9e62aff0e1527a | Shell | sspross/postgres-hstore-postgis | /create_extensions.sh | UTF-8 | 473 | 2.890625 | 3 | [] | no_license | # Because both template1 and the user postgres database have already been created,
# we need to create the extensions in template1 and then recreate the postgres database.
#
# Running CREATE EXTENSION in both template1 and postgres can lead to
# the extensions having different eid's.
gosu postgres postgres --single tem... | true |
3eb7d947a893ff14c555f0b3e6e27de7e513db36 | Shell | SiChiTong/pose_tracker_stack | /pose_instance_builder/scripts/rosdep.sh | UTF-8 | 280 | 2.5625 | 3 | [] | no_license | #!/bin/sh
# External, ROS and system package dependencies
PACKAGES="python-pip
python-tables"
PIP_PACKAGES="numpy
pandas
more-itertools
toolz
mock"
sudo apt-get install $PACKAGES
sudo pip install $PIP_PACKAGES
rm -rf build
| true |
a05571567d22de1a33111aa6c276fc6be0d43c48 | Shell | petronny/aur3-mirror | /elmerpost/PKGBUILD | UTF-8 | 1,253 | 2.546875 | 3 | [] | no_license | # Contributor: Christoph Siegenthaler < csi@gmx.ch >
pkgname=elmerpost
pkgver=5.2.0
pkgrel=4
pkgdesc="Elmer is a simulation tool for CFD, FEM, electromagnetics, heat transfer and others featuring a PDE solver"
depends=('elmer_fem')
makedepends=('gcc-fortran')
url="http://www.csc.fi/elmer/"
source=(ftp://ftp.funet.fi/pu... | true |
ece1da58872dec331b5198c89b69dc1d2d8dfc2b | Shell | code4aichi/Bproposer | /docs/scripts/gendbsets.sh | UTF-8 | 733 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DBMAN_ID=kenken9
DBMAN_KEY=8b58S3jGp3Tp
DB_NAME=aichifoods
TAB_NAME=foods
echo MySQL initialization for any DBs...
mysqladm -u root password 'kenken3922' &&
echo done.
echo DB user initialization for db "$DB_NAME"...
mysql -u root -p "kenken3922" -e "CREATE USER ${DBMAN_ID}@localhost IDENTIFIED BY '${DBM... | true |
9e657eca723a534bbe73193ae4d8e362367a3072 | Shell | djmulcahy/docker_dss | /testall.sh | UTF-8 | 2,444 | 4.5 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This program builds and tests all of the variations of the
# beroset/opendss software container and then tests them all.
# The output should look something like this:
#
# Build time for alpine: 225.998
# Build time for arch: 174.521
# Build time for centos: 359.120
# Build time for debian: 12... | true |
6898b6daeed953089b5bfa82d5cac93c6bb4a44b | Shell | agileek/docker-tips | /cmd/docker-run-all.sh | UTF-8 | 588 | 2.71875 | 3 | [] | no_license | #!/bin/bash
sudo rm -rf $PWD/dataFolder-bad-cmd
sudo rm -rf $PWD/dataFolder-good-cmd
docker rm docker-stop-test-bad-container
docker rm docker-stop-test-good-container
docker run --name docker-stop-test-bad-container -v $PWD/dataFolder-bad-cmd:/dataFolder -d docker-stop-test-bad
docker run --name docker-stop-test-go... | true |
5b8717b9c6f7f96fa1214181e186b6f8d391377b | Shell | danielkza/zfs-scripts | /post_debootstrap_cleanup.sh | UTF-8 | 319 | 3.5 | 4 | [] | no_license | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 target_path"
exit 1
fi
target="$1"
if [ -z "$target" ] || ! [ -d "$target" ]; then
echo "Invalid target dir '$target'"
exit 1
fi
rm "${target}/usr/sbin/policy-rc.d"
for path in boot/efi boot sys proc dev/pts dev; do
umount "${target}/${path}"
done | true |
46e1d4b42f5c357f17519f6e2e8b41285d6a5443 | Shell | infowolfe/infowolfe.github.io | /arch_chroot.sh | UTF-8 | 1,487 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# setup automatic ssh auth for root
mkdir -p /root/.ssh
for i in $@ ; do
curl -s https://github.com/${i}.keys
done > /root/.ssh/authorized_keys
chmod 0700 /root/.ssh ; chmod 0600 /root/.ssh/authorized_keys
# setup networking and hostname
for i in $(ip link | grep ^[0-9] | awk -F: {'print $2'} | grep -v '... | true |
c64a6d64ebf22bd2d42192ae35e6a86d4e36128e | Shell | Ivan-zhang01/mysqldumper | /lib/func.sh | UTF-8 | 3,527 | 4.15625 | 4 | [] | no_license | # Pretty print to STDOUT
message(){
# Message
MESG=$1
case $2 in
'info')
COLOR="\e[0;33m";;
'alert')
COLOR="\e[0;31m";;
'mesg')
COLOR="\e[0;32m";;
*)
COLOR="\e[0;37m";;
esac
printf "$COLOR%b \e[0m\n" "$MESG"
}
# Log file
log() {
# Log Message
logMessage=$1
logdate=`date +%b\ %d\... | true |
d0f665a881134aff56b2dc669e87ee4c9066884d | Shell | GGCCoder/Linux | /Bash/test/ex1_5.sh | UTF-8 | 121 | 2.875 | 3 | [] | no_license | # test `and` `or` `not`
if test -e "./notFile" -o -d "/etc"
then
echo "At least exist one"
else
echo "Not exist!"
fi
| true |
b0de7f4b021aa91882b0dc037b97c2dbf47f6dd7 | Shell | crouchr/learnage | /environments/cicd/br2020/setup.sh | UTF-8 | 696 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
# This script is running on the VM itself
# Files on the Host can be accessed via the /vagrant share
# This script is only used if debugging i.e. want to bypass chef solo
# e.g. checking that shares are mounted OK etc
set -e # bomb out if any problem
echo
echo 'Started setup.sh for provisioning th... | true |
765cae8e5b8e747d527ebb976f08e68e0e1ae32c | Shell | neerfri/asdf-terraform | /bin/install | UTF-8 | 1,353 | 4.34375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
ASDF_INSTALL_TYPE=${ASDF_INSTALL_TYPE:-version }
TMPDIR=${TMPDIR:-/tmp}
[ -n "$ASDF_INSTALL_VERSION" ] || (>&2 echo 'Missing ASDF_INSTALL_VERSION' && exit 1)
[ -n "$ASDF_INSTALL_PATH" ] || (>&2 echo 'Missing ASDF_INSTALL_PATH' && exit 1)
install_terraform() {
local insta... | true |
7fc4a1647f78be3f5dc5328b1f6de5d00760af43 | Shell | alexey-larionov/wecare_ampliseq_nfe | /s01_hpc_scripts_and_logs/analysis4/s06_clean_bams/s02_check_bams_validation.sh | UTF-8 | 2,716 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# s02_check_bams_validation.sh
# Started: Alexey Larionov, 29Jun2018
# Last updated: Alexey Larionov, 14Feb2019
# Use:
# ./s02_check_bams_validation.sh &> s02_check_bams_validation.log
# or
# sbatch s03_check_bams_validation.sh
# ------------------------------------ #
# sbatch instructions ... | true |
2e4c12fdbf1299b8432f36265f55a311b9951301 | Shell | stimko68/settings | /bin/artifactory-upload | UTF-8 | 1,960 | 4.4375 | 4 | [] | no_license | #!/usr/bin/env bash
# Uploads a given package to Artifactory
set -euo pipefail
ART_URL=http://artifactory.int.datarobot.com/artifactory/
function usage() {
echo "Usage: artifactory-upload <filename> <repo_path>"
echo ""
echo "The first argument is the filename to upload, and it can be a relative path."
... | true |
4c83fb7e56b95b695f0d0ba217f59af5f943976e | Shell | BR-ERP/freedom | /freedom/lib/exec/lin/freedompcp.sh | UTF-8 | 174 | 2.609375 | 3 | [] | no_license | EXEDIR=${0%/*}
CMDENV="${EXEDIR}/freedomenv.sh"
FREEDOMMD="freedompcp"
FREEDOMCL="org.freedom.modulos.pcp.FreedomPCP"
CMDFREEDOM=`$CMDENV $FREEDOMMD $FREEDOMCL`
$CMDFREEDOM
| true |
249c2025daad3b1df22489a53190db979919f58a | Shell | bersling/divi | /missing-files/run.sh | UTF-8 | 115 | 2.796875 | 3 | [] | no_license | #!/bin/bash
while IFS= read -r ip
do
server=root@${ip}
ssh ${server} ip=${ip} 'bash -s' < $1
done < "servers.txt"
| true |
67674f808e8d24bf191fb42ad5624adffa7d64c0 | Shell | epj009/rc | /bin/cron.daily/andr-build | UTF-8 | 339 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
su -c '
build_path="/home/andrew/andr-build"
[ -d "$build_path" ] || exit 1
pushd "$build_path"
for i in 1/1/{7,9}/{1,3}; do
[ -d "$i" ] || continue
pushd "$i"
for j in *; do
[ -d "$j" ] || continue
pushd "$j"
p=(`echo "$i" | sed "s/\// /g"`)
andr-build "${p[@]}"
popd
done
popd
done... | true |
60c21282dd0ea8328bda5f4a986b6cc6372b7abb | Shell | ketankotian/UserRegistration | /userRegisteration.sh | UTF-8 | 1,466 | 3.421875 | 3 | [] | no_license | #!/bin/bash -x
echo " welcome "
#User Needs To Enter Valid First Name
read -p "Enter your first name - " firstName
pattern="^[A-Z]{1}[a-zA-Z]{2,}$";
if [[ $firstName =~ $pattern ]]
then
echo "valid"
else
echo "invalid"
fi
#User Needs To Enter Valid Last Name
read -p "Enter your last name - " lastNam... | true |
98c667e2cbb1e083ff3ea51f985c726f041cd3d3 | Shell | cbohara/99-Problems-But-A-Glitch-Aint-One | /shellScripts/send_job_hist_output_to_dd.sh | UTF-8 | 1,599 | 3.875 | 4 | [] | no_license | #!/bin/bash
# Downloads the json jobhist logs from S3_INPUT_DIR
# and sends all counters to datadog
### GLOBAL VARS HERE (To be parameterized)
S3_INPUT_DIR=s3://verve-home/leeblackwell/vervathon/jhistlogs
TMP_DIR=tmp_$(date +%s)
AWS_PROFILE=verve-ops-data
PYPATH=../python
mkdir ${TMP_DIR}
# Pull down the logs
aws s... | true |
c314478582af1a3e9b562f759968d031f617e440 | Shell | McUsr/Index-2.0 | /original/part1.sh | UTF-8 | 54,067 | 3.1875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | #! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see ... | true |
1495ddf60c2a6e5b84bb190a481ed942c1008d4e | Shell | yaotemp/linux-tutorial | /codes/linux/soft/tomcat8-install.sh | UTF-8 | 931 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cat << EOF
###################################################################################
# 安装 Tomcat 脚本
# @system: 适用于所有 linux 发行版本。
# @author: Zhang Peng
###################################################################################
EOF
if [[ $# -lt 1 ]] || [[ $# -lt 2 ]];then
ec... | true |
4c4c1af00a8114bfb2db6b803eaa6c7c3081bb15 | Shell | Elive/elive-tools | /usr/bin/e17-restart-and-remove-conf-file-WARNING-dont-complain | UTF-8 | 1,872 | 3.546875 | 4 | [] | no_license | #!/bin/bash
SOURCE="$0"
source /usr/lib/elive-tools/functions
EL_REPORTS="1"
el_make_environment
. gettext.sh
TEXTDOMAIN="elive-tools"
export TEXTDOMAIN
# Lock system (good one) {{{
lockfile="/tmp/.$(basename $0)-${USER}.lock"
exit_ok(){
rm -f "$lockfile"
}
exit_error(){
rm -f "$lockfile"
}
if [[ -r "$lockfi... | true |
40f777d09d16e6496a8cd525adf487935b9ac187 | Shell | sagarpalao/operating_system | /special_variables_usage.sh | UTF-8 | 172 | 3.296875 | 3 | [] | no_license | flag=1
if [ `expr $# % 2` = 0 ]
then
for i in $@
do
if [ $flag = 1 ]
then
s1=`cat $i`
flag=0
else
echo $s1 > $i
flag=1
fi
done
else
echo "no"
fi
| true |
df030f167cab30dbd79594665e77c77d2272b0ce | Shell | potatokuka/ft_services | /srcs/nginx/srcs/setup.sh | UTF-8 | 777 | 2.671875 | 3 | [] | no_license | #!/bin/sh
# adduser --disabled-password ${SSH_USERNAME}
# echo "${SSH_USERNAME}:${SSH_PASSWORD}" | chpasswd
# dynamic links to services, clean
. /tmp/get_external-ip-address.sh WORDPRESS_SVC wordpress-svc
. /tmp/get_external-ip-address.sh PHPMYADMIN_SVC phpmyadmin-svc
. /tmp/get_external-ip-address.sh GRAFANA_SVC grafa... | true |
f6ca0203f925adcd22d4f90b628f42050c9c6eac | Shell | hubertsgithub/block_annotation | /block_inpainting/research/deeplab/weight_transfer_cityscapes.sh | UTF-8 | 2,743 | 3 | 3 | [] | no_license | #!/bin/bash
# Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | true |
ed3f11567daf4ecc20782d564ee31287ddabc320 | Shell | xmzhuo/gvcf_CNV | /build_pon_mlcnv.sh | UTF-8 | 1,591 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#use output info.vcf.gz from prepare_vcf_mlcnv.sh to build a pon
Inputfileloc="/gatk/data/in"
outfolder="/gatk/data/out"
echo $cmdstr
cd $Inputfileloc
pri_loc=$(dirname "$(readlink -f "$0")")
#gvcf_file=$(ls *.vcf.gz | grep -v ALL.wgs | grep -v dbsnp)
#sv_file=$(ls ALL.wgs.*.vcf.gz)
#dbsnp_file=$(ls dbsnp*... | true |
0cb00fab6bb35fd5d06602f268e3db9a34836801 | Shell | ra2003/bob-build | /bootstrap_soong.bash | UTF-8 | 3,384 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2019 Arm Limited.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | true |
8131e18beb3a942f377838f719b17f7381c7f039 | Shell | ParallelMeaningBank/easyccg | /training/train.sh | UTF-8 | 859 | 3.359375 | 3 | [
"MIT"
] | permissive | # embeddings hiddenLayerSize contextWindowBackward contextWindowForward trainingData devData name
FOLDER=$1/train.$7
TRAINING_DATA=$5
DEV_DATA=$6
mkdir $FOLDER
TRAINING_FILE=$TRAINING_DATA/gold.stagged
if [[ -f $TRAINING_DATA/categories ]]; then
# Use supplied list of categories
cp $TRAINING_DATA/categories $FOLDER... | true |
5dacc463021b52359bff25d73f2b33ab1c4c4ef4 | Shell | jpincas/dotfiles | /.zshrc | UTF-8 | 3,062 | 3.03125 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
export PATH=$PATH:$HOME/bin:/usr/local/bin:/home/jon/.local/bin
export PATH=$PATH:/usr/local/bin/dart-sass
export PATH=$PATH:/usr/local/nvim-macos/bin
export PATH=$PATH:/usr/local/nvim-linux64/bin
# Path to your oh-my-zsh installation.
ZSH_DISABLE_COMPFIX="t... | true |
013406895f4f431ae4f143cf791c1274296aba66 | Shell | hhvm/packaging | /aws/ondemand/main.sh | UTF-8 | 1,847 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
set -ex
DIR=/home/ubuntu/.ondemand
source $DIR/common.inc.sh
# do this first so even if everything else fails,... | true |
f3f72c353cc0574b2297fa721a56e65e08118d1c | Shell | stephencarr/.dotfiles | /ssh/install-ssh-config.sh | UTF-8 | 734 | 3.953125 | 4 | [] | no_license | #!/bin/bash
set -e
script_dir_path=$( cd $(dirname $0) ; pwd -P )
repo_path=$script_dir_path/../
config_path=$script_dir_path/config
backup_path=~/.ssh/config.`date +%Y-%m-%d`.bak
# Check if config is already installed
if [ -L ~/.ssh/config ]; then
echo "Config already setup."
else
# Backup existing config
if... | true |
9d872e02649620c2f398b4ac814b0e78e733ac1f | Shell | SUSE/scf | /container-host-files/etc/scf/config/scripts/configure-az.sh | UTF-8 | 1,143 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if test -z "${AZ_LABEL_NAME}"
then
echo "AZ: No label configured"
echo "AZ: Skipping"
else
# AZ override processing is in effect.
# Locate the kubectl binary.
kubectl="/var/vcap/packages/kubectl/bin/kubectl"
# Determine the name of the kube worker node this container is
# execut... | true |
b8d152c54e0d9388b64e5e7ea033277afc4697a2 | Shell | peppiii/apm-golang | /build.sh | UTF-8 | 398 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -o pipefail
if [ $# -eq 0 ]
then
echo "Usage: build.sh [version]"
exit 1
fi
## export go module
export GO111MODULE=on
## export gosumb
export GOSUMDB=off
go clean && CGO_ENABLED=0 go build
#docker build --no-cache -t asia.gcr.io/$NAMESPACE/$SERVICE:$1 .
#docker push asia.... | true |
d474eb223d825fcc0d0c55139c1272ab3bb0076d | Shell | wende/dotfiles | /.zshrc | UTF-8 | 5,636 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
#Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="wezm"
# Uncomment the following line to use case-sensitive... | true |
ce3a9339d1e29b7e55a9bc5c25bde791488ae2a8 | Shell | excelsior-oss/excelsior-jet-samples | /objects-avalanche/package.sh | UTF-8 | 372 | 2.90625 | 3 | [] | no_license | #!/bin/bash -e
source "$(dirname $0)/config.sh"
[ -f Main ] || "$(dirname $0)/build.sh"
rm -fr tmp
mkdir tmp
cp Main tmp
cp run-JET.sh tmp
mkdir tmp/hs
cp *.class tmp/hs
cp run-HS.sh tmp/hs
"${JET_HOME}/bin/xpack" -source tmp -target export \
-clean-target -profile auto -zip # || (echo xpack ... | true |
ac1caafb2fb3118b564cb42771bae0a8f1810973 | Shell | keaton-taylor/keaton-taylor.github.io | /.bashrc | UTF-8 | 335 | 2.953125 | 3 | [] | no_license | parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1="\u@\h \[\033[32m\]\w - \$(parse_git_branch)\[\033[00m\] $ "
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM$
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
eval "$... | true |
85d1059e96aa94e53bc7198474d76554274fb338 | Shell | moon4311/memo | /linux/bin2Hex.sh | UTF-8 | 925 | 3.125 | 3 | [] | no_license | #!/bin/bash
FILE_PATH='/home/timopass/middleWare/firmware/'
FILE_SIZE=$(ls -al ${FILE_PATH} |grep .bin |awk '{print $5 }')
#FILE_SIZE=$(ls -al /home/timopass/middleWare/firmware/ |grep .bin |awk '{print $5 }')
# if $8 isn't fileName , choice A or B
# A. add .bash_profile -> alias ls='ls --color=auto --time-style=l... | true |
4330ddf0ea13a78a6b0f53a43758e6a5e9663ba6 | Shell | MLChen/analytics-service-ecs | /Grafana/entrypoint.sh | UTF-8 | 606 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
echo "$CREDENTIALS" | base64 --decode > /usr/share/grafana/.aws/credentials
chown grafana:grafana -R /usr/share/grafana/.aws/ && chmod 600 /usr/share/grafana/.aws/credentials
sed -i -e "s,{grafana_admin},$GRAFANA_ADMIN,g" /etc/grafana/grafana.ini
sed -i -e "s,{grafana_password},$GRAFANA_PAS... | true |
9f3c12c88085e90c480572288c242f3d0c1763a6 | Shell | openminted/omtd-component-executor | /galaxy/autoMonitoringTestScripts/testReload.sh | UTF-8 | 341 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# Get cmd parameter
NUMOFFILES=$1
echo $NUMOFFILES
POOL=omtdDKProAll
TRG=omtdDKPro
TMP=tmp
# Clear TMP
sudo rm -rf $TMP/*
# Select subset from a dir and copy to TMP
find $POOL -type f | shuf -n $NUMOFFILES | sort | sudo xargs cp -t $TMP
# reload TRG directory
./reload.sh $TMP $TRG
ls -l omtdDKPro
ls ... | true |
0ad699eb092473b73b339a97ae097ae0224bfdec | Shell | MiguelazoDS/pps | /pruebas/Sensores/merge/Procesos/merge_lineal/tiempos_procesos.sh | UTF-8 | 957 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
temp=0
procesos=15
muestras=5
elementos=1000
directorio="cargaCPUprocesos"
if [ -e $directorio ]
then
rm -rf $directorio
fi
mkdir $directorio
#Procesos
for i in $(eval echo {1..$procesos})
do
nombrearchivo=./$directorio/loadcpu$i
#Corremos el script en segundo plano
./loadcpu.sh $nombrear... | true |
f85f28eb6ecdf56c997fad3bb884e71d97f5a0a8 | Shell | prondzyn/vagrant-jbake | /init/bootstrap.sh | UTF-8 | 500 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
HOME="/home/vagrant"
# download newest package lists from the repositories
sudo apt-get update
# install JDK and unzip
sudo apt-get install -y openjdk-7-jre unzip
# download JBake 2.3.2
wget http://hash.to/HM -O jbake.zip -o jbake-download.log
# unzip downloaded JBake
unzip jbake.z... | true |
9bac7874094133b57ea06da2e467e6bea6556588 | Shell | vik-s/hfss | /runhfss.sh | UTF-8 | 430 | 2.859375 | 3 | [] | no_license | #!/bin/bash
# Clear the terminal window
clear
# Greeting
echo "Hi, $USER."
echo "Starting HFSS simulation ..."
echo " "
# Load EM module (update to latest version as needed)
module load ansysEM/17.2
# Run HFSS simulation
ansysedt -distributed -machinelist num=4 -monitor -waitforlicense -ng -batchextract ~/expsp_hfs... | true |
85e822252e4284ce01894d2d26e035c92a35a54b | Shell | drick0230/Chroot | /old/new.old/ChrootSetup_V2.bash | UTF-8 | 2,215 | 3.890625 | 4 | [] | no_license | #! /bin/bash
# Basic if statement
###########################################################################
# Script : ChrootSetup.ps1
#
# Description : Création d'un utilisateur avec son home en tant
# que Chroot et installation de Bash.
#
#
###################################################################... | true |
6bc516ebd2a04c483ee695e8e983bb62537cdf16 | Shell | wulechuan/wulechuan-bash-scripts-tools | /source/components/core/wlc-bash-tools/bash-auto-load-on-start/functions/ansi-colors.sh | UTF-8 | 9,347 | 4.375 | 4 | [] | no_license | clearColor='\e[0m'
function colorful {
# Usage:
# colorful [[[[{-n|--}] <raw string>] <colorA>] <colorB>]
# Examples:
# colorful -- wulechuan textBlack bgndCyan # ended without a new line
# colorful wulechuan textBlack bgndCyan # ended without a new line
# ... | true |
a8d859563af95e7e4731e391dea13db6b49d5044 | Shell | adamisntdead/QuEST | /examples/submissionScripts/mpiJob.sh | UTF-8 | 702 | 2.703125 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Multiple node job using - one process with 16 threads - per node
# ---------------- EDIT ----------------
# select one node
#SBATCH --nodes=4
#SBATCH --ntasks-per-node=1
# set max wallclock time
#SBATCH --time=01:00:00
# set name of job
#SBATCH --job-name QuEST_JOB
# set the program executable and... | true |
b34773a1236c9be792323c3b802d03b99d0ca1f1 | Shell | markadiazrocha/uci | /cs/146/hw/3/workspace/srm.sh | UTF-8 | 830 | 3.921875 | 4 | [] | no_license | #!/bin/sh
# will ONLY work if the last component of the path used to find the script is not a symlink
#mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# will work with symlink
mydir=$(dirname $(readlink -f $0))
# check trashcan_path and load trashcan_path var
#( ONLY WORKS IF srm.sh and _check_trash.sh ar... | true |
24f5fd07ad601849a134cf26b0c7a171653d2ac7 | Shell | tw7649116/csvlookup | /processcsv.sh | UTF-8 | 525 | 2.8125 | 3 | [] | no_license | < $1 tr -d -c "[:print:]^\n" > tempf.csv
awk -F '"' -v RS="^^^^^^^" -v OFS='"' '{for(i=2;i<=NF;i+=2){gsub("\n"," ",$i)}} 1' tempf.csv > tempf1.csv
awk -F '"' -v OFS='"' '{for(i=2;i<=NF;i+=2){gsub(",","@@@@@",$i)}} 1' tempf1.csv > tempf2.csv #TODO - Replace special char sequence with comma once processing is complete
aw... | true |
f50dcb67a2e660be4b9bf6ed90728e8313822592 | Shell | RishanJR/Program_constructs | /Loops/classwork/Powers_of_2.sh | UTF-8 | 188 | 3.4375 | 3 | [] | no_license | #!/bin/bash
factor=2;
power=1;
echo Enter how many terms you want
read n
printf '\n'
for (( i=1 ; i<=n ; i++ ))
do
power=$(( $power * $factor ))
echo 2^$i = $power
printf '\n'
done
| true |
d0aadcb49d50b0fdd57d04a9a322f603357f5085 | Shell | metajinomics/automation | /Assembly/split.sh | UTF-8 | 384 | 2.609375 | 3 | [] | no_license | gunzip *.fastq.gz
for file in *.fastq;do echo "paste - - - - < $file | tee >(awk 'BEGIN{FS=\"\t\";OFS=\"\n\"}{if (match(\$1,\" 1:N\"))print \$1,\$2,\$3,\$4}' > $file._R1_001.fastq) | awk 'BEGIN{FS=\"\t\"; OFS=\"\n\"}{if (match(\$1,\" 2:N\"))print \$1,\$2,\$3,\$4}' > $file._R2_001.fastq";done > split-command.sh
cat spli... | true |
471c5f52d4986e89e617428716968c36d4d034d8 | Shell | hirauchi0713/dotfiles | /zprofile | UTF-8 | 495 | 2.59375 | 3 | [] | no_license | #
# .zshrc
#
if [ -f ~/.zshrc ]; then
source ~/.zshrc
fi
#
# .zprofile_local
#
if [ -f ~/.zprofile_local ]; then
source ~/.zprofile_local
fi
#
# path
#
export PATH=$HOME/.local/bin:$PATH #for home local
#
# go
#
#export GOROOT=/usr/local/go
#export PATH=$PATH:$GOROOT/bin
#export GOPATH=$HOME/.go
#export PATH=$PAT... | true |
406820189bbe388768c9e13341f83a961783e4ae | Shell | a2o/puppet-modules-a2o-essential | /modules/a2o_essential_linux_shorewall/templates/install-shorewall-core.sh | UTF-8 | 1,622 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###########################################################################
# a2o Essential Puppet Modules #
#-------------------------------------------------------------------------#
# Copyright (c) 2012 Bostjan Skufca #
#---... | true |
1395ea454aa29464f93fdb16dc05cd9eb37581fa | Shell | anfrhana/SoalShiftSISOP20_modul1_D02 | /soal2/soal2_wadaw.sh | UTF-8 | 350 | 3.171875 | 3 | [] | no_license | #!/bin/bash
lower=abcdefghijklmnopqrstuvwxyz
lower=$lower$lower
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
upper=$upper$upper
name=$(echo "$1" | tr -d '.txt')
#jam=$(date +"%k")
time=$(stat -c %y $1 | grep -oP '(?<=[^ ] ).*(?=:.*:)')
echo "$time"
rename=$(echo $name | tr "${upper:$time:26}${lower:$time:26}" "${upper:0:26}${low... | true |
d3900636d8c7155d2aa8576eb2f08cd9267596b1 | Shell | m-lab/etl-gardener | /create-parser-pool.sh | UTF-8 | 823 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Configure cluster, network, firewall and node-pools for gardener and etl.
set -x
set -e
USAGE="$0 <project> <region>"
PROJECT=${1:?Please provide the GCP project id, e.g. mlab-sandbox: $USAGE}
REGION=${2:?Please provide the cluster region, e.g. us-central1: $USAGE}
gcloud config unset compute/zone
gc... | true |
84135df9e95d51b67b94995c9eb04a99aef745dd | Shell | fatyanosa/WMT21 | /prepare-flores101.sh | UTF-8 | 5,569 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
ROOT=$(dirname "$0")
SCRIPTS=$ROOT/fairseq/scripts
SPM_TRAIN=$SCRIPTS/spm_train.py
SPM_ENCODE=$SCRIPTS/spm_enco... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.