Skip to content

Instantly share code, notes, and snippets.

Don Henton donhenton

Block or report user

Report or block donhenton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
donhenton / Jenkinsfile
Created Sep 26, 2019
another jenkins file
View Jenkinsfile
pipeline {
environment {
registry = "my-registry:5000"
dockerImage = ''
agent {
docker {
View Jenkinsfile
/* sample Jenkins file for angular4-snippets project
doesn't work completely as it chokes on webpack
illustrates using docker image for building
problem is most likely the node version
attempting angular 4/6 build environment
pipeline {
environment {
registry = "my-registry:5000"
donhenton / simple_load_balancer.yaml
Created Aug 26, 2019
AWS CloudFormation YAML for Simple LoadBalancer
View simple_load_balancer.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: 'AWS CloudFormation Sample Template ELBStickinessSample: Create a load
balanced sample web site with ELB stickiness enabled. The AI is chosen based on
the region in which the stack is run. This example creates 2 EC2 instances behind
a load balancer with a simple health check. The ec2 instnces are untargeted and
may be deployed in one or more availaiblity zones. The web site is available on
port 80, however, the instances can be configured to listen on any port (8888 by
default). **WARNING** This template creates one or more Amazon EC2 instances and
an Application Load Balancer. You will be billed for the AWS resources used if you
donhenton / aws kms
Last active Jul 29, 2019
Decrypt/Encrypt Using AWS and CLI
View aws kms


aws kms encrypt --key-id <kms-id> \
--profile default \
--plaintext fileb://input_file.txt \
--query CiphertextBlob \
--output text \
	| base64 --decode > output.enc

donhenton / easing.js
Created Mar 28, 2019 — forked from gre/easing.js
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
donhenton / gulpfile.js
Created Jan 17, 2019
Updated Browserify/Babel for Babel7
View gulpfile.js
var gulp = require('gulp');
var targetLocation = './public_html/'
var appDependencies = require('./package.json').dependencies;
var SASS_FILES = ['./src/sass/*.scss', './src/sass/components/*.scss'];
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
var fs = require('fs');
var del = require('del');
donhenton / gulpfile.js
Created Jan 17, 2019 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
View gulpfile.js
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
donhenton / isAtScrollBottom.js
Created Dec 12, 2018
detect if a browser hits bottom
View isAtScrollBottom.js
isAtScrollBottom() {
let body = document.body;
let html = document.documentElement;
var height = Math.max(body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight);
donhenton / docker-compose.yml
Last active Jun 7, 2018
Redis/Redis-commander Docker Compose with Persistence
View docker-compose.yml
version: '3'
container_name: redis
hostname: redis
image: redis
command: ["redis-server", "--appendonly", "yes"]
- ~/redis/data:/data
donhenton /
Last active Mar 1, 2018
Find a duplicate in a list and create unique map keys
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import javafx.util.Pair;
You can’t perform that action at this time.