Skip to content

Instantly share code, notes, and snippets.

View originalhat's full-sized 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
@originalhat
originalhat / things-i-believe.md
Last active February 12, 2021 21:40
Things I believe

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.

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:

#!/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 September 6, 2016 22:31
diff two branches SUH PRUTTY
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative master..branch-X

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.

@originalhat
originalhat / fallacy-central.md
Created November 26, 2015 04:20
Fallacy Central

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").

@originalhat
originalhat / service-workers.md
Last active December 8, 2017 17:47
Service Workers

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

Hilarious DO TRY

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

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/