Skip to content

Instantly share code, notes, and snippets.

View techmaniack's full-sized avatar

Karim Memon techmaniack

View GitHub Profile
@cwjohnston
cwjohnston / Requirements.md
Last active October 17, 2017 17:57
Minimum Viable Sensu with Vagrant

In order to complete the Minimum Viable Sensu workshop on your own computer, please install the following:

With these applications installed, and the Vagrantfile copied an otherwise empty directory, run vagrant up to download the required Vagrant box and start the VM.

Once the box file is downloaded and the VM is running, use vagrant ssh to log in to the VM via ssh.

@rylio
rylio / deploy.sh
Last active May 10, 2017 10:27
Deploy hugo site to flynn
#!/bin/bash
while getopts ":r:b:" opt; do
case $opt in
r) remote=$OPTARG ;;
b) branch=$OPTARG ;;
\?) echo "Invalid option: -$OPTARG" >&2 ;;
esac
done
# set default remote
@shineyear
shineyear / Gemfile
Last active August 3, 2016 03:05
newrelic cloudwatch docker all in one monitor
source 'https://rubygems.org'
gem 'dashing'
## Remove this if you don't need a twitter widget.
gem 'twitter', '>= 5.9.0'
gem 'activeresource'
gem 'newrelic_api'
@arkiver
arkiver / git_filter_branch_change_author_email
Created May 18, 2013 16:22
Snippet to change git author name and email (In case you commit using your work credentials)
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "akshay.khole@work-email-address.com" ]
then
cn="Akshay Khole"
@arvearve
arvearve / gist:4158578
Created November 28, 2012 02:01
Mathematics: What do grad students in math do all day?

Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

@matthutchinson
matthutchinson / launch_instance.rb
Created January 23, 2012 15:10
Launching EC2 instance with aws-sdk gem
#!/usr/bin/ruby
# README
# gem install aws-sdk
# add this to bashrc
# export HT_DEV_AWS_ACCESS_KEY_ID=????
# export HT_DEV_AWS_SECRET_ACCESS_KEY=????
# put your pem file in ~/.ssh and chmod 0400
# for more info see; https://rubygems.org/gems/aws-sdk