This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env just --justfile | |
HOST := `hostname -s` | |
DIR := justfile_directory() / "dir" | |
python := if os() == "linux" { | |
"echo 'running on linux' && python3" | |
} else if os() == "macos" { | |
"echo 'running on macos' && python3" | |
} else { "echo unable to do it; " } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O install_omz.sh | |
sh install_omz.sh | |
mv /root/.oh-my-zsh /usr/share/oh-my-zsh | |
cd /usr/share/oh-my-zsh/ | |
cp templates/zshrc.zsh-template zshrc | |
wget https://aur.archlinux.org/cgit/aur.git/plain/0001-zshrc.patch\?h\=oh-my-zsh-git -O zshrc.patch && patch -p1 < zshrc.patch | |
sudo ln /usr/share/oh-my-zsh/zshrc /etc/skel/.zshrc | |
cp /usr/share/oh-my-zsh/zshrc /root/.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Скрипт для скачивания музыки с сайта vk.com | |
Запуск: | |
python vk_dwn.py | |
Принцип работы: | |
Скрипт проверяет сохраненный access_token. Если его нет, | |
то происходит запрос данных и авторизация. | |
Далее будут скачиваться все ваши аудиозаписи. Если аудиозапись уже есть на | |
диске - то скачивания не происходит. |