Skip to content

Instantly share code, notes, and snippets.

View drio's full-sized avatar
🐢
I don't know

David Rio Deiros drio

🐢
I don't know
View GitHub Profile
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index 0b8691f..4377bc6 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -87,7 +87,8 @@
// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
- #define MOTHERBOARD BOARD_RAMPS_14_EFB
+ //#define MOTHERBOARD BOARD_RAMPS_14_EFB
@drio
drio / README.md
Last active August 16, 2022 11:15
terraform-notes

Terraform notes

Basics

# So we get the specific code for the provider
$ terraform init
$ terraform plan
$ terraform apply
$ terraform destroy # not a good idea
@drio
drio / README.md
Last active August 16, 2022 11:14
aws-cli-cheatsheet

Cheatsheet aws cli

Config is in $HOME/.aws

To list profiles:

aws configure list-profiles

Use the env var AWS_DEFAULT_PROFILE to select a profile.

@drio
drio / README.md
Last active July 28, 2022 20:43
go-builds-in-github-actions

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 July 28, 2022 15:06
ssl_tls_concepts
*.cert
*.crt
*.key
@drio
drio / README.md
Last active July 25, 2022 12:31
router_os_mikrotik
@drio
drio / index.txt
Created July 20, 2022 14:03
foo_bar2
Gist away!
@drio
drio / index.txt
Created July 20, 2022 13:56
gist name here
Start here.
@drio
drio / how_to_gist_from_cli.md
Last active July 20, 2022 14:07
how to gist from cli

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 / PromQL-notes.md
Created June 15, 2022 16:01
PromQL notes

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",