Skip to content

Instantly share code, notes, and snippets.

View slackline's full-sized avatar
💭
procrastinating

slackline

💭
procrastinating
View GitHub Profile
@slackline
slackline / mu4e.md
Created November 15, 2025 16:32 — forked from A6GibKm/mu4e.md
Read your emails with mu4e

Connecting emacs and Protonmail Bridge

This guide will cover the basics on how to integrate emacs with protonmail-bridge using

Configuring mbsync

@slackline
slackline / gnus-proton-mail-layer.el
Created November 15, 2025 15:39 — forked from alexispurslane/gnus-proton-mail-layer.el
A complete and fully-working (including STARTTLS encryption and HTML emails) setup to use Proton Mail Bridge with emacs
(defun user/mail-layer ()
"Set GNUS up with asynchronous mail sending, and Proton Mail support,
and a relatively modern layout!
Loads:
- `async': for asynchronous mail"
(use-package async
:demand t
:config
(load "smtpmail-async.el")
#!/bin/sh
#original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes
#converted to shell by #nixers @ irc.unix.chat
cat << 'eof'
,_ ,_==▄▂
, ▂▃▄▄▅▅▅▂▅¾. / /
▄▆<´ "»▓▓▓%\ / / / /
;; By default, Which-key doesn't give much help for prefix-keys. It
;; either shows the generic description, "+prefix", or the name of a
;; prefix-command, which usually isn't as descriptive as we'd like.
;;
;; Here are some descriptions for the default bindings in `global-map'
;; and `org-mode-map'.
(which-key-add-key-based-replacements
"<f1> 4" "help-other-win"
"<f1>" "help"
@slackline
slackline / nano.el
Created February 4, 2025 22:30 — forked from rougier/nano.el
NANO Emacs (minimal version: 256 lines)
;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*-
;; Copyright (c) 2025 Nicolas P. Rougier
;; Released under the GNU General Public License 3.0
;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr>
;; URL: https://github.com/rougier/nano-emacs
;; This is NANO Emacs in 256 lines, without any dependency
;; Usage (command line): emacs -Q -l nano.el -[light|dark]
@slackline
slackline / clean_pdf.sh
Created June 10, 2024 14:42 — forked from sneakers-the-rat/clean_pdf.sh
Strip PDF Metadata
# --------------------------------------------------------------------
# Recursively find pdfs from the directory given as the first argument,
# otherwise search the current directory.
# Use exiftool and qpdf (both must be installed and locatable on $PATH)
# to strip all top-level metadata from PDFs.
#
# Note - This only removes file-level metadata, not any metadata
# in embedded images, etc.
#
# Code is provided as-is, I take no responsibility for its use,
@slackline
slackline / kernel-5.13.8.boot.log
Created August 16, 2021 08:45
kernel-5.13.8.boot.log
[ 0.000000] Linux version 5.13.8-gentoo (root@kimura) (gcc (Gentoo 11.2.0 p1) 11.2.0, GNU ld (Gentoo 2.36.1 p4) 2.36.1) #1 SMP Sat Aug 7 16:45:21 BST 2021
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.13.8 root=UUID=987fc18f-5b26-42de-a6e1-1ea07fd1ea7d ro dolvm domdadm rootfstype=ext4
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
@slackline
slackline / kernel-5.12.13.boot.log
Created August 16, 2021 08:44
kernel-5.12.13.boot.log
[ 0.000000] Linux version 5.12.13-gentoo (root@kimura) (gcc (Gentoo 11.1.0-r1 p2) 11.1.0, GNU ld (Gentoo 2.36.1 p3) 2.36.1) #1 SMP Thu Jun 24 07:49:44 BST 2021
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.12.13 root=UUID=987fc18f-5b26-42de-a6e1-1ea07fd1ea7d ro dolvm domdadm rootfstype=ext4
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
@slackline
slackline / server.R
Last active July 7, 2018 15:20
Shiny UI and Server for sample size calculations.
## Filename server.R
## Author nshephard@gmail.com
## Created 2013/05/18
## Description Performs sample size calculations
## Copyright 2013 nshephard@gmail.com
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.