Skip to content

Instantly share code, notes, and snippets.

View mbyczkowski's full-sized avatar
:shipit:

Mat Byczkowski mbyczkowski

:shipit:
View GitHub Profile
/** @jsx createNode */
function createNode(tagName, attrs, ...children) {
const node = attrs || {};
node.name = tagName;
if (children && children.length > 0) {
node.children = children;
}
return node;
}

Rough outline of asset deployment strategy

Goals

  • Separate front end "client" deployment and build process from backend deployment.
  • Not necessarily have to create two completely distinct applications (because of authentication difficulties etc), but could go in that direction if needed.
  • Migratable to from the asset pipeline & compatible with rails.
  • Support coffeescript, sass compilation.
  • Allow lightweight "staging" clients to be deployed using the existing backend. Ideally even use the production backend with a development client.
  • Fast compilation and deployment.
@sl8r000
sl8r000 / exits.ipynb
Last active May 9, 2016 17:38
Exit Scenarios
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@latentflip
latentflip / gist:3722894
Created September 14, 2012 16:04
Off the cuff ember and backbone thoughts from a non-expert.

Some very off the cuff thoughts on ember and backbone

Here's where I am at with things for Float:

  • done a load of stuff with backbone, and it's what we use in production
  • played with ember, but nothing too serious. Thinking it might be good for Float, but it's got a steep learning curve initially, so it may never happen.

Having read http://trek.github.com and worked through the examples, and compared it to what I've done in backbone. My thoughts are:

@khapota
khapota / pf.conf
Created February 13, 2015 02:17
pf conf mac os 10.10
scrub-anchor "com.apple/*"
nat-anchor "com.apple/*"
rdr-anchor "com.apple/*"
rdr-anchor "forwarding"
dummynet-anchor "com.apple/*"
anchor "com.apple/*"
load anchor "com.apple" from "/etc/pf.anchors/com.apple"
load anchor "forwarding" from "/etc/pf.anchors/mitm"
@petehamilton
petehamilton / metric_apps.md
Last active May 22, 2017 19:14
Useful Metric Dashboard Research Links

Dashboards

Charting

@khapota
khapota / mitmproxy pf
Created February 13, 2015 02:17
/etc/pf.anchors/mitm
rdr pass on en0 inet proto tcp to any port 80 -> 127.0.0.1 port 8080
rdr pass on en0 inet proto tcp to any port 443 -> 127.0.0.1 port 8080

On Twitter the other day, I was lamenting the state of OCSP stapling support on Linux servers, and got asked by several people to write-up what I think the requirements are for OCSP stapling support.

  1. Support for keeping a long-lived (disk) cache of OCSP responses.

    This should be fairly simple. Any restarting of the service shouldn't blow away previous responses that were obtained. This doesn't need to be disk, just stable - and disk is an easy stable storage for most server

@lou1306
lou1306 / wiener.py
Created December 13, 2017 14:56
Wiener's RSA Attack
from fractions import gcd, Fraction
def intSqrt(n):
"""
Computes the integer square root of n, i.e.
the greatest x : x*x <= n
"""
x = n
y = (x + n // x) // 2
@andrewlkho
andrewlkho / gist:10739278
Created April 15, 2014 14:57
vim-pathogen with mutt and git

This was originally posted on 2011-04-05 to http://andrewho.co.uk/weblog/vim-pathogen-with-mutt-and-git

For a long time I've used vim as my editor for both composing messages in mutt and commit messages for git. I do this with the following line in my ~/.muttrc (and a similar one in my ~/.gitconfig:

set editor = "vim -c 'set wrap tw=76 fo=toqwal12 nonumber spell' +1"

Recently I refactored my vim configuration files using Tim Pope's excellent [pathogen][1] script. Doing so required me to place the following lines in my