Skip to content

Instantly share code, notes, and snippets.

View thehale's full-sized avatar
🧠
Working to make everything I do improvable by a novice

Joseph Hale, MS SE thehale

🧠
Working to make everything I do improvable by a novice
View GitHub Profile
@Dylancyclone
Dylancyclone / .bashrc
Last active January 3, 2023 22:46
Display git repo info on browse using `o2sh/onefetch`
LAST_REPO=""
cd() { builtin cd "$@" git rev-parse 2>/dev/null
if [ $? -eq 0 ]; then
if [ "$LAST_REPO" != $(basename $(git rev-parse --show-toplevel)) ]; then
onefetch
LAST_REPO=$(basename $(git rev-parse --show-toplevel))
fi
fi
}
@zbeekman
zbeekman / GH-CF-strict-SSL-w-CDN.md
Last active May 14, 2024 16:11
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN

Custom domains, GH-pages, Cloudflare and strict SSL end-to-end encryption

Why I wrote this

Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and