Skip to content

Instantly share code, notes, and snippets.

@dboitnot
dboitnot / packing.py
Last active January 11, 2022 17:50
Simulate packing to size an container cluster
#!/usr/bin/env python3
containers = [
3172, # UI Gateway
5196, # UI tomcat
1224, # Transit UI
1224, # Controller
1224, # ScribeUI
1224, # Applicant API
1224, # Composer
@dboitnot
dboitnot / iterm2-integration.el
Created July 26, 2018 17:50
Send the current line or selected text to iTerm2 from emacs
(defun it2-tell-current (&rest messages)
"Send a message (or list of messages) to the current session of the current window in iTerm2"
(do-applescript
(concat
" tell application \"iTerm2\"\n"
" tell the current session of current window\n"
(string-join messages "\n")
"\n end tell\n"
" end tell\n")))