Skip to content

Instantly share code, notes, and snippets.

View wookiehangover's full-sized avatar
💭
just setting up my gthb...

Sam Breed wookiehangover

💭
just setting up my gthb...
View GitHub Profile
@wookiehangover
wookiehangover / instructions.md
Last active April 21, 2017 04:15
DNSCrypt Setup

First steps

Better instructions here, obvs: https://dnscrypt.org/

Install the dnscrypt-client and connect to one of the public nodes. I chose [https://nxt.ist]. You can "trust" these because they issue keypairs or something(?) but, caveat emptor.

But roll with the thick client because it's convenient and you'll get to see what you're in for... which is pretty boring if you're not running dig or nslookup all the time to see where your DNS entries are coming from. But then again, it's pretty boring. But at least they're encrypted?

Paranoid mode: DNSCrypt server

@wookiehangover
wookiehangover / dropbox_guidelines.md
Last active February 20, 2017 18:26
Dropbox Design Guidelines
  • Use a flat folder structure, organized by client name

    • No numbers, unicode dots or dashes in front of folder names
    • Never create empty directories
  • If there are less than 10 total items (design assets, screenshots, etc) there should be no sub-directories

    • This rule also applies to nested sub-directories
    • Never create empty directories
  • Files should follow a naming structure that's consistent from within a given client folder

  • We do not need to strive for consistency between clients

@wookiehangover
wookiehangover / index.html
Last active October 31, 2016 06:58
Pusher
<body>
<div class="wrapper">
All non-footer content goes here.
<div class="pusher"></div>
</div>
<footer class="primary-footer">
Footer Content
</footer>
config =
requirejs:
options:
mainConfigFile: 'some/path/to/your/config.js'
baseUrl: 'some/path/to/your/assets'
almond: true
optimize: 'uglify2'
wrap: false
browser.waitForElementByCssSelector('.modal-footer button', 30e3)
.delay(1000)
.then(function(elem){
return $('.modal-footer button').click();
})
...

Sprintly Env Setup

git clone git@github.com:sprintly/sprint.ly.git

brew install python
brew install memcached
brew install libmemcached
brew install mysql
brew install pv
/*global _, moment, JST*/
jQuery.fn.tweeeeet = function(options){
"use strict";
var defaultOptions = {
screen_name: 'quickleft',
count: 10,
page: 1,
include_rts: true,
include_entities: true
[client] -- > [pouchdb] -- > [node] -- > [couchdb] -- (x-zone replication) -- > [couchdb] -- > [node] -- (web sockets) -- > [client] -- > [pouchdb]
| | ^ | ^
| V | V |
| [local ES] -------------- [ES] |
| |
(web rtc on successful sync to remote) (changes propagate upstream)
|
curl -o latest.dump `heroku pgbackups:url`
pg_restore --verbose --clean --no-acl --no-owner -d quickleft-cms_development latest.dump

Stickies Development

  • make a config module that's not checked in
  • tweak theme colors, transitions
  • TODO list transform v1
  • exports to Gist
  • email

Bugz