Skip to content

Instantly share code, notes, and snippets.

View BillyDoesDev's full-sized avatar
💭
waddlin'

BillyDoesDev

💭
waddlin'
View GitHub Profile
@BillyDoesDev
BillyDoesDev / bluetoothdoubledipping.md
Created March 23, 2023 16:51 — forked from diffficult/bluetoothdoubledipping.md
Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

You may have experienced when dual booting that you need to re-pair your bluetooth devices (ie., Headphones, mouse, keyboard, etc) this usually happens because you have already paired the device with another operating system using the same bluetooth adapter when dual booting (either Linux or Windows).

Some devices cannot handle multiple pairings associated with the same MAC address (ie., bluetooth adapter). As per suggested on the ArchWiki you can fix this by re-pairing the device each time, but there's actually another solution to not do so each time you choose to use your device on a different OS.

How can we accomplish this?

Easy, just pair the device on a OS and copy the bluetooth keys generated to the other OS so our device doesn't notice the difference.

@BillyDoesDev
BillyDoesDev / README.md
Last active September 8, 2022 08:32
ctf-challenge1

Dependencies

numpy==1.23.2
Pillow==9.2.0
pyzbar==0.1.9
qrcode==7.3.1

Note

  • Depending on your system, you might need to have zbar installed on your system to get the scripts to work.
@BillyDoesDev
BillyDoesDev / vidres.py
Last active July 31, 2022 16:48
change the resoultion of a video on the fly
# Usage:
# python vidres.py path/to/input/video [path/to/output/video]
import os
import re
import shutil
import subprocess
import sys
data = subprocess.run(
@BillyDoesDev
BillyDoesDev / virtualization on Linux.md
Last active July 19, 2022 13:46
A brief guide on how to get started with virtualization on Linux

Getting started with virtualization on Linux

After doing a lot of VM-hopping, from QEMU to VirtualBox and whatnot, I finally decided to stick to VMWare Player (not sponsored btw) to use as my go to hyperviser. Granted, its paid counterpart or even its other open source counterparts might have more features to offer, but I decided to stick to ease of use and reliability. For some reason, VirtualBox just dies when KDE is run on it, and QEMU tends to pose a lot of display scaling issues sometimes. I'm not saying that VMWare is always perfect either, but it's still more usable, in my opinion. So I put together a small guide to set stuff up as easily as possible on an Arch/Arch-based machine.

Prerequisites

  • Virtualization enabled in the BIOS

Note: This tutorial is focussed on Arch based distros. The steps should be the same on just about anything else; however, the name of the packages might differ.

Installation

@BillyDoesDev
BillyDoesDev / pmatrix.py
Last active May 10, 2022 17:56
Python script to replicate the matrix rain effect
#!/usr/bin/python
import curses
import random
import string
from curses import wrapper
import _curses
@BillyDoesDev
BillyDoesDev / doodles_bg.py
Last active May 18, 2022 04:42
Generate high res wallpapers using Python3
import os
import random
import re
import requests
from PIL import Image, UnidentifiedImageError
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
}
@BillyDoesDev
BillyDoesDev / ffmpeg.md
Created January 10, 2022 07:02 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@BillyDoesDev
BillyDoesDev / Quest.txt
Created January 9, 2022 14:17
Try decoding this.. Hope you have fun!
--++-++---++---+--++-+----+++-----++-+-+--++--+---++--++--++------++-++---++--++--++-+----+++-----++-+---++--+----++--++--++-++---++-+---++---++--++-+++--+++--+--++--++--+++--+--++-+++--+++--+--++-+-+--+++--+--++-++---+++--+--++--++--++-+-+--++-++--++--+-+--++-++---++-+-+--++-+-+--++--++--++--++--+++--+--++-+++--+++-----++-++---++--++--++-++--++--+----++-+---++--+-+--++-+++--++-+-+--++-++---++-+-+--++-++--++--+-+--++-++--++--++---++--++-++--+--
@BillyDoesDev
BillyDoesDev / imgToBraille.py
Last active June 5, 2022 17:55
A tool to convert images to Braille text art, written in Python3
"""
A tool to convert images into Braille art
Depends on: Pillow - Python Imaging Library
To install, do:
$ pip install Pillow
Usage:
$ python imgToBraille.py --help
"""
@BillyDoesDev
BillyDoesDev / dash.py
Last active February 27, 2022 04:22
Chrome dino game clone.. in python3!
# Controls: `space` to jump
import curses
import random
from curses import wrapper
def gen_path() -> str:
path = "_" * 50 + "".join(
[