Skip to content

Instantly share code, notes, and snippets.

@rorar
rorar / System_Status_Query.bat
Created January 23, 2025 20:37
HP SP153722 || hp thunderbolt dock g2 firmware update Cypress\Dependency fix || C:\SWSetup\SP153722\Firmware\Cypress\Dependency
@echo off
setlocal
rem Get the current folder path
set "currentFolder=%~dp0"
echo.
echo **********************************************
echo Querying HP Hook Dock status . . .
echo **********************************************
@rorar
rorar / System_Update_CY_Sign.bat
Created January 23, 2025 20:36
HP SP153722 || hp thunderbolt dock g2 firmware update Cypress\Dependency fix || C:\SWSetup\SP153722\Firmware\Cypress\Dependency
@echo off
setlocal enabledelayedexpansion
rem Get the current folder path
set "currentFolder=%~dp0"
rem Set the paths for the binary and the executable file
set "exePath=%currentFolder%ezpd_dockupdatefw.exe"
set "binPath=%currentFolder%hp_hook_secure_cy_sign.bin"
@rorar
rorar / System_Update.bat
Last active January 23, 2025 21:04
HP SP153722 || hp thunderbolt dock g2 firmware update Cypress\Dependency fix || C:\SWSetup\SP153722\Firmware\Cypress\Dependency
@echo off
setlocal enabledelayedexpansion
rem Determine the current folder path
set "currentFolder=%~dp0"
rem Set the paths for the binary and the executable file
set "exePath=%currentFolder%ezpd_dockupdatefw.exe"
set "binPath=%currentFolder%hp_hook_secure_cy_sign.bin"
@rorar
rorar / ECB USD-EUR Exchange Fetcher.py
Last active November 2, 2024 10:56
ECB USD-EUR Exchange Rate Fetcher for Odoo Import
/*
Dieses Python-Skript lädt die historischen Tageswechselkurse der Europäischen Zentralbank (ECB) für das Währungspaar USD-EUR herunter und bereitet sie für den Import in das ERP-System Odoo (18.0 Enterprise) vor.
Es erstellt eine CSV-Datei mit den folgenden Spalten: Datum, Unit per EUR, EUR per Unit und currency_id.
Die Spalte currency_id enthält den Wert USD, um sicherzustellen, dass Odoo die Währung korrekt zuordnet
## How To
1. Erstelle einen Ordner (bspw. auf dem Desktop)
2. Erstelle eine Textdatei, Kopiere das Script dort hinein, benenne die Textdatei um zu "ECB USD-EUR Exchange Fetcher.py"
3. In der Konsole: `pip install pandas requests lxml`
@rorar
rorar / HToggler.su
Last active October 16, 2024 20:38 — forked from samueljon/toggleHT.sh
Disable / Enable HyperThreading cores on runtime | CPU config backup and restore | simple CPU Mitigation Check that prevents HT | For Linux 🐧
#!/bin/bash
# ------------------------------------------------------------------------
# Usage Instructions:
# To download and use this script, follow these steps:
# wget http://example.com/HToggler.su -O HToggler.su
# chmod +x HToggler.su
# sudo ./HToggler.su
# ------------------------------------------------------------------------
@rorar
rorar / Fix: Google Account Sync.md
Last active July 3, 2024 15:56
Solution: Google Account not syncing on Android - How to fix Google account sync issues

Sometimes Google won't sync your Google Account on android and the syncing process is stuck. There are several reasons why your Google Account won't sync.

Therefore your first visit should be the official Google Documentation 'Fix account sync issues'

If this won't fix your problem, come back here and follow these instructions.

⚠️ Disclaimer:

You'll be working with a command shell and adb. Playing around can mess up your device and/or can lead to a bricked (unusable) devices and/or data loss. I take no warranty for any physical /non-physical damages of your device.

@rorar
rorar / Macbook Pro + Air EFI Update for Non-Techies.txt
Last active February 7, 2024 23:32
Update Macbook Pro/Air EFI firmware for Non-Techies (no firmware extraction and flashing needed)
## What's "EFI"?
EFI stands for Extensible Firmware Interface and it's the firmware of your Apple Computer (like a BIOS or the successor UEFI).
The EFI helps to communicate between the Hardware (your Laptop and it's components like Display, CPU, Graphic Card (GPU), Storage,...) with the Software (MacOS itself is a Software).
Responsible for this case are "drivers". A special Software that tells the System how to use the Hardware.
As you may know from your App Store, Software can get Update withs new features, issue fixes and patches against security threats.
## Update Reasons - Why should I update my EFI?
- If you want to use replace your Apple SSD with an NVMe, for better support it's advised to use the latest EFI Version.
- If somethings not working like expected
- If you need APFS (Apple File System) support