Skip to content

Instantly share code, notes, and snippets.

@alapolloni
alapolloni / feedlyImportOPML
Last active January 3, 2016 03:59
import OPML feed into feedly
Feedly supports OPML import at this link: http://feedly.com/index.html#cortex
Or.
1. http://feedly.com/#my
2. Organize (from the top left)
3. Import OPML (top)
def u(s):
"""Mock unicode function for python 2 and 3 compatibility."""
"""file paths with a U like uses directories in Windows where being interperted at Unicode so force converting to string"""
"""return s if PY3 or type(s) is unicode else unicode(s.encode('string-escape'), "unicode_escape")"""
print("barf-debug:PY3",PY3)
print ("type(s):",type(s))
print ("s:",s)
print("what are we returning?")
if P
@alapolloni
alapolloni / gist:5999850
Created July 15, 2013 13:16
Gmail in Chrome desktop gives error Oops… the system encountered a problem (#000)
Oops… the system encountered a problem (#000) -
Gmail on a desktop box and only with Google Chrome. (works on IE, Firefox, etc)
FIX:
You have to clear your broswer cache and history:
chrome://settings/ -> advanced -> clear browser data.... -> <select last 4 hours or the last day, etc>
@alapolloni
alapolloni / cmd title updated to dir
Last active December 19, 2015 15:19
Change the title of the console to the current directory Windows Command cmd.exe
Called by this:
doskey cd=cd $* ^&^& @titledir.cmd
File: titledir.com
@echo off
REM the @ turns off the echo for the 1st line and the echo off for the rest of the bat
REM this cmd is paired with doskey cd=cd $* ^&^& @titledir.cmd
for /f "delims=\" %%a in ("%cd%") do title %%~nxa