Skip to content

Instantly share code, notes, and snippets.

View secobarbital's full-sized avatar

Seggy Umboh secobarbital

View GitHub Profile
@prasmussen
prasmussen / makepasswd.sh
Created June 15, 2012 10:15
Smartos shadow hash generator
#!/bin/bash
read -s -p "New Password: " password
echo
read -s -p "Re-enter new Password: " confirm
echo
if [ "$password" != "$confirm" ]; then
echo "Password don't match!"
exit 1
fi
@ryanmcgrath
ryanmcgrath / twitter_streaming.js
Created February 18, 2011 08:02
Access the Twitter Streaming API with ease (Node.js).
var util = require('util'),
http = require('http'),
events = require('events');
var Twitter = function(opts) {
this.username = opts.username;
this.password = opts.password;
this.track = opts.track;
this.data = '';
};
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')