This file contains 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
ip link set dev eth0 down | |
ip link set dev eth0 up |
This file contains 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
ip link set dev eth0 down | |
ip link set dev eth0 up |
This file contains 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
// Diese Funktion macht aus einem Objekt wie oben zu sehen eine Dom Liste. Glaubt mir. | |
function generateHTML(tree: object, level: number) { | |
const entries = Object.keys(tree); | |
if (entries.length === 0) return '</li>'; // Wenn das ende Eines Zweiges getroffen wird schließen wir den Eintrag und machen weiter. | |
const out = | |
'<ul>' + | |
entries.map((entry: string) => { | |
return '<li>' + entry + generateHTML(tree[entry], level + 1); | |
}) + | |
'</ul>'; // Weitere Level sind in einer weiteren unsortierten Liste. |
This file contains 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
docker volume create portainer_data | |
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer |
This file contains 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
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose |
This file contains 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
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host |