Skip to content

Instantly share code, notes, and snippets.

View MrToph's full-sized avatar
⁉️

Christoph Michel MrToph

⁉️
View GitHub Profile
@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
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { Script } from "forge-std/Script.sol";
abstract contract BaseScript is Script {
/// @dev Included to enable compilation of the script without a $MNEMONIC environment variable.
string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk";
/// @dev Needed for the deterministic deployments.
curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ",
{
"encoding": "jsonParsed",
"filters": [ ]
}
@conr2d
conr2d / test.cpp
Last active December 9, 2022 17:20
Pack parameters example
#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
using namespace eosio;
using namespace std;
class test: public contract {
public:
using contract::contract;
@fjahr
fjahr / bitcoin_debugging.md
Last active March 6, 2024 11:43
Debugging Bitcoin Core

Moved to https://github.com/fjahr/debugging_bitcoin to allow for better collaboration.

This document is currently optimized for MacOS. If you would like to help me add Linux equivalent commands, please let me know.

Debugging Bitcoin Core

This guide is designed to give beginners of C++ development and/or people new to the bitcoin core code base an overview of the tools available for debugging issues as well as giving hints where issues may trip you up.