Category Archives: Linux

Short Tip: Moving commits between branches

Sometimes you are developing on a huge new feature on a software project. If you are smart you do it in a separate (feature-) branch. During the development cycle you may modify existing code and after a few days you … Continue reading

Posted in General, Linux, Short Tips | Leave a comment

32C3 Review Part 1

I visited the 32C3, the annual Hacker conference organized by the CCC and many many volunteers. Here is the first part of a short list of recommended videos (Day 1 of 4): Part1 – annual must-see talks: The Opening is … Continue reading

Posted in General, Internet found pieces, IT-Security, Linux, Nerd Stuff | Leave a comment

Link collection of the week

Another link collection with cool stuff from the past week: Turning the database inside out with Apache Samza How to do code reviews Why mongodb sucks Problems with SHA1 deprecation in SSL Certs Counterfeit of electronic components We Are All … Continue reading

Posted in General, Internet found pieces, Linux | Leave a comment

Fiddling with duply and ed25519 keys

I’m using duply for my backups, the config is very simple (/root/.duply/backup/conf): GPG_KEY=’IDOFMYGPGKEY’ GPG_PW=’PASSWORD’ GPG_OPTS=’–compress-algo=bzip2′ TARGET=’sftp://user@storage01.server.de:22//user’ SOURCE=’/’ DUPL_PRECMD=”nice -n 20 ionice -c 3″ MAX_AGE=2M MAX_FULL_BACKUPS=8 MAX_FULLBKP_AGE=1W DUPL_PARAMS=”$DUPL_PARAMS –full-if-older-than $MAX_FULLBKP_AGE ” VOLSIZE=512 DUPL_PARAMS=”$DUPL_PARAMS –volsize $VOLSIZE ” VERBOSITY=4 DUPL_PARAMS=”$DUPL_PARAMS –asynchronous-upload ” I … Continue reading

Posted in General, Linux | 1 Comment

Securing Postfix on a shared Webserver

I’m operating a webserver for shared webspace accounts. I’m not responsible for the stuff hosted on the webspace, but for the server itself. Many people like to host their wordpress or joomla on this server, both scripts are well known … Continue reading

Posted in General, IT-Security, Linux, Short Tips | Leave a comment

Fighting PHP spam

A good friend owns a very old joomla website which has been hacked. It is massively sending spam, how can we investigate this? First of all, reject outgoing mails in your firewall (ferm.conf style): Now we have time to investigate. … Continue reading

Posted in General, IT-Security, Linux, Short Tips | Leave a comment

Fiddling with MySQL

Let us have a look at a simple procedure in MySQL 5.6: Easy one. A note about variables. id1 is a local/user defined variable, the scope is limited to the BEGIN/END block, @id2 is a global variable, accessible from everywhere. … Continue reading

Posted in 30in30, General, Internet found pieces, Linux | Leave a comment

Zabbix Autodiscovery for KVM VM Images

A very short description about Zabbix: Zabbix Agent: Executes Checks on a system that you want to monitor (for example checking the avialable memory). Zabbix Server: Central part that receives values from the agents, serves the frontend with data, throws … Continue reading

Posted in 30in30, General, Linux | Leave a comment

Getting started with Hiera

I am using puppet since the end of 2012 and I finally found a use case for Hiera. This is my way of implementing it: What is Hiera Hiera is split into two parts: The backend is a key/value store … Continue reading

Posted in 30in30, General, Linux, Puppet | Leave a comment

Extending Disk Capacity for KVM Virtual Machines

From time to time, your data grows and a virtual machine is getting filled up. Here is a short tutorial for extending the disk capacity for KVM machines on LVM2: First step: Poweroff the machine. This is a good situation … Continue reading

Posted in 30in30, General, Linux, Short Tips | Leave a comment