Skip to content

Instantly share code, notes, and snippets.

View hbprotoss's full-sized avatar
🎯
Focusing

往生堂半价券 hbprotoss

🎯
Focusing
View GitHub Profile
# 单条
100w
C++
SET: 97837.79 requests per second
GET: 99830.29 requests per second
INCR: 98941.33 requests per second
LPUSH: 99088.39 requests per second
RPUSH: 99019.70 requests per second
@hbprotoss
hbprotoss / Google protobuf installation on Mac
Created March 9, 2020 11:48 — forked from rajkrrsingh/Google protobuf installation on Mac
Steps to Install google protobuf on Mac
$wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2
$tar xvf protobuf-2.5.0.tar.bz2
$cd protobuf-2.5.0
$./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi"
$make -j 4
$sudo make install
$protoc --version
@hbprotoss
hbprotoss / kill_double_typing.cpp
Last active January 25, 2021 03:58
解决mac键盘双击问题
// alterkeys.c
// http://osxbook.com
//
// You need superuser privileges to create the event tap, unless accessibility
// is enabled. To do so, select the "Enable access for assistive devices"
// checkbox in the Universal Access system preference pane.
// modified by SF-Zhou
// To: Kill Double Typing on MacBook
// Complile: g++ -O2 -Wall -o kill_double_typing kill_double_typing.cpp -framework ApplicationServices