Skip to content

Instantly share code, notes, and snippets.

View hhsnopek's full-sized avatar
Working from home

Henry Snopek hhsnopek

Working from home
View GitHub Profile
@hhsnopek
hhsnopek / keybase.md
Last active September 2, 2016 13:42
keybase.md

Keybase proof

I hereby claim:

  • I am hhsnopek on github.
  • I am hhsnopek (https://keybase.io/hhsnopek) on keybase.
  • I have a public key whose fingerprint is 3C35 9B9E 808F 8280 1726 FFE6 27FD E7B5 BCE2 0423

To claim this, I am signing this object:

@hhsnopek
hhsnopek / reshape-cheatsheet.md
Last active October 8, 2016 22:40
Cheatsheet for Reshape

Reshape Cheatsheet

Includes

// html
<include src='_partial.html'></include>

// sugarml
include(src="_partial.html")

// jade
@hhsnopek
hhsnopek / start-stop-daemon-template
Created February 19, 2016 22:00 — forked from bcap/start-stop-daemon-template
Template file for creating linux services out of executables using the start-stop-daemon
#!/bin/bash
### BEGIN INIT INFO
# Provides: <service name>
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <service description>
### END INIT INFO
import request from 'request';
for user in users {
request('https://api.github.com/').get(user);
// get all repos for user
for repo in repos {
// after getting all repos from user
// search all branches that match `gh-pages`
// add results, if found, to data obj
}
_ = require 'lodash'
W = require 'when'
S = require 'string'
path = require 'path'
contentful = require 'contentful'
pluralize = require 'pluralize'
RootsUtil = require 'roots-util'
querystring = require 'querystring'
errors =
@hhsnopek
hhsnopek / git-commit-stuff.md
Last active April 19, 2016 18:26
Git commit stuff

Branch Names

  • initials.feature ex: hs.update-docs

Commit Emojis

  • 💄 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • ➕ when adding feature
compiling... contentful /Users/henrysnopek/projects/fornino/views/_location.jade
contentful local undefined
accord /Users/henrysnopek/projects/fornino/views/_location.jade undefined
file is opts.filename false
extended filename /Users/henrysnopek/projects/fornino/views/_location.jade
defaults filename /Users/henrysnopek/projects/fornino/views/_location.jade
contentful /Users/henrysnopek/projects/fornino/views/_location.jade
contentful local undefined
accord /Users/henrysnopek/projects/fornino/views/_location.jade undefined
file is opts.filename false
fetch_records = (fetch.call(@, key, conf) for key, conf of opts)
could be
fetch_records = (@fetch(key, conf) for key, conf of opts)
@hhsnopek
hhsnopek / share-button-webhook-obj.md
Last active October 15, 2015 00:44
Share-button webhook objectives

Push new release to Github/NPM

Server Tasks

  • Builds share-button
  • Publish to NPM
  • Upload tar/zip/{css, js} files to latest release
  • Moves dist/*.{js,css} to share-button-bower repo/dir on server & commits/pushes (commit msg is release tag)

TODO:

  • Github release webhook, get notified of new release & get tag_name
/app/node_modules/when/lib/decorators/unhandledRejection.js:80
2015-10-02T20:03:35.724232+00:00 app[web.1]: throw e;
2015-10-02T20:03:35.724234+00:00 app[web.1]: ^
2015-10-02T20:03:35.724235+00:00 app[web.1]: MongoError: auth failed
2015-10-02T20:03:35.724237+00:00 app[web.1]: at Object.toError (/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/utils.js:114:11)
2015-10-02T20:03:35.724238+00:00 app[web.1]: at /app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1156:31
2015-10-02T20:03:35.724239+00:00 app[web.1]: at /app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1890:9
2015-10-02T20:03:35.724241+00:00 app[web.1]: at Server.Base._callHandler (/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
2015-10-02T20:03:35.724242+00:00 app[web.1]: at /app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
2015-10-02T20:03:35.724252+00:00 app[web.1]: at [object Object].MongoR