Skip to content

Instantly share code, notes, and snippets.

#IfWinActive ahk_exe rstudio.exe
Capslock::Esc
+Capslock::Capslock
#IfWinActive ahk_exe gvim.exe
Capslock::Esc
+Capslock::Capslock
@bdforbes
bdforbes / feedly_remove_ads.js
Created November 15, 2017 03:02
Add a button to the feedly All list that removes sponsored ads
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://feedly.com/i/latest
// @grant none
// ==/UserScript==
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Anaconda]
"Icon"="%USERPROFILE%\\Anaconda3\\Menu\\Iconleak-Atrous-Console.ico"
@="Open Anaconda Prompt here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Anaconda\command]
@="C:\\Users\\bdforbes\\Anaconda3\\pythonw.exe C:\\Users\\bdforbes\\Anaconda3\\cwp2.py C:\\Users\\bdforbes\\Anaconda3 \"%V \" cmd.exe \"/K\" C:\\Users\\bdforbes\\Anaconda3\\Scripts\\activate.bat C:\\Users\\bdforbes\\Anaconda3"
[HKEY_CLASSES_ROOT\Directory\shell\Anaconda]
# this script is used on windows to wrap shortcuts so that they are executed within an environment
# It only sets the appropriate prefix PATH entries - it does not actually activate environments
import os
import sys
import subprocess
from os.path import join, pathsep
from menuinst.knownfolders import FOLDERID, get_folder_path, PathNotFoundException