Skip to content

Instantly share code, notes, and snippets.

View idiotandrobot's full-sized avatar

Michael Phillips idiotandrobot

View GitHub Profile
from datetime import datetime
import os
import sqlite3
import time
import aranet4
NUM_RETRIES = 10
DEVICES = {
'bedroom': 'xx:xx:xx:xx:xx:xx'
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1
powershell.exe iex \"& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI\"
@idiotandrobot
idiotandrobot / rc.xml
Created December 16, 2023 14:23
Openbox window snapping
<!--
via https://pastebin.com/NBkccE7B
Add this to your openbox rc.xml
inside <keyboard></keyboard>
+-------+-------+ +---------------+
| ALT+q | ALT+e | | ALT+w |
+-------+-------+ +---------------+
| ALT+z | ALT+c | | ALT+x |
+-------+-------+ +---------------+
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
#runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3.5.2 # https://github.com/marketplace/actions/checkout
- name: Get Head Commit Message
id: get_head_commit
shell: pwsh
run: |
$Message = git log --format=%B -n 1 HEAD
Write-Output "title=$($Message | Select -First 1)" >> $Env:GITHUB_OUTPUT
Write-Output "body=$($Message | Select -Skip 1)" >> $Env:GITHUB_OUTPUT
lxrun /uninstall /full`
lxrun /install`
<Frame>
<Frame.Content>
<Page/>
</Frame.Content>
</Frame>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
var client = new SyndicationClient();
client.SetRequestHeader("accept", "text/html, application/xhtml+xml, */*");
client.SetRequestHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)");