Skip to content

Instantly share code, notes, and snippets.

Avatar
🐌

David Rio Deiros drio

🐌
View GitHub Profile
@drio
drio / alahack.lua
Last active Aug 14, 2022
cycle through alacritty instances in OSX via hammerspoon
View alahack.lua
--[[
This piece of hammer spoon code tries to address the issue of not being able to
switch between Alacritty instances in OSX.
Details: https://github.com/alacritty/alacritty/issues/607
To install:
1. Install hammer spoon (https://www.hammerspoon.org/)
2. Drop this file in your hammerspoon config directory:
$HOME/.hammerspoon/others/alahack.lua
@drio
drio / README.md
Created Aug 10, 2022
terraform-notes
View README.md

Gist away!

@drio
drio / README.md
Created Aug 10, 2022
aws-cli-cheatsheet
View README.md

Gist away!

@drio
drio / README.md
Last active Jul 28, 2022
go-builds-in-github-actions
View README.md

Go builds in github actions

  1. Create the .github/workflows/release_build.yml. Pay attention to line 30, you may want to adjust that for your project.
  2. In the github UI, add a new token in Settings > Developer Settings > Personal access tokens. Save the token.
  3. In your project settings, under Secrets > Actions add a secret name with the value of the token that you just created.
  4. Use a script
@drio
drio / .gitignore
Last active Jul 28, 2022
ssl_tls_concepts
View .gitignore
*.cert
*.crt
*.key
@drio
drio / README.md
Last active Jul 25, 2022
router_os_mikrotik
View README.md
@drio
drio / how_to_gist_from_cli.md
Last active Jul 20, 2022
how to gist from cli
View how_to_gist_from_cli.md

How to gist from the cli

To create a new gist from cli:

$ gh gist create hello.md -d "hello world" -p -w

Then you can list your gist:

@drio
drio / index.txt
Created Jul 20, 2022
gist name here
View index.txt
Start here.
View PromQL-notes.md

Ch13 - Intro to PromQL

Aggregating gauges

We have a gauge metric called: node_filesystem_size_bytes

node_filesystem_free_bytes{device="/dev/sda1",fstype="vfat",
        instance="localhost:9100",job="node",mountpoint="/boot/efi"} 70300672
    node_filesystem_free_bytes{device="/dev/sda5",fstype="ext4",