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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2d2acee918e828d698f0c03995977076e053f998 | Shell | dobro-lubov/.dotfiles | /install/install-nvim.sh | UTF-8 | 2,188 | 3.109375 | 3 | [] | no_license | #!/bin/bash
echo -e "${blue}Installing neovim configuration..."
# Create all necessary folder for neovim
if [ ! -d $HOME/nvim ]
then
mkdir $HOME/nvim
# install neovim plugin manager
curl -fLo ~/.dotfiles/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/mast... | true |
1c5c926c008e2bc50b70ebe48be47dd4f18b8318 | Shell | zysunGithub/BashDaily | /variable.sh | UTF-8 | 724 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Program:
# shows variable assignment and substitution
# History:
# 2020.08.05 zysun first release
# 变量定义时,在 = 前后不允许有空格
a=375
hello=$a
# =左边有空格, shell尝试运行“a”命令,参数为“=375”
# 运行出错提示:a: 未找到命令
#a =375
# =右边有空格,shell尝试运行“375”命令,把a设值为空的环境变量
# 运行出错提示:375: 未找到命令
#a= 375
hello="A B C D"
echo ${hello} # A B C ... | true |
0e924123281b3ca437caab78969e5a0c48b9976f | Shell | WinstonN/cypress-lambda | /lambda/deps.sh | UTF-8 | 648 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# echo 'attempting to remove cypress-lambda container...'
docker rm cypress-lambda
echo 'removing lib tar'
rm -rf ./lib.tar.gz
rm -rf ./lib64.tar.gz
echo 'running cypress-lambda container for a sec...'
docker run --name cypress-lambda cypress-lambda sleep 1
echo 'copying lib and archives into the lambda... | true |
b609682c863ce8d6611e96afbce3ca45d2fbb020 | Shell | lnls-dig/rssmx100a-epics-ioc | /scripts/systemd/bin/runRSSMX100A.sh | UTF-8 | 1,491 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
set -u
if [ -z "$RSSMX100A_INSTANCE" ]; then
echo "RSSMX100A_INSTANCE environment variable is not set." >&2
exit 1
fi
RSSMX100A_TYPE=$(echo ${RSSMX100A_INSTANCE} | grep -Eo "[^0-9]+");
RSSMX100A_NUMBER=$(echo ${RSSMX100A_INSTANCE} | grep -Eo "[0-9]+");
if [ -z "$RSSMX100A_TYPE" ] || [-z ... | true |
80e38cf416a95f90e277f729bd89f711eeac08e4 | Shell | aybabtme/tidbits | /lego.sh | UTF-8 | 841 | 3.28125 | 3 | [] | no_license |
function install_lego() {
local binname="lego"
local version="3.8.0"
local os="linux"
local arch="amd64"
local tarball="${binname}_v${version}_${os}_${arch}.tar.gz"
local release_url="https://github.com/go-acme/${binname}/releases/download/v${version}/${tarball}"
wget $release_url
tar x... | true |
4f904b915c83b2c83c0f07d5ebd554990eabc32b | Shell | jromy5/repo1 | /modules/subversion_server/files/hooks/pre-commit-infra | UTF-8 | 303 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/local/bin/bash
#
#
MAINTENANCE=/etc/nocommit
if [ -f $MAINTENANCE ]; then
echo "Write access is currently disabled. The ASF SVN repository is currently undergoing maintenance." > /dev/stderr
exit 1
fi
# Deny files with a known SHA-1 collision
source /x1/svn/hooks/pre-commit-sha1
exit 0
| true |
9bba4f665560f1c9d2e4db44476db906aee3ae45 | Shell | xpcom-bsd/BSDRP | /EINE/Files/usr/local/etc/openvpn/ovpn-if.sh | UTF-8 | 3,609 | 4.09375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
# OpenVPN tunnel up/down script:
# - Get environnement variable (DNS, Domain name) passed from the gateway
# Pass them to a resolvconf configuration file and dnsmasq configuration file
# - Change LED status regarding the OpenVPN status
#
# foreign_option_1=dhcp-option DNS 10.10.10.1
# foreign_option_2=dh... | true |
fb16b23976fdab24c6bd27e4f29bd20ee1c6e94a | Shell | ryanvarick/dotfiles | /scripts/symlinks.sh | UTF-8 | 773 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
source ~/.dotfile_base
echo '> Symlink dotfiles? (y/n)'
read response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
ln -sf "${DOTFILE_BASE}/.bash_profile" ~/.bash_profile
ln -sf "${DOTFILE_BASE}/.bash" ~/.bash
ln -sf "${DOTFILE_BASE}/.emacs" ~/.emacs
ln -sf "${DOTFILE_BASE}/.gitconfig" ~/.... | true |
b8d8c5523829ad4b78d60797052bf36b1e77e95f | Shell | xingyafeng/NxCustomBuild | /shell_common/yunovo_split_git_size.sh | UTF-8 | 11,943 | 3.9375 | 4 | [] | no_license | #!/bin/bash
# 拆分仓库使用,通常不需要使用该脚本
# 0为执行成功 其余为失败
# 大量运用 || && 来节约行数, false||执行这里的指令, true && 不执行这里的指令
#echo " dir $0 "
#导入共用函数
#GT为 git仓库路径
#PT为要处理的相对路径,合在一起为完整路径
function GIT_IGNORE() { echo ".gitignore"; }
function YO_MVTO() { echo "yunovo"; }
# 判断是否执行命令调试,即只输出命令
function yovo_if_debug_cmd(){
local CMD=$1;
for... | true |
b9c5470e95812fead218b76f7ce7509f5d869ae0 | Shell | yosuketsuboi/log-watcher | /log-watcher.sh | UTF-8 | 2,057 | 4.15625 | 4 | [] | no_license | #!/bin/sh
CMD=`basename $0`
if [ $# -lt 2 ]; then
echo "Usage: $CMD filepath keyword [keyword_ignore]"
exit 255
fi
LOG=$1
KEYWORD=$2
KEYWORD_IGNORE=$3
WORK_DIR=`dirname $0`
echo "watch $LOG start"
log_md5sum=`md5sum $LOG | awk '{print $1}'`
prev_count_file="$WORK_DIR/$log_md5sum.txt"
# Check existance of ... | true |
580a358a9cd18ca13aca51aeb97707ba03bb8e13 | Shell | ShahakBH/jazzino-master | /bi/scripts/marketing/0-daily_reactivation.sh | UTF-8 | 3,538 | 2.828125 | 3 | [] | no_license | #!/bin/bash
if [ `echo " " | sed "s/[[:space:]]/,/g"` != "," ]
then
echo "Unable to continue as this script requires a version of sed that supports the :space: character class."
exit 1
fi
mysql -h mem-prd-dbdw01 -u readonly -preadonly-s1gn4tur3 -Dbi-sandbox <<EOF
drop table if exists promo;
create table promo a... | true |
21d7a4662659a29ec7484e5f74889bbd3b72f082 | Shell | gvretina/LaTeX-paper-template | /prepare_arxiv_sub_template.sh | UTF-8 | 1,466 | 3.828125 | 4 | [] | no_license | #!/bin/sh
# Add all the additional files here
files="PAPERNAME.tex PAPERNAME.bbl"
# If you change this, you also have to change the compile.yml file
# for GitHub actions
submission_folder="PAPERNAME_arxiv_submission"
# Remove comments. A simple way to do this is to use latexpand
strip_comments() {
# https://tex.... | true |
6843189708c730df39dbf8190deb02a2c618ed9f | Shell | ypetya/bash_lib | /git/pull.sh | UTF-8 | 431 | 3.40625 | 3 | [] | no_license | import git.changed
import git.branch_has_upstream
import print.print
function git.pull() {
if [[ $# == 0 ]] ; then
if ! git.branch_has_upstream ; then
print red 'Upstream branch not set!\n'
return 1
fi
if git.changed ; then
print yellow 'Saving stash...\n'
git stash
git pull --stat
git stash ... | true |
c2fdfe11350f29cd07617cfeea762b87c5ed5a22 | Shell | BertrandServin/genotoul | /submit_ray.sh | UTF-8 | 2,071 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=test
#SBATCH --cpus-per-task=32
#SBATCH --mem-per-cpu=7GB
#SBATCH --nodes=2
#SBATCH --tasks-per-node 1
#SBATCH --mail-type=ALL
## !!! Adjust the CPUS_PER_TASK variable below manually !!!
echo "*** Allocating $SLURM_MEM_PER_CPU Mb per cpu"
echo "*** SLURM_JOB_NUM_NODES $SLURM_JOB_NUM_NOD... | true |
ed6e52f7db0efff80270de7307929fbf9d9536c2 | Shell | relink2013/WallAware | /Experimental/Config_bin/settings.sh | UTF-8 | 6,624 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Include pashua.sh to be able to use the 2 functions defined in that file
source "$MYDIR/pashua.sh"
#Adircfg=$(sed -n 1p ~/WallAware/config | sed 's/.*=//')
# Define what the dialog should be like
# Take a look at Pashua's Readme file for more i... | true |
c36a52bac395d372684ba34f12e68527425c2ed4 | Shell | loganschneider/4UMich | /4UMich.sh | UTF-8 | 5,079 | 3.421875 | 3 | [] | no_license | #!/bin/sh
#This script is for preparing VCF files for each chromosome, which can then be uploaded to the UMich imputation server
#Instructions: https://imputationserver.sph.umich.edu/start.html#!pages/help
#Uses vcftools: https://vcftools.github.io/perl_module.html
#Uses bgzip from hstlib: http://www.htslib.org/doc/ta... | true |
ab0b40ba4859737e6e773447138f952b52158189 | Shell | glennj/exercism.io | /awk/triangle/test-triangle.bats | UTF-8 | 4,111 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bats
load bats-extra
# Test returns true if the triangle is equilateral
@test "all sides are equal, equilateral" {
#[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run gawk -f triangle.awk -v type=equilateral <<< "2 2 2"
assert_success
assert_output "true"
}
@test "any side is unequal" {
[[ $BATS_... | true |
7523778271c06a3aec5c90c7a19d785097747f80 | Shell | davide/ewgi_examples | /start-dev.sh | UTF-8 | 377 | 3.21875 | 3 | [] | no_license | #!/bin/sh
cd `dirname $0`
ERL="erl"
if [ -n "$1" ]; then
CONFIG=$1
OS=`uname`;
if [ "$OS" = "Linux" ]
then
ERL="authbind --deep $ERL"
fi
shift
until [ -z "$1" ]
do
ERL="$ERL $1"
shift
done
exec $ERL -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s reloader -s ewgi_examples -config $PWD/config/$CONFIG.... | true |
aaa00d760bca9f90592f8c5c6cb42ab3b6e7ca12 | Shell | workerwork/wcg-tools | /eGW_tcpdump | UTF-8 | 1,381 | 3.328125 | 3 | [] | no_license | #!/bin/bash -
###############################################################
## eGW_tcpdump.sh
## version: 3.0
## update:20180503
###############################################################
LOG_PATH=/root/eGW/Logs/tcpdump
MINSIZE=50000000
TIMER=5
while :
do
DATE_DIR=$(date +%F)
STIME=$(date +%F"_"%H%M%S)
... | true |
9d6a22d2b88d5266ca8828a7a95714af7c0cff85 | Shell | petronny/aur3-mirror | /zen-puzzle-garden/PKGBUILD | UTF-8 | 2,362 | 2.640625 | 3 | [] | no_license | # Maintainer: 404
# Contributor: carstene1ns <url/mail: arch carsten-teibes de>
# Contributor: Zachary A. Jones <JazzplayerL9@gmail.com>
pkgname=zen-puzzle-garden
pkgver=1.3
pkgrel=3
pkgdesc="Zen Puzzle Garden gently tests your ability to rake out an uninterrupted stone garden pattern."
url="http://www.lexaloffle.com/... | true |
3e371c315fae2591ff61735c2e700736560008f0 | Shell | chendaye/Shell | /user_input/user_input/base_read_sh | UTF-8 | 242 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# -n opt
echo -n "Enter your name:"
read name
echo hello $name
# -p opt
read -p "pelase enter your age:" age
day=$[ $age * 365 ]
echo your life is $day
# REPLY save user input
read -p 'REPLY save the input?'
echo $REPLY
| true |
ffb57d823f601f55db597e60e856238db4fca126 | Shell | ShivamKumarJha/Dummy_DT | /asus/I001_1/rootdir/bin/simcode.sh | UTF-8 | 644 | 2.921875 | 3 | [] | no_license | #!/system/bin/sh
LOG_TAG="simcode"
file="/vendor/factory/SIMCODE"
PROPERTY="persist.radio.multisim.config"
if test -f $file ; then
SIMCODE=`cat $file`
if [[ "$SIMCODE" == "s1" || "$SIMCODE" == "S1" ]] ; then
setprop $PROPERTY none
elif [[ "$SIMCODE" == "s2" || "$SIMCODE" == "S2" ]] ; then
s... | true |
f1059f8df9697581eb6f6bdecf0ae247a014b3fe | Shell | talk2MeGooseman/dotfiles | /setup.sh | UTF-8 | 2,940 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if
[[ "${USER:-}" == "root" ]]
then
echo "This script works only with normal user, it wont work with root, please log in as normal user and try again." >&2
exit 1
fi
set -e
echo "Updates packages. Asks for your password."
sudo apt-get update -y
echo "Installs packages. Give your password when aske... | true |
121f578781c316dbd5ad5070384a0e143f8215b4 | Shell | Wirebrass/ansible-base-mirror | /roles/backup_server/templates/backup_git_archive.sh.j2 | UTF-8 | 588 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
borg list {{ backup_folder }}/{{ backup_user_git }}-archives &>/dev/null
if [ $? -ne 0 ]
then
mkdir -p {{ backup_folder }}/{{ backup_user_git }}-archives -m 0740
export BORG_PASSPHRASE=""
borg init --encryption=repokey {{ backup_folder }}/{{ backup_user_git }}-archives
fi
borg prune -v {{ bac... | true |
ee68474939b68d2046371c07cde33e6441e79734 | Shell | fhopeman/aws-codelab | /cloudformation/lambda/ci/pipeline.sh | UTF-8 | 2,115 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "$0")" ; pwd -P)"
if [ -z "${PROFILE}" ]; then
echo "Please set environment variable PROFILE"
exit 1
fi
if [ -z "${TEAM_NAME}" ]; then
echo "Please set environment variable TEAM_NAME"
exit 1
fi
REGION=${REGION:-"eu-central-1"}
pushd "${SCRIPT_DIR}/.."... | true |
2d0f95c2550a22dd1e417bfa13adb12af990215f | Shell | dlatchx/opengl-es-go | /generate.sh | UTF-8 | 307 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if ! [ -d "xml" ]; then
echo
echo Downloading XML specification files...
echo
#glow download
fi
rm -rf v2.0 v3.0 v3.1
glow generate -api=gles2 -version=2.0 -out="v2.0/gl"
glow generate -api=gles2 -version=3.0 -out="v3.0/gl"
glow generate -api=gles2 -version=3.1 -out="v3.1/gl"
| true |
ff8b518c066378f151da58b1ca4d2c84308c4ed2 | Shell | houstar/project | /scripts/download_runc.sh | UTF-8 | 528 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
readonly RUNC_VERSION="v1.0.0-rc4-2"
# main downloads runc binary into specific dir.
main() {
local url target tmpdir dist
dist="${1}"
target="runc.amd64"
url="https://github.com/alibaba/runc/releases/download/"
url="${url}/${RUNC_VERSION}/${target}"
tmpdir="$(mkt... | true |
31e41923b1195c3f1f15a4d4a1f2ecc48b6cd6cc | Shell | google/objax | /tests/run_linter.sh | UTF-8 | 1,383 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | true |
9bab89725ffbfca836e8ab958da610902dda5929 | Shell | BasJ93/Zybo_Ubuntu | /Rootfs/var/lib/dpkg/info/pppoeconf.postinst | UTF-8 | 597 | 3.28125 | 3 | [] | no_license | #!/bin/sh
set -e
f=/etc/ppp/ip-up.d/000usepeerdns
# woody version
w=dca85124803e711d13c5a49a1070d21e
# one-liner version
o=3e2b31c72181b87149ff995e7202c0e3
if [ "$1" = "configure" ] && [ "$2" ] && [ -r $f ] ; then
if [ -s $f ] ; then
sum=`md5sum $f | cut -f1 -d\ `
if [ "$sum" = $w ] || [ "$sum" = $o ... | true |
6eab58453455c18b0d77050c60a7b93c2cecec23 | Shell | drazul/cassandra-backup-by-example | /scripts/delete-old-snapshots.sh | UTF-8 | 532 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -e
snapshot_prefix=snapshot
snapshot_pattern_name=${snapshot_prefix}-[0-9]{2}-[0-9]{2}-[0-9]{2}T[0-9]{2}-[0-9]{2}
keypsace_name=storage_document
backup_folder=/backup
data_folder=/var/lib/cassandra/data
threshold=2
for container_id in $(docker-compose ps -q)
do
echo "Delete snapshots older than ${... | true |
269b150eba45229fc8bef7f39c9bd2affe8aae14 | Shell | ArloL/dotfiles | /install-linux.sh | UTF-8 | 1,965 | 4.40625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
fail() {
echo "${1}"
exit 1
}
createSymlinks() {
local sourceDirectory=${1}
local targetDirectory=${2}
local backupDirectory=${3}
local withDot=${4}
declare -a symlinks=("${!5}")
if [ ! -d "${sourceDirectory}" ]; then
fail "Di... | true |
c42f82fe8e1a2badbdd563dd43bb4807ccd3238f | Shell | mwsobol/SORCER-multiFi | /bin/jini/scripts/startPhoenix | UTF-8 | 1,605 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# startPhoenix version 1.0: Starts the Phoenix Activation Service
# Copyright (C) 2003 Frank Gauthier
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the Li... | true |
2ceff2290852e017f9bfdf8dd924ef45212a2fc0 | Shell | rossmck94/open-science-course | /website/_deploy.sh | UTF-8 | 949 | 3.390625 | 3 | [
"MIT"
] | permissive | #! /bin/bash
# clone the repository
# if [ $1 == 'local' ]
# then
mkdir info550
git clone -b gh-pages \
https://github.com/benkeser/info550 \
info550
# else
# # configure your name and email if you have not done so
# git config --global user.email "benkeser@emory.edu"
# git config --global user.name "David Benk... | true |
790e15c9c658c9ffce5fde966ce6a7309e7323fc | Shell | tlevine/cloud-beds | /old/fixtures/copy.sh | UTF-8 | 251 | 3.453125 | 3 | [] | no_license | #!/bin/sh
set -e
for fixture in $(cat fixtures.csv|sed 1d|cut -d, -f1); do
filename=$(echo $fixture | sed 's/^.*\///')
if ! test -e $filename; then
echo Copying $fixture
cp ../craigslist/$(echo "$fixture"|sed 's+https\?://++') .
fi
done
| true |
bdb9cd5b4cc6d1615b4efa697cdd11d2252a42a5 | Shell | 9553432712/ShellScripts | /code/pmahesh-useradd.sh | UTF-8 | 475 | 3.53125 | 4 | [] | no_license | #!/bin/bash
USER=$1
if [ -z "$USER" -o $# -eq 0 ];
then
echo "Invalid attempt"
exit
fi
echo "u r enter user as $USER"
#check super admin permision
WHO=`/usr/bin/whoami`
if [ $WHO != "root" ];
then
echo "not root user"
exit
fi
/usr/bin/id $USER
if [ $? -eq 0 ];
then
echo "user already exist"
exit
fi
usera... | true |
6ed9a698172b05d9e871994d73400e8d217500cc | Shell | xr09/rainbow.sh | /rainbow.sh | UTF-8 | 641 | 3.59375 | 4 | [
"MIT"
] | permissive |
# https://github.com/xr09/rainbow.sh
# Bash helper functions to put colors on your scripts
#
# Usage example:
# vargreen=$(echogreen "Grass is green")
# echo "Coming next: $vargreen"
#
__RAINBOWPALETTE="1"
function __colortext()
{
echo -e " \e[$__RAINBOWPALETTE;$2m$1\e[0m"
}
function echogreen()
{
echo ... | true |
f6d438473fcd91db93dcbe517c058945ed3817b2 | Shell | rbk/bash_scripts | /install_codedeploy.sh | UTF-8 | 938 | 2.96875 | 3 | [] | no_license | #!/bin/bash
yum update -y;
# Install/Start CodeDeploy
yum install -y ruby wget
cd /home/ec2-user
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
service codedeploy-agent start
# Install PHP7, MySQL, and Opcache
# http://docs.aws.amazon.com/AWSEC2/latest/U... | true |
8c7f3036b3a4290b7770f3d82aa7aa7ed2efca72 | Shell | tcolar/cloud_computing | /capstone/data_cleanup/zip_to_s3.sh | UTF-8 | 289 | 3.1875 | 3 | [] | no_license | #!/bin/bash
set -ex
src=/mnt/aviation/airline_origin_destination/
dest=s3://tcolartransportation/raw/aviation/airline_origin_destination/
tmp=./tmp
for f in $src/*.zip
do
echo $f
rm -rf $tmp
mkdir -p $tmp
cd tmp
unzip -o "$f"
aws s3 cp *.csv $dest
cd ..
done
| true |
ae5364626837f99425702b18c64d5d96e09c1718 | Shell | trueman1990/VistaModels | /Auto/cluster/sw/a9/script/clean.sh | UTF-8 | 830 | 3.203125 | 3 | [] | no_license | #!/bin/bash
SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SW_ROOT="$(dirname "$SCRIPT")"
source $SW_ROOT/setup.sh
echo "*** clean.sh cleaning"
cd $SW_ROOT
rm -f `find . -name "*~" -print`
source $SW_ROOT/script/setup_kernel.sh
cd $SW_ROOT/kernel_modules/bridge_driver
if [ -d ../../packages/linux-$VER_... | true |
235e309054b4b6f6c6f31217c32bec804cbf77d0 | Shell | kennylee26/docker | /lts/lts-tasktracker/entrypoint.sh | UTF-8 | 462 | 3.546875 | 4 | [] | no_license | #! /bin/bash
BASE_PATH=/data/app/
ORI_APP_FILE=$(find $BASE_PATH -type f -name "*.jar" 2>/dev/null | head -1)
APP_FILE=${BASE_PATH}app.jar
if [ ${#ORI_APP_FILE} -gt 0 ]; then
echo "create symbolic link for $ORI_APP_FILE"
if [ -e $APP_FILE ]; then
#echo "$APP_FILE was existed, remove that."
rm ... | true |
2b10776573a725a1add65b614ce0c502e7f430c4 | Shell | AtmosFOAM/hilaryRun | /advection/deformingAdvectionCyclic/MPDATA/runAll/initMesh.sh | UTF-8 | 1,395 | 3.8125 | 4 | [] | no_license | #!/bin/bash -e
# Set up a test case either orthogonal or non-orthogonal with a given resolution
# without a specific time-step
if [ "$#" -ne 2 ]
then
echo usage: initMesh.sh orthogonal'|'nonOrthog nx
echo returns name of the mesh direcory
exit
fi
type=$1
let nx=$2*2
ny=$2
case=${type}/${nx}x${ny}
dt=1
# der... | true |
4855ffb53249dbeb93a3172be01571191425f52d | Shell | jiejie3593/automission | /t_dpmsw.sh | UTF-8 | 486 | 2.71875 | 3 | [] | no_license | #!/bin/bash
echo 'input dpm running time(unit is hour):'
read -a t
rm log.txt log.yml
# edc error don't clear up
a=`memt mciodebugindi 0x0 | grep "0x00a" | awk 'BEGIN{FS=","} {print $2}'`
let "b=$a+0x40"
b=`printf "%x" $b`
b=`echo 0x$b`
echo $b
memt mciodebugind 0xa $b
./menu/10-1 2 1 &
sleep "$t"h
pkill -9 "10-1"
ec... | true |
dd886ecd86dd90f89284973891fad1cab9c563a9 | Shell | altair0628/ethereum_bes | /install/20.golang.sh | UTF-8 | 571 | 2.84375 | 3 | [] | no_license | #!/bin/bash
mkdir -p /usr1/program
cd /usr1/program
wget https://storage.googleapis.com/golang/go1.10.4.linux-amd64.tar.gz
tar -zxvf go1.10.4.linux-amd64.tar.gz
mv go /usr/local
echo >> ~/.bash_profile
echo 'export GOROOT=/usr/local/go' >> ~/.bash_pr... | true |
d454982de3dc4f53d7a4eb878436663077bfeb75 | Shell | ecoopnet/aws-lambda-python-boilerplate | /exec_docker.sh | UTF-8 | 505 | 3.28125 | 3 | [] | no_license | #!/bin/sh
# https://hub.docker.com/r/lambci/lambda
(
cd $(dirname "$0")
dockerDir=src
# 必要なら初期化
if [ ! -d "$dockerDir" ];then
mkdir "$dockerDir"
echo "
import json
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')... | true |
377967ffc28d6d33f5b2be812ee453d60e45f6d9 | Shell | syphyr/mpv-build | /scripts/libmysofa-config | UTF-8 | 394 | 3.21875 | 3 | [] | no_license | #!/bin/sh
set -e
BUILD="$(pwd)"
OPTIONS="$@"
case "$PKG_CONFIG_PATH" in
'')
export PKG_CONFIG_PATH="$BUILD/build_libs/lib/pkgconfig"
;;
*)
export PKG_CONFIG_PATH="$BUILD/build_libs/lib/pkgconfig:$PKG_CONFIG_PATH"
;;
esac
cd "$BUILD"/libmysofa/build
cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF ... | true |
81c0dad640df51cd8f4ecf3d20543055bde2e323 | Shell | xing2387/CCVE | /manga/manganelo.com/download.sh | UTF-8 | 1,190 | 3.46875 | 3 | [] | no_license | #! /bin/bash
#need proxy
#lx89691
_id=$1
hostName="chap.manganelo.com"
homeUrl="https://$hostName/manga-"$_id
echo "downloading index html "$homeUrl
curl -s -o home.html $homeUrl
chapterUrls=($(cat home.html | egrep \<a.*chapter-name | perl -pe 's/.*href="(.*?)".*/\1/'))
cat home.html |egrep \<a.*chapter-name | pe... | true |
e877ebadfc81c7308af71009f4fc3d61d564967b | Shell | ro-sanda/Z--explorer | /TailoredPDFs/sim_cards_generator_2.bash | UTF-8 | 9,367 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#Simulation Card 1: u u~ -> Z'
name="sim_card_1"
max=$(wc -l masses_couplings_sim_cards.dat | awk '1==1 {print $1}')
for (( linea=1; linea<="$max"; linea++ ))
do
MGeV=$(awk 'NR=='"$linea"'{print $1}' masses_couplings_sim_cards.dat)
MTeV=$(awk 'NR=='"$linea"'{print $2}' masses_couplings_sim_card... | true |
e263b806bc4e3361717b86efc67a1a4b16a20043 | Shell | Tech-XCorp/bilder | /extras/gstreamer.sh | UTF-8 | 2,392 | 3.25 | 3 | [] | no_license | #!/bin/sh
######################################################################
#
# @file gstreamer.sh
#
# @brief Documentation goes here.
#
# @version $Rev$ $Date$
#
# Copyright © 2012-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.
#
###################... | true |
aa87f8f3736f6dee3b3ca810f2357ec334aceb12 | Shell | CyberScu/lazyrecon | /lazyrecon.sh | UTF-8 | 38,301 | 3.046875 | 3 | [] | no_license | #!/bin/bash
set -emE
# Invoke with sudo because of masscan/nmap
# https://golang.org/doc/install#install
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin
# background PID's control
PID_SUBFINDER_FIRST=
PID_ASSETFINDER=
PID_GAU=
PID_WAYBACK=
SERVER_PID=
PID_SCREEN=
PID_NUCLEI=
[ -d "$STOR... | true |
fd3c4eea9b18bba5ba72a2764d22c012ff4590a6 | Shell | opendatacube/datacube-k8s-eks | /examples/scripts/init_sandbox_db.sh | UTF-8 | 2,471 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Function : Initialize Sandbox DB Reader
# Pre-requisites: Logged into pod with database access with superuser password at hand
# If the superuser password is in k8s secrets the following sequence will get you access
# kubectl aliases are installed otherwise use full commands. It is assumed that a datacub... | true |
7eeea5644448d9ed068d90c1688dd9858f25a9d8 | Shell | kindlyops/pda-inspec | /run-checks.sh | UTF-8 | 1,247 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# don't use set -e because the inspec command will have an exit code when compliance checks
# fail, and we want to keep running checks, not abort the script.
#set -e
# uncomment to debug
#set -x
#echo "Pulling inspec docker container..."
#docker pull chef/inspec
target_server=$1
if [ "$target_server" ... | true |
7838341b3fd86ee84ac04ac09abdff0f8b6fcae9 | Shell | jdrusso/dotfiles | /bin/tmux_terminal_linux | UTF-8 | 318 | 2.9375 | 3 | [] | no_license | #! /bin/sh
TMUX=/usr/bin/tmux
# Use a different TERM setting to fix color issues. Replacing the current
# process with "exec" will pick up the current env.
TERM=screen-256color-bce
if $TMUX has-session -t "terminal"; then
exec $TMUX attach-session -t "terminal"
else
exec $TMUX new-session -s "terminal"
fi
| true |
c3f957e34c43f42eabc20bd08443cce89e3aae8b | Shell | ahmsay/Bash | /functions/variables_scope.sh | UTF-8 | 272 | 2.984375 | 3 | [] | no_license | var1='A'
var2='B'
the_function() {
local var1='C'
var2='D'
echo 'Inside function'
echo "var1: $var1, var2: $var2"
}
echo "Before executing function"
echo "var1: $var1, var2: $var2"
the_function
echo "After executing the function"
echo "var1: $var1, var2: $var2"
| true |
8f35574c78825502d78ff53db1e7927e9baec424 | Shell | readybuilderone/partner-bigdataworkshop-materials | /Lab5/sagemaker_helper.sh | UTF-8 | 943 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
clear
echo "
This script will download your files from your S3 bucket and stage them for Data Science processing.
Ensure that you enter the correct S3 bucket name used in Lab3.
"
echo "Enter your S3 bucket name and press [ENTER]:"
read s3name
echo "Enter your First Name and press [ENTER]:"
read ... | true |
93dee3eb07cc88df85c3a52ba90a4f0a75971c31 | Shell | r551038/Depot | /UnixPAMPOC/multicon.sh | UTF-8 | 194 | 2.796875 | 3 | [] | no_license | clear
echo "this script will login to unix servers concurrently"
uname=$USER
while read uhost
do
echo connecting to $uhost
/usr/X/bin/xterm -T $uhost -e ssh $uhost -l $uname&
done
clear
exit | true |
7cd3264062ffb6c4c002789b798978e90e45e4eb | Shell | cautree/bash-examples | /10_examples_file/file_eof.sh | UTF-8 | 2,185 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# @author: hoojo
# @email: hoojo_@126.com
# @github: https://github.com/hooj0
# @create date: 2018-06-07 21:38:19
# @copyright by hoojo@2018
# @changelog Added bash `file -> eof` example
# ======================================================================================
# Shell 输入/输出重定向————Her... | true |
3d3dd8e1aa3de294e6915b4022534051c8680b4a | Shell | diegovillacis10/CounterReactNativeRedux | /adv.sh | UTF-8 | 328 | 2.578125 | 3 | [] | no_license | # Thanks to https://gist.github.com/hidroh/67b2ee7bbdd9038450c00d8a4d69c3fa
emulator_path="$HOME/Library/Android/sdk/emulator/emulator"
$emulator_path -list-avds | cat -n
printf "Select AVD: "
read index
avd=$(emulator -list-avds | sed "${index}q;d")
echo "Selected: $avd"
$emulator_path -netdelay none -netspeed full -a... | true |
b46acecd2c2ac81c5288c5ad45f773f3a0942dae | Shell | lisennku/doubanfm | /requirements.sh | UTF-8 | 189 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# install mpg123
mpg123_path=$(which mpg123)
if [ -z $mpg123_path ]
then
# install mpg123
sudo apt-get install mpg123
fi
# install requests
sudo pip3 install requests | true |
83812e0d379ad6ad42509bebdd1d805f5a6ef660 | Shell | johnnybgoode/dotfiles | /bash_aliases | UTF-8 | 3,381 | 3.53125 | 4 | [] | no_license | # Shell
alias ls='ls --color=auto --group-directories-first'
alias sl='ls'
alias l='ls -CF'
alias lsl='ls -l'
alias ll='ls -l'
alias lsa='ls -A'
alias la='ls -A'
alias lsla='ls -la'
alias ..='cd ..'
alias mkdir='mkdir -p'
alias md='mkdir'
alias cls='clear; pwd; ls'
alias ff='find . -maxdepth 1 -type f' # all files ... | true |
6b4de4d2bfdeaf626de0b6b01d50edc4f5075e15 | Shell | Matmozaur/IET_SysOp | /lab1/guessing_random_number.sh | UTF-8 | 269 | 3.21875 | 3 | [] | no_license | x=$(($1 + RANDOM % $(($2-$1))))
echo "guess number"
read n
while [ $n -ne $x ] ; do
if [ $n -le $x ]
then
echo "wrong answer, number is too small, guess again"
read n
else
echo "wrong answer, number is too big, guess again"
read n
fi
done
echo "correct!"
| true |
e2c6a786f3791cc71db0bdfbadbafe03736ad48c | Shell | gngrwzrd/badger-dns-update | /badger-dns.sh | UTF-8 | 396 | 3.078125 | 3 | [] | no_license | #!/bin/bash
USER=$1
PASS=$2
DOMAIN=$3
RECORDID=$4
LOGFILE=~/Library/Logs/badger-dns.log
touch $LOGFILE
IPADDRESS=`curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'`
IPADDRESS=$(echo -n "${IPADDRESS//[[:space:]]/}")
curl -X PUT -u "$USER:$PASS" \
-H "Content-length: 0" \
"https://api.badger.com/domains/$DO... | true |
9c7813fa9fc8ed6f9167df9daf49b4a65a71b21a | Shell | andreviewnxtv/root | /lb.sh | UTF-8 | 4,536 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# substituir dns e email pelos novos
clear
txtyellow=$(tput bold ; tput setaf 3) # YellowBold
echo " "
echo -e "${txtyellow} ┌────────────────────────────────────────────┠"
echo -e "${txtyellow} │ ... | true |
c54465b0ef4c4970a363731314bd72b457aef29f | Shell | tinkercloud/study | /shell/get_weblogic_patch.sh | UTF-8 | 1,895 | 3.359375 | 3 | [] | no_license | #!/usr/bin/bash
es_wls=`ps -ef | grep weblogic | grep weblogic.home | grep -v grep | head -1`
if [ -z "$es_wls" ];then
echo "not exists weblogic "
else
wls_home=`echo $es_wls | awk '{ for(i=1; i<=NF; i++){ if ($i ~ /-Dweblogic.home/) print $i}}' | cut -d'=' -f2`
echo ${wls_home}
fi
ps -ef | grep webl... | true |
607c4b4bcea6c5d83543d7d7d734f1c6aee9f4d1 | Shell | vcwebio/modeco.package.kafka_connect | /modeco/deploy-local-up | UTF-8 | 1,256 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
prefix="package_kafka_connect_$2"
if [[ "package_kafka_connect_kafka_connect_kafka_connect_secrets_volume" == "$prefix"* ]] ; then
executionplane --silent docker volume create package_kafka_connect_kafka_connect_kafka_connect_secrets_volume
fi
if [[ "package_kafka_connect_kafka_connect_kafka_... | true |
f66a42bd607b0a8c9d08a8925c02adb8ae9ad15d | Shell | delkyd/alfheim_linux-PKGBUILDS | /python-gilt/PKGBUILD | UTF-8 | 1,730 | 2.578125 | 3 | [] | no_license | # Maintainer: Morten Linderud <morten@linderud.pw>
_pkgname='gilt'
pkgbase="python-gilt"
pkgname=("python-gilt" "python2-gilt")
pkgver=1.1
pkgrel=6
pkgdesc='A GIT layering tool'
url='https://github.com/metacloud/gilt'
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-pbr'
'py... | true |
c47dd21b9e1fc065f75d6f66215e44f1aa32678c | Shell | illwieckz/admin-linuxfr.org | /scripts/backup_gruik.sh | UTF-8 | 3,446 | 3.484375 | 3 | [] | no_license | #!/bin/bash
LC_ALL=C
GPG_RUFFY="--encrypt-key 618D63E9"
GPG_LUKHAS="--encrypt-key D87E3219"
GPG_NONO="--encrypt-key 3BB7675F"
GPG_KEYS="${GPG_RUFFY} ${GPG_NONO} ${GPG_LUKHAS}"
export PASSPHRASE=
BACKUP_ZONE="scp://backupgruik@zobe.linuxfr.org//data/backup/gruik_duplicity"
BACKUP_LOG="/var/log/backup_gruik.log"
BACKU... | true |
959ff1e88a14ad6688c9801684b4c3a18e0cd2e5 | Shell | suigege91/DustFlight_Dragon | /shell/flask_service_running.sh | UTF-8 | 452 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Author: Ryan
# Date: 2020-08-10
function start_application() {
service_running_start
echo "[NOTICE]Running Function => [service_running_start]"
}
function service_running_start() {
service_source_file=../manager.py
python ${service_source_file} server
}
function main() {
echo "----... | true |
23156daecff8f42e12d74a5c5ff341032b065116 | Shell | dv-rain/DHL | /scripts/cleanup.sh | UTF-8 | 420 | 3.515625 | 4 | [] | no_license | #! /bin/bash
set -e
if [ -z "$RTE_TARGET" ]; then
echo "Please export \$RTE_TARGET. Or try running this without sudo."
exit 1
fi
if [ -z "$RTE_SDK" ]; then
echo "Please export \$RTE_SDK"
exit 1
fi
# Validate sudo access
sudo -v
# Compile dpdk
cd $RTE_SDK
echo "Clean the pre-compiled dpdk in $RTE_SD... | true |
9cc84430196ee960794b2402f9c996017beb6815 | Shell | silx-kit/hdf5plugin | /src/fcidecomp/FCIDECOMP_V1.0.2/Software/FCIDECOMP_SOURCES/build.sh | UTF-8 | 2,506 | 3.703125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# $Id: build.sh 778 2016-03-09 07:56:29Z delaunay $
# =============================================================
#
# PROJECT : FCI_COMPRESSION
#
# AUTHOR : THALES Services
#
# Copyright 2015 EUMETSAT
#
# =============================================================
# HISTORY :
#
# VERSION:1.0.1:... | true |
821406460bbeaa922b987f025b485b892f6e84e7 | Shell | amankowski/MG-processing_from-reads-to-bins | /scripts/autometa.sh | UTF-8 | 1,146 | 3.0625 | 3 | [] | no_license | #!/bin/bash
while getopts L:F:R:c: option
do
case "${option}"
in
L) LIB=${OPTARG};;
F) FW=${OPTARG};;
R) RV=${OPTARG};;
c) CONTIGS=${OPTARG};;
esac
done
echo "#############################"
echo "Start autometa binning"
date
cd /scratch/${USER}/tmp.${JOB_ID}/binning/autometa
calculate_read_coverage.py --assembly ${... | true |
d0eba9a7bb0efed913d26a089084d3304340123b | Shell | skrambol/dotfiles-old | /shell_scripts/cmus.sh | UTF-8 | 468 | 3.625 | 4 | [] | no_license | #!/bin/bash
artist=$(cmus-remote -Q | grep '^tag artist ' | cut -d ' ' -f3-)
song=$(cmus-remote -Q | grep '^tag title ' | cut -d ' ' -f3-)
if [ -z "$artist" ] || [ -z "$song" ]; then
output=$(basename -s .mp3 "$(cmus-remote -Q | grep '^file ' | cut -d ' ' -f2-)")
else
output="$artist - $song"
fi
cmus_status=$(cm... | true |
b6050f68de8f9b6d762ee7854a41a9d65c325f8c | Shell | GuyBarros/demostack-gke | /00_install_vault.sh | UTF-8 | 2,209 | 3.078125 | 3 | [] | no_license | #! /bin/bash
source setup_kubeconfig.sh
source helper.sh
# set -eu
# set -o pipefail
## setting up DNS first
c1_kctl apply -f dns/ExternalDNS-cluster-1.yaml
c2_kctl apply -f dns/ExternalDNS-cluster-2.yaml
VAULT_HELM_VERSION=0.9.0
source cross_tls.sh
function setup-vault {
source tls_vault.sh
let cluster_id=$1-1
... | true |
6f6e8cc4253184091b0770cd4019addefd426373 | Shell | codexray/cxdig | /test_suite/vcs-test/gitscript-test.sh | UTF-8 | 2,303 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#Script creating a svn repository and committing all the base actions.
# make bash stop and fail if any command fails
set -e
#Defining repository name
GITREPO=git-repository_test
#Initialisation of the repository
mkdir $GITREPO
cd $GITREPO
git init
touch README.md
git add README.md
git commit -m 'Initial... | true |
8aadf8f3b00d2342286e4bc11980e96a047c5317 | Shell | loganek/hawktracer-integration-tests | /run_tests.sh | UTF-8 | 143 | 2.59375 | 3 | [] | no_license | #!/bin/bash
WORKSPACE="$( cd "$(dirname "$0")" ; pwd -P )/build"
./install.sh $WORKSPACE
pushd $WORKSPACE
python3 ../execute_tests.py
popd
| true |
f1e84fc7462aaf8de7e70f31355209a4f4b8d4f8 | Shell | JessyD/adolescent-brain-parcellation | /code/workflow_participant.sbatch | UTF-8 | 4,049 | 2.859375 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=abcd-parcellation
#SBATCH --time=1:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=4gb
#SBATCH --account=iacc_nbc
#SBATCH --qos=pq_nbc
#SBATCH --partition=investor
# Outputs ----------------------------------
#SBATCH --output=log/abcd-parcellatio... | true |
0bdf62ee4ea4b286ac58aa1ee6720073751bef5d | Shell | kevinelliott/tezos-setup | /docker/tezos-node/import-snapshot.sh | UTF-8 | 588 | 3.265625 | 3 | [] | no_license | #!/bin/bash
source config.sh
TEZOS_HISTORY_MODE="${TEZOS_HISTORY_MODE:-rolling}"
case $TEZOS_HISTORY_MODE in
rolling)
TEZOS_SNAPSHOT="rolling"
;;
full)
TEZOS_SNAPSHOT="full"
;;
archive)
TEZOS_SNAPSHOT="full"
;;
*)
TEZOS_SNAPSHOT="full"
;;
esac
echo "--- Tezos: Importing snaps... | true |
28da5c1fb2e42a88860d3c0e3e9764e1ddf6d497 | Shell | hemali-dodia/User_Registration | /user_registration.sh | UTF-8 | 1,937 | 3.78125 | 4 | [] | no_license | #!/bin/bash -x
echo "welcome"
shopt -s extglob
function valFirstLastName(){
local Name=$1
F_L_Pattern="^[A-Z]{1}[a-z]{2,}$"
if [[ $Name =~ $F_L_Pattern ]]
then
echo "Accepted"
else
echo "Invalid Name, 1st char should be cap, min 3 char required"
... | true |
3ebdb5f3323c6f702462ae511ec11a5606834235 | Shell | DylanJones/othello | /make_pkg.sh | UTF-8 | 567 | 3.15625 | 3 | [] | no_license | #!/bin/zsh
if [ -z "$1" ]; then
FOLDER=other_strategy
else
FOLDER="$1"
fi
rm -rf "$FOLDER"
mkdir "$FOLDER"
cp *.py "$FOLDER"
for f in "$FOLDER"/*.py; do
#sed -i "s/(?(?<=from )[A-Za-z_]*|(?<=import )[A-Za-z_]*\s*$)/\.&/g" $f
for mod in ai heuristics machine_code strategy helpers Othello_Core cfunc_cal... | true |
3a1044f83efbd797096768362663d246e1b50d84 | Shell | AchrafBelkahla/antlr4-oracle | /stuff/prepare_keywords.sh | UTF-8 | 349 | 3.53125 | 4 | [] | no_license | #!/bin/bash
files=(plsql_keywords.txt plsql_reserved_words.txt sql_reserved_words.txt)
for file in ${files[@]}; do
while read line
do
word=${line//\n//}
spaced_word=$(printf $word | sed -e 's/\(.\)/\1 /g')
let spaces_length=29-${#word}
printf "%s:%$spaces_length.s%s;\n" $word "" "$spac... | true |
f2fb9b409a9de079fa468a809de7470ab53ec37d | Shell | yoavp77/work | /inventory/version_report.bash | UTF-8 | 4,126 | 3.328125 | 3 | [] | no_license | #!/bin/bash
export IFS=$(echo -en "\n\b")
jsonify ()
{
date=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
host=`hostname`
month=`date '+%Y-%m'`
echo "{"
echo '"host"':'"'$host'",'
echo '"date"':'"'$date'",'
echo '"'service'"':'"'$1'",'
echo '"'version'"':'"'$2'",'
echo '"'plugin'"':'"'$3... | true |
26a6f16acd35cb6e0c1a29eb09031790d3f60116 | Shell | TenOfEleven/ports | /scripts/ports.sh | UTF-8 | 6,411 | 4.21875 | 4 | [] | no_license | #!/bin/bash
get_portpath() {
local port=$1
if [ -z "$port" ]; then
echo "Please define port name."
exit 2
fi
for r in ${PORTREPO[@]}; do
if [ -f $r/$port/spkgbuild ]; then
portpath=$r/$port
break
fi
done
if [ -z "$portpath" ]; then
echo "Port '$port' not exist."
exit 1
fi
}
revert_chang... | true |
d5fd04ec8130adcc2b3fe48faeb79ed0a962a6ef | Shell | topherh/Homestash | /bin/hulk | UTF-8 | 878 | 3.71875 | 4 | [] | no_license | #!/bin/bash
################################################################################
#### Name: Hulk ########
#### Created: 20 Jan 2011 ########
#### Owner: cheiland@uw.edu ... | true |
19a7e4d26628a1b0dcce0a146db089cc8f196970 | Shell | bhartm3/ethereum-docker | /scripts/bootnode_start.sh | UTF-8 | 480 | 2.84375 | 3 | [] | no_license | #!/bin/bash
basedir=/root/ethereum
[ -d $basedir ] || echo "ERROR: $basedir not existent"
[ -d $basedir/bootnode ] || mkdir $basedir/bootnode
echo "Generating boot key.."
/usr/bin/bootnode --genkey=/root/ethereum/bootnode/boot.key && echo "Generated boot key successfully"
ip a | grep eth0 | grep inet | cut -d " " -f 6... | true |
e103f34c49eb2598738d52bf7af8b11ab36afe0e | Shell | ReneNyffenegger/about-Bash | /expansion/shell-parameter/common_prefix | UTF-8 | 130 | 2.578125 | 3 | [] | no_license | #!/bin/bash
car_one=Mercedes
car_two=BMW
car_three=Porsche
for v in ${!car*}; do
echo $v
done
# car_one
# car_three
# car_two
| true |
271eb5653d1b7f656f3f7e64aec2c27ee7ca0408 | Shell | natekfl/fms-hardware-control | /resources/wait-for-unifi-ready.sh | UTF-8 | 1,626 | 3.5625 | 4 | [] | no_license | #!/bin/sh
DELAY_INTERVAL=3
SECONDS_WAITED=0
MAX_SECONDS=180
while :
do
SECONDS_WAITED=`expr $SECONDS_WAITED + $DELAY_INTERVAL`
sleep $DELAY_INTERVAL
ALL_CLEAR="true"
DEVICEDATA=`curl -b "$COOKIEFILE" -k -s https://fms.nevermore:8443/api/s/default/stat/device-basic | jq '.data'`
if [ $? != 0 ]... | true |
0cc4367597ba02cb2657889b26dff9460a5a07f8 | Shell | moment-eng/emojibot | /linters/github_actions/ymltojson.sh | UTF-8 | 741 | 3.875 | 4 | [] | no_license | #!/bin/bash
# This script is used to copy all the github workflows into the working directory
# and convert them from yml to json.
# This is done in bash as converting them in Go resulted in malform json using "https://github.com/ghodss/yaml".
# However, I believe this is a bug with gopkg.in/yaml.v2
# and converting t... | true |
09c0dabc03341596608148cba72c071d49418de5 | Shell | hiboyhiboy/opt-script | /www_sh/frp | UTF-8 | 978 | 2.828125 | 3 | [] | no_license | #!/bin/bash
#copyright by hiboy
source /etc/storage/script/init.sh
link="Advanced_Extensions_frp.asp"
echo $1
if [ "$1"x = "stop"x ] ; then
nvram set frp_enable=0
exit
fi
if [ "$1" != "del" ] ; then
eval 'nvram set tablink'$1'='$link';'
nvram set frp_L2="$(($3 + 10))"
nvram set frp_L3="$2"
# show_menu(8,... | true |
1ae645b0beb9358449e7bcedcde480e004be2c1b | Shell | ikenticus/blogcode | /bash/scalr-kube/gcp-oauth | UTF-8 | 2,597 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#
# Generate Bearer token for Google Cloud Platform
#
PEM=/tmp/gcp.pem
help() {
echo -e "\nUsage: ${0##*/} <vault-path> <pem-key> <email-key>"
echo -e "\nExamples:"
echo -e " secret/paas-api/desknet-subscriber/staging pubsub_subscriber_private_key pubsub_subscriber_client_email"
echo -e "... | true |
85d6b3311e72ae7731245e72b56a1e937443a98c | Shell | obatsak/openvpntemplate | /installer.sh | UTF-8 | 3,624 | 3.4375 | 3 | [] | no_license | #! /bin/bash
VERSION_FILE=/etc/ovpninfo
VERSION="1.0"
current_dir=$(pwd)
#check root
if [[ "$UID" != "0" ]];then
echo "You need be root!";
exit 1;
fi
if [[ -f "$VERSION_FILE" ]]; then
echo "oVPN already install!";
echo $(cat $VERSION_FILE);
exit 1;
fi
#get VARs
read -p "Server public ip... | true |
12c7ab58e7a3c0a0bfcad82f3cc1fa4dd5132a9e | Shell | robturtle/linux_config | /bin/automount.sh | UTF-8 | 734 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#Description: This script mount the device at /media/$LABEL
#args:
# $1 the base name of device, if $1 is a pathname, script will convert it to basename
#Author: LiuYang
#ContectMe: JeremyRobturtle@gmail.com
#LastModified: 2012/7/29
if [ -z $1 ]; then
echo "You must specify a device's name at the following... | true |
c6460edf5c2978920ce26b66c2bb5dd75da6ed05 | Shell | shlomi1993/BashScripting | /ex21.sh | UTF-8 | 460 | 4.375 | 4 | [] | no_license | #!/bin/bash
# Shlomi Ben-Shushan
# Arguments check.
if [ "$#" -lt 3 ]
then
echo "Not enough parameters"
exit
fi
# Get arguments.
dir=$1
type=$2
pattern=$3
# Fix dir.
if [[ $dir == "./"* ]]
then
dir=${dir#$"./"}
fi
# Select the wanted files in a lexicographical order.
files=$(find $dir -maxdepth 1 -type ... | true |
675bcdaa43764a5bc0a6eda32a31934f167830c9 | Shell | ekohl/snt-backup | /root/usr/lib/snt-backup/sbin/backup-shell.sh | UTF-8 | 280 | 2.734375 | 3 | [] | no_license | #! /bin/bash
# Author : Robbet Müller <muller@snt.utwente.nl>
#
# Description: Rwrapper around perl script sets all configuration in the enviroment
export BASEDIR='/usr/lib/snt-backup'
export CONFDIR='/etc/snt-backup'
. ${CONFDIR}/server/server.conf
exec "${BASEDIR}/sbin/backup-shell.pl" "$@"
| true |
a6db7977f9d52a4e38fbfc7d2f449ef2b46a2ffa | Shell | mergar/tmp | /legacy/k8s.d/kubernetes/certificates/install_ca.sh | UTF-8 | 876 | 3.1875 | 3 | [] | no_license | #!/bin/bash
[[ "TRACE" ]] && set -x
: ${INSTALL_PATH:=$MOUNT_PATH/kubernetes/install_scripts}
source $INSTALL_PATH/../config
: ${CA_COUNTRY:=IN}
: ${CA_STATE:=UP}
: ${CA_LOCALITY:=GN}
: ${CA_ORGANIZATION:=CloudInc}
: ${CA_ORGU:=IT}
: ${CA_EMAIL:=cloudinc.gmail.com}
: ${CA_COMMONNAME:=kube-system}
: ${CA_DAYS:="3650"... | true |
51241a1a24317cd35f3af58f93fdc14fc0b4a4c0 | Shell | j094097/heroku-buildpack-ruby | /bin/compile_opencv | UTF-8 | 3,377 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# bin/compile_opencv <build-dir> <cache-dir>
# fail fast
set -e
indent() {
sed -u 's/^/ /'
}
build=$1
cache=$2
mkdir -p $build
mkdir -p $cache
cmake_version="3.2.3"
cmake_url="http://www.cmake.org/files/v3.2/cmake-${cmake_version}.tar.gz"
cmake_file="cmake-${cmake_version}.tar.gz"
cmake... | true |
da985de470b59bca0deee2189dfde78093b15053 | Shell | Hellfar/baseConfig | /install/install.sh | UTF-8 | 1,539 | 3.625 | 4 | [] | no_license | #!/bin/bash
ROOTINSTALLDIR="install"
GROUP=".*"
if [ -n "$1" ]; then
GROUP="$1"
fi
# Package installation
./.bin/iniLoader.sh "^$GROUP/.*" "$ROOTINSTALLDIR/install_list" | while read line; do
IFS=/ read group soft <<< `echo "$line"`
script="`ls $ROOTINSTALLDIR/install_scripts/ | grep -P \"^$soft(\.sh)?$\"`"
... | true |
87bc3dc32a665b9f3b8521f24aaf11213d70bac2 | Shell | cyberark/secretless-broker | /test/connector/tcp/mssql/wait_for_mssql | UTF-8 | 567 | 3.859375 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
mssql_host=mssql
while getopts :m: opt; do
case $opt in
m) mssql_host=${OPTARG};;
\?) echo "Unknown option -$OPTARG"; exit 1;;
esac
done
mssql_is_up() {
docker-compose logs $mssql_host | grep "SQL Server is now ready for client connections"
}
# TODO: Use bash-lib for this funct... | true |
49f832eb0a2fffd20a55d7c56893184965061849 | Shell | gesellix/remote-build | /build-remote.sh | UTF-8 | 623 | 2.734375 | 3 | [] | no_license | #!/bin/sh
echo "perform build..."
tar -cz --exclude=./node_modules . | curl -X POST "$DOCKER_HOST/build?t=projekt-builder" -H "Content-Type: application/tar" -T -
echo "rm previous build-result..."
curl -X DELETE "$DOCKER_HOST/containers/build-result"
echo "create build-result..."
curl -X POST "$DOCKER_HOST/container... | true |
a6cc71525e017654fbafa50d2fb89744f6edc211 | Shell | Azure/ato-toolkit | /software factory/installer-connected/ring-0/aks/src/runtime/pipelines/application-management/scripts/create_missing_resources.sh | UTF-8 | 1,754 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -*- coding: utf-8 -*-
# This function will copy a container from a source ACR to a destination ACR
function copy_container_acr () {
# Test if exactly four arguments are passed into the function
if [[ $# -ne 4 ]];
then
echo "Error: Expecting 4 arguments for this function"
... | true |
39a2d552fdbeea7a8181ef535fd0a5d3904935d7 | Shell | usi-systems/freud | /test.sh | UTF-8 | 1,633 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export R_HOME=/usr/lib/R
set -e
echo "Cleaning up previous runs..."
rm -rf test/ann
rm -rf test/symbols
rm -rf micro_benchmark_analysis/eps
rm -rf micro_benchmark_analysis/plots
rm -rf micro_benchmark_analysis/ann
rm -rf micro_benchmark_analysis/symbols
rm -rf freud-pin/symbols
cp freud-statistics/freud-s... | true |
4708c8f24c0f896507c187de6b64c0478412d23b | Shell | px41833/wangjin | /00-common/version/update_version | UTF-8 | 324 | 2.75 | 3 | [] | no_license | #!/bin/sh
set -e
if [ -f etc/config.ini ];then
cp etc/config.ini ./config.ini.bak
fi
rm -rf ./lib ./etc gbsppt
tar -xvf gbsppt.tar
mkdir lib etc
if [ -f ./config.ini.bak ];then
mv ./config.ini.bak ./etc/config.ini
rm ./config.ini
else
mv cnofig.ini ./etc/
fi
mv *.so ./lib/
echo "update successfully... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.