Skip to content

Instantly share code, notes, and snippets.

View fogrew's full-sized avatar
🚀
Open for new opportunities

Andrew Gurylev fogrew

🚀
Open for new opportunities
View GitHub Profile
@fogrew
fogrew / fnm.zsh
Created September 8, 2020 11:12
fnm config for zsh
alias nv='fnm use'
export PATH=~/.fnm/current/bin:$PATH
export FNM_LOGLEVEL=info
autoload -U add-zsh-hook
_fnm_autoload_hook () {
if [[ -f .node-version && -r .node-version ]]; then
echo "fnm: Found .node-version"
fnm use
@fogrew
fogrew / 🎵 My last week in music
Last active July 5, 2021 16:04
weekly plays on Last.fm
Skott ████▉░░░░░░░░░░░░ 32 plays
Rag'n'Bone Man ██▎░░░░░░░░░░░░░░ 15 plays
Portugal. The Man █▉░░░░░░░░░░░░░░░ 13 plays
Nothing But Thieves █▍░░░░░░░░░░░░░░░ 9 plays
Alice Merton █▏░░░░░░░░░░░░░░░ 8 plays
Grandson █░░░░░░░░░░░░░░░░ 7 plays
Mother Mother █░░░░░░░░░░░░░░░░ 7 plays
Muse █░░░░░░░░░░░░░░░░ 7 plays
Yonaka █░░░░░░░░░░░░░░░░ 7 plays
Black Honey ▉░░░░░░░░░░░░░░░░ 6 plays
@fogrew
fogrew / kinopoisk-to-csv.js
Created October 30, 2021 20:01
Snippet for DetTools to extracting data about watched films and series from kinopoisk to CSV format
(function () {
const $items = document.querySelectorAll('.profileFilmsList .item')
const films = []
$items.forEach($item =>
films.push({
id: $item.querySelector('[mid]').attributes.mid.value,
type: $item.querySelector('.nameRus a').pathname.split("/")[1],
nameRus: $item.querySelector('.nameRus').innerText,
nameEng: $item.querySelector('.nameEng').innerText,
date: $item.querySelector('.date').innerText,
@fogrew
fogrew / settings.json
Created October 11, 2024 18:25
My VS Code settings
{
"window.autoDetectColorScheme": true,
"editor.fontSize": 14,
"editor.guides.bracketPairs": "active",
"editor.renderWhitespace": "all",
"editor.detectIndentation": true,
"editor.wordWrap": "bounded",
"editor.minimap.enabled": false,
"workbench.preferredDarkColorTheme": "GitHub Dark Default",
"workbench.preferredLightColorTheme": "GitHub Light Default",
@fogrew
fogrew / restore.py
Created January 26, 2025 19:02 — forked from deevroman/restore.py
⚠️ Обязательно прочтите комментарии к коду, и укажите время, за которое нужно восстановить историю
# Скрипт для дозагрузки потерянных яндекс.музыкой в конце декабря скробблов
# Если что пишите t.me/Roman_Deev или пингуйте в t.me/yandexvernitescrobbling
# Для начала запросите у яндекса архив данных яндекс.музыки: https://id.yandex.ru/personal/data
# Распакуйте его и положите в одну папку со скриптом файл history.json
# Установите библиотеки
# pip install yandex-music pylast
# В last.fm может показываться местное время. Далее нужно UTC