Skip to content

Instantly share code, notes, and snippets.

View tankxu's full-sized avatar
:octocat:

Tank Xu tankxu

:octocat:
View GitHub Profile
@tankxu
tankxu / README.md
Created March 17, 2022 09:27 — forked from pdanford/README.md
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@tankxu
tankxu / ttc2ttf.py
Last active August 29, 2015 14:23 — forked from kayahr/ttc2ttf.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer”
#I thought porting it to Python could be both a challenge and useful
from sys import argv, exit, getsizeof
from struct import pack_into, unpack_from
def ceil4(n):