Skip to content

Instantly share code, notes, and snippets.


tz ✨ tzmartin

View GitHub Profile
tzmartin /
Created Mar 20, 2021
Example Bibtext reference for a Github repository


If you find this code useful, please consider citing

@misc{[PROJECT ID],
    title={[PROJECT TITLE]},
    author={[LNAME, FNAME]},
tzmartin /
Created Aug 8, 2020
How to Submit a Show HN

How to Submit a "Show HN"

If you're sharing your own work and there's a way to try it out, put "Show HN" in the title. Make sure you've read the Show HN guidelines:

Posts without URLs get penalized, so when you submit, put your site in the URL field and leave the text field blank.

Add a comment to the thread giving the backstory of how you came to work on this, and explaining what's different about it. That tends to seed discussion in a good direction.

Include a clear statement of what your project is or does. If you don't, the discussion will consist of "I can't tell what this is". >

tzmartin /
Created Jul 24, 2020
Download files from Google Drive using wget in Jupyter or Colab

Programmatically download files from a Google Drive link:

For large file run the following command with necessary changes in FILEID and FILENAME:

!wget --load-cookies /tmp/cookies.txt "$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate '' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
tzmartin /
Last active Jan 3, 2021
How To Build Your Own Maker Workbench

Maker Workbench

Archived from

AUGUST 5, 2016

It can be tough working on a maker project if you don’t have a good space to work. Many times my electronics work surface was an ESD mat on the dining room table, but as my projects grew and my family grew I was under increasing pressure to find somewhere else to work. (Really it was the 3D printer that put my wife over the edge — rightfully so). I also didn’t want to have my electronics out in the garage which is my woodworking shop and full of saw dust.

The task of finding a decent place to work on electronics was more of a challenge than I expected. Lots of folks who left the dining room table seem to work on card tables or random repurposed Ikea tables and benches or purchase very expensive commercial electronics benches that are out of the range of most folks working part time as a maker. I knew there must be something in the middle that could be

tzmartin /
Created Dec 8, 2018
Pretty git "railroad track" log report
git log --graph --pretty=\"format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'\" --abbrev-commit --date=relative

Release Flow

git log                 engineers
  ↳ Engineering Notes     ↳ eng managers
    ↳ Release Notes         ↳ product manager
      ↳ Blog Post             ↳ solution managers
        ↳ $$$$                  ↳ customers
tzmartin / main.go
Created Mar 17, 2018
Simple static server in go
View main.go
package main
import (
func printRecovery() {
tzmartin / uploader.go
Created Sep 21, 2017 — forked from TheGU/uploader.go
Golang to upload file to google drive with progress bar using Google API
View uploader.go
package main
import (
tzmartin / index.js
Created Sep 19, 2017
This repository contains two examples of how to use linux-icons with Electron for tray icons. Source: linux-icons-electron-example
View index.js
const {
} = require('electron')
const icons = require('linux-icons')
let win
tzmartin / Info.plist
Created Jun 24, 2017 — forked from nathankerr/Info.plist
Registering a Go app as a protocol handler under Mac OS X
View Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">