Skip to content

Instantly share code, notes, and snippets.

View enoy19's full-sized avatar
🌟
A wizard is never late, nor is he early. He arrives precisely when he means to.

Enis enoy19

🌟
A wizard is never late, nor is he early. He arrives precisely when he means to.
View GitHub Profile
@enoy19
enoy19 / README.md
Last active July 1, 2025 13:18
fbt.sh – Fix Linux Bluetooth headphones stuck in hands-free mode by forcing A2DP; includes interactive installer and Zsh tab-completion.

fbt: quick Bluetooth reconnect on Linux

On Ubuntu, Debian, Arch, Fedora and others, Bluetooth headsets sometimes drop to HFP/HSP hands-free mode.
fbt.sh simply reconnects the device with one command. This is often enough to make the desktop switch back to A2DP automatically. Zsh tab completion lets you pick the headset by name.

Features

  • One-shot reconnect, no profile forcing
  • Works with PipeWire and PulseAudio
  • Installs to ~/.local/bin by default, no root
@enoy19
enoy19 / Gitlab CVE-2023-7028 production_json.log scanner.md
Last active January 15, 2024 21:38
Gitlab CVE-2023-7028 production_json.log scanner

Prerequisites

  • jq

How to use

$ ./scan.sh production_json.log

Example Output:

@enoy19
enoy19 / RickAstley.java
Last active December 21, 2017 09:16
Rickrolling fluently in Java
/**
* <iframe width="420" height="315"
* src="https://www.youtube.com/embed/DLzxrzFCyOs?rel=0&amp;controls=0&start=43&autoplay=1&amp;showinfo=0" frameborder="0"
* allowfullscreen></iframe>
*/
public interface RickAstley
{
RickAstley never();