Skip to content

Instantly share code, notes, and snippets.

@swrogers
swrogers / spacemacs-keybindings
Last active March 25, 2020 15:48 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |

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:

@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
    
@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 / 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 / clojure-beginner.md
Created August 13, 2021 14:47 — forked from yogthos/clojure-beginner.md
Clojure beginner resources

Introductory resources

@swrogers
swrogers / gitlab-docker-caddy-portainer.md
Last active November 16, 2023 19:40
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-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 / 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)