Skip to content

Instantly share code, notes, and snippets.

@chq-matteo
chq-matteo / signed-commits.md
Last active February 13, 2023 18:31
Signed commits with GPG

1. Generate a gpg key

With GnuPG 2.1.15

If you want to create an RSA or DSA key in a straight forward way use:

gpg --full-gen-key

If you want to use an ECC algorithm, you need to add the --expert flag

gpg --expert --full-gen-key

@chq-matteo
chq-matteo / memval_simple.c
Last active June 27, 2019 09:32
Dynamorio invalid free and segmentation fault
/* ******************************************************************************
* Copyright (c) 2017-2018 Google, Inc. All rights reserved.
* ******************************************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.