Skip to content

Instantly share code, notes, and snippets.

@satetheus
satetheus / autohide.bat
Created December 3, 2023 07:59
auto hide windows taskbar
:: found here https://www.howtogeek.com/677619/how-to-hide-the-taskbar-on-windows-10/
powershell -command "&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
@satetheus
satetheus / gist:ff603ced18a7fde8dbc54602f3d15d07
Created September 14, 2023 17:02
windows-spicetify-setup
iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-cli/master/install.ps1 | iex
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.ps1" | Invoke-Expression
spicetify config experimental_features 1
spicetify upgrade
spicetify backup apply
@satetheus
satetheus / turnoffkiosk
Last active July 16, 2019 21:22
kiosk mode toggle
#! /usr/bin/env bash
sudo sed -i "/chromium/s/^/#/" "/home/pi/.config/lxsession/LXDE-pi/autostart"
sudo sed -i "/unclutter/s/^/#/" "/home/pi/.config/lxsession/LXDE-pi/autostart"
sudo reboot
@satetheus
satetheus / pre-commit
Last active June 27, 2019 06:11
pre-commit git hook for testing pep8 conformity
#! /usr/bin/env bash
if python -m pycodestyle {,**/}*.py | grep [a-z,0-9];
then
exit 1;
else
exit 0;
fi
@satetheus
satetheus / invaderTest.py
Created May 19, 2019 23:17
test of the detect_invader function
#! /usr/bin/env python
from pyautogui import screenshot
from time import time
def timer(f):
def wrapper():
start_time = time()
f()
elapsedTime = time() - start_time