How to replace a single page in a PDF file using another PDF file in Linux 1

How to replace a single page in a PDF file using another PDF file in Linux

By using the PDF Toolkit PDFtk library you can do this simple pdf editing task and many more. For all of you creating software related to PDF documents you should really spend some time reading about PDFtk server. Installation:

Usage: In this example we have two pdf files with 10 pages each. The command […]

Split large FLAC, MP3, OGG, WAV files from CUE sheets - split2flac tool 2

Split large FLAC, MP3, OGG, WAV files from CUE sheets – split2flac tool

This entry is part 1 of 1 in the series Music Junky's Complete Guide

Splitting large flac audio files according to a .cue sheet can be a great pain in the ass in 99.99% of the cases. I just found an awesome command-line tool that does it really well! split2flac technically is a simple bash script integrating other software, cue tools and shntool.   split2flac Key features Automatically finds the corresponding .cue […]

Real WordPress Cron Jobs 3

Real WordPress Cron Jobs

WP cron is one of the greatest features of WordPress. However, it’s irritating when your site is low traffic, or for whatever reason, wp cron refuses to work properly. You can’t schedule your postings or newsletter digests, social media re-posts, WAF scanning, etc. And if your plan is to get serious about your personal blog […]

Batch Watermark photos with imageMagick script 6

Batch Watermark photos with imageMagick script

ImageMagick is an awesome image manipulation tool. It provides an command-line API for literally hundreds of functionalities related to image editing. Every now and then I need to apply watermarks to my images before posting them somewhere online, in public. GIMP, has one or two scripts which extend its functionalities but there’s no neat way […]

Observium - Rename existing devices 7

Observium – Rename existing devices

In case you have a lot of devices monitored by observium and for a reason (a hypervisor migration maybe?) you need to change servers’ hostnames, observium, at the time being, doesn’t seem to support renaming via its web interface but you can successfully do it from the command-line. Read the instructions below. Change current directory […]

ssh refused: sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth] 8

ssh refused: sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

If you just upgraded Ubuntu 15.04/10 to Ubuntu 16.04 LTS (or otherwise upgraded OpenSSH from v6.9 to v7.0 you may be getting the ssh refusal because of changes in OpenSSH. I was specifically getting this error in the /var/log/auth.log (via Webmin): sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]. For this specific error, you […]

swap file on

Create a permanent swap file equal to RAM bytes

This entry is part 2 of 2 in the series Messing with the Swap

Create a permanent swap file equal to RAM bytes. Yeah I know this is the lazy admin talking, but the inside wants out …

swap file on

Swap file on! Only when you need it…

This entry is part 1 of 2 in the series Messing with the Swap

So here’s a quick snippet to turn on swap on a file, even after OS installation, temporarily. At line one notice the file size is 4G . Modify it to your needs.

Specktator's #RegEx Cheat Sheet 9

Specktator’s #RegEx Cheat Sheet

This is my regular expression cheat sheet. Anchors ^    Start of string or line \A    Start of string $    End of string or line \Z    End of string \b    Word boundary \B    Not word boundary \<    Start of word \>    End of word   Character Classes \c    Control character \s    Whitespace \S    Not Whitespace \d   […]

Move Window Buttons Back to the Right in Ubuntu 10.04 / 10.10 10

Move Window Buttons Back to the Right in Ubuntu 10.04 / 10.10

One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.

The key that we want to edit is in apps/metacity/general. Click on the button next to the […]