This article shows you how to reset a windows password. Boot up your PC from you linux partition or an usb stick. Then you replace the Utilman.exe with cmd.exe in C:\Windows\System32 as shown below: Now boot up your Windows and click on the accessibility tools icon or press WIN+U. This […]
Chroots
This article explains how to install and use debian based chroots. In a first step you need to install a chroot in a prefix of your choice: debootstrap stretch ./stretch-chroot http://deb.debian.org/debian #for ubuntu releases use the line below #debootstrap –arch=amd64 xenial ./xenial-chroot http://archive.ubuntu.com/ubuntu/ This will install the debian stretch release […]
How to Install SSL Certificates
In Debian the standard SSL cert directory is /etc/ssl/certs. Certs whose hash is symlinked here (format: XXXXXXXX.n | X in hex, n in N) will be found system-wide. When a look-up for a domain is done, then this domain is hashed in the same way to determine the file the […]
export import kubeconfig
export kubernetes config: # start a minikube adding external adresses to ssl certs cloud$ ips=”$(ip addr show | grep “inet ” | awk ‘{print $2}’ | sed ‘s/\/.*//’ | xargs | sed -e ‘s/ /,/g’)” cloud$ minikube start –apiserver-ips=”$ips” <other options> # export the config cloud$ kubectl config view –flatten […]
install kubernetes on debian sid
install distribution provided run-time-dependencies used by minikube: apt-get install qemu-kvm libvirt-daemon-system virtualbox virtualbox-dkms install minikube and dependencies: curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64 chmod +x minikube mv minikube /usr/local/bin/ latest=”$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)” curl -LO “https://storage.googleapis.com/kubernetes-release/release/${latest}/bin/darwin/amd64/kubectl” chmod +x kubectl mv kubectl /usr/local/bin/ # kvm only curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 chmod +x docker-machine-driver-kvm2 mv docker-machine-driver-kvm2 […]
CMake: Override sub-project option once and for all
To set an option (foo) of a sub-project permanently you need to add the following code: set(foo “bar” CACHE STRING “overrides option foo of sub” FORCE) in case you want the option configurable by the including project you should define an option with the same name.
Allow NAT to localhost
In order to allow routing of a local port to an external interface you need to enable route_localnet for the interface: echo 1 > /proc/sys/net/ipv4/conf/<iface>/route_localnet
FIX: QEMU – console not visible
When the curses console of QEMU does not become visible, then you can try the following settings in the virtual machine: /etc/default/grub should contain GRUB_CMDLINE_LINUX=”console=tty0 console=ttyS0″ /etc/modprobe.d/bochs_drm.conf should contain install bochs_drm /bin/true
Dispatch Functions Depending on their Return Values
Run Callable on each Argument
This snippet shows how to run a callable given as first argument on each following argument.