-
brew install gnupg, pinentry-mac(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg --gen-key -
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 12:41 <schmichael> bret: this is a shortcut for creating one-off types for unmarshalling json: x := struct{Foo string `json:"foo"`}{}; json.Unmarshal(data, &x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| USAGE="Usage: $0 ipv4-address" | |
| BLACKLISTDB="/var/db/sshguard/blacklist.db" | |
| if [ "$#" == "0" ]; then | |
| echo "$USAGE" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parser": "babel-eslint", | |
| "extends": ["standard", "standard-react"], | |
| "env": { "browser": true, "node": true }, | |
| "rules": { "no-var": 2 } | |
| } |
I hereby claim:
- I am bcomnes on github.
- I am bret (https://keybase.io/bret) on keybase.
- I have a public key ASBJBZN99sITUk1GqwHTTFKVnUqSJlWGQs62TR76dFQ-awo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| git branch -r --merged | | |
| grep origin | | |
| grep -v '>' | | |
| grep -v 'master' | | |
| xargs -L1 | | |
| awk '{sub(/origin\//,"");print}' | | |
| xargs git push origin --delete | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10:53 <bret> i like how react/redux works. i don't like the tool chain very much | |
| 10:54 <bret> its a good place to start to understand how view systems that take the always re-render strategy like react does | |
| 10:54 <bret> there are alternatives that are less documented but more minimal: https://github.com/Raynos/mercury | |
| 10:55 <substack> yo-yo or virtual-dom+main-loop are pretty nice alternatives that give you the basic architecture without the toolchain complexity | |
| 10:55 <substack> or bloat | |
| 10:55 <bret> https://github.com/shama/bel yeah yo yo too | |
| 10:55 <minskmaz> yeah my biggest complaint compes from from simple abstractions becoming huge apis | |
| 10:56 <substack> minskmaz: yo-yo/bel and virtual-dom/main-loop are basically finished except for bug fixes and extremely minor feature additions | |
| 10:56 <minskmaz> substack: I’ll check it out - how is it for 2 way binding ? | |
| 10:57 <substack> instead of 2-way binding, I use an event emitter to trigger state transitions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/base64" | |
| "fmt" | |
| "os" | |
| "strings" | |
| ) | |
| const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| firewall { | |
| all-ping enable | |
| broadcast-ping disable | |
| ipv6-receive-redirects disable | |
| ipv6-src-route disable | |
| ip-src-route disable | |
| log-martians enable | |
| name WAN_IN { | |
| default-action drop | |
| description "WAN to internal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| *.db | |
| *.mp4 |