View customizer-core.php
<?php
/**
* Core functions.
*
* @package corporatesource
*/
if ( ! function_exists( 'corporatesource_get_option' ) ) :
/**
View portainerStart.sh
#!/bin/bash
sudo docker stop "portainer";
sudo docker rm "portainer";
sudo docker run -d \
--publish 9000:9000 \
--label "hiddden" \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /opt/portainer/data:/data \
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
View KeepServicesRunning.sh
#!/bin/bash
# Run this in cron to keep services running if they crash or are killed
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
View SSH Config Example
# Example SSH configuration file for bastion host SSH passthrough
# These lines would go in a file such as ~/.ssh/config
# No keys are exposed to `middleman` or `home`, they only proxy the encrypted traffic.
#########################
# Basic example
#########################
Host middleman
View keybase.md

Keybase proof

I hereby claim:

  • I am benyanke on github.
  • I am benyanke (https://keybase.io/benyanke) on keybase.
  • I have a public key whose fingerprint is 06C3 3BF6 68D5 9EBF 9EFA 2C2F 176F 0E16 49A4 6955

To claim this, I am signing this object:

View cloud-init-nginx-appserver
#cloud-config
#####################################
# Nginx App Server Bootstrap script
#
# Includes network mount storage config
# Designed to be used in a cluster
#
# Created by Ben Yanke
#
View ScrollTrack.js
<script>
// ScrollTrack.js allows a function to be run once and only once if it's seen.
// Ben Yanke <ben@benyanke.com>
// SelectorToWatch - a standard jquery element selector
// functionToRun - a function to be run when the selector is on screen
function scrollWatch(selectorToWatch, functionToRun) {
View spiceworksTicketAutofill.js
// SpiceWorks ticket autofill
// Autofills the ticket based on get variables in the URL of the ticket.
// This file is at: https://gist.github.com/benyanke/994ce01b938fd2d1eb9ec1a0ecb79b35
//
// Also usable on sites at either of the following URLs.
// Original gist:
// https://gist.githubusercontent.com/benyanke/994ce01b938fd2d1eb9ec1a0ecb79b35/
//
// Raw gist content:
// https://gist.githubusercontent.com/benyanke/994ce01b938fd2d1eb9ec1a0ecb79b35/raw/spiceworksTicketAutofill.js
View sns-to-slack.js
// Added by Ben Yanke
// from https://gist.github.com/benyanke/862e446e5a816551928d8acc2d98b752
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = "https://hooks.slack.com/services/" + process.env[process.env.urlToUse]