Skip to content

Instantly share code, notes, and snippets.

View vitalbone's full-sized avatar

Vito Belgiorno-Zegna vitalbone

View GitHub Profile
@vitalbone
vitalbone / keystone2heroku.md
Last active January 1, 2023 23:35
Deploying KeystoneJS to Heroku

Deploying a Keystone App to Heroku

Keystone comes completely set up to install on Heroku in a couple of steps.

1. Sign up for a Heroku account and install the Heroku Toolbelt.

Log in with it and you're ready to begin. Heroku uses git to deploy a new site, so with that in mind:

2. Create a new repository on Github and then clone it.

Here is how to get Semantic-UI-Less working in Keystone:

Directory structure:

styles
|- semantic
    - definitions
        - elements
        - globals
 - themes

Keybase proof

I hereby claim:

  • I am vitalbone on github.
  • I am vitalbone (https://keybase.io/vitalbone) on keybase.
  • I have a public key whose fingerprint is 6CE0 C49A 6FB8 FFF6 B38F E03B F1F9 152D E00F 61EB

To claim this, I am signing this object:

@vitalbone
vitalbone / eslint-atom.md
Last active June 28, 2018 17:20
Configuring eslint for Atom

Configuring eslint for Atom

Dan Abramov does a really good job explaining why and how in 'Lint Like It’s 2015'

For the tl;dr version

// install atom's linter && linter-eslint
apm install linter
apm install linter-eslint
@vitalbone
vitalbone / index.js
Created August 18, 2015 07:16
requirebin sketch
// require something and hit 'Run', e.g. require('dog-picture')
require('dog-picture');
@vitalbone
vitalbone / parser.md
Last active February 3, 2016 20:53
📼 My first parser
var http = require('http')
var url = 'http://finance.google.com/finance/info?client=ig&q=INDEXASX:XAO'

// method for retrieving texty-json from URL
var download = (url, callback) => {
	http.get(url, res => {
		var data = ''
		res.on('data', chunk => {
			data += chunk
@vitalbone
vitalbone / subnets.md
Last active June 17, 2016 06:17
How Subnets work

How subnets work

Each number in the ip address represents binary octets.

00000101 01101000 00000000 00000000
128|64|32|16|8|4|2|1
// these are the same. 32 represents all 4 blocks in the ip
10.119.12.123
@vitalbone
vitalbone / keybase.md
Created March 9, 2017 22:50
New keybase identifier

Keybase proof

I hereby claim:

  • I am vitalbone on github.
  • I am vitalbone (https://keybase.io/vitalbone) on keybase.
  • I have a public key whose fingerprint is 733C 4FD9 2C85 C176 A1B2 54A5 7A9C BD76 0510 4071

To claim this, I am signing this object:

@vitalbone
vitalbone / knowledge.md
Created October 2, 2017 01:08
Knowledge