Skip to content

Instantly share code, notes, and snippets.

View zamicol's full-sized avatar

Zach Collier zamicol

View GitHub Profile
zamicol / How_to_Update_Ubuntu.txt
Last active February 22, 2023 15:41
How to Update Ubuntu
sudo apt update
sudo apt upgrade -y
sudo apt-get autoremove
sudo apt-get dist-upgrade
sudo shutdown -r now
sudo do-release-upgrade
Will adress these errors:
pub, pri, err := ed25519.GenerateKey(nil)
if err != nil {
sig := ed25519.Sign(pri, msg)
if err != nil {
zamicol /
Created September 16, 2022 14:56 — forked from nckroy/
OAuth 2.0 and the Road to Hell

(Scraped from the Internet Wayback Machine. Original content by Eran Hammer / July 26, 2012)

OAuth 2.0 and the Road to Hell

They say the road to hell is paved with good intentions. Well, that’s OAuth 2.0.

Last month I reached the painful conclusion that I can no longer be associated with the OAuth 2.0 standard. I resigned my role as lead author and editor, withdraw my name from the specification, and left the working group. Removing my name from a document I have painstakingly labored over for three years and over two dozen drafts was not easy. Deciding to move on from an effort I have led for over five years was agonizing.

There wasn’t a single problem or incident I can point to in order to explain such an extreme move. This is a case of death by a thousand cuts, and as the work was winding down, I’ve found myself reflecting more and more on what we actually accomplished. At the end, I reached the conclusion that OAuth 2.0 is a bad

zamicol / html_starter_template.html
Last active August 15, 2022 19:51
HTML starter template
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="HTML template, Starter page">
<meta name="author" content="Zamicol">
<title>Simple HTML Starter Template (Boilerplate)</title>
<link rel="stylesheet" href="style.css">
zamicol / hex.go
Created July 23, 2021 22:07
Hex for golang
package hex
import (
// Hex is useful for
zamicol / How to Go (golang)
Created December 18, 2020 20:26
How to Go (golang)
From time to time, I get asked how to program or how to write in Go. Go is used by almost all tech companies now and is essential in industry. Uber, Netflix, Google, Facebook, Twitter, Amazon, etc... all use Go on their servers. The name of the language is "Go" but when using a search engine we call it "golang". If you want to learn Go, here's how:
"Go by Example" and "A Tour of Go" are both essential early learning resources.
Effective Go is one of the best resources when learning Go.
There's a great starter guide:
There is also the playground, which has some constraints and isn't the same as Go locally, but it is still a very useful learning tool.
zamicol / gist:4461c5d6e925ddb80c22bce45e0f85e4
Created December 18, 2020 19:40
Zamicol Git Sync Script
#!/usr/bin/env bash
mkdir -p $ZAMICOL
# Main Repos
PROJ="zamicol jsonflag style gitversion baseconverter "
zamicol / ssh tunnel
Last active December 16, 2020 21:05
ssh tunnel, helpful commands.
Because I keep looking here.
zamicol / json_comma_test.go
Created December 7, 2018 02:09
Golang json trailing comma test
package main
import (
var jsonText = `{
zamicol / translate.go
Created March 18, 2018 06:59 — forked from hvoecking/translate.go
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
// The MIT License (MIT)
// Copyright (c) 2014 Heye Vöcking