Create a new slice Start by creating a new systemd unit /etc/systemd/system/portage.slice: 1 2 3 4 5 [Install] WantedBy=slices.target [Slice] CPUShares=256 Enable and start the portage.slice u...
How to create a Certificate Authority and development certificates
Setting up a private Certificate Authority for development purposes can be tricky business. Whether you are doing integration tests with services that require certificates or just developing someth...
Split front and back speakers
I recently ditched USB headphones altogether and switched to regular single jack headphones+microphone like the ones that come with most phones and most people have dozens lying around. My setup is...
Convert PKCS12 and PEM back and forth
Convert a PKCS#12 file to Key and Certificate information 1 2 3 4 5 6 P12=my.p12 KEY=my.key CRT=my.crt openssl pkcs12 -in $P12 -out $CRT -nokeys -clcerts openssl pkcs12 -in $P12 -nodes -out $KEY ...
Iterate and dump specific Jenkins Credentials
Little snippet that can be used from the Script Console to dump specific credentials.
Dynamic DNS for CloudFlare with cfdns
cfdns is simple and clean solution to update your CloudFlare dynamic A records. Installation Download and install Create the cfdns directory under ´/opt´ 1 mkdir /opt/cfdns && cd /opt/c...
Docker errors on Fedora 31
If you are facing theese issues with Docker on Fedora 31: 1 docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux....
Get all followers or friends of a Twitter user
What is the fastest way to get N number of followers from a big Twitter account I faced this problem recently and the answer deppends on how big N is. There are basically two ways to fetch Twitter...
Migrate Droplet from DigitalOcean to local KVM
In this tutorial, I’ll show you how to use the recovery mode to migrate a Droplet to a local KVM instance (or any other cloud provider). These steps will also work on any cloud provider as long as...
qcow2 to LVM
Convert qcow2 image to raw 1 2 cd /var/lib/libvirt/images/ qemu-img convert image.qcow2 -O raw image.raw Create an LVM partition Find the size of the raw image and create a LVM partition of the...