Skip to content

Instantly share code, notes, and snippets.

View sarahhodne's full-sized avatar
🏳️‍⚧️

Sarah Hodne sarahhodne

🏳️‍⚧️
View GitHub Profile
payload={
"id": 1,
"number": 1,
"status": null,
"started_at": null,
"finished_at": null,
"status_message": "Passed",
"commit": "62aae5f70ceee39123ef",
"branch": "master",
"message": "the commit message",
@sarahhodne
sarahhodne / mysql.rb
Created July 26, 2012 13:08 — forked from DamianZaremba/mysql.rb
Facter MySQL version module
Facter.add(:mysql_version) do
setcode do
mysql_version = Facter::Util::Resolution.exec('mysql --version')
mysql_version.chomp.split(' ')[4].gsub(',', '') if mysql_version
end
end
@sarahhodne
sarahhodne / Questions.md
Created September 7, 2011 06:54
GOTO Amsterdam

Day job: None really, I'm a "high school student" (I'm in 13th grade, which would be Freshman year in college in the US).

What is your language of choice: Ruby. I'm looking at other "secondary" languages, such as

Open Source contributions: Mostly a bug report, maybe a fix here and there. There's also my own project, Defender.

How do you use GitHub: I use it to discover new libraries and programming goodies. When I needed an IMAP library for Objective-C, GitHub was the first place I looked. I also host everything I make of programming things (and a bit more, like dotfiles), as soon as it reaches a stage where there's some "runnable" code (even if it just throws an exception), I push it to GitHub.

@sarahhodne
sarahhodne / Questions.md
Created August 10, 2011 14:29
Frozen Rails Give-away

Day job: Student about to start last year of High School (13th grade)

Your Rails contributions (if any): No committed code, but I've helped out on a few bug reports, and I made a plugin.

What's your Ruby/Rail experience?: I've been programming in Ruby/Rails since 2008 (I remember Rails 1), and I've worked on a few (mostly personal) projects. I have two static sites up that are generated with Jekyll + some extra magic with a build script I wrote that eventually uploads to FTP, and I made an ActiveModel plugin for the Defensio spam filtering service, called Defender.

How do you use GitHub?: I use GitHub to host my code project, and it's the first place I search for the source code for projects. If I want, say, a Ruby LDAP library, the first place I search is GitHub. I haven't been able to get too involved in other open source projects, so I don't use the "social" features too much.

#!/bin/sh
HOSTNAME=$(hostname -f)
USER=$1
/usr/bin/ldapmodify <<LDIF
dn: cn=atd,cn=svcAccess,cn=${HOSTNAME},ou=servers,dc=cluenet,dc=org
changeType: modify
add: member
member: uid=${1},ou=people,dc=cluenet,dc=org