Skip to content

Instantly share code, notes, and snippets.

@swrogers
swrogers / bg-daemon--debug-init.txt
Created March 1, 2025 00:32
emacs 30.1 parinfo enabled unable to start daemon error
❯ emacs --bg-daemon --debug-init
Due to a limitation in GTK 3, Emacs built with PGTK will simply exit when a
display connection is closed. The problem is especially difficult to fix,
such that Emacs on Wayland with multiple displays is unlikely ever to be able
to survive disconnects.
Loading /home/swrogers/.config/emacs/lisp/doom.el (source)...
Loading /home/swrogers/.config/emacs/lisp/doom.el (source)...done
Starting Doom Emacs in daemon mode...
* 0.021198:*:startup:emacs:load: ~/.config/emacs/.local/etc/@/init.30.1.el t
* 0.023657:*:startup:emacs:module:init:load: ~/.config/doom/init.el t

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@swrogers
swrogers / insert-timestamp.el
Created March 16, 2024 21:57 — forked from takehiko/insert-timestamp.el
Functions for inserting a timestamp in several different ways on Emacs
;; M-x insert-timestamp-default (またはM-x its)で Wed Feb 17 22:18:46 2021
;; M-x insert-timestamp-htmlcomment (またはM-x itsh)で <!-- 2021-02-17 22:18:52 +09:00 --> (と改行)
;; M-x insert-timestamp-unixtime (またはM-x itsu)で 1613567937
;; M-x insert-timestamp-iso (またはM-x itsi)で 2021-02-17T22:19:01+09:00
(defun insert-timestamp-default ()
"Insert the current timestamp"
(interactive)
(insert (current-time-string)))
(defalias 'its 'insert-timestamp-default)
@swrogers
swrogers / clojure-learning-list.md
Created December 2, 2022 15:26 — forked from ssrihari/clojure-learning-list.md
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
@swrogers
swrogers / gitlab-docker-caddy-portainer.md
Last active September 16, 2024 09:44
Run Gitlab Docker behind Caddy reverse proxy via Portainer stack (with an XWiki bonus!)

Gitlab Docker / Caddy / Portainer (plus bonus XWiki)

This is how I was able to get Gitlab CE Docker to run behind a Caddy reverse proxy, created from Portainer stack.

This has taken quite a lot of searching, so I figured that I'd write it up in a location that I could easily refer to it in the future.

There are a handful of items that are initially needed here:

  • Caddy and its network
  • Portainer
@swrogers
swrogers / clojure-beginner.md
Created August 13, 2021 14:47 — forked from yogthos/clojure-beginner.md
Clojure beginner resources

Introductory resources

@swrogers
swrogers / emacs-notes.md
Last active August 14, 2020 14:21
My EMACS Notes

Movement

  • Page Movement
C-v page down
M-v page up
C-l center line / top of screen / bottom of screen
  • Cursor Movement
@swrogers
swrogers / docker-compose.yml
Created June 27, 2020 21:47
My traefik docker-compose.yml start
version: '3'
services:
reverse-proxy:
image: traefik:v2.2
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
@swrogers
swrogers / steps.md
Created February 29, 2020 16:33
Manjaro On HyperV

What I needed to do to install Manjaro 19.0 KDE on Hyper-V

  • After initial bootup, need to change the video driver
    • wait for bootup to complete, takes a few minutes, then Control+F2 to change to console
    • run the following commands:
    su
    pacman -Sy
    pacman -S xf86-video-fbdev
    systemctl start sddm
    

Keybase proof

I hereby claim:

  • I am swrogers on github.
  • I am swrogers (https://keybase.io/swrogers) on keybase.
  • I have a public key ASBNvKWqv-l2ulWRdL05Wohy4TMKsuaIhAo7JrU5OismsQo

To claim this, I am signing this object: