Skip to content

Instantly share code, notes, and snippets.

@MoritzFago
MoritzFago / gist:39b4d609e4304ffc04842d93a22aff4d
Created May 26, 2020 21:35 — forked from peon-pasado-zeitnot/gist:1242279
This D-trace script lists all run programs with their arguments - works with OSX
#!/usr/sbin/dtrace -C -s
#pragma D option quiet
proc::posix_spawn:exec-success,proc::__mac_execve:exec-success
{
this->isx64=(curproc->p_flag & P_LP64)!=0;
#define SELECT_64_86(x64, x86) (this->isx64 ? (x64) : (x86))
#define GET_POINTER(base, offset) (user_addr_t)SELECT_64_86(*(uint64_t*)((base)+sizeof(uint64_t)*(offset)), *(uint32_t*)((base)+sizeof(uint32_t)*(offset)))
@MoritzFago
MoritzFago / brew config.out
Created December 3, 2018 21:47
brew audit fails to install rubocop
HOMEBREW_VERSION: 1.8.4-25-gc89f6c8
ORIGIN: https://github.com/Homebrew/brew
HEAD: c89f6c8f8c60c52a9278ccb035dadf73d999df13
Last commit: 4 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 62dda3a6286a6f0ef7378e085cd0b7c202b41db1
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_VISUAL: subl

Keybase proof

I hereby claim:

  • I am moritzfago on github.
  • I am fago (https://keybase.io/fago) on keybase.
  • I have a public key ASBEPe-jlIqrrSkIh9T7POl2uQaOY7QmLfIb6T1RHKbr_Ao

To claim this, I am signing this object: