Skip to content

Instantly share code, notes, and snippets.

View freekrai's full-sized avatar

Roger Stringer freekrai

View GitHub Profile
@freekrai
freekrai / readme.md
Created January 18, 2016 20:54
Cleverly Working Remotely

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.

@freekrai
freekrai / readme.md
Created January 15, 2016 20:40
Business Critical Ops

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.

@freekrai
freekrai / promises.html
Created January 13, 2016 21:45
Flybase deffered
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="https://cdn.flybase.io/flybase.js?20151206"></script>
</head>
<body>
<script>
var FB = function(){
var Ref = new Flybase("API-KEY", "sample", "chat");
}
@freekrai
freekrai / gcc.sh
Last active May 28, 2023 21:34
Fedora gcc 4.8.2 Installation instructions
#!/bin/bash
echo "installing gcc"
sudo rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install -y devtoolset-2-gcc-4.8.2 devtoolset-2-gcc-c++-4.8.2 devtoolset-2-binutils devtoolset-2-libstdc++-devel-4.8.2
sleep 2
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
hash -r
gcc --version
@freekrai
freekrai / codefish.md
Created January 7, 2016 20:47
<')))>{

<')))>{

while true; do for i in 02E{{9..5},{6..8}}; do printf "\u${i}O=o>";sleep 0.09;printf "\b\b\b\b\b";done;printf "_";done
@freekrai
freekrai / about.md
Last active March 31, 2016 04:56
social login with angular and hello.js

How to use Hello.js and Angular to enable client-side social login.

  1. bower install to install bower dependencies.
  2. Setup a Facebook app
@freekrai
freekrai / elb-nodejs-ws.md
Created December 29, 2015 00:41 — forked from obolton/elb-nodejs-ws.md
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

@freekrai
freekrai / user.js
Last active December 21, 2015 21:47
// define the schema for our user model
var userSchema = mongoose.Schema({
local : {
email : String,
password : String,
resetPasswordToken: String,
resetPasswordExpires: Date
},
facebook : {
id : String,
@freekrai
freekrai / fluid_inbox_userscript.js
Created December 8, 2015 19:31
Userscript for Fluid App (http://fluidapp.com) to enable dock count and desktop notifications for Google Inbox
window.fluid.dockBadge = '';
// for tracking when to notify
var previousUnreadCount = 0;
// Main polling
var readyStateCheckInterval = setInterval(function() {
if(document.readyState === "complete") {
setInterval(updateDockBadge, 3000);
clearInterval(readyStateCheckInterval);