Category: hello world

  • Certbot

    Renewing letsencrypt cert using a dns record

    [root@localhost ~]# certbot -d nicewarm.coffee --manual --preferred-challenges dns certonly
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Renewing an existing certificate for nicewarm.coffee
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Please deploy a DNS TXT record under the name:
    
    _acme-challenge.nicewarm.coffee.
    
    with the following value:
    
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    
    Before continuing, verify the TXT record has been deployed. Depending on the DNS
    provider, this may take some time, from a few seconds to multiple minutes. You can
    check if it has finished deploying with aid of online tools, such as the Google
    Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.nicewarm.coffee.
    Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
    value(s) you've just added.
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Press Enter to Continue
    
    Successfully received certificate.
  • Caffeine

    Caffine – keep your comuter awake with Python or Powershell

    Python
    ~/flatwhite via 🐍 v3.10.2 (flatwhite) 
    ❯ cat misc/caffeine.py
    import time
    from pyautogui import press
    
    while(True):
        press('shift')
        print('on shift! \n')
        time.sleep(300)
    Powershell
    c/Users/flatwhite
    :) cat caffeine.ps1
    while(1)
    {
            $dummyshell = New-Object -com "Wscript.shell"
            $dummyshell.sendkeys("+")
            Start-Sleep -seconds 59
    }⏎