Skip to content

Instantly share code, notes, and snippets.

View lochlainn's full-sized avatar
🚒
feel the heat

lochlainn

🚒
feel the heat
View GitHub Profile
@demokritos
demokritos / gnus-smtp-oauth2-goa.el
Last active May 6, 2021 11:56
IMAP and SMTP authentication with GnomeOnlineAccounts in Emacs
(defun get-access-token-by-user (user)
(let ((objects
(dbus-get-all-managed-objects :session "org.gnome.OnlineAccounts" "/"))
thepath)
(setq thepath
(car
(seq-find
(lambda (obj)
(let ((mail-interface
(assoc "org.gnome.OnlineAccounts.Mail" obj)))
@tessus
tessus / compile_tmux.sh
Last active January 25, 2024 23:37
compile tmux (static)
#!/bin/bash
TMUX_VERSION=2.3
NCURSES_VERSION=6.0
LIBEVENT_VERSION=2.0.22
BASEDIR=${HOME}/work/tmux-static
TMUXTARGET=${BASEDIR}/local
mkdir -p $TMUXTARGET
cd $BASEDIR
@martijnvermaat
martijnvermaat / ssh-agent-forwarding-screen.md
Created December 21, 2013 15:06
SSH agent forwarding and screen

SSH agent forwarding and screen

When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.

This is enabled by adding the

ForwardAgent yes

option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.