Skip to content

Instantly share code, notes, and snippets.

Certainly! Here’s a step-by-step guide for setting up the DNS-01 challenge with Cloudflare using Certbot, focusing on the API key setup and configuration.

Step-by-Step for Using DNS-01 Challenge with Cloudflare

  1. Generate a Cloudflare API Token:
    • Log in to your Cloudflare account and navigate to My Profile (found under your account icon).
    • Go to the API Tokens tab.
    • Click Create Token.
    • Use the Edit Zone DNS template, which provides limited access, ideal for security.
    • Permissions: Set as follows:
# For CIDR IP range
ipset create bypass hash:net hashsize 4096 maxelem 16384
@ahhajlou
ahhajlou / fans-control.sh
Last active September 26, 2024 04:20
Linux_on_Asus_Laptop
# https://askubuntu.com/questions/1254364/how-to-control-fans-on-an-asus-laptop/1398098#1398098
cat << EOF >>~/.bashrc
alias fan-turbo='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 1 >> fan_boost_mode"; sudo sh -c "echo 1 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'
alias fan-performance='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 0 >> fan_boost_mode"; sudo sh -c "echo 0 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'
alias fan-silent='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 2 >> fan_boost_mode"; sudo sh -c "echo 2 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'
EOF
source ~/.bashrc
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y git cups samba build-essential automake libcups2-dev
sudo usermod -a -G lpadmin pi
sudo cupsctl --remote-any
sudo systemctl restart cups
# Build Canon capt driver
cd /tmp
git clone https://github.com/agalakhov/captdriver.git captdriver