From 8cb578eb826f742ba58391e0be81860c954bf986 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 6 Dec 2012 00:26:07 +0900 Subject: [PATCH 1/2] add local site-packages to PYTHONPATH --- profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profile b/profile index 843746d..cf6adbe 100755 --- a/profile +++ b/profile @@ -8,7 +8,8 @@ export TERMCAP="${TERMCAP}:vb=" export HOSTNAME export ENV=~/.shrc export PYTHONDOCS=/usr/share/doc/python/html/ -export PYTHONPATH="${PYTHONPATH}:${HOME}/my/bin/py" +export PYTHONPATH="${PYTHONPATH}:\ +${HOME}/my/bin/py:${HOME}/.local/lib/python/site-packages" test -f "${HOME}/.dotfiles/rc.py" && \ export PYTHONSTARTUP="${HOME}/.dotfiles/rc.py" #export PYTHONPATH="~/.local/share/lib/python3.2/site-packages" From 722d24e804ec41e9f685c4201cd1b1bb95468329 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 8 Dec 2012 16:20:24 +0900 Subject: [PATCH 2/2] add my-index-html --- _keysnail.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_keysnail.js b/_keysnail.js index 17990d9..51d25e4 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -176,6 +176,15 @@ plugins.options["twitter_client.use_jmp"] = true; //////////////////////////////////////////// // my ext +ext.add("my-index-html", function(ev, arg){ + homepath = util.getEnv("HOME"); + file = ".index.html"; + if (homepath) { + path = "file://" + homepath + "/" + file; + openUILinkIn(path, "tab"); + } +}, "open my index.html"); + ext.add('post-to-posterous', function (ev, arg) { if (window.loadURI) { loadURI("javascript:var%20b=document.body;var%20POSTEROUS___bookmarklet_domain='http://posterous.com';var%20d=new%20Date();var%20e=(new%20Date(d.getFullYear(),d.getMonth(),d.getDate())).getTime();if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='http://posterous.com/javascripts/bookmarklet2.js?'+e);void(b.appendChild(z));}else{}");