Skip to content

Instantly share code, notes, and snippets.

View mdashti's full-sized avatar

Mohammad Dashti mdashti

View GitHub Profile
@mdashti
mdashti / stacktrace.cxx
Created June 10, 2021 16:59 — forked from fmela/stacktrace.cxx
A C++ function that produces a stack backtrace with demangled function & method names.
/*
* Copyright (c) 2009-2017, Farooq Mela
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@mdashti
mdashti / git_extraction.md
Last active October 30, 2017 16:50 — forked from jamesarosen/git_extraction.md
Extracting a directory from a git project

Recently, I needed to extract a number of directories from a git project each into their own projects. The original directory structure looked like

project/
  subprojects/
    Foo/
    Bar/
    Baz