Skip to content

Instantly share code, notes, and snippets.

View remixer-dec's full-sized avatar
☮️
make software, not war

Remixer Dec remixer-dec

☮️
make software, not war
View GitHub Profile
@remixer-dec
remixer-dec / run_msi_on_windows_for_arm.txt
Last active February 8, 2022 10:06
Install x86 / x64 MSI on Windows for ARM
How to fix the error "This version of ... is designed to run on a 32-bit windows operating system" on ARM version of windows?
Run this command in the cmd with your msi file.
msiexec -i FILENAME.MSI /passive
@remixer-dec
remixer-dec / top_window_macos.py
Created September 14, 2024 00:19
gets information about window name and app name of top window
import os
def get_window_name_with_applescript():
window_name = os.popen("osascript -e 'tell application \"System Events\" to get the name of window 1 of (first application process whose frontmost is true)'").read().strip()
process_name = os.popen("osascript -e 'tell application \"System Events\" to get the name of (first application process whose frontmost is true)'").read().strip()
return window_name, process_name
@remixer-dec
remixer-dec / custom_lz77.py
Last active March 29, 2025 08:26
LZ7BHTS7
def decompress_lz_buffer(src_buffer: bytes) -> bytes:
"""
Decompress a byte array using custom LZ77 algorithm.
Args:
src_buffer: Compressed bytes
Returns:
Decompressed bytes
"""
@remixer-dec
remixer-dec / watch.go
Created April 8, 2025 16:01
transparent stopwatch (only minutes) for mac os
package main
import (
"fmt"
"time"
"github.com/progrium/darwinkit/dispatch"
"github.com/progrium/darwinkit/helper/action"
"github.com/progrium/darwinkit/helper/layout"
"github.com/progrium/darwinkit/macos"
@remixer-dec
remixer-dec / install.sh
Last active May 3, 2025 15:12
debian bullseye aarch64, install pip for python3.9
#!/bin/bash
[ "$EUID" -ne 0 ] && exec sudo "$0" "$@"
# switch to root
wget "ftp.cz.debian.org/debian/pool/main/p/python3-stdlib-extensions/python3-lib2to3_3.9.2-1_all.deb"
wget "ftp.dk.debian.org/debian/pool/main/p/python3-stdlib-extensions/python3-distutils_3.9.2-1_all.deb"
wget "http://security.debian.org/debian-security/pool/updates/main/s/setuptools/python3-setuptools_52.0.0-4+deb11u1_all.deb"
dpkg -i python3-lib2to3_3.9.2-1_all.deb
dpkg -i python3-distutils_3.9.2-1_all.deb
dpkg -i python3-setuptools_52.0.0-4+deb11u1_all.deb
apt-get update