Skip to content

Instantly share code, notes, and snippets.

View ivoreis's full-sized avatar
🎯
Focusing

Ivo Reis ivoreis

🎯
Focusing
  • London, UK
View GitHub Profile
@ivoreis
ivoreis / aws-theme.json
Last active July 24, 2021 14:01
AWS Theme
{
"name": "Amazon Web Services",
"description": "This theme includes element styles with icons for each of the AWS services, based upon the AWS Architecture Icons (https://aws.amazon.com/architecture/icons/).",
"elements": [{
"tag": "Element",
"shape": "RoundedBox"
}, {
"tag": "Software System",
"background": "#1168bd",
"color": "#ffffff"
@ivoreis
ivoreis / dependabotrebase
Created March 22, 2021 09:45
Dependabot rebase
gh pr list | grep dependabot | cut -c1-4 | xargs -I {} gh pr review {} -b "@dependabot rebase" -c
@ivoreis
ivoreis / postmortem.md
Last active January 20, 2020 09:50
Technical Post-Mortem document template

Post Mortem Template

Tl;dr

A summary anyone can read and understand in a minute. You can give some technical detail here, but keep it brief.

Customer impact

A description which anyone in the company can understand.

Side-note: make sure customer/partner success have been notified if this has affected high-priority merchants.

@ivoreis
ivoreis / ladder.md
Created August 12, 2019 20:12 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@ivoreis
ivoreis / git-semantic-messages.md
Created August 8, 2018 13:46
Git semantic messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Keybase proof

I hereby claim:

  • I am ivoreis on github.
  • I am ivoreis (https://keybase.io/ivoreis) on keybase.
  • I have a public key ASDa7xBFPMno146IWkByaH5sSKqzIrut5DxU8Mrfb35hdgo

To claim this, I am signing this object:

@ivoreis
ivoreis / stacktrace
Created September 2, 2015 18:38
stacktrace
± ./scripts/create-website.js
/Users/ivoreis/Projects/trine/scripts/create-website.js:8
throw error;
^
Error: offset is not defined src/boolean/and.js:1:1
at findDocblock (/Users/ivoreis/Projects/trine/tools/DocumentationBuilder/JsdocPlugin/index.js:45:15)
at NodePath.ExportNamedDeclaration (/Users/ivoreis/Projects/trine/tools/DocumentationBuilder/JsdocPlugin/index.js:82:34)
at NodePath.call (/Users/ivoreis/Projects/trine/node_modules/babel-core/lib/traversal/path/context.js:56:28)
at NodePath.visit (/Users/ivoreis/Projects/trine/node_modules/babel-core/lib/traversal/path/context.js:89:8)
at TraversalContext.visitMultiple (/Users/ivoreis/Projects/trine/node_modules/babel-core/lib/traversal/context.js:108:16)
// IE polyfills needed by mithril for IE8 and below
// array.indexOf - https://gist.github.com/revolunet/1908355
if (!Array.prototype.indexOf)
{
Array.prototype.indexOf = function(elt /*, from*/)
{
var len = this.length >>> 0;
var from = Number(arguments[1]) || 0;
from = (from < 0)
@ivoreis
ivoreis / gist:4242350
Created December 8, 2012 22:46 — forked from sebastiandeutsch/gist:4136265
hogan/mustache compile task for grunt
grunt.initConfig({
hogan: {
// desired target name
dev : {
// indicate you want to compile templates
compile : {
// wildcard of desired templates (glob syntax)
templates : "source/**/*.mustache",
processName: function(filename) {
return filename.replace(/source\//, "").replace(/\.jst\.mustache/, "");
@ivoreis
ivoreis / handlebars_template.rb
Created September 30, 2012 15:22
Handlebars Tilt Template
require 'tilt'
class HandlebarsTemplate < Tilt::Template
def initialize_engine
return if defined?(Handlebars)
require 'handlebars'
end
def prepare
@template = Handlebars.compile(data)