Disable desktop notifications in firefox
In `about:config`, set `browser.offline-apps.notify` to false.
Upon the debacle of Google dumping Reader, I was hit by newsblur limiting free accounts to 12 feeds, so I had to look for options. I settled in Tiny Tiny RSS, which is self hosted.
I also looked considered using selfoss, but I couldn’t get it to work for some reason, and ttrss was working fine anyway.
upcoming!
projects I’ll resume work on:
- vim-pandoc/vim-pantondoc
- vim-pad
- python-mpdor
projects I intend to start:
- a gstreamer-based joystick-controller sampler/synth thingie
Standards compliant, fast, secure markdown processing library in C.
Plus “optional support for several (unofficial) Markdown extensions, such as non-strict emphasis, fenced code blocks, tables, autolinks, strikethrough and more”.
(Source: onethingwell)
One of the niftiest extensions ever created for gnome-shell is, IMHO, the window search provider by papamitra. With it, you can search for windows by title and name in the overview, so it is very easy to switch windows. Sadly, it hasn’t been updated to 3.6, and indeed it might not be (no activity at all since months ago).
Well, I’ve missed this extension so much I went ahead and created a new version of it. This new version is functionally comparable, but it doesn’t show the window thumbnails (instead, it uses the applications icon). I just haven’t figured that out yet. Might also add an option to search within the current workspace instead of globally. That’ll come some other day.
All credit goes to papamitra, though, from whom I’ve copied big chunks of code. I’ve also used the skeleton of the calculator extension, which was way cleaner than papamitras’s code (mostly because the API has changed between 3.4 and 3.6).
Click on the image to download it.
Raymond Chen, http://blogs.msdn.com/b/oldnewthing/archive/2012/11/13/10367904.aspxWhen I shared this patch with my friends, I mentioned that this patch made me feel like my retired colleague Jeff, who had a reputation for accomplishing astonishing programming tasks in his spare time. You would pop into his office asking for some help, and he’d fire up some program you’d never seen before.
“What’s that?” you’d ask.
“Oh, it’s a debugger I wrote,” he’d calmly reply.
Or you’d point him to a program and apologize, “Sorry, I only compiled it for x86. There isn’t an Alpha version.”
“That’s okay, I’ll run it in my emulator,” he’d say, matter-of-factly.
…
Specifically, I said, “I feel like Jeff, who does this sort of thing before his morning coffee.”
Jeff corrected me. “If this was something I used to do before coffee, that probably meant I was up all night. Persistence >= talent.”
Adding simple commands to vimperator is really easy… Should have done this earlier.
Create empy files from the context menu in nautilus 3.6
Just place this in ~/.local/share/nautilus-python/extensions/nautilus-acme.py (you can name this file whatever.)
from os.path import join
from gi.repository import GObject, Nautilus
class Acme(GObject.GObject, Nautilus.MenuProvider):
def __init__(self):
pass
def new_empty_file(self, menu, folder):
with open(join(folder.get_uri().replace("file://", ""), "new_file"), 'w') as f:
f.write('')
return
def get_background_items(self, window, current_folder):
AcmeMenuItem = Nautilus.MenuItem(
name="Acme::NewEmptyFile",
label="New empty file",
tip="New empty file"
)
AcmeMenuItem.connect('activate', self.new_empty_file, current_folder)
return [AcmeMenuItem]
Run nautilus -q to register the extension.
EDIT: It seems that creating a Templates folder enables the “New document” submenu in nautilus, so this extension is not that necessary… At least I learned how to extend nautilus menu (maybe you did too). [This tip, as usual, from webupd8]
Extra tip: edit ~/.config/user-dirs.dirs to change the location of the templates folder (I don’t like it at the toplevel of my home folder).
Maybe some stuff in there can be of help?