Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / readme.md
Created March 16, 2025 13:39
universal-android-debloater on non-nixos system

nix run --impure github:nix-community/nixGL -- nix run nixpkgs#universal-android-debloater

@573
573 / DOT.emacs
Last active March 14, 2025 12:06
fix for emacs wordlist utf-8 used for completion contains garbled isolatin when used with cape package (cape-dict)
;; For Windows emacs this file belongs to $env:APPDATA
;; (GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05)
;; If you don't have MELPA in your package archives:
(require 'package)
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) ; Org-mode's repository
(package-initialize)
(package-refresh-contents)
@573
573 / readme.md
Created March 10, 2025 10:11
nix python package should find git i. e. jupyterlab-git or jupyterhub

$ nix shell nixpkgs#nixVersions.nix_2_20 --command nix-shell --pure with

let

 nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11";

 pkgs = import nixpkgs { config = {}; overlays = []; };
@573
573 / readme.md
Created March 6, 2025 17:08
emacs upgrade on windows gotchas

when upgrading emacs 29.4 to 30.1 my plugins didn't work anymore, starting with corfu-global-mode giving error symbol definition void.

this minad/corfu#412 (comment) link finally gave the right impulse just that I installed all packages anew doing M-x list-packages and there reinstalling every package I use including use-package.

also, even when on the plus side of news, on windows I only need one LNK-File to start a emacs daemon automatically with emacsclient anymore: "C:\Program Files\Emacs\emacs-30.1\bin\emacsclientw.exe" -c -a "" starting in "C:\Program Files\Emacs\emacs-30.1\bin"

@573
573 / readme.md
Last active December 19, 2024 16:42
pptx2md nix
@573
573 / readme.md
Created October 25, 2024 12:08
emacs windows debug tip
Emacs Abort Dialog
A fatal error has occurred!
Would you like to attach a debugger?
Select:
YES β€” to debug Emacs, or
NO to abort Emacs and produce a backtrace
(emacs_backtrace.txt in current directory).
(Before clicking YES, type
`gdb -p `, then `continue` inside GDB.)
@573
573 / readme.md
Created October 10, 2024 13:13
java simulate break with takewhile continue with dropwhile

As in take a break take a kitkat

@573
573 / readme.md
Created October 3, 2024 19:24
vim tipp cmp-buffer other buffer completion