Skip to content

Instantly share code, notes, and snippets.

## 🛠️ **Technology Stack & Preferences**
### Backend (Go)
- **Database**: pgx/v5/pgxpool (never use database/sql)
- **CLI**: urfave/cli/v2 for command-line interfaces
- **Web Framework**: Gin for HTTP APIs
- **Configuration**: Environment variables over JSON config files
- **Logging**: Structured logging with logrus
- **Migrations**: Pressly goose for database migrations
@dsl400
dsl400 / mic_test.sh
Created February 23, 2025 17:50
OSD message for microphone on
GNU nano 7.2 /etc/systemd/system/mic_monitor.service
[Unit]
Description=Microphone Status Monitor Service
After=graphical.target sound.target
[Service]
Type=simple
# Set the display so aosd_cat knows where to show the output.
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR=/run/user/1000
@dsl400
dsl400 / avr.cfg
Last active December 25, 2022 09:05
ida config for atmega328p
.ATmega328
; Ida avr.cfg (c) THANATOS
SUBARCH=5
RAM=2048
ROM=32768
EEPROM=1024
; MEMORY MAP
@dsl400
dsl400 / settings.py
Last active September 3, 2022 22:41
django serve angular static
ANGULAR_DIR_NAME= 'dist'
ANGULAR_APP_DIR = os.path.join(BASE_DIR, f'../{ANGULAR_DIR_NAME}')
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
ANGULAR_APP_DIR,
]