Skip to content

Instantly share code, notes, and snippets.

View tcopple's full-sized avatar

tyler copple tcopple

View GitHub Profile
@ccarrasc
ccarrasc / install_graphite.sh
Last active December 18, 2015 16:49
Install Graphite on CentOS 6
#!/bin/bash
# The current process has unrestricted/unlimited (root) access when the Effective User ID (EUID) is 0:
if [[ $EUID -ne 0 ]]; then
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2
exit 1
fi
# Make sure we are on CentOS
OS=`cat /etc/redhat-release | awk {'print $1}'`
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Reactive.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@enthal
enthal / people_controller.rb
Created October 24, 2011 21:00
simple rails rspec testing that devise before_filter :authenticate_user! covers controller actions
class PeopleController < ApplicationController
before_filter :authenticate_user!, :except => [:index, :show]
...
end