Skip to content

Instantly share code, notes, and snippets.

@aidos-dev
aidos-dev / README.md
Last active April 22, 2026 06:08
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
@matootie
matootie / awscliv2-devcontainer.sh
Created March 5, 2022 16:52
Install AWS CLI v2 in a Docker development container for Visual Studio Code.
#!/usr/bin/env bash
set -e
# Ensure script is run as root.
if [ "$(id -u)" -ne 0 ]; then
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
exit 1
fi
@iwantroca
iwantroca / bluez-monitor.conf
Created June 18, 2021 17:25
pipewire low audio
# Bluez monitor config file for PipeWire version "0.3.30" #
#
# Copy and edit this file in /etc/pipewire/media-session.d/
# for systemwide changes or in
# ~/.config/pipewire/media-session.d/ for local changes.
properties = {
# Enable mSBC support, disabled by default. Be aware that
# mSBC is not expected to work on all headset + adapter combinations.
# This can be overloaded for a specific device and native backend
@yezz123
yezz123 / Exploitation.md
Created May 24, 2021 12:09
Pentesting-Exploitation

############################################################################################################ ################## ############################# ################## #############################

              This Gist collection contains all localstack related examples

################## ############################# ################## ############################# ############################################################################################################

@blizzrdof77
blizzrdof77 / new_env_var.sh
Created September 15, 2020 23:03
Create new environment variable & print assignment statement to your shell's '.rc' file
# -----------------------------------------
# Create new environment variable & print assignment statement to your shell's '.rc' file
#
# @1 = variable new
# @2 = variable definition
# @requires: '~/.zshrc' or '~/.bashrc'
# -----------------------------------------
function new_env_var {
local detected_shell="$(ps -o comm= -p $$)"
local rcfile=$(echo "${HOME}/.${detected_shell//-/}rc")
@SansGuidon
SansGuidon / .vimrc
Last active April 10, 2023 10:57
Validating Jenkinsfile in Vim and/or using CLI / terminal
" ~/.vimrc
" ...
" Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Plugin 'dense-analysis/ale'
" ...
" dense-analysis/ale options
let g:ale_history_log_output = 1
let g:ale_use_global_executables = 1
@gimbimloki
gimbimloki / JwtExampleTest.java
Created May 14, 2020 09:54
JWT Example (Sign, Verify and etc)
package com.nhn.jwt;
import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.interfaces.ECDSAKeyProvider;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Maps;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.ECDSASigner;
import com.nimbusds.jose.jwk.Curve;
@Robinzon100
Robinzon100 / gtk.css
Last active May 26, 2023 09:36
my gtk.css(~/.config/gtk-3.0/gtk.css) file for ubuntu GNOME
/* .header-bar.default-decoration {
padding-top: 1px;
padding-bottom: 1px;
font-size: 0.3em !important;
}
.header-bar.default-decoration .button.titlebutton {
padding: 0px;
}
window.ssd headerbar.titlebar {
@romainl
romainl / Don't use Vim.md
Last active April 11, 2026 06:18
Don't use Vim for the wrong reasons

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.