Skip to content

Instantly share code, notes, and snippets.

Jehiah Czebotar jehiah

Block or report user

Report or block jehiah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:376179
Bitly tech talk 4/22/2010
On 4/22 we held a tech talk on 'Command Line Fu', where we invited talented hackers to come share their best moves. Please correct my notes and add your fu here!
# @jehiah
# in place file regex replacement
perl -pi -e 's/this/that/g' filename_pattern
# print the last column of a file ($NF stands for 'Number of Fields' or more commonly Last Field).
View bitly.rb
# API implementation - thanks to Richard Johansso
require 'httparty'
class Api::Bitly
include HTTParty
base_uri ''
format :json
# Usage: Bitly.shorten("")
def self.shorten(url)
View fetchtest.go
package main
import (
You can’t perform that action at this time.