Skip to content
View leftpad.js
function leftpad (str, len, ch) {
str = String(str);
var i = -1;
if (!ch && ch !== 0) ch = ' ';
len = len - str.length;
while (++i < len) {
str = ch + str;
return str;
View notify.html
<!-- Learn about this code on MDN: -->
<script src="notify.js"></script>
<button onclick="notifyMe()">Notify me!</button>
View gist:5cf5e85456494f5265ce
git fetch --all
git reset --hard origin/master
git pull origin master
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View install_ruby_1.9.3
Step 1: Upgrade Packages
# yum update
# yum -ygroupinstall "Development Tools"
Step 2: Installing Recommended Packages
# yum -y install gcc-c++ patch readline readline-devel zlib zlib-devel
# yum -y install libyaml-devel libffi-devel openssl-devel make
# yum -y install bzip2 autoconf automake libtool bison iconv-devel
Step 3: Install RVM ( Ruby Version Manager )
View geo.js
function CalculateDistance(lat1, long1, lat2, long2) {
// Translate to a distance
var distance =
Math.sin(lat1 * Math.PI) * Math.sin(lat2 * Math.PI) +
Math.cos(lat1 * Math.PI) * Math.cos(lat2 * Math.PI) * Math.cos(Math.abs(long1 - long2) * Math.PI);
// Return the distance in miles
//return Math.acos(distance) * 3958.754;
// Return the distance in meters
View not-bad-code.js
function getUserDetail(username) {
if (userCache[username]) {
return Promise.resolve(userCache[username]);
// Use the fetch API to get the information
return fetch('users/' + username + '.json')
.then(function(result) {
userCache[username] = result;
return result;

My name is Roger, I've worked remote for the past 3 years and for the past year I've worked remote as a senior DevOps Engineer with a company called Clevertech.

As a DevOps Engineer, it's my job to monitor and manage nearly 200 web servers for various clients, and to work with developers and clients to make sure they all have what they need.

Clevertech is a web and mobile app development company out of New York that has been around for 15 years. But that's not what makes us great.

What makes us great is that we have over 100 employees located all over the world.


DevOps - Business Critical

I've worked in DevOps since before DevOps was a term. Back in 2000, on my first day at a web design company I was handed a sheet of paper and told I was taking over as webmaster as well as web developer.

Since then, just about about job title would contain web developer / webmaster, until DevOps became a term, then my job title usually became DevOps until today, where I do more DevOps than Dev.

And now and then you hear from someone about whether or not DevOps is Business Critical and that takes me back to a company I worked with 8 years or so ago.

View promises.html
<script src="" type="text/javascript"></script>
<script src=""></script>
var FB = function(){
var Ref = new Flybase("API-KEY", "sample", "chat");
Something went wrong with that request. Please try again.