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:
I hereby claim:
To claim this, I am signing this object:
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
| { | |
| "parser": "babel-eslint", | |
| "extends": ["standard", "standard-react"], | |
| "env": { "browser": true, "node": true }, | |
| "rules": { "no-var": 2 } | |
| } |
| #!/usr/bin/env bash | |
| USAGE="Usage: $0 ipv4-address" | |
| BLACKLISTDB="/var/db/sshguard/blacklist.db" | |
| if [ "$#" == "0" ]; then | |
| echo "$USAGE" | |
| exit 1 | |
| fi |
| 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) |
| function asyncTest (cb) { | |
| setTimeout( | |
| function () { | |
| console.log('waited 5 seconds') | |
| setTimeout(function () { | |
| console.log('waited 3 seconds') | |
| cb() | |
| }, 3000) | |
| }, 5000) | |
| } |
| [Unit] | |
| Description=sbot | |
| [Service] | |
| ExecStart=/usr/local/bin/sbot server --host example.com --blobs.party | |
| # Track https://github.com/ssbc/patchwork/issues/224 for info on --blobs.party | |
| Restart=on-failure | |
| ReadWriteDirectories=/home/%i/.ssb | |
| User=%i |
| <onewheelskyward> bret we use well-formed branch names. story/TICKET/(task|bug)/SUBTICKET/something-useful-here |
Apple computers ship with a pre-installed suite of hardware diagnostic tools, known as Apple Hardware Test (AHT). In principle you can start them by holding the d key while booting. Newer models support holding option d to load AHT over the internet. Refer to the official Apple documentation for details: Using AHT on Intel-based Macs, Mountain Lion, Mavericks and Yosemite. Apple redesigned the AHT, now called Apple Diagnostics, for Macs introduced after June 2013. Consult the reference codes to interpret the results.
If however, you reinstalled an older computer from scratch, the diagnostic tools might no longer be available. Unless you have the original disks that came with your comput
| #!/bin/bash | |
| if [ "$(uname)" == "Darwin" ]; then | |
| # Do something under Mac OS X platform | |
| elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then | |
| # Do something under GNU/Linux platform | |
| elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then | |
| # Do something under Windows NT platform | |
| fi |