Skip to content

Instantly share code, notes, and snippets.

@rianrainey
rianrainey / variables.sh
Last active Aug 29, 2015
How To Use S3Auth With Amazon S3
View variables.sh
Goliath National Bank # Client Name
www.example.com # Domain I already own
goliath.example.com # Desired subdomain for client's documentation
goliath.example.com # AWS S3 Bucket Name
0123 # AWS Key
3210 # AWS Secret Key
View command.sh
SUDO defaults write com.apple.Finder AppleShowAllFiles YES; killall Finder
View day3.md

Topics

  • Partials
  • content_for
  • Form/Data submission
  • Content (CSS/Scripts) Bundling
  • Scripts, Content, Data caching
  • Plugging in validation
View git-workflow.md
  1. All new branches are created off of the tip of master.
  2. All commits should be created in a feature, bug, or hotfix branch prefixed by "feature/", "bug/", "hotfix/", respectively.
  3. Commits only find their way into master via the GitHub pull request.
  4. All bug/ branches should start with the Redmine issue number if documented in a Redmine issue.
  5. All branch names should use hyphens, NOT underscores.
  6. The integration branch for a staging site shall be called "staging".
  7. Feature branches should be manually merged into staging, often, and staging should be deployable by any member of the project team to facilitate a rapid client feedback cycle.
  8. Only the project lead should merge pull requests into master and deploy to production, unless that person is unavailable.
  9. There should be an alternate project lead.
  10. Do not generate a pull request until you have client approval for the feature.
@rianrainey
rianrainey / style.css
Created Mar 12, 2014
4/12/14 Dump of CSS
View style.css
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
View cs-pattern-library.md

Centresource Pattern Library Guide

Below are elements that are expected to be in a Photoshop pattern library file.

Typography

  • Headers (h1 - h5)
  • Paragraphs
  • Lead Copy
  • Unordered List
@rianrainey
rianrainey / instructions.md
Last active Dec 30, 2015
Set up SSL from GoDaddy on Heroku
View instructions.md

Heroku Instructions

I was assigned the task to renew the SSL for a client that already was renewed on GoDaddy.

Use openssl to generate a private key

openssl genrsa -des3 -out server.pass.key 2048

Strip of password from previous generated key

openssl rsa -in server.pass.key -out server.key

Create Certificate Signing Request (CSR)

openssl req -nodes -new -key server.key -out server.csr

View Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
@rianrainey
rianrainey / .ackrc
Created Sep 30, 2013
Ack doesn't search through all files by default. I added some more common filetypes in my dot file.
View .ackrc
# Ack is a command line tool that is better than Grep, betterthangrep.com
# Make sure Ack knows how to search common filetypes used in Rails projects
--type-add=css=scss
--type-add=js=hbs
--type-add=js=coffee
@rianrainey
rianrainey / mixin-ouput.css
Created Sep 23, 2013
Use Bourbon's mixin, @font-face, to easily include Fonts into your project.
View mixin-ouput.css
/* @include font-face(SourceSansPro, '/fonts/Source_Sans_Pro/SourceSansPro-Regular'); */
@font-face {
font-family: SourceSansPro;
font-weight: normal;
font-style: normal;
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot);
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot?#iefix) format("embedded-opentype"),
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.woff) format("woff"),
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.ttf) format("truetype"),