Skip to content

Instantly share code, notes, and snippets.

@artcommacode
artcommacode / auto_switch_theme.py
Last active August 10, 2021 10:47 — forked from plivox/auto_switch_theme.py
Automatic iTerm2 preset switching on MacOS
#!/usr/bin/env python3
import asyncio
import iterm2
THEME_LIGHT = "serendipity-light-iTerm2"
THEME_DARK = "serendipity-dark-iTerm2"
class AutoSwitchTheme:
@artcommacode
artcommacode / certbot
Created August 16, 2019 11:59 — forked from li0nel/certbot
Execute Certbot
# Use Let's Encrypt certbot to order a free certificate
certbot certonly --non-interactive --manual \
--manual-auth-hook "./auth-hook.sh UPSERT your_domain.com" \
--manual-cleanup-hook "./auth-hook.sh DELETE your_domain.com" \
--preferred-challenge dns \
--config-dir "./letsencrypt" \
--work-dir "./letsencrypt" \
--logs-dir "./letsencrypt" \
--agree-tos \
--manual-public-ip-logging-ok \