I hereby claim:
- I am antonalekseev on github.
- I am antonalekseev (https://keybase.io/antonalekseev) on keybase.
- I have a public key whose fingerprint is 25F9 B5B9 E7EE FA74 777A DF34 DA45 1231 1E49 A43C
To claim this, I am signing this object:
| #!/bin/bash | |
| # Description: Modified version of script from https://unix.stackexchange.com/a/612124 | |
| # Requires: ffmpeg, jq | |
| # Author: Hasan Arous | |
| # License: MIT | |
| in="$1" | |
| out="$2" | |
| splits="" | |
| while read start end title; do |
| # Convert firefox search engines to format used by vimium | |
| # Get mozlz4a from https://gist.github.com/Tblue/62ff47bef7f894e92ed5 | |
| mozlz4a -d search.json.mozlz4 search.json | |
| jq -r '.engines[] | [ ._metaData.alias + ":" , ( [._urls[] | select(.template | contains("searchTerms")) ][0].template | if . == null then "none" else . end | sub("{searchTerms}"; "%s") ), ._name ] | join(" ")' < search.json |
| { | |
| "python": { | |
| "library": "import json\ndef black_reformat(cell_text):\n import black\n import re\n cell_text = re.sub('^%', '#%#', cell_text, flags=re.M)\n try:\n reformated_text = black.format_str(cell_text, 88)\n except TypeError:\n reformated_text = black.format_str(cell_text, mode=black.FileMode(line_length=88))\n return re.sub('^#%#', '%', reformated_text, flags=re.M)", | |
| "prefix": "print(json.dumps(black_reformat(u", | |
| "postfix": ")))" | |
| }, | |
| "r": { | |
| "library": "library(formatR)\nlibrary(jsonlite)", | |
| "prefix": "cat(toJSON(paste(tidy_source(text=", | |
| "postfix": ", output=FALSE)[['text.tidy']], collapse='\n')))" |
| #!/bin/sh | |
| PATH=/usr/local/bin/:$PATH | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install twpayne/taps/chezmoi | |
| # on Mojave fix merged into homebrew will suffice, but on High Sierra should | |
| # install from antonalekseev/homebrew-tap | |
| # see also https://github.com/lastpass/lastpass-cli/issues/427#issuecomment-446779116 | |
| brew install --build-from-source https://raw.githubusercontent.com/antonalekseev/homebrew-tap/master/lastpass-cli.rb |
| #!/bin/bash | |
| set -uo pipefail | |
| hostname="archlinux" | |
| user="user" | |
| password="secret" | |
| device_list=$(lsblk -dplnx size -o name,size,type|grep -Ev 'boot|rom|loop'|tr -s '[:space:]'|cut -d' ' -f1,2|paste -s -) | |
| device=$(dialog --stdout --menu "Select installation disk" 0 0 0 ${device_list}) || exit 1 |
I hereby claim:
To claim this, I am signing this object:
| - redisplay_internal (C function) 2625 44% | |
| + eval 2514 42% | |
| undo-tree-update-menu-bar 24 0% | |
| menu-bar-update-buffers 7 0% | |
| + #<compiled 0x41e1709f> 7 0% | |
| + keymap-canonicalize 5 0% | |
| - timer-event-handler 2213 37% | |
| - apply 2193 37% | |
| - treemacs--follow 1939 32% | |
| - file-truename 1580 26% |
| { "value": [1, 2, 3, 4, 5] } |