Skip to content

Instantly share code, notes, and snippets.

View silence48's full-sized avatar
🚀
Hitting Hopium on my Moon Rocket!

Silence silence48

🚀
Hitting Hopium on my Moon Rocket!
View GitHub Profile
@Smephite
Smephite / claim_shitasset.py
Last active February 12, 2022 05:59
Use this script to claim all sellable tokens offered to you by claimable balances. Now uses ^6.0.0b
from stellar_sdk import Server, Keypair, TransactionBuilder, Network
import stellar_sdk
from stellar_sdk.asset import Asset
from stellar_sdk.operation.create_claimable_balance import ClaimPredicate
from stellar_sdk.operation.path_payment_strict_send import PathPaymentStrictSend
from stellar_sdk.signer import Signer
import datetime, decimal
print(f"Using stellar SDK v{stellar_sdk.__version__}")
@domenic
domenic / escape-vm.js
Created August 17, 2015 20:20
Escaping the vm sandbox
"use strict";
const vm = require("vm");
const sandbox = { anObject: {} };
const whatIsThis = vm.runInNewContext(`
const ForeignObject = anObject.constructor;
const ForeignFunction = ForeignObject.constructor;
const process = ForeignFunction("return process")();
const require = process.mainModule.require;
require("fs");