Skip to content

Instantly share code, notes, and snippets.

@SnoFox
SnoFox / update-ra-core.ps1
Last active January 23, 2024 04:24
Update retroarch cores for Windows
Param(
[Parameter(Mandatory)]
[string]$CoreName
)
echo "Updating RetroArch core '$CoreName'..."
$url = "https://buildbot.libretro.com/nightly/windows/x86_64/latest/$($CoreName)_libretro.dll.zip"
$retroHome = "Z:\Games\SteamLibrary\steamapps\common\RetroArch\"
$tempDir = New-Item -ItemType Directory -Path "$($Env:temp)\tmp$([convert]::tostring((get-random 65535),16).padleft(4,'0')).tmp"
$zipFile = $tempDir.FullName + "\core.zip"
$infoZipFile = $tempDir.FullName + "\info.zip"
alias: Inhibit auto-updates
description: ""
trigger:
- platform: state
entity_id:
- media_player.shield
- media_player.shield_cast
to: playing
id: inhibit
- platform: state
alias: Set Soundbar Mode
mode: queued
icon: mdi:soundbar
fields:
target:
description: The soundbar to change modes on
required: true
selector:
entity:
filter:
alias: TV - Set Game Picture Mode
sequence:
- service: notify.living_room_tv
data:
message: Changing picture mode...
- service: webostv.button
data:
entity_id: media_player.living_room_tv
button: MENU
- delay:
#!/usr/bin/env bash
# Set to the fortune file you want to use, or empty string for no fortunes
fortune_file=holo
. $(dirname $0)/motd-commons
if [ $fancy -eq 1 ]; then
printf "Welcome to $(hostname).\n${F_RED}System load is high; simple MOTD will be used${F_RESET}\n"
exit 0
fi

Keybase proof

I hereby claim:

  • I am snofox on github.
  • I am snofox (https://keybase.io/snofox) on keybase.
  • I have a public key ASCg7K3qNC0586ZUQeXapmsHp82IP9d7VL0V2ExUrFS6Ogo

To claim this, I am signing this object:

@SnoFox
SnoFox / pigeon
Last active December 7, 2019 19:25
aidungeon2 gameplay
Pick a setting.
0) fantasy (recommended)
1) mystery
2) apocalyptic
3) zombies
4) custom
Enter the number of your choice: 4
Enter a prompt that describes who you are and the first couple sentences of where
you start out ex:
@SnoFox
SnoFox / zsh.lnk
Created December 28, 2018 05:30
mintty launch options for wsl + zsh
%LOCALAPPDATA%\wsltty\bin\mintty.exe --wsl --configdir="%APPDATA%\wsltty" -o Locale=C -o Charset=UTF-8 /bin/wslbridge -C~ -t /bin/zsh
public tv.v1x1.common.dto.core.User toCore(final DAOGlobalUser daoGlobalUser) {
return daoGlobalUser.getOrCreate(Platform.TWITCH,
String.valueOf(getId()),
getDisplayName()).toCore().getUser(Platform.TWITCH, String.valueOf(getId())).orElse(null);
}