Skip to content

Instantly share code, notes, and snippets.

View dctucker's full-sized avatar
🎹
doing stuff using keyboards

Casey Tucker dctucker

🎹
doing stuff using keyboards
View GitHub Profile
#!/bin/bash
declare -A object_counts=( [spokes_network]=0 [spokes_gist]=0 [pages]=0 [storage]=0 )
assoc2json() {
declare -n dict=$1
for key in "${!dict[@]}"; do
printf '%s\0%s\0' "$key" "${dict[$key]}"
done |
jq -Rs '
event_time command_type convert(argument using utf8)
2023-10-19 22:58:12.825251 Connect github@::1 on github_enterprise using TCP/IP
2023-10-19 22:58:12.825472 Query select @@version_comment limit 1
2023-10-19 22:58:12.825619 Query SELECT 1 AS output
2023-10-19 22:58:12.825721 Quit
2023-10-19 22:58:13.054476 Connect github@::1 on github_enterprise using TCP/IP
2023-10-19 22:58:13.054772 Query select @@version_comment limit 1
2023-10-19 22:58:13.054956 Query SHOW TABLES LIKE 'schema_migrations'
2023-10-19 22:58:13.058011 Quit
2023-10-19 22:58:13.244884 Connect github@::1 on github_enterprise using TCP/IP
@dctucker
dctucker / nautilus-super.patch
Created August 13, 2025 19:19
Patch for GNOME Files to use <Super> instead of <Control> for accelerators
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index d1649e5c7..c93d6779f 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -2620,7 +2620,7 @@ on_key_pressed (GtkEventControllerKey *controller,
if ((state & modifiers) == GDK_SHIFT_MASK)
open_flags = NAUTILUS_OPEN_FLAG_NEW_TAB;
- else if ((state & modifiers) == GDK_CONTROL_MASK)
+ else if ((state & modifiers) == GDK_SUPER_MASK)