Skip to content

Instantly share code, notes, and snippets.

View alexander-potemkin's full-sized avatar

Alexander Potemkin alexander-potemkin

View GitHub Profile
@alexander-potemkin
alexander-potemkin / hexonet.py
Created December 3, 2022 08:21 — forked from gfdsa/hexonet.py
Authentication/cleanup hook for acme certbot to authenticate a domain via DNS-01 challenge and using hexonet API (ISP API)
#!/usr/bin/python
""" This is a 15 minutes hack so don't expect any fancies from it
The ispapi is this one: https://github.com/retailify/ispapi
Just pass it as --manual-auth-hook and --manual-cleanup-hook
or put in the reneal config as manual_auth_hook and manual_cleanup_hook
"""
import ispapi
import sys
import os
@alexander-potemkin
alexander-potemkin / hidedock.md
Created November 20, 2022 09:21 — forked from mattitanskane/hidedock.md
How to hide the Dock on MacOS

I never use the Dock and all it does for me is come in the way when I'm resizing windows or clicking on stuff I can't access using just my keyboard.

Here's a way to hide the Dock so it doesn't get in the way anymore.

Run the following commands in the terminal.

# Hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock
defaults write com.apple.dock autohide-delay -float 1000 && killall Dock