Skip to content

Instantly share code, notes, and snippets.

@aidos-dev
aidos-dev / README.md
Last active April 18, 2025 17:38
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@steinelu
steinelu / getTerminalSize.go
Last active November 22, 2024 14:46
Get Terminal size in golang
func consoleSize() (int, int) {
cmd := exec.Command("stty", "size")
cmd.Stdin = os.Stdin
out, err := cmd.Output()
if err != nil {
log.Fatal(err)
}
s := string(out)
@alejandro-martin
alejandro-martin / multiple-ssh-keys-git.adoc
Last active April 18, 2025 16:08
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory: