Skip to content

Instantly share code, notes, and snippets.

View bartman's full-sized avatar
🤓
🏋️‍♂️🥩☕💻ⓒ🦀

Bart Trojanowski bartman

🤓
🏋️‍♂️🥩☕💻ⓒ🦀
View GitHub Profile
@bartman
bartman / TODO
Last active August 29, 2015 14:18
TODO
This is my open source TODO list.
* clib needs a way to install locally in $HOME
* pip installs in ~/.local, which may be a good place to do it
* should have a ~/.clibrc or ~/.config/clib/config.js to set defaults
* (optionally) store what's installed so that 'clib update' works (maybe $PREFIX/var/clib.db)
* (optionally) keep the code around in $PREFIX/src/... and issue a git pull when updating
* airline whitespace detection needs a "goto error" feature
* autoload/airline/extensions/whitespace.vim
@bartman
bartman / PLAN.markdown
Last active August 29, 2015 14:20
camping May 2015

this gist is depracated.

moved contents to a google doc.

you should have been invited.

@bartman
bartman / mktags
Last active August 29, 2015 14:27
mktags
#!/usr/bin/make -f
DIRS = .
IGNORE_DIRS = .svn BitKeeper CVS SCCS .hg .git
EXISTING_IGNORE_DIRS = $(wildcard ${IGNORE_DIRS})
FIND_FILTER = $(shell for d in ${EXISTING_IGNORE_DIRS} ; do echo ! -path "\"*/$$d/*\"" -a ; done)
@bartman
bartman / README.md
Last active December 27, 2021 16:24
tmux
@bartman
bartman / .gitignore
Last active January 6, 2018 20:14
spectre
*~
sceptre
@bartman
bartman / strjoina.c
Created February 8, 2018 17:29
strjoina
pulled from
https://github.com/systemd/systemd
#define strjoina(a, ...) \
({ \
const char *_appendees_[] = { a, __VA_ARGS__ }; \
char *_d_, *_p_; \
size_t _len_ = 0; \
unsigned _i_; \
for (_i_ = 0; _i_ < ELEMENTSOF(_appendees_) && _appendees_[_i_]; _i_++) \

Keybase proof

I hereby claim:

  • I am bartman on github.
  • I am bartman (https://keybase.io/bartman) on keybase.
  • I have a public key ASBIrHW2ndQDGlTFhnp9hFSCrN8t61PiRTZ6oBU2S1MJ3wo

To claim this, I am signing this object:

@bartman
bartman / .zsh_func_tmux0
Last active October 14, 2022 18:23
tmuxify
#!/bin/zsh
#autoload -U
#vim: set ft=zsh
local use_exec=false
local base=${0##*/}
local sname=${base#tmux}
function err() { print -P >&2 - "%B%F{red}$@" ; }
@bartman
bartman / watch-cgroup-memory-usage
Last active November 17, 2021 15:19
watch-cgroup-memory-usage
#!/bin/bash
#
# watch cgroup 'browsers' memory activity
#
# best served with ...
#
# https://gist.github.com/jakewarren/477ecd1149abe908cbd5cf7a7c9abaa3
self=$0
SUDO=
$ cat ~/.gdbinit
# GEF
# https://gef.readthedocs.io/en/master/
#
# https://github.com/hugsy/gef
# Voltron
# https://github.com/snare/voltron
#
# git clone https://github.com/snare/voltron