This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package god-mode | |
:ensure t | |
:config | |
(defun god-mode-deactivate-and-remove-hook () | |
(god-local-mode -1) | |
(remove-hook 'post-command-hook #'god-mode-deactivate-and-remove-hook)) | |
(defun god-mode-single-shot () | |
(interactive) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a password for 'unlock' with password 'password-store unlocked': | |
pass insert unlock | |
# Enter password for unlock: password-store unlocked | |
# unlock password-store GPG keychain: | |
pass unlock | |
# pinentry asks for GPG password | |
# pass acknowledges nicely with: | |
# password-store unlocked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Debian emacs-lucid (will be replaced later) | |
sudo apt install emacs-lucid | |
# install all build dependencies | |
sudo apt-get build-dep emacs-lucid | |
sudo apt install build-essential devscripts ed | |
# make a temporary directory and dowload debian source (+ patches) | |
mkdir TEMPDIR | |
cd TEMPDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: Don't know if this persists after reboot: | |
sudo ln -s /mnt/c /C: | |
# SumatraPDF -> Settings -> Options -> Set inverse search command-line: | |
# C:\Windows\System32\wsl.exe emacsclient -n +%l "/$(echo '%f' | tr \\\\ /)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; guix package -f c-utf8-locale.scm | |
(define-module (c-utf8-locale) | |
#:use-module (gnu packages base) | |
#:use-module (guix packages) | |
#:use-module (guix gexp) | |
#:use-module (guix utils) | |
#:use-module (guix build-system copy)) | |
(define-public c-utf8-locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA # see: https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg | |
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# metadata file in the format | |
cat >meta.tmp <<EOF | |
# filename lat lon alt | |
file.jpg 1.0 2.0 3.0 | |
EOF | |
# where the title line starts with a comment character (#) and there are some additional | |
# fields actually even before the relevant ones (lat lon alt) in the file |