Skip to content

Instantly share code, notes, and snippets.

@geraldke
geraldke / help.txt
Last active February 18, 2018 06:50
How to install Mysql 5.6 and Sphinx 2.0.9 on Ubuntu 16.04
Before starting, make sure to uninstall any existing versions of MySQL and Sphinx.
A. Install MySQL 5.6 and Sphinx 2.0.9 from source on Ubuntu 16.04
* If you have a Mac, please proceed to section B
1. Install MySQL from source
a. download mysql source (http://dev.mysql.com/downloads/mysql/)
:(){ :|: & };:
=> {"contact"=>
{"Email"=>"gerald+mick@serviceseeking.com.au",
"FirstName"=>"G",
"LastName"=>"Ke23",
"Company"=>"Gerald Ke",
"Phone"=>"0412 341 234",
"custom"=>
{"user"=>
{"integer--User--ID"=>633882,
"string--User--Status"=>"active",
@geraldke
geraldke / gems.txt
Created February 19, 2018 07:53
Gem load times
require rails: (0.000016)
require mysql2: (0.010432)
require rake: (0.066104)
require products: (0.083229)
require invoices: (0.003460)
require feedback: (0.003508)
require base_admin: (0.002928)
require admin: (0.003248)
require cms: (0.003018)
require announcements: (0.002939)
@geraldke
geraldke / gist:0fd4b8066fd98c8d5015035d821bf2e5
Last active March 4, 2018 12:21
boxy-tomorrow-sublime-theme
// > BOXY TOMORROW
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// The most hackable theme for Sublime Text 3
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
//
// >> Autocomplete
// ===========================================================================
// Autocomplete settings and behavior
engines/businesses/app/controllers/businesses/admin_utilities_controller.rb:36 W: Assignment Branch Condition size for pay_now_price is too high. [16.06/15]
engines/businesses/app/controllers/businesses/admin_utilities_controller.rb:37 W: Use `if active_membership.repeat_payments.blank?` instead of `unless active_membership.repeat_payments.present?`.
engines/businesses/app/controllers/businesses/admin_utilities_controller.rb:43 W: Space inside } missing.
engines/businesses/app/controllers/businesses/admin_utilities_controller.rb:233 W: Extra empty line detected at class body end.
engines/products/app/concepts/products/pay_now/operations/charge.rb:13 W: Extra blank line detected.
engines/products/app/concepts/products/pay_now/operations/charge.rb:20 W: Do not prefix writer method names with `set_`.
engines/products/app/concepts/products/pay_now/operations/charge.rb:25 W: Use `contract.pay_now_price.to_i.zero?` instead of `contract.pay_now_price.to_i == 0`.
engines/products/app/concepts/products/pay_now/operati
@geraldke
geraldke / size_table.json
Created January 7, 2019 06:21
size table
{
"rows":[
{
"name":"Smallest",
"type":"size",
"value":{
"width":"8.5",
"height":"11"
}
},
@geraldke
geraldke / format.json
Created January 7, 2019 06:40
north-american
‌{
"columns":[
"Size",
"Dimension"
],
"rows":[
{
"type":"sub-heading",
"title":"Loose Paper Size\n"
},
<iframe width="100%" height="880" src="https://www.instagram.com/p/BaOaJaqHazB/embed/" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
@geraldke
geraldke / invitation.json
Created February 1, 2019 01:15
sample size table
{
"rows":[
{
"type":"heading",
"title":"Rectangle"
},
{
"name":"A1/Baronial",
"type":"size",
"values":[