Skip to content

Instantly share code, notes, and snippets.

View utf18's full-sized avatar
๐Ÿšš

Benjamin utf18

๐Ÿšš
  • Freelancer
  • Germany
View GitHub Profile
RUN apt-get update && \
apt-get install -y --no-install-recommends \
some \
programms \
here \
&& rm -rf /var/lib/apt/lists/*
@utf18
utf18 / virtmanager-missing-libs
Created September 18, 2016 13:22
virt manager setup ubuntu 16
Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
## solution:
apt-get install libglu1
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/"));
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/*
docker run --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun -i -t alpine /bin/ash
netstat -nr | grep '^0\.0\.0\.0' | awk '{print $2}'
package main
import "fmt"
func main() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
VBoxManage convertfromraw --format VDI [filename].img [filename].vdi
@utf18
utf18 / delete-new-files
Created June 18, 2017 15:54
delete-files-newer-than
# finds and deletes files newer than 1 min
find . -type f -cmin -1 -delete
Package Manager
Cleanup Command
yum
yum clean all
dnf
dnf clean all
rvm
rvm cleanup all
gem
gem cleanup