Visit my blog or connect with me on Twitter
git init
or
| import dbus | |
| import time | |
| session_bus = dbus.SessionBus() | |
| spotify_bus = session_bus.get_object("org.mpris.MediaPlayer2.spotify", | |
| "/org/mpris/MediaPlayer2") | |
| spotify_properties = dbus.Interface(spotify_bus, | |
| "org.freedesktop.DBus.Properties") | |
| from queue import Queue | |
| from threading import Thread, Lock | |
| from itertools import product | |
| from string import ascii_lowercase | |
| import requests | |
| usrs = [''.join(i) for i in product(ascii_lowercase + '-', repeat = 3)] | |
| usrs = [x for x in usrs if (not x.startswith('-')) and (not x.endswith('-'))] | |
| class Worker(Thread): |
| def generate_hex_string(length: int): | |
| """ Generate a randomized hex string. | |
| Parameters | |
| ---------- | |
| length : int | |
| Desired character length of the returned token. | |
| Returns | |
| ------- |
| # if there is a clock skew detected, run: | |
| # find /your/dir -type f -exec touch {} + | |
| CXX := g++ | |
| CXXSTD := -std=c++11 | |
| CXXFLAGS := -Wall -Wextra -O2 | |
| SRCDIR := src | |
| BUILDDIR := build | |
| TARGET := bin/a.out |
Visit my blog or connect with me on Twitter
git init
or