ChangeLog を書く際によく使われる英語をまとめました。
ほとんど引用です。
#include <ev.h> | |
#include <unistd.h> | |
#include <stdio.h> // for puts | |
// every watcher type has its own typedef'd struct | |
// with the name ev_TYPE | |
ev_io stdin_watcher; | |
ev_timer timeout_watcher; | |
// all watcher callbacks have a similar signature |
# draft | |
# view current data quota | |
sudo iptables -nvL -t filter --line-numbers | |
# init | |
sudo iptables -I OUTPUT -p tcp --sport <target-port> -m quota --quota <quota-bytes> -j ACCEPT | |
sudo iptables -I OUTPUT -p tcp --sport <target-port> -j DROP | |
# reset quota |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
#include <stdio.h> | |
void DumpHex(const void* data, size_t size) { | |
char ascii[17]; | |
size_t i, j; | |
ascii[16] = '\0'; | |
for (i = 0; i < size; ++i) { | |
printf("%02X ", ((unsigned char*)data)[i]); | |
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
ascii[i % 16] = ((unsigned char*)data)[i]; |
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |