Skip to content

Instantly share code, notes, and snippets.

# 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]
@premist
premist / cgminer.rb
Last active August 13, 2021 01:29
Install cgminer on Mac OS X using homebrew
require 'formula'
# Original : https://raw.github.com/Kaelten/homebrew/master/Library/Formula/cgminer.rb
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
url 'https://github.com/ckolivas/cgminer/archive/v2.10.4.zip'
sha1 'cf592852b913749378db7f43a561b90c2b6448be'
depends_on 'automake' => :build
@premist
premist / stage6-3.sh
Created January 12, 2012 15:54
Installing GitLab on CentOS 6.2 (Part 2)
passwd gitlab
@premist
premist / stage0-change-mirror-to-korean.sh
Created January 12, 2012 15:50
Installing GitLab on CentOS 6.2 (Part 1)
curl https://raw.github.com/gist/1588091/8b7b7a203074231f3dc75bdee48b3017078fb621/CentOS-Base.repo -o /etc/yum.repos.d/CentOS-Base.repo
curl https://raw.github.com/gist/1588091/2e5ab750cd0603dd7210ea7a999d15f9aadae711/epel.repo -o /etc/yum.repos.d/epel.repo
@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 / 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 / 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"