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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e08e72a408ed15d1b0f2a00aad96c0d1770f85f2 | Shell | Pandailo/ComptesOperationsBDED | /bin/newjc | UTF-8 | 1,717 | 3.0625 | 3 | [] | no_license | #!/bin/sh
# ---------------------------------------------------------------------------
# JOnAS: Java(TM) Open Application Server
# Copyright (C) 2005-2007 Bull S.A.S.
# Contact: jonas-team@objectweb.org
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser Gene... | true |
4792584491e024acde57c8c239fdf22efc5a4b97 | Shell | JosephBrendler/joetoo | /dev-util/joetoolkit/files/backup_utilities/oromisbackup | UTF-8 | 2,603 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# oromisbackup - backup everything on my router/firewall/vpnserver
# joe brendler - 19 May 2019
source /usr/local/sbin/script_header_brendlefly
BUILD=0.0
VERBOSE=$TRUE
verbosity=2
#---[ variables ]-----------------------------------------------------------
# sync all content in these directories (restrict... | true |
12d47c5062fdcdba544f7e33a005b5f64cec8c3e | Shell | langenhagen/scripts | /_archive/iterate-over-git-revs.sh | UTF-8 | 902 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# Iterates over commit range,, checks out every revision in reverse order and performs actions on
# each revision. Sums up the exit codes of each action and returns this sum at the end.
#
# author: andreasl
oldrev="$1"
newrev="$2"
all_revs="$(git rev-list $oldrev..$newrev)"
# For experimental reasons
e... | true |
ac6ada6f01d863a6a49bfbbc57e5f44ac1061886 | Shell | capr/lua-attic | /move-to-submodules/c/libpng/build | UTF-8 | 572 | 3.34375 | 3 | [] | no_license | #!/bin/sh
cd "${0%build}" || exit 1
build() {
${X}gcc -c -O2 $C src/*.c -I. -I../zlib/src
${X}gcc *.o -shared -o ../../bin/$P/$D -L../../bin/$P -lz $L
rm -f ../../bin/$P/$A
${X}ar rcs ../../bin/$P/$A *.o
rm *.o
}
if [ "$OSTYPE" = "msys" ]; then
P=windows L="-s -static-libgcc" D=png.dll A=png.a build
elif [... | true |
0e7cea29ffe756888b612bd9c70baf88a6cd02b9 | Shell | ossimlabs/ossim-jpip-server | /docker/run.sh | UTF-8 | 823 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Required params
if [ -z ${JPIP_DATA_DIR} ]; then
echo "JPIP_DATA_DIR environment must be defined"
exit 1
fi
# Defaulted params
if [ -z ${SOURCES} ] ; then
export SOURCES=25
fi
if [ -z ${CLIENTS} ] ; then
export CLIENTS=25
fi
if [ -z ${PORT} ] ; then
if [ -z {OSSIM_JPIP_SERVER_SERVICE_PORT... | true |
7d7ae1aede97434d05a872b6e44ee01615513d24 | Shell | healthwhale/master-class | /github.sh | UTF-8 | 448 | 2.875 | 3 | [] | no_license | #!/bin/bash
for ((i=0; i<=10; i++)) do
echo "https://api.github.com/repos/postgres/postgres/commits?page=$i"
echo "
\set record \`curl \"https://api.github.com/repos/postgres/postgres/commits?page=$i\"\`
with _commits as (
select d->>'sha' as id, d - 'sha' as doc
from jsonb_array_e... | true |
acc169f353997cb4c573942e291cc349b5c4aec3 | Shell | brodieaustin/TWLight | /.travis/translate.sh | UTF-8 | 1,041 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Count the number of files searched by makemessages
# that were changed in the last commit.
# https://docs.djangoproject.com/en/1.11/ref/django-admin/
message_files_changed=$(git diff --name-only HEAD~1..HEAD -- '*.html' '*.txt' '*.py' --porcelain | wc -l)
# Count the number of translation files c... | true |
b927107bf173a7650bde04affcced634d705b17e | Shell | edward-mb/env | /.local/bin/mode | UTF-8 | 2,629 | 3.546875 | 4 | [] | no_license | #!/bin/zsh
MODE_DEFAULT=('default.jpg' 'true' 'Solarized Matched' 'dark' 'df202020' 'ff999999')
MODE_DEFAULT_LIGHT=('default.jpg' 'false' 'Solarized Light Matched' 'light' 'dff9f9f9' 'ff666666')
MODE_DARK=('dark.png' 'true' 'Solarized Matched' 'dark' '00202020' 'ff999999')
MODE_LIGHT=('light.png' 'false' 'Solarized Li... | true |
02f5c13a8d7570c6e12f3dc189aebd36f3c037e8 | Shell | jneidel/dotfiles | /scripts/inbox | UTF-8 | 348 | 3.9375 | 4 | [] | no_license | #! /bin/sh
INBOX=$HOME/org/0_inbox
if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "help" ] || [ -z "$1" ]; then
cat <<EOF
$ inbox FILE
Move a file into the inbox dir
Parameters:
\$1: file to be moved
Example:
$ inbox ./note.md
EOF
exit
fi
FILE="$1"
if [ -e "$1" ]; then
mv "$FILE" "$INBOX/"
echo ... | true |
1f907fde6fae060ec914ae29bd04bee79e7cc733 | Shell | freebsd/freebsd-ports | /textproc/xincluder/files/xincluder.sh.in | UTF-8 | 362 | 3.03125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
IAM=`basename "$0"`
case "${IAM}" in
xincluder-sax) MAIN_CLASS=SAXXIncluder ;;
xincluder-dom) MAIN_CLASS=DOMXIncluder ;;
xincluder-jdom) MAIN_CLASS=JDOMXIncluder ;;
xincluder) MAIN_CLASS=SAXXIncluder ;;
*) echo "ERROR!" ; false ;;
esac
"%%LOCALBASE%%/bin/java" -cp "`"%%LOCALBASE%%/bin/classpath"`" "co... | true |
7ea1f879a08e87fd33f83d840f4119bcbf98519c | Shell | liruizhong/learnpy | /creat.sh | UTF-8 | 352 | 2.84375 | 3 | [] | no_license | #!/bin/bash
if [ -z $1 ];then
echo "used: $0 file"
else
DATE=`date +%F`
printf "#!/usr/bin/env python
# -*- coding: utf-8 -*-
\"\"\"
===========================================
FileName: $1
Desc: $2
Author: ruizhong.li
Version:
CreateTime: ${DATE}
=============================... | true |
49dbdf493a63e1447760f6cc6494457107ebbe0d | Shell | victoongo/GWAS_AM | /FHS/agcon/snplst6/test.sh | UTF-8 | 318 | 2.984375 | 3 | [] | no_license | #!/bin/bash
let njobs=$(bjobs -u all -w | grep -i "log/agconrul6_sas" | wc -l )
if [ $njobs -gt 0 ]; then
for jobid in $(bjobs -u all -w | grep -i "matlab" | cut -d " " -f 1 )
do
echo bkill $jobid
done
fi
exit
echo njobs= $njobs
if [ "$njobs" == "" ]; then
echo njobs is missing
fi
| true |
0771ce806236f2534432c2739cf413885bed557d | Shell | CiscoSystems/quantum-l3-test | /create_vm | UTF-8 | 5,005 | 3.9375 | 4 | [] | no_license | #!/bin/bash
#
# assumes that openstack credentails are set in this file
source ~/openrc
source .network >& /dev/null
function sleep_count () {
# pass in a time (usually in seconds) and a message ( in "")
echo -n $2
count=1
while [ $count -le $1 ]
do
echo -n '. '
sleep 1
(( count ++ ))
done
}
# se... | true |
3ca773ca9a0b2e4c8a1ab0872e29de5b1b39e898 | Shell | RainbowHackerHorse/Stuffnthings | /installers/gnomeboxesbsd.sh | UTF-8 | 2,193 | 3.03125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
BOXES_VERSION=3.26
BOXES_PATCH=2
DOWNLOADDIR=/tmp/box-download
BOXESWORKDIR="${DOWNLOADDIR}"/boxessrc
BOXESBUILDDIR="${BOXESWORKDIR}"/gnome-boxes-"${BOXES_VERSION}"."${BOXES_PATCH}"
BOXES_GITSOURCE_URL=https://github.com/GNOME/gnome-boxes/archive/v${BOXES_VERSION}.tar.gz
BOXES_SOURCE_URL=https://download.gnom... | true |
d2941b9f7aba797bf12f692ce18cd8756afebc59 | Shell | danrjohnson/vault-kubernetes-sandbox | /vault-init.sh | UTF-8 | 495 | 3.171875 | 3 | [] | no_license | #! /bin/bash
set -exo pipefail
OUTPUT=$(vault operator init -key-shares=1 -key-threshold=1)
echo "$OUTPUT"
echo "saving unseal key to unseal-key.txt"
echo "$OUTPUT" | grep "Unseal Key" > unseal-key.txt
echo "saving initial root token to root-token.txt"
echo "$OUTPUT" | grep " Initial Root Token" > root-token.txt
e... | true |
2d3858c1becd6c871c64814e0155374c2e373b2b | Shell | mpicek/aprox | /run_tutorial.sh | UTF-8 | 2,823 | 3.171875 | 3 | [] | no_license | clearing=1
# "description" "input" "args"
run_example(){
if [ "$clearing" -eq 1 ]
then
clear
fi
echo ""
echo $1
echo ""
echo "Input: $2"
echo "Command: ./aprox $3"
echo "$2" | ./aprox $3
read _
}
run_example "Print help for more info" " " "-h"
run_example "Simple prefix... | true |
f0cf9afd781b8afd30fd3b7397cc4fd2f35db156 | Shell | BLelgemann/WPM_T9-2 | /a2_shell-script.sh | UTF-8 | 3,803 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# -----------------------------------------------------------------------
# AUFGABE:
# aus der Datei "2020-05-23-Article_list_dirty.tsv" eine neue
# Datei "2020-05-23-Dates_and_ISSNs.tsv" erstellen.
# Die neue Datei soll:
# 1. nur die Spalten der ISSN und Veröffentlichungsjahre enthalten
# 2. keine redu... | true |
afa753c61ed54c34c3a5e9469d8fd24c2ce89e6b | Shell | threeworld/Security-baseline | /Linux/主机安全基线脚本/CIS-LBK/DEBIAN_FAMILY_LBK/functions/recommendations/nix_ensure_rsyslog_default_file_permissions_configured.sh | UTF-8 | 2,425 | 3.625 | 4 | [] | no_license | #!/usr/bin/env sh
#
# CIS-LBK Recommendation Function
# ~/CIS-LBK/functions/recommendations/nix_ensure_rsyslog_default_file_permissions_configured.sh
#
# Name Date Description
# ------------------------------------------------------------------------------------------------
# Eric Pinnell 09... | true |
f312e07312a9bb1cea674cf231c042e0d844edf2 | Shell | ilventu/aur-mirror | /haproxy-devel/PKGBUILD | UTF-8 | 1,069 | 2.578125 | 3 | [] | no_license | # Maintainer: Viacheslav Chimishuk <voice@root.ua>
_pkgname=haproxy
pkgname=$_pkgname-devel
pkgver=1.5
pkgverdev=dev9
pkgrel=1
pkgdesc="The Reliable, High Performance TCP/HTTP Load Balancer (development branch)"
arch=('i686' 'x86_64')
url="http://haproxy.1wt.eu"
license=('GPL')
depends=('pcre')
makedepends=('gcc>=4.2.0... | true |
f72a582d6406e2e09cfd6c86e6e34c86e1a98006 | Shell | leandroaur/ubuntuhomeserver | /install_bareos.sh | UTF-8 | 567 | 3.078125 | 3 | [] | no_license | #!/bin/sh
# See http://download.bareos.org/bareos/release/
# for applicable releases and distributions
#DIST=Debian_10
# or
# DIST=Debian_9.0
DIST=xUbuntu_18.04
# DIST=xUbuntu_16.04
RELEASE=release/19.2
# or
# RELEASE=release/latest
# RELEASE=experimental/nightly
URL=http://download.bareos.org/bareos/$RELEASE/$DIS... | true |
624fc79a26f9de25f1dea85d6b0e9d71eb42b15a | Shell | raviol/imshaby-api | /build/build_imshaby_api.sh | UTF-8 | 391 | 3.234375 | 3 | [] | no_license | #!/bin/bash
ENV_TYPE=$1
if [ -z "${ENV_TYPE}" ]
then
ENV_TYPE="local"
fi
PROJECTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." >/dev/null 2>&1 && pwd )"
mvn clean package -f ${PROJECTS_DIR}/imshaby-api/pom.xml
docker rmi local/imshaby-api:v1.0 imshaby-api:latest &> /dev/null
docker build -t imshaby-api ${P... | true |
590b1e5fa10c0ca6ffeedfd9502765441c7559a6 | Shell | heartshare/backuppc-tools | /snapshot.sh | UTF-8 | 875 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
pre_snapshot () {
backupsv="$2"
mountpoint=$(echo $1 | sed "s:$backupsv/\?::")
if [ "$mountpoint" == "$1" ] ; then
echo "Target isn't a $backupsv folder. Do nothing."
exit 0
fi
fs=$(df -T $mountpoint | tail -n +2 | awk {'print $2'})
if [ $fs != "btrfs" ] ; then
echo "creating symlink... | true |
af190ae672abd42801681a42d43d302f13ec5e81 | Shell | vtamara/archconf | /zshenv | UTF-8 | 739 | 3.625 | 4 | [
"MIT"
] | permissive | local _path_ant="$PATH"
# configuracion local
[[ -f ~/.zshenv.local ]] && source ~/.zshenv.local
if [[ $PATH != $_path_ant ]]; then
# `colors` no se ha inicialiado, definir algunos manualmente
typeset -AHg fg fg_bold
if [ -t 2 ]; then
fg[red]=$'\e[31m'
fg_bold[white]=$'\e[1;37m'
reset_color=$'\e[m'
... | true |
c94157bbbe950889f9e08a55b339c8e3934cd9ad | Shell | conversationai/conversationai-models | /experiments/tf_trainer/tf_word_label_embedding/run.ml_engine.sh | UTF-8 | 1,398 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script runs one training job on Cloud MLE.
# Note:
# We currently use 2 different embeddings:
# - glove.6B/glove.6B.300d.txt
# - google-news/GoogleNews-vectors-negative300.txt
# Glove assumes all words are lowercased, while Google-news handles different casing.
# As there is currently no tf operatio... | true |
5bcef8570037641a707241daa0016010ef09da34 | Shell | StackStorm-Exchange/ci | /.circle/dependencies | UTF-8 | 3,481 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -ex
CURRENT_DIR="$(dirname "$0")"
export CI_DIR=/home/circleci/ci
export PYTHONPATH=/tmp/st2/st2common:${PYTHONPATH}
ST2_BRANCH=${ST2_BRANCH:-master}
LINT_CONFIGS_BRANCH=${LINT_CONFIGS_BRANCH:-master}
git config --global user.name "StackStorm Exchange"
git config --global user.email "info@stackstor... | true |
9c6e15c860dc24b219576eda5d0947508c64ea44 | Shell | open-estuary/distro-repo | /rpm/obsolete/gcc/rpm_build.sh | UTF-8 | 1,944 | 3.5 | 4 | [] | no_license | #!/bin/bash
echo "Please use devtoolset-4-gcc"
exit 0
CUR_DIR=$(cd `dirname $0`; pwd)
VERSION="5.4.1"
#The DATE is also specifed in gcc.spec
DATE="20160603"
TAR_FILENAME="gcc-""${VERSION}""-${DATE}.tar.bz2"
#SVNREV="247088"
SVNREV="247733"
nvptx_tools_gitrev="c28050f60193b3b95a18866a96f03334e874e78f"
nvptx_newlib_gi... | true |
56a50a9815a28fc52fd77ae16d6d08276165a296 | Shell | tprelog/iocage-homeassistant | /overlay/usr/local/etc/rc.d/appdaemon | UTF-8 | 6,014 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# PROVIDE: appdaemon
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# VERSION: 20220713
#
# appdaemon_enable: Set to YES to enable the appdaemon service.
# Default: NO
# Enable: sysrc appdaemon_enable="YES"
# Disable: sysrc -x appdaemon_enable
#
# appdaemon_user: The user account used to run the ... | true |
ac8879644d4852695e7082a7e7c6c2807c37074e | Shell | DmytroSytnyk/sweet | /mule_local/platforms/99_fallback/local_software_default.sh | UTF-8 | 1,092 | 3.03125 | 3 | [
"MIT"
] | permissive |
MULE_SYSTEM_PACKAGES="libxft-dev libssl-dev texinfo"
if [[ "$DISPLAY" = ":0" ]]; then
export MULE_SYSTEM_PACKAGES="$MULE_SYSTEM_PACKAGES libgl1-mesa-dev libxext-dev"
fi
for i in $MULE_SYSTEM_PACKAGES; do
dpkg -s "$i" >/dev/null 2>&1
if [[ "$?" != "0" ]]; then
echo_error "Debian-based system detected and package... | true |
96d732933adeebe586197ad768f4d0e9eaffd223 | Shell | VE3RD/Nextion | /getmaster.sh | UTF-8 | 886 | 3.234375 | 3 | [] | no_license | #!/bin/bash
############################################################
# Get Master Server #
# #
# Returns a string representing the Master Server #
# #
# VE3RD ... | true |
1daf4797dd23eaaaae76f8d4d8266af6491d1fe2 | Shell | SebNania/domotique-scripts | /SmartPhoneCheck.sh | UTF-8 | 4,847 | 3.875 | 4 | [] | no_license | #!/bin/bash
# Based on the excellent community work here : https://www.domoticz.com/forum/viewtopic.php?t=6264
# Adapted to my configuration
# Last Update 20160903
# Used to detect if smartphones are in by l2ping on bluetooth and if no response search for the smartphone in arp table
## Installation ##
# Add this script... | true |
c8845ed6185e5cba31f393cddf56a9eebcd27cf3 | Shell | mmalewski/open-cas-linux | /configure.d/2_write_flush.conf | UTF-8 | 1,049 | 2.609375 | 3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
#
# Copyright(c) 2012-2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
. `dirname $0`/conf_framework
if compile_module "WRITE_FLUSH" "linux/fs.h"
then
add_define "CAS_RQ_IS_FLUSH(rq) \\
((rq)->cmd_flags & CAS_REQ_FLUSH)"
add_define "CAS_WRITE_FLUSH \\
WRITE_FLUSH"
if ... | true |
8083143a9f2f0072eebe6f76d263437d42d639dc | Shell | ntk148v/openinfra-summit-demo | /2020/config_supervisor.sh | UTF-8 | 592 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# configure supervisor to run a private gunicorn web server, and
# to autostart it on boot and when it crashes
# stdout and stderr logs from the server will go to /var/log/demo
mkdir /var/log/demo
cat >/etc/supervisor/conf.d/demo.conf <<EOF
[program:demo]
command=/home/demo/venv/bin/gunicorn -b 127.0.0.1:800... | true |
0ab83fae854be929bfa24248d8bb1807ca7c4767 | Shell | BenjaminPlimmer/Diiage2017 | /AULAGNE/process.sh | UTF-8 | 2,666 | 3.984375 | 4 | [] | no_license | #!/bin/sh
#AIM : Récupération de la liste des processus sous forme d'arborescence, en
# ajoutant le lien de parenté Parent/Enfant et en spécifiant le l'ID de
# processus et son nom.
#AUTHORS : AULAGNE Jérôme
#PARAMS :
#MODIF :
#27/12/2016 - Modification de la boucle for initiale - récupération des variables dans u... | true |
4520dc5bb1b017e2d2ab00beccec38dc32b9e8a7 | Shell | svsgvarma/scripts_benth | /Run-RNA-workflow-5.0_DE_CDS.sh | UTF-8 | 2,211 | 3.171875 | 3 | [] | no_license | #!/bin/bash
#Rna-seq using STAR
#./Run-RNA-workflow-5.0_DE_CDS.sh > Run-RNA-workflow-5.0_DE_CDS.sh.log 2>&1
echo "run script for rna-seq-analysis"
############################################
# 2.2. Identifying differentially expressed (DE) transcripts
############################################
#Extracting diffe... | true |
d4636264652620795a2fc5b379e8f9f3e180002e | Shell | zhuorg/build-arch-package | /run.sh | UTF-8 | 732 | 3.390625 | 3 | [] | no_license | #!/bin/bash -ex
if [ -z "$INPUT_PKGBUILD" ] || [ -z "$INPUT_OUTDIR" ] || [ -z "$GITHUB_SHA" ]; then
echo 'Missing environment variables'
exit 1
fi
# Resolve environment paths
INPUT_PKGBUILD="$(eval echo $INPUT_PKGBUILD)"
INPUT_OUTDIR="$(eval echo $INPUT_OUTDIR)"
# Prepare the environment
pacman -Syu --noconf... | true |
13cc0c020cd197041a46faeafb4369ab0d4fea18 | Shell | Nightmayr/dotfiles | /centos/.bashrc | UTF-8 | 690 | 2.828125 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
# Prompt override
PS1='[\u@\h \W'
# Git Auto-completion
if [ -f ~/.git-completion.bash... | true |
f39112289fe80bfbe9d2ab47990f06c6911fd3e7 | Shell | Carotti/bedrock2 | /processor/integration/interactive.sh | UTF-8 | 253 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
while : ; do
make || true
kill "$oldgtkwave" || true
gtkwave --chdir /tmp/ --rcvar 'enable_vcd_autosave yes' --rcvar 'do_initial_zoom_fit yes' "$(realpath system.vcd)" &
oldgtkwave=$!
inotifywait -e modify *.v -r . || true
done
| true |
b9a13a1fb65b91e8581ebd49d7b543b32dc87880 | Shell | tanpuekai/autism | /info.score.sh | UTF-8 | 476 | 2.890625 | 3 | [] | no_license | #!/bin/bash
#PBS -q default
#PBS -l nodes=1:ppn=1
#PBS -l mem=20gb
#PBS -l walltime=63:30:00
#PBS -N Ireetings-
#PBS -j oe
cd $PBS_O_WORKDIR
echo `pwd`
for j in `ls -d step9-impute-all/out-b37-*`
do
echo $j
echo ""
for i in `ls $j/*.vcf.gz`
do
zcat $i|cut -f8|grep -v "##"|grep -v INFO > INFO.txt
sed -i '... | true |
cba86f4fcb62d6588f6d256c3ab627c8eec5993e | Shell | gitsome/bash-scripting | /machine-data/linux-course-image-1/luser-demo07.sh | UTF-8 | 357 | 3.21875 | 3 | [] | no_license | #!/bin/bash
echo "Parameter1: ${1}"
echo "Parameter1: ${2}"
echo "Parameter1: ${3}"
echo ""
X=0
while [[ $X -lt 5 ]]
do
echo "yayer ${X}"
X=$((X+1))
done
echo ""
while [[ ${#} -gt 0 ]]
do
echo "The number of parameters: ${#}"
echo "Parameter1: ${1}"
echo "Parameter1: ${2}"
echo "Paramet... | true |
ae6116103587b3bc32adabbb5316d95c5b322d05 | Shell | cchaiyatad/reactjs-pdfmake-boilerplate | /shell/makeImage.sh | UTF-8 | 455 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [ -t 1 ]; then
target="image_dict.js"
else
target="/dev/stdout"
fi
(
echo -n "this.imageDict = this.imageDict || {}; this.imageDict.src = {"
for file in "$@"; do
file=$1
shift
echo -n '"'
echo -n "$(basename $file)"
echo -n '":"'
echo -n 'data:image/'
echo -n "${file#*.}"
echo -n ';... | true |
1b50f04d813d0214f286cff1894c64dfb564619c | Shell | HansUXdev/Learn-MongoDB-4.x | /chapters/11/install_ssl_cert.sh | UTF-8 | 1,117 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Generating SSL certificates ..."
export RAND_DIGITS=`date |cut -c 18-20`
export EMAIL_ADDR="doug@unlikelysource.com"
mkdir /etc/.certs
cd /etc/.certs
echo $RAND_DIGITS >file.srl
touch /root/.rnd
openssl req -out ca.pem -new -x509 -days 3650 -subj "/C=TH/ST=Surin/O=BigLittle/CN=root/emailAddress=$EMAIL... | true |
13ac272d55554434ee1d8e4c319befa6b66a9f0c | Shell | running-elephant/datart | /bin/datart-server.sh | UTF-8 | 3,107 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Datart
# <p>
# Copyright 2021
# <p>
# 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
# <p>
# http://www.apache.org/licenses/LICENSE-2.0
# <p>
# Unless required by applicable law o... | true |
fe4d0b36c8081cca389bfe159be7977395297c51 | Shell | harold-li/oj | /deploy.sh | UTF-8 | 2,727 | 3.625 | 4 | [] | no_license | #! /bin/bash
read -p "Do you want to update from git?[Y/n]" PULL
[ "$PULL" == 'Y' -o "$PULL" == 'y' ] && git pull
grep 'devMode' WebRoot/WEB-INF/oj.properties
read -p "Do you want to continue with this mode?[Y/n]" cont
[ "$cont" == 'n' -o "$cont" == 'N' ] && exit
read -p "Input the mysql username, press enter to use... | true |
4df6a1e857ca302d4f6357ba02a66a3c606dc72d | Shell | naikshrihari/bashcode | /compareString.sh | UTF-8 | 161 | 3.21875 | 3 | [] | no_license | #!/bin/bash
read -p "String 1:" str1
read -p "String 2:" str2
if [ "$str1" == "$str2" ]
then
echo "both are same"
else
echo "str1 and str2 are different"
fi
| true |
1f6004dd872b7d3096d4b132ff21174c5c0ccf3f | Shell | LandRover/StaffjoyV2 | /vagrant/ubuntu_mirror_replace_to_fastest.sh | UTF-8 | 936 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
usage() {
cat << EOF
Usage: sudo $0 [mirror_url]
Example: sudo $0 http://archive.ubuntu.com/ubuntu
Replaces the apt mirror to the input mirror_url
EOF
}
# ARGS
FASTEST_MIRROR_URL=$1
if [ -z "$1" ]
then
FASTEST_MIRROR_URL=`cd $(dirname $BASH_SOURCE); ./helpers/ubuntu_mirror_test.sh`
echo $FASTES... | true |
5a87203cebf7b86728879a4c8ccf477fc46159fb | Shell | cloudfoundry/bosh-linux-stemcell-builder | /stemcell_builder/stages/escape_ctrl_alt_del/apply.sh | UTF-8 | 342 | 2.875 | 3 | [
"LGPL-2.1-only",
"Artistic-2.0",
"LicenseRef-scancode-other-permissive",
"MPL-1.1",
"GPL-1.0-or-later",
"GPL-3.0-or-later",
"LicenseRef-scancode-unicode-mappings",
"Artistic-1.0-Perl",
"LGPL-2.1-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GPL-2.0-or-later",
"... | permissive | #!/usr/bin/env bash
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
source $base_dir/lib/prelude_bosh.bash
echo 'Overriding for Control-Alt-Delete'
mkdir -p $chroot/etc/init
echo 'exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"' > $chroot/etc/init/contro... | true |
473e4e36fddcd6a0f93cbc8edbf8652b546db518 | Shell | bubendorf/gsak2gpx | /createRUPI.sh | UTF-8 | 5,413 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# Erzeugt die RUPI Dateien für Sygic
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR
. ./env.sh
cd $BASE
export PATH=/usr/local/bin:$PATH
export OPTS="-XX:+UseParallelGC -Xmx1500M -Dorg.slf4j.simpleLogger.defaultLogLevel=info"
export ENCODING=utf-8
export CAT_PATH="categories/ru... | true |
3922aaadf0bd5661ea31add7328281bcbdf96d77 | Shell | bowtie-co/docker-jekyll | /docker-entrypoint.sh | UTF-8 | 159 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
if [ -f Gemfile ]; then
bundle install
fi
if [ "$1" == "serve" ]; then
exec jekyll serve --port $PORT --host $HOST
else
exec $@
fi
| true |
ccc132933d95adce65cd33216f714c7d4bc25a43 | Shell | geier/dotfiles | /bin/tm | UTF-8 | 141 | 2.984375 | 3 | [] | no_license | #!/bin/sh
if [ -z $1 ]; then
echo "usage: tm <session_name>" >&2; return 1;
else
tmux has -t $1 && tmux attach -t $1 || tmux new -s $1
fi
| true |
a9f155fff02ed03c83583d0f6872eec0c0d57b90 | Shell | accept-project/accept-score-rules | /findreftrans.sh | UTF-8 | 1,009 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Find all reference translations of segments in a file.
# The results are written into a parallel target file.
# For each segment, its reference translations is found by finding
# it in the source segments file, and by searching for the reference
# translation in the corresponding parallel targe... | true |
5d5234e9b48d48fc61fcdf40fda808365a5cfe62 | Shell | zaghdoun/csar-public-library | /org/ystia/logstash/linux/bash/scripts/logstash_changeInput.sh | UTF-8 | 329 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
source ${utils_scripts}/utils.sh
log begin
source ${scripts}/logstash_utils.sh
ensure_home_var_is_set
log info "Execute change input command with URL : $url"
replace_conf_file $LOGSTASH_HOME/conf/1-1_logstash_inputs.conf "input" $url || error_exit "Reconfiguration failed"
send_sighup_ifneeded
... | true |
27afcae704c4c5443f9e6f86f754e7d206050ae6 | Shell | mreddy89/AWS | /bash_scripts/ec2_scripts/instance_AMI_create.sh | UTF-8 | 641 | 3.765625 | 4 | [] | no_license | #!/bin/bash
region=eu-west-1
profile=dev
# Mention all the EC2 instances in the below .txt file for which you want to create AMI
input="./instances_list_for_AMI.txt"
#while read line;
while IFS= read -r line
do
ec2id=${line}
#datetime=$(echo "$(date +'%d-%m-%Y_%H:%M')")
#echo "Instance ID is : ${ec2id}";
# this is... | true |
250b4d36dd65e6070891ce67f65ef35f7317f168 | Shell | tiberiu-sevio/opensource | /bootstrap.sh | UTF-8 | 632 | 2.734375 | 3 | [] | no_license | #!/bin/bash
echo "UUIIIIIIIIII3"
sudo -S <<< "app" touch /var/log/system-bootstrap.log
sudo -S <<< "app" chmod 777 /var/log/system-bootstrap.log
sudo -S <<< "app" apt-get update >> /var/log/system-bootstrap.log
SELINUXSTATUS=$(getenforce)
if [ "$SELINUXSTATUS" == "Permissive" ]; then
sudo -S <<< "app" setenfo... | true |
baa54b32b78f21bb83bb36f72ad823c7d3928e1d | Shell | zhangml17/jenkins-on-k8s | /scripts/get-passwd.sh | UTF-8 | 1,218 | 3.984375 | 4 | [] | no_license | #!/bin/bash
set -e
DEFAULT_S="default"
show_help () {
cat << USAGE
usage: $0 [ -N CONTROLLER-NAME ] [ -S NAMESPACE ]
-n : Specify the name of the controller.
-s : Specify the namespace. If not specified, use '${DEFAULT_S}' by default.
USAGE
exit 0
}
# Get Opts
while getopts "hn:s:" opt; do # 选项后面的冒号表示该选项需要参数
... | true |
42cdb84e05cf086c1a2bc0536574e92c20ec5445 | Shell | mazenamr/FlickPhotos-DevOps | /scripts/web-build.sh | UTF-8 | 788 | 3.328125 | 3 | [] | no_license | #!/bin/bash
timestamp=$(TZ='Africa/Cairo' date +"%Y-%m-%d_%T")
lock="$HOME/flags/web-build.lck"
cd $HOME
[ ! -d "main" ] && (./files/scripts/update.sh || exit -1)
cd main
# setup
set -o pipefail
cd Frontend
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DI... | true |
f09ef992b8f5000c29108d350fb47a0ff1111a82 | Shell | algorithmiaio/langpacks | /r/template/bin/test | UTF-8 | 306 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
CRAN_MIRROR=${CRAN_MIRROR:=http://cran.rstudio.com/}
echo "options(repos=structure(c(CRAN=\"$CRAN_MIRROR\")))" > ~/.Rprofile
echo "R_LIBS_USER=$ROOTDIR/dependencies" > ~/.Renviron
exec Rscript $ROOTDIR/run_all_tests.r
| true |
38de4faa690d6608cc94f2cd58d73fae17a4a8ac | Shell | Ecotrust/marco-portal2 | /wagtail_migrations/wagtail_1_11.sh | UTF-8 | 628 | 2.625 | 3 | [
"ISC"
] | permissive | #!/bin/bash
PROJ=/usr/local/apps/ocean_portal
ENV=$PROJ/wag_env;
while getopts e:v: flag
do
case "${flag}" in
e) ENV=${OPTARG};;
v) PYVER=${OPTARG};;
esac
done
PIP=$ENV/bin/pip;
# 1_11
$PIP uninstall wagtail -y
$PIP install "wagtail==1.11.1"
PYTHON=$ENV/bin/python3;
DJ=$PROJ/marco/manage.py;
$PYTHON $D... | true |
619e9d3e965b28423c07c5f2581726500959ea9b | Shell | venkatcurl/health-patterns | /utilities/initialize-nifi.sh | UTF-8 | 1,202 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
scripts/wait-for-nifi.sh $HOSTNAME 8080
scripts/initialize-reporting-task.sh $HOSTNAME 8080
if [ "$ADD_CLINICAL_INGESTION" = true ] ; then
python /scripts/loadHealthPatternsFlows.py \
--baseUrl=http://$HOSTNAME:8080/ \
--reg=$NIFI_REGISTRY \
--bucket=Health_Patterns \
--flowName="Clinical Ingesti... | true |
13716e0332573d30268a2053423368eec6a3b481 | Shell | twfcc/gfw.press_installer | /uninstall.sh | UTF-8 | 1,838 | 3.421875 | 3 | [
"Unlicense"
] | permissive | #! /bin/bash
# $author: twfcc@twitter
# $PROG: uninstall.sh
# $description: uninstall components which installed by [gfw3proxy.sh|gfw3proxy_init.sh|gfwtiny.sh]
# $Usage: $0
# Public Domain use as your own risk.
LANGUAGE=C
LC_ALL=C
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export LANGUAGE LC_A... | true |
59ba21776ffd04c5a17b22be6904bb07c75d8d02 | Shell | yuriylesyuk/etp | /examples/prod-1dc-19n-5sn/planetctl | UTF-8 | 2,511 | 3.75 | 4 | [] | no_license | #!/bin/bash
APIGEE_ZOOKEEPER_DC_1="n13 n15 n16 n17 n18"
APIGEE_CASSANDRA_DC_1="n13 n15 n16 n17 n18"
APIGEE_OPENLDAP_DC_1="n13"
APIGEE_POSTGRESQL_DC_1="n19"
EDGE_POSTGRES_SERVER_DC_1="n19"
APIGEE_QPIDD_DC_1="n19 n29"
EDGE_QPID_SERVER_DC_1="n19"
EDGE_MANAGEMENT_SERVER_DC_1="n03"
EDGE_MESSAGE_PROCESSOR_DC_1="n03 n04 n05 ... | true |
a0b313e86f4bbef053b25fee7fb0384a532ebd05 | Shell | quodlibet/ppa-scripts | /build-debian-stable.sh | UTF-8 | 932 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# needs a pbuilder:
# sudo pbuilder create --distribution stable
# sudo pbuilder update
set -e
MINID="mini-dinstall --config=mini-dinstall.conf"
$MINID -k >/dev/null 2>&1 || true
$MINID -k >/dev/null 2>&1 || true
$MINID -k >/dev/null 2>&1 || true
rm -rf ~/debian_archive
$MINID
./quodlibet.py -ddebian
./m... | true |
f14df1f2620c0265bc837c7dd87cb1b666b02313 | Shell | gstackio/dingo-postgresql-release | /images/tutorial/setup.sh | UTF-8 | 1,025 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# env $(cat tmp/tutorial.env| xargs) ./images/tutorial/setup.sh
if [[ "${HOST_IP}X" == "X" ]]; then
echo "Requires \$ETCD_CLUSTER"
exit 1
fi
if [[ "${DOCKER_SOCK}X" == "X" ]]; then
echo "Requires \$DOCKER_SOCK"
exit 1
fi
ETCD_CLUSTER=${HOST_IP}:4001
docker rm -f etcd
docker run -d -p 4001:4001 -... | true |
a0007b9866f9212ec71df8e5f8ae3db993288c91 | Shell | voznik/config-ubuntu | /bin/server/gitflow.sh | UTF-8 | 615 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [[ ! $INSTALL_SCRIPT ]]; then
echo "(!) Error: You must use the installer script."
exit
fi
echo "(+) Installing Git (If Not Installed); Git-Flow; Bash-Completions (If Not Installed)"
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get install git git-flow bash-completion -y
echo "(+) Copyi... | true |
38c209e1c8ba2642781d281319dccc48dee95849 | Shell | zolll23/bash_utils | /clear_viruses_by_mail.sh | UTF-8 | 166 | 2.84375 | 3 | [] | no_license | #!/bin/sh
for file in `cat /var/log/phpmail.log | grep "eval()" | awk '{print $6}' | sed 's/\[//' | sed 's/([0-9]*)//' | uniq `;
do
echo $file;
rm -rvf $file
done
| true |
d3d15cf144da6f52b9f3d9460979afc714407f5e | Shell | ltOgt/.bash | /scripts/prompt | UTF-8 | 479 | 3.609375 | 4 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ] || ([[ $1 == '--help' ]] || [[ $1 == '-h' ]])
then
echo 'prompt <PROMPT> <ACTION>'
echo ' Prompt user and perform action on "Y"'
echo 'prompt --input <Prompt> <ACTION>'
echo ' Prompt user and perform action with dmenu input'
elif [ $2 == "--input" ]
then
prompt... | true |
5e38244b0debe46401dcd526cb57458437b0998e | Shell | sid678/Compression-and-Encryption | /combine.sh | UTF-8 | 317 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo "Input 1 for image and anything else for message"
read var1
python3.8 image.py $var1
echo "Type Yes to compress and anything else to encrypt"
read var2
if [ $var2 == "Yes" ]
then
# python3.8 image.py
g++-11 huffman.cpp
./a.out
else
# python3.8 image.py
python mhkc.py var1
fi
| true |
10fcf48b30e44fd89245a78e32ce43e3ae5a8abf | Shell | smartnose/smartnose | /install_cuda_8.sh | UTF-8 | 781 | 2.53125 | 3 | [] | no_license | #!/bin/bash
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb
sudo dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda-8-0
echo now insta... | true |
5645f4ed7076e8c18c04c990178085c75cf1d693 | Shell | dstokes/dotfiles | /local/.local/bin/tmux-status | UTF-8 | 838 | 3.71875 | 4 | [] | no_license | #!/bin/bash
ICON_MUSIC=ﱘ
# date string
STATUS=""
# battery percentage
S_BATT=$(pmset -g batt 2>&1 | awk -F ';' 'NR==2 {sub(/%/, "", $1); print $1;}' | cut -f2)
if [[ $S_BATT -lt 50 ]]; then
STATUS=" $S_BATT% |$STATUS"
fi
# current spotify track
S_ARTIST=$(osascript <<EOF
if application "Spotify" is running then
... | true |
51e9524eb9e8f42ddd71832401644bb15dca6a59 | Shell | jeongeun/mcsanc | /runall_lo.sh | UTF-8 | 1,187 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# input_Wm_e_50-100_lo.cfg input_Wp_e_50-100_lo.cfg
procId=${1}
if [ "$procId" == "" ]; then
echo "usage: $0 processId // processId = W+(e+ve: 101, m+vm: 102) W-( e-ve~:-101, m-vm~: -102)";
break;
fi
NameString=""
if [ "$procId" == "101" ]; then
NameString="Wp_e"
elif [ "$procId... | true |
8e4d34c1d0fb2d9324157c3f92e8bc8c218cc216 | Shell | nyh/osv | /scripts/build-vm-img | UTF-8 | 1,374 | 3.984375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -e
version=$(`dirname $0`/osv-version.sh)
name=$1
image=$2
description=$3
out=build/standalone/$name
build="make image=$image"
function usage()
{
echo "Usage: scripts/build-standalone-img [name] [image] [description]"
exit 1
}
if [ $# -ne 3 ];then
usage
fi
### Build image
echo "==> Building '$name'... | true |
2e7b782a9601f1b01921d5bce3ccbdbf47373e38 | Shell | hcsullivan12/sipm_wheel | /event_display/sipmwheel/config/setup.sh | UTF-8 | 1,897 | 3.53125 | 4 | [] | no_license | #!bin/bash
EVENT_DIS_CONFIGDIR="$( cd $( dirname $BASH_SOURCE[0]) && pwd)"
EVENT_DIS_BASEDIR="$( dirname $EVENT_DIS_CONFIGDIR)"
#echo $EVENT_DIS_CONFIG
#echo $EVENT_DIS_BASEDIR
# Get default PATH and PYTHONPATH
PYTHONPATH_backup=$PYTHONPATH
PATH_backup=$PATH
# Check for PyQt4
if ! $(python -c "import PyQt4" &> /dev... | true |
ae78863ea1fe92f8e43a36cb56eccc4cce666a21 | Shell | mahajrod/MAVR | /examples/desaminases/recombination/cluster_combined_sets.bash | UTF-8 | 1,406 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#SBATCH --array=1-9%9
#SBATCH -n 2
#SBATCH --time=100:00:00 # Run time in hh:mm:ss
#SBATCH --mem-per-cpu=4096 # Minimum memory required per CPU (in megabytes)
#SBATCH --job-name=clustering_sets
#SBATCH --error=/work/pavlov/okochenova/job_reports/RUN7/clustering_sets.%A_%a.err
#SBATCH ... | true |
727bda10b1adadeb27d234132e92c01947bc684d | Shell | ballwood/node-sauce-connect | /acceptance/tests/testCAString.sh | UTF-8 | 992 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# remove old sauce connect
rm ./lib/sc
# start proxy in bg
node ./acceptance/support/self-signed-https-server.js &
SSL_PROXY_PID=$!
echo "SSL reverse proxy started on 8081 PID: ${SSL_PROXY_PID}"
export SAUCECONNECT_CDNURL=https://localhost:8081/downloads
CA_STRING=$(awk '{printf "%s\\n", $0}' .... | true |
f5a37a0cf37a34e3ae2d9a568c27d6f8e3fa88a3 | Shell | borodust/alien-works-android-runtime | /alien-works-android/ecl/build-asdf-system.sh | UTF-8 | 821 | 3.3125 | 3 | [] | no_license | #!/bin/bash
WORK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. $WORK_DIR/utils/build-common.sh
OPTIONAL_PARAMS=
if [[ -z "$NDK" ]]; then
echo "Path to Android NDK must be provided via --ndk"
exit 1
fi
if [[ -z "$TARGET_ARCH" ]]; then
echo "Target arch not specified via --targ... | true |
63c64f65256af3ab47922a3d1869014b9f96d3a9 | Shell | openshift/installer | /data/data/bootstrap/files/usr/local/bin/approve-csr.sh | UTF-8 | 470 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# shellcheck disable=SC1091 # using path on bootstrap machine
. /usr/local/bin/bootstrap-service-record.sh
KUBECONFIG="${1}"
echo "Approving all CSR requests until bootstrapping is complete..."
while [ ! -f /opt/openshift/.bootkube.done ]
do
oc --kubeconfig="$KUBECONFIG" get csr --no-headers... | true |
d2224d295b7001a50e0c8d023278ad84f503904b | Shell | guziqiu/qiu | /guziqiu/01.linux基础/test.sh | UTF-8 | 547 | 3.046875 | 3 | [] | no_license | #!/bin/bash
read L
read M
temp=0
left=L
right=L
for (( i=1; i <= M; i++ ));do
read a
read b
if [[ $a -gt $left ]];then
if [[ $a -lt $right ]];then
if [[ $a -lt $left ]];then
$left=$a
fi
fi
else
$left=0
fi
if [[ $b -gt $left ]];then
if ... | true |
60d1d869c9f940eacb3f461ecfc438898d573ffc | Shell | dacap/compare-text-test | /test.sh | UTF-8 | 333 | 3.546875 | 4 | [] | no_license | #! /bin/sh
function expect() {
if [[ $1 != "$($2 | tr -d "\r")" ]] ; then
echo "FAILED: $2"
echo "EXPECTED: $1"
echo "RESULT: $($2)"
return 1
else
return 0
fi
}
# abc == abc
if expect "a
b
c" ./abc ; then
echo OK
else
exit 1
fi
# abb != abc
if ! expect "a
b
b" ./abc ; then
echo OK
else
... | true |
2d8dbc783517ac8951ebbd99c7e378f9fe9519d9 | Shell | kramernathan/iPhone-CLI-Ctrl | /iPhoneControl.sh | UTF-8 | 2,664 | 3.421875 | 3 | [] | no_license | #!/bin/bash
clear
grn=$'\e[1;32m'
red=$'\e[1;31m'
white=$'\e[0m'
blu=$'\e[1;34m'
printf "$grn \n\n"
printf " ╭━━━━━━━━━╮\n"
printf " ┃━━●━══━━━┃\n"
printf " ┃█████████┃\n"
printf " ┃█████████┃\n"
printf " ┃█████████┃\n"
printf " ┃█████████┃\n"
printf " ┃███████... | true |
d0e63071f42f03818ce2090bbb4a5dfd7da2c183 | Shell | kristurner97/photoshare | /install | UTF-8 | 585 | 3.09375 | 3 | [] | no_license | #!/bin/bash
echo "Make sure you are running this with Sudo privilages."
read -e -p "Enter the install: " -i "/var/www/html" FILEPATH;
sudo mkdir $FILEPATH
sudo mv files/* $FILEPATH/
cd $FILEPATH
sudo chmod 0755 * -R #Default Permissions
sudo chown :www-data uploads -R #This is wher... | true |
f2c33adcafdebcac81c7da8b90cdb85f3f081626 | Shell | BennyStrobes/ipsc_cardiomyocyte_differentiation | /dynamic_eqtl_calling/tissue_specific_chrom_hmm_enrichment_analysis.sh | UTF-8 | 1,508 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --time=10:00:00 --partition=broadwl --mem=5GB
parameter_string="$1"
real_eqtl_results_file="$2"
significant_egene_file="$3"
num_permutations="$4"
threshold="$5"
chrom_hmm_input_dir="$6"
time_step_independent_stem="$7"
model_version="$8"
tissue_specific_chrom_hmm_enrichment_dir="$9"
hits_versions=... | true |
30f0313e1b3bb4c3d2d144478af20c94dc16c101 | Shell | c3ph3us/DistributedAuctions | /deploy.sh | UTF-8 | 213 | 2.5625 | 3 | [] | no_license | #!/bin/bash
NODES=("ssd@51.103.29.195" "ssd2@20.199.110.1" "ssd3@20.199.104.254")
for NODE in "${NODES[@]}"; do
echo "Deploying to the node: $NODE"
scp ./build/libs/DistributedAuctions-*-all.jar "$NODE:"
done | true |
535781c00fa4931b42e320ea03005cf8756ede54 | Shell | smokitchevsky/Unix-wokbench-assignment | /guessinggame.sh | UTF-8 | 630 | 4.03125 | 4 | [] | no_license | #!/bin/bash
function checkRange {
if ! [[ $input =~ $num_checker ]]
then
echo "\`$input\` is not a number" >&2;
return 255
elif [[ $input -gt $num_of_files ]]
then
echo "The number you entered is too big."
return 1
elif [[ $input -lt $num_of_files ]]
then
echo "The number you entered is too small."
... | true |
62689127e7f3b18171c97450afb0eb58d5b46db1 | Shell | elixircist23/BreadthDepthBash | /create.sh | UTF-8 | 780 | 3.828125 | 4 | [] | no_license | #!/bin/bash
function breadth_first() {
local depth=$1
local breadth=$2
local path=("")
for((i=0;i<depth;i++)); do
for x in "${path[@]}"; do
temp=""
for((j=0;j<breadth;j++)); do
mkdir -p "$3"$x/$j
temp=(${temp[@]} $x/$j)
done;
done;
path=(${temp[@]})
done;
}
function depth_first... | true |
af4064ca2330355180896209b81f3d6a785fc55c | Shell | elzoona/LastfmPlaycount | /install.sh | UTF-8 | 723 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# install schema
sudo cp ./org.gnome.rhythmbox.plugins.lastfmplaycount.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
if [[ $EUID -eq 0 ]]; then
echo "Installing system-wide (running as root)"
mkdir -p /usr/lib/rhythmbox/plugins/lastfmplaycount
... | true |
3e121fd7a5375661e698dae808f3773c35f60641 | Shell | hoskeri/dotfiles | /builders/update-terraform-ls | UTF-8 | 636 | 3.3125 | 3 | [] | no_license | #!/bin/bash -eux
version="0.29.2"
filename="terraform-ls_${version}_linux_amd64"
builduser="${TRFM_LS_BUILDUSER:-$USER}"
self="$(readlink -f "$0")"
if [ "$(id -u "$builduser")" != "$UID" ]
then
exec sudo -H -u "$builduser" "$self"
fi
url="https://github.com/hashicorp/terraform-ls/releases/download/v${version}/${f... | true |
1228bcc1a750459ce817c9cc15ea5d4b076fc811 | Shell | aidecoe/scripts | /etc/acpi/actions/my_lid.sh | UTF-8 | 1,211 | 3.921875 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
# Requires:
# - get_process_user.sh (which can be found in this repository)
# - xscreensaver
# - pm-utils
LOGP="LID closed"
lock_screen() {
local user="$(/usr/local/bin/get_process_user.sh xscreensaver)"
local lock="/usr/bin/xscreensaver-command -lock"
if [[ ! $user ]]; then
logger -... | true |
b70235b0e40b41716e3a691e7e2d347eac43f0d3 | Shell | ezequielsp/box | /install.sh | UTF-8 | 2,271 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
echo "--- Good morning, master. Let's get to work. Installing now. ---"
sudo locale-gen pt_BR.UTF-8
echo "--- Updating packages list ---"
sudo apt-get update
echo "--- MySQL time ---"
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password pass'
sudo debconf-set-selecti... | true |
b1045f19759b69df96edf9148686799e79705167 | Shell | st-mark-reformed/stmarkreformed.com | /bin/docker-functions/docker-sync.sh | UTF-8 | 937 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
source ../../dev 2> /dev/null;
function docker-sync-help() {
printf "(Syncs production database and content to local environment)";
}
function docker-sync() {
docker-compose -f docker-compose.sync.to.local.yml -p stmark-ssh up -d;
docker exec stmark-ssh bash -c "chmod +x /opt/project... | true |
3e2d54a88e3601dbef5bacacb08b8e8df7e2377a | Shell | dlxsvip/aes2.0 | /build/start.sh | UTF-8 | 1,654 | 3.546875 | 4 | [] | no_license | #!/bin/bash
echo -e "\033[32m-----------------------------\033[0m"
echo -e "\033[32m【-e】: 加密 \033[0m"
echo -e "\033[32m【-d】: 解密 \033[0m"
echo -e "\033[32m【 q】: 退出 \033[0m"
echo -e "\033[32m-----------------------------\033[0m"
encryptFun(){
read -p "加密:" txt
if... | true |
4173cf8bd8c2f013dadcf73574f78cfd4f48fba0 | Shell | ngageoint/storyscapes | /docker/pgadmin/run.sh | UTF-8 | 1,410 | 4.03125 | 4 | [] | no_license | #!/bin/sh
set -e
# Load secrets as environment variables
for secret in /run/secrets/env_*; do
# Pattern matches with no results are treated as string literals.
# Verify that the file actually exists.
[ -f "$secret" ] || continue
set -a
. $secret
set +a
done
# Setup Postgres authentication
echo... | true |
67db87cbfeacaa2368cc3df0f89b82d64f340434 | Shell | cha63506/haproxy-marathon | /docker-entrypoint.sh | UTF-8 | 3,903 | 3.84375 | 4 | [] | no_license | #!/bin/bash
set -e
REFRESH_TIMEOUT=${REFRESH_TIMEOUT:-60}
LISTEN=${LISTEN:-0.0.0.0}
HAPROXY_PID=/var/run/haproxy.pid
HAPROXY_CFG=/etc/haproxy/haproxy.cfg
HAPROXY_CFG_TMP=/tmp/haproxy.cfg
LOGGER=${LOGGER:-logger -s -t haproxy}
function log {
echo "$@" | $LOGGER
}
function haproxy_start {
log "Starting haproxy p... | true |
7267239e60e2f793f59380c7c6d02fd22ee81309 | Shell | waringid/zeronokubernetes | /07-3-enable-kubelet.sh | UTF-8 | 2,882 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
STUDYK8S_PATH=`dirname \`readlink -f $0\``
source $STUDYK8S_PATH/07-0-env-node.sh
## cat > kubelet-conf.yaml << EOF
## kind: KubeletConfiguration
## apiVersion: kubelet.config.k8s.io/v1beta1
## KubeletConfiguration:
## Address: "${SELF... | true |
898b0208280f3ee70a7014d46bb8791efa7e9172 | Shell | petronny/aur3-mirror | /arch-remaster/PKGBUILD | UTF-8 | 889 | 3.171875 | 3 | [] | no_license | # Maintainer: TADOKORO Saneyuki <saneyan@mail.gfunction.com>
pkgname=arch-remaster
pkgver=0.1.0
pkgrel=2
pkgdesc='Remastering Arch Linux ISO'
url='https://github.com/Saneyan/arch-remaster'
arch=('i686' 'x86_64')
license=('MIT')
depends=('xorriso' 'squashfs-tools' 'arch-install-scripts' 'zsh')
optdepends=('aufs3')
maked... | true |
7b62fa452bc5a9a38aaed013e82ad4ff5d7116b2 | Shell | ranjithmani/bash-hub | /create-dir.sh | UTF-8 | 647 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#Description : To create dirctory structure for copying the logs from the induvidual server
#USAGE : ./create-dir.sh
#Created on : 05-May-2015
#Dependency : create a server.txt file in the script home directory and add server names to which you want create directory
# NOTE: please run this script ... | true |
30a30a8ea4f40ddea3c0e86bfddd277b3552a815 | Shell | RadPad/docker-radpad-scripts | /radpad.sh | UTF-8 | 711 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# A list of helper aliases to work with Docker and Rails
# There may be multiple containers that match the pattern
# so only query for the first match
#export DOCKER_CONTAINER="`docker ps | grep radpad/ | awk 'NR==1{ print $1 }'`"
CONTAINER_REGEX='radpad\/(dev|stg|prod)\-radpad\-(api|job|web)\:'
export DO... | true |
57e2e0fd8dc168cb805b1c9abd73c0002e5b9d1d | Shell | masa0x80/dotfiles.append | /.zsh/completion.zsh | UTF-8 | 1,917 | 2.828125 | 3 | [
"MIT"
] | permissive | # 補完
autoload -U compinit; compinit # 補完を有効に
setopt menu_complete # 補完候補が複数ある時、一覧表示 (auto_list) せず、すぐに最初の候補を補完する
setopt list_types # auto_list の補完候補一覧で、ls -F のようにファイルの種別をマーク表示
setopt always_last_prompt # 補完候補を一覧表示
setopt auto_list # 補完候補をリストアップ
setopt auto_menu # ... | true |
425c25d6212d8684a0b1926e3d1844663308cae6 | Shell | mgraczyk/HomeConfig | /scripts/serv | UTF-8 | 146 | 2.8125 | 3 | [] | no_license | #!/bin/sh
if command -v webfsd &> /dev/null
then
port=${1:-8000}
webfsd -F -r . -p $port -d -f index.html
else
python3 -m http.server $@
fi
| true |
e1fb56240a1923b3fe017b65b75ab22ec8f3570a | Shell | SharatMehrotra/TheUnixWorkbench | /guessinggame.sh | UTF-8 | 473 | 3.546875 | 4 | [] | no_license | function guessgame()
{
echo "Enter your guess: "
read guess
ans=$(ls -l |grep "^-"|wc -l)
echo $ans
while [[ $guess -ne $ans ]]
do
if [[ $guess -gt $ans ]]
then
echo "Your guess is too high. Enter new guess"
read guess
elif [[ $guess -lt $ans ]]
then
echo "Your ... | true |
ba1895967cdbd309fe2952669cc841ebb8c34213 | Shell | bigklopp/Shell_git | /array_for1.sh | UTF-8 | 239 | 2.953125 | 3 | [] | no_license | #!/bin/bash
row1=("1" "2" "3" "4" "5")
row2=("6" "7" "8" "9" "10")
records=(row1 row2)
for record in ${records[*]}
do
row="$record[*]"
echo "Row --- " $record
for col in ${!row}
do
echo $record $col
done
done
| true |
d72c2110a7b3ed85db3fe8214c24b54c2e3641fd | Shell | globus/globus-toolkit | /common/source/scripts/globus-user-env.sh.in | UTF-8 | 4,273 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #
# Copyright 1999-2010 University of Chicago
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.