Skip to content

Instantly share code, notes, and snippets.

2014-09-24 01:32:15 +0800
./configure
--prefix=/usr/local/Cellar/llvm/3.5.0
--enable-optimized
--disable-bindings
--enable-targets=host
--enable-shared
checking for C compiler default output file name... a.out
2014-10-13 18:07:36 +0800
./configure
--with-features=huge
--enable-multibyte
--with-macarchs=x86_64
--enable-perlinterp
--enable-rubyinterp
--enable-tclinterp
--with-tlib=ncurses
@netheril96
netheril96 / typescript.html
Last active August 29, 2015 14:07
install macvim --with-python3 trouble
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. http://ziz.delphigl.com/tool_aha.php -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
<title>stdin</title>
</head>
<body>
<pre>
@netheril96
netheril96 / zstyle
Created October 14, 2014 09:15
zstyle output
cache-path
:completion::complete:* /Users/rsy/.oh-my-zsh/cache/
command
:completion:*:*:*:*:processes 'ps -u rsy -o pid,user,comm -w -w'
ignored-patterns
:completion:*:*:*:users adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp usbmux uucp vcsa wwwrun xfs '_*'
list-colors
:completion:*:*:kill:*:processes '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
:completion:* ''
matcher-list
2014-10-20 22:48:10 +0800
./configure
--disable-dependency-tracking
--prefix=/usr/local/Cellar/poppler/0.26.5
--enable-xpdf-headers
--enable-poppler-glib
--disable-gtk-test
--enable-introspection=yes
--disable-poppler-qt4
@netheril96
netheril96 / count_android_patterns.py
Created September 25, 2015 11:09
Algorithm to count the number of Android patterns
#!/usr/bin/env python
# The Android dots are labelled as
# 0 1 2
# 3 4 5
# 6 7 8
# The following is a handcoded table where table[i][j] is the number crossed by path i -> j.
table = [
[None, None, 1, None, None, None, 3, None, 4],
from __future__ import print_function
# The recursive relation is
# f(0) = ''
# f(n) = [s + 'a' for s in f(n - 1)] + [s + 'b' for s in f(n - 1)]
def allABs1(N):
if N <= 0:
return ['']
res = []
@netheril96
netheril96 / # openconnect - 2016-07-14_16-03-27.txt
Created July 14, 2016 08:08
openconnect on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for openconnect on Mac OS X 10.11.5
Build date: 2016-07-14 16:03:27
#!/usr/bin/env python
import math
import sys
import re
def main():
fSTAR = sys.argv[1]
header_dict = {}
This file has been truncated, but you can view the full file.
50025 verbose etag https://registry.npmjs.org/string-width from cache
50026 verbose get saving string-width to /Users/rsy/.npm/registry.npmjs.org/string-width/.cache.json
50027 verbose correctMkdir /Users/rsy/.npm correctMkdir not in flight; initializing
50028 http 200 https://registry.npmjs.org/has-unicode
50029 verbose headers { server: 'nginx/1.10.3',
50029 verbose headers 'content-type': 'application/json',
50029 verbose headers 'last-modified': 'Thu, 23 Jun 2016 22:10:28 GMT',
50029 verbose headers etag: 'W/"576c5e54-18f9"',
50029 verbose headers 'content-encoding': 'gzip',
50029 verbose headers 'cache-control': 'max-age=300',