Skip to content

Instantly share code, notes, and snippets.

@namob
namob / svt.xml
Created September 12, 2023 09:13
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sr="http://www.sverigesradio.se/podrss" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<itunes:new-feed-url>https://api.sr.se/api/rss/pod/3966</itunes:new-feed-url>
<atom:link href="https://api.sr.se/api/rss/pod/3966" rel="self" type="application/rss+xml"/>
<lastBuildDate>Mon, 11 Sep 2023 12:47:22 GMT</lastBuildDate>
<image>
<title>P3 Dokumentär</title>
<link>https://sverigesradio.se/p3dokumentar</link>
<url>https://static-cdn.sr.se/images/2519/2639c08c-5d25-4e44-90a0-864c20e65f3b.jpg?preset=api-itunes-presentation-image</url>
@namob
namob / wallpapers.py
Created August 22, 2023 12:53
Wallpapers from reddit /r/wallpapers
import requests
import json
import re
# Set this to somewhere
folder = "/Users/namob/Pictures/Wallpapers/"
# Change t=day to something else, t=hour, day, week, month, year, all
url = "https://www.reddit.com/r/wallpaper/top.json?t=day"
headers = {"User-Agent": "RandomWallpaperNamobBot 0.1"}
@namob
namob / regenerate-federation-certificates.ps1
Created September 16, 2016 20:56
Regenerate vCloud Director certificates
$vcloudhost = ""
# Load cloud module from VMware
try {import-module VMware.VimAutomation.Cloud} catch {}
# Connect to
connect-ciserver $vcloudhost
# Get all organisations
$orgs = get-org