Skip to content

Instantly share code, notes, and snippets.

View bbjubjub2494's full-sized avatar

Julie B. bbjubjub2494

View GitHub Profile
@bbjubjub2494
bbjubjub2494 / flake.lock
Last active March 21, 2025 13:00
reproduction for bug report
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
@bbjubjub2494
bbjubjub2494 / main.go
Created September 23, 2024 19:15
measure the uncompressed size of a transaction that registers a farcaster account
package main
import (
"context"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/rlp"
"log"
)
@bbjubjub2494
bbjubjub2494 / solve.sage
Created April 24, 2023 22:48
solve script for Curta Challenge 8, "Groovy"
#!/usr/bin/env sage
punch = 906459278810089239293436146013992401709
# challenge value here
s = 13763640145752339203207
def verify(s, a,b):
"""solution verifier ported from the contract"""
c = 1
assert a > 100 and b > 100
@bbjubjub2494
bbjubjub2494 / sha1.py
Created December 29, 2022 14:06
SHA-1 implementation produced by ChatGPT
import struct
def sha1(data):
"""
Implementation of the SHA-1 hash function in pure Python.
"""
# Initialize variables
h0 = 0x67452301
h1 = 0xEFCDAB89
h2 = 0x98BADCFE
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1650374568,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
@bbjubjub2494
bbjubjub2494 / transaction_id.ipynb
Last active May 7, 2022 21:25
Transaction_louis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1637851243,
"narHash": "sha256-7xbj8IchRGy8fB/OLJ2Igyk+wq1qJxJEPCcSr9WLc84=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "83a79a0f4bd000eaa0bc7a2ec7419a5afd1150bc",
"type": "github"
with import <nixpkgs> {};
buildGoModule rec {
pname = "wails";
version = "1.16.7";
vendorSha256 = "JO01u2pQsp90buJpATOr28qoQkLbmdoC6+HTKS/LuYE=";
src = fetchFromGitHub {
owner = "wailsapp";
repo = pname;
@bbjubjub2494
bbjubjub2494 / out.txt
Created July 29, 2021 17:26
nix-locate cacert.pem
zoneminder.out 253,746 r /nix/store/03dry3rywflpz99j0r8f4cbf716lsyl5-zoneminder-1.34.22/share/zoneminder/www/api/lib/Cake/Config/cacert.pem
(zabbix-cli.out) 259,465 r /nix/store/p43d43nn2mxviqb652ghzhisvz2w51n6-python2.7-certifi-2019.11.28/lib/python2.7/site-packages/certifi/cacert.pem
ycmd.out 281,457 r /nix/store/chxbrfj62asmrm9rm82dqn11z9bb2hh7-ycmd-2020-02-22/lib/ycmd/third_party/requests_deps/certifi/certifi/cacert.pem
ycmd.out 1,379 r /nix/store/chxbrfj62asmrm9rm82dqn11z9bb2hh7-ycmd-2020-02-22/lib/ycmd/third_party/requests_deps/urllib3/dummyserver/certs/cacert.pem
(xcode-install.out) 221,418 r /nix/store/6z3xdb6hs5dw19z33yzrglcngx6b4rn4-ruby2.7.4-excon-0.78.1/lib/ruby/gems/2.7.0/gems/excon-0.78.1/data/cacert.pem
wakatime.out 281,457 r /nix/store/nzkr6vhzaanp5ykyk5mgxanhgm1ky01g-wakatime-13.0.7/lib/py
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase