Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
L I M I T L E S S

Devin Brown originalhat

👾
L I M I T L E S S
View GitHub Profile
View things-i-believe.md

Things I Believe

Inspiration: Things I believe · GitHub

Fundamentals

  1. Make it simple, then make it even more simple.
  2. We're paid to think, not write code.
  3. Articulated your thoughts with others.
  4. Always retrospect on what could have gone better.
View keybase.md

Keybase proof

I hereby claim:

  • I am originalhat on github.
  • I am circlehat (https://keybase.io/circlehat) on keybase.
  • I have a public key ASDTeyQ8U9v_bbtnkjsWyGNk-NV7PFr75Wzg8SPJDQT9nQo

To claim this, I am signing this object:

View automatic-cert-generation.md
#!/bin/bash
DOMAIN=$1
mkdir -p /tmp/appwatch-bbl
mkdir -p /tmp/certbot
gsutil cp gs://appwatch-bbl/my-app-config.json /tmp/appwatch-bbl/my-app-config.json
chmod 600 /tmp/appwatch-bbl/my-app-config.json
@originalhat
originalhat / branch-diff.md
Created Sep 6, 2016
diff two branches SUH PRUTTY
View branch-diff.md
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative master..branch-X
View monorepos.md

Monolithic repositories

  1. full-stack dependencies & modifications in one place
  2. independent deploys

We have a single large depot with almost all of Google's projects on it. This aids agile development and is much loved by our users, since it allows almost anyone to easily view almost any code, allows projects to share code, and allows engineers to move freely from project to project. Documentation and data is stored on the server as well as code.

Git Subtree

Git subtree allows you to insert any repository as a sub-directory of another one. It is one of several ways Git projects can manage project dependencies.

View fallacy-central.md

Hasty generalization

Hasty generalization is an informal fallacy of faulty generalization by reaching an inductive generalization based on insufficient evidence—essentially making a hasty conclusion without considering all of the variables. In statistics, it may involve basing broad conclusions regarding the statistics of a survey from a small sample group that fails to sufficiently represent an entire population. Its opposite fallacy is called slothful induction, or denying a reasonable conclusion of an inductive argument (e.g. "it was just a coincidence").

View service-workers.md

Service Workers

A service worker is a script that is run by your browser in the background, separate from a web page, opening the door to features which don't need a web page or user interaction. Rich offline experiences, periodic background syncs, push notifications— functionality that would normally require a native application—are coming to the web.

  • SW are are just JS workers, so they can't access the DOM directly
  • a SW can communicate w/ the pages it controls by responding to message sent via the postMessage interface
  • SW is a programmable network proxy, allowing you to conrol how network requests from your page are handled
  • it runs only when needed, and terminiates when unneeded (cannot rely on global state)
  • service workers make extense use of promises
View how-it-starts.md

Hilarious DO TRY

osascript -e "set Volume 1" && wget "http://inception.davepedu.com/inception.mp3" && afplay inception.mp3
View chown-dir.md

The chown command (abbreviation for change owner) is used on Unix-like systems to change the owner of a file.

sudo chown -R <owner>:<group> /usr/local/

In Unix-like operating systems, chmod is the command and system call which may change the access permissions to file system objects.

sudo chmod -R g+w /usr/local/
You can’t perform that action at this time.