Skip to content

Instantly share code, notes, and snippets.

View J08nY's full-sized avatar
🎯
Focusing

Ján Jančár J08nY

🎯
Focusing
View GitHub Profile
import inspect
import tempfile
import sys
from contextlib import contextmanager
from importlib import import_module, invalidate_caches
from pathlib import Path
@contextmanager
@J08nY
J08nY / hwvault.py
Last active November 27, 2020 20:19
#!/usr/bin/env python3
from bs4 import BeautifulSoup
from matplotlib import pyplot as plt
from datetime import datetime
import click
@click.command()
@click.argument("is_folder_info", type=click.File("r"))
@click.option("-d", "--deadline", type=click.DateTime(), default=None)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def _can_revoke(revoker, target_primary):
for self_sig in target_primary.self_signatures:
for rk in self_sig.revocation_key:
if rk.algorithm == revoker.key_algorithm and rk.fingerprint == revoker.fingerprint:
return True
return False
hash_algo = prefs.pop('hash', None)
sig_type = None
if isinstance(target, PGPUID):
======================================================================
FAIL: /home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/doctest.py", line 2190, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for using.rst
File "/home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst", line 0
----------------------------------------------------------------------

Keybase proof

I hereby claim:

  • I am j08ny on github.
  • I am j08ny (https://keybase.io/j08ny) on keybase.
  • I have a public key ASB6LOPsvmi5VmUmA_sq8oaMr_K_sp6uXn2xKwPEGU_etwo

To claim this, I am signing this object:

@J08nY
J08nY / pages.py
Last active March 8, 2017 21:25
PDF page counter
#!/usr/bin/env python
from PyPDF2 import PdfFileReader
from PyPDF2.utils import PdfReadError
import re
import argparse
from os import walk, path
import magic
import hashlib
@J08nY
J08nY / ButtonBot.py
Last active February 4, 2018 11:09
ButtonBot.py v2.3
#!/usr/bin/env python
#-----ButtonBot.py-----#
# #
# made by /u/J08nY #
# v2.3 #
# #
#----------------------#
from urllib import urlencode
import httplib