This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Super Metroid and A Link to the Past Combination Randomizer | |
Retro Arch | |
bsnes-mercury-(accuracy, balanced, or performance) core is recommended for non-potato PCs (even @Xamel should be fine): | |
https://retroarch.com/?page=platforms | |
https://www.retroarch.com/?page=cores | |
if on steam the mercury cores are not DLCs yet so manual fuckery is needed: | |
https://steamcommunity.com/sharedfiles/filedetails/?id=2777383392 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Good for windows that won't let you paste or VMs/Remote connections that don't share clipboards, etc. | |
echo click the window | |
windowId=$(xwininfo | awk '/Window id/ {print $4}') | |
xdotool windowactivate "$windowId" | |
sleep 2 | |
xclip -o| xdotool type --delay 35ms --clearmodifiers --window $windowId --file - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Propose: to add jira ticket from branch name and co-authors to the commit message when using `git commit -m` | |
// Requires node 😜 | |
// To use: place in `.git/hooks/prepare-commit-msg` for the repos you want to use this | |
// and make sure it's executable with `chmod +x .git/hooks/prepare-commit-msg` | |
// remixed from https://github.com/rkotze/git-mob/blob/master/hook-examples/prepare-commit-msg-nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def empty_lines_input(prompt='> ', n_lines=2): | |
'An `input` with `n_lines` empty line ending.' | |
all_input_strings = '' | |
# prompt the user for input | |
given_input = input(prompt) | |
all_input_strings += given_input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zigbee2MQTT - Tuya 4-Button Scene Switch | |
description: Automate your Tuya 4-Button Scene via Zigbee2MQTT MQTT Topic. | |
domain: automation | |
input: | |
mqtt_topic: | |
name: Tuya 4-Button Scene MQTT Topic | |
description: Tuya 4-Button Scene QMTT Topic to use | |
button_one_short_press: | |
name: Single Press - Button 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
comment: "hall light" | |
devicename: hall-light | |
platform: ESP8266 | |
board: esp01_1m | |
esphome: | |
name: $devicename | |
platform: $platform | |
board: $board |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
shuf -n 1 << EOF | |
It is certain. | |
It is decidedly so. | |
Without a doubt. | |
Yes – definitely. | |
You may rely on it. | |
As I see it, yes. | |
Most likely. | |
Outlook good. |