Skip to content

Instantly share code, notes, and snippets.

View 4skl's full-sized avatar
Oh ! Hi, send me a message if u want, I'll be keen to work with you !

4skl

Oh ! Hi, send me a message if u want, I'll be keen to work with you !
  • 4skl
  • France
  • 06:56 (UTC +02:00)
View GitHub Profile
@4skl
4skl / .bashrc
Created April 5, 2026 12:55
Open nautilus (file browser) from the terminal using the "open" command on gnome
# **Previous content**
# To open nautilus (file browser) from the terminal using the "open" command
open() {
# If no argument is provided, default to "." (current directory)
local path="${1:-.}"
# Launch nautilus silently and detach it
setsid nautilus "$path" > /dev/null 2>&1
}
@4skl
4skl / openwithcode.desktop
Created December 25, 2025 23:37
Open With Code Dolphin service menu
[Desktop Entry]
Type=Service
MimeType=inode/directory;application/octet-stream;
Actions=openWithCode
[Desktop Action openWithCode]
Name=Open With Code
Icon=/usr/share/code/resources/app/resources/linux/code
Exec=code %u
@4skl
4skl / README.md
Last active May 11, 2026 23:35
Bluetooth Pairing Key Sync Tool - Dual Boot Windows/Linux

Bluetooth Pairing Key Sync Tool

Sync Bluetooth pairing keys between Windows and Linux dual-boot systems.

What It Does

Eliminates the need to re-pair Bluetooth devices when switching between Windows and Linux. The script extracts the pairing key from Windows and applies it to Linux, so your devices work seamlessly on both operating systems.

Requirements

@4skl
4skl / irc_client.py
Created May 22, 2025 00:24
Simple irc client
import socket
import threading
import sys
import re
import argparse
import time
from getpass import getpass
"""
A simple IRC client
@4skl
4skl / heic_codec_remove.py
Created May 8, 2025 20:41
Script to remove HEIC codec and convert the images files to other format while keeping metadata
import os
from PIL import Image, ExifTags
import pillow_heif
import argparse
def convert_heic_to_format(input_path, output_format="png", output_dir=None):
"""
Converts HEIC images to the specified format (png, jpeg, webp) while preserving metadata.
:param input_path: Path to the HEIC file or folder containing HEIC files.
@4skl
4skl / ExpoOpenPGP.js
Created September 21, 2024 10:39
Small openpgp wrapper / polyfill to make ecc work in expo react native
import * as openpgp from './openpgp.mjs';
import * as Crypto from 'expo-crypto';
if (typeof global.crypto === 'undefined') {
global.crypto = {
getRandomValues: (array) => {
const randomBytes = Crypto.getRandomBytes(array.length);
array.set(randomBytes);
},
};