from datetime import date
d = date(2019, 1, 8) # date.today()
month, year = (d.month-1, d.year) if d.month != 1 else (12, d.year-1)
last_month = d.replace(day=1, month=month, year=year)| # -*- coding: utf-8 -*- | |
| """ | |
| Copyright (c) 2019 Valentin B. | |
| A simple music bot written in discord.py using youtube-dl. | |
| Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly. | |
| Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know. |
A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.
Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:
-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
-- This table is then what holds the metamethods or metafields| import subprocess | |
| import os | |
| from pathlib import Path | |
| from typing import Union | |
| class SshClient(): | |
| """ Perform commands and copy files on ssh using subprocess | |
| and native ssh client (OpenSSH). | |
| """ | |
| Twitter ID, Screen name, Followers | |
| 12,jack,6526006 | |
| 13,biz,2608289 | |
| 20,ev,1679155 | |
| 57,SarahM,17448 | |
| 59,Tim535353,9340 | |
| 76,marciadorsey,19501 | |
| 224,davepell,57523 | |
| 291,goldman,916937 | |
| 295,joshk,149086 |
See my other guides for SSL certificates on Pi-hole v6:
Pi-hole v6 introduces changes to its web server:
- Embedded Web Server – Pi-hole no longer relies on
lighttpd.
Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.
This sucks, but thankfully there are ways to work around it.
Before diving in: I encourage you to read this entire document, including the