This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This is my imagemagick policy.xml file. It's a collection of various | |
recommendations cargo culted from around the internet to block various | |
exploits. It is effective in stopping CVE-2021-3781 (https://twitter.com/ducnt_/status/1434534373416574983 | |
and https://github.com/duc-nt/RCE-0-day-for-GhostScript-9.50) --> | |
<policymap> | |
<policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> | |
<policy domain="coder" rights="none" pattern="EPHEMERAL" /> | |
<policy domain="coder" rights="none" pattern="EPI" /> | |
<policy domain="coder" rights="none" pattern="EPS" /> | |
<policy domain="coder" rights="none" pattern="MSL" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates an app with a systray menu | |
// Still not quite right | |
package main | |
import ( | |
fyne "fyne.io/fyne/v2" | |
"fyne.io/fyne/v2/app" | |
"fyne.io/fyne/v2/canvas" | |
"fyne.io/fyne/v2/container" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/base64" | |
"fmt" | |
"time" |
OlderNewer