Skip to content

Instantly share code, notes, and snippets.

@oscarrenalias
oscarrenalias / hackernews.css
Created September 10, 2026 18:44
UserScript snippet to make Hacker News a bit easier to read: narrow layout, black background, etc.
/* ==UserStyle==
@name Designed Hacker News
@description CSS override for Hacker News
@match https://news.ycombinator.com/*
==/UserStyle== */
@media(prefers-color-scheme: dark) {
body, .c00, .c00 {
background: black;
color: #fff; }
mkdir -p $HOME/mitmproxy
container run --rm -it \
-p 8080:8080 \
-p 8081:8081 \
-v "$HOME/mitmproxy:/home/mitmproxy/.mitmproxy" \
mitmproxy/mitmproxy \
mitmweb --listen-host 0.0.0.0 --listen-port 8080 --web-host 0.0.0.0
cat /etc/ssl/cert.pem /Users/t.van.der.voorde/mitmproxy/mitmproxy-ca-cert.pem > /Users/t.van.der.voorde/combined-ca.pem
@oscarrenalias
oscarrenalias / version1.bas
Created May 14, 2012 07:38
VBA Macro to change language of all texts to English
Sub LangInFrames()
scount = ActivePresentation.Slides.Count
For j = 1 To scount
fcount = ActivePresentation.Slides(j).Shapes.Count
For k = 1 To fcount
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange.LanguageID = msoLanguageIDEnglishUK
End If
Next k
Next j