Skip to content

Instantly share code, notes, and snippets.

View skalnik's full-sized avatar
🐈

Mike Skalnik skalnik

🐈
View GitHub Profile
if has("gui_macvim")
set fuoptions=maxvert,maxhorz
set guifont=Monaco:h10
set guioptions-=T " remove toolbar
set guioptions-=r " remove scrollbars
set guioptions-=L
set stal=0 " turn on tabs off by default
end
set anti
@skalnik
skalnik / gist:1202228
Created September 8, 2011 00:07
Story IDs for today
git log --author=skalnik --format="%s" --no-merges --since="yesterday" | grep -o '\[#[0-9]*\]'

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAueR3cQoIXpD+J5wlzVeNP3duuLPaz2d3xXD71Q37SGISmfkDG8dmjU+ZZk0ZZZFo7khNabwFUfZKu1FJ7al0gPYmois/DJnezDjs66+7EP/fKw6zk3uUUUMc9FGQvDp5kmR6MZGHn4Mh6pYbZmVFwSk+jWAQHDJrwwx5qCXsp9cadDDaYH0Qo995wJH2/+T9YLzqicvoGYoBuYWHm2A8XHmD4XQ60BTy3hnYo/0vw3iIxXgFSGRwCHZBG2G6Ihi1+qTSay4AvVfbLfZxGSX0SBb8CqTHS0VRqBeJ7/DVgfaiLTvbb1jwmQmgtD6aw39mKambXp1apZRRq50iJ7C4P5rBZtTCBdYr5wOxm1exk0BiJeGfLTXzxTP+JezPNqdAjjM902Bd79c0JAYqXizBXIhWQkDxLjTiC4BU0ZrgwLTMAabo0CSyVgzVUKjxS07CmKvapuuXanBgcccjM6qj2olMkHB2L4aE5zJB6mg4GnDHrZWzf80Qbpduiwzs2BO0VfOerSWv8b33rgb+3DYZESmMNOezllrySR0fpCwi5iHfxX+FqSzctxwe26tvjIvIAIBZBkaLAZwXbnBo9v1di1yiPM7g5jEyDm7fEIhAUPrhwQr0gEmFd1nZd9Y6/+4nDn/hrCNTbke6f9aA25u0lrULH/jqx8ZFkOLSnpI2PrE= skalnik@Fourier

Poops!

DONGS!

What about now?

I dunno, later, maybe? DONGS!?

# Just a simple script that makes Hubot respond like the famous XKCD comic
#
# make me <something> - "What? Make it yourself."
# sudo make me <something> - "Okay."
module.exports = (robot) ->
robot.respond /make( me)? (.+)/i, (msg) ->
msg.send "What? Make it yourself."
robot.respond /sudo make( me)? (.+)/i, (msg) ->
msg.send "Okay."
@skalnik
skalnik / gist:1326204
Created October 30, 2011 18:09
Rails Workshop Developer Setup
Development Setup
=================
So you want to be a Rails developer? Or at least mess around with it? Here's how I'd setup a new machine.
I use OS X, and as such can offer the best support for that environment. I have some limited experience developing on Linux, but since it's a similar to OS X I can offer some good help there.
I have no development experience in Windows, but I do know that it's not as well supported as Unix environments are. I may be able to offer some help here and there, but you're going to mainly be on your own if many issues arise.
OS X
@skalnik
skalnik / gist:1326207
Created October 30, 2011 18:10
Rails Workshop Developer Setup

Development Setup

So you want to be a Rails developer? Or at least mess around with it? Here's how I'd setup a new machine.

I use OS X, and as such can offer the best support for that environment. I have some limited experience developing on Linux, but since it's a similar to OS X I can offer some good help there.

I have no development experience in Windows, but I do know that it's not as well supported as Unix environments are. I may be able to offer some help here and there, but you're going to mainly be on your own if many issues arise.

OS X

~ » ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
~ » gem install pry
Successfully installed pry-0.9.7.4
1 gem installed
Installing ri documentation for pry-0.9.7.4...
RDoc::Parser::Ruby failure around line 23 of
lib/pry/default_commands/input.rb
heroku config | sed 's/\([^ ]*\) *=> *\(.*\)/\1=\2/' | tr '\n' ' ' | sed 's/\(.*\)/\1 .\/bin\/hubot/' | bash