Skip to content

Instantly share code, notes, and snippets.

drinking from the firehose...

Rupak Ganguly rupakg

drinking from the firehose...
View GitHub Profile
rupakg / sanitize.rb
Last active Aug 29, 2015
regex for name sanitization
View sanitize.rb
def sanitize_name(bad_name)
# Allow only chars - A-z, 0-9, ., -, _ in names
bad_name.gsub(/[^0-9A-z.-]|[\^]|[\`]|[\[]|[\]]/, '_')
rupakg /
Created Aug 27, 2014
Abstract for Atlanta Docker Meetup

Abstract for Atlanta Docker Meetup

Panamax - Docker Management for Humans

An open-source project that makes deploying complex containerized apps as easy as drag-and-drop.

Join me in discovering Panamax, and find out how its functionality will enhance your use of Docker and simplify common pain points. Docker is good, but Panamax makes it awesome. I will introduce Panamax, and take you on a journey where we will create containerized applications, and then share the applications with our friends. I will also touch upon the basic architecture and underpinnings of Panamax. Panamax is open-source, so you can also learn how to contribute and stay involved as new features are added.

Learn more at and view this nice video:

rupakg / text2img.rb
Created Mar 11, 2009
convert text to image
View text2img.rb
require "mini_magick"
image = MiniMagick::Image.from_file("c:\\test.jpg")
image.resize "100x100"
rupakg / gradiantfill.rb
Created Mar 11, 2009
Create images using Magick
View gradiantfill.rb
require 'RMagick'
include magick
# Demonstrate the GradientFill class
Rows = 100
Cols = 300
Start = "#900"
End = "#000"
rupakg / irbrc.txt
Last active Aug 30, 2015
IRBRC settings
View irbrc.txt
.irbrc for Win32
Create a file called anything you like (e.g. “_irbrc” or “irb.rc”) and place it anywhere you like (say C:\Documents and Settings\), and set that full path to the ENV variable IRBRC, e.g. C:\Documents and Settings\\_irbrc
## Libraries
require 'rubygems'
require 'irb/completion'
require 'map_by_method'
require 'what_methods'
require 'pp'
rupakg / BluetoothRestart
Last active Sep 16, 2015 — forked from ajmaradiaga/BluetoothRestart
Force Bluetooth Restart on Mac
View BluetoothRestart
sudo launchctl unload /System/Library/LaunchDaemons/
sudo launchctl load /System/Library/LaunchDaemons/
rupakg / Technology Stack for Rails.textile
Created Oct 19, 2010
Various technologies that I have narrowed down for use in my Rails apps.
View Technology Stack for Rails.textile

Technology Stack for Rails


  • Rails 3.0.1
  • Ruby 1.9.2 (use RVM for mgmt.)


  • Bundler – manage gem dependencies
rupakg / Dev Gems
Created Oct 30, 2010
gemfile with dev stack
View Dev Gems
source ''
gem 'rails', '3.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://'
#gem 'mysql2'
gem "sqlite3-ruby"