Skip to content

Instantly share code, notes, and snippets.

View fatum12's full-sized avatar

Alexey ilyaskin fatum12

View GitHub Profile
@fatum12
fatum12 / profiles.json
Last active January 8, 2020 13:33
git bush profile for Windows Terminal
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{00000000-0000-0000-ba54-000000000002}",
"copyOnSelect": true,
@fatum12
fatum12 / nginx.conf
Created September 23, 2019 18:21
Block access from Tor ip range with nginx
server {
# ...
include /etc/nginx/snippets/tor-block.conf;
# ...
}
@fatum12
fatum12 / ttc2ttf.pe
Last active April 24, 2024 02:45
Unpack .ttc and .dfont to .ttf using FontForge
#!/usr/local/bin/fontforge
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc
fonts = FontsInFile($1)
n = SizeOf(fonts)
i = 0
while (i < n)
Open($1 + "(" + fonts[i] + ")", 1)
index = ToString(i + 1)
# Install ttfautohint on Ubuntu 12.04 LTS
# @author: Jean Lescure
# 2014/04/23
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder
cd /tmp
git clone git://repo.or.cz/ttfautohint.git
cd ttfautohint
# Handle bootstrap's dependency: automake