Skip to content

Instantly share code, notes, and snippets.

@darthoctopus
darthoctopus / ipynb.js
Last active January 27, 2022 04:52
iPython Notebook viewer for gnome-sushi; requires Jupyter and nbconvert installed.
/*
* Copyright (C) 2011 Red Hat, Inc; 2016 Joel Ong
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@darthoctopus
darthoctopus / fits.js
Last active October 15, 2020 00:34
FITS handler for GNOME Sushi. Put fits.js in /usr/share/sushi/js/viewers, and put fits.thumbnailer in ~/.local/share/thumbnailers.
/*
* Copyright (C) 2011 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@darthoctopus
darthoctopus / kupfer-geary.py
Created April 5, 2017 15:07
Geary plugin for Kupfer launcher (adapted from Thunderbird plugin)
# -*- coding: utf-8 -*-
__kupfer_name__ = _("Geary")
__kupfer_sources__ = ("ContactsSource", )
__kupfer_actions__ = ("NewMailAction", )
__description__ = _("Geary Contacts and Actions")
__version__ = "2017.4"
__author__ = "Joel Ong <joel.ong@yale.edu>, Karol Będkowski <karol.bedkowski@gmail.com>, US"
from kupfer.objects import Action
@darthoctopus
darthoctopus / nautilus-typeahead-3-22.patch
Last active October 20, 2016 01:32
Typeahead Find for Nautilus 3.22
data/org.gnome.nautilus.gschema.xml | 5 +
src/nautilus-global-preferences.h | 3 +
src/nautilus-list-view.c | 19 +
src/nautilus-list-view.h | 3 +-
src/nautilus-preferences-window.c | 5 +
src/nautilus-window-slot.c | 1011 ++++++++++++++++++++++-
src/resources/ui/nautilus-preferences-window.ui | 50 ++
7 files changed, 1086 insertions(+), 10 deletions(-)
diff --git a/data/org.gnome.nautilus.gschema.xml b/data/org.gnome.nautilus.gschema.xml