超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
*** snipMate.vim.old 2009-04-23 02:30:12.703125000 +0900 | |
--- snipMate.vim 2009-04-23 01:41:56.890625000 +0900 | |
*************** | |
*** 187,190 **** | |
--- 187,202 ---- | |
let num = inputlist(snippet) - 1 | |
return num == -1 ? '' : s:multi_snips[a:scope][a:trigger][num][1] | |
endf | |
+ | |
+ fun GetSnippetsList(ft) |
# Two ENV variables control the 'gem' command: | |
# | |
# GEM_HOME: the single path to a gem dir where gems are installed | |
# GEM_PATH: a standard PATH to gem dirs where gems are found | |
# | |
# A gem directory is a directory that holds gems. The 'gem' command will lay | |
# out and utilize the following structure: | |
# | |
# bin # installed bin scripts | |
# cache # .gem files ex: cache/gem_name.gem |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#!/usr/bin/env python | |
# I was frustrated that no matter what buffer setting I passed to communicate, | |
# I could not get stdout from my subprocess until the process had completed. | |
# I googled around and came up with this, which illustrates the problem and a | |
# solution. | |
# http://stackoverflow.com/questions/2804543/read-subprocess-stdout-line-by-line | |
# http://bugs.python.org/issue3907 | |
# http://docs.python.org/library/io.html |
#!/bin/bash | |
JENKINS_URL=$1 | |
NODE_NAME=$2 | |
NODE_SLAVE_HOME='/home/build/slave' | |
EXECUTORS=1 | |
SSH_PORT=22 | |
CRED_ID=$3 | |
LABELS=build | |
USERID=${USER} |
日時: | 2015-01-10 |
---|---|
作: | @voluntas |
バージョン: | 0.3.4 |
url: | http://voluntas.github.io/ |
注意
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from contextlib import contextmanager | |
@contextmanager | |
def ctxmgr(): | |
print('before') |
秘密鍵など誤ってコミットしてしまった場合に履歴を完全に削除する手順
参考:6.4 Git のさまざまなツール - 歴史の書き換え
$ git checkout -b clean-key-file
更新: | 2017-05-09 |
---|---|
作者: | @voluntas |
バージョン: | 3.14 |
URL: | http://voluntas.github.io/ |
MQTT をググって調べた人向け