🏳️🌈
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
}, | |
"variables": { | |
"appServicePlanName": "myapp-swaptest-asp", | |
"site_name": "myapp-swaptest-app", | |
"functionapp_name": "myapp-swaptest-func", | |
"stagingslot_name": "staging" |
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
@name TARDIS | |
@inputs | |
@outputs XYZ:vector | |
@persist Target:entity TARDIS:entity Visible SavePos:vector SaveAng:angle | |
runOnChat(1) | |
if (first()|dupefinished()){ | |
TARDIS=entity():isConstrainedTo():tardisGet() | |
TARDIS:createWire(entity(),"XYZ", "XYZ") | |
Target=owner() | |
entity():setAlpha(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
$publishingUsername = '$xxx' | |
$publishingPassword = 'xxx' | |
$scmUri = 'https://xxx.scm.azurewebsites.net' | |
$zipFile = "xxx.zip" | |
$deployUrl = "$scmUri/api/zipdeploy?isAsync=true" | |
$deployStatusUrl = "$scmUri/api/deployments/latest" | |
$byteArray = [System.Text.Encoding]::ASCII.GetBytes($publishingUsername + ":" + $publishingPassword) | |
$authHeader = "Basic $([Convert]::ToBase64String($byteArray))" |
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
// ==UserScript== | |
// @name WhatsApp Web Dark | |
// @namespace https://mattjeanes.com | |
// @version 1.0 | |
// @description Enables the beta WhatsApp dark theme | |
// @author Matt Jeanes | |
// @match https://web.whatsapp.com/ | |
// @grant none | |
// ==/UserScript== |
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
from glob import iglob | |
import os | |
import sys | |
spaces_per_tab = 4 | |
argc = len( sys.argv ) | |
if argc < 2: |
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
param( | |
[Parameter(Mandatory = $true)] | |
[AllowEmptyString()] | |
[string]$Namespace | |
) | |
if (-not $Namespace) { | |
$Namespace = "default"; | |
} |
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
$ErrorActionPreference = "Stop" | |
Write-Host "Daemonsets:`n" | |
$daemonsets = kubectl get daemonsets --all-namespaces --output json | ConvertFrom-Json | |
$daemonsets.items | Sort-Object { $_.metadata.name } | ForEach-Object { | |
$daemonset = $_ | |
$daemonset.spec.template.spec.containers | Sort-Object Name | ForEach-Object { | |
Write-Host "$($daemonset.metadata.name) / $($_.Name), memory request: $($_.Resources.Requests.Memory ?? "N/A"), memory limit: $($_.Resources.Limits.Memory ?? "N/A"), cpu request: $($_.Resources.Requests.CPU ?? "N/A"), cpu limit: $($_.Resources.Limits.CPU ?? "N/A")" | |
} |
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
# You should insert this script into your PowerShell Profile script so it exists in every session | |
# Fun fact: This script was mostly generated by ChatGPT by giving it the bash version of the output | |
# from `github-copilot-cli alias -- "$0"` with a few fixes from me | |
function Invoke-CopilotWhatTheShell { | |
$TMPFILE = New-TemporaryFile; | |
try { | |
github-copilot-cli what-the-shell $args --shellout $TMPFILE | |
if ($LASTEXITCODE -eq 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Join server</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
text-align: center; | |
} |
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
# Energy | |
- state_topic: energy/solar | |
value_template: > | |
{% if (value_json['InverterStatus'] | int == 0) %} | |
Waiting | |
{% elif (value_json['InverterStatus'] | int == 1) %} | |
Normal | |
{% elif (value_json['InverterStatus'] | int == 2) %} | |
Fault |