Skip to content

Instantly share code, notes, and snippets.

View kevincali's full-sized avatar
✌️

Kevin Cali kevincali

✌️
View GitHub Profile
@Codycody31
Codycody31 / caprover-volume-backup.sh
Last active July 27, 2025 15:37
Backup volumes for CapRover
#!/bin/bash
# List all volumes starting with 'captain--'
volumes=$(docker volume ls -q | grep '^captain--')
totalvolumes=$(echo "$volumes" | wc -l)
backedupvolumes=0
echo "Starting backup of $totalvolumes volumes."
# Create a tarball of these volumes
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@jfeilbach
jfeilbach / ubuntu_22.04_motd.md
Last active November 17, 2025 19:14
Make Ubuntu 22.04 less annoying. Remove ESM Ubuntu Advantage

Ubuntu 22.04 Annoyances

Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.

Disable unattended upgrades

The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades

Disable: sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"

This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will

@aderusha
aderusha / link_multiple_switches.yaml
Last active June 25, 2025 10:14
Home Assistant Blueprint: Link Multiple Switches v1.0.1
@peteryates
peteryates / guide.md
Last active November 16, 2025 20:10
How to stop adverts appearing on your Samsung TV

I'm getting adverts in my TV's UI, help!

Samsung's otherwise excellent 2016 range of UHD TVs received an update that added advertisements to the UI. This has been complained about at great length on Samsung's forums and repeatedly, Samsung have refused to add an option to remove them.

The ads interrupt the clean UI of the TV and are invasive. Here's an example of how they look:

one two

This guide was originally posted on Samsung's TV forums but unfortunately, that site is a super-slow and barely accessible unusable mess.

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active November 13, 2025 15:48
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \