Skip to content

Instantly share code, notes, and snippets.

View ed-asriyan's full-sized avatar
🙃
having fun

Ed Asriyan ed-asriyan

🙃
having fun
View GitHub Profile
@ed-asriyan
ed-asriyan / copy-docker-image.sh
Created October 13, 2024 02:59
Copy docker image by ssh
#!/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"
@ed-asriyan
ed-asriyan / VkDark.css
Last active August 25, 2017 11:47
New VK Dark Theme
/*
Based on https://userstyles.org/styles/127431/newvk-dark-theme
*/
@-moz-document domain("vk.com") {
body {
background: #333333;
color: #fff;
}
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")
@ed-asriyan
ed-asriyan / ObjectDistribution.hpp
Created May 29, 2016 14:33
ObjectDistribution
#ifndef OBJECT_DISTRIBUTION_HPP
#define OBJECT_DISTRIBUTION_HPP
template<class T>
class ObjectDistribution{
public:
ObjectDistribution() = default;
template<class GENERATOR>
T operator()(GENERATOR& generator) const {
@ed-asriyan
ed-asriyan / vkcom_audio_download.py
Last active May 28, 2016 18:39 — forked from st4lk/vkcom_audio_download.py
Python: vkontakte.ru (vk.com) audio music downloader
# -*- coding: utf-8 -*-
'''
Скрипт для скачивания музыки с сайта vk.com
Запуск:
python vkcom_audio_download.py [...]
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.