標準出力をsystem.logにリダイレクト
command > system.log
標準出力と標準エラー出力をまとめてsystem.logにリダイレクト
command > system.log 2>&1
| ;;-------------------------------------------------------------------------- | |
| ;; 終了時のフレームサイズを記憶する | |
| ;; http://www.bookshelf.jp/soft/meadow_30.html#SEC419 | |
| ;;-------------------------------------------------------------------------- | |
| (defun my-window-size-save () | |
| (let* ((rlist (frame-parameters (selected-frame))) | |
| (ilist initial-frame-alist) | |
| (nCHeight (frame-height)) | |
| (nCWidth (frame-width)) | |
| (tMargin (if (integerp (cdr (assoc 'top rlist))) |
| addon-sdk-1.0b1/python-lib/cuddlefish/app-extension/install.rdf が原因 | |
| <!-- Firefox --> | |
| <em:targetApplication> | |
| <Description> | |
| <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> | |
| <em:minVersion>3.6</em:minVersion> | |
| <em:maxVersion>4.0.*</em:maxVersion> | |
| </Description> | |
| </em:targetApplication> |
| ;;-------------------------------------------------------------------------- | |
| ;; recentf-exte.el | |
| ;; (install-elisp-from-emacswiki "recentf-ext.el") | |
| ;;-------------------------------------------------------------------------- | |
| (when (require 'recentf-ext nil t) | |
| (setq recentf-max-saved-items 2000) | |
| (setq recentf-exclude '(".recentf")) | |
| (setq recentf-auto-cleanup 10) | |
| (setq recentf-auto-save-timer (run-with-idle-timer 30 t 'recentf-save-list)) | |
| (recentf-mode 1)) |
| # -*- coding: utf-8 -*- | |
| # | |
| # gem install archive-zip | |
| # | |
| require 'rubygems' | |
| require 'archive/zip' | |
| zip = ARGV[0] | |
| dst = File.basename ARGV[0], '.zip' |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; UTF-8の「〜」(U+FF5E)と「〜」(U+301C) | |
| ;; http://gaju.jp/diary/20091218.html | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| (defadvice utf-translate-cjk-load-tables (after my-subst-windows activate) | |
| (mapc | |
| (lambda (pair) | |
| (let ((uc (car pair)) | |
| (ch (cadr pair))) | |
| (puthash uc ch ucs-unicode-to-mule-cjk) |
| # | |
| # setup | |
| # | |
| require 'rubygems' | |
| require 'rubywho' | |
| require 'irb/completion' | |
| require 'irb/ext/save-history' | |
| ARGV.concat [ "--readline", "--prompt-mode", "simple" ] |
| (defun shell-command-prev () | |
| (interactive) | |
| (shell-command (car shell-command-history) nil nil)) | |
| (global-set-key (kbd "C-c C-c") 'shell-command-prev) |
| ; スペースではなくタブでインデント | |
| ; タブ幅4 | |
| ; | |
| ; の場合のjs2-modeでのタブ設定 | |
| (setq tab-width 4 | |
| espresso-indent-level 4 | |
| indent-tabs-mode t | |
| c-basic-offset 4) |
| $ ruby -r'digest/md5' -e 'puts Digest::MD5.hexdigest("example@example.com")' | |
| 23463b99b62a72f26ed677cc556c44e8 | |
| # ex. gravatar | |
| # http://ja.gravatar.com/site/implement/hash/ | |
| <img src="http://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8" /> |