Skip to content

Instantly share code, notes, and snippets.

View jhbabon's full-sized avatar
🦊

Juan Hernández jhbabon

🦊
View GitHub Profile
@jhbabon
jhbabon / Gemfile
Last active December 19, 2015 04:08 — forked from rhoml/clear_hipchat.rb
# A sample Gemfile
source "https://rubygems.org"
gem 'mechanize'
gem 'chronic'
#! /usr/bin/perl
# @link: http://unix.stackexchange.com/questions/4527/program-that-passes-stdin-to-stdout-with-color-codes-stripped
use strict;
use warnings;
while (<>) {
s/\e\[?.*?[\@-~]//g; # Strip ANSI escape codes
print;