brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/
is a symlink to /usr/local/Cellar/redis/x.y.z
(e.g., 2.8.7
)
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
pdftk original.pdf output uncompressed.pdf uncompress | |
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf | |
pdftk stripped.pdf output final.pdf compress |
/* | |
----------------------------------- | |
Emoji - natural display for the web | |
----------------------------------- | |
These font face definitions allows to display emoji glyphs intermingled with | |
arbitrary characters outside emoji unicode blocks. | |
Usage |
#!/bin/bash | |
# | |
# put this script in ~/Library/Rime, then deploy Rime for Squirrel: | |
# ./rime_deployer --build . "/Library/Input Methods/Squirrel.app/SharedSupport/" | |
# see other supported options: | |
# ./rime_deployer | |
DYLD_LIBRARY_PATH="/Library/Input Methods/Squirrel.app/Contents/Frameworks" "/Library/Input Methods/Squirrel.app/Contents/MacOS/rime_deployer" $@ |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
OS X 10.11, aka El Capitan, comes with a new system font for Chinese users, named PingFang, it includes 6 weights for both Simplified and Traditional Chinese. The same font also appear on iOS 9 as the default UI font, though Apple didn't mention it explicitly.
If you are in Apple Developer Program (costs 99 USD a year), then you can get them now at their developer resource site, otherwise you can wait for their public beta to come out in July or wait for the public release this fall (a free upgrade like previous release).
Or you can get PingFang.ttc
from your developer friends, though you are probably violating its font license one way or another, but I am not a lawyer so freedom to you.
class TracePoint | |
class Middleware | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
stats = {} | |
trace = TracePoint.new(:call) do |tp| |
#!C:/Python27/python.exe | |
# | |
# Convert PDF files to Microsoft Office Word compatible doc/docx files, | |
# using LibreOffice's command line interface. | |
# | |
# http://stackoverflow.com/questions/26358281/convert-pdf-to-doc-python-bash | |
# http://ask.libreoffice.org/en/question/20111/converting-files-using-soffice-convert-to-with-embedded-images-html-to-doc/ | |
# http://cgit.freedesktop.org/libreoffice/core/tree/filter/source/config/fragments/filters | |
# |