Skip to content

Instantly share code, notes, and snippets.

@luke0x
luke0x / versioning-process.md
Last active April 18, 2017 18:51
Versioning Process (Ruby + Bundler example)

Versioning Process

This will use a Gemfile as an example but could be done with different versioning systems.

Say your project uses the following:

source 'https://rubygems.org' do
  gem 'nokogiri'
 gem 'rails', '5.0.0'

Git Process

Overview

  • Reserve the master branch for production, staging, and hotfixes
  • Write new code on a feature branch
  • Rebase feature branches onto master as often as reasonable
  • Merge feature branches into master with a no-ff, no-squash merge commit
  • Preserve branch names for reference
@luke0x
luke0x / OO.md
Last active December 21, 2015 17:19 — forked from jackrusher/OO.md

Object-orientation

There are many articles and discussion threads on the web regarding the nature of Object-oriented (OO) programming. Most of them come at the question from a Programming Language Theory (PLT) perspective, attempting to assert a formal definition of OO programming and objects. I'm not going to do that here. Instead, I'm going to write about objects from an implementation perspective, approaching the subject first from below and then from above.

drefile: an automatic, chronological file organizer
---------------------------------------------------
Every few minutes drefile copies all files on your Desktop to a folder
such as ~/Documents/2009-06-June/26-Friday, prepending a timestamp
(like 20090626.1310) to the filename.
Use
---
1. Put files on your Desktop, and in a few minutes they will be 'drefiled'
2. Use the 'Today' alias on your Desktop to go to today's folder
Deploying a Rails App with EC2 + S3 + Ubuntu
============================================
Create EC2 Instance
-------------------
create new instance ami-bf5eb9d6 [http://alestic.com/](http://alestic.com/)
create new elastic ip
attach elastic ip to instance
point dns to elastic ip
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Sliding Frames</title>
<meta name="warning" content="HC SVNT DRACONES" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/reset/reset-min.css" />
<style type="text/css">
div#container { overflow: hidden; visibility: hidden; }
div#navigation { position: absolute; top: 10px; left: 10px; }
def conditional_block(do_block, method, *args, &block)
do_block ? send(method, args, &block) : block.call
end