サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
[mysqld] | |
console | |
## character set | |
character_set_server = utf8mb4 | |
collation_server = utf8mb4_general_ci | |
## sql | |
sql_mode = TRADITIONAL | |
transaction_isolation = READ-COMMITTED |
curl www.quadrantem.com/~k_wizard/vimprtan/20120423vimperator3.png | pngtopnm | pnmscale -xsize 200 | pnmquant 256 | ppmtosixel | perl -p -e 's/^\x90/\x1bP/' | perl -p -e 's/\x9C/\x1b\\/' |
#include <alloca.h> | |
#include <stdio.h> | |
#pragma once | |
/* | |
* (v)aasprintf macro: | |
* alloca based asprintf | |
* | |
* usage: |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my (%sequential, %random); | |
my ($type, $blocksize, $ratio, $iodepth, $header); | |
while (my $line = <STDIN>) { |
/* | |
* TSM - Unicode Handling | |
* | |
* Copyright (c) 2011-2012 David Herrmann <[email protected]> | |
* Copyright (c) 2011 University of Tuebingen | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, |
# show the color combinations {{{2 | |
# http://www.linuxfocus.org/English/May2004/article335.shtml | |
function ansicolortable() { | |
local -A sgr; sgr=(0 Normal 1 Bright 4 Underline 5 Blink 7 Reverse) | |
local -A a; local -A screen_attr | |
while getopts 01457s arg; do | |
case "$arg" in | |
0|1|4|5|7) a+=($arg $sgr[$arg]);; | |
s) screen_attr=(0 d 1 b 4 u 5 B 7 r);; | |
*);; |
#!/usr/bin/env python | |
import sys, termios, StringIO | |
import Image # PIL | |
class SixelConverter: | |
def __init__(self, image, f8bit = False): | |
if f8bit: # 8bit mode |
#!/usr/bin/env python | |
import sys, os, termios, select | |
TIMEOUT=2 | |
stdin_fileno = sys.stdin.fileno() | |
backup = termios.tcgetattr(stdin_fileno) | |
new = termios.tcgetattr(stdin_fileno) | |
new[3] = new[3] &~ (termios.ECHO | termios.ICANON) |
サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
diff --git a/bin/jekyll b/bin/jekyll | |
index 74cb99b..1f87449 100644 | |
--- a/bin/jekyll | |
+++ b/bin/jekyll | |
@@ -250,7 +250,9 @@ if options['auto'] | |
dw.add_observer do |*args| | |
t = Time.now.strftime("%Y-%m-%d %H:%M:%S") | |
puts "[#{t}] regeneration: #{args.size} files changed" | |
- site.process | |
+ t = Time.now |