Skip to content

Instantly share code, notes, and snippets.

View ssorallen's full-sized avatar

Ross Allen ssorallen

  • USA
View GitHub Profile
class Ability
include CanCan::Ability
def initialize user, options = {}
can :read, :all if !user
can :manage, :all if user.has_role?(:admin)
can :manage, Measurement do |m|
m.user == user
end
can :create, Measurement
@ssorallen
ssorallen / chrome-privacy-extensions.md
Last active December 28, 2015 15:19
A list of Google Chrome extensions to protect your privacy.
  • Ghostery - Block 3rd-party scripts that track your activity.
  • Flash Control - Block all Flash objects by default and selectively load them when needed (like viewing videos).
  • AdBlock - Blocks ads, plain and simple.
  • HTTPS Everywhere - Redirect to HTTPS versions of sites and scripts known to support encryption.
@ssorallen
ssorallen / chronos-blast.py
Last active December 28, 2015 17:39
Create dummy Airbnb Chronos jobs from the command line for testing.
#! /usr/bin/env python
import argparse
import datetime
import httplib
import json
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-n", default=1, type=int,
var fs = require('fs');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
env: {
build: {
NODE_ENV: 'production'
}
@ssorallen
ssorallen / uninstall-nuclide-v0.0.35.bash
Last active December 18, 2015 00:24
Uninstall Nuclide <=v0.0.35
#!/bin/bash
# Uninstalls all Nuclide Atom packages that were last published as [version 0.0.35][1]. They have
# been replaced by the single ['nuclide' Atom package][2]. After uninstalling previous versions,
# follow the standard [Nuclide setup][3] to get going.
#
# [1] https://github.com/facebook/nuclide/tree/v0.0.35
# [2] https://atom.io/packages/nuclide
# [3] http://nuclide.io/docs/setup/
apm uninstall \
@ssorallen
ssorallen / gist:2aade417433dea5a268764c6d9e44e5c
Created September 3, 2016 18:12
Earl Keith: Cookeville County High School Gay Straight Alliance
This was posted in the main entrance to Cookeville high school.
1. I am appalled that my daughter is forced to see this.
2. This is NOT an appropriate topic for formation of group of minors. This is the same county that requires kids to get a parental permission form for health classes to teach sex Ed . (see TCA references below). To join a club celebrating this kind of perversion, anti-God , self abusive, non moral substance, all they need do is show up!
Since being offended now makes you worthy of being listened to... To take the tactic of so many minority groups....
I am offended!!!
As an offended parent of one girl still in the system, I am asking that you post, share, and tweet this on your Facebook or Instagram or Twitter accounts.
Please let your school board members know, email your disdain for this godless and destructive stance and attitude.
http://www.pcsstn.com/…/70025412424451…/School_Board_Members
What's next! Porn Club!!! Sex with my dog club! Why can't we have a gun club!!! The excuse for thi