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
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| some \ | |
| programms \ | |
| here \ | |
| && rm -rf /var/lib/apt/lists/* | |
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
| Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory | |
| ## solution: | |
| apt-get install libglu1 |
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
| if you do not see your precious tasks then try to change do to require in the Rexfile | |
| old: | |
| do "Rexfile.d/$_" for (grep { m/.task$/ } listfiles("Rexfile.d/")); | |
| new: | |
| require "Rexfile.d/$" for (grep { m/.task$/ } list_files("Rexfile.d/")); |
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
| FROM repo | |
| MAINTAINER Name <mail@example.com> | |
| EXPOSE PortNumber | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| package \ | |
| && rm -rf /var/lib/apt/lists/* |
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
| docker run --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun -i -t alpine /bin/ash |
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
| netstat -nr | grep '^0\.0\.0\.0' | awk '{print $2}' |
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" | |
| func main() { | |
| sum := 0 | |
| for i := 0; i < 10; i++ { | |
| sum += i | |
| } | |
| fmt.Println(sum) |
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
| VBoxManage convertfromraw --format VDI [filename].img [filename].vdi |
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
| # finds and deletes files newer than 1 min | |
| find . -type f -cmin -1 -delete |
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 Manager | |
| Cleanup Command | |
| yum | |
| yum clean all | |
| dnf | |
| dnf clean all | |
| rvm | |
| rvm cleanup all | |
| gem | |
| gem cleanup |
OlderNewer