This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <stdint.h> | |
| #define IDX_KEY_WIDTH 32U | |
| #define IDX_FANOUT_BITS 10U | |
| #define IDX_FANOUT (1U << IDX_FANOUT_BITS) | |
| #define IDX_FANOUT_MASK (IDX_FANOUT - 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "$schema" = 'https://starship.rs/config-schema.json' | |
| format = """ | |
| [](color_orange)\ | |
| $os\ | |
| $username\ | |
| [](bg:color_yellow fg:color_orange)\ | |
| $directory\ | |
| [](fg:color_yellow bg:color_aqua)\ | |
| $git_branch\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| from minotaur import Inotify, Mask | |
| import logging | |
| __al |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from pathlib import Path | |
| from math import log | |
| from sys import argv | |
| def hist(p: Path) -> None: | |
| vals = [int(x) for x in p.read_text().splitlines()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| __title__ = 'silverhand' | |
| __description__ = 'breach protocol puzzle solver' | |
| __copyright__ = 'Copyright 2020 Gianni Tedesco' | |
| __author__ = 'Gianni Tedesco' | |
| __author_email__ = '[email protected]' | |
| __license__ = 'MIT' | |
| from collections import defaultdict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| __author__ = 'Gianni Tedesco' | |
| __url__ = 'https://github.com/giannitedesco/' | |
| __license__ = 'Public Domain' | |
| from hashlib import sha1 | |
| from getpass import getpass | |
| import httpx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| __copyright__ = "Copyright (c) 2018 Gianni Tedesco" | |
| __licence__ = "GPLv3" | |
| __doc__ = "Tool for sending secret messages using ssh keys" | |
| from argparse import ArgumentParser | |
| try: | |
| import nacl.utils | |
| from nacl.signing import SigningKey,VerifyKey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| try: | |
| from nacl.signing import SigningKey | |
| _nacl = True | |
| except: | |
| _nacl = False | |
| from base64 import b64decode | |
| from struct import unpack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from iquery import IQuery | |
| from entry import Entry | |
| class IQueryFast(IQuery): | |
| def __init__(self, sz, e): | |
| super(IQueryFast, self).__init__(sz) | |
| e = [x for x in e] | |
| e.append(Entry(0, sz, None)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # vim: set fileencoding=utf8 : | |
| import numpy as np | |
| def finite_differences(y): | |
| "Use method of finite differences to determine " | |
| "what order of polynomial to look for" | |
| inp = y[:] |
NewerOlder