Skip to content

Instantly share code, notes, and snippets.

View helloravi's full-sized avatar
Zero Knowledge Proofs

Ravikanth Andhavarapu helloravi

Zero Knowledge Proofs
View GitHub Profile
kemlath / gist:7285356f97f67af5023cf99ee57317d6
Last active April 1, 2019 04:09
gdb 8.2.1 under Mojave

gdb has been more or less broken under OSX and was unusable under mojave, but there is hope...

This is description on how I got the latest release (dating fro 5.1.2019) up and running under mojave. In particular code signing has become more intricate under mojave since a debugger now needs the right entitlements not just a signature.

I'm assuming that a working gcc-8 installation is present (e.g. brew install gcc) and that a valid code signing certificate is in the SYSTEM keychain.

Here are the steps I took to get a working gdb:

gubatron /
Last active January 18, 2023 16:21
How to build bitcoin and debug with GDB or LLDB

Hack and Debug with gdb or LLDB, using Bitcoin's code as an example

 * Copyright CC0 Angel Leon <@gubatron>

Update: I believe now it's better to use lldb, at least on MacOS, here's a LLDB to GDB command map

Here's how to use gdb to debug issues you might be having hacking bitcoinclassic (or any other C++ program)

sudo apt-get update
sudo apt-get install golang-go -y
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
gititGoro /
Last active September 15, 2023 07:32
Environmental setup for Ethereum Dev as of 14 June 2017

Setting up a private ethereum blockchain for development and pointing your wallet at it

Ethereum tutorials all advise downloading the Mist wallet and beginning dev. The only problem is that the testnet and real blockchain are huge and take hours to download. What follows is a recipe for quickly setting up a small blockchain and pre-mining it with some test ethereum

The following is done in Linux but will work in MacOS and should have equivalent command line options in Windows. Where I don't give detailed instructions, it's because a quick google search will fill in the blanks.

Install geth

install Mist