Skip to content

Instantly share code, notes, and snippets.

@moogah
moogah / gist:34211d3f341b785088e8b765521ef334
Created February 14, 2026 11:42
gptel inherit stickiness bug
# read the contents of ~/Brewfile
``` tool (read_file :filepath "~/Brewfile")
(:name "read_file" :args (:filepath "~/Brewfile"))
(:success t :content "tap \"hashicorp/tap\"
tap \"homebrew/bundle\"
tap \"homebrew/cask\"
tap \"homebrew/cask-fonts\"
@moogah
moogah / gist:aaae3f26bf8af3bd15a7e388eb566d4b
Created July 21, 2022 01:05
Emacs Dirvish Troubleshooting Config
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
@moogah
moogah / cloud_init.yaml
Created October 8, 2020 00:53
Using cloud-init user_config to hack in static network config on Centos8 in a KVM/libvirt environment
#cloud-config
hostname: ${hostname}
#fqdn: ${fqdn}
manage_etc_hosts: true
users:
- name: jefarr
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: wheel
shell: /bin/bash
ssh-authorized-keys: