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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8307678445bd877a82ce274367b6044ea2b3df70 | Shell | Python3pkg/GenomeKey | /pilot-study/generate_tiny_bams.sh | UTF-8 | 1,021 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# generate an arbitrary number BAM files from an input BAM
# with different RG (read group) and SM (sample tags)
# Usage:
# generate_tiny_bams.sh <num-bams> <source.bam>
END=$1
INPUT_BAM=$2
OUTPUT_BAM_BASENAME=$(basename ${INPUT_BAM})
OUTPUT_BAM_PREFIX=${OUTPUT_BAM_BASENAME%.bam}
# get unique "SM" (sample... | true |
5b057a4561c8c408d0cd326bac9b2abd8a47e1dd | Shell | brwnj/ggd-recipes | /recipes/genomics/Homo_sapiens/hg38/hg38-reference-genome-ucsc-v1/recipe.sh | UTF-8 | 358 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -eo pipefail -o nounset
## Get the latest hg19 reference genome for USCS. (Patch 13)
wget --quiet -O - http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/p12/hg38.p12.fa.gz \
| gzip -dc \
| bgzip -c > hg38-reference-genome-ucsc-v1.fa.gz
## Index the fasta file using samtools
samtools faid... | true |
e71a8a66291acc32a0a042f4c30f467ee9bb47d1 | Shell | dmeekabc/tagaProtoAnalysis | /tagaScripts/tagaScriptsUtils/collect.sh | UTF-8 | 1,451 | 3.4375 | 3 | [] | no_license | #####################################################
# Copyright 2016 IBOA Corp
# All Rights Reserved
#####################################################
TAGA_DIR=~/scripts/taga
TAGA_CONFIG_DIR=$TAGA_DIR/tagaConfig
source $TAGA_CONFIG_DIR/config
outputDir=$1
for target in $targetList
do
echo
echo processing... | true |
acb1832b102cd23737117b16937a3ceccf3487e4 | Shell | PFigs/wm-config | /modules/main.sh | UTF-8 | 7,627 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2019 Wirepas Ltd
# wm_config_load_settings
#
# Sources the default and custom file to retrieve the parameter values
function wm_config_load_settings
{
if [[ -f "${WM_CFG_SETTINGS_CUSTOM}" ]]
then
web_notify "read settings from ${WM_CFG_SETTINGS_CUSTOM}"
set -o ... | true |
3d8082616f3ffd189eb04633f69593f91e9a8387 | Shell | damoon/ceph-docker | /travis-builds/purge_cluster.sh | UTF-8 | 144 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# FUNCTIONS
function purge_ceph {
docker stop $(docker ps -q)
rm -rf /var/lib/ceph/*
rm -rf /etc/ceph
}
# MAIN
purge_ceph
| true |
ccff2765cf1ef8676cc080fcd32e59ae51902c92 | Shell | weikunzz/test_cases | /libvirt-ci/libvirt_ci/data/jobs/scripts/report_result_to_jira.sh | UTF-8 | 782 | 2.96875 | 3 | [] | no_license | #!/bin/bash
#####################################
# Report failed test result to JIRA #
#####################################
set -xe
if [ $ROOT_BUILD_CAUSE = MANUALTRIGGER ] && [ $FORCE_REPORT != true ] || [ {enable-report} != true ]
then
echo "Skipping reporting to Jira"
else
if [ -f result_rhev.xml ]
... | true |
d5e7d96113422db9b7a481a6828d2f71c37b288a | Shell | CraigJPerry/dotfiles | /dotfiles/bash_logout | UTF-8 | 225 | 2.53125 | 3 | [] | no_license | #!/bin/bash # Never actually run directly, helps syntax highlighter though
# .bash_logout
# Clear terminal on logout (unless this is a nested shell)
if [[ "0$SHLVL" -le 1 ]] && [[ "$TERM" != xterm* ]]; then
clear
fi
| true |
d17beebc4aba614c3f6c9aeb1e1e1979ffb03f30 | Shell | ausov/helm-gs | /bin/main.sh | UTF-8 | 693 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env sh
#
#? helm gs - Google Storage plugin for Helm
##? Usage: helm gs <command>
##?
##? Commands:
##? publish - Publish charts repository to Google Storage
#
set -euo pipefail
script_version=$(grep "^#?" "$0" | cut -c 4-)
script_help=$(grep "^##?" "$0" | cut -c 5-)
function fail() {
local msg=${@}
e... | true |
83d93dc8f100c97b9c1ecf88739a3c9895f2f329 | Shell | va2ron1/vector-datasource | /scripts/docker_boostrap.sh | UTF-8 | 1,324 | 2.96875 | 3 | [] | permissive | set -e
set -x
[ -z "$POSTGRES_PASSWORD" ] && echo "Need to set POSTGRES_PASSWORD" && exit 1;
export PGPASSWORD="$POSTGRES_PASSWORD"
METRO_EXTRACT_NAME="${METRO_EXTRACT_NAME:-new-york_new-york}"
psql -h "${POSTGRES_HOST:-postgres}" \
-p "${POSTGRES_PORT:-5432}" \
-U "${POSTGRES_USER:-osm}" \
-d "${POST... | true |
e04a193a8f6cecef0efa7589b29a03a628a21b33 | Shell | bcntec-learning/bigdata-with-hadoop | /hadoop/env/scripts/init.sh | UTF-8 | 283 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
if [ -f env.sh ]; then
. env.sh
fi
if [[ -z $HADOOP_VERSION ]]; then
echo "HADOOP_VERSION required"
exit
fi
if [[ -z HADOOP_HOME ]]; then
echo "HADOOP_HOME required"
exit
fi
hdfs namenode -format
start-dfs.sh
sleep 10
start-yarn.sh
| true |
968f239671f857c2766d7f0c78fe0024a3b0dabc | Shell | AtticFantastic/emqttd-docker | /src/docker-entrypoint.sh | UTF-8 | 771 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
EMQTTD_DIR=/opt/emqttd
_copy_config() {
CONFIG_VOLUME=/etc/emqttd/config
if [ "$(ls -A $CONFIG_VOLUME)" ]; then
cp -ur $CONFIG_VOLUME/* $EMQTTD_DIR/etc
fi
}
_configure_plugins() {
# copy autoload list if provided
PLUGINS_LIST=$EMQTTD_DIR/etc/plugins.load
if [ -f $... | true |
ada9b985b7087144c1d9d344a8ad910635e9c468 | Shell | vimm0/auto-script | /tech/linux/commandline/zsh/.zshrc | UTF-8 | 774 | 3.3125 | 3 | [
"MIT"
] | permissive | # Custom zsh command.
# Below .zshrc paste the following script.
# Temporary Python Virtual Environment
SRC_DIRECTORY="$HOME/envs"
RED='\033[0;31m'
env(){
if [ $1 ]
then
virtualenv $SRC_DIRECTORY/$1
source $SRC_DIRECTORY/$1/bin/activate;
else
echo "${RED}Warning: Please, provide new directory name as par... | true |
603af2cfad39bedd1c0de964b4bf1639ad658341 | Shell | dbburgess/dotfiles | /scripts/install.sh | UTF-8 | 245 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Run all dotfiles installers.
set -e
cd "$(dirname $0)"/..
# Find other installers and run them iteratively.
find . -name install.sh | grep -v "scripts\|homebrew" | while read installer ; do sh -c "${installer}" ; done
| true |
9a09c5256afe93e5398ec75e8e179b9c96a0664b | Shell | damiendart/toolbox | /.profile | UTF-8 | 1,276 | 3.09375 | 3 | [] | no_license | #!/bin/sh
#
# Damien Dart's cross-shell configuration file for login shells.
#
# This file was written by Damien Dart, <damiendart@pobox.com>. This is
# free and unencumbered software released into the public domain. For
# more information, please refer to the accompanying "UNLICENCE file.
# shellcheck disable=SC2034
... | true |
1f3c250b3372be0a1156d613dcc19b43a952758e | Shell | elbosso/elbosso.github.io | /resources/startxprawithxephyrondisplay77orconnect.sh | UTF-8 | 4,993 | 2.828125 | 3 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | #!/bin/sh
#Copyright (c) 2012-2019.
#
#Juergen Key. Alle Rechte vorbehalten.
#
#Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form,
#mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig:
#
# 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, ... | true |
c0ad93580d33ceb951a26341b8434ce5c92074f5 | Shell | linxuyalun/drone-git | /posix/clone | UTF-8 | 2,193 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh [0/533]
i... | true |
bf3cb6c518cb7fc6756c7aec8b52523927ce5014 | Shell | ahungry/scratch | /composed-types/rt-bench-maker.sh | UTF-8 | 846 | 2.796875 | 3 | [] | no_license | #!/bin/bash
echo 'const Num = Symbol("n")'
echo 'const Str = Symbol("s")'
echo 'const fn = (i, o, f) => ({ i, o, f })'
echo 'const invoke = ({ f }) => (x) => f(x)'
echo 'const in_type = ({ i }) => i'
echo 'const out_type = ({ o }) => o'
echo 'const err = (_i, _o) => { throw new Error("Incompatible types!") }'
echo ... | true |
2950261849cd3ad258b8cd7c1bbe882cc796c667 | Shell | sfinktah/bash | /makefunction.sh | UTF-8 | 369 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
# makes function from source file
# $1 - function name
# $2 - file name, or blank for stdin
makefunction() {
# if [ $2 == "-" ]; then
# cat >
echo -e "$1() {\n" > /tmp/$$
cat $2 >> /tmp/$$
echo "}" >> /tmp/$$
. /tmp/$$
rm /tmp/$$
}
runmakefunction() {
fn="_$RANDOM"
makefunction $fn
$f... | true |
f957dd21ffb73d10c5863500e1cd1f571cea2322 | Shell | bbonsign/.dotfiles | /zshrc | UTF-8 | 711 | 2.53125 | 3 | [] | no_license | fpath=(/usr/local/share/zsh-completions $fpath)
eval "$(starship init zsh)"
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# Get ls output with colors
# Zsh to use the same colors as ls
#LS_COLORS='no=00;37:fi=00:di=1;33:ln=04;36:pi=40;33:so=01;35:bd=40;33;01:'
LSCOLORS='Exfxcxdxbxcxdxbhagacad'
export LSCOLORS
zst... | true |
3e6e9618dc9bdd7f2aa9c09d8f8483c6cc9eef16 | Shell | lightcube/LightCube-OS | /old-rpm-specs/mkinitramfs/init.in | UTF-8 | 2,235 | 3.984375 | 4 | [] | no_license | #!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH
init=/sbin/init
root=
rootdelay=
rootfstype=auto
ro="ro"
rootflags=
device=
problem() {
cat <<"EOF"
Encountered a problem!
Dropping you to a shell.
EOF
sh
}
do_mount_root() {
mkdir /.root
[ -n "$rootflags" ] && rootflags="$rootflags,"
rootflags="$rootf... | true |
c88e7600e47733c92297c84133a4c115353c52c2 | Shell | DamolAAkinleye/big-data-experiments | /clusterScripts/docker-cluster-update-version.sh | UTF-8 | 689 | 2.96875 | 3 | [] | no_license | version=$1
if [ -z "$version" ]
then
echo "Version is empty"
exit
else
echo ${version}
docker commit -a anrisu ubuntu-zookeeper ubuntu-zookeeper:build-$version
docker commit -a anrisu ubuntu-hadoop-master ubuntu-hadoop-master:build-$version
docker commit -a anrisu ubuntu-hadoop-edge ubuntu-hadoop-edge:bu... | true |
a53b2746f8f874f38b87557caaea9ef86ff231b8 | Shell | maigbodi/laptop | /node.sh | UTF-8 | 360 | 2.96875 | 3 | [] | no_license | # Installing and updating nvm, node and npm to the most recent versions
fancy_echo "Updating NVM, Node and NPM..."
export NVM_DIR="$HOME/.nvm"
source $(brew --prefix nvm)/nvm.sh
nvm install node
node --version
npm update npm -g
npm update -g
fancy_echo "Installing global NPM packages..."
npm install -g nodemon
gr... | true |
b7327d392ee59f745402b3c7a4fe59c9aa76aa1d | Shell | KieranJamess/KJ-Repo | /AZURE-PuppetMaster/files/basic_setup_puppet.sh | UTF-8 | 1,121 | 3.109375 | 3 | [] | no_license | #!/bin/bash
HOME=/root
WORKDIR="/tmp"
SERVERVERSION="18.04"
PUPPETFILE="puppet-enterprise-2019.8.5-ubuntu-$SERVERVERSION-amd64"
PUPPETURL="https://pm.puppet.com/cgi-bin/download.cgi?dist=ubuntu&rel=$SERVERVERSION&arch=amd64&ver=latest"
echo "PUPPETFILE: $PUPPETFILE"
echo "PUPPETURL: $PUPPETURL"
cat > /tmp/pe.conf <<... | true |
55713c32ac4ea23d3cc4fed02dc21190cd83e7b7 | Shell | conda-forge/hdf4-feedstock | /recipe/build.sh | UTF-8 | 1,595 | 3.125 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -x
# Get an updated config.sub and config.guess
cp $BUILD_PREFIX/share/gnuconfig/config.* .
# The compiler flags interfere with th build and we need to overide them :-/
if [[ $(uname) == Darwin ]]; then
unset CPPFLAGS
export CPPFLAGS="-Wl,-rpath,$PREFIX/lib -I${PREFIX}/include"
unset LDFLAGS
... | true |
d82eeb9a24b5626ee28c8328db54f2a35a646b93 | Shell | jboxberger/synology-gitea-jboxberger | /src/scripts/start-stop-status | UTF-8 | 865 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.
. "$(dirname $0)"/common
UI_PATH="/usr/syno/synoman/webman/3rdparty/$PKG_NAME"
case "$1" in
start)
[ -d "$TARGET_PATH"/ui ] && ln -s "$TARGET_PATH"/ui "$UI_PATH"
"$SYNO_WEBAPI" --exec api=SYNO.Docker.Container version=1 method=start name="$GI... | true |
87014f1eeac87fe70690bc4ee6ddc587a1e1b234 | Shell | cscetbon/cassandrasidecar-go-client | /regenerate.sh | UTF-8 | 880 | 3.015625 | 3 | [] | no_license | #! /bin/bash
export wv_go_path="module github.com/cscetbon/cassandrasidecar-go-client"
export workspace_dir=$PWD
export wv_tmp_dir=${workspace_dir}/pkg
echo Generating Cassandra Sidecar Go client
rm -fr ${workspace_dir}/pkg && mkdir -p ${workspace_dir}/pkg/cassandrasidecar
cd resources/client_gen
./generate_api_clie... | true |
062d1ff6a2f66a4d2e5d4f13781733684503a27b | Shell | Sydney-Informatics-Hub/Bootstrapping-for-BQSR | /bsv-R1-S9_bqsr_apply_make_input.sh | UTF-8 | 5,612 | 3.5 | 4 | [] | no_license | #!/bin/bash
#########################################################
#
# Platform: NCI Gadi HPC
# Description: make inputs file for parallel exectuion of GATK ApplyBQSR
# Details:
# Job can be run as separate tumour/normal jobs, or as one job.
# The contigs do take longer to print for tumour compared to normal re ... | true |
8ecbddbd140c90b786741b85132bca7d57908f7e | Shell | leitu/jobs | /05_daily/setup.sh | UTF-8 | 396 | 2.703125 | 3 | [] | no_license | #!/bin/bash
if [ `uname -s` == "Linux" ];
then
echo "23 23 * * * root test -x /var/hubcron/cron-daily && /var/hubcron/cron-daily >/dev/null 2>&1" >> /etc/crontab
else if [ `uname -s` == "SunOS" ];
then
echo "23 23 * * * test -x /var/hubcron/cron-daily && /var/hubcron/cron-daily >/dev/null 2>&1" >> /var/spool/cron... | true |
41d4366197909e0a788419cfa28a0fbf0b63d519 | Shell | ionian/scripts | /dwmscripts/dwmbattery | UTF-8 | 333 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
bat(){
onl="$(</sys/class/power_supply/ADP1/online)"
charge="$(</sys/class/power_supply/BAT1/capacity)"
if [[ $onl -eq 0 && $charge -ge 15 ]]; then
echo -e "BAT \x04$charge%\x01"
elif [[ $onl -eq 0 && $charge -le 14 ]]; then
echo -e "BAT \x03$charge%\x01"
else
echo -e "AC \x06$charge%... | true |
083cb5218d254a0e66e95b6589eb1ca36e06221c | Shell | GsSqueak/GsSqueak | /deprecated/scripts/parseTodeitOutput | UTF-8 | 139 | 2.53125 | 3 | [] | no_license | #!/bin/bash
while IFS= read line; do
echo "$line" | grep -E "errors while loading|Press 'Proceed' to continue\." && exit 7
done
exit 0
| true |
83aa5e00e094ebbac8ec403279e161c2ae5d5d98 | Shell | kdave/xfstests | /tests/xfs/503 | UTF-8 | 1,963 | 3.234375 | 3 | [] | no_license | #! /bin/bash
# SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2019 Oracle, Inc. All Rights Reserved.
#
# FS QA Test No. 503
#
# Populate a XFS filesystem and ensure that metadump, mdrestore, and copy
# all work properly.
#
. ./common/preamble
_begin_fstest auto copy metadump
_register_cleanup "_cleanup" BUS
# Ove... | true |
520c4891f27d1be58f024d156bc13ae7251f7f03 | Shell | ibm-apiconnect/pot-onprem-core | /env-setup/liberty/setup.sh | UTF-8 | 5,285 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
# PRE-REQS
# Install Node 4.4.x using instructions at https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
# Include node install build tools: sudo apt-get install -y build-essential
# Package Locations
# ihs.tgz = https://ibm.box.com/shared/static/z3fy8hf0ok... | true |
be3da92f470461d0ea6dadd5730ae752f98733fa | Shell | NeuroStat/cluster-stability-m | /00_nulldata/02_2nd_stab/s6/02_all20_OLS_threshold | UTF-8 | 7,402 | 3.078125 | 3 | [] | no_license | #!/bin/bash
S=$1
NBOOT=$2
rstart=1
START=$(date +%s)
simid=$(printf 'sel%04d' $S)
selection=$(printf 'n20%04d' $S)
# Data folder where the data is supposed to be stored. cope/varcopes.
# DDir="./Onderzoek/doctoraat/scripts/Paper04/01_data/02_emotion/02_all/00_rawData"
# tmpdir="./Onderzoek/doctoraat/scripts/Paper04/0... | true |
7c4e67e0534163062bb2081be6ac0ccbbe59562d | Shell | geniorgeous/ShellUtils | /rmfiles.sh | UTF-8 | 447 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# INIT: arguments number checking
if [ $# != 1 ]
then
echo "USAGE: `basename $0` <directory_name>
DESCRIPTION: removes all the files (not the directories) in the directory \$1
"
exit
fi
# INIT: check directory $1 exists
if [ ! -e "$1" ]
then
echo "directory \"$... | true |
9f540f4c9d2ddaeaf756fa6abf117aab8f9d5cc0 | Shell | andrejsim/lambda-quick | /package-lambda-quick.sh | UTF-8 | 947 | 3.828125 | 4 | [] | no_license | #!/bin/bash
function log {
echo "> $(date +%T) $*"
}
name="dummy-lambda-quick"
bucket="datafabric-nonprod-lambdas"
lambdafile="lambda_function.py"
workdir=python
#$(mktemp -d ${workdir})
mkdir ${workdir}
log ${workdir}
log ${bucket}
log ${lambdafile}
zipfile="${name}.zip"
touch ${zipfile}
log "creating zipfi... | true |
1ddb741fe69b57f71bca2ff23adce266d714669e | Shell | salilkanitkar/branch_predictor | /gshare_graphs.sh | UTF-8 | 688 | 2.875 | 3 | [] | no_license | #!/bin/sh
make clean ; make
for ((i=7 ; i<=12 ; i++)) ; do
for ((j=2 ; j<=$i ; j=j+2)) ; do
rm -f op.$i.$j
done;
done;
for file in gcc jpeg perl ; do
rm -f gshare.points.$file
done;
for file in gcc jpeg perl ; do
for ((i=7 ; i<=12 ; i++)) ; do
for ((j=2 ; j<=$i ; j=j+2)) ; do
trace_file="traces/"$file"... | true |
9df2bead6f9ae3d6164fc37b2852ad6ea68b6425 | Shell | Jhingun1/repo | /archlinuxcn/nodejs-jshint/PKGBUILD | UTF-8 | 581 | 2.59375 | 3 | [] | no_license | # Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: John D Jones III (jnbek) <https://aur.archlinux.org/account/jnbek>
_npmname=jshint
pkgname=nodejs-"$_npmname"
pkgver=2.10.2
pkgrel=1
pkgdesc='Static analysis tool for JavaScript'
arch=('any')
url='http://jshint.com/'
license=('MIT')
depends=('nodejs')
ma... | true |
e2c1024c9652f6cac144bd3d3b0e0a527accbcc7 | Shell | natashayuhimuk/SipService | /SipService/files/sip_ test_calls/dadscript | UTF-8 | 1,989 | 3.46875 | 3 | [] | no_license | #!/bin/bash
mainCatalogName="test_$(date)"
count=0
mkdir "$mainCatalogName"
echo "START TESTING"
echo "-------------------------------------------------------------------------------"
mkdir "$mainCatalogName"/FaildTests
mkdir "$mainCatalogName"/Tests
function createDirectory {
(( count++ ))
mkdir "$mainCatalogName"/T... | true |
4a709ce151eea3a327eede2f633808d488171d2c | Shell | dobrindtlab/shell_scripts | /dependencies/blast_Venn-groups_vs_control-DBs.sh | UTF-8 | 1,791 | 3.5 | 4 | [] | no_license | #!/bin/bash
set -e
### script for the automatic analyse of extracted Venn group proteins of different Prokka runs.
if [ $# -lt 3 ]; then
echo "Usage: $0 input_folder[extracted-proteins] inputfolder[BLAST DB] output-path[Blast]"
exit 1
fi
[ -d "$3" ] || mkdir "$3"
for file in "$1"/*proteins.faa; do
prefix="${fil... | true |
e3c301ad6a6ffc9fc321545ba1b83293bd80ead9 | Shell | thanksPei/ubuntu-scripts | /image/image-rotate | UTF-8 | 3,893 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
# --------------------------------------------
# Rotate a list of image files
#
# Depends on :
# * mimetype (libfile-mimeinfo-perl package)
# * exiftool (libimage-exiftool-perl package)
# * pngtopnm, pnmtopng, giftopnm, ppmtogif, tifftopnm, pnmtotiff and pnmflip (netpbm package)
#
# Revi... | true |
c8c3c34fd8dc5242aa09f455818e1a4623076c8c | Shell | ODEX-TOS/packages | /curl/trunk/PKGBUILD | UTF-8 | 1,399 | 2.65625 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: Dave Reisner <dreisner@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=curl
pkgver=7.74.0
pkgrel=1
pkgdesc="A... | true |
e81586c30961874ffca90cf0624d0b3ce38054b3 | Shell | FollowMeDown/mailbsd | /functions/postgresql.sh | UTF-8 | 9,064 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
# -------------------------------------------------------
# -------------------- PostgreSQL -----------------------
# -------------------------------------------------------
# NOTE: MailBSD will force all clients to send encrypted password
# after configuration completed and SQL data importe... | true |
d923f8fea65695ad4570b4cc06b2dda58229c9ad | Shell | mrseanryan/ubuntu-scripts | /extra-configure-ssh-server.sh | UTF-8 | 725 | 2.90625 | 3 | [
"MIT"
] | permissive | echo "!this script needs to run with sudo!"
CONFIG=/etc/ssh/sshd_config
echo "# BEGIN CUSTOM CONFIG" >> $CONFIG
echo "# yes - for VC remote" >> $CONFIG
echo AllowTcpForwarding yes >> $CONFIG
echo X11Forwarding no >> $CONFIG
# This script run under sudo, so actually uses root for $USER, which is not useful
echo "# ... | true |
0089591548a2d9c4d4c55847b583396b49b0eb6f | Shell | rickard-von-essen/dotfiles | /.config/yadm/bootstrap | UTF-8 | 2,242 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
set -o nounset
system_type=$(uname -s)
export system_type
export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# -- OS / Distribution specific bootstrap --
if [ "$system_type" = "Darwin" ]; then
"$DIR/bootstr... | true |
7c30c51ffdf7532975ed3964d489a96957aae577 | Shell | excalibur44/vps-shell-script | /install-vlmcsd.sh | UTF-8 | 1,082 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
# install-vlmcsd.sh
# A shell script for installing vlmcsd(KMS Emulator in C).
# Tested system:
# Debian 8
# Usage:
# bash <(curl -L -s https://raw.githubusercontent.com/excalibur44/vps-shell-script/master/install-vlmcsd.sh)
URL="https://github.com/Wind4/vlmcsd/releases/latest/download/binaries.tar... | true |
04fc91988dac16268c41c10b8a73e0792652fc18 | Shell | CogRob/intel-aero-notes | /yocto_compile/22-install-extra.sh | UTF-8 | 777 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
CURRENT_SCRIPT="${BASH_SOURCE[0]}"
while [ -h "$CURRENT_SCRIPT" ]; do # resolve $CURRENT_SCRIPT until the file is no longer a symlink
CURRENT_SCRIPT_PATH="$( cd -P "$( dirname "$CURRENT_SCRIPT" )" && pwd )"
... | true |
4219392f01dd074834e6b439da70d278143c5472 | Shell | danielpalstra/dev-host | /install.sh | UTF-8 | 749 | 3.65625 | 4 | [] | no_license | #!/bin/bash
REPO_URL=https://github.com/danielpalstra/dev-host.git
set -x
echo "Starting installation of all kind of crap to get a development host"
echo "Installing dependencies"
sudo apt update -y && \
sudo apt install -y git
# move to tmp to install from
cd /tmp
# First clone te complete git repo
git clone $R... | true |
264a978c13570726015719458f6b16cf632df7e2 | Shell | Verduranti/ParallelEdison | /connectPhone.sh | UTF-8 | 665 | 2.515625 | 3 | [] | no_license | #!/bin/sh
#Connect to Android
#Start up video feed
#This assumes that activateWifi.sh was successfully run
#MotoX's MAC address
#14:1a:a3:63:d4:d1 -> bluetooth?
#14:1a:a3:63:d4:d2 -> normal wifi
#14:1a:a3:63:d4:d3 -> Wifi direct
# Galaxy S3 MAC
#8a:32:9b:03:0b:6b -> Wifi Direct
#Join after being invited.
#wpa_cli ... | true |
0d9ffd3bc1dfdd447ae950fef94b2c2c7e861ef0 | Shell | snorrebrandstadmoen/haproxy-workshop | /docker_tail.sh | UTF-8 | 343 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
die () {
echo >&2 "$@"
echo
exit 1
}
[ "$#" -eq 2 ] || die "Eksempel: docker_tail.sh 9ad 4de"
tmux -2 new-session -n 'Logger' "docker logs -f $1; read -p 'Ferdig'"
split-window "docker logs -f $2; read -p 'Ferdig'"
select-layout even-vertical
set-window-option synchronize-panes on
selec... | true |
8709ff0fce7c84614b2817866d2605456e9857a1 | Shell | mterron/elasticsearch-autopilot | /bin/prestart.sh | UTF-8 | 5,223 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/ash
log() {
printf "[INFO] preStart: %s\n" "$@"
}
loge() {
printf "[ERR] preStart: %s\n" "$@"
}
# Update configuration file
update_ES_configuration() {
REPLACEMENT_CLUSTER="s/^#.*cluster\.name:.*/cluster.name: ${ES_CLUSTER_NAME}/"
sed -i "${REPLACEMENT_CLUSTER}" /usr/share/elasticsearch/config/elasticsearch... | true |
8802dffef3ed08b55e00ac966d049687b2de508b | Shell | cyber-dyne/pjkit.sh | /lib/install.sh | UTF-8 | 378 | 3.71875 | 4 | [] | no_license | from . import env
: ${InstallBinDir:=$SystemBinDir}
install_bin()
{(
local bin="$1"
local bin_name="${2:-$(basename "$bin")}"
mkdir -p "$InstallBinDir"
ln -sf "$bin" "$InstallBinDir/$bin_name"
)}
install_bins()
{
find "$1" -type l -o -type f -maxdepth 1 | while IFS= read -r ... | true |
ead18ea98057609ed74fe19388a2a70babdd104d | Shell | celiaxiao/cyberbrick | /docker-base/mongodb/create_unique_index.sh | UTF-8 | 670 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
source .env
export -a dbnames=${DB_COLLECTION_NAME}
#create user
docker exec -i mongodb mongo -u ${MONGO_INITDB_ROOT_USERNAME} -p ${MONGO_INITDB_ROOT_PASSWORD} ${MONGO_INITDB_DATABASE} << EOF
db.createUser( {user: "${ADMIN_USERNAME}",pwd: "${ADMIN_PASSWORD}",roles: [ { role: "userAdminAnyDatabase"... | true |
07c56a1db6be9e5838e2f4f7aab42685b73ff8af | Shell | FestiveAkp/website | /deploy.sh | UTF-8 | 608 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env sh
# abort on error
set -e
# build static assets
rm -rf dist
npm run build
# write and stage files
cd dist
git init
echo "akash.dev" > CNAME
cat << EOL > README.md
# festiveakp.github.io
This repo holds the static build output for my personal website, which is deployed through GitHub Pages.
You can ... | true |
e57e0e59f46d1e71b4bd2aa723aabcbb3b24365f | Shell | staswiner/bash_scripts | /CompleteGenerator/completion.bash | UTF-8 | 989 | 3.328125 | 3 | [] | no_license | #!/bin/bash
_add_option ()
{
local option=$1;
local current="${COMP_WORDS[COMP_CWORD]}";
local previous="${COMP_WORDS[COMP_CWORD-1]}";
COMPREPLY+=($(compgen -W "$option" -- $current))
}
_add_multi_option ()
{
local option=$1;
shift;
local answers="$@";
local current="${COMP_WORDS[CO... | true |
536cb998f0447a3275b1e2d390bb80feec74f825 | Shell | Redcarred2/PiBoy-Configurator2 | /menus/osd_configuration.sh | UTF-8 | 5,262 | 3.3125 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
#####################################################################
#Project : Retropie_PiBoy_Configurator
#####################################################################
# Global vars
PIBOYCONF_ROOT_FOLDER="$HOME/PiBoy-Configurator"
source $PIBOYCONF_ROOT_FOLDER/common.sh >/dev/null 2>&1
THR... | true |
c06bda6e8a27a2cc97151de59d5ada30299fcffa | Shell | xianxiaoxian/letkf-speedy | /common/timeinc.sh | UTF-8 | 1,098 | 3.734375 | 4 | [] | no_license | #!/bin/sh
function timeinc6hr
{
if test $# -ne 4
then
echo "USAGE: $0 yyyy mm dd hh"
return 1
fi
local YYYY
local MM
local DD
local HH
local ITMP
YYYY=$1
MM=$2
DD=$3
HH=$4
# Increment date
HH=`expr $HH + 6`
if test $HH -lt 10
then
HH=0$HH
elif test $HH -gt 23
then
HH=00
DD=`expr $DD + 1`
if test $DD -lt... | true |
4e2e615b6022fdacc25f6e351ddebe66dce02f7f | Shell | tomekaq/CORSIKAscripts | /divideByID.sh | UTF-8 | 720 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Autor: Tomasz Antonik
# Program do rozdzielania cząsstek wg ich ID
# Program wczytuje plik tekstowy z danymi i następnie rozdziela
# dane do mniejszych plików według podanego przez użytkownia parametru
# Program read data from output of script txt
# and divide data according by user parameter
i=... | true |
7bcc44b43ea1c90f9fdba138adc12853399cf581 | Shell | oceanscan/imcjava | /mvn_update.sh | UTF-8 | 278 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
gradle publishToMavenLocal
version=`gradle printVersion | sed -n 3p`
echo ""
echo "Publishing ICMJava v$version to omst's Maven repository..."
sleep 1
scp -r ~/.m2/repository/pt/lsts/imcjava/$version omst@192.168.61.1:/srv/data/www/maven/pt/lsts/imcjava/
| true |
b3c83539156288dd75bdd714f760854698c668b3 | Shell | jaswanth-gorripati/FileMetaStore | /hlf-network/scripts/fileHashExec.sh | UTF-8 | 6,435 | 2.71875 | 3 | [] | no_license | #!/bin/bash
source scripts/utils.sh
FABRIC_CFG_PATH=$PWD/../config/
. scripts/envVar.sh
CHANNEL_NAME="filesmetastore"
CC_NAME="metarecords"
successInvokeTx() {
setGlobals 1
parsePeerConnectionParameters 1 2
res=$?
verifyResult $res "Invoke transaction failed on channel '$CHANNEL_NAME' due to uneven number o... | true |
60619ff48cfec370e130a30e66231cd339fe627e | Shell | mmmarq/raspberry_setup | /bin/motion_uploader.sh | UTF-8 | 1,133 | 3.921875 | 4 | [] | no_license | #!/bin/sh
# REFERENCE
# http://acd-cli.readthedocs.io/en/latest/usage.html
# http://xmodulo.com/access-amazon-cloud-drive-command-line-linux.html
TEMP_FILE="/tmp/motion_uploader.tmp"
trap cleanup 1 2 3 6 9 15
cleanup()
{
echo "Caught Signal ... cleaning up."
rm -f $TEMP_FILE
echo "Done cleanup ... quitting."
... | true |
27a4be8bff83dfbe930fb79b7fb836b25a1b8847 | Shell | hexcores/server-installer | /mongodb.sh | UTF-8 | 539 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
#echo ">>> Installing MongoDB"
# Get key and add to sources
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
# Update
sudo apt-get -y update
sudo... | true |
b74a95618614b45edbf577ce6d9be5e70786b1cb | Shell | Ethns/bash_basic | /pathexistence.sh | UTF-8 | 171 | 3.625 | 4 | [] | no_license | read -p 'Input the path of the file you want to check in current folder: ' filepath
if [ -e $filepath ]
then
echo 'File exists'
else
echo 'File does not exist'
fi | true |
e7e7893c739c55c4490fc2c3d2234881c591310f | Shell | monokoo/patches4lede | /apply_patch.sh | UTF-8 | 941 | 2.71875 | 3 | [] | no_license | #!/bin/sh
sh /home/lede/patches4lede/clean_patch.sh
cd /home/lede/lede-source
patch -p1 -i /home/lede/patches4lede/personal-modify.patch
[ -n "$(cat /home/lede/lede-source/.config | grep phicomm-k3)" ] && {
echo "apply patches for K3..."
patch -p1 -i /home/lede/patches4lede/just_for_k3.patch
#patch -p1 -i /home/lede... | true |
f59dd9989caf7d0712e68c6d9bd00e4c7c995060 | Shell | raid-7/RaidRace | /run.sh | UTF-8 | 515 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd "$(dirname "$0")"
usage() {
echo "Usage:
Run client
c host [port=25565]
or run server
s [port=25565] [num_of_players=2]"
exit 1
}
if (( $# == 0 )); then
usage
fi
if [[ "$1" == "c" ]]; then
# host port
if (( $# == 1 )); then
usage
fi
java -cp target/main-1... | true |
9cdc92732c17764e1cbb306378e6c3003184532f | Shell | JussiPakkanen/sdk-build-tools | /buildqt5.sh | UTF-8 | 9,615 | 3.375 | 3 | [] | no_license | #!/bin/bash
#
# This script builds dynamic and static versions of Qt5 into
# subdirectories in the parent directory of the Qt source directory.
#
# Qt5 sources must be found from the current user's home directory
# $HOME/invariant/qt-everywhere-opensource-src-5.5.0 or in in case of
# Windows in C:\invariant\qt-everywhe... | true |
e1e6c3fa3adb0f47b2737c0582ef18958408ae7f | Shell | macisamuele/docker-images | /scripts/docker-push.sh | UTF-8 | 804 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
if [ $# -ne 2 ]; then
echo "Usage: $0 <build-platform> <service-name>" > /dev/stderr
exit 1
fi
set -euo pipefail -o posix -o functrace
# shellcheck source=scripts/common.sh
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/common.sh"
docker_login_and_enable_experimental_cli
echo "... | true |
698ecfd3ae4e79d1de1cbd42b70d81615f41722c | Shell | StackArch/pkg-oslo.policy | /PKGBUILD | UTF-8 | 1,531 | 2.515625 | 3 | [] | no_license | # Maintainer: BigfootACA <bigfoot@classfun.cn>
_pyname=oslo.policy
_pycname=${_pyname/./-}
pkgname=python-${_pycname}
pkgver=3.8.2
pkgrel=1
pkgdesc="Oslo Policy library"
arch=(any)
url="https://docs.openstack.org/oslo.policy/latest/"
license=(Apache)
depends=(
python
python-pbr
python-requests
python-oslo-config
... | true |
d5b38f853ed93f1a65a13b1128b17b4bdfc8ece8 | Shell | nicolerg/format_refseq | /compress_move.sh | UTF-8 | 493 | 3.484375 | 3 | [] | no_license | #!/bin/bash
tmpdir=$1
outdir=$2
cores=$3
set -e
cd ${tmpdir}
mkdir -p ${outdir}
tar_folder () {
local folder=$1
local outdir=$2
tar -czvf ${folder}.tar.gz ${folder}
rsync -Ptvh ${folder}.tar.gz ${outdir}
}
export -f tar_folder
folders=$(ls | grep -v -E '\.fna|genome_length|gz')
parallel --verbose ... | true |
ec74e501e4b78ab13ed69b879914a07bc31ba7b2 | Shell | xujun10110/pentest-console | /console_interface/scripts/ptc-copyProject.sh | UTF-8 | 3,087 | 3.9375 | 4 | [] | no_license | #!/bin/bash
## Moves all assets from one project to another
##
# Usage
if [ $# -ne 2 ]; then
echo "USAGE: $0 [from-engagement] [to-engagement]"
exit 1
fi
# Get Arguments
# TODO - Sanitization
FROM=$1
TO=$2
# Check if client already exists
if [ -e /var/trac/$TO ] ; then
echo "The client name already exists. ... | true |
0ea39fc405ce0b8bf5461b8239f1ddb64b4cdaed | Shell | dang/scripts | /cfg/.bashrc.d/actions/aliases | UTF-8 | 242 | 2.515625 | 3 | [] | no_license | # vim: ft=sh:
# Local aliases
me=$(readlink --canonicalize --no-newline $BASH_SOURCE)
source "${SCRIPTS}/functions.sh"
#source "${SCRIPTS}/flavor/${FLAVOR}/functions.sh"
#
# Make new source this too
export ALIASFILES="${ALIASFILES} ${me}"
| true |
514a783b82601d16ea372801fdd5cfda3e9dab73 | Shell | GeRDI-Project/Bamboo-Scripts_Utils | /helper-scripts/git-utils.sh | UTF-8 | 5,024 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Copyright © 2018 Robin Weiss (http://www.gerdi-project.de/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | true |
66d0398c4e4208e06162a154886cbb3378a3e4d6 | Shell | krishnodey/Shell-Scripting-Exercises | /27.sh | UTF-8 | 168 | 2.96875 | 3 | [] | no_license |
for((p=2; p<=100; p++))
do
count=0
for((i=2;i<=p-1;i++))
do
if (( p % i == 0))
then
((count++))
break
fi
done
if [[ $count == 0 && $p != 1 ]]
then echo $p
fi
done
| true |
e281305dab3fb8b620118356bdc5977a8600c594 | Shell | davidsbatista/TREMoSSo | /batch-evaluation.sh | UTF-8 | 1,293 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Make sure REDIS is running
# sudo /etc/init.d/redis-server start
N_SIGS=(100 200 300 400 500 600)
N_BANDS=(25 50 75 100 150)
KNN=(1 3 5 7)
for s in 100 200 300 400 500 600; do
for b in 25 50 75 100 150; do
for k in 1 3 5 7; do
DIR=${s}.${b}.${k}
echo ${DIR}
... | true |
440d43841a2e42af7a8842c97bc5ff3dd299c6db | Shell | OrquestraCD/multicluster-scheduler | /test/e2e/test_argo.sh | UTF-8 | 1,840 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | set -euo pipefail
source test/e2e/aliases.sh
setup_argo() {
# Install Argo in cluster1
k1 create ns argo
k1 apply -n argo -f https://raw.githubusercontent.com/argoproj/argo/v2.2.1/manifests/install.yaml
# kind uses containerd not docker so we change the argo executor (default: docker)
# TODO modify install... | true |
cd1de1ec281e9a68732c76e895eae4f31b54c332 | Shell | Mahboub99/CMP303_A6 | /lab1/1_1_7.sh | UTF-8 | 751 | 2.90625 | 3 | [] | no_license | #!/bin/bash
rm -rf lab1 #1
mkdir lab1 #2
cp words.txt numbers.txt lab1 #3
cd lab1
paste words.txt numbers.txt > MergedContent.txt #4
head -3 MergedContent.txt #5
sort MergedContent.txt > SortedMergedContent.txt #6
echo "The sorted file is :" #7
cat SortedMergedContent.txt #8
chmod u-r SortedMergedContent.txt #9
cat Mer... | true |
8fc9947e1dad152aa3e6fcaf237b0bec56f6029d | Shell | williamloures/Random-scripts | /split-mkv.sh | UTF-8 | 245 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
for file in *.mkv
do
mkvmerge -o output.mkv --split chapters:all "$file" && rm "$file"
done
for file in *.mkv
do
TRACK=${file:8:2}
ffmpeg -i "$file" -vn -c:a flac -sample_fmt s16 "$TRACK.flac"
rm "$file"
done | true |
63e9f89af3aa08bb16ac7968c8f3a18384a57ada | Shell | dpb587/upstream-blob-mirror | /bin/all | UTF-8 | 798 | 3.71875 | 4 | [] | no_license | #!/bin/bash
set -eu -o pipefail ; export SHELLOPTS
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
cd "$DIR"
exit=0
for metalink in $( ( find . -name metalink ; find . -name 'metalink-*' ) | cut -c3- | sort ); do
set +e
./bin/watch "$S3_BLOBS" "$( dirname "$metalink" )" "$( basename "$metalink" )"
... | true |
b7c68027bbcfbe6349022250aa07c6f2cdb798e7 | Shell | lenik/uni | /devel/start2work/stwork.in | UTF-8 | 1,102 | 3.265625 | 3 | [] | no_license | #!/bin/bash
: ${RCSID:=$Id: - @VERSION@ @DATE@ @TIME@ - $}
: ${PACKAGE:=@PACKAGE@}
: ${PROGRAM_TITLE:=Start dev environ with all their tools}
: ${PROGRAM_SYNTAX:=[OPTIONS] [--] ...}
. shlib-import cliboot
option -q --quiet
option -v --verbose
option -h --help
option --version
... | true |
3021bdd33112e1c67653c18356cb8d1da28bce37 | Shell | shugaoye/x86qemu | /recovery/root/sbin/network_start.sh | UTF-8 | 1,916 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/sbin/sh
# this was kanged from /system/etc/init.goldfish.sh
# we run it in the init.rc and it is required to get
# the network running in order for adb to work in
# emulator
# Setup networking when boot starts
ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
route add default gw 10.0.2.2 dev eth0
# ro.kernel.andro... | true |
2305e76b7ed57cb20af59283366d35c8d7357609 | Shell | timberline-secondary/hackerspace-control-repo | /site/profile/files/guest_account/post_login_default.sh | UTF-8 | 809 | 3.75 | 4 | [] | no_license | #!/bin/sh
# /etc/gdm3/PostLogin/Default
# Create a temporay home drive for the guest user
# https://unix.stackexchange.com/questions/258544/create-guest-account-in-gnome-3-x-on-arch-linux
guestuser="guest"
## Set up guest user session
if [ "$USER" = "$guestuser" ]; then
# create home drive
mkdir /tmp/"$guest... | true |
7f1e314b4e8d514280deed46c6f42e5e76aff139 | Shell | ndollar/misc | /bash/bashrc-extras.sh | UTF-8 | 838 | 3.90625 | 4 | [] | no_license | if [ -z "$(type -t createnv)" ]; then
echo "Adding createnv() to ~/.bashrc";
read -d '' createnv <<- "EOF"
# Usage: createnv [virtualenv directory name]
# Wraps call to virtualenv with extra arguments
# and places into .env directory.
createnv() {
if [[ ! $1 ]]; then
echo... | true |
abf5604ecceb52cdcdb0d413b43c524105644bba | Shell | truenas/ports | /security/ruby-bitwarden/files/rubywarden-api.in | UTF-8 | 1,187 | 3.21875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
# Created by: Mark Felder <feld@FreeBSD.org>
# PROVIDE: rubywarden-api
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable `rubywarden-api':
#
# rubywarden_api_enable="YES"
. /etc/rc.subr
name=rubywarden_api
rcvar=rubywarden_api_enable
load_rc_config ${name}
: ${ru... | true |
0f072de400418915a1e17352f9ef78a104606754 | Shell | CarlosAugustoPO/gutodotfiles | /.bin/classicode | UTF-8 | 3,046 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#FG Colours
color_fg_none="\e[0m"
color_fg_lightGreen="\e[38;5;47m"
color_fg_lightBlue="\e[38;5;75m"
color_fg_lightYellow="\e[38;5;229m"
color_fg_lightPink="\e[38;5;211m"
color_fg_lightPurple="\e[38;5;163m"
color_fg_red="\e[38;5;196m"
#BG Colours
color_bg_purple="\e[48;5;54m"
amanha=$(date -d "+1 days" ... | true |
00e7f8c10ac6c8c77f0029b2546189b595cb09b1 | Shell | tringn/AgeGenderPrediction | /compile2Movidius.sh | UTF-8 | 537 | 2.53125 | 3 | [] | no_license | #!/bin/sh
if [ ! -d "./graph" ]; then
mkdir -p ./graph;
fi
AGENET_MODEL=$(ls -t models/AgeNet/caffenet_age_train*.caffemodel | head -n 1)
AGENET_DEPLOY=prototxt/AgeNet_deploy.prototxt
mvNCCompile -s 12 -w $AGENET_MODEL $AGENET_DEPLOY -o graph/AgeNet.graph
GENDERNET_MODEL=$(ls -t models/GenderNet/caffenet_gender... | true |
1fd5eb26906aa81ced672f55883c00af28d845fa | Shell | abelardojarab/ase-testing | /test_afus/ccip_vtp_nlb_all/SW/run.sh | UTF-8 | 2,571 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# Wait for readiness
echo "##################################"
echo "# Waiting for .ase_ready #"
echo "##################################"
while [ ! -f $ASE_WORKDIR/.ase_ready.pid ]
do
sleep 1
done
# Simulator PID
ase_pid=`cat $ASE_WORKDIR/.ase_ready.pid | grep pid | cut -d "=" -s -f2-`
## Co... | true |
303323173eeec093fcbeee0782d905c2d575995d | Shell | Gali-Madhan-Kumar/AssignmentSolutions | /Day-6 Solutions/factorial.sh | UTF-8 | 181 | 3.578125 | 4 | [] | no_license | #! /bin/bash -x
read -p "Enter the number to find the factorial " number
fact=1
for ((num=2; num<=$number; num+=1))
do
((fact *= num))
done
echo "Factorial of $number is " $fact
| true |
ba76e56eefc13a4dcdd6bb1bbb072412e1e24035 | Shell | patchkit-net/patchkit-development-kit | /src/install_vars.sh | UTF-8 | 253 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# install_vars <platform>
SRC_INSTALL_VARS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PDK_INSTALL_TEMP_DIR=$SRC_INSTALL_VARS_SCRIPT_DIR/../temp$1
export PDK_INSTALL_PLATFORM_DIR=$SRC_INSTALL_VARS_SCRIPT_DIR/../$1
| true |
6169c82ecaceb64d686c086692fae15f65a69b02 | Shell | open-estuary/test-definitions | /auto-test/middleware/database/mysql-utilities/mysql/createdb.sh | UTF-8 | 414 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# create database db1 db2
db1=$1
mysql -uroot -proot -e "create database if not exists $db1"
if false ;then
set dbname [lindex $argv 0]
EXPECT=$(which expect)
$EXPECT << EOF | tee out.log
set timeout 500
spawn mysql -u root -p
expect "password:"
send "root\r"
expect "mysql>"
send "create database $dbn... | true |
e44b749fcb2bfcc8907abb80f505ec32dff5fc13 | Shell | buzzy/linux.base | /sysroot/etc/network/if-pre-up.d/wpasupplicant | UTF-8 | 348 | 2.734375 | 3 | [] | no_license | #!/bin/sh
if [ "$METHOD" == "manual" ] && [ "$PHASE" == "pre-up" ] && [ -n "$IF_WIRELESS" ]; then
IF_WPA_CONF="${IF_WPA_CONF:-/etc/wpa_supplicant/wpa_supplicant.conf}"
ip link set dev $IFACE up
wpa_supplicant -B -i $IFACE -s -c $IF_WPA_CONF -P /var/run/wpa_supplicant-$IFACE.pid
wpa_cli -i $IFACE -B -a /etc/wpa_sup... | true |
78099cdf707f144fc74b3ac6fb3004998b3be511 | Shell | alpinelinux/aports | /main/iproute2-qos/setup-qos | UTF-8 | 2,076 | 3.78125 | 4 | [] | no_license | #!/bin/sh
PREFIX=
. "$PREFIX/lib/libalpine.sh"
conf="$ROOT/etc/conf.d/qos"
cfgval() {
awk -F= "/^$1/ {print \$2}" $conf 2>/dev/null
}
setcfg() {
local key=$1
local value=$2
sed -i "s/^\\(\\#\\)*$key=.*/$key=$value/" "$conf"
if ! grep "^$key=" "$conf" >/dev/null ; then
echo "$key=$value" >> "$conf"
fi
}
apk... | true |
aa67372aba453f6d1aa906c5d221c8b0f941d272 | Shell | lgannoaa/global-workflow | /parm/config/config.wave | UTF-8 | 4,162 | 2.84375 | 3 | [] | no_license | #!/bin/ksh -x
########## config.wave ##########
# Wave steps specific
echo "BEGIN: config.wave"
# Parameters that are common to all wave model steps
# System and version
export wave_sys_ver=v1.0.0
# This config contains variables/parameters used in the fcst step
# Some others are also used across the workflow in w... | true |
60c76f0655b0e96da0b914a5e7efc0cef80bfdc4 | Shell | smuthuswamy/spinnaker-the-hard-way | /stop-core.sh | UTF-8 | 1,171 | 2.734375 | 3 | [] | no_license | #!/bin/bash
echo "Stopping deck (for ui)..."
~/dev/spinnaker/scripts/deck-stop.sh
echo
sleep 1
echo "Checking if deck port is released..."
sudo lsof -t -i:9000
echo "---"
echo
echo "Stopping clouddriver (for interacting with clouds)..."
~/dev/spinnaker/scripts/clouddriver-stop.sh
echo
sleep 1
echo "Checking if clou... | true |
1c603544aa09f6914a4b547d05d09d3e0bedb4a1 | Shell | nimbix/jardoc | /docs/recipe/jarvice-filemanager-plugin.sh | UTF-8 | 1,283 | 3.59375 | 4 | [] | no_license | function jarvice_job_plugin_usage {
echo "Available <jarvice_job_plugin_options>:"
echo -e " --up <src> <dst>\tUpload local <src> file to remote <dst>"
echo -e " --down <src> <dst>\tDownload remote <src> file to local <dst>"
}
function jarvice_job_plugin {
while [ $# -gt 0 ]; do
case $1 in
... | true |
3ffb25a5e0bb960e3cc36c66032e6a55946dcb2f | Shell | MonetDB/eanthony | /eanthony.sh | UTF-8 | 3,680 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#set -x
BASEDIR=$EABASEDIR
if [ -z $BASEDIR ] || [ ! -d $BASEDIR ]; then
echo "you need to set an existing basedir in \$EABASEDIR"
exit -1
fi
uname | grep -v CYGWIN > /dev/null
ISWIN=$?
while :
do
RUNID=`date +%s`
echo $RUNID
date
git -C $BASEDIR pull
# these files need to exist and denote R ... | true |
dcb8464c05d96c369b844a65e50d1ee834456053 | Shell | CMSROMA/Timing-TOFPET | /connect_TOFPET.sh | UTF-8 | 252 | 2.8125 | 3 | [] | no_license | #!/bin/bash
fileA="/tmp/d.sock"
fileB="/dev/shm/daqd_shm"
if [ -f "$fileA" ]
then
echo "removing $fileA"
rm -i $fileA
fi
if [ -f "$fileB" ]
then
echo "removing $fileB"
rm -i $fileB
fi
./daqd --socket-name=/tmp/d.sock --daq-type=GBE
| true |
14ce5b512fd3d3b7e10c360ae80fbab4bd35acb9 | Shell | notlixiang/robotics_setup | /cmake_source.sh | UTF-8 | 833 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | # source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# CMake - cmake.org"
echo "############################"
echo ""
echo "CMake, the cross-platform, open-source build system. https://cmake.org"
echo ""
echo "h... | true |
f4bb01b4888251a1dce624a39e3d6bb657c93945 | Shell | alexhillc/dotfiles | /prefs.sh | UTF-8 | 10,964 | 2.640625 | 3 | [] | no_license | #!/bin/bash
################ GENERAL ############################
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Set computer name (as done via System Preferences → Sharing)
sudo scutil --set ComputerName "Alex's MacBook Pro"
sudo scutil --set HostName "Alex's MacBook Pro"
sudo scutil --set L... | true |
0b26255b078f7ef9c5ce4798deb5d3022941b6f4 | Shell | kblomqvist/my-bash-scripts | /dups3.sh | UTF-8 | 2,671 | 3.734375 | 4 | [] | no_license | #!/bin/sh
#
# Backuping
# ---------
# dups3 backup
#
# Restoring
# ---------
# dups3 restore /home/my/foo.txt ~/restore # Restore a file
# dups3 restore /home/my ~/restore # Restore a directory
#
# todo:
# dups3 restore -t 2010-09-22T01:10:00 ~/restore # Restore everything from a point in time
#
# References... | true |
7bd92b02e4184c2a9f059233007d2bf8ef11ebbc | Shell | jianyongchen/oor | /vagrant/install-oracle-java8.sh | UTF-8 | 511 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
set -o pipefail
export DEBIAN_FRONTEND=noninteractive
echo "Adding WebUpd8 PPA for Oracle Java 8 ..."
add-apt-repository -y ppa:webupd8team/java 2>/dev/null
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get -y -q update
apt-get -y ... | true |
c3db5811319e4614ee385e90d9c2691c144cc8fc | Shell | nkyo/MBScript | /mbmenu/bin/autocheck/check_ram | UTF-8 | 433 | 3.359375 | 3 | [] | no_license | #!/bin/bash
MEM_THRESHOLD=90 #percent
MEM_TOTAL=$(free | grep "Mem:" | awk '{print $2}')
MEM_REMAINIG=$(free | grep "Mem:" | awk '{print $4}')
MEM_CURRENT=$(echo "scale=0;100-$MEM_REMAINIG*100/$MEM_TOTAL" | bc -l)
if [ $MEM_CURRENT -gt $MEM_THRESHOLD ] ; then
PIDMEM=$(ps -eo pid -eo %mem | sort -k 2 -r | grep -v %MEM... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.