Skip to content

Instantly share code, notes, and snippets.

View tamsky's full-sized avatar

Marc Tamsky tamsky

View GitHub Profile
@tamsky
tamsky / i'm sure it's copyrighted
Last active October 6, 2025 00:25
now just when the heck did I integrate that into the system
artist/illustrated by: Rich Tennant
@tamsky
tamsky / fedora.md
Created October 2, 2025 01:33
switch to X11 from Wayland - on ubuntu and fedora
@tamsky
tamsky / debian-disable-touchscreen.md
Last active September 28, 2025 22:53 — forked from nardhar/debian-disable-touchscreen.md
Disable Touch display functionality from DELL XPS laptop for Debian 9

First install xinput

$ sudo apt-get install xinput

Find the touchscreen display

$ xinput --list
From d3ea9a6f494d6c895d5d6c1eaea04d3d23c30847 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Chojnowski?= <[email protected]>
Date: Tue, 15 Apr 2025 15:45:51 +0200
Subject: [PATCH] logalloc tracepoints
---
row_cache.cc | 12 ++++++++-
utils/logalloc.cc | 65 ++++++++++++++++++++++++++++++++++++++++++++++-
utils/lru.hh | 3 +--
3 files changed, 76 insertions(+), 4 deletions(-)
@tamsky
tamsky / txt.md
Last active November 29, 2024 05:12
how to query cross-account peering traffic using AWS CUR (cost usage reporting)
#!/usr/bin/env bash
# Map Caps Lock key to Left Control key
# https://developer.apple.com/library/content/technotes/tn2450/_index.html
# This doesnt work. Reverts on restart
# hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E0}]}'
# References:
# https://github.com/mathiasbynens/dotfiles/issues/310
# https://gist.github.com/scottstanfield/0f8ce63271bebfb5cf2bb91e72c71f91
# The last link didnt work for me on Sierra or High Sierra. I could not find IOHIDKeyboard but
"don't write code that is easy to extend, write code that is easy to delete"
@tamsky
tamsky / audacity_rescue2.sh
Created November 10, 2023 05:26 — forked from javierwilson/audacity_rescue2.sh
recover audacity 2.0 crash data
#!/bin/bash
#Recover from an Audacity 2.0 crash by reassembling the saved data files
#Based on https://gist.github.com/912222
if [ $# != 2 ]; then
echo "ERROR: Not enough arguments"
echo "$0 [SOURCE PATH] [DESTINATION]"
exit 1
fi
@tamsky
tamsky / audacity_rescue.js
Created November 10, 2023 05:26 — forked from mauritslamers/audacity_rescue.js
audacity rescue script nodejs with stereo support
// recover from audacity crash
// usage:
// node audacity_rescue.js [sourcedir] [result_file.wav] [mono|stereo]
// the mono or stereo option is optional, the default is mono.
//
// Description:
// This script will sort all files on modification date.
// If you create a backup, make sure you use `cp -a` to preserve the modification date
// or create a zip.