This file contains hidden or 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
| #!/bin/bash | |
| # Check if the correct number of arguments is provided | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <local-image-name> <user@domain>" | |
| exit 1 | |
| fi | |
| # Assign arguments to variables | |
| LOCAL_IMAGE_NAME="$1" |
This file contains hidden or 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
| /* | |
| Based on https://userstyles.org/styles/127431/newvk-dark-theme | |
| */ | |
| @-moz-document domain("vk.com") { | |
| body { | |
| background: #333333; | |
| color: #fff; | |
| } |
This file contains hidden or 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
| from sys import argv | |
| from math import log | |
| import fsuniquesearcher | |
| try: | |
| from tabulate import tabulate | |
| except: | |
| print("Module tabulate not installed.") | |
| print("Please install it first. To do this run the following command:") | |
| print("\tpython -m pip install tabulate") |
This file contains hidden or 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
| #ifndef OBJECT_DISTRIBUTION_HPP | |
| #define OBJECT_DISTRIBUTION_HPP | |
| template<class T> | |
| class ObjectDistribution{ | |
| public: | |
| ObjectDistribution() = default; | |
| template<class GENERATOR> | |
| T operator()(GENERATOR& generator) const { |
This file contains hidden or 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 vkcom_audio_download.py [...] | |
| Принцип работы: | |
| Скрипт проверяет сохраненный access_token. Если его нет или срок истек, | |
| то открывается страница в браузере с запросом на доступ к аккаунту. |