Skip to content

Instantly share code, notes, and snippets.

View ngpestelos's full-sized avatar

Nestor G Pestelos Jr ngpestelos

View GitHub Profile
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
-module(port_scanner).
-export([scan/3]).
scan(Addr, Start, End) ->
Services = parse_services(),
scan(Addr, Start, End, Services).
%% Internal functions
scan(Host, Start, End, Services) ->
[Data || Data <-
var sys = require("sys"), http = require('http'), encode = require('./encoding');
function createAuthorization(username, password) {
return "Basic " + encode.base64(username + ":" + password);
}
Object.prototype.filter = function(fn) {
var result = {};
for (var name in this) {
if (this.hasOwnProperty(name)) {
var sys = require('sys'), http = require('http'), twitter = require('./twitter'), couch = require("./node-couch");
Array.prototype.each = function(fn) {
for (var i = 0; i < this.length; i++) {
var item = this[i];
fn.call(null, item);
}
return this;
};
@ngpestelos
ngpestelos / about.md
Created August 16, 2011 01:03 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@ngpestelos
ngpestelos / about.md
Created January 1, 2012 06:12 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@ngpestelos
ngpestelos / gist:3102841
Created July 13, 2012 05:07 — forked from paulirish/gist:3098860
Open Conference Expectations

Open Conference Expectations

For conferences, it's extremely important that attendees get top-quality content from industry experts. As a highly compelling format of educating others based on experience and research, conferences stand to be one the best sources of refined knowledge available. Still, it's important for a successful event to have a few guidelines to ensure quality content from the best and most appropriate speakers. Below is a set of guidelines for conference organizers that ensure quality content for attendees and the community.

What We, As Speakers, Expect from Conferences

  1. Video recordings: Organizers should prioritize recording all talks and sessions. A conference that only teaches the ~300 people in the room has constrained value and is not worthwhile to a speaker who wants to benefit the community. When recorded, video will be available online under a permissive license (CC-BY-*) within six months of the event.

  2. Travel reimbursement: Conferences will reimburse travel

# for more info: https://gist.github.com/1120938
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"<CHANGE-ME>.github.com"} # the GitHub hostname (see notes)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
GHBU_PRUNE_AFTER_N_DAYS=${GHBU_PRUNE_AFTER_N_DAYS-3} # the min age (in days) of backup files to delete