Org=>GmailSMTPã§ã¦ãã¼
OrgãGmailã«éãããã
1.Emacsã®ãããã§Orgã®TODOã¨ããåºå
utf8ã ã¨æååãããã
çã®.emacsèªã¿è¾¼ã¾ããã¨é
ãã®ã§orgãããç¨ã®orgã ãèªã¿è¾¼ã.emacsãä½ãã¨è¯ãã§ããã
æååãåé¿ã«ã¤ãã¦
http://d.hatena.ne.jp/tanitsu/20090311/1236762879
#!/bin/zsh emacs --batch --unibyte --load ~/emacsorg --eval "(let ((buffer-file-coding-system 'raw-text)) (org-batch-agenda \"t\"))" > ~/tmp/todo.txt emacs --batch --unibyte --load ~/emacsorg --eval "(let ((buffer-file-coding-system 'raw-text)) (org-batch-agenda \"a\"))" > ~/tmp/agenda.txt
2.Gmailã«GmailSMTPã§éä¿¡é¨å
ä½ã£ããã¡ã¤ã«ãrubyã§éä¿¡ã
ã¡ã¼ã«éä¿¡ã«ã¤ãã¦
http://d.hatena.ne.jp/unageanu/20090429/1241001029
#! /opt/local/bin/ruby # -*- coding: utf-8 -*- def myReadFile(filename) buf = "myreadfile" begin File.open(filename,'r'){ |io| buf = io.read } rescue puts "èªãã¾ããã§ãããã¼" end return buf end #gem install tmail tlsmail (1.8ãã¼) require 'rubygems' require 'tmail' require "tlsmail" def myMakeMail(to,sbj,body) # tmailã§ã¡ã¼ã«ãä½æ mail = TMail::Mail.new mail.to = to mail.from = 'fromãªã¡ã¼ã«ã¢ãã¬ã¹' mail.subject = sbj mail.date = Time.now mail.mime_version = '1.0' # mail.set_content_type 'text', 'plain', {'charset'=>'iso-2022-jp'} mail.set_content_type 'text', 'plain', {'charset'=>'utf-8'} mail.body = body puts mail.to_s if $DEBUG # ä½æãããã¡ã¼ã«ã確èªãããå ´åã¯ãã¡ãã return mail end def mySendMail(c,mail) # ã¡ã¼ã«ã¯Net::SMTPã§éä¿¡ã # gmailã¯TLSã«ããæå·åãå¿ è¦ãªã®ã§ãtlsmailãå©ç¨ããã # ã¾ããèªè¨¼ãå¿ é ã Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) Net::SMTP.start( c[:server], c[:port], c[:domain], c[:user], c[:pass],c[:auth]){ |smtp| smtp.sendmail(mail.encoded, mail.from, mail.to) } end gmailconfig = { :server => 'smtp.gmail.com', :port => 587, :domain => 'localhost.localdomain', :user => 'ããªãã®ã¡ã¢ã', :pass => 'ãã¹ã¯ã¼ã', :auth => 'plain' } buftodo = myReadFile('/Users/seijiro/tmp/todo.txt') bufagenda = myReadFile('/Users/seijiro/tmp/agenda.txt') puts buftodo if $DEBUG puts bufagenda if $DEBUG mail = myMakeMail('Toãªã¡ã¼ã«ã¢ãã¬ã¹','todo and agenda',buftodo + bufagenda) mySendMail(gmailconfig,mail)
3.cronç¨ã«ã¾ã¨ããã¹ã¯ãªãã
以ä¸ãæé"*/3"ã¨ãã§cronã§åãã¾ãããã
3æéã«ä¸åã¡ã¼ã«ãé£ãã§ãããï¼iphoneã§ç¢ºèªãããï¼
#!/bin/zsh /Users/seijiro/scripts/orgbatch /opt/local/bin/ruby /Users/seijiro/scripts/readorg.rb growlnotify -t "org2gmail" -m "done"
ææ³
EverNoteã®äººã¨ãããã¤ã§ãï¼ã©ãã§ãï¼ã¨ãã£ã¦å¬ãããã«ãã£ããã£ã¦ããããããã©ã¢ã¬ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹å¼±ãã ããããã¨ãã¡ãã«ã¯æ»ãè¾¼ããªãã
Emacsã§ããæå³ã¨ããã®ã¯ãã¿ã¹ã¯ç®¡çãªã©ã¨è¨ãããã©ãããä½æ¥ãã®ãã®ã
Emacsã§ãããã¨ã«ããã²ããã楽ããä½æ¥ã«å¤ããã¨ãããã¨ãªã®ã§ãã
楽ãããªãã¨ç¶ç¶ããªããã ãã
ææ³ï¼
webãµã¼ãã¼æã£ã¦ããªãemacsããhtmlå½¢å¼ã§åºåãããã®ãå
¬éãã¦ãè¯ããããã
ã«ã¬ã³ãã¼æ©è½ãå¼±ããªãã
http://d.hatena.ne.jp/t0m0_tomo/20100103/1262537012
ã試ãããã©.htaccessã®ã¨ããã§é æ«ãçæç©ãgcalãèªã¿è¾¼ãã§ãããã
lightningã¯ãã¿ããã§ãããã®ã§ã¾ãã¾ãã