mkdir templates
mv *.tmpl templates/
go get github.com/GeertJohan/go.rice
go generate
go run main.go
This file contains 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
#!/bin/bash | |
#### | |
# Example usage ... | |
# | |
# sudo ./go-upgrade.sh https://go.dev/dl/go1.18.linux-amd64.tar.gz | |
# | |
### | |
if [ $# -eq 0 ] | |
then |
This file contains 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
// Download your SMART Health Card QR code image somewhere on your filesystem. | |
// I'm in California, so I went here: https://myvaccinerecord.cdph.ca.gov/ | |
// | |
// Some links I found useful when hacking this up ... | |
// - https://www.reddit.com/r/Quebec/comments/ndz2uz/how_the_covid_vaccination_qr_code_works_and_what/ | |
// - https://github.com/dvci/health-cards-walkthrough/blob/main/SMART%20Health%20Cards.ipynb | |
// - https://smarthealth.cards | |
// - https://github.com/fproulx/shc-covid19-decoder | |
// - https://github.com/smart-on-fhir/health-cards/blob/main/docs/index.md#every-health-card-can-be-embedded-in-a-qr-code | |
// - https://github.com/smart-on-fhir/health-cards/blob/main/docs/index.md#encoding-chunks-as-qr-codes |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
- Does the design expect failures to happen regularly and handle them gracefully?
- Have we kept things as simple as possible?
I hereby claim:
- I am heatxsink on github.
- I am heatxsink (https://keybase.io/heatxsink) on keybase.
- I have a public key ASCWHH1X4cdGAyIBJWfl4ZhinYAvEXPeo6X3aoz2TEWNnQo
To claim this, I am signing this object:
I hereby claim:
- I am heatxsink on github.
- I am heatxsink (https://keybase.io/heatxsink) on keybase.
- I have a public key whose fingerprint is C7CA 6D79 56CF A5E7 8D96 22BD DBB1 D5D9 9B50 0CF9
To claim this, I am signing this object:
This file contains 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
/* | |
glog-example | |
------------ | |
background | |
--- | |
You probably want to read the source code comments at the top of the glog.go file in | |
the golang/glog repository on github.com. Located here: https://github.com/golang/glog/blob/master/glog.go | |
setup |
This file contains 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
#!/bin/bash | |
### | |
# | |
# Wrap the weird VirtualBox commandline for headless vms | |
# | |
### | |
CMD_HEADLESS=`which VBoxHeadless`; | |
CMD_MANAGE=`which VBoxManage`; |
This file contains 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
<?php | |
class Config { | |
protected static $instance; | |
protected function __clone() { | |
} | |
public static function get() { |
NewerOlder