Skip to content

Instantly share code, notes, and snippets.

View blissdev's full-sized avatar

Jordan Arentsen blissdev

View GitHub Profile
@oakbow
oakbow / using_web-fonts_with_firefox_on_cloudfront
Last active July 27, 2021 06:22
for using Web fonts with FireFox on AWS S3 + CloudFront.There are CORS and CSS configurations.
target Distribution -> Behaviors -> Edit -> Forward Query Strings -> turn 'Yes'
<!doctype html>
<input id="query" type="text"></input>
<button id="search">Search</button>
<p id="results"></p>
<script src="bundle.js"></script>
@mtauraso
mtauraso / asana-nginx.conf
Created November 1, 2013 01:56
Asana's current Nginx configuration. It terminates TLS in a hardened, performant, and future looking manner, and passes connections on to a local Haproxy process
# LBs have 8 cores. One is used for haproxy, rest are used for nginx workers
worker_processes 7;
worker_rlimit_nofile 90000;
pid <PID_FILE>;
events {
use epoll;
multi_accept off;
accept_mutex off;
@Gozala
Gozala / go.js
Created October 31, 2013 00:08
Go routines for JS
// Utility function for detecting generators.
let isGenerator = x => {
return Function.isGenerator &&
Function.isGenerator.call(x)
}
// Data type represents channel into which values
// can be `put`, or `received` from. Channel is
// very much like queue where reads and writes are
// synchronized via continuation passing.
@genericallyloud
genericallyloud / protocols.md
Created October 21, 2013 16:03
A potential solution for doing scoped binding of methods to types using a technique similar to Clojure protocols instead of Ruby refinements.

The following example uses the '::' operator which has a proposal already and a champion on the committee. Other than the bind operator, the example I give uses no new syntax (other than what is new to ES6), and could fairly easily be polyfilled - though I expect it could be optimized if implemented natively. If you haven't seen Clojure protocols, they allow for single dispatch polymorpism based on type, without the methods being defined as part of that type. In clojure, they use the first parameter, but for my proposal, it uses the receiver (this), and uses the bind operator to make the call look similar to a normal method call. While I haven't actually written an implementation of the Protocol class I demonstrate here, I've thought enough about it that I feel it could be done in a few different ways without too much complexity.

/**
  • The following module is a sampling of underscore methods conver
@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet
@cowboy
cowboy / #bf4-emblem-import-export.md
Last active November 25, 2024 12:04
JavaScript: BF4 Battlelog Emblem Import / Export

Exporting an emblem

  1. Log into BF4 Battlelog.
  2. Visit the Customize emblem page.
  3. Select the emblem you wish to export.
  4. Open the console (Ctrl-Shift-J).
  5. Enter the following code snippet to copy the raw emblem data to the clipboard:
    copy('emblem.emblem.load('+JSON.stringify(emblem.emblem.data,null,2)+');');
  6. Paste somewhere useful, like a gist. Whatever.
  7. Close the console (Ctrl-Shift-J).
@jbenet
jbenet / simple-git-branching-model.md
Last active April 17, 2025 09:30
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@dlovell
dlovell / vmware_packer_config.json
Last active December 23, 2015 01:59
vmware packer config json file that works for ubuntu-13.04
{
"builders": [{
"type": "vmware",
"iso_url": "http://releases.ubuntu.com/13.04/ubuntu-13.04-server-amd64.iso",
"iso_checksum": "7d335ca541fc4945b674459cde7bffb9",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo vagrant | sudo -S shutdown -P now",
"disk_size": 8000,
@blissdev
blissdev / middlenomenclature.txt
Last active December 16, 2016 19:16
middleman terminology for systems nomenclature
(jolly fats) [wehawkin] employment agency - job queue?
sensei ping
wuhan thumb of death
o2stk
le cage de lumière - possibly cage of data? - http://middleman.wikia.com/wiki/La_Cage_De_Lumiere
dubdub - frontend
lacey
manservant neville
hruk bug bear
pentarch