Skip to content

Instantly share code, notes, and snippets.

@opragel
opragel / scrpy-notes.sh
Last active April 21, 2025 22:12
scrpy notes for Android
#!/bin/sh
# Note (script compatability): this is given as a shell script intended for use on macOS, but it works perfectly fine on Windows in Powershell too!
# Note (specifying device): I usually specify serial for ADB/scrcpy, because I typically run with
# both USB and wireless debugging enabled. If you only have one available
# device for ADB debugging, you can skip that!]
# Note: (web conferencing): Last I recall, Zoom/Meet cap out at 30FPS. So if you're intending to share stuff there, going beyond 30 FPS won't really provide value.
# Set device identifer
@opragel
opragel / persona-picard-tng.md
Last active April 12, 2025 03:48
Earl Grey Flute Logic: Picard Persona

Captain Jean-Luc Picard Persona Instructions (TNG Era)

Preamble: Timeframe Focus

You are Captain Jean-Luc Picard as depicted only in Star Trek: The Next Generation (Seasons 1-7) and the films Generations, First Contact, Insurrection, and Nemesis. Do not incorporate elements or developments from Star Trek: Picard or other later appearances.

Core Identity and Background

  • You are Captain Jean-Luc Picard of the Federation Starship Enterprise (NCC-1701-D, and later NCC-1701-E).
  • Born in La Barre, France, on Earth in 2305. You come from a family of vintners but rejected that tradition to join Starfleet.
@opragel
opragel / ResetWindowsSearchBox.ps1
Created March 30, 2025 00:32
ResetWindowsSearchBox.ps1
# from https://www.microsoft.com/en-us/download/details.aspx?id=100295
# 2025-03-29
# Copyright © 2019, Microsoft Corporation. All rights reserved.
function T-R
{
[CmdletBinding()]
Param(
[String] $n
)
@opragel
opragel / chrome_reasonable_personal_policy_defaults.reg
Last active March 29, 2025 01:59
chrome_reasonable_personal_policy_defaults.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"RelaunchNotification"=dword:00000002
"RelaunchNotificationPeriod"=dword:240c8400
"ShowCastIconInToolbar"=dword:00000001
"SafeBrowsingProtectionLevel"=dword:00000002
"BoundSessionCredentialsEnabled"=dword:00000001
"BlockExternalExtensions"=dword:00000001
"PromotionsEnabled"=dword:00000000
@opragel
opragel / App Defaults - Chrome (Enable Experiemental Policies).mobileconfig
Created February 13, 2025 05:32
App Defaults - Chrome (Enable Experiemental Policies).mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>EnableExperimentalPolicies</key>
<false/>
<key>PayloadDescription</key>
@opragel
opragel / macos_keyboard_shortcuts.md
Last active April 17, 2025 17:16
macOS favorite keyboard shortcuts

macOS keyboard shortcut favorites

Legend

Command (or Cmd)  - ⌘
Control (or Ctrl) - ^
Option (or Alt)   - ⌥
Shift             - ⇧
Fn (Function)     - 🌐
@opragel
opragel / ea_get_connected_smartcard_readers.py
Last active April 19, 2025 22:17
ea_get_connected_smartcard_readers.py
#!/usr/bin/python3
"""Intends to read USB SmartCard readers and return
device names, product IDs, and vendor IDs"""
import json
import plistlib
import subprocess
def main():
#!/usr/bin/python3
"""Intends to read USB SmartCard and return
device names, product IDs, and vendor IDs"""
import json
import subprocess
def main():
@opragel
opragel / ea_get_chrome_extensions_and_permissions.py
Last active October 27, 2018 00:17
ea_get_chrome_extensions_and_permissions.py
#!/usr/bin/python
## Script: #!/usr/bin/python
## Script: get_chrome_extensions_and_permissions.py
## Author: Modifications by Owen Pragel. Written for most by part by Christopher Collins ([email protected]).
###########################################
## Description: This script searches the last logged in user's installed extensions and the permissions of those extensions.
import os
@opragel
opragel / ea_loaded_non_apple_kexts.sh
Created November 17, 2017 19:42
ea_loaded_non_apple_kexts.sh
#!/bin/bash
loadedNonAppleKexts=$(/usr/sbin/kextstat -l | awk '!/com.apple/ { print $6 }')
printf "<result>%s</result>" "$loadedNonAppleKexts"