sudo yum install epel-release
sudo yum -y install dnf dnf-plugins-core
dnf download cockpit-docker
sudo rpm -Uvh --nodeps cockpit-docker-138-6.el7.centos.x86_64.rpm
sudo service cockpit restart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
brooklyn: | |
image: johnmccabe/brooklyn | |
ports: | |
- "8081:8081" | |
links: | |
- "node1:node1" | |
node1: | |
image: johnmccabe/fakevmtest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Removing lumogon containers" | |
docker ps -a | grep lumogon_ | awk '{ print $1 }' | xargs -I {} docker rm {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
"golang.org/x/net/context" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
) | |
func work() error { | |
for i := 0; i < 1000; i++ { |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# via https://coderwall.com/p/_s_xda/fix-ssh-agent-in-reattached-tmux-session-shells | |
fixssh() { | |
for key in SSH_AUTH_SOCK SSH_CONNECTION SSH_CLIENT; do | |
if (tmux show-environment | grep "^${key}" > /dev/null); then | |
value=`tmux show-environment | grep "^${key}" | sed -e "s/^[A-Z_]*=//"` | |
export ${key}="${value}" | |
fi | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello |