OpenSSL Cheat Sheat

I know I know, there are plenty of openssl cheat sheets out there already1)http://www.sslshopper.com/article-most-common-openssl-commands.html2)https://github.com/stanzgy/wiki/blob/master/network/openssl-self-signed-certs-cheatsheet.md. But as I keep using googling it again and again to find the most useful openssl commands I decided to do my own – the first version of the blog entries is already 3 years old actually. Another reason for creating […]

View “raw” diff on Github

Viewing a “raw” diff in Github is easy – if you know how. If you are viewing a commit on github the URL looks something like this: https://github.com/voxpupuli/puppet-php/commit/50e1c1733a931dd3d9d21db8a4f584c9984100d1 Adding “.diff” to the URL will generate the raw diff for you which you can pipe to patch etc. The full URL is: https://github.com/voxpupuli/puppet-php/commit/50e1c1733a931dd3d9d21db8a4f584c9984100d1.diff

Quickly create a (swap)file on linux

The traditional way for creating a linux swapfile would be using dd to create an empty file e.g. A faster way is to use “fallocate” e.g. 1) http://www.cyberciti.biz/faq/ubuntu-linux-create-add-swap-file/ Don’t forget the usually procedure for swapfiles: References   [ + ] 1. ↑ http://www.cyberciti.biz/faq/ubuntu-linux-create-add-swap-file/

Migration of OpenVZ Container to KVM Guest

This is a short tutorial how to migrate an OpenVZ container to a KVM Guest. Some ideas have been taken from other tutorials1) https://www.pither.com/simon/blog/2011/09/20/convert-an-openvz-vm-to-kvm 2) http://blog.smile.fr/Migrate-your-openvz-containers-to-kvm-openstack , the other half has been extracted from grml-debootstrap which can generate a KVM guest by using debootstrap. Update 2016/09/20: with some minor fixes and one missing command (copy […]

Moving to KVM

Since our beloved OpenVZ virutalisation technology is not moving in a direction we are comfortable with, we are currently evaluation several virtualisation technologies. One the the possible options is KVM. This is not a full tutorial about KVM, there are many good tutorials already, e.g. 1)https://www.lisenet.com/2016/getting-started-with-kvm-on-debian-jessie/ or 2)http://linuxnewbieguide.org/?p=1993 or 3)http://xmodulo.com/use-kvm-command-line-debian-ubuntu.html or 4)http://wiki.libvirt.org/page/UbuntuKVMWalkthrough or 5)http://www.cyberciti.biz/faq/how-to-install-kvm-on-ubuntu-linux-14-04/, this […]

Running “backticks” commands on remote servers

Sometimes it’s necessary to run a complex command on a remote server witch also includes some “backticks”. Usually these commands are interpreted by the local shell so you need to use a little trick to force execution on the remote server: ssh this.is.my.beautiful.server ‘( echo `echo “This Command is run on the remote server” ` […]