Skip to content

Instantly share code, notes, and snippets.

Working remotely from home on St Albans

Phil Hawksworth philhawksworth

Working remotely from home on St Albans
Block or report user

Report or block philhawksworth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

👀📎 It looks like you're preparing to MC a conference...

🚨 GIANT DISCLAIMER: This stuff is far from authoritative. But it's what I think works for me, and what I enjoy in an MC when I'm attending a conference.

Biggest tip - enjoy yourself.

philhawksworth /
Last active May 23, 2019
Q&A from the JAMstack talk at Frontend United

Thanks for all of your questions during my talk at Frontend United: JAMstack: Silly name. Serious business.

1. Jeremy asks:

philhawksworth / netlify.toml
Created Jan 4, 2018
Example netlify configuration file
View netlify.toml
# Our global, build settings
base = "site" # run the buold from this directory
publish = "public" # the output diretory to push to the CDN after the build
command = "gulp build" # the command to build our site
# Specific branch context: Deploys from this branch
# will take these settings and override their
# current ones.
philhawksworth / _redirects
Last active Oct 9, 2019
Simple example of Netlify _redirects file
View _redirects
# Redirect with a 301
/home / 301
# Redirect with a 302
/my-redirect / 302
# Rewrite a path
/pass-through /index.html 200
philhawksworth / _headers
Last active Jan 4, 2018
Simple example of a Netlify _headers file (no file extension in the real world)
View _headers
# A path:
# Headers for that path:
Cache-Control: public, max-age=360000
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
View gist:acaa15d7af0aaba1fda7
me: "lager",
finchy: "lager",
gareth: "lager, sometimes cider",
conclusion: "different people, different drinks"
View config.yml
# Site settings
title: Your awesome title
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
baseurl: ""
url: ""
# Build settings
markdown: kramdown
philhawksworth /
Last active Mar 25, 2018
Useful SublimeText packages
View gist:3666283
control = {
32 : go_up,
46 : go_down
$(document).bind("keydown", function(e) {
console.log("keydown: ", e.keyCode);
if(!control[e.keyCode]) {
View gist:2635863
public static function getConfiguratorProductCategoryMediatorName(productCategory : String) : String {
return productCategory;
You can’t perform that action at this time.