Skip to content

Instantly share code, notes, and snippets.

View Akarys42's full-sized avatar

Ambre Bertucci Akarys42

  • Marseille, France
  • 22:06 (UTC +02:00)
View GitHub Profile
@Akarys42
Akarys42 / python_discord.md
Last active January 2, 2022 20:51
Open source statistics for the year 2021
Name Open Issues Closed Issues Open PRs Closed PRs Merged PRs Merged Commits Mean Commits per PR Mean Comments per Issue Mean Diff Size
bot 607 520 414 393 360 1740 4.82 1.91 96.08
sir-lancebot 417 349 244 228 189 1628 9.56 2.82 218.57
site 179 157 146 139 123 778 7.23 2.17 251.62
pixels 125 122 85 84 83 344 4.46 0.50 192.07
kubernetes 70 65 55 55 52 112 2.16 0.62 209.84
quackstack 70 60 43 43 41 90 2.14 0.56 76.56
aaaaAAAA 63 47 38 35 35 204 5.68 0.35 141.37
branding 58 45 31 30 28 103 3.48 1.60 468.06
@Akarys42
Akarys42 / my_commit.py
Last active February 2, 2023 20:27
The main script created during Ambre Bertucci's talk "Learn Python automation by recreating Git Commit from scratch" at EuroPython 2021.
from hashlib import sha1
from textwrap import dedent
from pathlib import Path
import sys
import zlib
OBJECT_PATH = Path(".git/objects")
EXCLUDED_FILES = {".git", "__pycache__", "my_commit.py"}
@Akarys42
Akarys42 / keybase.md
Created January 12, 2021 08:07
Confirming my Keybase identity

Keybase proof

I hereby claim:

  • I am akarys42 on github.
  • I am akarys (https://keybase.io/akarys) on keybase.
  • I have a public key whose fingerprint is 4CEF 9C65 94D2 45F7 3E8E 6451 C3AC 9DBE 603B F576

To claim this, I am signing this object:

@Akarys42
Akarys42 / esoteric-email.py
Last active July 30, 2021 18:01
Esoteric email address - see use-case.py for more info!
def variable_for_value(value):
for n, v in globals().items():
if v == value:
return n
return None
class EmailComponent:
def __init__(self):
self.name = None
@Akarys42
Akarys42 / pydis_bot_setup.md
Last active December 31, 2019 13:35
How-to guide about setup the site and the bot without docker for Win 10 Home Users

Requirements

Working with the site

The bot rely on the site to provide access to his database. It mean that if you want your local bot to have access to a database, which is required for most of his functionalities. Learn how to setup the site here