原创 brew 源 & pip 源
brew源: https://www.zhihu.com/question/31360766 摘要 1. 替換formula 索引的鏡像(即 brew update 時所更新內容) cd "$(brew --repo)" git remo
原创 ubuntu 14.04 安裝python包psycopg2
http://stackoverflow.com/questions/28253681/you-need-to-install-postgresql-server-dev-x-y-for-building-a-server-side-ext
原创 定頻數據收集方案
場景: 每隔一定時間, 從其他系統(可能是異構網絡)獲取相關數據。 1. 消息隊列方案 rabbitMQ 考慮點: 1. 消息保證穩定可靠被處理(因此隊列需要聲明爲可持久化的, 生產者push消息的時候delivery_mode爲2
原创 mac上製作ubuntu引導盤
https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick https://tutorials.u
原创 postgresql修改數據庫編碼
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'your_database'; 先用 \encoding 指令看看編碼是否
原创 谷歌雲主機登陸
踩過幾個坑 - 不需要另外開防火牆規則 - 用 ssh -v root@host 沒辦法追出來問題出在哪 - 通過其命令行登陸後,手工添加pub key 到 ~/.ssh/authorized_keys 然後設定正確的訪問權限。仍然沒有p用