Skip to content

Instantly share code, notes, and snippets.

View gnagel's full-sized avatar
🥳
Cranking on new projects, and nuking tech debt with a flamethrower 🔥

Glenn Nagel gnagel

🥳
Cranking on new projects, and nuking tech debt with a flamethrower 🔥
View GitHub Profile
@gnagel
gnagel / tar_helper.go
Created February 25, 2023 15:35 — forked from maximilien/tar_helper.go
Creating tarball in Golang
package tar_helper
import (
"archive/tar"
"compress/gzip"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
from queue import Queue
from threading import Thread
from time import sleep
from rich.live import Live
from rich.panel import Panel
@gnagel
gnagel / TXF Specification Document v042.txt
Created March 19, 2022 14:18
TXF Specification Document v042
* TXF Spec Version 042
Topic: Tax Exchange Format
Change Date: 11/30/11
File: TXF
Version: 042
____________________________________________________________
TABLE OF CONTENTS BY SECTION HEADINGS

WARNING MAY BE INCORRECT AND INCOMPLETE, USE AT YOUR OWN RISK

Install Proxmox, RancherOS, in a VM with Rancher 2.0 and Portainer

Setup Proxmox

  1. Install Proxmox 5.3
  2. Console/SSH into Proxmox
  3. nano /etc/apt/sources.list
  4. edit the file to look like this
@gnagel
gnagel / blackjack.py
Last active January 12, 2021 08:45
CodeSkulptor can't save right now :-(
#
# CodeSkulptor URL:
# http://www.codeskulptor.org/#user40_cA4au5WIDr_0.py
#
#
# blackjack.py
# 2015-07-25
# github.com/gnagel
#
#
@gnagel
gnagel / istio-gke-kiali
Created August 29, 2019 13:57 — forked from lucasponce/istio-gke-kiali
Install Istio in Google Kubernetes Engine + Update Kiali to latest
[0] Pre-requisites
Install google-cloud-sdk in your laptop
Documentation: https://cloud.google.com/sdk
Install helm in your laptop.
Documentation: https://helm.sh/docs/using_helm/#installing-helm
Get latest Istio.
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.1.7 sh -
#!/usr/bin/env bash
#
# 1. Install the hyperkit VM for local kubernetes development
#
# > https://github.com/moby/hyperkit
#
brew install hyperkit jq
brew link --overwrite hyperkit
#
# CodeSkuptor URL:
# http://www.codeskulptor.org/#user40_werrOBjB7u_0.py
#
# spaceship.py
# github.com/gnagel
# 2015/08/01
#
#
#

Templating engines and React.js

I want to make a shopify theme using react.

How shopify theming works

You have a bunch of template files that have access to global server-side variables with liquid e.g. {{ product.title }}. Think wordpress or any other theme-based system.

 /theme
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Draft • Decorators</title>
<link rel="stylesheet" href="../../dist/Draft.css" />
</head>
<body>
<div id="target"></div>
<script src="../../node_modules/react/dist/react.js"></script>