This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install freetype gettext cmake git libtool mcrypt oniguruma re2c \ | |
autoconf libelf readline automake mysql-connector-c pcre \ | |
gd icu4c libmemcached pkg-config tbb imagemagick binutils \ | |
curl imap-uw libxslt libevent sqlite \ | |
openssl gawk [email protected] | |
brew install --build-from-source --cc=gcc-4.9 glog boost | |
brew install \ | |
https://gist.githubusercontent.com/romualdr/517d3155a3da8f5f1e72/raw/c7de5baca0598a2a87712df5a81598628faeb42d/libdwarf.rb \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Jemallocfb < Formula | |
homepage 'http://www.canonware.com/jemalloc/download.html' | |
url 'https://src.fedoraproject.org/repo/pkgs/jemalloc/jemalloc-3.6.0.tar.bz2/md5/e76665b63a8fddf4c9f26d2fa67afdf2/jemalloc-3.6.0.tar.bz2' | |
md5 'e76665b63a8fddf4c9f26d2fa67afdf2' | |
keg_only "We're just a patched version." | |
# __GLIBC__ is not defined, but we still want hooks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake . \ | |
-DCMAKE_CXX_COMPILER=$(brew --prefix [email protected])/bin/g++-4.9 \ | |
-DCMAKE_C_COMPILER=$(brew --prefix [email protected])/bin/gcc-4.9 \ | |
-DCMAKE_ASM_COMPILER=$(brew --prefix [email protected])/bin/gcc-4.9 \ | |
-DLIBIBERTY_LIB=$(brew --prefix [email protected])/lib/x86_64/libiberty-4.8.a \ | |
-DCMAKE_INCLUDE_PATH="/usr/local/include:/usr/include" \ | |
-DCMAKE_LIBRARY_PATH="/usr/local/lib:/usr/lib" \ | |
-DLIBEVENT_LIB=$(brew --prefix libevent)/lib/libevent.dylib \ | |
-DLIBEVENT_INCLUDE_DIR=$(brew --prefix libevent)/include \ | |
-DICU_INCLUDE_DIR=$(brew --prefix icu4c)/include \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /root/zzq | |
. ./host.sh | |
cd logs | |
for host in ${hosts[@]}; do | |
if [ ! -e $host ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
logfile=big-log.txt | |
keyStr="" | |
valStr="" | |
awk -F{ '{print $2}' $logfile | awk -F, '{ | |
for (i=1;i<=5;i++){ | |
print $i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
搜狗双拼口诀 | |
搜狗双拼的规则 | |
双拼是用定义好的单字母代替较长的多字母韵母或声母来进行输入的一种方式。 | |
例如:如果 T=t, M=ian,键入两个字母 “TM” 就会输入拼音 “tian” 。 | |
使用双拼可以减少 击键次数,但是需要记忆字母对应的键位,但是熟练之后效率会有一定提高。 | |
如果 使用双拼,要在设置属性窗口把双拼选上即可。 | |
对于单韵母字,需要在前面输入字母 O+韵母。例如:输入 OA → A ,输入 OO → O , 输入 OE → E 。 | |
而在自然码双拼方案中,和自然码输入法的双拼方式一致,对于单韵 母字,需要输入双韵母,例如:输入 AA → A ,输入 OO → O ,输入 EE → E 。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Dark powered mode of SpaceVim, generated by SpaceVim automatically. | |
let mapleader="\<Space>" | |
let g:spacevim_enable_debug = 1 | |
let g:spacevim_realtime_leader_guide = 1 | |
call SpaceVim#layers#load('incsearch') | |
call SpaceVim#layers#load('lang#c') | |
call SpaceVim#layers#load('lang#elixir') | |
call SpaceVim#layers#load('lang#go') | |
call SpaceVim#layers#load('lang#haskell') | |
call SpaceVim#layers#load('lang#java') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
xpath=$GOPATH/src/golang.org/x; | |
cd $xpath; | |
mkdir -p $xpath; | |
ls; | |
for name in "glog" "image" "perf" "snappy" "term" "sync" "winstrap" "cwg" "leveldb" "text" "net" "build" "protobuf" "dep" "sys" "crypto" "gddo" "tools" "scratch" "proposal" "mock" "oauth2" "freetype" "debug" "mobile" "gofrontend" "lint" "appengine" "geo" "review" "arch" "vgo" "exp" "time" | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://benmezger.me/post/109706270421/git-ignore-file-lines | |
Git: ignore file lines | |
I’ve always asked myself, if git can ignore files (using .gitignore), can it also ignore file lines? Well, not by default, but you can hack it. | |
It might sound stupid, but say you are working with a bunch of guys on a project, where somewhere in an important file you have something like this; | |
... | |
def connect_db(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This demonstrates how to make client side certificates with go | |
First generate the certificates with | |
./makecert.sh [email protected] | |
Run the server in one terminal | |
go run server.go |
OlderNewer