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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
79d643ee36db40d6a8e8a93a6942ae1e9162a182 | Shell | open-rmf/rmf_fullstack_installer | /setup/scripts/container/web_bootstrap.bash | UTF-8 | 305 | 2.578125 | 3 | [] | no_license | #!/bin/bash
SCRIPTPATH=$(dirname $(realpath "$0"))
source $SCRIPTPATH/utils.bash
export_config_vars $1
bash $SCRIPTPATH/web_setup.bash $RMF_FS_URL
sudo -u web bash -c "cd /home/web; bash /home/web/deploy_web_setup.bash $RMF_FS_URL $RMF_FS_ROS_DOMAIN_ID $RMF_FS_RMW_IMPLEMENTATION $RMF_FS_ROS_VERSION"
| true |
e7249fc2266a743f51912ace89282f157f165ea9 | Shell | librg/zpl-old | /misc/scripts/build.sh | UTF-8 | 187 | 2.765625 | 3 | [
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | if [ -z ${1+x} ]; then
echo "no test name provided, using 'main.c'";
set $1 'main.c';
fi
mkdir -p build;
gcc -std=c99 -g -I include -I vendor test/$1 -o build/test;
./build/test
| true |
775cd7e14ebfd3928fedf063ed023da710fad627 | Shell | pekepeke/dotfiles | /bin/install/source/packages/linux/linuxbrew.sh | UTF-8 | 456 | 3.015625 | 3 | [] | no_license | #!/bin/bash
caveats() {
cat <<EOM
## Debian or Ubuntu
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
## Fedora
sudo yum groupinstall 'Development Tools' && sudo yum install curl git m4 ruby texinfo bzip2-devel curl-devel expat-d... | true |
dcca9b0f46537546ce9b1d8827fc26bd2218401a | Shell | AAAAAEXQOSyIpN2JZ0ehUQ/ADM-ULTIMATE-NEW-FREE | /Install/Herramientas/insta_painel | UTF-8 | 3,526 | 3.078125 | 3 | [] | no_license | #!/bin/bash
ve="\033[1;32m";am="\033[1;33m";ver="\033[1;31m";az="\033[1;36m";f="\033[0m"
meu_ip () {
MEU_IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
MEU_IP2=$(wget -qO- ipv4.icanhazip.com)
[[ "$... | true |
14a5df398c1844a77e5a00c80a37bffd4818cdfc | Shell | lix90/bm_etl_admin | /bk/down_month.sh | UTF-8 | 436 | 2.9375 | 3 | [] | no_license | #!/bin/sh
echo "\nMONTH END DATADOWN TO BE START,PRESS ENTER KEY TO CONTINUE......\c"
read a
if [ "$a" = "" ]
then
./start_task.sh 0 js_4001.def+1 3
if [ $? -eq 0 ]; then
echo "\nTASK SUBMITTED,PRESS ENTER KEY TO CONTINUE......\c";read key_enter
else
echo "\nTASK FAIL,PRESS ENTER KEY TO CON... | true |
b20c7d33ecb6e8957245a6802ee49f77c718d2d9 | Shell | asottile/scratch | /.bashrc | UTF-8 | 1,406 | 3.109375 | 3 | [
"MIT"
] | permissive | # If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# it's unclear why this changed between 18.04 and 20.04
umask 0022
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=-1
HISTFILESIZE=-1
command_not_found_handle() {
if [ -x "venv/bin/$1" ]; then
echo 'you fo... | true |
7b05c2481ea5e22742a1b315af5d72dc07dc4f7f | Shell | bossjones/ultron8 | /.ci/dc-ci-tail-dev-null.sh | UTF-8 | 407 | 2.78125 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
trap "{ pkill -f tail }" EXIT SIGINT SIGTERM
_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export CONTAINER_UID=$(id -u)
export CONTAINER_GID=$(id -g)
PR_SHA=$(git rev-parse HEAD)
REPO_NAME=bossjones/ultron8-ci
IMAGE_TAG=${REPO_NAME}:${PR_SHA}
TAG="${IMAGE_TAG}"
exec docker-compose -... | true |
146232d5354f208ea35b54446cd1e42f38708fb4 | Shell | ardnaxelarak/bosh-softlayer-cpi-release | /ci/scripts/shipit | UTF-8 | 908 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
(
set -e
echo -e "\n Creating archive with bosh_cli..."
version=`cat version/number`
filename="bosh-softlayer-cpi-release"
extension=".tgz"
cp bosh-softlayer-private/private.yml bosh-softlayer-cpi-release/config/.
cd bosh-softlayer-cpi-release
yes | bosh create release --final --with-tarba... | true |
0e17a545fdd1536ecc30aedf8cf2791086806b75 | Shell | mixxxdj/buildserver | /scripts/macosx/build_protobuf.sh | UTF-8 | 3,525 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# Echo commands
set -x
# Quit on errors
set -e
# Get the path to our scripts folder.
pushd `dirname $0` > /dev/null
PROGDIR=`pwd -P`
popd > /dev/null
export VERSION_NUMBER=2.6.1
export VERSION=protobuf-${VERSION_NUMBER}
export ARCHIVE=$VERSION.tar.gz
echo "Building $VERSION for $MIXXX_ENVIRONMENT_NAME ... | true |
6872aece6d195d150dc31bff1251ef240dc0aab7 | Shell | cmaoling/docker4heterogenous | /debian/samba/sambaConnect/sambaConnect | UTF-8 | 5,656 | 3.875 | 4 | [] | no_license | #!/bin/bash
echo "$0 <command=$1> <configuration=$2>"
modus=`echo "$1" | tr '[:lower:]' '[:upper:]'`
MODUS="NONE"
config="$2"
function installJQ {
foundJQ=`which jq | wc -l`
if [ $foundJQ -eq 0 ]; then
echo "jq is required. Attempting to install"
sudo apt-get -y install jq
foundJQ=`which jq | wc -l`
if [ $fou... | true |
adb4d08d82182707b2c98012063460e0b1c093cc | Shell | thydel/ar-my-bash-rc | /templates/default.j2 | UTF-8 | 4,009 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='history -a; echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
#screen)
# PROMPT_COMMAND='history -a; st'
# ;;
*)
PROMPT_COMMAND='history -a'
;;
esac
export TMPDIR=/var/tmp
... | true |
c10a76d046a180a978f9711899bb3e13b49f82fc | Shell | OpenConext/OpenConext-deploy | /roles/rsyslog/templates/cron_update_lastseen.j2 | UTF-8 | 546 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
LOG={{ rsyslog_dir }}/apps/{{ item.name }}/lastseen/lastseen.log
# all future STDOUT and STDERR to the log file
# but also show stderr in cron output
exec 1>> $LOG
exec 2> >(tee -a $LOG >&2)
echo '--------------------------------------------'
echo "-- Starting run (`date -R`)"
echo '--------------... | true |
e81197141e83a421ba5850a5855c2397785d9568 | Shell | cyrusbuilt/CyrusBuiltHTPC | /CyrusBuiltHTPC/remote_install.sh | UTF-8 | 1,795 | 4.09375 | 4 | [] | no_license | #!/bin/sh
# remote_install.sh
#
#
# Created by Cyrus on 3/28/13.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later versi... | true |
ed579009393e81c6debdd427d4075e984203aa85 | Shell | raulmercadox/linuxscripts | /filedescriptors.sh | UTF-8 | 467 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#Lectura y escritura de archivos
#usando file descriptors
#el numero de file descriptor debe
#ser mayor o igual a 3
# 0 => Standard input
# 1 => Standard output
# 2 => Standard error output
echo "***** Lectura y escritura de archivos mediante file descriptors ******"
read -p "Especifique su archivo de her... | true |
4b5622f717e2c15566428d7dddad38dcedeae9cc | Shell | INTER-Mediator/INTER-Mediator | /dist-docs/installfiles.sh | UTF-8 | 2,073 | 4.03125 | 4 | [
"MIT",
"MIT-Wu",
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
distDocDir=$(cd $(dirname "$0"); pwd)
originalPath=$(dirname "${distDocDir}")
cd "${originalPath}"
param=""
if [ $# -gt 1 ]; then
echo "*** No parameter of just 1 parameter is allowed. ***" 1>&2
exit 1
fi
for opt in "$@"
do
case "$opt" in
-[0-9])
param=${opt}
;;
* )
echo "i... | true |
fbc0257b73b4e8714d6d6dfad6d68cc6be29be20 | Shell | haowenj/goapp | /bin/validator-generate.sh | UTF-8 | 706 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
root_dir=$(cd "$(dirname "$0")"; cd ..; pwd)
# grep all request validator
sh $root_dir/bin/validator_grep.sh
validatorGenExec=$(which "validator_gen")
if [ -z $validatorGenExec ]; then
# request validator code
go build -o $root_dir/tools/validator_gen/validator_gen $root_dir/tools/validator_ge... | true |
66fc4c845613d4a9bf6c7e752fde151eee69754e | Shell | navya/mirror.cse.iitk.ac.in | /centos/sync/sync-packages.sh | UTF-8 | 844 | 3.484375 | 3 | [] | no_license | #!/bin/bash
source ${HOME}/sync/sync-packages.conf
DATE="date --rfc-3339=seconds"
[ -d ${LOGDIR} ] || mkdir -p ${LOGDIR}
LASTLOG="${LOGDIR}/sync-packages-last.log"
LOG="${LOGDIR}/sync-packages-`date +%F`.log"
LOCK="${HOME}/sync/sync-packages.lock"
if [ -f ${LOCK} ] ; then
echo "Skipped sync at `${DATE}`" > ${LA... | true |
8c79ab62e04cac87daa2f2b5379a26f1feedf1b5 | Shell | davidnite/awx-ansible-azure | /deploy.sh | UTF-8 | 840 | 3.078125 | 3 | [] | no_license | #!/bin/bash
ssh_key=$HOME/.ssh/id_rsa
if [ -e "$ssh_key" ]; then
echo "ssh key already exists"
else
echo "ssh key does not exist"
echo "creating ssh key"
ssh-keygen -t rsa -q -P "" -f $HOME/.ssh/id_rsa
fi
export ANSIBLE_HOST_KEY_CHECKING=False
# AWX Azure Infrastructure Playbook
ansible-playbook awx_... | true |
777eb12332fdb3ab0cb522955780c22401d3462c | Shell | psikek/.dotfiles | /bash/.bashrc | UTF-8 | 2,004 | 2.765625 | 3 | [] | no_license | #██████╗ █████╗ ███████╗██╗ ██╗██████╗ ██████╗
#██╔══██╗██╔══██╗██╔════╝██║ ██║██╔══██╗██╔════╝
#██████╔╝███████║███████╗███████║██████╔╝██║
#██╔══██╗██╔══██║╚════██║██╔══██║██╔══██╗██║
#██████╔╝██║ ██║███████║██║ ██║██║ ██║╚██████╗
#╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
stty -ixon
HISTSIZE... | true |
e7626174c43ec4ee57b32cacb7a7ca49ef061724 | Shell | terminalsin/auto-mods | /scripts/buildForDebugger.sh | UTF-8 | 376 | 2.75 | 3 | [
"MIT"
] | permissive | #! /bin/bash
# run this script script from the project root: ./scripts/buildForDebugger.sh
# It will build with g++ -g compiler flags, so
# gdb can be used to debug
# Note: This is only tested on Ubuntu 20
set -e
mkdir -p build
cmake -S . -B build -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:STRING=/u... | true |
48b1f845a42d71c0b86a421684cc082e875c357d | Shell | BuyerQuest/docker-solr3 | /artifacts/run-tomcat-and-create-cores.sh | UTF-8 | 1,955 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -umo pipefail
# On the very first container startup, we can run custom init scripts
container-init.sh
# Trap the SIGTERM so we can exit cleanly
trap 'echo Stopping SOLR; catalina.sh stop; exit $?' SIGTERM
# Start Tomcat
catalina.sh start
# Show catalina log output, but suppress output of healthcheck... | true |
8847dbc3f6a8d5b61f9f9f1b00ca9f83f8a9ba73 | Shell | luhanghang/Box | /B2/home/www/cgi-bin/saveencoder.cgi | UTF-8 | 916 | 3.140625 | 3 | [] | no_license | #!/bin/sh
read QUERY_STRING
eval $(echo "$QUERY_STRING"|awk -F'&' '{for(i=1;i<=NF;i++){print $i}}')
if [ "$encaddr" == "" ]; then
encaddr="192.168.1.12";
fi
encport=`cat /etc/mg.conf|grep encport=|cut -d= -f2`
if [ "$encport" == "" ]; then
encport="6180";
fi
case $index in
0)
if [ `grep -c encaddr /etc/mg.conf... | true |
2e24ee03922a97e5d935d2a9310081ef7f5ee5bd | Shell | epcim/wckanal.sk | /deploy.sh | UTF-8 | 485 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function deploy() {
echo -e "\033[0;32mDeploying updates to GitHub...\033[0mlding site `date`"
cd public
is_repo_clean || commit $@
git push origin master
cd ..
}
function commit() {
if [ $# -eq 1 ]
then msg="$@"
fi
git add .
git commit -m "$msg"
}
repo_is_clean() {
git diff-i... | true |
b337e627314e9eb335ecfa2ed2ef84598e5f11bd | Shell | davidjsanders/piUtilities | /spinup.sh | UTF-8 | 2,594 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Setup
#
script_name="spinup.sh"
logger -s "${script_name} : Initiated startup of Kubernetes cluster"
logfile="log-spinup-at-"$(date +"%m%d%Y-%H%M%S%Z")".log"
touch ${logfile}
chmod 0600 ${logfile}
#
# Get key credentials
#
echo "" | tee -a $logfile
echo "The private key ${HOME}/.ssh/id_rsa must ... | true |
b157e7f0a65e4fabaffb086990e409843e40a34d | Shell | bcozic/Boot_to_root | /squashfs-root/var/lib/dpkg/info/virtualbox-guest-utils.postinst | UTF-8 | 528 | 3.203125 | 3 | [] | no_license | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/virtualbox-guest-utils" ]; then
update-rc.d virtualbox-guest-utils defaults >/dev/null || exit $?
fi
# End automatically added section
if [ "$1" = configure ] && [ -n "$2" ] && \
[ -x /usr/share/update-notifier/notify-reboot-required ... | true |
4b6979ca02d24a7a253cd6202d50f0f681af8bae | Shell | zonomasa/spark_env | /env.sh | UTF-8 | 408 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
WORK=`readlink -f ${cur}`
# Spark binary
FTP=http://ftp.tsukuba.wide.ad.jp/software/apache/spark
#FTP=http://ftp.jaist.ac.jp/pub/apache/spark
SPARK_VER=1.5.2
HADOOP_VER=2.6
SPARK_BIN=spark-${SPARK_VER}-bin-hadoop${HADOOP_VER}
# Docker and Cluster
BASE=ubuntu
ID=spark_node
NUM_NODE=10
check_java... | true |
9c72e1c02a0ae969e7fe4b10aa876737497aa8c4 | Shell | lukas-hetzenecker/docker-dovecot | /assets/install.sh | UTF-8 | 2,989 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#judgement
if [[ -a /etc/supervisor/conf.d/supervisord.conf ]]; then
exit 0
fi
#supervisor
cat > /etc/supervisor/conf.d/supervisord.conf <<EOF
[supervisord]
nodaemon=true
[program:dovecot]
command=/opt/dovecot.sh
[program:postfix]
command=/opt/postfix.sh
[program:rsyslog]
command=/usr/sbin/rsyslogd -... | true |
ee0c00cde05c097ae8e3e4f4ffbfadddeaaf4c3c | Shell | backciro/bash-masterclass | /bash/linestring/scipt.sh | UTF-8 | 415 | 3.46875 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ] ; then
echo "error parameters ./sh [nomefile] [1/2 (rows/words)] "
exit 1
fi
if [ $2 -eq 1 ] ; then
cnt=1
while read row ; do
echo " $cnt $row"
let cnt=cnt+1
done < $1
elif [ $2 -eq 2 ] ; then
cnt=1
for word in `cat $1` ; do
echo " $cnt $word"
let cnt=cnt+1
don... | true |
fd0b19dd90209e676ff6c79a768ace5190e2a150 | Shell | AndrewSav/test-ifttt | /webhook/microbot.sh | UTF-8 | 162 | 3.046875 | 3 | [] | no_license | #!/bin/sh
case "$1" in
"start" ) touch /control/success;;
"stop" ) rm /control/success;;
*) echo "unknown parameter $1. expected either start or stop";;
esac
| true |
c5b3592d97aab4fe0fb8da7d5b350e97ece52b53 | Shell | totte/core | /sdparm/PKGBUILD | UTF-8 | 689 | 2.890625 | 3 | [] | no_license | #
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdparm
pkgver=1.06
pkgrel=2
pkgdesc="An utility similar to hdparm but for SCSI devices"
arch=('i686' 'x86_64')
url="http://sg.danny.cz/sg/sdparm.html"
license=('BSD')
depends... | true |
308be548bc059ccc2b09dfe0eb8769d4294b70eb | Shell | divyehbc/ios-library | /scripts/run_tests.sh | UTF-8 | 839 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o pipefail
set -e
set -x
ROOT_PATH=`dirname "${0}"`/..
echo -ne "\n\n *********** RUNNING TESTS *********** \n\n"
# Run AirshipCore Tests
xcrun xcodebuild \
-destination "${TEST_DESTINATION}" \
-workspace "${ROOT_PATH}/Airship.xcworkspace" \
-scheme AirshipCore \
test
# Run AirshipAccengage Tests
... | true |
77fd7e88c5951af88561bffc5de6b3f97d31e006 | Shell | GaikwadRavi03/ShellScript | /empcase.sh | UTF-8 | 249 | 3.125 | 3 | [] | no_license | #!/bin/bash -x
random=RANDOM
reminder=$(( $random % 3 ))
RatePerHour=10
fulltime=1
parttime=2
case $reminder in
$fulltime )
echo "employee fulltime found" ;;
$parttime )
echo "employee parttime found" ;;
* )
echo "employee Not found" ;;
esac
| true |
c426e513afab52da76614117dbc72ab3c60802ea | Shell | darylfung96/Self-supervision-for-segmenting-overhead-imagery | /prepare_deepglobe_lands.sh | UTF-8 | 2,298 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# set paths
deepglobe_lands_root=/tmp/suriya/datasets/deepglobe_lands/
deepglobe_lands_splits=/tmp/suriya/datasets/deepglobe_lands/splits/
deepglobe_lands_img_root=/tmp/suriya/datasets/deepglobe_lands/land-train/
deepglobe_lands_gt_root=/tmp/suriya/datasets/deepglobe_lands/land-train/
deepglobe_lands_strid... | true |
f48b68df962b4a7c975fdbfe2a8f48d5dd9284a7 | Shell | IoDLT/cat-install-scripts | /src/install_cat_deps.sh | UTF-8 | 6,972 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$#" < 2 ]; then
echo "dependencies directory and core count is required"
exit 1
fi
if [ ! -d "$1" ]; then
echo $1
echo "dependencies directory must exist"
exit 1
fi
if [[ $1 == .* ]]; then
echo "absolute path required"
exit 1
fi
compiler=
lib_suffix=
openssl_dir=
CATAPU... | true |
ff08f86f2e2a30fca4a7e3b5ea499fae1bcdf462 | Shell | k-kinzal/pr-action | /merge/entrypoint.sh | UTF-8 | 294 | 2.90625 | 3 | [] | no_license | #!/bin/sh
if [ "${PR_EXIT_CODE}" = "true" ]; then
args="${args} --exit-code"
fi
if [ "${PR_NO_EXIT_CODE}" = "true" ]; then
args="${args} --no-exit-code"
fi
if [ -n "${PR_RATE}" ]; then
args="${args} --rate $PR_RATE"
fi
exec /usr/local/bin/pr ${args} merge "${GITHUB_REPOSITORY}" "$@"
| true |
93fc52b7db0e32af54d055792a9fa54b36ddb443 | Shell | delkyd/alfheim_linux-PKGBUILDS | /lib32-faad2/PKGBUILD | UTF-8 | 809 | 2.59375 | 3 | [] | no_license | # Maintainer: GordonGR <ntheo1979@gmail.com>
# Contributor: josephgbr <rafael.f.f1 at gmail dot com>
# Contributor: escoand <passtschu at freenet.de>
_pkgname=faad2
pkgname=lib32-${_pkgname}
pkgver=2.8.3
pkgrel=1
pkgdesc="ISO AAC audio decoder (32 bit)"
arch=('x86_64')
url="http://faac.sourceforge.net/"
license=('GPL'... | true |
2996057ff784f58a2bd85847633596911ffbddd2 | Shell | Yang-33/competitive-programming | /template_and_command/codef | UTF-8 | 808 | 3.625 | 4 | [] | no_license | #!/bin/bash
# USAGE ! codeforves #450 div2.
# $codef 450 700 => 450_{a,b,c,d,e}_div2_codeforces.cpp(contest code is 700)
in_number=$1
contest_code=$2
for alpha in {a,b,c,d,e}
do
cp mytemplate/ContestTemplate.cpp ${in_number}_${alpha}_div2_codeforces.cpp
File=${in_number}_${alpha}_div2_codeforces.cpp
... | true |
a17f059a70645c33047cde63bf5c072250379c39 | Shell | TIGRLab/ASDD | /nback_task_fmri_analysis/Task_Localizer/loop.sh | UTF-8 | 195 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#Loops over subjects and runs Task_Localizer.sh for each subject.
export DATA_DIR=/projects/ttan/ASSD/Data/testing/
for i in $DATA_DIR/*; do
bash Task_Localizer.sh ${i##*/}
done
| true |
a517822e3a86c0f34b04d5b23cc101df3de27bcc | Shell | mlorenzo-stratio/scriptcellar | /monitoring/nagios-plugins/oracle/check_oracle_listener | UTF-8 | 409 | 3.453125 | 3 | [] | no_license | #!/bin/bash
HOST=$1
WARNING=$2
CRITICAL=$3
OUTPUT=$(/usr/local/nagios/libexec/check_tcp -H $HOST -p 1521 -w $WARNING -c $CRITICAL)
STATUS=$?
if [[ "$OUTPUT" =~ "No route to host" ]] || [[ "$OUTPUT" =~ "Connection refused" ]]; then
echo "Oracle Listener is DOWN!!"
exit $STATUS
else
echo $OUTPUT | sed -e "s/^\([^ ... | true |
e12d3bcfc8fccd133fd510bb4b7d89bcd8cf0106 | Shell | ClickHouse/ClickHouse | /tests/queries/0_stateless/02458_insert_select_progress_tcp.sh | UTF-8 | 507 | 2.53125 | 3 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | #!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT -nm -q "
drop table if exists insert_select_progress_tcp;
create table insert_select_progress_tcp(s UInt16) engine = MergeTree order by s;
"
# We s... | true |
acf32fb26f9446872c34e7356081b37bc8601425 | Shell | alberth7/Programacion-SHell | /13_expresionesCOndiconales.sh | UTF-8 | 924 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Programa para ejemplificar el uso de expresiones condicionales
# author: alberth
edad=0
pais=""
pathArchivo=""
read -p "Ingrese su edad:" edad
read -p "Ingrese su pais:" pais
read -p "Ingrese el pathg de su archivo:" pathArchivo
echo -e "\nExpresinoes Condicionales con numeros"
if [ $edad -lt 10 ]; ... | true |
96e498b1d8d37e3dbe51d03b73e4071385cc8298 | Shell | fedordikarev/misc | /backup_postgres.sh | UTF-8 | 1,421 | 3.78125 | 4 | [] | no_license | #!/bin/bash
set -e
bkp_dir=/local/backup
typedb='postgresql'
version='11'
port='5432'
date_str=$(date '+%Y%m%d%H%M')
dst_dir=${bkp_dir}/$(hostname -s).${typedb}_v${version}.${date_str}
lockfile=/var/run/lock/$(hostname -s).${typedb}_v${version}
parallel_dumps=${1:-4}
parallel_archs=$(( $(nproc --ignore=4) / parall... | true |
3f45d898b6d9b3197b2f0c8d4cf982108473264d | Shell | tudang/SIMPLE_DPDK_APP | /setup_dpdk.sh | UTF-8 | 453 | 2.71875 | 3 | [] | no_license | #!/bin/bash
if [ "$EUID" -ne 0 ] ; then
echo "Please run as root"
echo "sudo -E ./setup.sh"
exit -1
fi
modprobe uio_pci_generic
dpdk-devbind.py --status
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge/
echo 512 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 512 > /sys/device... | true |
ad0447b79f3867127300ddcd6b562afdd97b3b40 | Shell | SaschaSchuenemann/BashLog | /lib/lastCmd.sh | UTF-8 | 438 | 3.140625 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
asSingleFile=false
commandsDir="$DIR/../commands"
#commandFile="commandsFile"
commandFile=`date +%d-%m-%y-%H%M%S`
sndLastCmdFile=$DIR/secondLastCmd
lastCommand="`tail -n 1 ~/.bash_history`"
if [[ ! -d $lastCommand ]] && [[ ! $lastCommand == "`cat... | true |
bb847f08cf6b454f7fd70f525e76c60c331c49a5 | Shell | kyle95wm/scripts | /Wifi-Kicker.sh | UTF-8 | 1,145 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# This script will allow you to kick a device or an entire network from
# the BSSID of your choice
# This script was re-written from the ground up based on things I've learned
# in Bash from the past semester at college
# You must make sure your card is in monitor mode first by typing
# airmon-ng start wla... | true |
aadf85f1145116028c9eb1b4963fe9db338b783f | Shell | grzegorz-bielski/bash-practice | /flow/returns.sh | UTF-8 | 354 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
# holds last exit params executed in the function
echo $?
# name of this script
echo $0
# compare files byte by byte
cmp $1 $2 &> /dev/null
if [[ $? -eq 0 ]]
then
echo "last command executed without failure"
exit 0
(( 2 > 1 ))
# true -> 0
echo "Exit status is $?"
(( 2 < 1 ))
# false -> ... | true |
f3abef679fa0b22afe2fd94a102a5b9735c41428 | Shell | tknr/unar_centos8 | /unar | UTF-8 | 1,746 | 4 | 4 | [] | no_license | #!/bin/bash
export IFS=$'\n'
CMDNAME=`basename $0`
##
usage_exit(){
echo "Usage : ${CMDNAME} [-d:create directory] [directory | archive file]"
exit 1
}
if [ $# -eq 0 ] ; then
usage_exit
fi
CREATE_DIR=false
## http://takuya-1st.hatenablog.jp/entry/2015/12/24/234238
while getopts "dh" OPT ; do
... | true |
8e0795895589a47fee37c8a7c9f7f20fec5438ab | Shell | vg/jp | /tests/parse/string-unicode.bash | UTF-8 | 686 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source "test-bootstrap.bash"
function test_♥_token {
jp.trace "test_good_token"
JP_BUF=('"\u2665"')
jp.chomp
jp.string
if [[ "$JP_TOKENS" == '"\u2665"' ]];then
pass "parse unicode '♥' token"
else
fail "parse unicode '♥' token"
fi
}
function test_too_short {
jp.trace "test_bad_token... | true |
7a99860962b4d55cb28c11f62b698a6f3ca850ff | Shell | cityofaustin/coa-forms | /tools/scripts/start-es.sh | UTF-8 | 1,063 | 3.953125 | 4 | [] | no_license | #!/bin/bash
set -e
CURRENT_DIR=`dirname $BASH_SOURCE`
while getopts "f:l:" opt; do
case $opt in
f )
FORM=$OPTARG
;;
\? )
echo "Invalid option: -$OPTARG" >&2
exit;
;;
: )
echo "Invalid option: -$OPTARG requires an argument" 1>&2
exit;
;;
esac
done
FORM_PAT... | true |
17818042f5ce968822747a04249d2bc7db6b79b8 | Shell | OpenChirp/sysmonitor-device | /run | UTF-8 | 862 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
HOST=mqtt.openchirp.io
export LOG_LEVEL=5
export FRAMEWORK_SERVER=https://openchirp.io
export MQTT_SERVER=tls://$HOST:8883
# Set the following two lines to your OpenChirp device id and device token
export DEVICE_ID=ffffffffffffffffffffffff
export DEVICE_TOKEN=ffffffffffffffffffffffffffffff
#export INTER... | true |
e1d9ff411a16abce5662d22799b376adcf735cd5 | Shell | ben-everly/dotfiles | /bashrc | UTF-8 | 234 | 3.046875 | 3 | [] | no_license | #!/bin/bash
source ~/.shrc
shopt -s histappend
for file in ~/.bash/* ; do
if [ -f "$file" ]; then
source "$file"
fi
done
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
| true |
a46481598c0ad409cbc02a65418b5e36695b45fc | Shell | petrovlad/vagrant-httpd-lb-and-tomcats | /tomcat_provision.sh | UTF-8 | 844 | 3.1875 | 3 | [] | no_license | #!/bin/bash
echo "tomcat${1} provision start!1!11!!11!!"
# install java
echo "Updating yum..."
yum update > /dev/null > /dev/null
echo "Installing java..."
yum install -y java > /dev/null
# install wget
echo "Installing wget..."
yum install -y wget > /dev/null
TOMCAT_DIR="/usr/local/tomcat"
TOMCAT_NAME="apache-tomc... | true |
1468b09c4187dff8cee826adbe5df638670908db | Shell | RihardsT/cloud_project_kubernetes | /Old/backup.sh | UTF-8 | 3,229 | 2.65625 | 3 | [
"Unlicense"
] | permissive | SERVER_IP="95.216.206.226"; ssh ${SERVER_IP} -p 3013
sudo mkdir /backups
sudo chown rihards:rihards /backups
rm -f /backups/*
echo $(date +%Y-%m-%d_%H.%M.%S) > /backups/backup_timestamp
sudo tar -czf /backups/nextcloud_$(cat /backups/backup_timestamp).tar /data/nextcloud_data
sudo tar -czf /backups/nextcloud_postgres_... | true |
f2a23f40dc12c839266019e4ab0a70d8312a3774 | Shell | smelc/zzbot | /doc/build.sh | UTF-8 | 212 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function run() {
echo $@
$@
}
which pandoc &> /dev/null || { echo "pandoc must be installed. Exiting"; exit 1; }
[[ -d "build" ]] || run mkdir "build"
run pandoc src/index.md -o build/index.html | true |
1489a1eb4486d731ab21e8c337796ea8b4c3df80 | Shell | OnnoRuijsbroek/rpi-synth | /fluidsynth.sh | UTF-8 | 515 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if pgrep -x "fluidsynth" > /dev/null
then
echo fluidsynth already running
else
mpg321 startup.mp3
sleep 4
fluidsynth -si -p "fluid" -C0 -R0 -r48000 -d -f ./config.txt -a alsa -m alsa_seq &
sleep 8 # wait for fluidsynth to load e.g. config.txt
fi
lpk25=$(aconnect -o | grep "LPK25")
if [[ $lpk25 ]]
then
a... | true |
5792b9290b9c3c27710ec17b5ad157d218e19078 | Shell | miono/ansible-up | /bootstrap.sh | UTF-8 | 286 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -e
if [[ $SUDO_USER == "" ]]; then
echo "Must be run with sudo"
exit 1
fi
add-apt-repository -y ppa:ansible/ansible
apt-get update
apt install -y ansible
sudo -u $SUDO_USER ansible-playbook install-laptop.yml -kKb -e username=$SUDO_USER -e uid=$(id -u $SUDO_USER)
| true |
c2abe9ffc707477bbbdbb9e83ae61c866b89d49a | Shell | jayantpranjal0/ITW1-Lab | /linux-assignments/unix_help_menu/system.sh | UTF-8 | 522 | 3.5 | 4 | [] | no_license |
if test $# -eq 0
then
sh system_status_menu.sh
read cmd
else if test $1 -eq 1
then
sh status_expertmenu.sh
read cmd
fi
fi
case "$cmd" in
"1") #Display current date and time
date "+%D %R"
;;
"2") #Current Disk usage
df -h | less
;;
"3") #List current local and environment
printenv | less
;;
"4") #Dis... | true |
a16c84b523ddba943850b9d1e9411d419671a5c2 | Shell | isabella232/mesos-systemd | /v3/util/iam-proxy.sh | UTF-8 | 1,146 | 3.296875 | 3 | [] | no_license | #!/bin/bash -x
source /etc/environment
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "${NODE_ROLE}" != "worker" ]; then
exit 0
fi
docker pull "index.docker.io/behance/iam-docker:latest"
export NETWORK="bridge"
export GATEWAY="$(ifconfig docker0 | grep "inet " | awk -F: '{print $1}' | awk '... | true |
ee19da9adb2ab94aabaf05955ab025507d2cc46c | Shell | fujimisakari/dotfiles | /zsh/functions/wifi.zsh | UTF-8 | 438 | 3.328125 | 3 | [] | no_license |
function wifi-list() {
nmcli device wifi list
}
function wifi-status() {
nmcli device status
}
function wifi-connect() {
local ssid=${1}
local password=${2}
local interface=${3}
nmcli device wifi connect ${ssid} password ${password} ifname ${interface}
}
function wifi-disconnect() {
local interface=${... | true |
1dbbe797d353df2fe8b2a69df66fbfd3a3847d28 | Shell | minkj1992/winner-winter | /learning/minkj1992/push.sh | UTF-8 | 567 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
CURRENT_CATEGORY='[NestJs]'
# If a command fails then the deploy stops
set -e
printf "\033[0;32mPush to forked repo and origin repo to GitHub...\033[0m\n"
# go to repo dir
cd ../..
echo "Change dir to root-repo dir"
printf "\033[0;32mCurrent Dir: $(pwd) \033[0m\n"
# fetch Upstream
git pull upstream main... | true |
e4b3806395924968f0a8fff7f2b6d60bacfe3703 | Shell | clemgoub/rm2gff3 | /rm2gff3.sh | UTF-8 | 1,859 | 3.109375 | 3 | [] | no_license | #!/bin/sh
#################################
# RM.out to gff3 with Colors!!! #
#################################
#Author: Clément Goubert
#Date created: 08-18-2020
#
# ***Changelog***
#
# - v1. 08-18-2020
#
#################################
#
# arguments:
# $1 = RM.out
#SALMON
Low_complexitycol="#d1d1e0" #blue/gray
... | true |
c2fa238b66071ab6ad858890e276fcf3841c1ca4 | Shell | gasp/githook | /scripts/cache.sh | UTF-8 | 689 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
echo "---------------- new hook ----------------"
date
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
# Initialize our own variables:
verbose=0
path=''
while getopts "h?vf:" opt; do
case "$opt" in
h|\?)
echo vdk cache deploy script
... | true |
94e30349efb3d514822144df6af95b6d0bebe73a | Shell | marktonneson/demo-ansible | /ansible-advanced.sh | UTF-8 | 12,159 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# Demo Ansible Roles and Ansible Galaxy
# Colors
TextBold='\033[1m'
TextRed='\033[0;31m' # Commands to execute
TextGreen='\033[0;32m' # Command Syntax & other text
TextBlue='\033[0;34m' # Section header & dividers
TextLightGray='\033[0;37m' # Pause & continue
ResetText='\033[0m'
trap 'echo -e $ResetText;... | true |
4c087cf327563fb04b51dc0c390e133ae100d4e9 | Shell | co89757/dotfiles | /setup_ycm.sh | UTF-8 | 815 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Prerequisites for installing YCM"
hash clang 2>/dev/null || sudo apt-get install clang
sudo apt-get install build-essential cmake python-dev python3-dev
echo "cd to ~/.vim/bundle/YouCompleteMe"
cd ~/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --system-libclang
EXTRA_CONFIG_F... | true |
ce2ceaa77b10116408969765ff247c7c9b8c23cb | Shell | dbanshee/ficuscam | /scripts/FicusMAdmin.sh | UTF-8 | 2,404 | 3.640625 | 4 | [] | no_license | #! /bin/bash
SNAPS_INTERVAL_SECS=600
ficusAdminUrl="http://localhost:8080/0"
#ficusAdminUrl="http://ficusillo.mooo.com:9080/0"
ficusAdminUrlSetParam="${ficusAdminUrl}/config/set?"
motion_getUrl() {
url=$1
response=$(wget -qO- $url)
errorCode=$?
if [[ ( $errorCode != 0) ]] ; then
echo "Error in HTTP Reque... | true |
27c23e121a6087fb899b51a3450aa44ae34249a0 | Shell | howardhamilton/pocolm | /egs/swbd_fisher/local/srilm_baseline.sh | UTF-8 | 3,546 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# you'll have to edit the following to add SRILM to your path
# for your own setup. This is not a core part of pocolm, it's
# just for comparison, so we don't add scripts to install SRILM
# for you.
export PATH=$PATH:/home/dpovey/kaldi-trunk/tools/srilm/bin/i686-m64/
if ! command -v ngram-count >&/dev/... | true |
a096cf9b120eaac841be0d2b28a36abe00682b32 | Shell | JohnBerd/raspevil | /res/send_mail | UTF-8 | 370 | 2.90625 | 3 | [] | no_license | #!/bin/bash
sender=$(cat ~/.msmtprc | grep from | cut -d' ' -f2)
mail=$(cat ~/raspevil/mail_models/mail)
body=$(cat ~/raspevil/tmp/*)
while read p; do
mail_to_send=$(echo "$mail" | sed "s/To:.*/To\ :\ $p/g" | sed "s/From:.*/From\ :\ $sender/g")
printf "$mail_to_send\n\n$body\n" # | msmtp $p
done < ~/raspevil/... | true |
c3501f3c7b7a1ede2fbdf82cf7e12879c4433809 | Shell | xjyx/long_read_circRNA | /scripts/core_circ_grep_10reads.sh | UTF-8 | 1,625 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#SBATCH -c 1
#SBATCH -p normal
#SBATCH --mem=12g
#SBATCH --time=12:00:00
source /com/extra/ucsc/2015-04-21/load.sh
# bedtools v2.27.1 fails due to a bug in BEDtools merge (not reporting strand after merge)
source /com/extra/bedtools/2.25.0/load.sh
# change directory to the local scratch-directory, and ru... | true |
5f47e7f798ff730e0b045d1c04812e7e9d8b14fe | Shell | x0te/x0te.github.io | /.github/actions/common/githubApiCalls.sh | UTF-8 | 3,746 | 3.328125 | 3 | [
"MIT",
"OFL-1.1"
] | permissive | #!/usr/bin/env bash
# Mr. Green Jekyll Theme (https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme)
# Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com
# Licensed under MIT
# check the token
if [[ -z "${GITHUB_TOKEN}" ]]; then
echo "The GITHUB_TOKEN is not found. (environment variable)"
... | true |
00033d13afa84e2c9db5434848963bd668573af8 | Shell | garrettskj/dotfiles | /config.sh | UTF-8 | 2,351 | 3.640625 | 4 | [] | no_license |
# Add a list of all the standard dotfiles here
FILES=(
'.tmux.conf' \
'.Xdefaults' \
'.bash_aliases' \
'.bash_functions' \
'.bashrc' \
'.vimrc' \
'.alacritty.yml' \
)
## Where ever you made the git repo,
## let's symlink dotfiles to it.
ln -s $(pwd) ~/dotfiles
# go through the list, and check for symlinks, and if t... | true |
143166e811ca428d83d5623e5f6cbae9505c73ee | Shell | 66RING/scripts | /bspwm/scratchpad | UTF-8 | 445 | 3.203125 | 3 | [] | no_license | #!/usr/bin/bash
pids=$(xdotool search --classname scratchpad)
TERMINAL=${TERMINAL:-"st"}
if [ -z "$pids" ]; then
case "$TERMINAL" in
"st")
# eval "st -c scratchpad -t scratchpad -g 160x60" ;;
eval "tabbed -c -g 1800x1400 -n \"scratchpad\" -r 2 st -w '' " ;;
"alacritty")
eval "alacritty --class scratchpa... | true |
174fb9c3506e799e589ca6c8c17532f62461afd8 | Shell | ebarr006/CS100 | /Labs/Lab2/largest.sh | UTF-8 | 631 | 4.40625 | 4 | [] | no_license | #!/bin/sh
# Write a program called largest.sh that takes three numbers from the command line, and echoes the largest number.
# This program should guard against having too few or too many parameters passed in,
# and should echo an error message with proper usage if the number of parameters is incorrect
# echo "TESTB... | true |
96066b2ac32a6d862c17f3eb72dd56e0339d0795 | Shell | osism/testbed | /scripts/deploy.sh | UTF-8 | 376 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -x
set -e
echo
echo "# DEPLOY"
echo
# deploy manager
if [[ "$(/usr/bin/docker inspect -f '{{.State.Health.Status}}' osism-ansible 2>/dev/null)" != "healthy" ]]; then
sh -c '/opt/configuration/scripts/deploy-manager.sh'
fi
sh -c '/opt/configuration/scripts/disable-ara.sh'
# deploy service... | true |
4a691872515955dcbded1817d9efe7c7cfa0e946 | Shell | peterthorpe5/public_scripts | /Diamond_BLAST_add_taxonomic_info/make_diamond_nr_database.sh | UTF-8 | 1,651 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# script to convert NR database to fasta files and make a diamond blastdatabse.
cd $PWD
# Fill these out
#################################################################
# Help with diamond
# to install diamond from source
#wget http://github.com/bbuchfink/diamond/archive/v0.7.9.tar.... | true |
abb8cb55ffe72929925d59f7b8d70ff41cd45d4f | Shell | dangom/neuroimaging-scripts | /registration/concat_moco_affine.sh | UTF-8 | 1,046 | 3.6875 | 4 | [] | no_license | #!/usr/bin/bash
# Safety precautions
# Using a variable that is not set will raise an error
set -o nounset
# Exit if a command fails.
set -o errexit
function echo_help {
echo "Humane wrapper to ANTs Motion Correction"
echo "Usage: concat_moco_affine.sh input mocowarp affine reference"
echo "Outputs the in... | true |
3f718aef093a66e7a50ade08523dfcb54537fa69 | Shell | chriswinn/Bash_Custom_Lib | /bash_conf/available/bash_aliases | UTF-8 | 2,046 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | ############################
#
# Bash: Bash Aliases
# Coded by: Christopher L. Winn
# Version 1.0
#
# To use this script simply fill in the variable(s) below
# If you want to disable certain features read the comments on how to change it
#
############################
# Bash: Bash Aliases
# Section
####################... | true |
6c7c36c59673a57dc996a91a9ec3a8c5e8895b58 | Shell | OS2World/APP-WORDPROC-teTeX | /OS2tree/usr/bin/ps4pdf | UTF-8 | 3,005 | 3.9375 | 4 | [] | no_license | #!sh
# Copyright (C) 2004, Thomas Esser. Public domain.
# First, work around bugs/limitations in some shells on some systems:
test -f sh5 && test -z "$RUNNING_SH5" \
&& { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
&& { RUNNING_SH5=true; export RUNNING_SH5; exec sh5 $0 ${1+"$@"}; }
unset RUNNING... | true |
a67c94c844746dadfacf2a4de06b10e187b86e24 | Shell | rlim19/ChromatinConformation | /Script/macsPeakCalling.sh | UTF-8 | 2,612 | 3.671875 | 4 | [] | no_license | #! /bin/bash
#
# Copyright (C) 2015 ricky <ricky@tblab-Precision-T1650>
#
#
###############################################
# Peak calling pipeline using macs #
# #
# Input: *.bam #
# #
# O... | true |
22ac6259fb3f1bac219485bfc7981bbaf9b5c95e | Shell | MarcelHB/bootdev | /modules/lmtp-imap/lmtp-imap.zsh | UTF-8 | 476 | 3.53125 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
new_imap_user () {
if [ "$#" -ne 2 ]; then
echo "Please give user and password!"
exit 1
fi
NETWORK_ADAPTER=eth0
echo "~> Getting netmask for $NETWORK_ADAPTER."
NET_CIDR=$(ipcalc "$(ip -s -o address show dev $NETWORK_ADAPTER | grep '"'"'inet '"'"' | awk '"'"'{ print $4 }'"'"')" | grep Netw... | true |
e975cdfa63e78adaa43720d5f83c90d144dfda06 | Shell | Xethron/docker-php56 | /start.sh | UTF-8 | 1,358 | 3.484375 | 3 | [] | no_license | #!/bin/sh
mkdir -p /data/log/supervisor
mkdir -p /data/log/apache2
mkdir -p /data/log/mysql
mkdir -p /var/run/sshd
mkdir -p /data/conf
mkdir -p /data/db
cat << EOF >> /etc/profile
alias www='cd /var/www/'
EOF
## SETUP APACHE CONFIG ##
if [ -f /var/www/000-default.conf ]; then
a2dissite 000-default
ln -sf /var... | true |
41a0fc22c63f87528a1228d2dbe636b5c64cfb09 | Shell | galaxy001/castle | /.bin/ipkill.sh | UTF-8 | 713 | 3.625 | 4 | [] | no_license | #!/bin/bash
if [[ -z "${1}" ]]; then
echo "Usage: ${0} <ip address>"
exit 31337
fi
if [[ -n "${2}" ]]; then
SIGNAL="${1}"
IPADDR="${2}"
else
SIGNAL="-9"
IPADDR="${1}"
fi
lsof -i TCP@${IPADDR} | grep TCP > /tmp/ipkill.tmp
OFS=${IFS}
IFS=$'\n'
arr=($(< /tmp/ipkill.tmp))
IFS=${OFS}
i=0
while [ ! -z "${arr... | true |
a941fb41d9ba5894b9cfc57ac22e3c389c9382db | Shell | afreeorange/iptables | /setup | UTF-8 | 1,759 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# IPTables Firewall Setup Script
# Nikhil Anand <nikhil@mantralay.org>
# Wed Sep 21 13:09:39 CDT 2011
function magentaheader() { echo -e "\E[35m$1"; tput sgr0; }
function greenheader() { echo -e "\E[32m$1"; tput sgr0; }
function redheader() { echo -e "\E[31m$1"; tput sgr0; }
function show_warning(... | true |
ac2081fe5b59d122e998318c6c584b76584c1062 | Shell | Wytzepakito/prediction_of_CO_sites | /annotation_features/macro_dinuc_freqs.sh | UTF-8 | 531 | 2.703125 | 3 | [] | no_license | #!/usr/bin/bash
# do dinuc freq python script for every Author inside species folder
for crop_dir in *
do
if [[ -d $crop_dir ]]; then
for dir in $crop_dir/*
do
if [[ -d $dir ]]; then
python3 //lustre/BIF/nobackup/gelde036/Scripts/obtain_dinuc_freqs.py $dir/positive.all.10000.maxoverlap1kb.fasta > $dir/positive.all.... | true |
ca653627dce0a261ced50b6f41832055489f2e29 | Shell | antihax/mock-esi | /build_mock_esi.sh | UTF-8 | 657 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
curl -s https://esi.evetech.net/versions/ | grep -Po '[a-z0-9]+' | {
imports=()
while read -r version ; do
echo "Processing $version"
rm -rf ./$version/*
imports+=("_ \"github.com/antihax/mock-esi/$version/go\"\n")
java -jar swagger-codegen-cli.jar gener... | true |
dcb63583361dcb1a5a663903e76f908a683fb4d6 | Shell | IgnacioN99/CSO | /practica-shell-script/archivoOdirectorio.sh | UTF-8 | 107 | 3.1875 | 3 | [] | no_license | #!/bin/bash
if [ -f $1 ];then
echo "$1 es un archivo"
elif [ -d $1 ];then
echo "$1 es un directorio"
fi
| true |
66d3a152b50211a270baab0594298b73279d0601 | Shell | VEuPathDB/ApiCommonWebsite | /Site/bin/gbrowseImageGC | UTF-8 | 1,732 | 4.25 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# garbage collect aged temporary images from gbrowse's store, leaving those
# that are 'cached' (i.e. have a corresponding html file in cachedir).
#
# usage
# gcGbrowseCache <days> <tmpimages>
#DEBUG=1 # no files are deleted if debug
this=$(basename "$0")
usage() {
echo "usage:"
echo "$this <d... | true |
051e0ce63c4931ce5d4521924e0bb63da7eda614 | Shell | brianwoelfel/gist-helper | /delete-gist-by-description.sh | UTF-8 | 409 | 2.984375 | 3 | [] | no_license | #!/bin/bash
DESCRIPTION=$1
URL=$(curl --user "$GIT_USER:$GIT_PASSWORD" https://api.github.com/users/$GIT_USER/gists \
| jq -r ".[] | select(.description == \"${DESCRIPTION}\") | .url")
echo "DESCRIPTION=$DESCRIPTION"
echo "URL=$URL"
if [ ! -z "${URL}" ]; then
curl --silent -v -H "Content-Type: text/json; charset... | true |
0d9a0c7e93a0288e02b0d6da27d3ec22a09123ed | Shell | eentzel/dotfiles | /bin/remote-sync.sh | UTF-8 | 575 | 4 | 4 | [] | no_license | #!/bin/sh
# given a target host and directory,
# syncs all git modified files from the PWD
# to the specified directory
USER=$1
HOST=$2
if [[ $USER == "" || $HOST == "" ]] ; then
echo "usage: `basename $0` user host"
exit 1
fi
shift 2
LOCAL_DIR=`pwd`
REMOTE_DIR=$1
shift
SAFE_DIR=/Users/eentzel/Projects
if [... | true |
e4500868de16f78241e06cff0ed7b43d386437bd | Shell | ahemaid/test | /helper/tools/VoColClient/Hooks/InstallHooks.sh | UTF-8 | 352 | 3.703125 | 4 | [] | no_license | #Copy implemented hooks
for file in `ls -1 .`
do
if [ $file != "InstallHooks.sh" ]; then
cp ./$file ../.git/hooks/$file
if [ "$OSTYPE" != "msys" ]; then
echo "Please write your admin password to allow execute permission for git hook: "$file
sudo chmod +x ../.git/hooks/$file
fi
fi
done
echo "Hoo... | true |
b1dd81458a333f8011ab9482c0c767a5adb39589 | Shell | MrChengmo/PaddleRec | /core/engine/cluster/k8s/cluster.sh | UTF-8 | 3,177 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###################################################
# Usage: submit.sh
# Description: run k8s submit client implement
###################################################
# ---------------------------------------------------------------------------- #
# variable define ... | true |
65b9e9b5805f91e224a53c590fe3bd68d6cf44b4 | Shell | samuel-phan/nvidia-fan-min | /nvidia-fan-min.sh | UTF-8 | 1,990 | 4.1875 | 4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2021 Samuel Phan
# Licensed under the terms of the MIT License. See LICENSE file in project root for terms.
fan_control=""
FAN_CONTROL_AUTO=0
FAN_CONTROL_MANUAL=1
fan_speed=20
gpu_cmd="nvidia-settings"
sleep_time=1
temperature_threshold=40
get_query() {
echo "$($gpu_cmd -q "$1"... | true |
3facbdec1b0ef22a48d3f17a52596b5f9a7b17a0 | Shell | cwhelan/gatk-linked-reads | /scripts/cnv_cromwell_tests/germline/run_cnv_germline_workflows.sh | UTF-8 | 4,039 | 3.015625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -l
set -e
#cd in the directory of the script in order to use relative paths
script_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
cd "$script_path"
ln -fs /home/travis/build/broadinstitute/gatk/scripts/cnv_wdl/cnv_common_tasks.wdl
WORKING_DIR=/home/travis/build/broadinstitute
pushd .
echo "Building ... | true |
68be1ab3022d581f1d9e0d769eabce18cff7c766 | Shell | zylozs/Styrobot.py | /InstallDependencies.sh | UTF-8 | 766 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
command -v pip >/dev/null 2>&1 || {
echo >&2 "This script requires pip but it's not installed. Please install pip before running this script. Aborting.";
exit 1;
}
input=''
echo "Would you like to update pip first? (y/n): "
read -n 1 input
echo
if [ "$input" = "y" ] || [ "$input" = "Y" ]; then
pip inst... | true |
e7daa83100f1843b19733a690834c080ce9639d2 | Shell | nicopal/FlowriderDemo | /Testbed/flowrider-example | UTF-8 | 2,310 | 3.78125 | 4 | [] | no_license | #! /bin/sh
# Start Open vSwitch guests
#
# Written by Ewen McNeill <ewen@naos.co.nz>, 2014-10-06
# Updated by Ewen McNeill <ewen@naos.co.nz>, 2014-10-07
#---------------------------------------------------------------------------
set -e
PATH=/usr/bin:/bin
export PATH
BIN_DIR=$(dirname $0)
if [ -z "${BIN_DIR}" ]; the... | true |
05b3a8eb9abe744b1360daf640f37c5969c6429b | Shell | zabullet/iptables-port-address-translation-helper | /pathelp.sh | UTF-8 | 3,863 | 4.1875 | 4 | [] | no_license | #!/bin/bash
#Bash script to help with setting up Port Address Translation using iptables
#Provides a command line for installing port forwarding rules
#Provides a Simple "UI" for removing rules
#https://github.com/zabullet/iptables-port-address-translation-helper
# Call getopt to validate the provided input.
options... | true |
cf4162d5c704baeb835bf7eff85938995727e942 | Shell | aminami1127/vimrc | /.zshrc | UTF-8 | 1,712 | 2.578125 | 3 | [] | no_license | # Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
PROMPT='%n@%m:%~$ '
HOSTNAME='minami-VM'
# bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/aminami/.zshrc'
autoload -Uz compinit
com... | true |
afc178271b264b3822b443b0da82d7a5c4cdf81c | Shell | kdipetri/SUEP_coffea | /clean.sh | UTF-8 | 1,156 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
case `uname` in
Linux) ECHO="echo -e" ;;
*) ECHO="echo" ;;
esac
usage(){
EXIT=$1
$ECHO "clean.sh [options]"
$ECHO
$ECHO "Options:"
$ECHO "-d \tuse the developer branch of Coffea (default = 0)"
$ECHO "-h \tprint this message and exit"
$ECHO ... | true |
9804eaaf573b4d3c6d3dfd2f231825bf345690c8 | Shell | zoobab/jerryscript | /tools/runners/run-test-suite.sh | UTF-8 | 2,965 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
# Copyright 2016 University of Szeged
#
# 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/L... | true |
5694bc48eeb8cdcc4d032c593f3aa5c65ff8755f | Shell | pavitrakumar78/small_scripts | /ipaddress.sh | UTF-8 | 3,863 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Written by Denilson Figueiredo de Sa <denilsonsa@gmail.com>
#
# Future ideas:
# * Rewrite this to use iproute2 tools:
# ip link show
# ip address show
THISSCRIPT=`basename $0`
print_help() {
cat << EOF
Usage: $THISSCRIPT <interface|all|realip> [ -imnh ]
Where:
interface print info only from the ... | true |
6712492a6c3bd8a91c589d20f0ad5656f0b8e8fb | Shell | TheGigabots/gigabots-firmware | /tools/firmware_update.sh | UTF-8 | 516 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "##################"
echo " FIRMWARE UPDATE "
echo " STARTING "
echo "##################"
sleep 5
mkdir -p ./tmp
curl -s https://api.github.com/repos/TheGigabots/gigabots-firmware/releases/latest \
| grep tarball_url \
| cut -d '"' -f 4 \
| xargs curl -L > ./tmp/src.tgz
tar z... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.