Skip to content

Instantly share code, notes, and snippets.

View johnantoni's full-sized avatar

John Griffiths johnantoni

View GitHub Profile
@johnantoni
johnantoni / gist:07df65898456ace4307d5bb6cbdc7f51
Last active April 3, 2022 16:31 — forked from mgmilcher/gist:5eaed7714d031a12ed97
Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X

This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.

This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)

Xcode

Make sure you have the latest version of XCode installed. Available from the Mac App Store.

Install the Xcode Command Line Tools:

xcode-select --install

@johnantoni
johnantoni / sets.json
Created April 13, 2016 01:40 — forked from justincron/sets.json
Bootstrap Grid for GuideGuide
{"Default":{"name":"Default","sets":{"469eb8921edf75ed3360d5838f9585c0d7a82109":{"name":"Outline","string":"| ~ | (vFl)\n| ~ | (hFl)","id":"469eb8921edf75ed3360d5838f9585c0d7a82109"},"84676cd434499994ef5176c93d970e83079cbc6c":{"name":"Two column grid","string":"| ~ | ~ | (vFl)","id":"84676cd434499994ef5176c93d970e83079cbc6c"},"d521212626e4f9f144821a52dcdaf3e1f6c8cffd":{"name":"Three column grid","string":"| ~ | ~ | ~ | (vFl)","id":"d521212626e4f9f144821a52dcdaf3e1f6c8cffd"},"836d2a54511793c6f2ecdd3447f1c727e3c83925":{"name":"1170px Grid | 1570","string":"$v = | 65px | 15px | 15px |\n$vC = | 65px |\n200px | 15px | 15px | $v*11 | $vC | 15px | 15px | 200px ( vlp, | ~ )","id":"836d2a54511793c6f2ecdd3447f1c727e3c83925"},"8d6acf586750142b4cb4bb4b6f33244211159eb9":{"name":"970px Grids | 1370","string":"$v = | 48px | 15px | 15px |\n$vC = | 48px |\n200px | 17px | 15px | $v*11 | $vC | 15px | 17px | 200px ( vlp, | ~ )","id":"8d6acf586750142b4cb4bb4b6f33244211159eb9"},"544118008c2af25e65d782c499fbe42480cf8915":{"name":"7
{"Default":{"name":"Default","sets":{"cbc5507de150aa324c323dea5246f8a7f2dd3618":{"name":"Bootstrap 1170","string":"$v = | 65px | 15px | 15px |\n$vC = | 65px |\n200px | 15px | 15px | $v*11 | $vC | 15px | 15px | 200px ( vlp, | ~ )","id":"cbc5507de150aa324c323dea5246f8a7f2dd3618"},"6a188b701a91b394b3c1608844c33ad416d21f25":{"name":"Bootstrap 970","string":"$v = | 48px | 15px | 15px |\n$vC = | 48px |\n200px | 17px | 15px | $v*11 | $vC | 15px | 17px | 200px ( vlp, | ~ )","id":"6a188b701a91b394b3c1608844c33ad416d21f25"},"fbfee59f64b58b94682597dc8e6cf67ba84a65af":{"name":"Bootstrap 750","string":"$v = | 30px | 15px | 15px |\n$vC = | 30px |\n200px | 15px | 15px | $v*11 | $vC | 15px | 15px | 200px ( vlp, | ~ )","id":"fbfee59f64b58b94682597dc8e6cf67ba84a65af"}}}}
@johnantoni
johnantoni / .tigrc
Last active February 17, 2016 14:54 — forked from spicycode/.tigrc
my tigrc
# vim: set expandtab sw=4 tabstop=4:
# *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
# general
color default 15 235
color cursor 15 241
color title-focus 242 221
color title-blur 242 221
color delimiter 213 default
color author 156 default
@johnantoni
johnantoni / Contract Killer 3.md
Created February 11, 2016 22:25 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

38934: URL_REQUEST
https://uat1.shop.loblaw.ca/booking/showTimeSlots?CSRFToken=61cf544d-deac-4b15-be7d-1b1ca0e5757b&pickupLocationId=1004&_=1445622566065
Start Time: 2015-10-23 13:49:30.130
t=41134 [st= 0] +REQUEST_ALIVE [dt=1006]
t=41134 [st= 0] URL_REQUEST_DELEGATE [dt=1]
t=41135 [st= 1] +URL_REQUEST_START_JOB [dt=1005]
--> load_flags = 65792 (MAYBE_USER_GESTURE | VERIFY_EV_CERT)
--> method = "GET"
--> priority = "LOW"
@johnantoni
johnantoni / notes.md
Created October 9, 2015 17:24 — forked from scottjehl/notes.md
Notes from Wes Bos's talk on web tooling

Notes from @wesbos's talk:

Our frontend workflow is changing quickly and for good reasons. Tooling for tooling sake is a waste, but don't overlook the utility of modern dev tooling workflows - these are great, useful tools that are letting us improve our workflows in standards-based, forward-looking ways.

Trend: Frontend developers are moving to using package managers (npm) for client-side code (CSS and JS), much like we have been for managing our build tooling itself. I can attest to this being hugely helpful at Filament Group on client-side code, especially now that so many of our projects are on npm (https://www.npmjs.com/~filamentgroup ).

Yay, another talk that recommends loadCSS for performance. Nice to hear :)

Gulp tasks to use:

@johnantoni
johnantoni / onename verify
Created September 3, 2015 18:34
onename verify
Verifying that +johnantoni is my blockchain ID. https://onename.com/johnantoni
@johnantoni
johnantoni / functions.js
Created July 7, 2015 13:22
javascript function types
// self invoking
(function () {
var x = "Hello!!"; // I will invoke myself
})();
// functions as values
function myFunction(a, b) {
return a * b;
}
var x = myFunction(4, 3);
@johnantoni
johnantoni / functions.js
Created July 7, 2015 13:15
javascript functions
// ------ functions with closure
var y = 12345;
var z = 12345;
(function (y) {
var x = "Hello!!";
console.log(y)
})();