Skip to content

Instantly share code, notes, and snippets.

View heatxsink's full-sized avatar
👽
They exist.

Nick Granado heatxsink

👽
They exist.
View GitHub Profile
#!/bin/bash
####
# Example usage ...
#
# sudo ./go-upgrade.sh https://go.dev/dl/go1.18.linux-amd64.tar.gz
#
###
if [ $# -eq 0 ]
then
@heatxsink
heatxsink / smart-health-card-example.go
Last active March 9, 2024 18:16
SMART Health Card (COVID19 Vaccine) QR Code processing / decoding in golang
// 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
@heatxsink
heatxsink / README.md
Last active July 20, 2020 03:37
Nested go.rice templates example using golang "net/http" webserver.

To run this example ...

  • mkdir templates
  • mv *.tmpl templates/
  • go get github.com/GeertJohan/go.rice
  • go generate
  • go run main.go
@heatxsink
heatxsink / service-checklist.md
Last active July 21, 2020 00:47 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?

Keybase proof

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:

Keybase proof

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:

@heatxsink
heatxsink / glog-example.go
Last active March 25, 2023 06:02
An example of how to use golang/glog.
/*
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
#!/bin/bash
###
#
# Wrap the weird VirtualBox commandline for headless vms
#
###
CMD_HEADLESS=`which VBoxHeadless`;
CMD_MANAGE=`which VBoxManage`;
<?php
class Config {
protected static $instance;
protected function __clone() {
}
public static function get() {
@heatxsink
heatxsink / cookie_test.php
Created September 16, 2010 09:21
cookie_test.php