Skip to content

Instantly share code, notes, and snippets.

View fed-franz's full-sized avatar

Federico Franzoni fed-franz

  • Dusk Network
  • Barcelona
View GitHub Profile
@LAMike310
LAMike310 / broadcast.js
Created February 17, 2016 21:26
Push Raw Bitcoin Transaction using Blockcypher
var axios = require('axios')
axios.post('https://api.blockcypher.com/v1/bcy/test/txs/push',
{"tx":"01000000011935b41d12936df99d322ac8972b74ecff7b79408bbccaf1b2eb8015228beac8000000006b483045022100921fc36b911094280f07d8504a80fbab9b823a25f102e2bc69b14bcd369dfc7902200d07067d47f040e724b556e5bc3061af132d5a47bd96e901429d53c41e0f8cca012102152e2bb5b273561ece7bbe8b1df51a4c44f5ab0bc940c105045e2cc77e618044ffffffff0240420f00000000001976a9145fb1af31edd2aa5a2bbaa24f6043d6ec31f7e63288ac20da3c00000000001976a914efec6de6c253e657a9d5506a78ee48d89762fb3188ac00000000"}
)
.then(function (response) {
console.log(response.data);
})
.catch(function (response) {
console.log(response.data);
});
@TOMOAKI12345
TOMOAKI12345 / bitcoin_spv_wallet_overview.md
Created August 31, 2015 11:37
Bitcoin SPV Wallet Flow Overview

@Iman
Iman / clean.sh
Last active November 1, 2025 09:26
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/usr/bin/env bash
# Ubuntu Server or VM Cleaner. Safe by default; aggressive when asked.
# Example safe: sudo ./clean.sh
# Example aggressive: sudo JOURNAL_DAYS=3 AGGRESSIVE=1 ./clean.sh
# Enable Docker image prune (images only): sudo ./clean.sh --docker-images
# Tested on Ubuntu 20.04, 22.04, 24.04 (server/VM images).
set -Eeuo pipefail
trap 'rc=$?; echo "Error on line $LINENO: $BASH_COMMAND (exit $rc)"; exit $rc' ERR
IFS=$'\n\t'
@iMHLv2
iMHLv2 / gist:8def92d6c3d604273f41
Created December 9, 2014 17:42
Experimentation with Volatility's Windows 10 TP x64 Branch
# Get the Win10 branch of Volatility
git clone -b win10tp https://github.com/volatilityfoundation/volatility.git
# Get the memory dump
https://www.sendspace.com/pro/dl/0cte2h
# Run some commands