Skip to content

Instantly share code, notes, and snippets.

View michaelwestphal's full-sized avatar
🖖
Vim long and prosper!

Michael Westphal michaelwestphal

🖖
Vim long and prosper!
View GitHub Profile
@michaelwestphal
michaelwestphal / Regarding-AI.md
Last active August 18, 2025 21:24
My thoughts on AI...

Regarding AI...

As a Developer and as a human being, it feels important to have a stance, or at least the start of one, regarding AI and myself. (I start with myself as I believe you should have your own affairs in order before you "criticise the world".)

There is an aspect of programming, perhaps to be defined more solidly one day, which should be hard. The impediment to action advances action. This is how we learn.

Defining terms, acronyms, and initialisms

  • AI := Artificial Intelligence
  • LLM := Large Language Model
@michaelwestphal
michaelwestphal / re-enable-paste.js
Last active July 30, 2025 19:26
Re-enable paste
//
// For when those pesky sites decide that you shouldn't be allowed to paste into an input...
//
// https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event
document.addEventListener('paste', (e) => {
e.stopImmediatePropagation();
return true;
}, true);
// Ditto: copy
@michaelwestphal
michaelwestphal / kubikey_otp_cli_script.md
Created January 10, 2023 20:03
Kubikey OTP CLI script

A Yubikey, the commandline, and easily generating and copying a One-Time Password

  1. Install ykman via homebrew on the Mac.
brew install ykman
  1. Create bash/zsh function somewhere in your shell rc files
function otp() {
 code=$(ykman oath accounts code  -s)