Skip to content

Instantly share code, notes, and snippets.

View jhrcz's full-sized avatar

Jan Horacek jhrcz

View GitHub Profile
@jhrcz
jhrcz / docker-clean-wasted.sh
Created December 5, 2016 11:06
docker-clean-wasted
#!/bin/bash
set -xu
sudo docker ps -a | grep -i Exited | while read id rest ; do sudo docker rm $id ; done
sudo docker images | grep none | while read a b id rest ; do sudo docker rmi $id ; done
sudo docker volume ls -qf dangling=true | while read id ; do sudo docker volume rm $id ; done
@jhrcz
jhrcz / openalt-2017.md
Last active November 8, 2017 12:52
notes from openalt 2017

OpenALT 2017, poznamky a ...poznamky ;o)

SO

Petr Hráček: Testovaní modulů a kontaineru pomoci Meta-Test-Family

  • testovaci framework s decentnim popisem
  • moznost poustet instalaci modulu (ne rpm ale modulu z boltronu) a nasledne testu
  • moznost poustet ve vm, v kontejnerech, mezi vice vms
@jhrcz
jhrcz / initial-bash-history-on-wedos-vm.txt
Created December 4, 2017 21:22
initial-bash-history-on-wedos-vm
vim /etc/ssh/sshd_config
vi /etc/ssh/sshd_config
getenforce
vim /etc/selinux/config
vi /etc/selinux/config
sed '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config
sed -i '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config
yum updae
yum update
.%%...%%..%%%%%%..%%%%%....%%%%....%%%%..