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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
62c9ce35c44a493d909ba7b9640549f23de768a3 | Shell | gmlarumbe/emacsconf | /scripts/config.sh | UTF-8 | 411 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p ${HOME}/.emacs.d
echo "Create .elisp home dir..."
ln -s ${PWD}/.elisp ${HOME}/.elisp
if [ -d ".elisp_private" ]; then
echo "Create .elisp_private home dir..."
ln -s ${PWD}/.elisp_private ${HOME}/.elisp_private
fi
echo "Link to emacs init folder..."
ln -s ${PWD}/.elisp/lisp/init.el ${HOM... | true |
0e22fb282136d9bbe22a2e7dcc0b1814149a3f95 | Shell | Kinyoke/safeDel | /safeDel.sh | UTF-8 | 10,608 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
#Author: Faisal Burhan
#Cpyright (c) Neutron.net
#This script is for testing purpose only.
NAME="Faisal Burhan Abdu"
STUDENT_ID="S1719016"
TRASH_CAN_DIR=~/.trashCan
trap ctrl_c SIGINT
trap exit_script EXIT
function main(){ #______________ BEGIN OF MAIN _____________________________
echo "STU... | true |
1f8b608230f54d224883ec2d87a6f4a93dbcb36a | Shell | wfp-ose/sparc2 | /install_ubuntu_1404.sh | UTF-8 | 1,715 | 3.375 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#===============#
OS_USER=vagrant
VENV=sparc2
DEPLOY_KEY_EMAIL="sparc@wfp.org"
DJ_PROJ="sparc2"
#===============#
bash "install/install_apt.sh"
#===============#
# Create Deploy Key
read -p "Do you need to create a deploy key? y/n" -n 1 -r
echo # (... | true |
c17c22d2d29c14e51362a3e5546553d7cdef62f4 | Shell | wesleyMT/VRRP_HA | /ha_install.sh | UTF-8 | 1,515 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#
# Works on Solaris 11.3
#
VRRP_GROUP=0
read -p "What VRRP group to use? [12]: " VRRP_GROUP
if [[ $VRRP_GROUP -eq '0' ]] ; then
VRRP_GROUP=12
fi
NODE_PRIO=90
read -p "Is this Node is the MASTER? <y/n> [N]: " prompt
if [[ $prompt =~ [yY](es)* ]] ; then
NODE_PRIO=100
fi
prompt=""
while [ ! $prompt ] ; ... | true |
909331d1a2e924dc173aefd0f19f25a5906d3cb3 | Shell | gost/scripts | /ubuntu_install.sh | UTF-8 | 2,794 | 3.375 | 3 | [
"MIT"
] | permissive | #-------------------------
# update system and tools
# Note: Mosquitto installed trough apt-get does not support websockets
# to get websockets working check: https://github.com/Geodan/gost/wiki/Mosquitto-with-websockets
#-------------------------
sudo apt-get update
sudo apt-get -y install git
sudo apt-get -y install ... | true |
a12021bbb69674dad892f7367834c7f2f14c4c3e | Shell | hgreenlee/larlite | /config/setup_mrb_local.sh | UTF-8 | 917 | 3.625 | 4 | [] | no_license | #!/bin/bash
command -v mrb >/dev/null 2>&1 || { echo >&2 "MRB seems not set up (required!). Aborting."; return; }
# Set my larsoft path
if [ -z $1 ]; then
echo 1st argument must be the installation location. No argument provided!
return;
fi
MY_LARSOFT=$1
if [ ! -d $MY_LARSOFT ]; then
echo Directory \"$MY... | true |
11ed8f7c45e09dd184ae1c0082b0ecd53f25dced | Shell | avaussant/blog | /automated-networkpolicy-generation/1-inject-sidecar.sh | UTF-8 | 196 | 2.609375 | 3 | [] | no_license | #!/bin/bash
source env.sh
DEPLOYMENTS=$(kubectl get deployment -n $TARGET_NS -o name)
for d in $DEPLOYMENTS
do
kubectl -n $TARGET_NS patch $d --patch "$(cat tcpdump-sidecar-patch.yaml)"
done
| true |
4e4b474877b702f092dcdba4706a2dbc9927c557 | Shell | pawelz/pyjira | /PLD/build.sh | UTF-8 | 577 | 2.96875 | 3 | [
"MIT",
"X11-distribute-modifications-variant"
] | permissive | #!/bin/sh -x
TOPDIR=$PWD
SPECDIR=$TOPDIR
SOURCEDIR=$TOPDIR
BUILDDIR=$TOPDIR/BUILD
RPMDIR=$(dirname $TOPDIR)
SRPMDIR=$(dirname $TOPDIR)
mkdir -p $BUILDDIR
(cd ..; git archive --prefix=pyjira/ HEAD --format=tar) > pyjira.tar
rpmbuild -bb \
--define "_binary_payload w9.gzdio" \
--define "_source_payload w9.gzdio" \
... | true |
a4837438817b97c7f80ecccff511f6d17a9ca5e0 | Shell | habitat-sh/habitat | /components/sup/tests/fixtures/integration/config-and-hooks-with-reconfigure/hooks/reconfigure | UTF-8 | 222 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "$(date): Executing Reconfigure Hook with templated value: {{cfg.reconfigure_templated_value}}"
EXIT_CODE='{{#if cfg.reconfigure_exit_code}}{{cfg.reconfigure_exit_code}}{{else}}0{{/if}}'
exit "$EXIT_CODE" | true |
ff35f174498340d124ceeafa5a221ed15be00684 | Shell | delkyd/alfheim_linux-PKGBUILDS | /rucksack/PKGBUILD | UTF-8 | 751 | 2.765625 | 3 | [] | no_license | # Maintainer: archlinux.info:tdy
pkgname=rucksack
pkgver=3.1.0
pkgrel=1
pkgdesc="Texture packer and resource bundler"
arch=(i686 x86_64)
url=https://github.com/andrewrk/rucksack
license=(MIT)
depends=(freeimage liblaxjson)
makedepends=(cmake)
source=(https://github.com/andrewrk/$pkgname/archive/$pkgver.tar.gz)
sha256s... | true |
814c21f8dc803cb3a2e5239aba82fc72dc10310f | Shell | GDmin/devops-project | /scripts/ApplicationStop.sh | UTF-8 | 121 | 2.640625 | 3 | [] | no_license | #!/bin/bash
if [ `docker ps | grep project | wc -l` = 1 ]
then
docker stop project
docker rm project
fi
| true |
bf27b83cbe1faff6295eb204742e10fab9e9bede | Shell | olleolleolle/passenger-docker | /image/jruby1.7.sh | UTF-8 | 2,436 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
source /build/buildconfig
set -x
apt-get install -y -t sid openjdk-8-jre-headless
dpkg-reconfigure ca-certificates-java
curl https://s3.amazonaws.com/jruby.org/downloads/1.7.18/jruby-bin-1.7.18.tar.gz -o /tmp/jruby-bin-1.7.18.tar.gz
cd /usr/local
tar xzf /tmp/jruby-bin-1.7.18.tar.gz
# For convenie... | true |
9261c6f3340a14fc054ef202f2bfdea16e76c98a | Shell | openclouds-src/opencit-openstack-extensions | /Openstack-Liberty-CIT-patch/setup | UTF-8 | 7,127 | 3.875 | 4 | [] | no_license | #!/bin/bash
red='\e[0;31m'
NC='\e[0m' # No Color
if [ "$1" = "initcfg" ]
then
echo "CIT_IP=<IP Address>
CIT_PORT=<PORT>
CIT_AUTH_BLOB=<AUTH_BLOB>" > setup.cfg
echo "Default setup.cfg created in the directory. Please run ./setup for continuing with the setup process. Alternatively update the config and r... | true |
5a456a6125bc2aa5065dcea0139dc607d7438a38 | Shell | axblk/PKGBUILD | /gcc-hermit-bootstrap-git/PKGBUILD | UTF-8 | 1,546 | 2.78125 | 3 | [] | no_license | _pkgname="gcc-hermit-bootstrap"
pkgname=$_pkgname-git
pkgver=r146655.50eced1900b
_islver=0.18
pkgrel=1
pkgdesc="Cross-build binary utilities for HermitCore"
arch=('x86_64')
url="https://github.com/hermitcore/gcc"
license=('GPL')
groups=()
depends=()
makedepends=('git')
options=('libtool' 'staticlibs' '!buildflags' '!st... | true |
84e0ca9b011202d6a07c632cd6a0dc743574631f | Shell | skyne98/troglos | /initramfs/var/www/cgi-bin/upgrade | UTF-8 | 1,359 | 3.515625 | 4 | [
"ISC"
] | permissive | #!/bin/sh -e
# POST upload format:
# -----------------------------29995809218093749221856446032^M
# Content-Disposition: form-data; name="file1"; filename="..."^M
# Content-Type: application/octet-stream^M
# ^M <--------- headers end with empty line
# file contents
# file contents
# file contents
# ^M <---------... | true |
392e8c443522ce077ff807bfa9515484d9ff8023 | Shell | bleepbloopsify/home | /oh-my-zsh/themes/chess-light.zsh-theme | UTF-8 | 822 | 3.15625 | 3 | [] | no_license | SESSION_TYPE=host
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] || [ -n "$SSH_CONNECTION" ]; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ "$SESSION_TYPE" = "remote/ssh" ]; then
AESTHETIC="$(hostname) %(!.♝.♕)"
else
AESTHETIC="%(!.♞.... | true |
175d7f0309203e21b7f75e5e49076f4d181c98f3 | Shell | cakmakcan/dialogflow_ros | /install.sh | UTF-8 | 847 | 3.25 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[-v GOOGLE_APPLICATION_CREDENTIALS]] then
echo "Found credentials in: $GOOGLE_APPLICATION_CREDENTIALS"
else
read -p "No credentials path found, please enter the path for your Google service account credentials: " gpath
export GOOGLE_APPLICATION_CREDENTIALS=$gpath
# Start by installing Google ... | true |
529daa92e9ece7198599b16765eb1cb8cb580fbc | Shell | JeremyOttley/qsetup | /extra/.bashrc | UTF-8 | 963 | 2.828125 | 3 | [] | no_license | ## Virtualenv
function set_virtualenv () {
if test -z "$VIRTUAL_ENV" ; then
PYTHON_VIRTUALENV=""
else
PYTHON_VIRTUALENV="${BLUE}[`basename \"$VIRTUAL_ENV\"`]${COLOR_NONE} "
fi
}
function ps1command () {
set_virtualenv
export PS1="\n\e[1;96m\u@\h on \d at \@\n\e[1;92m$PYTHON_VIRTUALENV\w \$gi... | true |
de4f58b44cc885376f37a9be7b163c639652f4be | Shell | coinarrival/coinarrival | /install.sh | UTF-8 | 858 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e # once broken, exit bash
echo "Building Repo"
# Build FrontEnd
echo "Building FrontEnd Page..."
cd ../coinarrival_v1.0/FrontEnd
npm install
npm run build
cp index.html ../coinarrival_v1.0/ServerEnd/resources/public/index.html
cp -r ./dist/ ../coinarrival_v1.0/ServerEnd/resources/
cp -r ./static/ ... | true |
a16d6c7bd4c46faa194af91c4604afcb04b7f882 | Shell | eyedeekay/youtube-dl-wrapper-experiments | /lib/ydl_supervise_pid | UTF-8 | 505 | 3.375 | 3 | [] | no_license | #! /usr/bin/env sh
ydl_cleanup_pid(){
rm -f stop *.pid
}
ydl_find_pid(){
if [ $(ps aux | grep "$(cat *.pid)") ]; then
true
fi
}
ydl_kill_pid(){
kill "$(cat *.pid)"
ydl_cleanup_pid
}
ydl_watch_pid(){
if [ -f *.pid ]; then
while [ ydl_find_pid ]; do
if [ "$(cat stop... | true |
36c96bcf885fe4e3296ded8b57d0068c3362d2b0 | Shell | crypdex/blackbox | /scripts/dashboard/info.sh | UTF-8 | 4,007 | 3.46875 | 3 | [] | no_license | #!/bin/bash
## get basic info
source /home/admin/raspiblitz.info 2>/dev/null
source /mnt/hdd/raspiblitz.conf 2>/dev/null
#codeVersion=$(blackbox version)
codeVersion=0.2.10
if [[ ${#codeVersion} -eq 0 ]]; then codeVersion="0"; fi
# check hostname
if [ ${#hostname} -eq 0 ]; then hostname="raspiblitz"; fi
# get upt... | true |
883402a5ef39f40b9d78a9fd73ff090e4ce9e756 | Shell | toro2k/dotfiles | /lndot.sh | UTF-8 | 538 | 4.15625 | 4 | [] | no_license | #!/bin/sh
set -e
SCRIPT_NAME=$(basename "$0")
FORCE=0
if [ "$1" = "-f" ]; then
FORCE=1
shift
fi
if [ "$#" -lt 1 ]; then
printf "usage: %s [-f] DOTFILE...\n" "$SCRIPT_NAME"
exit 1
fi
for dotfile in "$@"; do
TARGET="$(pwd)/$dotfile"
LINK_NAME="$HOME/$(basename "$dotfile")"
if [ -e "$LINK... | true |
55a91e400380609e3ceccf1c9a05650effeee680 | Shell | astarinatyasr/18213033-18212028 | /4. UTS scripting/UTS scripting.sh | UTF-8 | 334 | 2.84375 | 3 | [] | no_license | #!/bin/sh
echo -n "Enter your desired URL: "
read url
echo "Downloading..."
wget -nd -r -l 1 -P astarinatyasr -A jpg $url
echo "====================Download succeed===================="
echo "Backing up..."
rsync -a astarinatyasr backup
echo "====================Back up succeed===================="
echo "> Finished s... | true |
3e804bb786806ff1f396e0c62f1e25c973061a8b | Shell | planet-winter/planet-docker-mining | /claymore-cuda-miner/app/start.sh | UTF-8 | 764 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -ethi 8 ; default intensity, lower for OS rendering
# -erate ; submit hashrate
# -r 1 ; restart on failure
# -tt 1 ; only show temp and fan speed; dop not manage; not possible on linux with nvidia gpu
# -tstop 89 ; stop mining on this temp
# -fanmax 70 ;fan max speed; does not work on linux nvidi... | true |
8672c2724093671db44b6fc0e336c1b0e2955134 | Shell | Darui99/ITMO-Java | /java-advanced-2020-solutions/java-solutions/ru/ifmo/rain/kurbatov/implementor/compile-javadoc.sh | UTF-8 | 893 | 2.8125 | 3 | [] | no_license | #!/bin/bash
MODULE="ru.ifmo.rain.kurbatov"
ROOT="$(dirname $0)/../../../../../../.."
MY_P="${ROOT}/java-advanced-2020-solutions"
TEMP="${MY_P}/_build/my"
TEMPKG="${MY_P}/_build/kg"
KG_P="${ROOT}/java-advanced-2020"
LINK="https://docs.oracle.com/en/java/javase/11/docs/api/"
KG_M="${KG_P}/modules/info.kgeorgiy.java.adva... | true |
e5f1cc1a45d405d3d6f44b01562cac1d662922db | Shell | jestevez/community-source | /docker/build-docker.sh | UTF-8 | 540 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
DOCKER_IMAGE=${DOCKER_IMAGE:-communitypay/communityd-develop}
DOCKER_TAG=${DOCKER_TAG:-latest}
BUILD_DIR=${BUILD_DIR:-.}
rm docker/bin/*
mkdir docker/bin
cp $BUILD_DIR/src/communityd docker/bin/
cp $BUILD_DIR/src/community-cli do... | true |
55da1d06b871b59e0e8b7338568b34a3bd64957f | Shell | astakia/cmg-cmssw | /CMGTools/TTHAnalysis/python/plotter/susy-1lep/limits/make_susy_cards.sh | UTF-8 | 7,223 | 2.703125 | 3 | [] | no_license | #!/bin/bash
if [[ "$1" == "SingleLepAFS" ]]; then
shift # shift register
T="/afs/cern.ch/work/k/kirschen/public/PlotExampleSamples/V3";
FT="/afs/cern.ch/work/a/alobanov/public/SUSY/CMG/CMGtuples/FriendTrees/phys14_v3_btagCSVv2"
J=4;
elif [[ "$HOSTNAME" == *"lxplus"* ]] ; then
T="/afs/cern.ch/work/k... | true |
85ce0abe2fb14c573c42d4c2fec645e7cd42c686 | Shell | sonatype/operator-nxrm3 | /scripts/bundle.sh | UTF-8 | 2,072 | 3.671875 | 4 | [] | no_license | #!/bin/sh
# built from https://redhat-connect.gitbook.io/partner-guide-for-red-hat-openshift-and-container/certify-your-operator/upgrading-your-operator
if [ $# != 3 ]; then
cat <<EOF
Usage: $0 <bundleNumber> <projectId> <apiKey>
bundleNumber: appended to version to allow rebuilds, usually 1
projectId: pr... | true |
6fe8269bf435dccc0ef510ea65425234ff83f7e1 | Shell | rehannali/s21u-firmware-download | /download-firmware | UTF-8 | 1,246 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DEVICE="Enter you device Model"
REGION="Enter your Device Region"
BASE="samloader -m $DEVICE -r $REGION"
echo "Checking samloader existance..."
if ! command -v samloader &> /dev/null; then
echo "samloader not found. Downloading..."
pip3 install git+https://github.com/nlscc/samloader.git
fi
echo "Check... | true |
192b5a13e54aa44559effa4c532f570f4bf60a58 | Shell | cancerberoSgx/raphael4gwt | /raphael4gwt/doc/userguide/make.sh | UTF-8 | 480 | 2.65625 | 3 | [] | no_license | #generation of htmls and pdf from docbook.
#author: sgurin
NAME=r4g-user-guide
#clean
rm -rf $NAME-pdf
mkdir $NAME-pdf
rm -rf $NAME-htmls
rm -rf $NAME-html
rm $NAME.tgz
#pdf
dblatex -o $NAME-pdf/$NAME.pdf $NAME.xml
#multiple htmls
db2html $NAME.xml
cp -r images $NAME/images
mv $NAME $NAME-htmls
cp $NAME-htmls/t1.ht... | true |
7320264f34e19877d3f9bc6e42b9607c2a71f7c1 | Shell | zchbndcc9/.dotfiles | /.setup/install.sh | UTF-8 | 368 | 2.5625 | 3 | [] | no_license | #!/bin/bash
echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Pouring some brewskies..."
brew bundle
echo "Installing Zsh..."
sh -c "$(brew --prefix)/opt/fzf/install -y"
chsh -s /bin/zsh
echo "Linking packages..."
sh ./link.sh
ech... | true |
0ee82b79b3f74fa892f8f60a34ad5c59d1be0c10 | Shell | nikolas/aloe_webdriver | /tools/with_docker_browser | UTF-8 | 879 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/sh -e
# Run a test command with a Selenium Docker image
# Usage: with_docker_browser chrome|firefox|phantomjs command
export BROWSER_TYPE=$1
shift
CONTAINER=$(mktemp -u browserXXXXXX)
PORT=4444
COMMAND=
case $BROWSER_TYPE in
firefox)
IMAGE=selenium/standalone-firefox
;;
chrome)
... | true |
02b3c0eee23353d2b37325b164d64e9f1ee69282 | Shell | luiseduardo1/ULTaxi | /scripts/vehicles.bash | UTF-8 | 1,594 | 3.3125 | 3 | [] | no_license | #! /usr/bin/env bash
[ -z ${is_common_file_loaded} ] && source "common.bash"
declare -xr is_vehicles_file_loaded=true
create_vehicle_route() {
local -r _authentication_header="${1}"
local -r _vehicle="${2}"
curl -H "${_authentication_header}" \
-H "${json_content_type_header}" \
-K "${c... | true |
84ec200f5e3d7f19d38b2586fa3cc6f73789bc34 | Shell | jeffbuttars/django-fast-env | /.settings.sh | UTF-8 | 1,048 | 3.453125 | 3 | [] | no_license | #!/bin/bash
TOP_DIR=$(readlink -f $(dirname $BASH_SOURCE))
# Django Project name and subdir name
<<<<<<< HEAD
PROJ_NAME='django-fast-env'
=======
DJANGO_PROJ='project_rename_me'
>>>>>>> c8ec2c6a7b77ca5f291d5ad42217441217e81eed
# Gunicorn settings file
GU_SETTINGS_FILE="$TOP_DIR/$DJANGO_PROJ/gunicorn.py"
# Name of ... | true |
6b5061216cbbfa371cdd804dde2ae1813811c7f7 | Shell | matfantinel/personal-elementaryos-tweaks | /elementary_tweaks.sh | UTF-8 | 1,222 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#Enable ppas
echo "----------------------------------- Enabling ppas..."
sudo apt install software-properties-common -y
#Install system76-power package for better power management
echo "----------------------------------- Installing system76-power..."
sudo apt-add-repository -y ppa:system76-dev/stable
sud... | true |
59aa6c2b51421603d6ad56eb5152188ba134b154 | Shell | ElegantCosmos/dotfiles | /bash/scripts/openlatest | UTF-8 | 635 | 3.53125 | 4 | [] | no_license | #!/bin/bash
if [ $# -eq 1 ]; then
if [ $1 -gt 0 ]; then
N_FILES=$1
echo 'Copying '"$N_FILES"' most recent of *.pdf, *.eps, *.ps files...'
else
echo 'Error: single argument must be a number greater than 0.'
fi
else
N_FILES=1
echo 'Copying most recent of *.pdf, *.eps, *.ps fil... | true |
e771285e8697525813246b47835cce55fc282ef5 | Shell | golebier/CoAnSys | /logs-analysis/src/main/oozie/submit-to-oozie.sh | UTF-8 | 954 | 3.375 | 3 | [] | no_license | #!/bin/bash
TASK=$1
TASK_ID=$2
USER=$3
OOZIE_SERVER=$4
PROPERTIES_FILE=$5
WORKFLOW_HDFS_DIR="/user/${USER}/workflows/coansys/${TASK}-${TASK_ID}"
WORKFLOW_LOCAL_LIB_DIR="${TASK}/workflow/lib"
if [ ! -d "$WORKFLOW_LOCAL_LIB_DIR" ]; then
mkdir ${WORKFLOW_LOCAL_LIB_DIR}
fi
echo "Copying required libaries to ${WORKF... | true |
ba2fd177652b7f6b92c0784ba139ea3a65473c71 | Shell | antonshulyk/kabam-puppet | /modules/sruser/templates/scriptDir/static-deploy.sh | UTF-8 | 197 | 2.578125 | 3 | [] | no_license | #!/bin/bash
RELEASE_DIR=$1
STATIC_CONTENT_DIR=/var/www/lighttpd/static/$2
echo "Copying content from $RELEASE_DIR/static/* to $STATIC_CONTENT_DIR"
cp -r $RELEASE_DIR/static/* $STATIC_CONTENT_DIR;
| true |
24cd16e540d3ff54deba1a49ab9861d8fb7b6bc9 | Shell | rcmd-funkhaus/monitoring | /roles/monit/files/plugins/check_remote_filesystem.sh | UTF-8 | 316 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
source /etc/monit/plugins/okfail.sh
if timeout 10 curl --fail -A "monit-ping-check" -s -o /dev/null -w "%{http_code}" --connect-timeout 5 --max-time 5 "file://${1}/health.json"; then
ok "Remote filesystem at ${1} is accessible"
else
fail "Remote filesystem at ${1} is inaccessible!"
fi
| true |
ab0de1bf63c104abbe4556c413fbfc1ef243a5d1 | Shell | pxigelewis/CPS393-Assignemnt | /PaigeBranch | UTF-8 | 4,412 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#exit status 1
if [ ! -f $1 -o ! -r $1 ]
then
echo "Input file is missing or unreadable."
exit 1
fi
#exit status 2
if [[ $(cat $1 | wc -l) != 6 ]]
then
echo "input file does not have 6 lines"
exit 2
fi
if [[ ${wholecard[$i]} = *[^0-9\]* ]] #checking if the file has any non-digit char... | true |
94d2f400c812e84164034b2549d987e87140f6f4 | Shell | vadorovsky/packer-ci-build | /provision/ubuntu/kernel-next-bpftool.sh | UTF-8 | 373 | 2.796875 | 3 | [] | no_license | #!/bin/bash
set -xe
export 'KCONFIG'=${KCONFIG:-"config-`uname -r`"}
sudo apt-get install -y --allow-downgrades \
pkg-config bison flex build-essential gcc libssl-dev \
libelf-dev bc
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git $HOME/k
cd $HOME/k
git --no-pager log -n1
... | true |
a11917956ac1e3bc446c337a26e3dfef335c908e | Shell | mbillings/puppet-sensors | /templates/lm_sensors.sh.erb | UTF-8 | 7,095 | 3.5 | 4 | [] | no_license | #!/bin/bash
#===============================================================================
#
# FILE: <%= scope.lookupvar('sensors::lm_script') %>
#
# USAGE: Part of the Puppet module "sensors"
#
# DESCRIPTION: Initialize lm (if necessary), polls hardware info and
# sensors, and cr... | true |
13d81ca05d045e2cded184d02e966bfeeb00a1da | Shell | mdcallag/mytools | /bench/run_tpcc/run.sh | UTF-8 | 547 | 2.703125 | 3 | [] | no_license | nw=$1
engine=$2
mysql=$3
ddir=$4
myu=$5
myp=$6
myd=$7
rt=$8
mt=$9
dbh=${10}
# extra options for create table
createopt=${11}
# number of concurrent clients
dop=${12}
# suffix for output files
sfx=${13}
sla=${14}
# name of storage device in iostat for database IO
dname=${15}
loops=${16}
bash run1.sh $nw $engine $m... | true |
3961f5ef27da19738e691549c2cdd198dd9e1e8a | Shell | KatieMishra/VoiceClassification | /sphinxbase/autoconf-2.69/automake-1.14/t/cond15.sh | UTF-8 | 1,468 | 2.921875 | 3 | [
"BSD-2-Clause",
"MIT",
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"GPL-3.0-only",
"FSFAP",
"GPL-3.0-or-later",
"Autoconf-exception-3.0",
"LicenseRef-scancode-other-copyleft"
] | permissive | #! /bin/sh
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | true |
6c9c9df97af3e6db4d7e99f550c22ac07b01c297 | Shell | vvvinodkumar/QCS-Ansible-Engine-Automation-By-Chandra | /Ansible-Engine-session-05/check_rhel7.sh | UTF-8 | 213 | 3.125 | 3 | [] | no_license | #!/bin/bash
function check_rhel () {
#check_rhel=$(cat /etc/redhat-release | awk -F" " '{print $6}' | awk -F"." '{print $1}')
check_rhel=7
if [ $check_rhel -eq 8 ]
then
return 0
else
return 1
fi
}
check_rhel
| true |
584a57aea447b0a1623b599ca24561e2b3f6a850 | Shell | zester/LFS-RPM | /rpmbuild/TOOLS-LFS/binutils-pass-2.sh | UTF-8 | 839 | 3.34375 | 3 | [] | no_license | #!/bin/bash
set -o errexit # exit if error
set -o nounset # exit if variable not initalized
set +h # disable hashall
shopt -s -o pipefail
pkgname=binutils
pkgver=2.23.2
srcname=../SOURCES/${pkgname}-${pkgver}.tar.bz2
srcdir=${pkgname}-${pkgver}
function unpack() {
tar xf ${srcname}
}
function clean() {
rm -rf ${sr... | true |
6458225275ddf5f760123ee5572a7d83bd60fd9d | Shell | resingm/honeypot | /scripts/setup-debian-hp.sh | UTF-8 | 7,525 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# ------------------------------------------------------------------
#
# Setup script to automate the setup of a honeypot
#
# The script aims to automate the task of setting up a debian-based
# honeypot. The honeypot will operate an SSH server, a Telnet server
# and a VNC server (vncterm). The services wil... | true |
3449a768dea602a6d15b2e998b136292f34728e2 | Shell | williamhaley/configs | /bin/vm.windows98.sh | UTF-8 | 454 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Windows 98 Qemu VM.
set -e
# -cdrom ~/Software/Windows\ and\ DOS/Windows\ 98\ First\ Edition.iso \
pushd "${HOME}/VMs/windows98"
qemu-system-i386 \
-nodefaults \
-rtc base=localtime \
-m 1G \
-hda "./image/windows98.vmdk" \
-cdrom "${HOME}/Software/Windows and DOS/Windows 98 First ... | true |
b1db69effb1062f0ed407e5182cc07d735cf1023 | Shell | riverpuro/dotfiles | /bin/update-emacs | UTF-8 | 284 | 3.328125 | 3 | [] | no_license | #!/bin/sh
src=${HOME}/local/src
prefix=${HOME}/local
mkdir -p $src
cd $src
if [ -d emacs ] ; then
cd emacs
git pull
else
git clone git://git.savannah.gnu.org/emacs.git emacs
cd emacs
fi
./autogen.sh
make clean
./configure --prefix=$prefix --without-x
make && make install
| true |
e2da057d19dd8a18cd09442c15fd01487fcaa7f2 | Shell | igor-filipenko/devtools | /src/set-status | UTF-8 | 892 | 3.25 | 3 | [] | no_license | #!/bin/bash
source $HOME/devtools/share/common.sh
MOUNTED="[MOUNTED]"
UNMOUNTED="[UNMOUNTED]"
RUNNING="[RUNNING]"
STOPPED="[STOPPED]"
function check_mounted
{
if mount | grep $1 > /dev/null; then
echo $MOUNTED
else
echo $UNMOUNTED
fi
}
function check_running
{
if VBoxManage list runn... | true |
180b90f83c7e392c201b2a101877ff5b521c5abe | Shell | Kaliahh/IMPR | /scripts/ping-test.sh~ | UTF-8 | 136 | 2.5625 | 3 | [] | no_license | #!/bin/sh
# -q quiet
# -c nb of pings to perform
ping -q -c5 google.com > /dev/null
if [ $? -eq 0 ]
then
echo "ok"
fi
| true |
cc199672ae6f8cffb1eb7498b9e8039c7eb1c8e7 | Shell | kors-ana/project-deploy-instruction | /deployment/scripts/deploy.sh | UTF-8 | 1,018 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
PATH_CREDENTAILS=~/repo/deployment/scripts
PATH_SSH=deployment/ssh/id_rsa
chmod +x ${PATH_CREDENTAILS}/unzip_credentails.sh && ${PATH_CREDENTAILS}/unzip_credentails.sh
echo "Deploy run!";
# if [[ "${CIRCLE_BRANCH}" = 'master' ]]
# then
# APP_ENV=production
# DEPLOY_PATH=/var/www/stage-prod.... | true |
dfd2f391907f09c03a8666b08c143b33d9f98a28 | Shell | webclinic017/Termux | /apps/aix/local/21094.c | UTF-8 | 1,659 | 3.5 | 4 | [] | no_license | source: https://www.securityfocus.com/bid/2916/info
AIX ships with a diagnostic reporting utility called 'diagrpt'. This utility is installed setuid root by default.
When 'diagrpt' executes, it relies on an environment variable to locate another utility which it executes. This utility is executed by 'diagrpt' as root... | true |
00c7b9910b2d27a3b8da12faf26f9c3523670e5f | Shell | jensdietrich/null-annotation-inference | /experiments/refine-collected-issues.sh | UTF-8 | 1,578 | 3.75 | 4 | [
"UPL-1.0"
] | permissive | #!/bin/bash
## script to refine fetched nullability issues, rejecting some and inferring additional ones
## @author jens dietrich
NAME=$1
PREFIX=$2
ROOT="$(pwd)"
PROJECT_FOLDER=$ROOT/projects/original/$NAME
ISSUE_FOLDER=$ROOT/issues-collected/$NAME
INFERRED_ISSUES_FOLDER=$ROOT/issues-inferred/$NAME
NEGATIVE_TEST_LIST... | true |
36ec2f0759de232dcbfc431500153ee73abeb789 | Shell | syuria27/Automation_Scripts | /ibm_db2_create_instance.sh | UTF-8 | 800 | 2.921875 | 3 | [] | no_license | #!/bin/bash
################ ENVIRONMENT VARIABLES ################
db2_install_dir=/opt/ibm/db2/V10.5
#########################################################################
## Change ownership of install dir
chmod -R u+x $db2_install_dir
## Create groups and users
groupadd db2grp1
groupadd das... | true |
0acbcd49bc0c55d20efba01941b861819ecfda0d | Shell | tabulon-ext/zeesh | /plugins/virtualbox/func/vbox-snapshots | UTF-8 | 1,177 | 3.828125 | 4 | [
"MIT"
] | permissive | # returns a list of snapshots for a vm
vbox-snapshots() {
local vm=$1
local cmd=$2
[ -n "$vm" ] || { echo 'No vm specified'; return 1 }
typeset -A prefs
zeesh-prefs virtualbox get
local vboxmanage=$prefs[vboxmanage]
_names() {
$vboxmanage showvminfo --machinereadable $vm | grep -o... | true |
43d2d42d40c026003705958558881121f0226efe | Shell | amcadmus/md.error | /longRange.hetero/profile.test/template/tools/scripts/dir.esti.sh | UTF-8 | 740 | 2.859375 | 3 | [] | no_license | #!/bin/bash
source parameters.sh
if test ! -d $record_dir; then
echo "no record dir $record_dir"
exit
fi
if test ! -d $errors_dir; then
echo "# no errors dir $errors_dir, make it"
mkdir -p $errors_dir
fi
rm -f $errors_dir/parameters.dir.esti.sh
cp parameters.sh $errors_dir/parameters.dir.esti.sh
mylo... | true |
af767a541e7ff9896bb14d6d9452bcb890ad0dcf | Shell | champ1/rvm | /scripts/functions/gemset | UTF-8 | 7,804 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
__rvm_current_gemset()
{
# Fetch the current gemset via GEM_HOME
typeset current_gemset
current_gemset="${GEM_HOME:-}"
# We only care about the stuff to the right of the separator.
current_gemset="${current_gemset##*${rvm_gemset_separator:-@}}"
if [[ "${current_gemset}" == "${GEM_HOME... | true |
8517306ca1dd46859e825e4b90523558664e27b7 | Shell | samhaug/beamform_code | /normalize_beam_on_P_filter.sh | UTF-8 | 1,826 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ $# != 0 ]; then
echo "Finds temporal, incidence angle, and baz bounds for P wave arriaval"
echo "and normalizes on maximum within these bounds. Does this automatically"
echo "for each filtered beamfile."
echo "USAGE: ./normalize_beam_on_P_filter.sh"
exit
fi
cwd=$(pwd)
alat=$(grep array... | true |
a3c80a4273db5b54dc8c07aa0f5f0dcb935cabc0 | Shell | AnilSeervi/ShellScripting | /minmax.sh | UTF-8 | 321 | 3.578125 | 4 | [
"MIT"
] | permissive | echo "How many Entries?"
read n
i=1
echo "Enter the first number:"
read numb1
max=$numb1
min=$numb1
echo "Enter `expr $n - 1` numbers:"
while [ $i -lt $n ]
do
read numb
if [ $numb -gt $max ]
then
max=$numb
fi
if [ $numb -lt $min ]
then
min=$numb
fi
i=`expr $i + 1`
done
echo Maximum Value = $max
echo Minimum Value = $mi... | true |
6804f32041d09df787a189f5a410cff89173faac | Shell | kalkaran/bash_basic_scripting_ex1 | /bash_package_install_example.sh | UTF-8 | 10,613 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env bash
# Script to automate installation of packages - Ex.1
# .--.
# |o_o |
# |:_/ |
# // \ \
# (| | )
# /'\_ _/`\
# \___)=(___/
# Valdemar er en pingvin
# https://nmap.org/dist/nmap-7.91-1.x86_64.rpm
# 1.Ask for the package to be downloaded [DONE]
# 2.Then ask if it want to install f... | true |
accebdf4adcaa8f70b1d7645812fd867813ce4cc | Shell | rssh/UAKGQuery | /tools/idl_depend | UTF-8 | 13,793 | 3.171875 | 3 | [] | no_license | #!/bin/sh
#
# idl_depend.
# Tool for generating dependences from idl
# (C) Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>, 1998 - 2009
#
###########################################################
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the followi... | true |
1866e951fcefc6eae129db8c77d17cd88954e479 | Shell | ibuildthecloud/rancher-charts | /clone.sh | UTF-8 | 1,127 | 3.828125 | 4 | [] | no_license | #!/bin/bash
set -e
URL=https://kubernetes-charts.storage.googleapis.com/index.yaml
mkdir -p charts
cd charts
download_image()
{
HASH=$(echo $ICON | sha256sum - | awk '{print $1}')
if [ ! -e images/$HASH ]; then
IMGTMP=$(mktemp)
mkdir -p images
echo Downloading $ICON
curl -sL $... | true |
3be722b70d3a774ffbd4d1bdc0c1b5b0b52f0e52 | Shell | kurogane13/Django_Tkinter_Console | /startdjango_server.sh | UTF-8 | 1,203 | 2.828125 | 3 | [] | no_license | echo "############################################"
date
echo "############################################"
echo "SELECT PROJECT TO START THE SERVER FOR IT: "
ls -l -h /home/$USER/DJANGO_PROJECTS/
echo "-------------------------------------------"
underscore="_"
start_djangoserver="start_django_server.sh"
echo "COPY A... | true |
8f000845d14cc7e170eb8f15e62d382141a3f62c | Shell | saleem6474/Terraform-On-Azure-With-Kubernetes-AKS-DevOps | /3-Kubernetes/04-Kubernetes-Fundamentals-with-YAML/04-05-Services-with-YAML/README.md.sh | UTF-8 | 2,322 | 3.109375 | 3 | [] | no_license | # Services with YAML
## Step-01: Introduction to Services
- We are going to look in to below two services in detail with a frotnend and backend example
- LoadBalancer Service
- ClusterIP Service
## Step-02: Create Backend Deployment & Cluster IP Service
- Write the Deployment template for backend REST application... | true |
2c5a30fd0ddb24178493879f3fae1749b64b6305 | Shell | jbbarth/simplelog | /lib/migrate.sh | UTF-8 | 350 | 3.09375 | 3 | [] | no_license | #!/bin/sh
for controller in $(find app/ -name *_controller.rb); do
controller_name=$(echo $controller | ruby -ne 'puts scan(/(\w+)_controller.rb/).delete(/s$/)')
echo "fgrep \"def ${controller_name}_\" $controller"
for method in $(fgrep "def ${controller_name}_" $controller | awk '{print $2}'); do
echo "$con... | true |
df69978f3e82e574b6b19e1cd8acae8c0d08f903 | Shell | lafeldtb/CIS361 | /Project3/part_2/script | UTF-8 | 826 | 4.1875 | 4 | [] | no_license | #! /bin/bash
if [ -z "$1" ]
then
echo "no unzip folder given"
echo "Usage: make folderToUnzip"
exit 2
fi
source=$1
echo "starting..."
# Unzip folder and get new name
unzip -q $source
source="${source%.*}"
# Read in each filename in folder
for file in "$source"/*;
do
set student
set fileName
read student ... | true |
98c3a70799ab13a609780b7bbd5756481e345764 | Shell | ifpb/competitive-programming | /contest/obi/match.sh | UTF-8 | 1,999 | 3.84375 | 4 | [] | no_license | #!/bin/bash
# input/output obi matching script
function program_info {
filename=$(basename "$program_file")
program_extension="${filename##*.}"
program_filename="${filename%.*}"
}
function get_path_and_filename {
path_and_filename=$(echo "$1" | cut -f 1,2 -d '.')
}
function select_runner {
... | true |
11cc704f28002c69f0ef77c8721dbf625997ece5 | Shell | ev1lm0nk3y/rc_files | /vault_switch.sh | UTF-8 | 635 | 3.078125 | 3 | [] | no_license | export DEV_TOKEN=$(cat ~/.config/vault/token)
dev_vault() {
export VAULT_ADDR=https://dev-vault.clearme.com
export VAULT_TOKEN="${DEV_TOKEN}"
check_token=$(vault print token)
if [ "${check_token}" != "${DEV_TOKEN}" ]; then
vault login
echo "You are now authenticated to dev vault"
fi... | true |
d10b52c54fe926708bf249a40c5198237c87cafc | Shell | BroderPeters/dotfiles | /dot_config/i3/blocklets/executable_wifitoggle | UTF-8 | 375 | 3.15625 | 3 | [] | no_license | #!/bin/bash
NETWORKSTATUS=""
#WIFISTATUS="$(nmcli radio wifi)"
ACTIVECONNECTIONS=( $(nmcli -f type connection show --active ) )
for CONNECTION in ${ACTIVECONNECTIONS[@]}; do
case $CONNECTION in
"wifi")
NETWORKSTATUS=$NETWORKSTATUS" "
;;
"ethernet")
NETWORKSTATUS=$NETWORKSTA... | true |
16316327d9d044962e2d2c99e34330757963cf0c | Shell | Jim-Walk/Parallel-Design-Patterns | /practical-three/f/subpipeline.pbs | UTF-8 | 902 | 2.953125 | 3 | [] | no_license | #!/bin/bash --login
# PBS job options (name, compute nodes, job time)
#PBS -N pollutionprac
#PBS -l select=1:ncpus=36
#PBS -l place=scatter:excl
#PBS -l walltime=00:20:00
#PBS -A d167
# Change to the directory that the job was submitted from
cd $PBS_O_WORKDIR
# Load any required modules
module load mpt
module load ... | true |
3bfa74750dc4e2dbc6115ddc2863ad76e3323ae5 | Shell | ninjasphere/sphere-go-led-controller | /firmware/v2-mega328/write_sphere.sh | UTF-8 | 1,532 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# callers can set SKIP_SERVICE_CONTROL to true to skip service control, but by default, we do it
# if true, caller has already arranged for services to be stopped
SKIP_SERVICE_CONTROL=${SKIP_SERVICE_CONTROL:-false}
$SKIP_SERVICE_CONTROL || stop sphere-leds || true
$SKIP_SERVICE_CONTROL || stop devkit-statu... | true |
c1ca9a9c0d9bc8067bbbbb7cb1471bb63a5977a2 | Shell | lgnis/ubuntu.citrix.workspace | /ubuntu.citrix.workspace.sh | UTF-8 | 1,468 | 3.21875 | 3 | [] | no_license | #!/bin/sh
#Instala la aplicación Citrix Workspace para distribuciones Linux basadas en Ubuntu/Debian
cd
cd Descargas
clear
#Descarga el cliente desde https://www.citrix.com/es-es/downloads/workspace-app/linux/workspace-app-for-linux-latest.html
#Seleccionar Debian packages -> Full packages -> .deb para (32bit)=x86 o pa... | true |
7903b944be21f40ea07ea7cf730f90d3c099342e | Shell | roooms/terraform-hashistack | /init-cluster.tpl | UTF-8 | 2,236 | 3.234375 | 3 | [] | no_license | #!/bin/bash
instance_id="$(curl -s http://169.254.169.254/latest/meta-data/instance-id)"
local_ipv4="$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)"
new_hostname="hashistack-$${instance_id}"
# stop consul and nomad so they can be configured correctly
systemctl stop nomad
systemctl stop vault
systemctl ... | true |
7c989cc7bde558196c5f573b6daa3784d0cf1805 | Shell | CSLDepend/HTPerf | /zk-smoketest/plot_latencies.sh | UTF-8 | 941 | 3.265625 | 3 | [] | no_license | #!/bin/bash
#
# usage ./get_latencies.sh num_of_run
if [ $# -eq 0 ]
then
echo "Please provide the number of runs!"
fi
NRUNS=$1
SUFFIX='_delay5ms_'
#SUFFIX=''
echo "Ploting async..."
./parse_kvm_event.py -o rate_async_log${SUFFIX}.pdf -m 1 -M $NRUNS --latency_unit='sec' --log_scale latency_async${SUFFIX}
./pars... | true |
e3d2862e51677f812c6fc58c7b8c4fb6e977181c | Shell | overo/overo-oe-natty | /recipes/gcc/gcc-3.3.3/arm-common.dpatch | UTF-8 | 1,481 | 3.265625 | 3 | [
"MIT"
] | permissive | #! /bin/sh -e
src=gcc
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
src=$3/gcc
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 --fuzz 10 < $0
;;
-unpatch)
... | true |
e1960afc126622b193b05d86130191ad5e226394 | Shell | danielkza/zfs-scripts | /post_debootstrap.sh | UTF-8 | 2,154 | 4.125 | 4 | [] | no_license | #!/bin/bash
set -e
APT_GET_INSTALL='apt-get install -y --no-install-suggests'
err()
{
echo 'Error:' "$@" >&2
}
###
src_dir=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
zfs_prereqs="${src_dir}/zfs_prerequisites.sh"
if ! [[ -x "$zfs_prereqs" ]]; then
err "Missing prerequisites script"
exit 1
fi
os_c... | true |
340bc952b803354bda0d06df623483c0da584b2e | Shell | MushroomObserver/mushroom-observer | /script/retransfer_images | UTF-8 | 1,131 | 4.0625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Re-transfer any images that haven't transferred correctly yet.
#
################################################################################
set -e
source $(dirname "$0")/bash_include
source $(dirname "$0")/bash_images
if [[ $1 == "-h" || $1 == "--help" ]]; then cat <<END; exit 1; fi
US... | true |
2c7bfe43f914ce0dda4567a42be7a939d9298c2c | Shell | krispayne/Jamf-Extension-Attributes | /EA - Display_Serial_Number.bash | UTF-8 | 181 | 2.65625 | 3 | [] | no_license | #!/bin/bash
# Get the plugged in display's serial number
DSN=$(system_profiler SPDisplaysDataType | grep "Display Serial Number" | awk '{print $4}')
echo "<result>${DSN}</result>"
| true |
eb994d9498ebc01c298539e066dc4d8052f04002 | Shell | nrim/AdventOfCode2020 | /day3/day3_2.sh | UTF-8 | 1,177 | 3.625 | 4 | [] | no_license | input=($(<input.txt))
length=${#input[@]}
trees=0
# arrays for the slopes
x_array=(1 3 5 7 1)
y_array=(1 1 1 1 2)
# loop through each slope
for i in "${!x_array[@]}"; do
x_position=0
x_slope=${x_array[i]}
y_slope=${y_array[i]}
slope_trees=0
echo "Slope: $x_slope $y_slope"
# loop through the input file... | true |
b02076a42166112b02d1166f4eef8fad30e0c7cc | Shell | ryanwoodsmall/oldsysv | /sysvr4/svr4/cmd/oamintf/files/bin/getchois.sh | UTF-8 | 786 | 3.171875 | 3 | [] | no_license | # Copyright (c) 1990 UNIX System Laboratories, Inc.
# Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
# UNIX System Laboratories, Inc.
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
... | true |
502f2183b57cc80931417ac093b9d4e44274de3e | Shell | SteveHawk/suda-wg | /logout1.sh | UTF-8 | 904 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# --------------------------------------
# auto logout for wg.suda.edu.cn
# ---------------------------------------
function urlencode()
{
s="$1"
tmp=''
for (( i = 0 ; i < ${#s} ; i++ ))
do
ch=${s:$i:1}
case "$ch"
in [a-zA-Z0-9]) tmp="$tmp""$ch";;
* ) tmp="$tmp""%""$(printf "%x" \'$ch)"
esac
done... | true |
cc19ced840e966b7b19f028d6d41a75bbe6122a7 | Shell | nelsestu/thing-expert | /device/host/files/attach.sh.template | UTF-8 | 301 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
container=$(docker ps --format '{{.ID}}' --filter ancestor={{image_id}} | head -n1)
if [ -z "${container}" ]; then
>&2 echo "Container not running for {{app_name}}:{{image_id}}"
exit 1
fi
docker container exec \
-it \
${container} \
/bin/bash | true |
6ba1375b2e9a2a8bc7a55ef7727e9c41602bad1d | Shell | JoanStar/dotfiles | /.bashrc | UTF-8 | 934 | 3.34375 | 3 | [
"MIT"
] | permissive |
# -----------------------------------------------------------------------
# find current git branch
# -----------------------------------------------------------------------
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# -------------------------------... | true |
04cb1ce9bd513cd7e045ff1dcf1afff09a60dc4d | Shell | eberdahl/Synth-A-Modeler | /gui/Libs/get_and_compile_re2.sh | UTF-8 | 881 | 3.53125 | 4 | [] | no_license | #! /bin/sh
os=${OSTYPE//[0-9.]/}
echo "OS Type: $os"
if [[ $os == "darwin" ]]; then
script=`perl -e 'use Cwd "abs_path";print abs_path(shift)' $0`
scriptpath=`dirname $script`
else
script=`readlink -f $0`
scriptpath=`dirname $script`
fi
re2_url="https://re2.googlecode.com/files/re2-20121127.tgz"
re2_a... | true |
2e2f818d5190a0c46daa6712eb9bc2eed8e2d57d | Shell | mishin/perl-vim-presentation | /setup.bash | UTF-8 | 904 | 3.59375 | 4 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash
root=$(dirname "$BASH_SOURCE")
cwd=`pwd`
cd $root
which git 2>&1 1>/dev/null
if [[ $? -ne 0 ]]; then
echo "You don't have git installed, and I need that!"
echo "You can't clone any dependencies for this project without git."
if [[ "$0" == "$BASH_SOURCE" ]]; then
exit 1
fi
else
... | true |
87ba26e21b9a6cbfcfab02d7dd504b62edca2915 | Shell | statesman/tx-school-data | /tasks/push_data.sh | UTF-8 | 568 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Move to the data directory
cd public/assets/data/
# Determine where to push
if [ "$1" == 'stage' ]; then
bucket='dev.apps.statesman.com'
elif [ "$1" == 'prod' ]; then
bucket='apps.statesman.com'
else
echo 'Specify stage or prod';
cd ../../../
exit 1
fi
# Run the push s3-parallel-put... | true |
f1e27846cfd76950cbc9abd328e80076c5408e83 | Shell | jedbrown/ROC-smi | /tests/test-overdrive.sh | UTF-8 | 2,146 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Test that the current OverDrive Level reported by the SMI matches the current
# OverDrive Level of the corresponding device(s)
# param smiPath Path to the SMI
testGetGpuOverDrive() {
local smiPath="$1"; shift;
local smiDev="$1"; shift;
local smiCmd="-o"
echo -e "\nTesting $smiPath... | true |
b0bf0d5f77734843e572d7c1ac1abd8ddbe41e63 | Shell | Zoreno/jstack | /setup_tap_device.sh | UTF-8 | 821 | 3.515625 | 4 | [] | no_license | #!/bin/bash -e
if [[ $UID != 0 ]]; then
echo "Please run this script with root permissions:"
echo "sudo $0 $*"
exit 1
fi
TAP_NODE=/dev/net/tap
# Create the TAP node.
mknod $TAP_NODE c 10 200
chmod 0666 $TAP_NODE
REAL_INTERFACE_NAME=ens33
TAP_INTERFACE_NAME=tap0
# Setup firewall to NAT the traffic on t... | true |
6be778586502659ee8af080c5a9060724b1367bb | Shell | gefeng24/Openstack-Operation-Maintenance-Shells | /ip_change/update-galera.sh | UTF-8 | 1,166 | 2.515625 | 3 | [] | no_license | #!/bin/sh
vip='192.168.2.201'
vip=$virtual_ip
echo $vip
for i in 01 02 03 ;
do
ssh controller$i /bin/bash << EOF
openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_uri http://$vip:5000
openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_url http://$vip:35357
opensta... | true |
ec12e6395ed79f637f1d31c20f946c85a5c477e2 | Shell | alicevision/geogram | /tools/gallery.sh | UTF-8 | 1,865 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | #gallery.sh: generates webpages to visualize a collection of 3D models
#******************************************************************************
#usage: - create a directory with all the models in the "models" subdirectory
# - launch "gallery.sh" in that directory
#
# this will generate thumbnail images (i... | true |
e7a060f113d298ef45f455e4929b88fa121f2979 | Shell | geoffjay/dotfiles | /roles/dotfiles/files/.bash.d/44-gh | UTF-8 | 759 | 2.703125 | 3 | [] | no_license | # vim:filetype=sh
_cs_new() {
repo=$(git x-repo)
branch=$(git x-branch-current)
gh codespace create -r "$repo" -b "$current" -m "premiumLinux"
}
alias cs-new=_cs_new
_cs_fwd() {
repo=$(git x-repo)
branch=$(git x-branch-current)
codespace=$(gh codespace list --json name,repository,gitStatus --jq "$filter" ... | true |
523aaedc29a0af42cb348ad0d73cb4cffb71aaf6 | Shell | Surferlul/quest-mod-template | /template/build.sh | UTF-8 | 304 | 2.859375 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
NDKPath=$(cat $SCRIPT_DIR/ndkpath.txt)
buildScript="$NDKPath/build/ndk-build"
$buildScript NDK_PROJECT_PATH=$SCRIPT_DIR APP_BUILD_SCRIPT=$SCRIPT_DIR/Android.mk NDK_APPLICATION_MK=$SCRIPT_DIR/Application.mk
exit $?
| true |
63024b5b4e71c7cdbc703e4116a7a4ef012d3543 | Shell | xiaoqiangcreate/inotifywait | /sh/Total_8_9_bak.sh | UTF-8 | 366 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#dat=`date -d "1 day ago" +"%Y-%m"`
#tim=`date -d "1 day ago" +"%d"`
#dir=/var/spool/asterisk/monitor/mszx/$dat/
dir=/var/spool/asterisk/monitor/mszx/2020-08/
#ossdir=/opt/ossbak/hujiao/$dat
ossdir=/opt/ossbak/hujiao/2020-08/
cd $dir
if [ ! -d $ossdir ]
then
mkdir -p $ossdir
fi
/usr/bin/rsync -... | true |
26280768b64cbcc92ff3525772b8a33723cc7aa5 | Shell | cburmeister/dotfiles | /bin/bin/todo | UTF-8 | 305 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Find and open the nearest TODO file (or -g for the one in my homedir)
#
if [ "$1" = "-g" ]; then
tpath=$HOME
else
tpath=$(pwd)
while [[ "$tpath" != "" && ! -e "$tpath/TODO" ]]; do
tpath=${tpath%/*}
done
[ -z "$tpath" ] && tpath=$HOME
fi
$EDITOR "$tpath/TODO"
| true |
ca0d3d9ad98e51109f30aa7d1688959e3c8f5e20 | Shell | korseby/container-mtbls520 | /scripts/mtbls520_03_qc_preparations.sh | UTF-8 | 2,676 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Check parameters
if [[ $# -lt 3 ]]; then
echo "Error! Not enough arguments given."
echo "Usage: \$0 polarity a.txt s.txt"
exit 1
fi
# Input parameters
POLARITY="${1}"
POL="$(echo ${1} | cut -c 1-3)"
ISA_A="${2}"
ISA_S="${3}"
# Grab factors out of ISA-Tab
MZML_COLUMN=0; for ((i=1;i<=50;i++)); do MZML... | true |
2194513c278117c9e829b67407b7184d8e7d4860 | Shell | incredimike/various-helpful-scripts | /backup/mysql2cloudfiles.sh | UTF-8 | 590 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# name of database to dump and username and password with access to that database
MYSQL_DB="--all-databases"
MYSQL_USER=""
MYSQL_PASS=""
#create output file name with database name, date and time
OUTPUT_PATH="/backup/mysql"
NOW=$(date +"%Y-%m-%d")
FILE=${MYSQL_DB}.$NOW-$(date +"%H-%M-%S").sql.gz
CLOUDFILE... | true |
d4d15c7017040930fb05ff4412de32251ebae4d3 | Shell | jueliansiow/heteroplasmy | /velvetscript.sh | UTF-8 | 8,119 | 3.765625 | 4 | [] | no_license | #!/bin/sh
##### Parsing arguments to the rest of the file.
function show_help()
{
echo "This is a pipeline to trim and subsample NGS raw data from a fastq.gz file using seqtk and fastquils. Seqtk and fastquils have to be installed and accessible from any directory prior to running this script."
echo ""
e... | true |
9a2e5fb1483786d315134a9d0f0d92c0b1fb3ac8 | Shell | hornc/nanogenmo2019-cassandra | /nano-cassandra.sh | UTF-8 | 960 | 3.359375 | 3 | [] | no_license | #!/bin/bash
e(){
egrep $@
}
h(){
shuf -n1
}
f(){
e -B5 -A5 "$1" $2|tr -d '\n'|sed 's/ --/\n/g;s/^[^\.]*\([A-Z\.].\{18,\}\.\).*$/\1/'|h
}
x(){
sed "$1"<<<$2
}
se(){
S=''
K=$(x 's/ /\n/g;s/-//g' "$1"|sort -n|uniq)
for k in $K; do
s=$(f $k $2)
until [ -z $k ] || [ ! -z "$s" ];do
k=$(x 's/^.//' $k)
s=$(f $k $2)
done
S+=$s... | true |
83d05d0e237cb5551ed9bdc3ad45eb11705bb9fb | Shell | slavistan/cpu-performance-study | /benchmarks/false-sharing/benchmark.sh | UTF-8 | 942 | 3.46875 | 3 | [] | no_license | #!/usr/bin/sh
if [ "$1" = "run" ]; then
# run benchmark and store unformatted output
bin_path="$2"
rawcsv_path="$3"
$bin_path \
--benchmark_repetitions=5 \
--benchmark_report_aggregates_only=true \
--benchmark_out_format=csv \
--benchmark_format=csv \
--benchmark_out="$rawcsv_path"
exit ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.