This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'date'; | |
people = {}; | |
ARGF.each_line { | |
|l| time, author = l.split(','); | |
people[author] ||= Array.new(24, 0); | |
hour = DateTime.parse(time).hour; | |
people[author][hour] += 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
DARWINOS_MAJOR=`sysctl -n kern.osrelease | cut -d . -f 1` | |
DARWINOS_MINOR=`sysctl -n kern.osrelease | cut -d . -f 2` | |
OS_X_MAJOR="10" # For context | |
OS_X_MINOR=`echo ${DARWINOS_MAJOR}-4 | bc` # Magic apple convention | |
OS_X_REVISION="${DARWINOS_MINOR}" # For completeness | |
OS_X_VERSION="${OS_X_MAJOR}.${OS_X_MINOR}.${OS_X_REVISION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DearDiary-Bridging-Header.h | |
// DearDiary | |
// | |
// Created by Matthew Finlayson on 5/7/15. | |
// Copyright (c) 2015 Cesare Rocchi. All rights reserved. | |
// | |
#ifndef DearDiary_DearDiary_Bridging_Header_h | |
#define DearDiary_DearDiary_Bridging_Header_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class SMLoginViewController : UIViewController { | |
@IBOutlet weak var loginView: UIView! | |
@IBOutlet weak var signupView: UIView! | |
@IBOutlet weak var segmentedControl: UISegmentedControl! | |
@IBOutlet weak var loginUsernameField: UITextField! | |
@IBOutlet weak var loginPasswordField: UITextField! | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include classpath("application.conf") | |
application.code="1234567890" | |
orient.baasbox.path="/opt/baasbox/db/baasbox" | |
orient.baasbox.backup.path="/opt/baasbox/db/backup" | |
push.baasbox.certificates.folder="/opt/baasbox/certificates" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup your puppet.confMake sure you have the following set in your puppetmaster’s puppet.conf: | |
[puppetmasterd] | |
ssl_client_header = SSL_CLIENT_S_DN | |
ssl_client_verify_header = SSL_CLIENT_VERIFY | |
Install apache2, passenger, and rack | |
yum install httpd httpd-devel ruby-devel rubygems | |
yum install gcc-c++ | |
gem install -v 1.1.0 rack | |
gem install -v 2.2.15 passenger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake generate | |
## Generating Site with Jekyll | |
directory source/stylesheets/ | |
create source/stylesheets/screen.css | |
/Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `require': no such file to load -- iconv (LoadError) | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `<top (required)>' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku.rb:85:in `require' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku.rb:85:in `<top (required)>' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:26:in `require' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:26:in `<top (required)>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fgrep -R title: * | awk '{$1 =""; print }' |grep : | |
Awesome Blog: I keep a diary | |
Tutorial: Use Coda with locally stored Django documentation - Small Victory | |
Liquidware Antipasto: The First 10 Things Everyone Does with their New Arduino | |
How to: Delete all photos off an iPhone by Colin Devroe | |
visualvm: Home | |
The Nation: The Migration Back To Local Banks : NPR | |
30 Hour Drunk: Do You Have What it Takes? | |
rentzsch.tumblr.com: Pages-Only GitHub Projects | |
rentzsch.tumblr.com: Pages-Only GitHub Projects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rq dir1 dir2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I noticed that some of my Git repos give me nice status messages like "Your branch is ahead of 'origin/master' by 1 commit" whenever I do a git status while others do not. | |
I think it's because some of them weren't originally clones and had their "remote" configuration set up manually, but not completely in the way that you get when you run git clone with a recent version of Git. Whatever the cause was, here's the fix. | |
Here's a section of the .git/config file for a clone which does display the additional status information: | |
[remote "origin"] | |
url = git://github.com/rentzsch/mogenerator.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
[branch "master"] |
OlderNewer