Skip to content

Instantly share code, notes, and snippets.

# Set the basic credencials
#
set imap_user= '[email protected]'
set imap_pass= 'password'
set hostname = "gmail.com"
set realname = "gmailUser"
# Set GMAIL specific folders likem sent mail, drafts, All mail
set spoolfile = "imaps://imap.gmail.com/INBOX"
set folder = "imaps://imap.gmail.com/"
@jumanjiman
jumanjiman / posterous-octopress.rb
Created March 4, 2012 02:36 — forked from rmurphey/posterous-octopress.rb
Generate Octopress posts from Posterous XML
#!/usr/bin/env ruby
require 'xmlsimple'
require 'active_support/inflector'
require 'yaml'
require 'json'
require 'fileutils'
require 'date'
class Post
<!DOCTYPE html>
<html lang="en">
<head>
<title>eHarbor</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<%= csrf_meta_tag %>
<%= stylesheet_link_tag 'application' %>
<%= javascript_include_tag 'application' %>
@jumanjiman
jumanjiman / user_steps.rb
Created June 28, 2012 20:09 — forked from danielmorrison/user_steps.rb
put in features/step_definitions/user_steps.rb
Given "I am signed in" do
user = User.create!(:email => '[email protected]' :password => 'password', :password_confirmation => 'password'
step 'I go to the homepage'
step 'I follow "Sign In"'
step %Q|I fill in "user_email" with "#{user.email}"|
step 'I fill in "user_password" with "password"'
step 'I press "Sign in"'
end

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

@jumanjiman
jumanjiman / dumpsqlite3tocsv.py
Created October 8, 2019 16:54 — forked from garthk/dumpsqlite3tocsv.py
Unicode-safe Python script to dump sqlite3 tables to CSV for Trac data extraction
#!/usr/bin/env python
"""
Script to open a sqlite3 database and dump all user tables to CSV files.
Tested in Unicode-rich environment.
Usage:
dumpsqlite3tocsv foo.db
"""
import sqlite3, csv, codecs, cStringIO, os, os.path