Skip to content

Instantly share code, notes, and snippets.

@t-msn
t-msn / get_git_log_when_file_is_added.sh
Last active June 13, 2023 08:03
git log oneliner to show the time when file is added
# option meaning
# --name-status ... show file status change info
# --diff-filter ... only show specified info (A: Add, C: Copied, D: Deleted, M: Modfied, R: Renamed, etc.)
# --oneline ... show in oneline
# --pretty ... %cd: commit date(using format in --date option), %an/%ae, author name,email, %h: hash, %s: subject
git log --name-status --diff-filter=A --oneline --pretty=format:"%cd (%an/%ae) %h| %s" --date=short
@t-msn
t-msn / crash_to_drgn.md
Last active January 23, 2024 06:37
Crash command -> drgn API examples

crash command -> drgn API example

Test environment:

  • crash 8.0.1
  • drgn 0.0.20
  • x86_64 Fedora 36 (kernel 5.19)
  • Live kernel debugging only

(Not all crash commands nor crash commands' options are explored)