Skip to content

Instantly share code, notes, and snippets.

View dragid10's full-sized avatar

Alex Oladele dragid10

View GitHub Profile
@dragid10
dragid10 / fix-libfprint.py
Last active March 31, 2024 05:01
Clear Fingerprints (Framework)
# Import PyGObject
# PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more.
from gi import require_version
# for arguments
from sys import argv
from os import geteuid
if geteuid() != 0:
exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.")
@dragid10
dragid10 / zfs-destroy-snapshots.py
Created September 27, 2022 14:35 — forked from onlime/zfs-destroy-snapshots.py
Helper script to remove old ZFS snapshots
#!/usr/bin/env python3
"""
Helper script to remove old ZFS snapshots
Copyright (c) Onlime GmbH, https://www.onlime.ch
"""
import argparse
from re import compile
from datetime import datetime, timedelta
from subprocess import check_output
import sys
@dragid10
dragid10 / install-toolbox.sh
Last active April 6, 2025 13:06 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
def get_project_root() -> Path:
"""Returns project root folder."""
return Path(__file__).parent.parent
nc -vz <IP> <PORT> -w 4