Skip to content

Instantly share code, notes, and snippets.

View benjivesterby's full-sized avatar
🧬
Always Building

Benji Vesterby benjivesterby

🧬
Always Building
View GitHub Profile
@benjivesterby
benjivesterby / atomizer-docker-commands
Last active March 15, 2021 09:30
Powershell Commands to run the Atomizer containers
docker network create atomizer_nw
docker run -d --hostname my-rabbit --restart always --name some-rabbit -p 8080:15672 -p 5672:5672 --network=atomizer_nw rabbitmq:3-management
docker run -e CONNECTIONSTRING=amqp://guest:guest@some-rabbit:5672/ -e QUEUE=atomizer --network=atomizer_nw atomizer/test-agent:latest
docker run -e CONNECTIONSTRING=amqp://guest:guest@some-rabbit:5672/ -e QUEUE=atomizer --network=atomizer_nw atomizer/test-agent:latest
docker run -e CONNECTIONSTRING=amqp://guest:guest@some-rabbit:5672/ -e QUEUE=atomizer --network=atomizer_nw atomizer/test-agent:latest
vim "$(ls | grep pattern -m 1)"
cat "$(ls | grep traces -m 1)" | jq > new.json
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFgag6oBEADHmaHa5z7QUaOMTOQMlo0EHtMukXRmWtlMKZUPWbDJVqY6mDSa
kAjAhTq07Usc4JZlhuzi7LN6FtiqyzDz6BHAMdGwPEwPkifrciZ8Nt9b36wkMXjp
TT9mEBvbtKSCfZTMQsbMtIT+VdpmC+IA53rxKAyJvjtEQve6pmA8clZ6+p+K42Yw
ihuRIz2vjRzKceb7qnGqOW+hztAujXT9vLha1usAWnJc9FTX7coqS49x99+5aEue
pbElMaoxwocLHWG130H+lAsnOrBX9lujCBVJJjhhbb+oUxSH888vz8sivBNJHkBN
mcArqEHj/qNVluNaBkRnRmtxzFDrNe5+PBeaSaOWzQ+8Jb19pSOrnN/ucUZusGjh
LXx+0hSKpE537ST7/HBvHY3Ec4WsRkqpH2LQ2cUqQ6Ckfv8h+UR5bdC3JfD+MjkO
Zwz3dJgU4day86IpDPyvDmN7ZxktHHxb1U2WxP8WQbHfWMy8Q2ZJOfOmOnbEO7hw

Keybase proof

I hereby claim:

  • I am benjivesterby on github.
  • I am benjivesterby (https://keybase.io/benjivesterby) on keybase.
  • I have a public key ASDbjJtgAQ1Qoiz90Out1I9BjSKJCdBc0NgKSsuPUm34iQo

To claim this, I am signing this object:

@benjivesterby
benjivesterby / gist:a0e079c054134031f53102ad297215ac
Created July 30, 2021 09:57
Auto Update for Ubuntu and Debian
sudo apt install unattended-upgrades
sudo systemctl status unattended-upgrades
# Ubuntu
sudo apt install update-notifier-common
# Debian
sudo apt install apt-config-auto-update
@benjivesterby
benjivesterby / benjivesterby.gpg
Created September 18, 2021 00:39
New GPG Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGFE85EBEADPA/5GxNgv164w8+HvHfF2CoaiG/thR4ZoBnr6TbSlfXDJrBQg
mRSNnfHELEMGV+0S+WSqEMrvkf6IAj5lsVNQhGqVQt4CfAWxfh1dPorgwRJ5Hn4h
+gaw6gCxLIs2qLgmwmCdqtKqoAAOpe2xb6lOVzzc+D50wcG/FFIthTltXvGf/PG7
Gm0X11t5t2DCgC1LXZXu+A7KAD9RZjjBRaZf6KvHUzmkCCXdUtLv/NhdcGjo8sMl
MCZI2brS0FFKnY4j6k4BEJPqSDrkLKqb5K6jdaRJk+QWlJpbpuFUiSFV3fdlHW6d
e/AqEwhs7wdg+R4W11Y2a2Rtg8pE0Yj/fhe4tyTtgfVoM2hnSdPHRkSzwe4Qdk5v
4IfjYvwYZrwBPbBf0IU1xAk4Sf4GMtQOrcpBME8YyAV/FRAktmglvH5BKX/R9tuX
pAhHUid4Kojm5tjaZJ0i9f7KXPOC65uAUwPzNfGPjnMRjX7/N32LKvWXgWsi0LTt
mkdir $HOME/bin && echo 'export PATH="$PATH:$HOME/bin"' >> ~/.zshrc
curl -L https://github.com/devnw/gvm/releases/download/dev/gvm > $HOME/bin/gvm && chmod +x $HOME/bin/gvm
find . -name '*partialfilename*' -print0 | xargs -0 -P0 rm #remove files in find with partial name
<!-- Start of Open Graph -->
<meta property="og:title" content="{{ .Title }}">
{{ if .IsPage }}
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{ .Date.Format " 2006-01-02" }}">
{{ else }}
<meta property="og:type" content="website">
{{ end }}
<meta property="og:description" content="{{ .Description }}">
@benjivesterby
benjivesterby / firefox-bookmark-schema.go
Created January 4, 2022 20:25
Firefox Bookmark chema from JSON in GO
type BookmarkTree struct {
GUID string `json:"guid"`
Title string `json:"title"`
Index int `json:"index"`
DateAdded int64 `json:"dateAdded"`
LastModified int64 `json:"lastModified"`
ID int `json:"id"`
TypeCode int `json:"typeCode"`
Type string `json:"type"`
Root string `json:"root"`