Skip to content

Instantly share code, notes, and snippets.

@dbueno
dbueno / memusg
Created August 22, 2021 15:59 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
@dbueno
dbueno / keybase.md
Created July 26, 2019 15:59
keybase.md

Keybase proof

I hereby claim:

  • I am dbueno on github.
  • I am denisbueno (https://keybase.io/denisbueno) on keybase.
  • I have a public key ASCj3S6gBqDLp8_Lx2a6avmYmBjXDTreueGIPvv7LabJbwo

To claim this, I am signing this object:

@dbueno
dbueno / profile.png
Last active July 2, 2019 15:28
Example showing a bad case for z3 evaluation
profile.png
#!/usr/bin/env bash
# Designed to work with https://github.com/kfix/ddcctl
function get_primary_brightness() {
declare -A bparams
brightness_string=$(ioreg -c AppleBacklightDisplay | grep -o '"brightness"=[^}]*}')
# this should be something like `"brightness"={"min"=0,"max"=65535,"value"=4108}`, pull out the #'s
# order doesn't matter