Skip to content

Instantly share code, notes, and snippets.

@cbdp
cbdp / website_archiver.sh
Last active October 17, 2025 07:56
A bash script to download offline copies of websites for local browsing
#!/bin/bash
# ------------------------------------------------------------
# Archive script for one or more websites
# Usage: ./archive_sites.sh https://example.com [https://another.com ...]
#
# Features:
# - Checks connectivity before starting
# - Resumes interrupted downloads
# - Shows live progress bar
# - Displays approximate pages/files downloaded count
@cbdp
cbdp / minify-teams
Last active September 6, 2021 21:25
minimize Teams auto-start
# 1 sudo apt install wmctrl
# 2 chmod +x /path/to/minify-teams
# 3 add to desktop auto-start applications
#!/bin/bash
sleep 5 # waits 5 seconds, that's how long it takes teams to go fullscreen on my laptop
i=0
while true; do
@cbdp
cbdp / icomoon content codes
Created February 19, 2021 15:54
Saving this list of icomoon as font codes, cause occasionally I'll need to add a new logo and the google hunt starts over.
home:before{content:"\e900"}.icmn-home2:before{content:"\e901"}.icmn-home3:before{content:"\e902"}.icmn-home4:before{content:"\e903"}.icmn-home5:before{content:"\e904"}.icmn-home6:before{content:"\e905"}.icmn-home7:before{content:"\e906"}.icmn-home8:before{content:"\e907"}.icmn-home9:before{content:"\e908"}.icmn-office:before{content:"\e909"}.icmn-city:before{content:"\e90a"}.icmn-newspaper:before{content:"\e90b"}.icmn-magazine:before{content:"\e90c"}.icmn-design:before{content:"\e90d"}.icmn-pencil:before{content:"\e90e"}.icmn-pencil2:before{content:"\e90f"}.icmn-pencil3:before{content:"\e910"}.icmn-pencil4:before{content:"\e911"}.icmn-pencil5:before{content:"\e912"}.icmn-pencil6:before{content:"\e913"}.icmn-pencil7:before{content:"\e914"}.icmn-eraser:before{content:"\e915"}.icmn-eraser2:before{content:"\e916"}.icmn-eraser3:before{content:"\e917"}.icmn-quill:before{content:"\e918"}.icmn-quill2:before{content:"\e919"}.icmn-quill3:before{content:"\e91a"}.icmn-quill4:before{content:"\e91b"}.icmn-pen:before{conte