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
@drio
drio / dendrite.yaml
Last active September 17, 2022 11:29
# This is the Dendrite configuration file.
#
# The configuration is split up into sections - each Dendrite component has a
# configuration section, in addition to the "global" section which applies to
# all components.
# The version of the configuration file.
version: 2
# Global Matrix configuration. This configuration applies to all components.
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 / alahack.lua
Last active August 14, 2022 14:54
cycle through alacritty instances in OSX via hammerspoon
--[[
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
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 / 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 / index.txt
Created July 20, 2022 14:03
foo_bar2
Gist away!