Skip to content

Instantly share code, notes, and snippets.

View corbindavenport's full-sized avatar

Corbin Davenport corbindavenport

View GitHub Profile
@corbindavenport
corbindavenport / steamvr.settings
Created June 5, 2026 19:47
Revert to old SteamVR UI
// Add this to "C:\Program Files (x86)\Steam\config\steamvr.vrsettings" under main JSON root, not steamvr
"dashboard" : {
"allowVRGamepadUI" : false
},
@corbindavenport
corbindavenport / addjava.ps1
Created May 23, 2026 00:23
PowerShell script to set JAVA_HOME
# This sets the JAVA_HOME variable on Windows if a valid java.exe executable is already in the path
# Replace 'User' with 'System' if it needs to be a machine-wide variable
# Get the installation path X from X/bin/java.exe
$JAVA = Get-Command "java" | Select-Object -ExpandProperty Source | Split-Path | Split-Path -Parent
# Add to path
[Environment]::SetEnvironmentVariable('JAVA_HOME', $JAVA, 'User')
@corbindavenport
corbindavenport / config.ghostty
Last active May 11, 2026 11:29
Ghostty configuration
# Config for Ghostty: https://ghostty.org/
# Paste this in the config opened from Ghostty > Settings, then run Ghostty > Reload Configuration
theme = dark:Catppuccin Frappe,light:Catppuccin Latte
background-opacity = 0.8
background-blur = true
window-height = 20
window-width = 90
@corbindavenport
corbindavenport / config.toml
Last active May 17, 2026 18:19
Halloy IRC configuration
# Halloy config
# Documentation: https://halloy.chat/configuration.html
# Get the themes from here: https://themes.halloy.chat/
# Files go in the 'themes' directory in the halloy config directory: https://halloy.chat/configuration.html
theme = { light = "Catppuccin Latte", dark = "Catppuccin Macchiato" }
# I'm pretty sure this doesn't work and Halloy picks a fallback font, but the fallback looks good
[font]
family = "AppleSystemUIFont"
@corbindavenport
corbindavenport / google-scraper.js
Created October 23, 2025 05:50
Data scraper for Google search results
// This can run in the Console on a Google search result page, saving each link with a title, URL, and dates in two formats
var list = {};
document.querySelectorAll('#search a:not(.SP6Rje)' ).forEach(function (el) {
var isoDate;
var name = el.innerText.split("\n")[0];
var date = el.parentElement.parentElement.parentElement.parentElement.parentElement.querySelectorAll('.YrbPuc')[0]?.innerText?.split(' —')[0];
var dateObj = new Date(date);
try {
isoDate = dateObj.toISOString();
} catch {
@corbindavenport
corbindavenport / edge.mobileconfig
Last active December 17, 2025 16:05
Microsoft Edge debloated configuration for macOS
<?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>
<!-- Configuration definitions -->
<key>PayloadDisplayName</key>
<string>Microsoft Edge settings</string>
@corbindavenport
corbindavenport / google-udm-search.md
Last active June 24, 2025 04:00
Google &udm=14 search engine for Firefox

Short guide for adding Google without AI Overviews as a custom search engine in Firefox 140 and later.

  1. Open Settings > Search or about:preferences#search
  2. Click the Add button below the list of search engines
  3. Click Advanced to see all options
  4. Search engine name: Google (No AI) (or anything else you want)
  5. URL: https://www.google.com/search?udm=14&q=%s
  6. Add a keyword if you want (e.g. adding "gg" would let you select the address bar, type gg, then space/tab to start search)
  7. Leave POST data blank
  8. Suggestions URL: https://suggestqueries.google.com/complete/search?client=firefox&amp;q=%s
@corbindavenport
corbindavenport / table.txt
Created May 13, 2025 20:25
Gemini Gem - Table Maker
I am giving you text, images, or a document. Convert each table into HTML code using <table> elements. If a given table is divided across multiple pages or images, combine it into one HTML table.
If the table is for a product, add the following code to the HTML before the table, where "X" is the product name:
<b>X Specifications</b><br />
@corbindavenport
corbindavenport / bee-movie-apple-intelligence.txt
Created October 31, 2024 04:49
The Bee Movie script, but made professional by Apple Intelligence
According to all established principles of aviation, it is logically inconceivable that a bee should possess the ability to fly. Its wingspan is insufficient to propel its corpulent body off the ground. Nevertheless, bees defy these limitations and continue to fly despite human perceptions of impossibility.
“Yellow, black. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Black and yellow!”
Barry! Breakfast is prepared!
I will be there shortly. Please wait. Hello?
- Barry?
@corbindavenport
corbindavenport / alpine-iperf3.json
Last active August 12, 2024 15:24
Docker iperf3 container for Synology NAS
{
"CapAdd" : null,
"CapDrop" : null,
"cmd" : "/bin/sh -c 'apk update && apk add iperf3 && iperf3 -s -p 7575'",
"cpu_priority" : 50,
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enable_service_portal" : null,
"enabled" : true,
"env_variables" : [