Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
;; auto-install
(require 'auto-install)
(setq auto-install-directory (expand-file-name "~/lib/emacs/auto-install/"))
(add-to-list 'load-path auto-install-directory)
(auto-install-update-emacswiki-package-name t)
(auto-install-compatibility-setup)
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Auto-installed
# http://gist.github.com/630536
RFC:TELNET RFC:0854
RFC:RSH RFC:1258
RFC:FTP RFC:0172
RFC:MAIL RFC:5321,RFC:5322
RFC:SMTP RFC:5322
RFC:NFS RFC:5661
RFC:DNS RFC:1034,RFC:1035
RFC:DNS:Threat RFC:3833
RFC:DNS:TTL RFC:1034
(create-fontset-from-ascii-font "Menlo-16:weight=normal:slant=normal" nil "menlokakugo")
(set-fontset-font "fontset-menlokakugo"
'unicode
(font-spec :family "Hiragino Kaku Gothic ProN" :size 16)
nil
'append)
(add-to-list 'default-frame-alist '(font . "fontset-menlokakugo"))
@shigeya
shigeya / color-chart.pdf
Created October 30, 2010 07:55
Color and color name chart for LaTeX dvipsnam.def definitions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# rspec continuous runner script using watchr, growl and spork
# run this script via 'watchr'
# gist at: https://gist.github.com/797853/
# based on: https://gist.github.com/276317/
# you may want to install image file for growl.
if RUBY_VERSION >= "1.9" # multibyte encoding only supported in Ruby 1.9
Encoding.default_external = "UTF-8"
end
@shigeya
shigeya / gist:939444
Created April 24, 2011 09:33
CSV converted Journalist Wall of Shame
1,3/19/2011 22:12:38,Donegal Daily,13-03-2011,http://www.donegaldaily.com/,"Complete confusion between the cities of Tokyo and Sendai, although I'm not sure if the guy interviewed wasn't stretching the truth. The inference that the army were preventing people from entering Tokyo was completely false. A colleague of mine returned safely on Saturday morning via Shinkansen from Osaka to Tokyo.",5,http://www.donegaldaily.com/2011/03/13/donegal-earthquake-volunteer-refused-entry-to-tokyo-but-battles-on-to-help/
2,3/19/2011 22:44:14,"Unknown headline writer, ABC News",19-03-2011,abcnews.com,"The headline blares ""RADIATION IN FOOD SUPPLY"". Research the story and you discover that A.)the radiation detected was at a slightly elevated level, but not a particularly dangerous one - drinking a year's worth of the milk in question would be the equivalent of a person getting a CAT scan, and B.)the radiation was found only in milk and spinach taken from farms very close to the nuclear plant, which in no way whatsoever equ
@shigeya
shigeya / oo2.watchr
Created June 19, 2011 08:42
watchr script for oo2tex
# oo2tex continuous runner script using watchr, growl and spork
# run this script via 'watchr'
# placed at: https://gist.github.com/1033987
# based on : https://gist.github.com/797853
require 'awesome_print'
if RUBY_VERSION >= "1.9" # multibyte encoding only supported in Ruby 1.9
Encoding.default_external = "UTF-8"
end
@shigeya
shigeya / gist:1096210
Created July 20, 2011 23:59
Xerox C3050 Driver fix for OS X Lion
2052% diff -c fxnpdftopdf.FCS
*** /Library/Printers/FujiXerox/Filter/fxnpdftopdf.bundle/Contents/MacOS/fxnpdftopdf.FCS Wed Oct 27 12:54:26 2010
--- /Library/Printers/FujiXerox/Filter/fxnpdftopdf.bundle/Contents/MacOSfxnpdftopdf Thu Jul 21 08:40:12 2011
***************
*** 12,17 ****
fi
PARDIR=${0%/*}
! /usr/bin/python "$PARDIR/driver.pyc" "$1" "$2" "$3" "$4" "$5" "$LASTARG"
@shigeya
shigeya / gist:1286659
Created October 14, 2011 09:20
au版iPhoneでのキャリアメール設定方法
au版iPhoneでのキャリアメール設定方法
①メッセージアプリで、宛先に「#5000」本文に「1234」と入力して送信。
②メッセージアプリに「メール設定URL」が送られてくるのでタップし、
 「Eメール利用登録設定」をタップする。
③アドレスが取得できたら、そのままアドレス変更が可能なので任意のアドレスを入力し
 契約時に申し込んだ4桁の暗証番号を入力する。
④アドレス変更が完了すると、メッセージアプリに、変更後のアドレス、ユーザー名、パスワードが送られてくる。
⑤ホーム画面に戻り「設定」→「メール」→「アカウントを追加」→「その他」の順にタップしていく。
⑥「名前」に任意の名前、「アドレス」に変更後の自分のアドレス、「パスワード」の欄に④で送られてきたパスワードを入力し
@shigeya
shigeya / gist:1955977
Created March 2, 2012 05:45
RubyMine dialog when try to run with debugger
Cannot connect to the debugged process at port 61124 in 10s:
Error Output:
/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/trace_nums19.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
Referenced from: /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/trace_nums19.bundle
Expected in: flat namespace
in /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/trace_nums19.bundle - /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/trace_nums19.bundle
from /Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/tracelines19.rb:12:in `rescue in '
from /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/linecache19-0.5.12/lib/tracelines19.rb:8