Skip to content

Instantly share code, notes, and snippets.

View kamilmodest's full-sized avatar

Kamil Babaev kamilmodest

View GitHub Profile
# https://github.com/sindresorhus/quick-look-plugins
brew install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize
brew install --cask --no-quarantine syntax-highlight
# Turn of Apple complains like “QLStephen.qlgenerator” can’t be opened because Apple cannot check it for malicious software.
# Source: https://hargitai.co.nz/quicklook-plugin-qlgenerator-cant-be-opened-because-apple-cannot-check-it-for-malicious-software-fix-locally/
sudo xattr -cr ~/Library/QuickLook/*.qlgenerator
qlmanage -r
qlmanage -r cache
@kamilmodest
kamilmodest / colima-list.stdout
Last active April 9, 2024 12:57
Colima configs (Works for Mac M1 with version >= 13)
» colima list
PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME ADDRESS
default Running x86_64 4 4GiB 100GiB docker
@kamilmodest
kamilmodest / Notion-dateBetween
Created March 30, 2023 13:27
Returns date in format "1 d 16 h 28 m"
concat(format(floor(dateBetween(prop("Last edited time"), prop("Created time"), "days"))), " d ", format(floor(mod(dateBetween(prop("Last edited time"), prop("Created time"), "hours"), 24))), " h ", format(floor(mod(dateBetween(prop("Last edited time"), prop("Created time"), "minutes"), 60))), " m ")
root = true
[*]
indent_style = space
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.{html,css,js,json,yml}]
indent_size = 2
@kamilmodest
kamilmodest / reverso_context.http
Last active September 15, 2022 13:29
Requests to Reverso Context from this repo: https://github.com/flagist0/reverso_context_api
// Requests to Reverso Context from this repo: https://github.com/flagist0/reverso_context_api
### _request_translations
POST https://context.reverso.net/bst-query-service
Content-Type: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:77.0) Gecko/20100101 Firefox/77.0
{
"source_lang": "ru",
"target_lang": "en",