Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
@jwmcgettigan
jwmcgettigan / bitwarden_duplicate_cleaner.py
Last active October 31, 2024 13:09
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
#!/usr/bin/env python3
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@rpavlik
rpavlik / setup.ps1
Last active October 22, 2024 17:21
basic system setup
# install scoop
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# for bare metal
iwr -useb get.scoop.sh | iex
# or, for VM with a shared w:\ drive already
# $env:SCOOP = 'w:\scoop'
# [Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
# iwr get.scoop.sh -outfile 'install.ps1'
@rpavlik
rpavlik / aq-funhouse.py
Last active August 1, 2021 02:36
air quality on funhouse/clue
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
# SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries
# SPDX-FileCopyrightText: 2021, Ryan Pavlik <[email protected]>
# SPDX-License-Identifier: MIT
try:
from typing import Optional
except ImportError:
pass
@scivision
scivision / windows_openssh_authorized_keys_acl.ps1
Created August 11, 2020 17:42
Set permissions ACL for Windows OpenSSH administrators_authorized_keys
# this script is copied from:
# https://www.concurrency.com/blog/may-2019/key-based-authentication-for-openssh-on-windows
# Script by Mitchell Grande of Concurrency.com
#
$acl = Get-Acl C:\ProgramData\ssh\administrators_authorized_keys
$acl.SetAccessRuleProtection($true, $false)
$administratorsRule = New-Object system.security.accesscontrol.filesystemaccessrule("Administrators","FullControl","Allow")
$systemRule = New-Object system.security.accesscontrol.filesystemaccessrule("SYSTEM","FullControl","Allow")
$acl.SetAccessRule($administratorsRule)
$acl.SetAccessRule($systemRule)

For downloads and more information about VSeeFace, please check out the website.

Version 1.13.38c2:

  • Blacklisted 3tene virtual camera to avoid freezing at startup.

Version 1.13.38c:

  • Blacklisted virtual cameras that might cause issues when installed at certain versions from the camera selection menu. This should solve the NVIDIA driver issue in most cases.
  • Applied another fix to the virtual camera driver for better compatibility.
  • Separated out wrist bone reception from arm and shoulder reception for the VMC protocol receiver settings to allow better Mocopi with Leap Motion support.
  • No longer set realtime priority along with GPU background priority.
@rpavlik
rpavlik / git-prep.sh
Last active February 6, 2024 20:11
git-prep
#!/bin/sh
# SPDX-FileCopyrightText: 2020-2024, Rylie Pavlik
# SPDX-License-Identifier: CC0-1.0
# Nothing sh-specific here, these work fine in pwsh as well
### Aliases
# Lots of people use these, and I guess I type them a lot...
git config --global alias.ci commit
git config --global alias.co checkout
List with Compatible devices:
Look under About on the watch for the device Id.
looks something like this:
MOY-TEH5-1.7.7
the middle section is the interesting part, if that is in this list here
it has the compatible bootloader and the same pinout as pinetime for Display and External Flash
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
@fpletz
fpletz / esphome-print-async.py
Last active February 23, 2024 00:47
aioesphomeapi minimal examples
#!/usr/bin/env python3
import aioesphomeapi
import asyncio
async def main():
loop = asyncio.get_running_loop()
cli = aioesphomeapi.APIClient(loop, "foobarhostname", 6053, "foobarpassword")
await cli.connect(login=True)
@rpavlik
rpavlik / 1-README.md
Last active July 31, 2019 14:00
Spec and registry diffs between OpenXR 0.90 and 1.0

These are not exactly the released versions: I pre-processed them slightly to reduce diff noise, then ran the spec sources through https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/scripts/asciidoc-coalescer.rb to produce a single adoc file for each spec version. I then used git diff --patience on the combined adoc file and the XML registry.

As an obligatory note, these diffs aren't an official product of the working group, and they are not normative.

As diffs of the spec components, they carry the same license as those spec components.