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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c4abf95cd3b3c3a6dd2577c547f96cc6a428017b | Shell | luxwig/EE180D | /run_all.sh | UTF-8 | 251 | 3.109375 | 3 | [] | no_license | #!/bin/bash
rm -rf output.txt
while IFS='' read -r line || [[ -n "${line}" ]]; do
echo -n "RUNNING ${line}"
echo "--- ${line} ---" 1>>output.txt
echo -e "\t EC: $?"
./cf_main "${line}" 2>/dev/null 1>> output.txt
done < "testfile.list"
| true |
08ffc3336b88bb31c4d416e2dd2a357bffbbd5ed | Shell | jbelmont/useful-scripts | /convert-to-titlecase.sh | UTF-8 | 285 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# Print System Clipboard onto standard output then
# convert each character to lowercase and then turn the first character to match to uppercase with \u
# then remove the hyphen (-) to empty space
echo $(pbpaste) | gsed -E 's/.*/\L&/;s/[a-z]*/\u&/g;s/-/ /g' | tr -d '\n'
| true |
83c1366e133f239118d1321e4715b7b46762dc2a | Shell | northbright/bookmarks | /dev/acme-sh/local-copy/letsencrypt_notes.sh | UTF-8 | 3,468 | 3.734375 | 4 | [
"MIT"
] | permissive | # How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# up... | true |
dc16d32af8be0ab0eec750b9835ca0e90cc4862b | Shell | sergiomt/centorion | /vagrant-setup/zookeeper/init.d/zookeeper | UTF-8 | 541 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# description: Zookeeper Start Stop Restart
# processname: zookeeper
# chkconfig: 234 20 80
JAVA_HOME=/usr/java/latest
export JAVA_HOME
ZOO_LOG_DIR=/usr/share/zookeeper/logs
export ZOO_LOG_DIR
case $1 in
start)
/bin/su -s /bin/bash hadoop /usr/share/zookeeper/bin/zkServer.sh start
;;
stop)
/bin/su -s /bin/... | true |
0372b6613050bd6b7575b2c9234f1f1f1f8257c4 | Shell | gorgyboy/holberton-system_engineering-devops | /0x0F-load_balancer/0-custom_http_response_header | UTF-8 | 325 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
# Configures nginx to have a custom header
HOSTNAME=$(hostname)
sudo apt-get update
sudo apt-get -y install nginx
echo "Holberton School for the win!" | sudo tee /var/www/html/index.html
sudo sed -i "/^.*sendfile.*/i add_header X-Served-By ${HOSTNAME};" /etc/nginx/nginx.conf
sudo service nginx res... | true |
0aea1869f4b19513f4f7db917319cbabe53543a8 | Shell | yangguoandresolution/amazon-vpc-cni-k8s | /scripts/entrypoint.sh | UTF-8 | 4,334 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# NOTE(jaypipes): Normally, we would prefer *not* to have an entrypoint script
# and instead just start the agent daemon as the container's CMD. However, the
# design of CNI is such that Kubelet looks for the presence of binaries and CNI
# configuration files in specific directories, and the presen... | true |
b2249290dae0f1b4550a4e4290900b35af0b4e78 | Shell | ekad0912/Project | /guessinggame.sh | UTF-8 | 460 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
# File: guessinggame.sh
function question {
echo "How many files in this directory?"
read response
}
function hmfiles {
echo `find ./ -maxdepth 1 -type f | wc -l`
}
while [[ $response -ne $(hmfiles) ]]
do
question
if [[ $response -eq $(hmfiles) ]]
then
echo "Congratulations! This is corr... | true |
f4616dc0e23bd0b0366161f2fde793f6489e31a2 | Shell | minos-org/sentry-deb | /debian/sentry.postinst | UTF-8 | 2,082 | 3.828125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -e
_ensure_setting_top()
{ #setting($1), configuration file($2)
[ -z "${1}" ] && return 1 || _ensuresetting_var_line="${1}"
[ -z "${2}" ] && return 1 || _ensuresetting_var_file="${2}"
[ ! -f "${_ensuresetting_var_file}" ] && return 1
_ensuresetting_var_regex="$(printf "%s" "${_ensures... | true |
4e99c0d130c0f7f17e1d923f67cad2001bf6ee55 | Shell | manoj-kristhombu/commons | /qa/web-test-framework/wsas/runAll.sh | UTF-8 | 6,223 | 3.75 | 4 | [] | no_license | #!/bin/sh
# ----------------------------------------------------------------------------
# Copyright 2005-2009 WSO2, Inc. http://www.wso2.org
#
# 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 ... | true |
f0c0df46f756b25796728fb8f1223d5a45713f40 | Shell | jadedgnome/newsbeuter-dangerzone | /getimgs.sh | UTF-8 | 1,086 | 3.28125 | 3 | [] | no_license | #!/bin/sh
# Create a macro in your /.newsbeuter/config file
# macro o set external-url-viewer "dehtml >> ~/imagetemp/imglinks.txt" ; show-urls ; next-unread ; set external-url-viewer "urlview"
# therefore anything you type ,o (see macro support http://www.newsbeuter.org/doc/newsbeuter.html#_macro_support ) over
# has ... | true |
59a02945d06f077ad6738209ddd4d664d9e8d3b1 | Shell | kunphiphitb/OS-AUTO-SCRIPT | /menu/debian8/menu | UTF-8 | 5,124 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Modified by kunphiphit
if [[ -e /etc/debian_version ]]; then
OS=debian
RCLOCAL='/etc/rc.local'
else
echo -e "\e[33;1m IT LOOKS LIKE YOU ARE NOT RUNNING THIS INSTALLER ON DEBIAN, UBUNTU \e[0m"
exit
fi
cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo )
cores... | true |
d5265721fdbc6cf347ab4d05f618884815ba4ecb | Shell | kaicarver/tools | /commands.sh | UTF-8 | 441 | 2.6875 | 3 | [] | no_license | # Some commands I use from my history and don't want to lose
cd ~
# status about all projects
git-sum2/git-summary -lq
# more status about list of projects
for r in blog leaflet clock geotools bootcamp_python_kai lapeste yuansu-react uketabs tools; do echo $r : `git -C $r status | grep ahead`; done
# push it
for r in... | true |
0a921152a36dcb4a0d046dde2c79770637663bc5 | Shell | frescogo/analise | /stats/all.sh | UTF-8 | 426 | 2.84375 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
# ./all.sh ../jogos/Bolivar/20190405/ > ranking.md
# :%!sort -n -r -k3
echo "\`\`\`"
mkdir -p "$1/stats/"
echo "ESQ DIR PTS QDS 300+ 100+ 50-"
echo "--------------------------------------------------------------"
for i in $1/*.txt; do
#echo $i
base=`basename "$i" .txt... | true |
5b01961b7327dbc15374951a5746cd7c6b014be6 | Shell | MNXANL/GRAU-LP | /CL_Practica/run.sh | UTF-8 | 344 | 2.59375 | 3 | [
"MIT"
] | permissive | antlr -gt mountains.g
echo ""
dlg parser.dlg scan.c
echo ""
if g++ -w -I /usr/include/pccts -o practica mountains.c scan.c err.c; then
echo "COMPILATION SUCCESFUL; EXECUTING PROGRAM"
echo "****************************************"
./practica
else
echo ""
echo "COMPILATION HAS FAILED"
echo "***... | true |
53d12d13c2779eb8f8a5ce3ee0b1a5e9cabe021d | Shell | lovesa/serverscripts | /pgpool/pgpool_remote_start | UTF-8 | 483 | 3.5625 | 4 | [] | no_license | #! /bin/sh
#
# Start PostgreSQL on the recovery target node
#
. /opt/serverscripts/utils/functions.sh
if [ $# -ne 2 ]
then
echo "pgpool_remote_start remote_host remote_datadir"
exit 1
fi
DEST=$1
DESTDIR=$2
PGCTL=/usr/pgsql-9.1/bin/pg_ctl
DEFLOG=/var/log/pgpool/recovery.log
ALLOWOUT=1
e "Starting postgres on ... | true |
407d486f1ef77906cc06304e8e433089e876b598 | Shell | jsp1256/qBittorrent_cross_complie | /shell/qBittorrent_install.sh | UTF-8 | 4,338 | 3.375 | 3 | [] | no_license | #!/bin/sh
##qBittorrent部署安装脚本
##qBittorrent_install.sh
##version: 1.3
##### 配置文件 #####
USB_PATH=""
SOFT_PATH=""
##### 前置函数起始点 #####
##### 配置外接存储路径 #####
config_USB_PATH(){
if [ -z "$USB_PATH" ]; then
#获取USB外置存储挂载根目录,多次重复匹配,防止重复
USB_PATH=`df -h | grep -no "/mnt/[0-9_a-zA-Z]*" | grep -no "/mnt/[0-9_a... | true |
65987a147290e7cf8cda103a86684c3b5767a84b | Shell | otusex/ku5svb | /packer/scripts/stage-1-kernel-update.sh | UTF-8 | 1,147 | 3 | 3 | [] | no_license | #!/bin/bash
cd /usr/src/kernels/
# update packeges
yum update -y
# install bc
yum install bc -y
# install repo epel-release
yum install -y epel-release
# install Dev tools
yum groupinstall 'Development Tools' -y
# Required to install the kernel from source
yum install -y openssl-devel elfutils-libelf-devel
# I... | true |
b3a443e1045c2892c98cfc3db661905639bfb9b0 | Shell | optionalg/dotfiles-60 | /.profile | UTF-8 | 910 | 2.859375 | 3 | [] | no_license | if [ -d "$HOME/.local/bin" ] ; then
export PATH="$HOME/.local/bin:$PATH"
fi
[ -d /usr/local/cuda/bin ] && export PATH=/usr/local/cuda/bin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
[ -d /usr/local/opt/go/libexec/bin ] && export PATH=$PATH:/usr/local/opt/go/libexec/bin
# FSL Setup
FSLDIR=/opt/local/fsl
... | true |
316909387a7415a6badb18a6fe6b4738369bb505 | Shell | kamath/ANTsDoc | /Tex2/runexamplesandtests.sh | UTF-8 | 339 | 3.359375 | 3 | [] | no_license | for ee in examplesandtests/Ex*.sh ; do
nm=`basename $ee`
op=output` echo $nm | cut -d '.' -f 1`
if [[ 1 == 1 ]] ; then
bash $ee > /dev/null
testnm=examplesandtests/test${nm}
if [[ -s $testnm ]] ; then
bash examplesandtests/test${nm} $op
else
echo $testnm does not exist
fi
fi
echo example ... | true |
18756a80fa67005cf161e43888b86706ddf1750b | Shell | rochakagrawal89/WLST | /list_server_health.sh | UTF-8 | 1,856 | 2.890625 | 3 | [] | no_license | #!/bin/sh
FILE="list_server_health_$(date +%Y%m%d_%H%M%S).csv"
FILE1="list_server_health_stuck_threads_$(date +%Y%m%d_%H%M%S).csv"
ED=/u01/oracle/script/scripts/splunk
MW_HOME=/u01/Oracle/Middleware
ORACLE_HOME="${MW_HOME}/Oracle_OSB1"
WL_HOME="${MW_HOME}/wlserver_10.3"
# Setup Common Environment
WLS_NOT_BRIEF_ENV=tr... | true |
b5964c259ee32a54d4664efd95cb245c498a546f | Shell | usmanC9/fuel-plugin-lma-collector | /contrib/tools/common.sh | UTF-8 | 1,088 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | true |
bb6bafb79867a6c184f99dbbad77a168009e5df1 | Shell | k3nno88/forcrawler | /run_pararius_sell.sh | UTF-8 | 1,374 | 2.515625 | 3 | [] | no_license | #!/bin/zsh
#run the pararius scraper and update database accordingly
#eval "$(conda shell.zsh hook)"
#conda activate scraping_env
echo $(date '+[%d:%m:%Y] %H:%M'): Run pararius sell >> ~/cron.log
cd ~/pararius_sell
nordvpn c
size=$(mysql --login-path=server -s -N scraping_data -e "select max(Id) from pararius_sell;")
... | true |
af074da1d15fc3446418f556e45c16d2221b42d3 | Shell | basarballioz/Bash-Script-Examples | /password_generator.sh | UTF-8 | 236 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#Bballioz
#USING OPENSSL
function password(){
read -p "Please enter the length of the password and how many samples you want: " Len Count
for p in $(seq 1 $Count);
do
openssl rand -hex 48 | cut -c1-$Len
done
}
password
| true |
02583119c9e8faf6ec6539ade881238d08d40b56 | Shell | crotwell/recFunc | /paper/moma/xyplot.sh | UTF-8 | 1,416 | 2.53125 | 3 | [] | no_license | #!/bin/bash
gmtset PLOT_DEGREE_FORMAT -D ANNOT_FONT_PRIMARY Times-Roman
gmtset LABEL_FONT Times-Roman LABEL_FONT_SIZE 12
NAME=moma
REGION=-92/-70/20/70
FILENAME=${NAME}H.ps
/bin/rm -f ${NAME}H.ps
touch ${NAME}H.ps
psxy -K -JX6i/-4i -R${REGION} -Ss.1i -G0 >> $FILENAME <<END
-78 58
END
pstext -O -K -JX -R >> $FILEN... | true |
3227aef2de284c2668efdb7f4000f1d53150b483 | Shell | alienrobotarmy/bashthreads | /threads.sh | UTF-8 | 2,307 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#
# Bash multi-threading library
#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! DO NOT EDIT THIS FILE !!
# !! This is a library to be included into your source !
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
# Copyright (c) 2014 Jess Maha... | true |
5950922947ed22447f1d8c9c08839cb0ae06f837 | Shell | phpc0de/baksetup | /mini/include/check_sw.sh | UTF-8 | 2,930 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# Author: Alpha Eva <kaneawk AT gmail.com>
installDepsCentOS() {
[ -e '/etc/yum.conf' ] && sed -i 's@^exclude@#exclude@' /etc/yum.conf
# Uninstall the conflicting packages
echo "${CMSG}Removing the conflicting packages...${CEND}"
[ -z "`grep -w epel /etc/yum.repos.d/*.repo`" ] && yum -y install ... | true |
e4b9ccd2c5e9a9b2f210d3ca6fea04fec06bbd4a | Shell | salhen/.dotfiles | /.config/polybar/scripts/power.sh | UTF-8 | 1,710 | 3.1875 | 3 | [] | no_license | #!/bin/bash
echo ''<<LICENSE
The MIT License(MIT)
Copyright(c), Tobey Peters, https://github.com/tobeypeters
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including wit... | true |
7ec58c8f3ca7e8e3a99db3a65f8b41f039722cc0 | Shell | vimalmanohar/kaldi-tfmask | /egs/babel/s5b/run-6-semisupervised-seg.sh | UTF-8 | 7,272 | 3.3125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
# Copyright 2014 Vimal Manohar
# Apache 2.0
# Run DNN training on untranscribed data
# This uses approx 70 hours of untranscribed data
set -e #Exit on non-zero return code from any command
set -o pipefail #Exit if any of the commands in the pipeline will
#return non-zero retu... | true |
4241d6efdcb794c6f1a3d05f62456ac78b1cc0b8 | Shell | Bioconductor/BBS | /propagation/3.17/checkPublishedPkgs-data-annotation.sh | UTF-8 | 963 | 3.265625 | 3 | [] | no_license | #!/bin/sh
set -e # Exit immediately if a simple command exits with a non-zero status
export LC_COLLATE="C" # to sort the result of local pathname expansion as on cobra
LOCAL_REPO_ROOT="$HOME/PACKAGES/3.17/data/annotation"
REMOTE_REPO_ROOT="/extra/www/bioc/packages/3.17/data/annotation"
PKG_FILEPATHS="src/contrib/*.... | true |
b4fac6a27e31b4587283d3e3aa6d74f9c98f0b7d | Shell | mikalv/elk-kubernetes | /docker/elasticsearch/pre-stop-hook.sh | UTF-8 | 1,008 | 3.421875 | 3 | [] | no_license | #!/bin/sh
set -e
#set -x
CLIENT_ENDPOINT="elasticsearch-logging:9200"
echo "Prepare stopping of ${HOSTNAME} pod"
echo "Prepare to migrate data of the node"
NODE_STATS=$(curl -s -XGET "http://${CLIENT_ENDPOINT}/_nodes/${HOSTNAME}/stats")
NODE_IP=$(echo "${NODE_STATS}" | jq -r ".nodes[] | select(.name==\"${HOSTNAME}... | true |
3e49298ae4e9620d1dfc264d711f44dd2c672d58 | Shell | darb2723/uim-shell | /scripts/bulk_manage/hub_command.sh | UTF-8 | 1,814 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BINDIR="${0%/*}"
if [ -f "$BINDIR/common.rc" ]
then
. "$BINDIR/common.rc"
else
cat << EOF
Missing required common.rc file, re-install to fix.
File location: $PWD/common.rc
EOF
exit
fi
if [ -f "$BINDIR/nimbus.rc" ]
then
. "$BINDIR/nimbus.rc"
else
cd "$BINDIR"
cat << EOF
Missing required nimbus.rc file. ... | true |
be0c0bb384fc9b365f78812fae9cd30db38693ae | Shell | safisher/ngs | /ngs_PIPELINE.sh | UTF-8 | 11,907 | 3.421875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# Copyright (c) 2012-2014, Stephen Fisher, Hoa Giang, and Junhyong Kim, University of
# Pennsylvania. All Rights Reserved.
#
# You may not use this file except in compliance with the Kim Lab License
# located at
#
# http://kim.bio.upenn.edu/software/LICENSE
#
# Unless required by applicable law or agr... | true |
15b44cc14f0faf05d4ba1ea13bc745677b71e8f3 | Shell | luafran/exercises | /linux_api/07_signals/print_signals.sh | UTF-8 | 181 | 3 | 3 | [] | no_license | trap3 ()
{
echo "Signal SIGQUIT (3) trap"
}
trap15 ()
{
echo "Signal SIGTERM (15) trap"
}
echo "pid = $$"
trap trap3 3
trap trap15 15
while [ true ]; do
sleep 1
done
| true |
9b32bcdd963d65f77e7f71deb86f23c0138b4230 | Shell | 5l1v3r1/sifter | /modules/webmods/widow.sh | UTF-8 | 2,416 | 3.53125 | 4 | [] | no_license | #!/bin/bash
ORNG='\033[0;33m'
NC='\033[0m'
W='\033[1;37m'
LP='\033[1;35m'
YLW='\033[1;33m'
LBBLUE='\e[104m'
if [[ -d /opt/sifter/results/Blackwidow ]]; then
echo ""
else
mkdir /opt/sifter/results/Blackwidow
fi
echo -e "${ORNG}Blackwidow${NC}"
echo -e "${ORNG}***********${NC}"
options=("Crawl the target domain... | true |
3bbef87857b700a13dea021a80c99340286c27bc | Shell | paulineauffret/pmarg_albino_project | /01_from_raw_to_count_matrix_and_vcf/01_1_juvenile/01_fastqc.sh | UTF-8 | 926 | 3.578125 | 4 | [] | no_license | #!/bin/bash
DATA_DIRECTORY=~/juvenile/raw #path to raw data directory (raw fastq.gz files, each pair R1 - R2 placed into one subdirectory)
QC_SCRIPT=~/juvenile/scripts/01_fastqc.qsub #path to 01_2_fastqc_raw_reads.qsub script
SCRIPT=~/juvenile/scripts #path to scripts directory
HEADER=${SCRIPT}/input_files/head... | true |
0a8480e15926eaf532f1b878d536ec968a210a26 | Shell | dglo/domhub-tools | /devel/domhub-testing/throughput-AB.sh | UTF-8 | 2,038 | 3.40625 | 3 | [] | no_license | #!/bin/bash
source throughput-common.sh
function atexit () {
rm -f /tmp/thrAB.$$.doms
}
trap atexit EXIT
#
# throughput-AB.sh, get results of throughput
# tests for A/B doms...
#
#
# FIXME: check interrupt, times stats -- interrupts, and times are
# (approx) per wire pair...
#
#
# for the paired doms
#
# we us... | true |
46135922c7eca8c9b65e72b01f1dddfa1cec0c7b | Shell | viyoriya/lfs_9 | /blfs/pkgscripts/llvm | UTF-8 | 1,094 | 3.171875 | 3 | [] | no_license | #!/bin/bash
set -e
. /etc/pkg/pkg.conf
. /var/lib/pkg/functions
name=$(basename $0)
version=$LLVM_VER
url=https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_PARENT_VER/llvm-$version.tar.xz
fetch $url
rm -fr $WORK_DIR/$name-$version
tar -xvf $SOURCE_DIR/$(basename $url) -C $WORK_DIR
cd $WORK_DI... | true |
39e1ef30f4ee4f7b49dec9a3927baebca4c67082 | Shell | sunliang711/ss2 | /init/tools/detectOS.sh | UTF-8 | 1,454 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# 检测出当前系统的版本,形如ubuntu-16.10,archlinux,fedora-23,centos-6.8,debian-8,macos
currentOS(){
case "$(uname)" in
"Linux")
#pacman -> archlinux
if command -v pacman >/dev/null 2>&1;then
echo "archlinux"
#apt-get -> debian or ubuntu
elif co... | true |
f134fad38d6c4dfab93fa2f254116ae40c6070d1 | Shell | Foxwc/CS100-RSHELL | /tests/multi_command.sh | UTF-8 | 2,556 | 2.921875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
printf "\n\nTest 1: rmdir cat || ls\nExpected:\\n" # testing || (fail)
rmdir cat || ls
printf "rmdir cat || ls\nexit\\n" | bin/rshell
printf "\n\nTest 2: rmdir cat && ls\nExpected:\\n" # testing && (fail)
rmdir cat && ls
printf "rmdir cat && ls\nexit\\n" | bin/rshell
printf "\n\nTest 3: ls; mkdir tests && ls ... | true |
279f69397cc01520edcd68f058fb3200be10d8eb | Shell | aleskandro/MyConfigs | /home/aleskandro/.zoppo/plugins/archive/functions/archive:extract:gz | UTF-8 | 326 | 2.765625 | 3 | [
"WTFPL"
] | permissive | local v
(( $verbose )) && v='-v'
if (( $+commands[gunzip] )); then
gunzip ${=v} "$1"
elif (( $+commands[gzip] )); then
gzip ${=v} -d "$1"
elif (( $+commands[zcat] )); then
zcat ${=v} "$1" >! "${1:r}"
else
warn 'extract: you have to install gzip'
return 1
fi
# vim: ft=zsh sts=2 ts=2 sw=2 et fdm=marker fmr={{... | true |
b474fb0f27605e5de4518bed5dacdee602c99428 | Shell | henrytwo/GooseAlert-Public | /deployAlarmServer.sh | UTF-8 | 546 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
ALARM_SERVER_USER="pi@10.8.0.9"
ALARM_SERVER_PATH="/home/pi/GooseAlert/ALARMSERVER"
echo "Killing watchdog"
ssh $ALARM_SERVER_USER "tmux kill-server; sudo pkill python3;"
echo "Starting deployment"
scp -i ~/.ssh/id_rsa -r ALARMSERVER/* $ALARM_SERVER_USER:$ALARM_SERVER_PATH
echo "Files copied"
... | true |
dfd093d1cdbcb425e02947d28c0c3d2e2f6ba0be | Shell | briancsparks/server-assist-server | /build-scripts/run-instance | UTF-8 | 5,025 | 3.859375 | 4 | [] | no_license | #!/bin/bash -e
#
# Run an instance of the server-assist-server.
#
# 1. Gets the giant `configuration` JSON.
# 2. Invokes js-cluster/run-instance, but do not allow it to start services.
# 3. From the configuration, find all the certificates that will be needed by
# the instance, decrypts them, and copies them to the... | true |
711e1385be811aad18eec87c79a3d6d19bacca7b | Shell | klovercloud/elasticsearch-dev-example | /bin/kcinit.sh | UTF-8 | 677 | 3.71875 | 4 | [] | no_license | #!/bin/bash
set -e
fileCount=$(find /tmp-elasticsearch -type f | wc -l)
echo $fileCount
if [ -d "/usr/share/elasticsearch" ]
then
echo '[INFO] Persistant volume mounted'
fileCount=$(find /usr/share/elasticsearch -type f | wc -l)
if [ $fileCount -gt 100 ]
then
echo "elasticsearch files exists"
el... | true |
3b3f4d31ead92c056e0f78371fe3c4a5d9c4b114 | Shell | uber/storagetapper | /scripts/workflow_example.sh | UTF-8 | 1,953 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -ex
go build
sql() {
db=$1
shift
mysql -uroot "$db" -e "$@"
}
KAFKA_RETENTION_TIME=20
TEST_TOPIC=hp-ex_svc1-ex_db1-ex_table1
KPATH=/home/kafka/bin
KPARAM="--zookeeper localhost --topic $TEST_TOPIC"
$KPATH/kafka-topics.sh "$KPARAM" --alter --config retention.ms=$((KAFKA_RETENTION_TIME * 1000))
$KP... | true |
27d9150a25e86e5f7696d43b1eea649f5c79b7df | Shell | nirmalya-broad/PatHCap_PL | /shell_scripts/old scripts/gff_parse3.sh | UTF-8 | 8,224 | 3.1875 | 3 | [] | no_license | #!/bin/sh
NCBI_PATH=$1"/"
shift
OUT_DIR=$1"/"
shift
TEMP_DIR=$1"/"
shift
ADD5=$1
shift
ADD3=$1
shift
############################
TR_GFF_PARSE ()
{
INFILE=$1
GENE_KEY=$2
PRODUCT_KEY=$3
ACC=$4
OUTFILE=$5
APPEND=$6
if [ $APPEND == "N" ];then
echo "" | sed 1d > $OUTFILE
fi
cat $INFILE | tr '\r' '\... | true |
6b6eb3cb0096384d5a99e86d5da687d07074c7b6 | Shell | onaio/ansible-kafka-stack | /roles/zookeeper_helper_tools/templates/zklease.sh.j2 | UTF-8 | 4,101 | 4.03125 | 4 | [] | no_license | #!/bin/bash
ZOOKEEPER_URL="{% for host in groups['zookeeper'] %}{% if loop.index > 1%},{% endif %}{{ host }}:{{zookeeper.properties.clientPort}}{% endfor %}"
LEASE_ROOT=/bashleases
if [[ $1 == --* ]]; then
if [[ $1 == --release ]]; then
RELEASE_LEASE=1
shift 1
else
echo "Unknown option... | true |
6dcab07d909774ebf972ebfc0af02245afb6d633 | Shell | kevinyu0506/gitops-demo | /02-create-cluster.sh | UTF-8 | 816 | 3.015625 | 3 | [] | no_license | #!/bin/bash
if [ ! -f "./env-variables.sh" ]
then
echo "Please check if the variables ./env-variables.sh exists"
return 1
else
. ./env-variables.sh
fi
echo "Set default project to [${PROJECT_ID}], region to [${COMPUTE_REGION}], zone to [${COMPUTE_ZONE}]..."
gcloud config set project ${PROJECT_ID}
gcloud c... | true |
a55121fcc94c125c81ca913244fc70aa5b4853e6 | Shell | Qitmeer/084testnet-data | /gen-data.sh | UTF-8 | 2,180 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
force="false"
if [ "$1" == "-f" ]; then
force="true"
shift
fi
CLI=./cli.sh
if [ ! -f "$CLI" ]; then
echo "$CLI not found!"
exit
fi
FILE=./block-reward-0.8.4.txt
if [ "$force" == "true" ]; then
rm -f $FILE
fi
function get_block_by_order() {
local cli=$1
local order=$2
block=$($cli block ... | true |
73166da2de4ff25a97e02c85d4bb0fde257b5db5 | Shell | dd238/username | /username.sh | UTF-8 | 508 | 3.953125 | 4 | [] | no_license | #! /bin/bash
# username.sh
# Dylan Davis
echo "This program accepts a max of 12 characters as username, but no less than 3."
echo "It must start with a lower case letter."
echo "Only lower case letters, digits, and underscore character can be used."
echo "Enter a username: "
read USRNME
while echo "$USRNME" | egrep -v ... | true |
920da617437cfe2bf0df3c4eef5481d4c4ab62f5 | Shell | edukorg/tsuru-platform-eduk-gradle | /deploy | UTF-8 | 1,620 | 3.734375 | 4 | [] | no_license | #!/bin/bash -el
SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/deploy
source ${SOURCE_DIR}/base/rc/config
source "$HOME/.sdkman/bin/sdkman-init.sh"
SDK_CONF="sdk.conf"
DEFAULT_GRADLE_VERSION="4.7"
if [ -f "${CURRENT_DIR}/${SDK_CONF}" ]; then
while IFS='' read -r line || [[ -n "$line" ]]; do
IFS=" "... | true |
26b0065f991e12f6522bb87148e9e5db1398aced | Shell | mputterf/Wake-and-Sync | /wakeandsync.sh | UTF-8 | 2,463 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#wol = MAC address of destination nic to wake up
#backupsrv = destination machine
#sourcedir= backup source
wol=
backupsrv=
sourcedir=
username=
#Keep track of month for once a month deletion
currentmonth=$(date +%b)
monthfile="$(dirname "$0")/.monthfile.txt"
#Check for manual override
while getopts ":mw... | true |
331805d60de8305dcf0610f4b18abaaebcbda297 | Shell | hlesey/phippy | /load-test/run.sh | UTF-8 | 578 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
UI_URL="http://phippy.clusterx.qedzone.ro:30080"
API_URL="http://phippy-api.clusterx.qedzone.ro:30080"
ITERATIONS=10000
for i in $(seq 1 $ITERATIONS); do
echo "Generating requests for POST /"
echo "------------------------"
hey -n 1000 -m POST $UI_URL
echo "Generating requests f... | true |
e189a84967720d2c4000e0d5a0ed075b58cf827f | Shell | delkyd/alfheim_linux-PKGBUILDS | /makro/PKGBUILD | UTF-8 | 856 | 2.546875 | 3 | [] | no_license | # Maintainer: James An <james@jamesan.ca>
# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
pkgname=makro
pkgver=1.0
pkgrel=5
pkgdesc="A simple KDE4 frontend for Xnee and Xbindkeys."
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php/Makro?content=88647"
license=('GPL')
depends=('kdelibs' 'xbin... | true |
207f119bf46b8330ee2c5bd26e57844e8c5ddfb5 | Shell | cloudfoundry/buildpacks-ci | /tasks/interrupt-bot/deploy/task.sh | UTF-8 | 929 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eu
set -o pipefail
#shellcheck source=../../../util/print.sh
source "${PWD}/ci/util/print.sh"
function main() {
util::print::title "[task] executing"
gcloud::authenticate
gcloud::run::deploy
}
function gcloud::authenticate() {
util::print::info "[task] * authenticating with gcp"
gcloud ... | true |
245ef53d73931fb24c11d73e10ac019fed8fa4fb | Shell | gaankdoank/imapsync-bulk-migrate | /bulk-copy-mailbox.sh | UTF-8 | 929 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# Simple script to sync imap accounts with imapsync
# Author: Carlos Egüez <speedlight>
# Version: 1.0
# The USERLIST file use the user1;pass1;user2;pass2 format, change the IFS=";" variable if needed.
# The USERLIST file is suposed to be in the same location of this script.
imapsyncpath=/usr/bin
origin=... | true |
7cf9befb50ce709db3e097d43caae62735220c18 | Shell | interfect/split-end | /split-end | UTF-8 | 1,106 | 4.0625 | 4 | [
"WTFPL"
] | permissive | #!/usr/bin/env bash
# split-end.sh: split a file end-first, without using more than one part extra disk space.
set -e
if [[ "${#}" != 2 ]] ; then
echo 1>&2 "${0}: split a file end-first, without using more than one part extra disk space."
echo 1>&2 ""
echo 1>&2 "Usage: ${0} SOURCE DEST-BASENAME"
exit 1... | true |
169fbe0c6ea8d72924deedf161eb5969083f4df4 | Shell | yamrzou/delayed-admin | /tests/test_abdicate.sh | UTF-8 | 550 | 2.546875 | 3 | [
"MIT"
] | permissive | . tests/tools.sh
testAbdicate(){
sudo ./setup.sh install || fail "Installation failed"
sudo ./abdicate.sh "now+1min" || fail "Abdicate failed"
check_access_is_revoked || fail "Sudo access is not revoked"
sleep 100
check_access_is_restored || fail "Sudo access is not restored"
sudo ./setup.sh uninstall || f... | true |
35d1477731189244a38f500eda5a4e1029b899d2 | Shell | jancelin/usernetes | /run.sh | UTF-8 | 386 | 3 | 3 | [
"Apache-2.0",
"MIT",
"GPL-2.0-only"
] | permissive | #!/bin/bash
set -eu -o pipefail
# clean up (workaround for crash of previously running instances)
(
if ! [[ -w $XDG_RUNTIME_DIR ]]; then
echo &>2 "XDG_RUNTIME_DIR needs to be set and writable"
exit 1
fi
rootlesskit=$(realpath $(dirname $0))/bin/rootlesskit
cd $XDG_RUNTIME_DIR
$rootlesskit rm -rf docker docker.... | true |
bf87d2b25b7137e9d6f221a2fddb5a623872d4d3 | Shell | edr1/spaCy | /ftd/create_train_data.sh | UTF-8 | 700 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#in_file="FTD_autores.txt"
#out_file="FTD_autores_train.dat.py"
#entity_type="AUTOR"
create_train_data () {
echo "Creating training data"
echo "in_file: $1"
echo "out_file: $2"
echo "entity_type: $3"
echo "TRAIN_DATA_$3_1E = [" > $2
while read line
do
tot="$(echo $line ... | true |
513c73a45e72256c537f0832187d65871a136590 | Shell | timehook/cli-client | /ci/style.sh | UTF-8 | 236 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
GOIMPORTS_FILES=$(gofmt -l .)
if [ -n "${GOIMPORTS_FILES}" ]; then
printf >&2 'goimports failed for the following files:\n%s\n\nplease run "gofmt -w ." on your changes before committing.\n' "${GOIMPORTS_FILES}"
exit 1
fi
| true |
07f575df9b64e88fe3eaaea6cf2df6430fa2b789 | Shell | ionSurf/interactive_animation_control | /run_example.sh | UTF-8 | 635 | 3.9375 | 4 | [] | no_license | #!/bin/bash
helpFunction() {
echo ""
echo "Usage: $0 -p port"
echo -e "\t-p Defines the port to use for the temporary web server"
exit 1 # Exit script after printing help
}
#while getopts "a:b:c:" opt
while getopts "p:" opt
do
case "$opt" in
p ) port="$OPTARG" ;;
? ) helpFunction ;; # Print... | true |
2da9068fd659b5f0ec872208de5d82b1c7962c30 | Shell | cqmba/rocko-trusted | /meta-tpmenable/recipes-tpmscripts/tpmscripts/files/signature/signature.sh | UTF-8 | 3,039 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# das Script lässt vom TPM eine Signatur für externe Daten erzeugen
# das asymmetrische Schlüsselüaar wird auf dem TPM erzeugt
# der private Key verschlüsselt auf dem TPM und kann nicht ausgelesen werden
# der öffentliche Schlüssel wird gelesen und wird zurPrüfung der Signatur extrahiert
# mittels Open... | true |
2072229f87707c539ca3c3e0480b690a2a984ecb | Shell | steven-cruz/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/10-fizzbuzz | UTF-8 | 418 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
#Displays FizzBuzz when the number is a multiple of 3 and 5.
#Displays Fizz when the number is multiple of 3.
#Displays Buzz when the number is a multiple of 5.
#Otherwise, displays the number.
i="1"
while (( i <= 100 )); do
if (( i%15==0 ))
then
echo "FizzBuzz"
elif ((i%5==0))
then... | true |
c8e235259aecbf1605890386ac8d1f5a29f0d672 | Shell | ehles/aux_scripts | /mirantis/config.sh | UTF-8 | 2,344 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
source ${SCRIPTPATH}/utils.sh
export WORK_PATH=~/work/dpdk/tpi76/fuel_devops/data
###############################################################################
# Local variables
####################################################################... | true |
2721932be5fd207fd6e70b825070f66429d99eb4 | Shell | open-estuary/armor | /testing/test_scripts/test_setpci.sh | UTF-8 | 1,012 | 3.140625 | 3 | [] | no_license | ###############################################################################
# This script tests the setpci tool
#Usage:
# $ sh test_setpci.sh
################################################################################
#!/bin/bash
bash check_install.sh setpci
status=$?
if test $status -eq 1
then
ex... | true |
dc76bb217ccd99db48b4be835402cee05fb7a95d | Shell | facubara/orga2 | /TP2/entregable/tp2-bundle.v2/src/experimentos/funciones.sh | UTF-8 | 803 | 3.296875 | 3 | [] | no_license | #!/bin/bash
DIR=(log mem txt ult blue hsl1ch)
#reciben un directorio valido
function quitarOutliers()
{
tmp=tmp.txt
for file in $1/*
do
echo "quitando outliers de $file en $1"
sort -g $file>$tmp
sed '1,200d' $tmp>$file
sort -g -r $file>$tmp
sed '1,200d' $tmp>$file
rm $tmp
done
}
function Promedi... | true |
ab3e4a5e4972fd662e5f2493f959d748763ce308 | Shell | rahulgidde/Shellscript | /dictionary/RollDie.sh | UTF-8 | 665 | 3.796875 | 4 | [] | no_license | #!/bin/bash -x
declare -A die
#VARIABLE
maximum=0
# CALCULATING DICE NUMBER WHO REACH MAXIMUM AND MINIMUM COUNT
while [ $maximum -ne 10 ]
do
number=$((1+RANDOM%6))
die[$number]=$(( $((die[$number])) + 1 ))
minimum=${die[1]}
for (( index=1; index<=${#die[@]}; index++ ))
do
if [ $((die[$index])) -gt $maximum ]... | true |
69e6652759ea5acbc4bebcdce1885c5d1b1a0cf1 | Shell | hexnut/scripts | /moodate.sh | UTF-8 | 594 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# Author: Stephen Collins
# Date: 2016-04-01
# Description: Instruct the cow to show system time and hostname.
# Global inits
M=`hostname`
ARG=$1
# Draw the cow
function update_screen(){
clear
F=$(mktemp /tmp/moodate.XXXXXX)
figlet -f small $M >> $F
cowthink -W 30 -f default "... | true |
101ea737fae90b1ddc0e1b35565eb848ae923e80 | Shell | pydata/bottleneck | /tools/travis/bn_setup.sh | UTF-8 | 636 | 2.828125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -ev # exit on first error, print commands
if [ "${TEST_RUN}" = "style" ]; then
flake8
black . --check --exclude "(build/|dist/|\.git/|\.mypy_cache/|\.tox/|\.venv/\.asv/|env|\.eggs)"
else
if [ "${TEST_RUN}" = "sdist" ]; then
python setup.py sdist
ARCHIVE=`ls dist/*.t... | true |
56f38f20b2abccff9794b171a25a18b2acda7d03 | Shell | foundeo/fuseless | /test.sh | UTF-8 | 1,514 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ !$LUCEE_VERSION ]]; then
LUCEE_VERSION=5.3.6.61
fi
if [ -f "java/jars/lucee-light-$LUCEE_VERSION.jar" ]; then
echo "lucee-light-$LUCEE_VERSION.jar already there, skipping download"
else
#download lucee jar
echo "Downloading lucee-light-$LUCEE_VERSION.jar"
echo "https://cdn.lucee.org/lucee-ligh... | true |
92b87143b2ec47dfb83804467e627851a41609ac | Shell | kowalskey/toolz | /svn-backup/backup_repos.sh | UTF-8 | 1,100 | 3.890625 | 4 | [] | no_license | #!/bin/bash
REPOS_ROOT=/home/svnbackup/repos
BACKUP_ROOT=/home/svnbackup/backups
NUM_BACKUPS=60
HOT_BACKUP_SCRIPT=~/bin/hot-backup.py
HOT_BACKUP_SCRIPT_ARGS="--archive-type=bz2 --num-backups=$NUM_BACKUPS --verify"
SVNSYNC=$(which svnsync 2>/dev/null)
REPOS=(repo1 repo2)
echo "test" >&2
for REPO in ${REPOS[@]}
do
... | true |
91545b3de5e4ef1d8c8227d4bc36427e6c51c93e | Shell | ellerbrock/gitlab-terraform | /templates/userdata.tpl | UTF-8 | 1,477 | 2.984375 | 3 | [] | no_license | #!/bin/bash -ex
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
apt-get update
echo "Installing nfs-common"
apt-get install -y nfs-common
echo "nameserver 169.254.169.253" > /etc/resolv.conf
echo "Creating gitlab-data mount point"
mkdir -p ${mount_point}
echo "${fs_id}.efs.${region}.am... | true |
125222f61581b66237db636e7def32952f049d9b | Shell | hant0508/hant0508.github.io | /comp/edit.sh | UTF-8 | 255 | 3.203125 | 3 | [] | no_license | #!/bin/bash
if [[ "$1" == "add" ]]
then
s=`echo "$2" | tr ' ' '\n'`
echo "$s" >> dic.txt
sort -u dic.txt > dic.back
cp dic.back dic.txt
rm dic.back
elif [[ "$1" == "rm" ]]
then
sed -i "/\<$2\>/d" dic.txt
else
echo "add \"word\" or rm \"word\""
fi
| true |
7974166b803b9d2af0981d10f4d88e8b4e1a2d55 | Shell | jfharden/template-php-docker-site | /config/docker/entrypoint.sh | UTF-8 | 3,068 | 3.609375 | 4 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/bash
set -e
echo "Writing PHP config file"
echo "<?php
\$_CONF['db_name'] = \"$DB_NAME\";
\$_CONF['db_host'] = \"$DB_HOST\";
\$_CONF['db_user'] = \"$DB_USER\";
\$_CONF['db_pass'] = \"$DB_PASS\";
\$_CONF['sslmode'] = \"$SSLMODE\";
\$_CONF['sslrootcert'] = \"$SSLROOTCERT\";
?>" > /secrets/config.php
chm... | true |
01ebbdee050d6979b026241f0df416beda97376f | Shell | Bkoul26/NTI300 | /LDAP | UTF-8 | 4,550 | 2.875 | 3 | [] | no_license | #!/bin/bash
yum install -y git
cd /tmp
git clone https://github.com/Bkoul26/NTI300
yum install -y openldap-servers openldap-clients
cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
chown ldap. /var/lib/ldap/DB_CONFIG
systemctl enable slapd
systemctl start slapd
yum install -y httpd phpldapa... | true |
d55874b3de95e1371f7d6d496033d71dba423372 | Shell | violinshack/my-sfdx-simple | /bin/extra-org-setup.sh | UTF-8 | 910 | 3.84375 | 4 | [] | no_license | #!/usr/bin/env bash
##
# Performs additional app setup on org.
#
# This script:
# - Enables PermissionSet on configured workspace,
# - Loads sample data.
##
# Debug, echo every command
#set -x
# Wrapper function to capture command return codes, detect failure,
# and, if error, log message
runCmd() {
local cm... | true |
81e5bfe573c12e67147bac2fcb27ef364d8a86c2 | Shell | cheyang/tensorflow-samples | /sshd/startup.sh | UTF-8 | 361 | 3.390625 | 3 | [] | no_license | #!/bin/bash
SSHDIR=/home/mpirun/.ssh/
if [ -n "$SSH_PORT" ]; then
sed -ri "s/Port 22/Port ${SSH_PORT}/g" /etc/ssh/sshd_config
echo "Port ${SSH_PORT}" >> ${SSHDIR}/config
fi
if [[ -z "${SSH_PASSWORD}" ]]; then
SSH_PASSWORD="tryHPC"
fi
echo "Password Of User root is $SSH_PASSWORD"
echo "root:$SSH_PAS... | true |
88f4a505c03b6d2b2c8814069e4144df9c544e64 | Shell | darkwhispering/Newvhost | /newvhost | UTF-8 | 7,979 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# title : newvhost
# description : adds a new apache virtual host and create database if wanted
# usage : No parameters. Just invoke script-name.
# version : 1.1.0
#==================================================================================
#----------------... | true |
846e2436e92b5d588fb25c16f85b38a878224186 | Shell | konnov/bymc | /bymc/verifypa-nusmv-bdd | UTF-8 | 2,197 | 3.921875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Run the abstraction refinement loop with nusmv in bdd mode
NUSMV_VERBOSE=0
MEM_LIMIT="unlimited"
TIME_LIMIT="unlimited"
MONO=""
REACH_REL=""
NO_JUSTICE=""
SOURCE=""
# parse options
DIR=`dirname $0`
DIR=`cd "$DIR"; pwd`
TEMPOPTS=`"$DIR"/script/ggetopt.py -o h,w: --long help,nusmv-verbose:,rel-mono,rel-... | true |
4f2230dfd34dd7781fa18764f3779e2cfac88bdc | Shell | AngelaZhou779/CVL_SequenceAnaylsis | /rmDupPicard.sh | UTF-8 | 489 | 2.78125 | 3 | [] | no_license | #!/bin/bash
project_name=cvl
project_dir=/home/sarahm/cvl/storage
pic=/usr/local/picard-tools-1.131/picard.jar
sort_dir=${project_dir}/sort_dir
tmp=${project_dir}/tmp
rmd_dir=${project_dir}/rmd_dir
files=(${sort_dir}/*)
for file in ${files[@]}
do
name=${file}
base=`basename ${name} .sort.bam`
java -Xmx2g -jar ${pi... | true |
d2033c4d41442bbe9576c5048fa641652fe9ab5f | Shell | stuggi/neutron-operator | /templates/neutronapi/bin/bootstrap.sh | UTF-8 | 1,263 | 2.765625 | 3 | [] | no_license | #!/bin//bash
#
# Copyright 2020 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | true |
acd595301c23109eeaeb45e614bf822c028cb004 | Shell | xlii-chl/scripts | /project/extend/v2/services/wordpress5/init.sh | UTF-8 | 384 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
wordpress5Init() {
# Wordpress version
cat <<EOF >> .wex
# Wordpress 5
WP_DB_CHARSET=utf8 # Database charset
WP_DB_TABLE_PREFIX=wp_ # Used for wordpress database
WP_DEBUG_ENABLED=false # Will allow wordpress debug mode
WP_VER... | true |
3d7652fe6043d6212a192a19e569ae4037183f33 | Shell | chte/links-mautic-theme | /build.sh | UTF-8 | 99 | 2.671875 | 3 | [] | no_license | #!/usr/bin/env bash
FOLDER="$1"
echo "Zipping $1"
rm -f "$1".zip
cd "$1"; zip -r ../"$1".zip *
| true |
7923804aa954f275388651fabdebcf7022d8be51 | Shell | antenore/svntogit-community | /python-confuse/trunk/PKGBUILD | UTF-8 | 930 | 2.71875 | 3 | [] | no_license | # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Mubashshir <ahmubashshir@gmail.com>
# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
pkgname=python-confuse
pkgver=1.6.0
pkgrel=1
pkgdesc='Painless YAML config files for Python'
arch=(any)
url=https://github.com/beetbox/confuse
license=(... | true |
ca5107a878d351179639a0b909e04fcd87835ae1 | Shell | aws/s2n-tls | /codebuild/bin/test_libcrypto_interning.sh | UTF-8 | 6,513 | 3.515625 | 4 | [
"Apache-2.0",
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "licens... | true |
263c90e82e319a01bf540baf03a6a7304b5837d3 | Shell | sabd-project/sabd-desktop | /install.sh | UTF-8 | 305 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Use this script to install packages
# Which use native modules
# To prevent overwritting normal nodejs headers
# thanks to @Kishan
# Source our vars
. "$PWD/setup-x64.sh"
# Make electron build dir if not exists
mkdir -p ~/.electron-gyp
# Run
HOME=~/.electron-gyp npm install "$@"
| true |
388ab194771962982edfaaf0a6c05c6081a0f021 | Shell | dasJ/dotfiles | /zsh/include/keys.zsh | UTF-8 | 1,888 | 3.015625 | 3 | [] | no_license | ###############
## Key configuration
###############
# vi keybindings
bindkey -v
# No lag when switching vi modes (0.1 secs)
KEYTIMEOUT=1
# Arrow up for history
if [[ "${terminfo[kpp]}" != "" ]]; then
bindkey "${terminfo[kpp]}" up-line-or-history
fi
# Arrow down for history
if [[ "${terminfo[knp]}" != "" ]]; then
... | true |
252320c81376441fdc5e44f9e6d85c3395cd4ecb | Shell | mori-dev/bikeshed | /man2text | UTF-8 | 88 | 2.609375 | 3 | [] | no_license | #!/bin/sh
[ $# -eq 1 ] || { echo 'usage: man2text command'; exit 1; }
man $1 | col -b
| true |
cc3b05c640673d9e10349879fb0b50d752bab383 | Shell | devimteam/dcos-pakages | /marathon-consul/build | UTF-8 | 873 | 2.625 | 3 | [] | no_license | #!/bin/bash
mkdir -p "$PKG_PATH/usr/"
#cp -rp /pkg/src/marathon/target/scala-2.11/marathon-assembly-*.jar "$PKG_PATH/usr/marathon.jar"
cp -rp /pkg/src/marathon-consul "$PKG_PATH/usr/marathon-consul"
#chmod -R o+r "$PKG_PATH/usr"
chmod a+x $PKG_PATH/usr/marathon-consul
marathon-consul_service="$PKG_PATH/dcos.target.... | true |
589d9a299f2cac91082344d1a6ee01b54a913bb6 | Shell | komin92/bash-scripts | /rsyncvar.sh | UTF-8 | 906 | 3.515625 | 4 | [] | no_license | #!/bin/bash
tarih=$(date +%d/%m/%Y)
saat=$(date +%H:%M:%S)
zaman="$tarih $saat"
logdir="/var/log/rsynccore.log"
email="eposta@example.com"
if [[ $1 =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
echo -n
else
echo "IP yanlis yazdin."
exit 0
fi
ping -c 1 $1 > /dev/null
if [ $? -eq 0 ];then
echo "$z... | true |
8a09c92ecfb829b55ba5de8d337d25eeae476a5c | Shell | erineyes/ESMLabs_myown | /scripts/build-live.sh | UTF-8 | 1,733 | 2.8125 | 3 | [] | no_license | #!/bin/bash
WORKING_DIR=$(pwd)
export LLVM_TOOLCHAIN=/usr/lib/llvm-6.0/bin
export CC=$LLVM_TOOLCHAIN/clang
export CXX=$LLVM_TOOLCHAIN/clang++
export AR=$LLVM_TOOLCHAIN/llvm-ar
export AS=$LLVM_TOOLCHAIN/llvm-as
export LD=$LLVM_TOOLCHAIN/ld.lld
echo "##################### BEGIN BUILD LIVE555... #####################"
mk... | true |
94af509efa4753d7c0292f081196662a59a7caf9 | Shell | Chen-Zhihui/SeismicPackage | /CPSeis/scripts/build_lam.sh | UTF-8 | 2,703 | 3.3125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
#<license>
#-------------------------------------------------------------------------------
# Copyright (c) 2007 ConocoPhillips Company
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the So... | true |
86688e74a07d074d7b018da44b2dea1d134e0c3b | Shell | relsqui/doily | /make_release.sh | UTF-8 | 199 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -z "$1" ]]; then
echo "Please provide a release name."
exit 1
fi
new_release="releases/doily-$1.tar.gz"
tar -czf "${new_release}" doily default.conf
ls -l "${new_release}"
| true |
fa4e08f200687a041d2eada47d1f2c5202213030 | Shell | Nickdv9/vendor_candy | /bootanimation/generate-bootanimation.sh | UTF-8 | 2,844 | 3.53125 | 4 | [] | no_license | #!/bin/bash
CWD=`pwd`
BASEW=$1 # Device Width
BASEH=$2 # Device Height
HALF_RES=$3 # Half the size of the device resolution (true or false)
PORTW=1400 # Original bootanimation image based on unmodified width
PORTH=2560 # Original bootanimation image based on unmodified height
if [ -f "/usr/bin/convert" ]; then
if [... | true |
e9dd473b5ffea46b1691c6ad1718fd0126102432 | Shell | delkyd/alfheim_linux-PKGBUILDS | /dispmanx_vnc/PKGBUILD | UTF-8 | 702 | 2.671875 | 3 | [] | no_license | # Maintainer: graysky <graysky AT archlinux DOT us>
pkgname=dispmanx_vnc
pkgver=r17.8af7fcf
pkgrel=1
pkgdesc="VNC Server for Raspberry Pi using dispmanx"
arch=('armv7h' 'armv6h')
url="https://github.com/hanzelpeter/dispmanx_vnc"
license=('MIT')
depends=('libvncserver' 'raspberrypi-firmware')
makedepends=('git')
source... | true |
bc0edbe5947e768faf0960ddd19d52eeeed3fc49 | Shell | gekkstah/smartMeter | /deployment.sh | UTF-8 | 2,770 | 2.984375 | 3 | [] | no_license | # deployment of $1 to pi@192.168.2.42:production/. and remote execution...
#
TARGETSERVER=krukas.dyndns.org
# TARGETSERVER=192.168.2.42
TARGET_SSH_PORT=42022
TARGET_HTTP_PORT=42080
case "$1" in
'-devServer' )
clear
echo "starting dev environment"
sudo apachectl stop
sudo apachectl start
node /Volumes/docdata/j... | true |
97d0fd94068aad322c0d7e8040fcc3ddf05da48c | Shell | norjms/serverinstallscript | /install.sh | UTF-8 | 4,474 | 3.78125 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
#
#Check if user is root
#Set Paths
PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin
#Check for root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use the root user to install the software."
exit 1
fi
#----------------------------------------... | true |
00b0b45b739ac76e9029b09494028773cfdfa2b6 | Shell | aminnj/redis-htcondor | /scripts/condor_executable.sh | UTF-8 | 1,220 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
function getjobad {
grep -i "^$1" "$_CONDOR_JOB_AD" | cut -d= -f2- | xargs echo
}
if [ -r "$OSGVO_CMSSW_Path"/cmsset_default.sh ]; then
echo "sourcing environment: source $OSGVO_CMSSW_Path/cmsset_default.sh"
source "$OSGVO_CMSSW_Path"/cmsset_default.sh
elif [ -r "$OSG_APP"/cmssoft/cms/... | true |
4b6ac84168b2a15b0d54e2a2722f3ca7a128282a | Shell | orenchuk/OS_words_counter | /executer.sh | UTF-8 | 120 | 2.84375 | 3 | [] | no_license | N=5
rm res.txt
for i in 1 2 4 8
do
for j in $(seq 1 $N)
do
./counter $i >> res.txt
done
echo
done
| true |
9a492c866569802206cb118bc85868c3bc100846 | Shell | duganchen/my_slackbuilds | /ripgrep.SlackBuild | UTF-8 | 1,548 | 3.25 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
PRGNAM=ripgrep
BUILD=${BUILD:-1}
TAG=${TAG:-dc}
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PRGNAM
URL=$(
python3 - << EOF
import os
from pathlib import PurePosixPath
import requests
url = 'https://api.github.com/repos/BurntSushi/ripgrep/releases'
headers = {'Accept': 'application/vnd.github.v3+js... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.