Skip to content

Instantly share code, notes, and snippets.

View premist's full-sized avatar

Minku Lee premist

View GitHub Profile
# Converts full name font specification on .ass subtitle to
# PostScript name to be used with ffmpeg+coretext on macOS
# coretext can't locate "맑은 고딕" (display name / full name) specified on ass file,
# however it can locate when "MalgunGothicRegular" (postscript name) is specified.
ASS_PATH = ARGV[0]
NEWASS_PATH = ARGV[1]
FONTS_DIR = ARGV[2]
@font-face {
font-family: "IBM Plex Mono PR";
font-style: normal;
font-weight: normal;
src: url(data:font/truetype;charset=utf-8;base64,AAEAAAASAQAABAAgRFNJRwAAAAEAAbnoAAAACEdERUYbZhtJAAGqhAAAAIJHUE9TGyxdRAABqwgAAAUkR1NVQjFugWoAAbAsAAAJuk9TLzKLlmgVAAABqAAAAGBjbWFwo5cS6QAAD1gAAApmY3Z0IAIsDb8AABy4AAAAPmZwZ20GWZw3AAAZwAAAAXNnYXNwABgAIQABqnQAAAAQZ2x5ZmcvnUgAACOkAAFhNGhlYWQNXRFqAAABLAAAADZoaGVhBX0DogAAAWQAAAAkaG10eF7p6RsAAAIIAAANUGxvY2Fc/wIGAAAc+AAABqptYXhwBYoDTgAAAYgAAAAgbmFtZdvUWBMAAYTYAAAJiXBvc3QD6EspAAGOZAAAHA9wcmVw6RlJewAAGzQAAAGCAAEAAAACAAChToylXw889QAJA+gAAAAA1mLtmQAAAADWYt+S/wj/BQJxBFQAAAAJAAIAAAAAAAAAAQAABAH+7QAAAlj/CP8IAnEAAQAAAAAAAAAAAAAAAAAAA1QAAQAAA1QAywAiAGgABgABAAAAAAAKAAACAAIZAAMAAQADAlgBLAAFAAACigJYAAAASwKKAlgAAAFeACsBNQAAAgsECQUCAwACA6AAAm9QACB7AAAAAAAAAABJQk0gAAAAAPsCAwz/JAEsBAEBEyAAAZcAAAAAAgQCugAAACAAAwJYACAAAAAAAlgAAAJYAAACWABHAlgARAJYAGsCWABeAlgARAJYAE0CWABNAlgATAJYAEQCWABMAlgAbQJYAG4CWABeAlgAdgJYAFQCWAA+AlgAbQJYAEsCWABrAlgARAJYAE4CWABMAlgAJgJYAGYCWABLAlgAIQJYAEgCWABBAlgAXAJYAC
@premist
premist / vpnup.sh
Created April 15, 2018 07:37
$0.01/hour self-destructing VPN server on Google Cloud Platform
#!/bin/bash
GCP_PROJECT=my-gce-project
GCP_ZONE=asia-northeast1-b # Tokyo
GCP_MACHINE_TYPE=g1-small # f1-micro is also fine
VPN_NAME=my-vpn
VPN_PSK=somesufficientlylongpsk
VPN_USERS=myself:mysomesortofsecurepassword
.ui.input input, html, .markdown-body {
font-family: "Ringside Narrow SSm", BlinkMacSystemFont, "Apple Color Emoji";
}
.monospace, .markdown-body pre {
font-family: "Meslo LG M";
}
.ui.top.inverted.labeled.menu .title.glow {
background: #333;
@premist
premist / styles.less
Created May 23, 2017 01:58
atom-seti-stylesheet.less
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
@premist
premist / ffmpeg2.rb
Created June 17, 2016 11:52 — forked from victusfate/ffmpeg2.rb
homebrew formula for ffmpeg2
require 'formula'
class Ffmpeg2 < Formula
homepage 'http://ffmpeg.org/'
url 'http://ffmpeg.org/releases/ffmpeg-2.0.tar.bz2'
sha1 '7583c25cd41b6b4741819b977672627abb772f7e'
head 'git://git.videolan.org/ffmpeg.git'
option "without-xvid", "Disable Xvid MPEG-4 video encoder"
@premist
premist / keybase.md
Created July 9, 2015 03:31
keybase.md

Keybase proof

I hereby claim:

  • I am premist on github.
  • I am premist (https://keybase.io/premist) on keybase.
  • I have a public key whose fingerprint is 448C E46C A714 48F8 7788 E57C F530 9452 F2EF 9CEB

To claim this, I am signing this object:

@premist
premist / 01-mail.md
Last active April 20, 2018 05:51
CloudFlare has outage on one of their edge (ICN), but not noticing their customers

Minku Lee :

I'm geographically located in Seoul, Korea and traffic to api.fmf.io always get routed via LAX servers. My server is located in Tokyo, Japan so it adds up a lot of delay on the request. Tried with different ISPs and all same result. My friends are also experiencing this with their free plan enabled website, but I'm also experiencing this in pro-enabled paid plans.

This lasted for a quite long time (over several month) and my friend got a response from CloudFlare rep. that it's a temporarily routing problem and will be resolved soon. However seems like this is not the case.. If this is not getting resolved, I'm considering and testing migration of all my company and personal paid plans to Fastly.


Minku Lee :

@premist
premist / gpac.rb
Last active August 29, 2015 14:04
Head-only GPAC formula for Homebrew
require 'formula'
# Borrowed from https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gpac.rb
# License : https://github.com/Homebrew/homebrew/blob/master/LICENSE.txt
# Installs a relatively minimalist version of the GPAC tools. The
# most commonly used tool in this package is the MP4Box metadata
# interleaver, which has relatively few dependencies.
#
# The challenge with building everything is that Gpac depends on
@premist
premist / ipfw.conf
Last active December 27, 2015 15:49
Vagrant LaunchDaemon to forward ports Reference : http://www.dmuth.org/node/1404/web-development-port-80-and-443-vagrant
#
# Flush all of our pre-existing rules.
#
flush
#
# Forward port 80 to our Vagrant instance.
#
add 100 fwd 127.0.0.1,8080 tcp from any to me 80