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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
742c154f297f23f3daf8db51d65b45c39756f2e8 | Shell | Suncoldx333/repoPushShellScript | /pushRepoScript.sh | UTF-8 | 3,506 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#--------------------------
#
# 该脚本应放置在与 *.podspec 文件同一目录
# 文件夹名称应与要生成的私有库的名称一致
#
# 比如建立一个叫 BLFamilyModule 的私有库,则文件路径如下所示
# BLFamilyModule
# |----BLFamilyModule(私有库代码所在位置)
# |----BLFamilyModule.podspec
# |----Example (示例代码)
# |----该脚本.sh
# 运行前先执行 chmod +x ./脚本.sh 获取脚本执行权限
#
#-----------------------... | true |
00b7599af67a63d983b0e1e3976b0d58bab0f0b6 | Shell | pld-linux/tripwire | /tripwire.verify | UTF-8 | 1,102 | 3.875 | 4 | [] | no_license | #!/bin/sh
HOST_NAME=`uname -n`
TWCFG_PATH=/etc/tripwire
TWDB_PATH=/usr/spool/tripwire
TWROOT_PATH=/usr/sbin
MAILTO="root" # Email addresses that should recieve reports
#
# Define checks which alert user to misconfiguration or run the check
#
if [ ! -e ${TWDB_PATH}/${HOST_NAME}.twd ]; then
echo "**** Er... | true |
80dc6492daa530546e4b74f5cbce41becc178c33 | Shell | rrbn/netpoint9 | /config/includes.chroot/usr/local/bin/flush_logs | UTF-8 | 384 | 3.1875 | 3 | [] | no_license | #!/bin/bash
_CMDLINE="$(cat /proc/cmdline)"
DEBUG=""
for _PARAMETER in ${_CMDLINE}
do
case "${_PARAMETER}" in
live-config.debug|debug)
DEBUG="1"
;;
esac
done
if [ -z "$DEBUG" ]
then
echo "flush logs...."
echo "" > /var/log/Xorg.0.log
echo "" > /var/log/dmesg
echo "" > /var/log/messages
echo "" > /var/lo... | true |
1dbb681f24e68400e992e2b34323aa80011bbbe4 | Shell | AngelofWoe/arkos | /RG351P-M/Ubuntu OS Partition/var/lib/dpkg/info/policykit-1.postinst | UTF-8 | 2,513 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# postinst script for policykit-1
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
... | true |
61d972e38d01c897e031b19c4b20f0bebd12fd14 | Shell | PiedPiperOCD/K-split | /scripts/plot/collect-med.sh | UTF-8 | 414 | 3.203125 | 3 | [] | no_license | #!/bin/bash
col=$1; shift
sizes=( $@ )
dir=$( dirname $0 )
#printf "%-30s\t" "exp"
#echo $@
type=()
for file in ./res_*${sizes[0]}*; do
tt=${file#*res_}
type+=( ${tt%%_${sizes[0]}*} )
done
printf "%-20s" "Size"
echo "${type[@]}"
for size in ${sizes[@]}; do
printf "%-20s\t" $size
for t in ${type[@]}; do
f=$( ... | true |
7b5f64519a8c494b7c76089616ad9de4c194dbe2 | Shell | hqs2212586/-shell- | /bondingtest.sh | UTF-8 | 1,108 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# 加载bonding模块
modprobe bonding
# 命令的退出状态
if [ $? != 0 ] ;then
echo '`bonding`模块Error'
fi
echo 'Kernel Check ok'
echo 'Config NetworkManager'
systemctl stop NetworkManager.service
systemctl disable NetworkManager
systemctl mask NetworkManager
# 网卡接口模式
echo 'collecting network info'
v1=$(ifconfig | grep... | true |
7ba4560e0d253aeb9a79140a70e88ac247ae48ee | Shell | Awalrod/jco-datalogger | /src/DEBIAN/postinst | UTF-8 | 816 | 3.03125 | 3 | [] | no_license | #!/bin/sh
echo "start of postinst script"
# update needed changes in apache2
a2query -m cgi -q
ISTAT=$?
#echo "ISTAT ${ISTAT}"
set -e
ldconfig
if [ ${ISTAT} -ne 0 ]
then
sudo a2enmod cgi >/dev/null 2>&1
fi
mkdir -p /var/www/html/data
service apache2 restart
systemctl daemon-reload
echo "reload"
systemctl e... | true |
918f6569ac557592b793735196af3f7d758b251e | Shell | level5/LaTeX | /programming/code/shell/abs-guide/useful-script/gcd.sh | UTF-8 | 472 | 4.1875 | 4 | [] | no_license | #! /bin/bash
# gcd.sh: Greatest Common Divisor
# Argument check
ARGS=2
E_BADARGS=85
if [ $# -ne "$ARGS" ]; then
echo "Usage: `basename $0` first-number second-number"
exit $E_BADARGS
fi
# check if arguments are integers
# solution 1, regex [[ $1 =~ ^-?[0-9]+$ ]]
# solution 2, test with if [ "$1" -eq "$1" ] 2>... | true |
4058a4b3060ec4e33e07132571b9b900430cc8df | Shell | plathome/debian_based_firmware | /build_ramdisk/etc.stretch.sysvinit/init.d/openblocks-setup | UTF-8 | 9,794 | 3.53125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
### BEGIN INIT INFO
# Provides: openblocks-setup
# Required-Start: udev
# Required-Stop: umountfs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Config storage area for OpenBlocks
# Description:
### END INIT INFO
#
# Copyright (c) 2013-2022 Plat'Home CO., LTD.
# All rig... | true |
7e386367db95af4273b3e0fdad1ceabf79e879b3 | Shell | pressla/caradali | /test/tmp/etc/config/m2mdali/test/mdumpme.sh | UTF-8 | 730 | 2.546875 | 3 | [] | no_license | #run the meshdump tool to collect all incoming messages from connected nodes and generate a parameter settings file for this mesh
#all mac ids will be logged to mactablem2m.json and shall be stored in /etc/config/mactablem2m.json
#the file is read by m2m-dali.js to set dynamically parameters
#
# % will be replaced by b... | true |
b2ada1941d2de0d8c32e14dea5cab4f4419243c3 | Shell | swwind/dotfiles | /ssr.sh | UTF-8 | 636 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
if [ ! -d shadowsocksr ]; then
git clone -b manyuser --depth=1 https://github.com/shadowsocksr-backup/shadowsocksr.git
fi
help() {
cat ssr-help.txt
}
if [ $# = 0 ]; then
help
elif [ $1 = "start" ]; then
cd shadowsocksr/shadowsocks
sudo python local.py -d start
elif [ $1 = "stop" ]; then
c... | true |
14c4bfb1ac4290d0705d945df300b63a3f9bbfac | Shell | adaptto/2017-provisioning-local-aem-with-conga | /deploy_author.sh | UTF-8 | 1,472 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# defaultconfig
sling_url="http://localhost:4502"
sling_user="admin"
sling_password="admin"
conga_node="aem-author"
####
default_build()
{
motd
clean_install
deploy_artifacts
}
#####
motd()
{
echo "********************************************************************"
echo ""
echo " Cleans and... | true |
afbc61d42d28c23cc23b5ae6d53a5efdce7d1503 | Shell | andrebossi/kvm-templates | /Debian/start.sh | UTF-8 | 1,673 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
DISK_FORMAT="qcow2" # Define VM disk image format.. qcow2|img
DISK_PATH="/var/lib/libvirt/images" # Define path where VM disk images are stored
DISK_SIZE="30" # Define disk size in GB
EXTRA_ARGS="console=ttyS0,115200n8 serial"
LOCATION="http://sft.if.usp.br/debian/dists/stable/main/installer-amd64/... | true |
9fc8d8b63177429838eec73facfcf4e4a58442fb | Shell | troglodyne/selenium-scripts | /selenium-headless-ubuntu16-quicksetup.sh | UTF-8 | 4,099 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# OS Setup
sudo apt-get install -y aptitude ubuntu-minimal
sudo aptitude markauto -y '~i!~nubuntu-minimal'
sudo apt-get install -y linux-image-virtual openssh-server
sudo apt-get update
sudo apt-get upgrade -y
# Supporting Software
sudo apt-get install -y xvfb x11vnc unzip default-jre openbox
# Fix hostn... | true |
72a83f2dbd0dd56bda09a1f5593c756a37a999e9 | Shell | holta/mksdcard | /trees/1.0/usr/bin/xs-desktop | UTF-8 | 259 | 2.578125 | 3 | [] | no_license | #!/bin/bash
# part of XSCE
# script to turn off the browser at boot
if [ `id -u` -ne 0 ]; then
echo "please become root to execute this command"
exit 1
fi
systemctl enable olpc-dm.service
systemctl start olpc-dm.service
rm -f /home/olpc/.browser-at-boot
| true |
70c8bfe4b4924705ec3011c9186c6ad682d84770 | Shell | ualex73/dsmr-reader-docker | /app/run.sh | UTF-8 | 4,591 | 3.859375 | 4 | [] | no_license | #!/bin/bash
set -eo pipefail
function LOG()
{
dt=$(date '+%Y-%m-%d %H:%M:%S')
echo "$dt $*"
}
function CheckDBConnection()
{
CMD=$(command -v pg_isready)
CMD="$CMD -h ${DJANGO_DATABASE_HOST} -p ${DJANGO_DATABASE_PORT} -U ${DJANGO_DATABASE_USER} -d ${DJANGO_DATABASE_NAME} -t 1"
LOG "INFO: Executing '${CMD}... | true |
73285593c5c10349e9c6e9de275b333895f05b94 | Shell | shenoyvvarun/twit-miner | /get_text.sh | UTF-8 | 596 | 3.140625 | 3 | [] | no_license | #!/bin/bash
for id in `cat $1 | cut -d' ' -f2 | uniq`
do
max_id=`grep $id $1 | cut -d' ' -f1 | head -1`
temp=`grep $id $1 | cut -d' ' -f1 | tail -1`
since_id=`expr $temp - 1`
curl --retry 5 --max-time 500 "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&exclude_replies=... | true |
d90d59a49042f5b8bb2e2d933c1ecfb9fc829b49 | Shell | alimpfard/avconv-buildpack | /bin/compile | UTF-8 | 2,077 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
indent() {
sed -u 's/^/ /'
}
echo '-----> Install Libav'
BUILD_DIR=$1
CACHE_DIR=$2
VENDOR_DIR="${BUILD_DIR}/vendor"
INSTALL_DIR="${VENDOR_DIR}/libav"
CACHE_FILE="${CACHE_DIR}/libav.tar.gz"
LIBAV_VERSION="${LIBAV_VERSION:-12.3}"
LIBAV_VERSION_MAJOR=$(printf "%s" "$LIBAV_VERSION" | sed 's... | true |
28d5869b7f4d7cad38aa1fc7f7669cd1d889b1a3 | Shell | sandorkruk/gzh_red_disks | /new_ferengi/run_ferengi/run_ferengi.sh | UTF-8 | 432 | 2.640625 | 3 | [] | no_license | #!/bin/bash
for i in {0..1095}; do
COMMAND="/local/site/pkg/itt/idl/idl81/bin/idl"
ARGUMENTS="-e \"ferengify_1,$i\""
SUBMITCOMMAND="condor_submit -a \"executable=${COMMAND}\" -a \"arguments=${ARGUMENTS}\" -a \"output=log/ferengi$i.out\" -a \"error=log/ferengi$i.error\" -a \"log=log/ferengi$i.log\" -a \"get... | true |
b1ec28f5c9623c2162045d7c51d866c18280f8da | Shell | CobbledSteel/ee290-robotics-firemarshal-workloads | /run_firesim.sh | UTF-8 | 1,438 | 3.046875 | 3 | [] | no_license | #!/bin/sh
DEPLOY_DIR="/home/centos/chipyard/sims/firesim/deploy/workloads/fed-rbdl-benchmark"
RDIR=$(pwd)
cp firesim-fed-rbdl.json $DEPLOY_DIR/../
if [ ! -d "$DEPLOY_DIR" ]; then
# Take action if $DIR doesnt exist. #
echo "Installing symbolic links in ${DEPLOY_DIR}..."
mkdir $DEPLOY_DIR
cd $DEPLOY_DIR
ln -s ... | true |
7931b0c3db7cdf0920f5b3fdce2496334661a0f8 | Shell | chardy/deployscripts | /lib/nosql.sh | UTF-8 | 859 | 3.328125 | 3 | [] | no_license | #!/bin/bash
function install_mongodb
{
log "install_mongodb: Installing mongoDB..."
# make sure no mongodb clients is installed
# sudo apt-get remove mongodb-clients
# install mongodb from 10gen directly
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb... | true |
fbca23f140ff576960a37df40fcbaa61b5a27642 | Shell | rockymontana/dotfiles-1 | /zsh/exports.zsh | UTF-8 | 538 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env zsh
# ============ Exports =================
# Default editor is vim
export EDITOR='vim'
# Stock Arch Linux
export ARCHFLAGS="-arch x86_64"
# If Perl is found, add to PATH
test -d "/usr/bin/vendor_perl" && PATH="$PATH:/usr/bin/vendor_perl"
# If we have a local bin, add it
test -d "$HOME/bin" && PATH... | true |
c7fd031f76b6731ac87aa34bec7c4418be635c9c | Shell | explorerwjy/CUMC | /Exome-pipeline-Jiayao/ExmAdHoc.8.Alignment_Finisher.sh | UTF-8 | 6,365 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#$ -cwd -l mem=16G,time=6:: -N FinishBWA
# This script can be used to run the final steps of the bam to bam mapping scripts (ExmAln.1b) when they have completed the bwa-mem mapping but run out of time in the latter steps. It should be run within the alignment working directory, with the same arguments as t... | true |
5f3114c6b45742e966dbe6a5082f545911fe8281 | Shell | holygeek/vimrc | /bin/gh | UTF-8 | 1,478 | 4.03125 | 4 | [] | no_license | #!/bin/sh
# gh
# Created: Wed Sep 16 13:50:08 MYT 2015
me=$(basename $0)
usage() {
echo "SYNOPSIS
$me [-h] [-o] <sha1>
DESCRIPTION
Show or open the github commit link for <sha1>
OPTIONS
-c
Copy the url to clipboards
-h
Show this help message
-o
Open the link in a browser"
}
open_in_browser=
copy... | true |
ffaea7f1755602f4e87569d77665d38de64ac93c | Shell | cc81111/deploy-k8s | /cfg/scp_cert.sh | UTF-8 | 180 | 2.53125 | 3 | [] | no_license | #!/bin/bash
cat /opt/k8s-deploy/allnode-pubip|while read line
do
IP=($line)
scp /opt/cert/etcd/* root@$IP:/opt/etcd/ssl/;
scp /opt/cert/k8s/* root@$IP:/opt/kubernetes/ssl/;
done
| true |
6d978c3614ef8f42f0f4cd35cbdbe665e95e2642 | Shell | vduggen/shell-script-course | /mod3/chaves_flag.sh | UTF-8 | 3,017 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# listaUsuarios.sh - extrai usuários do /etc/passwd
#
# Site: https://4fasters.com.br
# Autor: Vitor Luiz Duggen
# Manutenção: Vitor Luiz Duggen
#
# ------------------------------------------------------------------------ #
# Irá extrair usuários do /etc/passwd, havendo a possibilidade ... | true |
09d9ed6e3343001b8690da50d4e3739729a9d10b | Shell | RubyLin065/bash_scripts | /read_line.sh | UTF-8 | 649 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# this file will output series of command to
# use python to control the news web scraping
# wish list will perform like following
# `cat Data/wishlist.txt` >> 台郡 聯發科 元大 國泰金 鴻海
#
declare -c python_script;
python_script = "scrp_news_copy.py";
./argsum.sh `cat Data/wishlist.txt` > wishcount_tmp.tmp
echo "sl... | true |
0dba7603a1b13007622dea22018209b9a84dbe34 | Shell | benauthor/dotfiles | /bashrc | UTF-8 | 4,581 | 3.09375 | 3 | [] | no_license | # ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# shush mac zsh warning
export BASH_SILENCE_DEPRECATION_WARNING=1
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more opti... | true |
801c226bd240835e16d798ba8d8fcc4d3a6e361f | Shell | Techo-Bingo/SystemController | /Interface/Scripts/collect_binlog.sh | UTF-8 | 1,885 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source ${g_home_dir}/common_function.sh
[ "$(whoami)" = 'root' ] || report_err 10 "请使用 root 执行"
[ -f /opt/UBP/svc_profile.sh ] || report_err 15 "环境不支持"
source /opt/UBP/svc_profile.sh
source /etc/profile
DAYS_INDEX=$1
if [ "${DAYS_INDEX}" = "一天" ]
then
DAYS=1
elif [ "${DAYS_INDEX}" = "三天" ]
then
DAYS=3... | true |
1e1c4e2a7d9608300656261cd86b3f12d9d0d2ae | Shell | double128/lab-login-shell-OLD | /old/eofkiller.sh | UTF-8 | 330 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#
# EOF KILLER
# Stops silly naughty boys from invoking CTRL+D. This needs to be done,
# as CTRL+D isn't a signal (like SIGINT) and rather an actual piece of
# data sent to the terminal to invoke an EOF.
for pid in $( pgrep -U $(whoami) ); do
logger "CTRL+D invoked, killing all login shell PIDs"
kill -9 ... | true |
5a5ecdb68b88fc583cdba0c62ae41f232fc4928e | Shell | jonsag/jsRename | /jsrename.sh | UTF-8 | 449 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# script to rename all spaces, commas and hashtags in files and directories recurcively
REPLACEMENT_CHAR=$1
if [ -z "$REPLACEMENT_CHAR" ]; then
REPLACEMENT_CHAR="_"
fi
echo "Will replace with the character $REPLACEMENT_CHAR"
echo
SED_STRING='s/[ #,]/'$REPLACEMENT_CHAR'/g'
find . | while read NAME;... | true |
d652615f9be6ae8cbd7e67cbcd4e1b6f40773c35 | Shell | rooty0/backup-utils | /mysql.sh | UTF-8 | 1,658 | 3.953125 | 4 | [] | no_license | #!/bin/sh
#
# Backup of MySQL v.1.2
# (c) Stanislav Rudenko, me [at] rooty [d0t] name
#
BASEDIR=$(dirname $0)
. "${BASEDIR}/.config"
NOW=$(/bin/date +"%Y.%m.%d.%H.%M")
DBS="$($PATH_BIN_MYSQL --defaults-file=${MYSQL_DEF_FILE} -Bse 'show databases')"
if [ -z "${DBS}" ]
then
echo "!!!DATABASE LIST IS EMPTY!!!" 1>&2
... | true |
741012344af5a784d6093ba60b2aafd53b188567 | Shell | fooofei/rustscan-build | /build.sh | UTF-8 | 531 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cur=$(dirname "$(readlink -f $0)")
set -x
ARCH=$(uname -m)
case $ARCH in
x86_64)
ARCH=amd64
;;
aarch64)
ARCH=arm64
;;
esac
build_from_source() {
home=$cur/build_rustscan
mkdir -p $home
cd $home
git clone https://github.com/RustScan/RustScan.git
cd... | true |
f371e6cc113bf6d0ea095ced79b24d99a45ad5d1 | Shell | aasaidane/docker-powerdns | /src/init.sh | UTF-8 | 2,417 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Init script
#
###########################################################
# Thanks to http://stackoverflow.com/a/10467453
function sedeasy {
sed -i "s/$(echo $1 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')/$(echo $2 | sed -e 's/[\/&]/\\&/g')/g" $3
}
if [ -z "$API_KEY" ]; then
# Generate a random API Key ev... | true |
89a0249447d321072bbbe3012946264985cf087c | Shell | mrfireboy/cf | /msysctl | UTF-8 | 2,627 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# --------------------------------------------------
# function:
# configure system parameters
# --------------------------------------------------
# mode mark
if ! cat /etc/sysctl.conf | grep -E "^# mode added option$" >/dev/null; then
echo "# mode added option" >> /etc/sysctl.conf
fi
/roo... | true |
7e247d49ad14012473e8b3826e6ed20f4b87cd07 | Shell | noob9527/dotfiles | /config/utils.sh | UTF-8 | 2,204 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$DIR/colorful.sh"
join_by() {
local IFS="$1";
shift;
echo "$*";
}
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $@" >&2
}
has_cmd() {
local command=$1
hash "$command" 2>/dev/null
}
get_os() {
case "$OSTYPE"... | true |
0da5e0c01a56029ff845c206076c380c646067bc | Shell | blaizedsouza/kube-cluster-osx | /src/kube-cluster-install.command | UTF-8 | 1,552 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# kube-cluster-install.command
#
# create in "kube-cluster" all required folders and files at user's home folder where all the data will be stored
mkdir ~/kube-cluster
mkdir ~/kube-cluster/tmp
mkdir ~/kube-cluster/logs
mkdir ~/kube-cluster/bin
mkdir ~/kube-cluster/cloud-in... | true |
f3912a449d7e4fcb3a0aa2f8b8b2f47d7942b6b0 | Shell | jessieuehling/popCNV | /pipeline/01_aln.sh | UTF-8 | 2,078 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/bash
#SBATCH --mem 4G --ntasks 8 --nodes 1 -J bwa
#SBATCH --out logs/bwa.%a.log --time 8:00:00
module load bwa/0.7.15
module unload java
module load java/8
module load picard
SAM_CN_CENTER=UNK
CONFIG=config.txt
GENOMEDIR=genome
READSDIR=input
BAMDIR=aln
TEMP=/scratch
SAMPLELIST=samples.csv
if [ ! -f $CONF... | true |
c5cf5b1360471e3ff5ba64159a180a01f79ca30a | Shell | TomekTrzeciak/improver | /tests/improver-nowcast-optical-flow/01-help.bats | UTF-8 | 5,563 | 2.859375 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/usr/bin/env bats
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2019 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are m... | true |
02ffcaa2c050dbe8b5beb059a969dd249c549a47 | Shell | Git-Adri/Utilities | /Kafka/create_topic.sh | UTF-8 | 441 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
if [ $# -eq 3 ]
then
## Create topics
~/kafka_2.12-2.3.0/bin/kafka-topics.sh --create \
--replication-factor $2 \
--partitions $3 \
--topic $1 \
--zookeeper localhost:2181
## List created topics
~/kafka_2.12-2.3.0/bin/kafka-topics.sh --list \
--zookeeper localhost:2... | true |
33d64a9286a78f684bf54d02cb7d912f1e4f2c16 | Shell | chxchx/config | /apply | UTF-8 | 162 | 2.9375 | 3 | [] | no_license | #!/bin/bash
for file in .*; do
if [ $file == "." ] || [ $file == ".." ] || [ $file == ".git" ]; then
continue
fi
ln -f $file ~/$file
done
source ~/.bashrc
| true |
56f13371f272323cb79732c265f271854e4a9a1d | Shell | liubida/about_bash | /ex9-reply.sh | UTF-8 | 740 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# ex9-reply.sh
# author: liubida
# Usage: REPLY is the default value for a 'read' command.
# if there is no variable absorb a 'read' command, then value is set to $REPLY
echo
echo -n "What is your 1st vegetable? "
read
echo "Your 1st vegetable is $REPLY."
# REPLY holds the value of last "read" if and on... | true |
74e32c4230159ad400c5a6ff4067773c11ff75cb | Shell | sujatce/security-project | /implementation.sh | UTF-8 | 1,980 | 3.546875 | 4 | [] | no_license | #!/bin/bash
echo -e "\nFollowing set of commands enable UBUNTU Firewall and sets rules to allow only OpenSSH, HTTP & HTTPS traffic"
sudo ufw status
echo -e "\nFirst ensure default firewall to be open to not accidentally close the server without enabling atleast SSH connection"
sudo ufw default allow
#enable ubuntu ... | true |
9ccc6e09872ae616217089b61fb988a84f02bca6 | Shell | lubaihua33/lis-test | /WS2008R2/lisa/remote-scripts/ica/verifyKernelInstall.sh | UTF-8 | 6,690 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
########################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance ... | true |
2f416b847b2d99a8a3d1c816f4ef9c2eebc930a9 | Shell | Azure/sap-automation | /deploy/scripts/helpers/common_utils.sh | UTF-8 | 5,437 | 4.5 | 4 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/usr/bin/env bash
###############################################################################
#
# Purpose:
# This file allows bash functions to be used across different scripts without
# redefining them in each script. It's designed to be "sourced" rather than run
# directly.
#
##################################... | true |
c19c43035768a13159d3a237ba925d18bb1dcef9 | Shell | etimecowboy/DotEmacs | /bin/lin64/get-icicles.sh | UTF-8 | 1,203 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
base_url=http://www.emacswiki.org/cgi-bin/wiki/download
required_libraries="icicles.el \
icicles-cmd1.el icicles-cmd2.el \
icicles-face.el icicles-fn.el icicles-mac.el \
icicles-mcmd.el icicles-mode.el icicles-opt.el \
... | true |
32929dad738c8cf6c40993702c80c9c9b79ff860 | Shell | vishal2332/playground | /scripting/specialcharacters | UTF-8 | 311 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# since variables are denoted by $ dollar sign if you need to print doolar $ sign you need to use backslash. The backslash allowed the shell script to interpret the dollar sign as an actual# dollar sign and not a variable
echo "the cost of the item is \$15"
echo "this is \#24"
echo "this is \@"
| true |
081889db5ec0e868be4ab5b742e76dd40219ff84 | Shell | envoyproxy/envoy | /ci/format_pre.sh | UTF-8 | 2,637 | 3.625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -E
# Pre-checks for validation and linting
#
# These checks do not provide a fix and are quicker to run,
# allowing CI to fail quickly on basic linting or validation errors
FAILED=()
CURRENT=""
# AZP appears to make lines with this prefix red
BASH_ERR_PREFIX="##[error]: "
DIFF_OUTPUT="${DIFF_OUTPUT:-/bui... | true |
85a39d2ff5ed65e184dd3388817950cfcf5ffaef | Shell | Felix-Kit/ProtocolTaint | /src/run | UTF-8 | 338 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p obj-intel64
if [ "$1" = "compile" ];then
touch $2.cpp
make obj-intel64/$2.so
fi
if [ "$1" = "run" ];then
LD_PRELOAD=./libx.so pin -t obj-intel64/$2.so -- $3 ${@:4}
fi
if [ "$1" = "all" ];then
touch $2.cpp
make obj-intel64/$2.so
LD_PRELOAD=./libx.so pin -t obj-intel64/$2.so... | true |
ea9ddf826cef3161a605378b5f6f2bd00faf2c9a | Shell | ClubfootBear/nginx_analyzer | /nginx_stat.sh | UTF-8 | 4,469 | 3.265625 | 3 | [] | no_license | #! /bin/bash
echo "Start of script"
array_lenght=$(cat "$1" | wc -l)
echo "array_lenght: $array_lenght"
prc_1=$(echo "scale=4; $array_lenght * 0.01" | bc | sed -e 's/^\./0./' -e 's/^-\./-0./' | grep -E -o "[0-9]{1,}")
prc_5=$(echo "scale=4; $array_lenght * 0.05" | bc | sed -e 's/^\./0./' -e 's/^-\./-0./' | grep -... | true |
23bdc369c43dfb9cbd3ea19959d241bd46bc67ff | Shell | kirasystems/immutant | /etc/bin/common-build.sh | UTF-8 | 963 | 2.9375 | 3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BIN_DIR="${WORKSPACE}/bin"
AS_DIR="${WORKSPACE}/as-dists"
LEIN_VERSION=2.5.1
export PATH="${BIN_DIR}:${PATH}"
export WORKSPACE_HOME="${WORKSPACE}/home"
export LEIN_HOME="${WORKSPACE_HOME}/.lein"
export JVM_OPTS="-Dprogress.monitor=false"
DIR=$( cd "$( dirname "$0" )" && pwd )
function mark {
echo
echo "======... | true |
b17490d4cec1ac056f76dc2ae99a4101ba39268a | Shell | Ashkore/Distributed-Remote-Boot-Linux-With-Kali | /drbl.sh | UTF-8 | 1,477 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
#EXAMPLE:
#./drbl.sh
#Color Variables
Green='\033[0;32m'
LGreen='\033[1;32m'
RED='\033[0;31m'
NC='\033[0m'
#Start of Repository setup
echo -e "${LGreen}Starting: Setting up /etc/apt/sources.list File"
echo "deb http://ftp.us.debian.org/debian/ jessie main" >> /etc/apt/sources.list
echo "deb http://... | true |
d2df704a326d173c3cc75c5f03a1a7a697c0cdc0 | Shell | hmacread/dropthehook | /deg2dec.sh | UTF-8 | 1,284 | 4.03125 | 4 | [] | no_license | #/bin/bash
#Script to convert degrees and decemil minutes into decimal degrees (input DDD.MM.MMMn|s|w|e)
#Only basic validation performed on date
if [[ -z $1 ]]; then
echo Error: Usage "deg3dec DDD.MM.MMM[n|e|s|w]"
exit 1
fi
deg=$(echo $1 | cut -f1 -d . | sed s/^0*//)
#add back leading zero if all removed
if [[ -z... | true |
876c33c37bba0047f7f4d280d0fceace0ce744fc | Shell | flackr/stoplight | /util.sh | UTF-8 | 1,567 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
RED=4
YELLOW=17
GREEN=22
function setup()
{
if [ -n "$DEBUG" ]
then
echo "0" > /tmp/pin$RED
echo "0" > /tmp/pin$YELLOW
echo "0" > /tmp/pin$GREEN
echo "Set up pins."
return 0
fi
echo $RED > /sys/class/gpio/export
echo $YELLOW > /sys/class/gpio/export
echo $GREEN > /... | true |
d03f9efb34872b96ce035e41188db9b5b169cfc2 | Shell | woodun/insight_files | /load_balance_scripts/old/launch_all_configs_temp.sh | UTF-8 | 961 | 2.578125 | 3 | [] | no_license | #for swl1 case, only gtoswl1(other ones are same as this one) and tl1(this one is unique) is needed, other ones have been removed.
#!/bin/sh
#sh launch_all_configs_approx.sh histo parboil
#specify your config path in stor2
configs_stor2=/stor2/hwang07/approx/
#modify the configs you want to launch on machine in02
for... | true |
6e2e0ba4f912e7364a8ab3f78373b42b6234fcae | Shell | ygstr/etc | /bin/bar/panel.sh | UTF-8 | 811 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
. $HOME/.config/bar/bar_config
desktop() {
groupstats="$(groupstat)"
echo "%{U$YELLOW} $groupstats %{U-}" | tr -d ' ' | sed -e s/0//g -e s/1/'%{F#F9D48C#}%{F-}'/g
}
clock(){
clock=$(date "+%A, %d %B %I:%M:%S")
echo "%{B$BG}%{F$CYAN}%{U$CYAN}%{F-}$clock%{U-}%{B-} "
}
music(){
play=$(mpc current)... | true |
de1a01d702a659291a4aeafc0c7eecfcf8ff234f | Shell | OpenLMIS-Angola/angola-openlmis-deployment | /deployment/reporting_local_installation_env/services/deploy_services.sh | UTF-8 | 1,271 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
export DOCKER_TLS_VERIFY="1"
export COMPOSE_TLS_VERSION=TLSv1_2
export DOCKER_HOST="local.ao.openlmis.org:2376"
export DOCKER_CERT_PATH="${PWD}/../../../credentials/local_installation_reporting_env"
export DOCKER_COMPOSE_BIN=/usr/local/bin/docker-compose
export REPORTING_DIR_NAME=reporting
# chan... | true |
8b54e45eabd169f50f69e5d41f9c9b77d46617cf | Shell | luxe/unilang | /source/code/scratch/config/scripts/src/utility_functions/all_utility_functions/directory-moving | UTF-8 | 452 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#stack based directory changing.
#Used to step into directories, and make conversion based on relative path,
#steping out after can be done automatically.
function Silently_Go_Back_To_The_Previous_Pwd(){
popd > /dev/null 2>&1;
}
function Step_In_Call_Function_Step_Out(){
pushd $1 > /dev/null... | true |
8b7c45a564faaf8da74f03b1bb313c940dfef39a | Shell | Rendanic/ppas_and_docker | /epas/12/start_pg.sh | UTF-8 | 2,758 | 3.109375 | 3 | [] | no_license | #!/bin/bash
set -x
PGHOME=/usr/edb/as12
PGBIN=${PGHOME}/bin
EFM_HOME=/usr/edb/efm-3.9
PGCTL=${PGHOME}/bin/pg_ctl
if [[ ${NODE_TYPE} = "master" ]]
then
if [[ ! -f ${PGDATA}/PG_VERSION ]]
then
sudo -u ${PGUSER} \
${PGBIN}/initdb -D ${PGDATA} --auth-host=scram-sha-256 --data-checksums
... | true |
50e3b72b6b749d79062729a88404c2134d15786f | Shell | Zarete/Blob | /public/subpart/proteins/hex/bin/hex_chain | UTF-8 | 1,183 | 3.53125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
#------------------------------------------------------------------------------
#
# hex_chain: to rename a chain (i.e. column 22 of ATOM records) in a pdb file
#
# example: rename chain X to chain Y (X or Y may be blank [" "]):
#
# hex_chain X Y <file.pdb >new_file.pdb
#
# D.W. Ritchie 08/06/98
#... | true |
6cac84ce2b258b1d64fe0f7f5757b5ca0ebbd265 | Shell | sandeep937/Devel | /bin/ec | UTF-8 | 716 | 3.71875 | 4 | [] | no_license | #!/bin/bash
source "${KONIX_LIB_DIR}/lib_bash.sh"
findEmacsWindow () {
wmctrl -l -x|grep -q '.Emacs'
}
findEmacsProcess () {
if on_windows_p
then
ps -aW |grep -q 'emacs.exe'
else
ps -A -o comm|grep -q '^emacs$'
fi
}
printf "Starting an emacsclient " 1>&2
if on_windows_p
then
if ! findEmacsProcess
then
so... | true |
5769b3b528d4bca94c376c7afc74595a5771065f | Shell | lnsun/immutability | /.travis-build.sh | UTF-8 | 2,351 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# Fail the whole script if any command fails
set -e
# Environment variables setup
export JAVA_HOME=${JAVA_HOME:-$(dirname $(dirname $(dirname $(readlink -f $(/usr/bin/which java)))))}
export JSR308=$(cd $(dirname "$0")/.. && pwd)
export AFU=$JSR308/annotation-tools/annotation-file-utilities
export CHECKERF... | true |
29730aa535cc751e2c79ca98c18e42596893c73a | Shell | willzhang05/sshfaillog | /format.sh | UTF-8 | 149 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ $1 ]]; then
autopep8 --in-place --aggressive --aggressive $@
echo "Formatted $@."
else
echo "No filename provided."
fi
| true |
1a768714f4fcb4bd18489143c1aaea444ffdd73d | Shell | omrprks/subgit | /subgit.sh | UTF-8 | 143 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
[ ! -d "${1}" ] && {
echo Error: ${1}: No such directory
exit 1
}
pushd ${1} > /dev/null
git ${@:2}
popd > /dev/null
| true |
e2e6054ce5e2d0d65ce9b5bc9af6a18418e4c4fc | Shell | studyfranco/GNEA | /rnalizer/SCNorm/SCNormSlurmArray.sh | UTF-8 | 2,068 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
#SBATCH -t 5-00 # time (D-HH:MM)
#SBATCH -o SCNorm/Log/slurm.%N.%j.SCNorm.out # STDOUT
#SBATCH -e SCNorm/Log/slurm.%N.%j.SCNorm.err # STDERR
method=$1
ncore=$2
lfc=$3
pval=$4
chemin=`pwd`
listefile=`ls SCNorm/param`
if [ ! -d "SCNorm/tmp" ]
then
mkdir SCNorm/... | true |
d69034fa9849b1680651049e873bbd8fa571e55c | Shell | jason-r-c/ansible-automation | /frontend-dev/backendwar.sh | UTF-8 | 1,582 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# sudo with password in one command line:
# https://superuser.com/questions/67765/sudo-with-password-in-one-command-line
echo ubuntu | sudo -S mkdir /home/backend-backups
cd /home/backend-source/repo/BackEnd
# @JC 05/12/17: may need to add some git credentials here as i expect it to fail
echo ubuntu | s... | true |
29e341c5dc5ba09f99b63c25bc545f575e24822c | Shell | k-kinzal/aliases | /test/integration/circular-dependencies/test.sh | UTF-8 | 897 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -eu
TEMP_DIR=$(mktemp -d /tmp/XXXX)
TEST_DIR="$(cd "$(dirname "${0}")"; echo "$(pwd)")"
ALIASES=$(cd "${TEST_DIR}/../../..//dist"; echo "$(pwd)/aliases -c ${TEST_DIR}/aliases.yaml")
DIFF=$(if which colordiff >/dev/null; then echo "colordiff -Buw --strip-trailing-cr"; else echo "diff -Bw"; fi)
MASK="sed... | true |
7439c156b49d558981ce4345096d157684eea791 | Shell | dmaderazo/analysisCode | /getLogLikelihood.sh | UTF-8 | 624 | 3.25 | 3 | [] | no_license | #!/bin/bash
rm -rf tempFile
for i in *.log
do
logRetriever.sh -a $i
done > tempFile
#pick a file
fileName=$(ls *.log | head -n 1)
#count the number of lines in that file
lineCount=$(wc -l < $fileName)
#return the number of lines less the current header (-9)
#plus the file name header (+1)
# this is the no. ... | true |
f977b1757224d640714b573a439870ac1e1272cb | Shell | prateek/dotfiles | /zsh/lib/keybind.zsh | UTF-8 | 1,606 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env zsh
# vim:syntax=sh
# vim:filetype=sh
# make key presses work a lot faster
# `man keytimeout`: The time the shell waits, in hundredths of seconds,
# for another key to be pressed when reading bound multi-character sequences.
KEYTIMEOUT=1
# map ctrl-space to accept auto-suggestions.
# color map: https:/... | true |
3bf5acc0f902b7b86a95541ab8e9d82e8f7773c1 | Shell | michaelchiche/docs | /scripts/generate_changelog.sh | UTF-8 | 1,103 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# Usage: generate-changelog <from-git-tag> <to-git-tag> [--all-prs] [--tab-output]
# Writes changelog to standard output
# Prerequisites: Set environment variable GITHUB_TOKEN
# For now, globally install https://github.com/lindydonna/github-pr-changelog
# by cloning the repo and running `npm i -g`
# In th... | true |
305c9dfac4467b0e53f211aff7be1ab5f5974194 | Shell | 519984307/sngtec-telemetrics | /generate-linear-converter-if-else.sh | UTF-8 | 500 | 3.109375 | 3 | [] | no_license | #!/bin/bash
strTypes=(SignedInt16 SignedInt32 UnsignedInt16 UnsignedInt32 Float4B Double);
types=(qint16 qint32 quint16 quint32 float double);
if [ ${#strTypes[@]} -ne ${#types[@]} ]; then
echo "Sizes don't match";
exit 1;
fi;
size=${#strTypes[@]};
let lastElemNo=$size-1;
prefix="";
for no1 in $(seq 0 $lastElemNo... | true |
64c0d6eed70f413b3bebef27dc50ed5c9e41196a | Shell | Arrrrrr/Hoth | /UNIX/commitingit.sh | UTF-8 | 1,295 | 3.328125 | 3 | [] | no_license | echo Hi there! My name is Helga. Would you like to commit stuff? \(y/n\)?
read reply
echo Your message was: $reply
if [ "$reply" == "y" ]; then
echo "OK, committing to your repo"
echo What is your commit message?
read yourmessage2
echo Your message was: $yourmessage2
echo committing to your repo
# add path to you... | true |
c51a87cb857dd2c3859c22fc04b69c02c7b42f3c | Shell | jakob1379/.dotfiles | /polybar/.config/polybar/Scripts/usb-devices | UTF-8 | 877 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
usb_print() {
devices=$(lsblk -Jplno NAME,TYPE,RM,SIZE,MOUNTPOINT,VENDOR)
output=""
counter=0
# Find mounted devices
for mounted in $(echo "$devices" | jq '.blockdevices[] | select(.rm == true) | select(.vendor != null) | .name' | tr -d '"'); do
... | true |
f60147bd7cac1a36348fc174873b0c6b1c946bb3 | Shell | dronegator/nlp | /scripts/index.sh | UTF-8 | 257 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
from=${1:-/tmp/a.txt}
to=${2:-/var/tmp/$(basename $from .txt).dat}
sbt "index-stream/run $from /tmp/tmp.dat" &&
sbt "index-stream/run $from $to /tmp/tmp.dat" &&
echo "sbt \"repl/run $to\"" &&
sbt "repl/run $to"
echo "sbt \"repl/run $to\""
| true |
53c3b2a2710a96be81f122ff371f919e29d6168d | Shell | hakehash/shellscripts | /audyn.sh | UTF-8 | 4,496 | 3.375 | 3 | [] | no_license | #!/bin/sh
if [ $# -eq 0 ]; then
echo "usage:\t`basename $0` /path/to/keywordfile.dyn [ytnilhso]" 1>&2
else
PATH_TO_LSDYNA=/mnt/c/LSDYNA/program/
#NAME_OF_EXEC=ls-dyna_smp_s_R10.0_winx64_ifort131.exe
NAME_OF_EXEC=ls-dyna_smp_s_R901_winx64_ifort131.exe
PATH_TO_SCRIPTS=`cd $(dirname $0) && cd -`
PATH_TO_KEYFIL... | true |
618e2cd396f929afc7c2471fe913a466ff86013b | Shell | kruton/dotfiles | /home/.bashrc.d/61-heroku.bash | UTF-8 | 152 | 2.75 | 3 | [] | no_license | #!/usr/bin/env bash
# Add Heroku to the PATH if it is installed
if [ -d /usr/local/heroku/bin ]; then
export PATH="/usr/local/heroku/bin:$PATH"
fi
| true |
22e986dfc5e9b1a6b53be4e8df34e9e5c1038421 | Shell | ecohealthalliance/tater | /.scripts/run-tests.sh | UTF-8 | 2,034 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
port=$RANDOM
SECONDS=0
quit=0
watch=""
if [ "$WATCH" == "true" ]; then
watch="--watch --watchTags=${TAGS}";
fi
touch testoutput${port}.txt
# Trap interruptions to avoid leaving files or meteor instances around
function finish {
rm testoutput${port}.txt
kill `lsof -t -i:${port}`
}
trap finish INT
#... | true |
5c89078aee2cf4ffe7eb4fdf440af3dc53939fec | Shell | diacu/compass | /entrypoint.sh | UTF-8 | 282 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
CUSER="frontend"
MYUID=`stat -c "%u" .`
APP_DIR="${APP_DIR:-/var/www/html}"
if [[ "$MYUID" -gt '0' && "$MYUID" != `id -u ${CUSER}` ]]; then
usermod -u ${MYUID} ${CUSER}
fi
cd ${APP_DIR}
if [ -z "$@" ]; then
compass watch --poll
else
exec "$@"
fi
| true |
59fd60cb78170cd784540dd5997bb2ff17b577a3 | Shell | bboykov/dotfiles | /scripts/dotfiles-link-dotfile | UTF-8 | 1,322 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
readonly DOTFILES_HOME="${HOME}/dotfiles"
readonly DOTFILES_CONFIG="${DOTFILES_HOME}/config"
# shellcheck source=lib/functions.bash
source "${DOTFILES_HOME}/lib/functions.bash"
target=$1
link_name=$2
link_dirname="${link_name%/*}"
link_filename="${link_name##*/}"
ba... | true |
2abee5c843441de8f4e9cd71ea88df940d6d3b9e | Shell | code-to-core/docker | /bin/stop.sh | UTF-8 | 333 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Run thi son the host, noth within the docker image, then connect
# http://localhost:4000
$(dirname $0)/chkconfig.sh
if [ $? != 0 ]
then
exit 1
fi
source config
id=$(docker container ls | grep $repository | cut -d ' ' -f1)
echo found $repository running with container id $id, stopping
docker contai... | true |
3cc1269f637691256a2b9d3352f61610043e7e6a | Shell | thefactory/cloudformation-jenkins | /jenkins-backup | UTF-8 | 676 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
USAGE="Usage: $0 JENKINS_HOME S3_TARGET\n
\n
Examples:\n
$0 /var/lib/jenkins s3://mybucket/jenkins/jenkins-201405011901.tar.gz"
JENKINS_HOME=$1
S3_TARGET=$2
if [[ -z "`echo $S3_TARGET|grep '^s3://'`" || ! -d "$JENKINS_HOME" ]]; then
echo -e $USAGE
exit 1
fi
LOCAL_BACKUP=/tmp/`basename $S3_TARG... | true |
b78f5f6232b4a77bc052eb93952a6acd13b155bd | Shell | Vitalinux-DGA-ProgSoftLibre/vx-dga-l-scripts | /usr/bin/vx-firefox-extensiones | UTF-8 | 8,643 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Versiones: [arturo@2019-12-16]
mensaje() {
echo -e "=> $(date): ${1}"
}
uso() {
MENSAJE="Debes pasar dos o más parámetros al script:"
MENSAJE+="\n1) --install|--remove"
MENSAJE+="\n2,3,...) Extensiones a instalar o desinstalar"
MENSAJE+="\nEj. vx-firefox-extensiones --install EPUBREA... | true |
d09b4f94e5f3afa0a2f9049b3b9ce69ad5f15d0a | Shell | lanen/fpm-rpm | /mysql56 | UTF-8 | 1,442 | 3.0625 | 3 | [] | no_license | #!/bin/bash
artifact=mysql
version=5.6.32
name=${artifact}-${version}
fn=${name}.tar.gz
dl=download/$fn
if [[ ! -f "$dl" ]]; then
wget -O $dl http://cdn.mysql.com//Downloads/MySQL-5.6/$fn
if [[ ! -f "$dl" ]]; then
echo "$fn download failed"
exit 1
fi
fi
sudo yum install -y gcc-c++ cmake bison-devel ... | true |
4dac7edcea3abba2e6b6982c6ce9d1528550daeb | Shell | SoumyaDas/drupal-ubuntu-automation | /build8.sh | UTF-8 | 5,078 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# Treat unset variables as an error
set -o nounset
# Source configuration
source $1 || exit 126
#source $2
echo -e "${BUILD}"
##
# Needed executables & drush commands
#
DRUSH=$(which drush) &> /dev/null \
|| { echo 'Missing drush. Aborting...' >&2; exit 127; }
# Specific path to drush version for drus... | true |
b333c178dce098a46200443a11dea08a9c46cea7 | Shell | ferozbaig96/Simple-Bash | /scripts/Getting Started/signal_cleanup_exit.sh | UTF-8 | 278 | 3.25 | 3 | [] | no_license | #/bin/bash
# signal_cleanup_exit.sh
# This script will do cleanup when you try to exit via Ctrl+C
function cleanup_exit(){
# do some file closing stuff
# or temp file deletion stuff
echo
}
trap cleanup_exit EXIT
echo "while true has started"
while true
do
sleep 60
done
| true |
5b7cd49b445d038d2fd9b57e9abf214a83ff19ea | Shell | tfettrow/MiM_Shell_Scripts | /struct_processing/structural_analysis.sh | UTF-8 | 1,418 | 2.671875 | 3 | [] | no_license | # 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 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but ... | true |
ab94b25d0d4310ca9843491c573f956fca91c52a | Shell | gobbedy/compute_canada_scripts | /launch_dispynode.sh | UTF-8 | 372 | 2.765625 | 3 | [] | no_license | #!/bin/bash
logfile=$1
dispynode_executable=~/.local/bin/dispynode.py
echo "Note: \"error connecting\" line immediately below is expected." &>> ${logfile}
tmux kill-session -t dispynode_session &>> ${logfile} # in case previous script on same node died before killing
tmux new-session -s dispynode_session -d "${dispynod... | true |
f66c5e5435eb8314f747e81a3a2832cca08ed138 | Shell | AntBean/jpf-bfs | /bin/test_debug | UTF-8 | 308 | 2.875 | 3 | [] | no_license | #!/bin/bash
#
# unix shell script to run jpf tests
#
JPF_HOME=`dirname "$0"`/..
if test -z "$JVM_FLAGS"; then
JVM_FLAGS="-Xmx1024m -ea"
fi
DEBUG_FLAGS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
java $DEBUG_FLAGS $JVM_FLAGS -jar "$JPF_HOME/tools/RunTest.jar" "$@"
| true |
9353f47bdf78f48be753730e11dd4b057f5920ff | Shell | trozler/giveMeProject | /webproject.sh | UTF-8 | 1,305 | 3.90625 | 4 | [
"MIT"
] | permissive | #/bin/bash
GREEN='\033[0;32m'
NC='\033[0m'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )""/"
BASE="$( basename $PWD | tr '[:upper:]' '[:lower:]' )"
printf "\e${GREEN}Doing your lazy work...\e${NC}\n"
git init -q
touch .gitignore README.md
printf "## $BASE\n" >> ./README.md
printf "\e${GREEN... | true |
4e80f140c8ccbe391fbb13aa0281680d23357e60 | Shell | MomsFriendlyDevCo/Init | /utils/npm-install | UTF-8 | 263 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Install a series of NPM packages
# Usage: ./utils/npm-install <packages...>
[ -z "$INIT_READY" ] && source common
if [ `INIT bin-available npm` == 0 ]; then
INIT status "Need to install Node + NPM"
INIT run 020-node
fi
sudo npm install -g "$@"
| true |
40cf5a760d026eee6684c17a9c1028754e6b7105 | Shell | mlaizure/holberton-system_engineering-devops | /0x05-processes_and_signals/3-show_your_bash_pid_made_easy | UTF-8 | 108 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
# displays PID and process name of any process whose name contains bash
pgrep -l "bash"
| true |
d287cf8584919499c01bb90c1a334b3b3c7dfa5f | Shell | alexpyoung/config | /install/cron.sh | UTF-8 | 188 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
main() {
pushd "${0%/*}" && pushd ..
cat crontab > pbcopy
echo 'crontab has been loaded into clipboard. Use crontab -e.'
popd && popd
}
main
| true |
f73b4b3349d29fc8a87ed284e9046bcde65df0a1 | Shell | bioinform/varsim | /tests/test_flip_map/test.sh | UTF-8 | 625 | 3.453125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)"
time ../../flip_map.py flipped input.map
TEST_FAIL=0
compare() {
if [[ ($1 == *.gz) && ($2 == *.gz) ]];then
if cmp -s <(zcat $1) <(zcat $2);then
true
else
TEST_FAIL=1
fi
elif cmp -s $1 $2; then
true
... | true |
bd4a0f561d111abcf04b1a74cc0263da214f42b5 | Shell | petems/vagrant-puppet-install | /test/support/puppet_install_script/shell_install.sh | UTF-8 | 438 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
echo "Spec test running now!"
REPO_URL="http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm"
# Install puppet labs repo
echo "Configuring PuppetLabs repo..."
repo_path=$(mktemp)
wget --output-document="${repo_path}" "${REPO_URL}" 2>/dev/null
rpm -i "${repo_path}... | true |
3a7e4ca74251e9224e20dc9eedbf50c0c5bfaa98 | Shell | tttor/lab1231-sun-prj | /xprmnt/segment-sorter/sh/train_lda.sh | UTF-8 | 849 | 2.703125 | 3 | [] | no_license | #!/bin/sh
#
root_dir=/home/jogie/sorter_exp/lda-model
timestamp="$(date +'%Y%m%d.%H%M%S')"
dataset=msrc21
#
corpus_name=corpus.20141221.145856
corpus_dir=$root_dir/corpus/$dataset
tr_data_filepath=$corpus_dir/$corpus_name.data
tr_metadata_filepath=$corpus_dir/$corpus_name.meta
model_dir=$root_dir/lda-model/$dataset/t... | true |
8828021f9b4bd98dcfacfac27b422f2ed3b6348e | Shell | Rsvyas/avakas | /tests/integration/ansible.bats | UTF-8 | 1,234 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
# -*- mode: Shell-script;bash -*-
load helper
setup() {
shared_setup
REPO_ORIGIN=$(fake_repo)
template_skeleton "$REPO_ORIGIN" ansible "v0.0.1"
origin_repo "$REPO_ORIGIN"
REPO=$(clone_repo $REPO_ORIGIN)
}
teardown() {
shared_teardown
}
@test "show a ansible version" {
... | true |
c6ea20da41b007e063d0f9144c6f545ef7dd750c | Shell | Ljinod/utils | /echo_script.sh | UTF-8 | 2,140 | 4.4375 | 4 | [] | no_license | #!/bin/sh
# Colors!
readonly Green='\e[0;32m'
readonly Yellow='\e[0;33m'
readonly IRed='\e[0;91m'
readonly On_Red='\e[41m'
readonly Blue='\e[0;34m'
readonly Color_Off='\e[0m'
# Global variables
readonly INFO="info"
readonly ERROR="ERROR"
readonly WARNING="warning"
readonly SUDO="sudo"
echo_script() {
# the "-e"... | true |
98902b8f49cd3fd0751351179cbdd470956def1d | Shell | AndresKool/skriptimine | /praks7/yl3 | UTF-8 | 384 | 2.671875 | 3 | [] | no_license | #! /bin/bash
echo "Sisestage Aeg"
read aeg
if [ $aeg -ge 6 -a $aeg -lt 12 ]
then
echo "Tere Hommikust!"
elif [ $aeg -ge 12 -a $aeg -lt 18 ]
then
echo "Tere Päevast!"
elif [ $aeg -ge 18 -a $aeg -lt 22 ]
then
echo "Tere Õhtust!"
elif [ $aeg -ge 22 -a $aeg -lt 24 ] || [ $aeg -ge 0 -a $aeg -lt 6 ]
then
echo "Head Ööd!"... | true |
1c2f9d7cdf6c9362b846208100125b54946f23a4 | Shell | ftwftw0/ODGDownloader | /ODGProdDownloadAll.sh | UTF-8 | 3,423 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env /bin/bash
function get_filename_from_bitly_url() {
URL=$1
FILENAME=$(/usr/bin/curl -L "$URL" | /bin/grep -o "/son/zip/.*\.[a-z]*" | /usr/bin/rev | /usr/bin/cut -d'/' -f1 | /usr/bin/rev)
# Return the filename
echo "$FILENAME"
}
function download_from_bitly_link_to_folder() {
URL=$1
... | true |
ec3347ad4084519ba93308396c530fdde93c4ae2 | Shell | peccu/tomoya-init | /buildemacs | UTF-8 | 332 | 2.609375 | 3 | [] | no_license | #!/bin/sh
# build at current directory
curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.gz
tar xzvf emacs-23.3a.tar.gz
cd emacs-23.3a
./configure --with-ns --without-x&&make&&make install
curl -O http://github.com/peccu/tomoya-init/raw/master/tomoya-init
chmod a+x tomoya-init
echo "Now you have to do is run ./t... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.