Skip to content

Instantly share code, notes, and snippets.

View jaymiejones86's full-sized avatar
🏠
Working from home

Jaymie Jones jaymiejones86

🏠
Working from home
View GitHub Profile
@jaymiejones86
jaymiejones86 / rails_website_launch_checklist.md
Last active January 18, 2021 17:51
Rails Website Launch Checklist

Ruby on Rails Website Launch Checklist

Copy this gist and customise it to your liking.

  • Run Brakeman and resolve any issues where required
  • Run rails best practices and resolve any warnings
  • Run full test suite and make sure all tests are passing
  • Make sure no dummy email addresses are left in any notification emails (eg contact form)
  • Make sure production assets compile correct (eg files in vendor, etc, compile and are not 404'ing in production environment)
  • If using unicorn in production, make sure deploys are restarting the unicorns
@jaymiejones86
jaymiejones86 / keybase.md
Created July 9, 2019 05:54
Keybase Verification

Keybase proof

I hereby claim:

  • I am jaymiejones86 on github.
  • I am jaymiejones86 (https://keybase.io/jaymiejones86) on keybase.
  • I have a public key ASCAX71375M9gyF3z4nOV_SX2q1flBYLOqw5mGiA3kj3Ago

To claim this, I am signing this object:

@jaymiejones86
jaymiejones86 / ckeditor_force_paste_plain_text.js
Created May 9, 2012 01:45
CKeditor Force Paste as Plain Text
Add the following code snippet to the config.js file to force all pasted text into the editor window as plain text.
config.forcePasteAsPlainText = true;
@jaymiejones86
jaymiejones86 / functions.php
Created September 23, 2014 23:10
Woocommerce Add Prices Beside Variant Items
//Add prices to variations
add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_name' );
function display_price_in_variation_option_name( $term ) {
global $wpdb, $product;
$result = $wpdb->get_col( "SELECT slug FROM {$wpdb->prefix}terms WHERE name = '$term'" );
$term_slug = ( !empty( $result ) ) ? $result[0] : $term;
@jaymiejones86
jaymiejones86 / setup.md
Last active January 17, 2018 18:21
My Average Rails App Setup

The Average Rails App Setup

Below outlines what is setup with my average rails app

Services

  • Digital Ocean/AWS Server/Heroku
  • AWS S3
  • Heroku Postgres
  • Skylight
@jaymiejones86
jaymiejones86 / create_organisation.rb
Created June 12, 2017 23:39
Hanami Interactor Example
require 'hanami/interactor'
class CreateOrganisation
include Hanami::Interactor
def initialize(params)
params[:id] = NormalizeParameterName.format(params[:id])
@params = params
@organisation = Organisation.new(@params)
end
@jaymiejones86
jaymiejones86 / gist:3745981
Created September 18, 2012 21:20
Running Pow And MAMP Pro Together

Uninstall Pow if installed already

curl get.pow.cx/uninstall.sh | sh

Change pow's firewall to redirect all traffic from port 88 instead of port 80 (standard port)

echo 'export POW_DST_PORT=88' >> ~/.powconfig
@jaymiejones86
jaymiejones86 / codercatchup-episode-100-questions.md
Created December 5, 2016 12:24
Coder Catchup Episode 100 - 5 Questions

I have a podcast called Coder Catchup which you can find at http://codercatchup.com/ or on twitter https://twitter.com/codercatchup and I am approaching Episode 100 of the weekly podcast series I am doing.

The podcast is about spreading information to anyone who works on the web, things that may hopefully improve their career or open up other opportunities or thought processes.

For episode 100 I am seeking out various people in the web community and asking if they would mind answering 5 question that will be read out on the episode.

Would you mind answering these questions for me? All good if you do not wish to or cannot.

  • If you were starting fresh, what would you primarily focus on? (e.g. as a new web designer/developer)
  • What is one piece of advice you think is most important for web developers/designers going forward?
@jaymiejones86
jaymiejones86 / notes.md
Last active November 14, 2016 11:56
Drupal Gold Coast Notes - November 2016
@jaymiejones86
jaymiejones86 / bootstahp.html
Created March 17, 2014 04:46
Bootstrap Kitchen Sink from divshot
<!doctype html>
<html>
<head>
<title>White Plum Kitchen Sink - Bootstrap 3 Theme</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../dist/css/bootstrap.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>