Skip to content

Instantly share code, notes, and snippets.

View FelisDiligens's full-sized avatar

FelisDiligens FelisDiligens

View GitHub Profile
@FelisDiligens
FelisDiligens / vm.sh
Created September 27, 2023 18:33
VirtualBox VM helper script
#!/bin/bash
# To get the UUID, run $ VBoxManage list vms
vm_uuid="{dc9fb426-ea9e-4583-aa05-95455b2c0814}"
# Install OpenSSH in VM:
ssh_user=$USER
ssh_host=$hostname
# Install Samba in VM:
@FelisDiligens
FelisDiligens / setup.sh
Last active September 27, 2023 17:29
Setup Ubuntu
#!/bin/bash
PACKAGE_LIST=(
# Essentials
ca-certificates
gnupg
apt-transport-https
vim
wget
curl
@FelisDiligens
FelisDiligens / readable_password.py
Last active December 7, 2023 15:21
Human Readable Password Generator (Python 3)
#!/usr/bin/env python3
from random import randint
import argparse
# Based on the work of Christian Haensel and Josh Hartman
# (https://gist.github.com/joshhartman/1507069#file-randompassword-php)
# Rewritten from PHP 7 to Python 3 and modified slightly
# Examples (arguments: `-csl 10`): Davocha!46, Xafeeda^17, Fiethek&04
@FelisDiligens
FelisDiligens / hide_files.py
Last active December 7, 2023 12:45
Python script to hide dotfiles under Windows
#!/usr/bin/env python3
import os
import sys
import platform
import subprocess
import ctypes
import argparse
from pathlib import Path
@FelisDiligens
FelisDiligens / convert_theme.py
Last active December 7, 2023 15:21
Converts theme files between different formats (Windows Terminal, mintty, iTerm)
#!/usr/bin/env python3
import json
import configparser
import xml.etree.ElementTree as ET
from pathlib import Path
import sys
import argparse
@FelisDiligens
FelisDiligens / url.py
Created July 11, 2019 15:15
URL class for Python 3 - Parse and manipulate every piece of the url individually.
import re
import urllib.parse
"""
TODO:
* Documentation
* Adding comments
* Write own concatenation method, instead of relying on urllib
"""