Skip to content

Instantly share code, notes, and snippets.

@leesei
leesei / git-su
Last active March 29, 2020 11:43 — forked from pasela/git-su
git-su - switches user and sshCommand in the current repository
#!/bin/bash
#
# git-su - Git Switch User
# ========================
#
# git-su switches user and sshCommand in the current repository.
#
# USAGE
# -----
#
@leesei
leesei / ttc2ttf.py
Created November 7, 2017 03:57 — forked from kayahr/ttc2ttf.py
Python script to convert a true type font collection into separate ttf files. Copy from http://pastebin.com/QXcAtP24
#!/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):
@leesei
leesei / mdtoc.rb
Last active November 1, 2017 10:04 — forked from pyro2927/toc.rb
#ruby #markdown Generate TOC for markdown file
#!/usr/bin/env ruby
# sanity checks
if ARGV.count == 0
puts "You must provide a file name"
return
elsif File.exist?(ARGV.first) == false
puts "That file doesn't exist"
return
end