I hereby claim:
- I am jchristgit on github.
- I am johanneschrist (https://keybase.io/johanneschrist) on keybase.
- I have a public key whose fingerprint is 8C05 D0E9 8B79 14ED EBDC C8CC 8E8E 0928 2F2E 17AF
To claim this, I am signing this object:
#!/bin/bash | |
set -euo pipefail | |
ARCHIVE="/your/gigantic/mess/of/pictures" | |
MEDIA="/path/to/your/cleaned-up/pictures/" | |
pushd $ARCHIVE >/dev/null |
The above can be used to download all your attachments out of a Discord data export. | |
Attachments are downloaded one by one, and placed alongside the channels they were sent in. | |
The attachment filename is the message ID and the attachment filename, joined by an underscore. | |
It is safe to re-run the download script should it have been aborted, | |
though if aborted in the middle of a download that file may only be partial. | |
The script makes no attempt to re-download files that are already downloaded. |
tab = :ets.new(:test, [:set, :public]) | |
:ets.insert(tab, Enum.map(1..10_000, &{&1, %{id: &1, name: "#{&1}"}})) | |
qh = :ets.table(tab) | |
ms = [{{:"$1", :"$2"}, [], [{{:"$1", :"$1", :"$2"}}]}] | |
qhtraverse = :ets.table(tab, traverse: {:select, ms}) | |
# Elixir queries | |
qh0 = :qlc.string_to_handle('[{Id, Id, Value} || {Id, Value} <- Handle, Id =:= RequestedId].', [], Handle: qh, RequestedId: 500_000) | |
qh1a = :qlc.string_to_handle('[{Id, Id, Value} || {Id, Value} <- Handle].', [], Handle: qh, RequestedId: 500_000) |
I hereby claim:
To claim this, I am signing this object:
" Plugin Installation through Vim-Plug | |
" https://github.com/junegunn/vim-plug | |
call plug#begin('~/.vim/plugged') | |
" - Editing Helpers - | |
" surround.vim | |
" quoting / paranthesizing made simple | |
" https://github.com/tpope/vim-surround | |
Plug 'tpope/vim-surround' |
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |