Skip to content

Instantly share code, notes, and snippets.

View therebelrobot's full-sized avatar
A girl made of PLA and caffeine

Aster Haven therebelrobot

A girl made of PLA and caffeine
View GitHub Profile

Using jass To Send Encrypted Secrets

Install Jass

    git clone [email protected]:jschauma/jass $GOPATH/src/github.com/jschauma/jass
    cd $GOPATH/src/github.com/jschauma/jass
    make install

Encrypt and Decrypt Messages

@therebelrobot
therebelrobot / secretbox-example.js
Created May 10, 2017 00:30
NACL SecretBox example (safely symm encrypt/decrypt)
const nacl = require('tweetnacl')
nacl.util = require('tweetnacl-util')
const crypto = require('crypto')
const key64 = '4jYJgju0rVSVSBBhihogB7dIW5UIEDhPHxwl+WJlfOk='
const keyBuff = Buffer.from(key64, 'base64')
/* -------------- */
/* Build jwt */
/* -------------- */
[
"3kskx8qmik",
"c7w96Gtb9i",
"hjdm969dch",
"umvek21i5m",
"2w6xe78xn7",
"0cLzWCaMlT",
"qY3WFlZusE",
"SSErKT3Sm0",
"IWjhCjaE8n",
@therebelrobot
therebelrobot / contributing.md
Created January 25, 2017 01:53
brigadehub pre-beta docs backup

Adding new features

This section includes advice on how to build new features for the project & what kind of process it includes.

  • This is how we like people to add new features:
    • Check in the issue tracker and make sure it's not already there
    • Open a new issue asking presenting the feature
    • Be aware that not all feature requests will be accepted, though we will do our best to accomodate
  • Here are some specifics on the coding style we prefer:
@therebelrobot
therebelrobot / glossbot_dump.csv
Created November 8, 2016 04:02
glossbot_dump.csv
18f A group within the U.S. General Services Administration that builds digital services for government. https://18f.gsa.gov/
432.7 California Labor Code Section 432.7, a law that describes the limits of disclosure and access by employers to the criminal records of applicants and employees. <http://law.onecle.com/california/labor/432.7.html>
AA Ambulance Authority
AAP Adoption Assistance Program or Aid for Adoption of Children program
AB Assembly Bill
AB 1321 Assembly Bill 1321, a bill before the California legislature in early 2015 that would incentivize using CalFresh to purchase fresh produce. <http://www.sacbee.com/opinion/op-ed/soapbox/article22365894.html>
AB 71 California Assembly Bill 71, passed in 2015, requires police and sheriff’s departments to furnish information annually to the state attorney general about race and other details in use-of-force incidents. <http://leginfo.legislature.ca.gov/faces/billNavClient.xhtml?bill_id=201520160AB71>
ABA A Book Apart <http://abookapart.com/>
ABAWD Able
Why a new Router?

Next.js is special in that:

  • Routes don’t need to be known ahead of time
  • Routes are always lazy-loadable
  • Top-level components can define getInitialProps that should block the loading of the route (either when server-rendering or lazy-loading)

As a result, we were able to introduce a very simple approach to routing that consists of two pieces:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@therebelrobot
therebelrobot / doc.md
Created July 22, 2016 22:33 — forked from nijikokun/doc.md
Building Javascript Frontend / Backend Applications

Document for the best design choices you can make for your software.

Terminology

  • DDD - [Domain Driven Design][ddd-wikipedia]
  • FF or FTF - Function First Design, or File-type First Design is structuring your application by it's function before the files such as a directory named components containing all component files.

File Structure

Structuring applications is hard, here are a few resources to help.

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)