Skip to content

Instantly share code, notes, and snippets.

View shenxiaolong-code's full-sized avatar

ShenXiaolong shenxiaolong-code

View GitHub Profile
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file
@shenxiaolong-code
shenxiaolong-code / git_batch_resolver.py
Created October 20, 2020 11:04 — forked from bitmingw/git_batch_resolver.py
Batch script to resolve large git conflicts.
#!/usr/bin/env python3
"""
Author: Ming Wen (bitmingw@gmail.com)
When resolving conflicts on a merge or rebase, this script
automates `git add/rm` and `git checkout` with --ours or --theirs
for a large batch of changes.
Usage: `./git_batch_resolver.py` in your git repository.