Skip to content

Instantly share code, notes, and snippets.

@yrcjaya
yrcjaya / split_ttc_font_to_ttf.py
Created October 29, 2015 09:32
Convert font TTC to TTF
"""Convert TTC font to TTF using fontforge with python extension.
**Warning** The scripts saves splitted fonts in the current working directory.
Usage:
split_ttc_font_to_ttf.py Droid.ttc
"""
import sys
import fontforge
@jason5ng32
jason5ng32 / surge.conf
Last active November 6, 2024 06:39
Surge Configs ( for 2.x )
[General]
loglevel = notify
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29,223.5.5.5,114.114.115.115
# external-controller-access = PASSWORD@0.0.0.0:6155
# ipv6 = true
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD
@Rottweiler
Rottweiler / gist:44fe4461a4552acf303a
Last active December 19, 2024 15:51
Heavily obfuscated UnConfuserEx tool
UnConfuserEx https://mega.nz/#!U1hxwQKb!7WFBSjrZgg8ieFp15K0RJW8rWuyMHZTO9bpCekhBQfY
ConfuserExDupPopPatcher https://mega.nz/#!IkhHzZDS!vPYABdYJtuDIGJBHdKzwIqLajxugJaNlENWr5CWjNlo
ConfuserExStringDecryptor https://mega.nz/#!plhxRJyY!Vq9eRS-gixC__q75860gDD8Tcm_ncOfCCCP_HQKguUM
ConfuserExCallFixer https://mega.nz/#!0gZFlbwC!KFka_Kxe-GuU-d8COni91xmGPbiRnbX6lBLYAomn7No
I'm not responsible for what you do with these -- they may very well be backdoored
@jaydenseric
jaydenseric / ffmpeg-web-video-guide.md
Last active August 23, 2025 09:22
A quick guide to using FFmpeg to create cross-device web videos.

Video conversion with FFmpeg

Install

On mac:

  1. Download the latest release.
  2. Extract the binary and place it in /usr/local/bin.

Command basics

@jcupitt
jcupitt / dominant-lab.py
Last active February 15, 2023 16:14
find dominant colour in an 8-bit RGB Image with libvips python
#!/usr/bin/python
import sys
from gi.repository import Vips
N_BINS = 10
BIN_SIZE = 256 / N_BINS
im = Vips.Image.new_from_file(sys.argv[1], access = Vips.Access.SEQUENTIAL)
@yangshaoqin
yangshaoqin / 20150404
Last active August 29, 2015 14:18
Blog-马克飞象试用(maxiang.info)
#马克飞象试用(maxiang.info)
@(博客)
-----------
*目录*:
[TOC]
##引言
之前一直以为Markdown很高深,是程序员用的,等遇到后,才发现,这居然是很多人都在用的码字工具,这也是自己一直在找的一个工具——一个可以随时随地打开就能码字的工具。是的,它简单地就像一个工具。很早的时候,看到[阮一峰](http://www.ruanyifeng.com/blog/2015/02/future-of-dom.html)的博客,被那种简洁的风格迷住。现在觉得通过Markdown,自己也可以完成这么一个博客,一个脱离了花哨,只留下纯文字之美、幽幽芳香的博客。
@noboomu
noboomu / cmyk2rgb
Last active December 15, 2020 10:23
Imagemagick CMYK to RGB on OS X.
convert -profile "/System/Library/ColorSync/Profiles/sRGB Profile.icc" -colorspace RGB source.jpg destination.jpg
@nolanlawson
nolanlawson / wishlist.md
Last active May 3, 2021 11:51
Safari IndexedDB/WebSQL bug wishlist

Safari IndexedDB/WebSQL bug wishlist

Big overview of what's missing in Safari 7.1+ and iOS 8+ in terms of browser storage.

Updated May 25th 2016

Safari (general)

@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing