aboutsummaryrefslogtreecommitdiff
path: root/drafts/til.md
diff options
context:
space:
mode:
Diffstat (limited to 'drafts/til.md')
-rw-r--r--drafts/til.md118
1 files changed, 118 insertions, 0 deletions
diff --git a/drafts/til.md b/drafts/til.md
new file mode 100644
index 0000000..45f9124
--- /dev/null
+++ b/drafts/til.md
@@ -0,0 +1,118 @@
+TILs:
+
+prosody + nginx on nixos
+### Bash variables
+
+```shell
+$ which git
+/run/current-system/sw/bin/git
+$ readlink $(!!)
+readlink $(which git)
+/nix/store/5bgr1xpm4m0r72h9049jbbhagxdyrnyb-git-2.28.0/bin/git
+```
+
+### Find broken symlinks
+
+```shell
+find . -xtype l
+```
+
+### Kernel version
+```shell
+uname -r
+```
+### Git bisecting
+
+Automatic Git bisect
+
+```shell
+git bisect start HEAD e1fd0a817d192c5a5df72dd7422e36558fa78e46
+git bisect run sh -c 'git clean -ffdx && ./bootstrap && ./configure --localstatedir=/var && make && git checkout'
+```
+
+### UNIX searching commands
+
+```shell
+$ which gcc
+$ locate signal.h
+$ updatedb # add to cron?
+```
+
+### Guix contributing
+
+```shell
+$ cd ~/dev/guix/guix/
+$ git clean -ffdx
+$ guix environment guix # guix environment guix --ad-hoc help2man git strace
+$ ./bootstrap
+$ ./configure --localstatedir=/var
+$ make
+$ ./pre-inst-env guix describe
+$ ./pre-inst-env guix show $PKG
+$ ./pre-inst-env guix build $PKG
+$ ./pre-inst-env guix lint $PKG
+```
+
+v2:
+```shell
+guix environment --pure guix --ad-hoc help2man git strace -- sh -c "./bootstrap && ./configure --localstatedir=/var && make"
+```
+
+v3:
+```shell
+$ guix environment --pure guix --ad-hoc help2man git stract
+$ ./bootstrap
+$ ./configure --localstatedir=/var
+$ make
+$ ./pre-inst-env guix build $PKG
+$ ./pre-inst-env guix lint $PKG
+$ ./pre-inst-env guix refresh --list-dependent $PKG
+$ ./pre-inst-env guix build --rounds=2 $PKG
+$ ./etc/ident-code.el $PKG
+```
+
+### git mail patches
+
+Check the [guix-devel thread][0] on
+named "Re: [External] Re: New outreachy participant introduction".
+
+[0]: https://lists.gnu.org/archive/html/guix-devel/2019-10/msg00093.html
+
+### Flutter Dart `patchelf`
+
+```shell
+patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) /home/andreh/dev/misc/flutter/bin/cache/dart-sdk/bin/dart
+```
+
+### `C-c M-m` in message-mode for creating `cut here` sections
+
+Or run the `scissors` function.
+
+### Software Recomendations StackExchange exists
+
+[https://softwarerecs.stackexchange.com/](https://softwarerecs.stackexchange.com/).
+
+### GPG key search
+
+```shell
+gpg --search-key eu@euandre.org
+```
+
+### Git Annex wanted
+
+```shell
+git annex wanted . 'exclude=Banshee/old-musics/* and exclude=attic/videos/* and exclude=Photos/*'
+```
+
+### Useful keybindings
+- `SPC v` for region selection
+- `SPC j s` to split sexp
+- `mod-shift-space` reset layout
+
+
+### Restore notmuch database
+terminate called after throwing an instance of 'Xapian::DatabaseCorruptError'
+Aborted (core dumped)
+https://github.com/afewmail/afew/issues/167#issuecomment-379495114
+
+notmuch compact