Skip to content

Instantly share code, notes, and snippets.

View nerrons's full-sized avatar
🤒
Out sick

nerrons

🤒
Out sick
  • Squarepoint Capital
  • Singapore
View GitHub Profile
@wflynny
wflynny / gpfs_expiration_checker.sh
Created January 24, 2019 20:05
Check file lifetime stats on a GPFS
# I usually put this in my ~/.bash_aliases
# A portion of our GPFS storage removes files after 21 days of creation.
# `stat` does not show creation time, so we have to resort to parsing the
# output of `mmlsattr`
ftime() {
# Usage:
# ftime path/to/file
#
# Outputs:
@xcodebuild
xcodebuild / org-archive-subtree-hierarchical.el
Last active January 13, 2019 16:24
Keeping the context when archiving in Emacs org-mode
;; org-archive-subtree-hierarchical.el
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html
;; In orgmode
;; * A
;; ** AA
;; *** AAA
;; ** AB
;; *** ABA
;; Archiving AA will remove the subtree from the original file and create