Skip to content

Instantly share code, notes, and snippets.

View ojura's full-sized avatar
:octocat:
⏯⏺⏮⏭

Juraj Oršulić ojura

:octocat:
⏯⏺⏮⏭
View GitHub Profile
import rosbag
import os
import sys
def remove_tf(inbag,outbag,frame_ids):
rospy.loginfo(' Processing input bagfile: %s', inbag)
rospy.loginfo(' Writing to output bagfile: %s', outbag)
rospy.loginfo(' Removing frame_ids: %s', ' '.join(frame_ids))
### Keybase proof
I hereby claim:
* I am ojura on github.
* I am ojura (https://keybase.io/ojura) on keybase.
* I have a public key ASCVSP9OAeol2BN5d00C1RsMmR9FMvrJWXRZRHM5sWXniAo
To claim this, I am signing this object:
@ojura
ojura / cat_unwrap_excerpt.py
Last active February 22, 2022 21:26
CAT unwrap excerpt
# Coin with index 0 - "coin 0"; regular CAT coin worth 2 mojos; our value extractor
# Coin with index 6 - "coin 6"; double wrapped CAT worth 1 mojo; we're trying to salvage it
inner_puzzle[0] = puzzle_for_pk(key[0].get_g1())
cat_puzzle[0] = construct_cat_puzzle(CAT_MOD, tail_hash, inner_puzzle[0])
inner_puzzle[6] = puzzle_for_pk(key[6].get_g1())
cat_puzzle[6] = construct_cat_puzzle(CAT_MOD, tail_hash, inner_puzzle[6])
cat_cat_puzzle[6] = construct_cat_puzzle(CAT_MOD, tail_hash, cat_puzzle[6])
@ojura
ojura / spend_double_wrapped_cat.py
Last active February 22, 2022 20:56
Full POC for unwrapping doublewrapped Chia CATs
from chia.util.condition_tools import conditions_dict_for_solution, pkm_pairs_for_conditions_dict
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.program import Program
from chia.wallet.wallet import Wallet
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.cmds.wallet_funcs import get_wallet
from chia.rpc.wallet_rpc_client import WalletRpcClient
from chia.util.default_root import DEFAULT_ROOT_PATH
from chia.util.config import load_config
from chia.util.ints import uint16
@ojura
ojura / README.md
Created March 4, 2022 23:10 — forked from pojntfx/README.md
Share a terminal from Debian to the web using ttyd and localhost.run

Shortened link to this Gist: https://git.io/JPMB8

To use, run:

curl -L 'https://git.io/JPMBa' | bash -s -- sharedusername sharedpassword

Or if you only have wget installed, run: