Skip to content

Instantly share code, notes, and snippets.

View jimnanney's full-sized avatar

Jim Nanney jimnanney

View GitHub Profile
@jimnanney
jimnanney / index.html
Last active August 29, 2015 14:08 — forked from anonymous/index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Ember-Table Starter Kit" />
<meta charset="utf-8">
<title>Ember Table Starter Kit</title>
<!-- Note that you need antiscroll CSS to support ember-table -->
<link rel="stylesheet" href="http://rawgit.com/LearnBoost/antiscroll/master/antiscroll.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
#!/usr/bin/env ruby
def delete_ssh_user(username)
`rm -rf /Users/#{username}`
`dseditgroup -o edit -d #{username} -t user com.apple.access_ssh`
`dscl . -delete /Users/#{username}`
end
username = ARGV.shift
delete_ssh_user username
@jimnanney
jimnanney / add_user.rb
Created November 23, 2012 16:35 — forked from elight/add_user.rb
#!/usr/bin/env ruby
CHARACTERS = (('A'..'Z').to_a + ('a'..'z').to_a + (0..9).to_a)
GROUP = 53
MY_MACHINE_DYNDNS_ADDRESS = "Put your DynDns DNS name here"
MY_SSH_PORT = "Your router's external port that will forward to SSH" # as a Fixnum
def ridiculous_password
(1..20).map do