$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|## zmeu (email@example.com) Tue Dec 25 12:49:04 CST 2018|
|## keepalive IRCCloud - Trial Account|
|AGENT="IRCCloud/4.5 (iPhone; en; iPhone OS 12.1.2)"|
|TOKENIZE=$(curl -s -A $AGENT -X POST "$URL/auth-formtoken" --header "content-length: 0"|cut -d"\"" -f8)|
|SESSION=$(curl -s -A $AGENT -d email=$USER -d password=$PASS -d token=$TOKENIZE --header "content-type: application/x-www-form-urlencoded" --header "x-auth-formtoken: $TOKENIZE" "$URL/login"|cut -d"\"" -f8)|
Pick to allow you to get a "subset" object type of a given type, but there is no built-in
Pick for deeper nested fields.
If you have a function that takes a large object as argument, but you don't use all of its fields, you can use
Pick3, etc to narrow down the input type to be only just what you need. This will make it easier to test your function, because when mocking the input object, you don't need to pass all fields of the "large" object.
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb