Skip to content

Instantly share code, notes, and snippets.

View a37h's full-sized avatar
🐾

Anatolii a37h

🐾
View GitHub Profile
@a37h
a37h / download_vk_tracks.py
Created May 26, 2021 05:10
Download all audio tracks from your VK page
import os
import requests
import pickle
import logging
import tqdm # pip install tqdm
import vk_api # pip install vk_api bs4
from vk_api import audio
@a37h
a37h / download_files.py
Last active May 26, 2021 05:13
Download and save each file from a .txt document
from urllib.request import urlretrieve
import string
NAMES_WITH_LINKS_FILE_NAME = 'links-with-names.txt'
PATH_TO_SAVE = '/home/qua/Music/'
def get_name(name):
result = ''
@a37h
a37h / scan_ports.py
Last active May 26, 2021 05:15
Scan IP for open ports
import socket
import subprocess
import sys
import asyncio
import time
from datetime import datetime
import concurrent.futures
import requests
import random
@a37h
a37h / wifi_reconnecting.py
Last active May 26, 2021 05:15
Reconnect WIFI every 60 seconds
#!/usr/bin/env python
import subprocess
import time
import datetime
import re
import sys
def sendNotification(message):
subprocess.Popen(['notify-send', f'-u', 'low', message])