Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / rails_3_template.rb
Last active December 23, 2015 18:49 — forked from anonymous/Gemfile
Rails Template (target ver.3.2.14) - Slim + Coffee + Sass + Bootstrap + Markdown (views and partials as name.html.md) and TDD/BDD with Guard/Spork and RSpec; FactoryGirl; Capybara; Poltergeist (PhantomJS) and nice HTML5 Test reports via rspec-formatter-webkit. (-o tmp/spec_results.html) + Syntax Highlighting, Rails Entity Diagramming (railsERD) …
# Remove unnecessary files that rails creates for us.
remove_file "public/index.html"
remove_file "public/images/rails.png"
remove_file "public/javascripts"
empty_directory "public/javascripts"
create_file "public/javascripts/application.js"
gem_group :assets do
gem 'twitter-bootstrap-rails'
gem 'less'
@jasonm23
jasonm23 / scopelist.txt
Last active May 16, 2016 22:36 — forked from anonymous/scopelist.txt
A list of Sublime Scopes scraped from all themes listed by Aziz' tmTheme Editor
active_guide
argument-name
block_cursor
brackethighlighter.curly
brackethighlighter.tag
class
class-inheritance
class-name
comment
comment.block
@jasonm23
jasonm23 / .slate
Last active December 20, 2015 23:18 — forked from trishume/.slate
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config keyboardLayout qwerty
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
module MyModule
# Regenerating code
end unless __FILE__ == $0
if __FILE__ == $0
require 'savon'
split_on = "#" + " Regenerating code"
code = File.read(__FILE__).split(split_on).last
wsdl_file_path = File.join(File.dirname(__FILE__), ARGV.first || raise("Gimme file!"))
@jasonm23
jasonm23 / script.md
Created June 6, 2012 14:31 — forked from tomoconnor/script.md
Redis 2.2 Install on Ubuntu 10.04

Installation commands:

wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz
tar xvfz redis-2.2.2.tar.gz 
cd redis-2.2.2/
mkdir -p /opt/redis
make PREFIX=/opt/redis install
cp redis.conf /opt/redis/redis.conf
sudo useradd redis
@jasonm23
jasonm23 / mountain-lion-brew-setup.markdown
Created May 23, 2012 03:22 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

##
# Authentication Plugin via omniauth on Padrino
# prereqs:
# http://github.com/intridea/omniauth/
# http://github.com/achiu/omniauth/ working fork
#
module OmniAuthInitializer
def self.registered(app)
require 'omniauth'
@jasonm23
jasonm23 / gist:810412
Created February 3, 2011 23:02 — forked from rdp/gist:810398
// enum.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cstdio>
#include <cstring>
#include <windows.h>
#include <comcat.h>
int _tmain(int argc, _TCHAR* argv[])
require 'rubygems'
require 'html2markdown'
first_block = <<END
<div id="wikicontent" style="padding:0 3em 1.2em 0">
<p><img src="http://cjcat2266.googlepages.com/Emitterlogo.png"> </p><h1><a name="Emitter_is_now_version_2.1">Emitter is now version 2.1</a><a href="#Emitter_is_now_version_2.1" class="section_anchor">¶</a></h1><p><a href="http://emitter.googlecode.com/svn/trunk/docs/index.html" rel="nofollow">Documentation</a> </p><p><a href="http://cjcat.blogspot.com/2009/06/using-tortoisesvn-to-check-out-files.html" rel="nofollow">How to check out the latest source files from the SVN repository</a> </p><hr><h2><a name="Emitter_Video_Tutorials_are_now_available_on_!!">Emitter Video Tutorials are now available on YouTube!!</a><a href="#Emitter_Video_Tutorials_are_now_available_on_!!" class="section_anchor">¶</a></h2><p><a href="http://www.youtube.com/view_play_list?p=84AC3DE6772538E4" rel="nofollow"><img src="http://www.sabredefence.com/images/youtube_logo.gif"></a> </p><p>Check out the complete playlist <a hr