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
<?php | |
/* ip_list.php | |
* | |
* Copyright (c) 2022 Tyler Szabo | |
* All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at |
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
- sensor: | |
- unique_id: sensor.indoor_temperature_average | |
name: "Average Indoor Temperature" | |
unit_of_measurement: "°C" | |
device_class: temperature | |
state_class: measurement | |
state: > | |
{%- set input_group = expand('group.sensors_temperature_indoor') -%} | |
{%- set temperatures = input_group|map(attribute='state')|map('float',undefined)|select('defined')|list -%} | |
{%- if temperatures|length() <= 0 -%} |
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
ffplay -f lavfi -i anoisesrc=amplitude=0.1:color=pink -nodisp |
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
# Use Arden Buck equation <https://en.wikipedia.org/wiki/Arden_Buck_equation> to compute approximate expected indoor humidty given outdoor humidity | |
template: | |
- sensor: | |
unique_id: "tylerszabo/template.sensor:expected-indoor-humidity" | |
name: "Expected Indoor Humidity" | |
unit_of_measurement: "%" | |
device_class: humidity | |
state: > | |
{%- set t0 = states('sensor.outdoor_temperature')|float(undefined) -%} |
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
// Run the following on the Performance report on your Profile page: https://www.fitocracy.com/profile/<username>/?performance | |
(function(){ | |
var z_history = $('#history_activity_chooser')[0]; | |
var z_promises = []; | |
for (var i = 0; i < z_history.options.length; i++) { | |
z_promises.push(load_chart(z_history.options[i].value, z_history.options[i].innerText)); | |
} |
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 sh | |
set -e | |
if [ -n "$1" -a -n "$2" ]; then | |
ID_ARGS="--key UID_MIN=$1 --key UID_MAX=$1 --key GID_MIN=$1 --key GID_MAX=$1" | |
NEW_USER=$2 | |
else | |
echo "Usage: $0 ID NAME" >&2 | |
exit 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
" A silly script to add color to "Christmas", "X-Mas", and "Noël" | |
" | |
" Install into ~/.vim/plugin and enjoy festive editing in December. | |
" | |
" Author: Tyler Szabo | |
" Last Update: 2020-12-20 | |
" | |
" This is free and unencumbered software released into the public domain. | |
" | |
" Anyone is free to copy, modify, publish, use, compile, sell, or |
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
SFC /VerifyOnly | |
DISM /Online /Cleanup-Image /ScanHealth | |
ChkDsk %SystemDrive% /Scan |
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
<# | |
.SYNOPSIS | |
Output Windows Terminal color scheme JSON from a ColorTool .INI scheme | |
.DESCRIPTION | |
Until a new release of ColorTool that contains the update to output Windows Terminal JSON schemes it'll either need to be built locally or .INI schemes converted. This script accomplishes the convesrion of ColorTool .INI schemes for Windows Termianl. | |
.PARAMETER Path | |
Path to a ColorTool scheme .INI file | |
.LINK | |
https://github.com/microsoft/terminal | |
.LINK |
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
docker run --rm -e DISPLAY=host.docker.internal:0 -e LIBGL_ALWAYS_INDIRECT=1 jessfraz/firefox:latest | |
# Requires VcXsrv (https://chocolatey.org/packages/vcxsrv) |
NewerOlder