Skip to content

Instantly share code, notes, and snippets.

@nkmathew
nkmathew / gitfolders.py
Last active September 12, 2019 13:09
Backup those reference projects
#!/usr/bin/env python
r"""
Author: nkmathew <[email protected]>
Date: April 29, 2016
The script generates a list of all the reference git repos in a certain folder and
its subfolders should you need to reclone them later in the same structure
e.g
@nkmathew
nkmathew / rawgit-button.user.js
Last active November 10, 2018 22:19
Adds button for serving the current repository as a static site using rawgit. Useful for viewing react/angular demo projects
// ==UserScript==
// @name Raw Git Button
// @description Open rawgit.com on the current repo serving its files
// @author nkmathew
// @namespace http://nkmathew.net
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @include /https:\/\/github.com\/[^/]+\/[^/]+[/]{0,1}$/
// @version 0.1.0
// @grant GM_getValue
// @grant GM_setValue
@nkmathew
nkmathew / gmail-agecounter.user.js
Last active July 6, 2017 07:58
Greasemonkey script that changes gmail's timestamps to relative time in basic html view
'use strict';
// ==UserScript==
// @name GMail Age-Counter
// @namespace http://nkmathew.net
// @description Describes time elapsed since an email message was received
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js
// @include https://mail.google.com/mail/u/0/h/*
// @version 0.1
// @grant none
@nkmathew
nkmathew / same-tab-upvoted.user.js
Created February 19, 2016 10:26
GreaseMonkey script that makes sure reddit thread links in upvoted.com open in the same tab
// ==UserScript==
// @name Open Thread Links in Same Tab(upvoted.com)
// @namespace nkmathew.github.io
// @description Makes sure reddit thread links in upvoted.com open in the same tab
// @version 1.0
// @include /^https?:\/\/(.+\.)?upvoted\.com\/?.*$/
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
@nkmathew
nkmathew / fdups.py
Last active April 28, 2016 12:09 — forked from miku/fdups.py
Find duplicate files in python.
#!/usr/bin/env python
"""
http://stackoverflow.com/questions/748675/finding-duplicate-files-and-removing-them/748908#748908
Yet another duplicate file finder
CHANGELOG:
+ [Thursday] Feb 11, 2016
@nkmathew
nkmathew / comfy-firefox-scrollbar.css
Created November 29, 2015 18:18
Comfortable Firefox scrollbar
/**
* Adapted from http://userstyles.org/styles/89732/ by Elian Dankiewicz
*
* Makes Firefox scrollbar thumb a bit darker(visibile)
*
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
scrollbar {
@nkmathew
nkmathew / reddit-stream-link.user.js
Last active April 5, 2018 08:57
Greasemonkey script that adds a link for viewing a reddit thread using reddit-stream
@nkmathew
nkmathew / clone-addons.sh
Created October 30, 2015 20:15
Clones some usefull reference browser addon projects
# List of usefull reference firefox addons
git clone https://github.com/inbasic/ignotifier/ # ~13MB
git clone https://github.com/honestbleeps/Reddit-Enhancement-Suite/ # ~15MB
git clone https://github.com/vjandrea/bookmark_deduplicator
git clone https://github.com/benbasson/contexthighlight/
git clone https://github.com/anderslindmark/bookmarkdup
git clone https://github.com/Thiht/markdown-viewer # ~100KB
git clone https://github.com/BoringCode/TranslateThis # ~370KB
git clone https://github.com/bpierre/gtranslate # ~2MB
git clone https://github.com/info-add0n/Simple-Translate # ~7.6MB
@nkmathew
nkmathew / gmail-delete.user.js
Last active January 26, 2018 10:06
Greasemonkey script for deleting read Gmail messages in basic HTML view
// ==UserScript==
// @name GMail Delete Button
// @namespace http://nkmathew.github.io
// @description Adds a button that deletes all read emails in gmail(when in basic HTML view)
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @include https://mail.google.com/mail/u/0/h/*
// @version 0.1
// @grant none
// @run-at document-end
// ==/UserScript==
@nkmathew
nkmathew / desert-view-source.css
Created October 2, 2015 17:14
Dark Stylish theme for viewing html source
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@namespace html url(http://www.w3.org/1999/xhtml);
@-moz-document url("chrome://global/content/viewSource.xul"),
url("chrome://global/content/viewPartialSource.xul"),
url-prefix("view-source:") {
html {
background: #151515 !important;
color: #fff !important;
font-size: 12px;
}