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
  • 18:41 (UTC +02:00)
View GitHub Profile
@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);
},
};
@4skl
4skl / README
Created November 7, 2022 20:06
Script to delete discord messages in a channel based on user id
This is not really perfect to use and has the risk to ban you based on discord TOS on automation.
s : server id
c : channel id
a : user id
m : id of message to start from
You also need to fill in "x-super-properties" and "authorization" with your datas.
Good luck :)