Skip to content

Instantly share code, notes, and snippets.

View rbmarliere's full-sized avatar

Ricardo B. Marliere rbmarliere

View GitHub Profile
@rbmarliere
rbmarliere / cheat_sheet.txt
Created September 4, 2023 21:10
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
### Keybase proof
I hereby claim:
* I am rbmarliere on github.
* I am zaratustra (https://keybase.io/zaratustra) on keybase.
* I have a public key whose fingerprint is 030A 8E9E 424E E3C0 6557 87E1 C90B 8A7C 6386 58A6
To claim this, I am signing this object:
@rbmarliere
rbmarliere / genesis.json
Created August 25, 2018 01:05
sample eosio genesis.json
{
"initial_timestamp": "2018-03-02T12:00:00.000",
"initial_key": "EOS6bV6b51cem7TEngFY5G4t5dGtFWSGpjc2zxiuPaqSAybjR62kX",
"initial_configuration": {
"max_block_net_usage": 1048576,
"target_block_net_usage_pct": 1000,
"max_transaction_net_usage": 524288,
"base_per_transaction_net_usage": 12,
"net_usage_leeway": 500,
"context_free_discount_net_usage_num": 20,
@rbmarliere
rbmarliere / config.ini
Created August 25, 2018 01:05
sample eosio config.ini
# the endpoint upon which to listen for incoming connections (eosio::bnet_plugin)
bnet-endpoint = 0.0.0.0:4321
# this peer will request only irreversible blocks from other nodes (eosio::bnet_plugin)
bnet-follow-irreversible = 0
# the number of threads to use to process network messages (eosio::bnet_plugin)
# bnet-threads =
# remote endpoint of other node to connect to; Use multiple bnet-connect options as needed to compose a network (eosio::bnet_plugin)
@rbmarliere
rbmarliere / bsd1.buildlog
Created January 10, 2018 20:30
POSIX.cpp error on FreeBSD
[ 14%] Building CXX object libraries/wasm-jit/Source/Platform/CMakeFiles/Platform.dir/POSIX.cpp.o
/home/ec2-user/git/eos/libraries/wasm-jit/Source/Platform/POSIX.cpp:228:3: error: no matching function for call to 'siglongjmp'
siglongjmp(signalReturnEnv,1);
^~~~~~~~~~
/usr/include/setjmp.h:57:6: note: candidate function not viable: no known conversion from 'jmp_buf' (aka 'struct _jmp_buf [1]') to 'struct _sigjmp_buf *' for 1st argument
void siglongjmp(sigjmp_buf, int) __dead2;
^
/home/ec2-user/git/eos/libraries/wasm-jit/Source/Platform/POSIX.cpp:264:39: error: no matching function for call to 'sigsetjmp'
bool isReturningFromSignalHandler = sigsetjmp(signalReturnEnv,1);
^~~~~~~~~