Skip to content

Instantly share code, notes, and snippets.

View guillermoap's full-sized avatar
🐋

Guillermo Aguirre guillermoap

🐋
View GitHub Profile
@guillermoap
guillermoap / complete_meetings_member.rb
Last active November 29, 2023 13:59
Code examples for article
# components/meetings/app/models/meetings/member.rb
class Meetings::Member < ApplicationRecord
def self.consume_confirmation(user_registration_identifier)
ApplicationRecord.transaction do
self.create!(identifier: user_registration_identifier)
Meetings::Outbox.create!(
event: 'MEMBER_CREATED_SUCCESS',
payload: { user_registration_identifier: self.identifier }
)
end
@guillermoap
guillermoap / languages.toml
Created August 12, 2023 00:41
Helix languages config
[[language]]
name = "rust"
auto-format = true
[language.config.rust.inlayHints]
includeInlayEnumMemberValueHints = true
includeInlayFunctionLikeReturnTypeHints = true
includeInlayFunctionParameterTypeHints = true
includeInlayParameterNameHints = "all" # 'none' | 'literals' | 'all';
includeInlayParameterNameHintsWhenArgumentMatchesName = true
@guillermoap
guillermoap / config.toml
Created August 12, 2023 00:39
Helix config
theme = "monokai_pro_mine"
[editor]
line-number = "relative"
mouse = false
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
@guillermoap
guillermoap / monokai_pro_mine.toml
Created August 12, 2023 00:38
Helix monokai pro theme
"ui.linenr.selected" = { bg = "base3" }
"ui.text.focus" = { fg = "yellow", modifiers= ["bold"] }
"ui.menu" = { fg = "base8", bg = "base3" }
"ui.menu.selected" = { fg = "base2", bg = "yellow" }
"ui.virtual.ruler" = { bg = "base1" }
"info" = "base8"
"hint" = "base8"
# background color
@guillermoap
guillermoap / preonic-hhkb-gaming-macos.json
Last active April 6, 2021 05:30
preonic-hhkb-gaming-macos
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"preonic/rev3","keymap":"preonic-hhkb-gaming-macos","layout":"LAYOUT_ortho_5x12","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSLS","KC_LCTL","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","LSFT_T(KC_CAPS)","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_UP","KC_SLSH","KC_LGUI","KC_GRV","LALT_T(KC_RALT)","MO(3)","KC_ENT","KC_ENT","KC_SPC","KC_SPC","MO(4)","KC_LEFT","KC_DOWN","K
@guillermoap
guillermoap / preonic-hhkb-gaming.json
Created October 1, 2020 02:32
Preonic rev 3 keymap
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"preonic/rev3","keymap":"preonic-hhkb-gaming","layout":"LAYOUT_ortho_5x12","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSLS","KC_LCTL","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","LSFT_T(KC_CAPS)","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_UP","KC_SLSH","KC_LGUI","KC_GRV","LALT_T(KC_RALT)","MO(3)","KC_ENT","KC_ENT","KC_SPC","KC_SPC","MO(4)","KC_LEFT","KC_DOWN","KC_RGHT
@guillermoap
guillermoap / .tmux.conf
Last active March 10, 2024 19:45
Tmux conf with remapped prefix, pane creation
# set vi keys
setw -g mode-keys vi
set -g default-terminal "xterm"
# allow for colors
set -g default-terminal "screen-256color"
# set -g default-terminal "xterm-256color"
set -g status-style 'bg=colour236','fg=white'
# mouse Config
@guillermoap
guillermoap / elementary_os_color_palette.txt
Last active August 12, 2023 00:35
Elementary OS Pantheon terminal color palette
BLACK:RED:GREEN:YELLOW:BLUE:PURPLE:CYAN:WHITE
#666666:#FF1E8E:#8EFF1E:#fffb00:#1E8EFF:#e500e5:#00e5e5:#e5e5e5 <- normal
#666666:#FF1E8E:#8EFF1E:#fffb00:#1E8EFF:#e500e5:#00e5e5:#e5e5e5 <- bold
#272822 <- background
@guillermoap
guillermoap / mac_dev_setup.md
Last active September 13, 2019 15:12
Mac os setup for software development