Skip to content

Instantly share code, notes, and snippets.

@muc
muc / .gitignore
Created July 12, 2023 11:17 — forked from maxpert/.dockerignore
Marmot + PocketBase + Fly.io
/pb_data
@muc
muc / public_key_decrypt_gpg_base64.go
Created July 8, 2017 09:54 — forked from jyap808/public_key_decrypt_gpg_base64.go
Decrypting a base64 GPG public key encrypted string using a passphrase protected private key in ASCII armor format
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
)
@muc
muc / public_key_encrypt_gpg_base64.go
Created July 8, 2017 09:54 — forked from jyap808/public_key_encrypt_gpg_base64.go
Public key encrypting a string into GPG format and outputting it in base64 encoding
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
)
@muc
muc / decrypt_gpg_armor_private_key.go
Created July 8, 2017 09:54 — forked from jyap808/decrypt_gpg_armor_private_key.go
Decrypting an ASCII armored GPG encrypted string using a private key (no passphrase) in ASCII armor format
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
@muc
muc / decrypt_gpg_armor_using_passphrase_private_key.go
Created July 8, 2017 09:54 — forked from jyap808/decrypt_gpg_armor_using_passphrase_private_key.go
Decrypting an ASCII armored GPG encrypted string using a passphrase protected private key in ASCII armor format
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
@muc
muc / encrypt_decrypt_gpg_armor.go
Created July 8, 2017 09:54 — forked from jyap808/encrypt_decrypt_gpg_armor.go
Symmetrically encrypting a string into ASCII armored GPG format and then Decrypting it in Golang
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
@muc
muc / decrypt_gpg_armor.go
Created July 8, 2017 09:54 — forked from jyap808/decrypt_gpg_armor.go
Decrypting an ASCII armored GPG encrypted string in Golang
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
- What do Etcd, Consul, and Zookeeper do?
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions
numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Centralized locking can be based on this K/V store.
@muc
muc / golang_job_queue.md
Created July 15, 2016 21:43 — forked from harlow/golang_job_queue.md
Job queues in Golang
@muc
muc / concurrency-in-go.md
Created June 26, 2016 14:08 — forked from kachayev/concurrency-in-go.md
Channels Are Not Enough or Why Pipelining Is Not That Easy