Skip to content

Instantly share code, notes, and snippets.

@seansaito
seansaito / rm_tmux.sh
Last active May 18, 2020 14:36
Remove tmux sessions older than a specific date
#!/bin/bash
# Usage: ./rm_tmux.sh 2020-01-01
tmux ls | tr -d '()' | awk -v dateA=$1 '{
cmd ="date \"+%Y-%m-%d\" -d \""$6" "$7" "$8" "$9"\""
cmd | getline dd
if (FNR>1 && dd<=dateA) {
print $1
}
close(cmd)
# For Python 2.7
apt-get install python-scipy libblas-dev liblapack-dev gfortran python-pip
# Caffe stuff
apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-seria$
apt-get install --no-install-recommends libboost-all-dev
apt-get install libatlas-base-dev
apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev

Keybase proof

I hereby claim:

  • I am seansaito on github.
  • I am seansaito (https://keybase.io/seansaito) on keybase.
  • I have a public key whose fingerprint is 5727 F5DC 8EA1 A846 47F5 5A8F 7E2A 9027 82B6 1FDA

To claim this, I am signing this object: