Skip to content

Instantly share code, notes, and snippets.

View philippgitpush's full-sized avatar
🌱
Dandori issue

Philipp philippgitpush

🌱
Dandori issue
View GitHub Profile
@philippgitpush
philippgitpush / pullFromPico4HMD.bat
Created February 4, 2025 14:23
Pull / delete media from the Pico 4 HMD.
:: -- Pull --
@echo off
setlocal
set TARGET_DIR=%cd%
echo Pulling files from the device...
adb pull /sdcard/Movies/ScreenRecording "%TARGET_DIR%\ScreenRecording"
adb pull /sdcard/Pictures/Screenshots "%TARGET_DIR%\Screenshots"
@philippgitpush
philippgitpush / disableXboxGamebar.ps1
Last active July 11, 2025 13:20
Disable / Remove Xbox Gamebar / GamingOverlay Link-Popups on WIndows 11 IoT Enterprise LTSC
# Remove Xbox App
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage
# Disable ms-gamingoverlay links
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0
reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" /d 0
# Disable ms-gamebar links
reg add HKCR\ms-gamebar /f /ve /d URL:ms-gamebar 2>&1 >''
reg add HKCR\ms-gamebar /f /v "URL Protocol" /d "" 2>&1 >''
@philippgitpush
philippgitpush / twitterCopyToObsidianEmbed.js
Last active June 26, 2024 15:58
Userscript that adds a button on X (Formerly Twitter) that allows you to copy a tweet to the obsidian embed format (user plugin)
// ==UserScript==
// @name X Embed Button
// @version 1.0.1
// @description Userscript that adds a button on X (Formerly Twitter) that allows you to copy a tweet to the obsidian embed format (user plugin)
// @author philippgitpush
// @match https://x.com/*
// @grant none
// ==/UserScript==
(function() {
@philippgitpush
philippgitpush / bulkRename.cs
Created June 17, 2024 16:12
Unity editor script to bulk rename the children of a given gameobject
using UnityEngine;
using UnityEditor;
public class RenameChildren : EditorWindow {
private static readonly Vector2Int size = new Vector2Int(250, 100);
private string childrenPrefix;
private int startIndex = 0;
[MenuItem("GameObject/Rename children")] public static void ShowWindow() {
EditorWindow window = GetWindow<RenameChildren>();
@philippgitpush
philippgitpush / zotify.json
Last active July 17, 2024 10:45
Zotify config.json configuration file for high quality mp3s
{
"SAVE_CREDENTIALS": "True",
"CREDENTIALS_LOCATION": "",
"OUTPUT": "",
"SONG_ARCHIVE": "",
"ROOT_PATH": "",
"ROOT_PODCAST_PATH": "",
"SPLIT_ALBUM_DISCS": "False",
"DOWNLOAD_LYRICS": "False",
"MD_SAVE_GENRES": "False",
@philippgitpush
philippgitpush / enhancedXVideoPlayer.js
Last active June 5, 2024 18:54
Userscript that changes X's (Formerly Twitter) video player UX to the browser's default and adds volume control memory
// ==UserScript==
// @name Enhanced X Video Player
// @version 1.0.1
// @description Enhance X video player with volume control memory.
// @author philippgitpush
// @match https://x.com/*
// @grant none
// ==/UserScript==
(() => {
@philippgitpush
philippgitpush / moveJPGBasedOnDNG.ps1
Last active June 5, 2024 18:57
PowerShell script for organizing JPG files into corresponding folders within the 'JPG' directory, based on the presence of matching DNG files in the 'RAW' directory
# Path to the current directory
$baseFolder = Get-Location
# Path to the JPG folder
$jpgFolder = Join-Path $baseFolder "JPG"
# Path to the RAW folder
$rawFolder = Join-Path $baseFolder "RAW"
# Iterate through all .jpg files in the JPG folder
@philippgitpush
philippgitpush / ffmpegAudioConversion.sh
Last active June 5, 2024 18:51
Collection of ffmpeg conversion scripts (mp3 / flac / wav)
# Flac to mp3, Single File
ffmpeg -i input.flac -ab 320k -ar 44100 output.mp3
# Flac to mp3, Current Dir
for file in *.flac; do
[ -e "$file" ] || continue
ffmpeg -i "$file" -ab 320k -ar 44100 "${file%.flac}.mp3"
done
rm -f *.flac
@philippgitpush
philippgitpush / indesignCoordinatesExtraction.jsx
Last active June 5, 2024 18:46
Adobe InDesign script for extracting object coordinates
// Load the required libraries
#target "InDesign"
#targetengine "session"
// Create a new panel
var myPanel = new Window("palette", "Coordinates Extraction", undefined);
// Add content to the panel
var label = myPanel.add("statictext", undefined, "Coordinates:");
label.alignment = "left";
@philippgitpush
philippgitpush / barrierKeyGen.sh
Last active June 5, 2024 18:49
Script for generating a self-signed SSL certificate using OpenSSL on Windows, specifically for use with the Barrier KVM software.
"C:\Program Files\Git\usr\bin\openssl.exe" req -x509 -nodes -days 3365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem -sha256