Skip to content

Instantly share code, notes, and snippets.

View diamondburned's full-sized avatar

Diamond diamondburned

View GitHub Profile
@diamondburned
diamondburned / README.md
Created January 26, 2020 23:55
Caddy folder downloader

go run . -auth username:password https://domain.com/directory/to/download/

@diamondburned
diamondburned / strip.go
Last active December 23, 2019 00:28
Escaping @everyone in Go
// EscapeEveryone escapes @everyone and @here mentions.
func EscapeEveryone(s string) string {
var mentionBuf string
var mentionInd int
for i, r := range s {
if r == '@' && i != len(s)-1 {
mentionBuf += string(r)
mentionInd = i
continue
bruh
bruh.moment

Keybase proof

I hereby claim:

  • I am diamondburned on github.
  • I am diamondburned (https://keybase.io/diamondburned) on keybase.
  • I have a public key whose fingerprint is 3F6B 5F01 929B 0070 A033 11FE 8FE8 0C63 DF38 DD28

To claim this, I am signing this object: