Skip to content

Instantly share code, notes, and snippets.

@amrtn
amrtn / OpenWithSublimeText3.bat
Created June 13, 2018 06:47 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=D:\apps\SublimeText3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@amrtn
amrtn / .jsbeautifyrc
Last active April 3, 2018 07:10
.jsbeautifyrc
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],
@amrtn
amrtn / darkreader-rules.json
Created February 26, 2018 06:57
Darkreader chrome extension custom rules
{
"common": {
"invert": [
"img, video, :not(object):not(body)>embed, object",
"iframe",
"svg image",
"[style*='background:url'], [style*='background-image:url']",
"[style*='background: url'], [style*='background-image: url']",
"[background]",
"twitterwidget"
@amrtn
amrtn / owa-tampermonkey.js
Last active February 12, 2018 08:14
Highlight unread messages in Outlook Web Access (Tampermonkey script)
// ==UserScript==
// @name OWA improver
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://correoweb.mapama.es/*
// @grant GM_addStyle
// ==/UserScript==
@amrtn
amrtn / .gitconfig
Last active March 13, 2018 10:10
Git aliases
To be added to the ~/.gitconfig file
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
st = status -sb
lg = log --graph --decorate --pretty=oneline --abbrev-commit --all
showfiles = show --stat --oneline
sh = show --stat --oneline
@amrtn
amrtn / so_tampermonkey
Last active February 20, 2018 08:00
Hide "Hot Network Questions" on StackOverflow (tampermonkey script)
// ==UserScript==
// @name Hide SO hot network questions
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match *://stackoverflow.com/*
// @match *://*.stackexchange.com/*
// @match *://*serverfault.com/*
// @match *://*superuser.com/*
// @copyright 2012+, You