Skip to content

Instantly share code, notes, and snippets.

View rupakg's full-sized avatar
😎
drinking from the firehose...

Rupak Ganguly rupakg

😎
drinking from the firehose...
View GitHub Profile
@rupakg
rupakg / sanitize.rb
Last active August 29, 2015 14:00
regex for name sanitization
def sanitize_name(bad_name)
# Allow only chars - A-z, 0-9, ., -, _ in names
bad_name.gsub(/[^0-9A-z.-]|[\^]|[\`]|[\[]|[\]]/, '_')
end
@rupakg
rupakg / atlanta-docker-meetup.md
Created August 27, 2014 16:09
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 http://panamax.io and view this nice video: http://ow.ly/AJVxd

@rupakg
rupakg / typography.md
Last active August 29, 2015 14:21
Typography
@rupakg
rupakg / text2img.rb
Created March 11, 2009 01:12
convert text to image
require "mini_magick"
image = MiniMagick::Image.from_file("c:\\test.jpg")
image.resize "100x100"
image.write("c:\\output.jpg")
@rupakg
rupakg / gradiantfill.rb
Created March 11, 2009 03:33
Create images using Magick
require 'RMagick'
include magick
# Demonstrate the GradientFill class
Rows = 100
Cols = 300
Start = "#900"
End = "#000"
@rupakg
rupakg / irbrc.txt
Last active August 30, 2015 02:54
IRBRC settings
.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
rupakg / BluetoothRestart
Last active September 16, 2015 19:27 — forked from ajmaradiaga/BluetoothRestart
Force Bluetooth Restart on Mac
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
@rupakg
rupakg / Technology Stack for Rails.textile
Created October 19, 2010 06:38
Various technologies that I have narrowed down for use in my Rails apps.

Technology Stack for Rails

Core

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

Development

  • Bundler – manage gem dependencies
@rupakg
rupakg / Dev Gems
Created October 30, 2010 03:02
gemfile with dev stack
source 'http://rubygems.org'
gem 'rails', '3.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
#gem 'mysql2'
gem "sqlite3-ruby"