Skip to content

Instantly share code, notes, and snippets.

View DavidBilodeau1's full-sized avatar

David Bilodeau DavidBilodeau1

View GitHub Profile
#!/bin/bash
# Set the source directory containing the files
SOURCE_DIR="ORIGIN DIRECTORY"
# Set the destination base directory
DEST_DIR="TARGET DIRECTORY"
# Process each file in the source directory
for file in "$SOURCE_DIR"/motion_*.jpg; do
@DavidBilodeau1
DavidBilodeau1 / HALegoTrain.ino
Created December 18, 2024 01:29 — forked from jerome-labidurie/HALegoTrain.ino
Lego PoweredUp control from HomeAssistantt
/**
* Lego (Powered Up) train control from Home Assistant / MQTT with BellRing
*
* Licence: GPLv3
*
* needed libraries:
* legoino https://github.com/corneliusmunz/legoino
* > 1.1.0, tested with commit 4daae4f683b087b8c443a4c813934e3dfff41d69
* home-assistant-integration https://github.com/dawidchyrzynski/arduino-home-assistant
* 1.3.0
@DavidBilodeau1
DavidBilodeau1 / repackage_apk_for_burp.py
Created January 22, 2024 15:48 — forked from floyd-fuh/repackage_apk_for_burp.py
Automatically repackage an Android apk and resign it for usage with Burp Proxy
#!/usr/bin/env python3
import sys
if not sys.version.startswith('3'):
print('\n[-] This script will only work with Python3. Sorry!\n')
exit()
import subprocess
import os