mathias / List ip ranges for docker networks
0 gustos
0 bifurcaciones
1 archivos
Última actividad
| 1 | docker network inspect $(docker network ls -q) | jq -r 'map(to_entries) | map ([.[0].value, .[6].value.Config[0].Subnet ]) | .[] | @tsv' | column -t |
mathias / Remove old kernels in ubuntu
0 gustos
0 bifurcaciones
1 archivos
Última actividad
- Install latest kernel.
- Reboot!!!
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
mathias / Generate random string
0 gustos
0 bifurcaciones
1 archivos
Última actividad
Generates a random string usable for passwords or tokens
| 1 | #!/bin/sh |
| 2 | |
| 3 | tr -dc A-Za-z0-9 </dev/urandom | head -c 40; echo |
Siguiente
Anterior