merge pdf files in linux

How to merge multiple PDF files in Linux

This entry is part 1 of 2 in the series PDF Editing In Linux

Merge multiple PDF files in Linux is easy running one simple command by using PDF Toolkit. Installation on Ubuntu > 16.04:

Merge multiple pdf files: In this example we have n pdf files in the same directory, each file has the prefix sample-pdf-. The command below will merge n number of pdf files, using […]

merge pdf files in linux

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

This entry is part 2 of 2 in the series PDF Editing 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 1

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 2

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 5

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 6

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] 7

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 8

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   […]