Skip to content

Instantly share code, notes, and snippets.

View mtekman's full-sized avatar

mtekman mtekman

View GitHub Profile
@mtekman
mtekman / init.el
Last active February 3, 2022 23:50
public emacs.d
(setenv "LANG" "en_GB.UTF8")
;; Check this out: https://github.com/rememberYou/.emacs.d/blob/master/config.org
;; ----- BEGIN: Package Initialisation -----
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")))
;; Fresh install? Initialise
;;(unless (file-directory-p (expand-file-name "~/.emacs.d/elpa"))
@mtekman
mtekman / pacman-last-used.sh
Last active May 7, 2025 05:45
Determining the least used packages installed on your system
#!/usr/bin/bash
function pacman-last-used {
trap 'updateTermWidth' WINCH
storage_dir=${HOME}/.config/pacman-last
mkdir -p "$storage_dir"
unsorted=$storage_dir/"packages.1.exec_bins.log"
sorted=$storage_dir/"packages.2.exec_bins.sorted"