[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Mon, 5 Jul 2010 17:31:51 +0000 (UTC)

changeset: 576:6f6b8239b664
user: Matthew Bauer <mjbauer95_AT_gmail.com>
date: Mon Jul 05 12:28:38 2010 -0500
files: surf.suckless.org/patches/history.md
description:
Added Chromium to history


diff -r 54fc1aecff82 -r 6f6b8239b664 surf.suckless.org/patches/history.md
--- a/surf.suckless.org/patches/history.md Sat Jul 03 12:41:57 2010 -0400
+++ b/surf.suckless.org/patches/history.md Mon Jul 05 12:28:38 2010 -0500
_AT_@ -34,10 +34,13 @@
         cat ~/.surf/history.$$ | sort | uniq >~/.surf/history
         rm -f ~/.surf/history.$$
 
-(2) Import firefox history:
+(2) Import history:
 
- sqlite3 -list /home/$USER/.mozilla/firefox/*.default/places.sqlite 'select url from moz_places ;' |\
- grep http >> ~/.surf/history
+Firefox:
+ sqlite3 -list $HOME/.mozilla/firefox/*.default/places.sqlite 'select url from moz_places ;' | grep ^http >> ~/.surf/history
+
+Chromium:
+ sqlite3 -list $HOME/.config/chromium/Default/History 'select url from urls' | grep ^http >> ~/.surf/history
 
 Download
 --------

changeset: 577:c4ec0f1418e9
tag: tip
user: Matthew Bauer <mjbauer95_AT_gmail.com>
date: Mon Jul 05 12:38:24 2010 -0500
files: surf.suckless.org/patches/instapaper.md
description:
Added patch for save to Instapaper shortcut


diff -r 6f6b8239b664 -r c4ec0f1418e9 surf.suckless.org/patches/instapaper.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/instapaper.md Mon Jul 05 12:38:24 2010 -0500
_AT_@ -0,0 +1,27 @@
+INSTAPAPER
+==========
+
+Description
+-------
+
+(1) Add this to static Key keys[]:
+
+ { MODKEY, GDK_i, spawn, { .v = (char *[]){ "/bin/sh", "-c", "curl -s -d username=\"$(cat ~/.surf/instapaper | sed -n '1p')\" -d password=\"$(cat ~/.surf/instapaper | sed -n '2p')\" -d url=\"$(xprop -id $0 _SURF_URI | cut -d '\"' -f 2)\" https://www.instapaper.com/api/add > /dev/null", winid, NULL } } },
+
+(2) Save instapaper login:
+
+Your instapaper login should go to ~/.surf/instapaper. Email first line; password second line.
+
+For security you should run:
+
+ chmod og-rwx
+
+So only you can read and write to the file.
+
+
+Now running you can press MODKEY+i (usually Ctrl+i) and your current page will be added to instapaper.
+
+Author
+------
+
+* Matthew Bauer <[mjbauer95_AT_gmail.com](mailto:mjbauer95_AT_gmail.com)>
Received on Mon Jul 05 2010 - 19:31:51 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:21 CEST