Skip to content

Instantly share code, notes, and snippets.

View cisene's full-sized avatar
😀
I may be slow to respond.

Christopher Isene cisene

😀
I may be slow to respond.
View GitHub Profile
@cisene
cisene / Stale-feed-refresh.md
Created October 13, 2023 13:06
Description of stale feed refresh logic

Stale feed refresh

Feeds are sometimes deemed to be stale or static, as they have not have had any activity for 18 months, they are flagged with a negative priority flag.

To refresh these every once in a while, something like this could be set up.

@cisene
cisene / guid-urn-resolution-podcastindex-org
Last active March 17, 2023 08:02
GUID-URN resolution
Looking at the DNS/FQDN based GUID resolver.
* Heavy on DNS resulution - latencies
https://396d9ae0da7e5557b894b606231fa3ea.guid.podcastindex.org/ resolves to https://feeds.buzzsprout.com/1538779.rss
If flipped around, the following pattern might be used;
https://guid.podcastindex.org/396d9ae0da7e5557b894b606231fa3ea
@cisene
cisene / dailySourceCode-2009-02-16.rss.xml
Created December 22, 2022 13:38
DailySourceCode 2009-02-16
<?xml version="1.0"?>
<!-- RSS generated by Radio UserLand v8.2.1 on Mon, 16 Feb 2009 19:51:37 GMT -->
<!-- http://radio-weblogs.com/0001014/categories/dailySourceCode/rss.xml -->
<rss version="2.0">
<channel>
<title>Adam Curry: Daily Source Code</title>
<link>http://radio.weblogs.com/0001014/categories/dailySourceCode/</link>
<description>Adam Curry&apos;s Daily Source Code Podcast
dailysourcecode.com</description>
<language>en</language>
'_xmlns' : 'xmlns',
'a10' : 'http://www.w3.org/2005/Atom',
'acast' : 'https://schema.acast.com/1.0/',
'access' : 'http://www.bloglines.com/about/specs/fac-1.0',
'admin' : 'http://webns.net/mvcb/',
'adori' : 'https://adorilabs.com/rss',
'advance' : 'http://www.advance.net/rss',
'adventplayer' : 'http://dtd.melasweb.com/adventplayer.dtd',
'ag' : 'http://purl.org/rss/1.0/modules/aggregation/',
'amp' : '//adobe.com/amp/1.0',
'a10' : 'http://www.w3.org/2005/Atom',
'acast' : 'https://schema.acast.com/1.0/',
'access' : 'http://www.bloglines.com/about/specs/fac-1.0',
'admin' : 'http://webns.net/mvcb/',
'adori' : 'https://adorilabs.com/rss',
'advance' : 'http://www.advance.net/rss',
'ag' : 'http://purl.org/rss/1.0/modules/aggregation/',
'amp' : 'http://www.adobe.com/amp/1.0',
'anchor' : 'https://anchor.fm/xmlns',
'annotate' : 'http://purl.org/rss/1.0/modules/annotate/',
def extractDomain(data):
# Remove protocol part of url
data = re.sub(r"^http(s)?\x3a\x2f\x2f", "", str(data), flags=re.IGNORECASE)
# Remove part after FQDN
data = re.sub(r"\x2f(.*)$", "", str(data), flags=re.IGNORECASE)
# Remove port
data = re.sub(r"\x3a\d{1,}$", "", str(data), flags=re.IGNORECASE)
### Keybase proof
I hereby claim:
* I am cisene on github.
* I am cisene (https://keybase.io/cisene) on keybase.
* I have a public key whose fingerprint is E245 1C5C 5CF4 7961 006F 6CA7 ED7B A890 ABED 4182
To claim this, I am signing this object: