Skip to content

Instantly share code, notes, and snippets.

View rickstaa's full-sized avatar
🏠
Working from home

Rick Staa rickstaa

🏠
Working from home
View GitHub Profile
@rickstaa
rickstaa / 1-find-unmigrated-delegators.mjs
Created June 2, 2026 09:47
Livepeer L1 unmigrated delegator / multisig stake scan
import { ethers } from "ethers";
const L1_BM_ADDR = "0x511Bc4556D823Ae99630aE8de28b9B80Df90eA2e";
const L2_MIGRATOR_ADDR = "0x148D5b6B4df9530c7C76A810bd1Cdf69EC4c2085";
// First real Bond event in the original scan landed at ~6193958. Earlier
// chunks were empty on the original run so we start here to save RPC calls.
// Change this if you need a hard-complete scan from proxy deploy.
const L1_BM_SCAN_FROM_BLOCK = 6190000;
@rickstaa
rickstaa / test.cpp
Last active August 12, 2023 07:26
Test Gist
#include <iostream>
int main() {
std::cout << "test" << std::endl;
return 0;
}
@rickstaa
rickstaa / deep_update python method
Last active June 10, 2021 08:50
Small gist that contains a deep_update python function
import collections
from gym.utils import colorize as gym_colorize
def colorize(string, color, bold=False, highlight=False):
"""Colorize a string.
.. seealso::
This function wraps the :meth:`gym.utils.colorize` function to make sure that it
@rickstaa
rickstaa / debugger.vscode_d72d0e4c-49fd-47a8-9ef7-4b531ab69249.log
Created August 20, 2020 10:59
Debugpy logs (new version) - debugpy/issues/274
0 Starting Session:
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "/home/ricks/Development/machine_learning_control_ws/src/sandbox/test_debugger.py",
"console": "integratedTerminal",
"logToFile": true,
"env": {
"PYDEVD_THREAD_DUMP_ON_WARN_EVALUATION_TIMEOUT": "true",
Traceback (most recent call last):
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 267, in run_file
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/@ungap/custom-elements-builtin"></script>
<script type="module" src="https://unpkg.com/x-frame-bypass"></script>
</head>
<body>
<iframe is="x-frame-bypass" name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://calendar.google.com/calendar/r' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
</body>
</html>
<iframe id="optionalstuff" name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://journey.cloud/timeline' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
<iframe name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://www.ah.nl/mijnlijst2' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
@rickstaa
rickstaa / Linux RT-kernel 5.4.26 .config file
Created May 18, 2020 11:40
Linux RT-kernel 5.4.26 .config file
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.26 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=70500
@rickstaa
rickstaa / console.log
Created October 16, 2019 14:56
Console log - moveit issue #1694
... logging to /home/ricks/.ros/log/9cfdbd0c-f024-11e9-bbdf-e4a471cb9413/roslaunch-ricks-HP-3655.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
]2;/home/ricks/Desktop/catkin_ws/src/panda_moveit_config/launch/demo.launch
started roslaunch server http://ricks-HP:43745/
SUMMARY
========