Skip to content

Instantly share code, notes, and snippets.

View aaronlifton's full-sized avatar

Aaron Lifton aaronlifton

View GitHub Profile
@aaronlifton
aaronlifton / karabiner.edn
Created July 10, 2023 02:31 — forked from andrewvmail/karabiner.edn
my-goku-file
{
;; my-goku
;; in hammerspoon console hs.ipc.cliInstall()
;; gokuw
;; gh gist edit d496e18751ddea5a9cb310755535389c -a karabiner.edn /Users/momo/.config/karabiner.edn
:templates {
:open "open \"%s\""
@aaronlifton
aaronlifton / chatGPT-explanation-info.md
Created July 23, 2023 03:59 — forked from birkin/chatGPT-explanation-info.md
chatGPT code-explanation example

cool chatGPT info...

Recently experimenting with rust, I wanted to convert an image to a base64 string. I got some code working via my usual mix of trying stuff and googling. There was a step between loading the image and encoding it to a base64 string that I was curious about. I'd been hearing about copilot-explain, but only have copilot installed, and wanted to move forward. But I'd also recently been experimenting with chatGPT and thought I'd heard that it could explain code. Here's the result...

My prompt...

explain this code...

fn main() {
@aaronlifton
aaronlifton / deleteAmazonSavedItems.js
Created August 24, 2023 00:38 — forked from MichaelLawton/deleteAmazonSavedItems.js
Removes all Amazon saved for later items on the cart page. It will only remove visible items. You might want to scroll first to make more items visible. To use paste code in developer console (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
function deleteSavedItems() {
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]")
if (query.length) {
query[0].click();
}
if (query.length > 1) {
setTimeout(deleteSavedItems,100);
}
else {
console.log('Finished');
@aaronlifton
aaronlifton / alacritty-tmux-vim_truecolor.md
Created October 21, 2023 16:52 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh