(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| func work() error { | |
| for i := 0; i < 1000; i++ { |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| "golang.org/x/net/context" | |
| ) |
| #!/bin/bash | |
| echo "Removing lumogon containers" | |
| docker ps -a | grep lumogon_ | awk '{ print $1 }' | xargs -I {} docker rm {} |
| [root@do2mgs0hdqqkkbj ~]# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon version | |
| Client: | |
| Version: 20170524205424-0.2.0-27-ge10ec0d | |
| Git commit: e10ec0df4c031da28e3972915ffd868731af4ce6 | |
| Built: 2017-05-24 08:54:24 UTC | |
| [root@do2mgs0hdqqkkbj ~]# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon scan --debug | |
| [lumogon] 2017/06/07 19:52:25.475292 [Analytics] Initializing Google Analytics: scan | |
| [lumogon] 2017/06/07 19:52:25.475334 [Docker Adapter] Creating container runtime client: Docker | |
| [lumogon] 2017/06/07 19:52:25.495651 [Scheduler] Creating scheduler | |
| [lumogon] 2017/06/07 19:52:25.495682 [Docker Adapter] Creating container runtime client: Docker |
| version: '3' | |
| services: | |
| brooklyn: | |
| image: johnmccabe/brooklyn | |
| ports: | |
| - "8081:8081" | |
| links: | |
| - "node1:node1" | |
| node1: | |
| image: johnmccabe/fakevmtest |
| { | |
| "providers": [ | |
| { | |
| "name": "file::posix", | |
| "type": "file", | |
| "source": "builtin", | |
| "desc": "A provider to manage POSIX files.\n", | |
| "suitable": true, | |
| "attributes": [ | |
| { |
| "target": "/etc/hosts", | |
| "title": "localhost" | |
| }, | |
| { | |
| "ensure": "present", | |
| "ip": "255.255.255.255", | |
| "name": "broadcasthost", | |
| "provider": ":aug", | |
| "resource": "host", | |
| "target": "/etc/hosts", |