Skip to content

Instantly share code, notes, and snippets.

@EltonGarcia
EltonGarcia / bw-ssh-add
Created October 18, 2025 19:00 — forked from mrishu/bw-ssh-add
Load SSH Key from Bitwarden directly into ssh-agent
#!/usr/bin/env bash
# bw-ssh-add : Load SSH key from Bitwarden directly into ssh-agent.
# Make sure that the ssh-agent is running.
# Fail fast
set -euo pipefail
if [[ -z "${BW_SESSION:-}" ]]; then
echo "No BW_SESSION found. Unlocking Bitwarden..."
BW_SESSION=$(bw unlock --raw)
@EltonGarcia
EltonGarcia / archlinux-qemu-kvm.md
Last active July 31, 2025 18:44 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux
@EltonGarcia
EltonGarcia / readme.md
Last active July 24, 2025 16:18
Control External Monitor Brightness

Control External Monitor Brightness

View Original source

External monitors can be controlled from linux via the DDC/CI interface. There is some great guidence on doing this in in the ArchWiki, but there are some problems on Nvidia that can be solved with workarounds listed in this issue.

Here's a step by step to getting it working on Arch.

  1. Install ddcutil and ddcci-driver-linux-dkms.
  2. Add i2c-dev to /etc/modules-load.d/modules.conf.
  3. Add a ddcci service by creating the following in /etc/systemd/system/ddcci@.service:
SUBSYSTEM=="i2c-dev", ACTION=="add",\
ATTR{name}=="NVIDIA i2c adapter*",\
TAG+="ddcci",\
TAG+="systemd",\
ENV{SYSTEMD_WANTS}+="ddcci@$kernel.service"
@EltonGarcia
EltonGarcia / keyboard.md
Last active July 20, 2025 17:00 — forked from ericdouglas/keyboard.md
Cedilla under C (ç) in 'US international' keyboard layout in Linux

Add English (US, alt. intl.)

It's because the cedilla module isn't loaded by default when the locale is set to en, so you have to change the configuration files for gtk to add them:

  1. Edit configuration files:
sudo vim /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache

sudo vim /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache
@EltonGarcia
EltonGarcia / gmail-stats.gs
Created July 29, 2023 21:32 — forked from leodevbro/gmail-stats.gs
In Gmail inbox, Find sender with most mail threads
// Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8
// v2.5
// Google Apps Script is a coding language based on JavaScript.
// This Apps Script code helps us to sort addresses by most threads.
// A thread is a group of messages, as a conversation.
const modes = {
inbox: "inbox", // to analyze threads in the "Inbox" folder
outbox: "outbox", // to analyze threads in the "Sent" folder
@EltonGarcia
EltonGarcia / iterm2-solarized.md
Created June 20, 2021 00:45 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k