Skip to content

Instantly share code, notes, and snippets.

View nv6's full-sized avatar

nivesh nv6

  • Democratic Republic of Maryland ☭🦞🦀
View GitHub Profile
@zuedev
zuedev / caddy.docker-compose.yaml
Last active January 26, 2026 17:20
Caddy docker-compose.yaml that writes an inline Caddyfile from an environment variable at runtime.
# Use a modern compose version
version: '3.8'
services:
caddy:
image: caddy:latest
restart: unless-stopped
ports:
# Port 80 for HTTP and ACME (Let's Encrypt) challenges
- "80:80"
@magnetikonline
magnetikonline / README.md
Last active July 30, 2025 07:03
Install AWS CLI v2 from source.

Install AWS CLI v2 from source

Bash script to install the latest released version of the AWS CLI v2 from the distrubuted source.

Using this method to exectue the CLI under a MacBook M1 laptop as a native ARM binary - rather than falling back to Rosetta. Currently the offically packaged macOS .pkg doesn't support both Intel/M1 architectures.

Script designed to be re-run - will blow away an existing install and re-install the latest available version.

Note

This install script assumes you have installed a suitable version of Python 3 - has been tested against:

@Harry-Chen
Harry-Chen / README.md
Last active March 9, 2025 01:53
NetBox Docker deployment under sub-directory

Assume your deployment is under /netbox:

Add to configuration/configuration.py

BASE_PATH = environ.get('BASE_PATH', '')

Add to env/netbox.env

@liamcain
liamcain / obsidian-pagebreaks.css
Created November 8, 2020 01:04
Obsidian Pagebreaks
/**
Create pagebreaks in exported Obsidian PDFs.
Example:
# Heading 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
@win0err
win0err / install-apple-emoji.md
Last active January 25, 2026 15:02
💃 Apple Emoji on Linux

Install Apple Color Emoji on Linux

  1. Download font.
mkdir ~/.local/share/fonts/
wget https://github.com/samuelngs/apple-emoji-linux/releases/latest/download/AppleColorEmoji.ttf -O ~/.local/share/fonts/AppleColorEmoji.ttf
# or system-wide to /usr/share/fonts/AppleColorEmoji/, for example
  1. Put Apple Color Emoji on the 1st place in /etc/fonts/conf.d/60-generic.conf:
#!/bin/bash
#
# Create new domains (or sub-domains) in PowerDNS authoritative servers
# using pdnsutil
#
# Features:
# * DNSSEC (incl. delegation in parent zone, if on same server);
# * NSEC3;
# * CAA;
# * SPF, DKIM and DMARC;