Encrypted Postgres Backups

Today I decided to encrypt all my Postgresql Database Dumps. The OpenSSL command provides a nice tool for helping us encrypt and decrypt database backups in this way. The following steps will walk us through this process.

The first step needed to encrypt your database is to generate the RSA public/private keys. This can be done with the following command:

[Read more…]

Private Maven Repository in Amazon S3

 A few days ago I had an interesting task with Maven and AWS S3. We decided to use S3 bucket as a private Maven repository. Amazon S3 is a good place for keeping private Maven artifacts.

If you want to use S3 bucket as a private or public maven repo, first of all, you need to create an s3 bucket, create IAM user and configure AWS access by keys. It's a very simple task, let's do it.

[Read more…]

How to install Maven on CentOS

Apache Maven is a project management software, managing building, reporting and documentation of a Java  development project. In order to install and configure Apache Maven on CentOS, follow these steps.

First of all, you need to install Java 1.8 JDK. Make sure to install Java JDK, not JRE.

Then go ahead and download the latest Maven binary from its official site. For example, for version 3.3.9:

[Read more…]

No space left on device – running out of Inodes

One of my servers went down today. Problems started with deployment on jenkins that reported “No space left on device”, although partition was not nearly full. If you ever run into such trouble – most likely you have too many small or 0-sized files on your disk, and while you have enough disk space, you have exhausted all available Inodes. Below is the solution for this problem.

[Read more…]

Scan your WP blog with WP scan

I am going to find WordPress Vulnerabilities on my  blog with WP scan. WPScan is a black box WordPress Security Scanner written in Ruby which attempts to find known security weaknesses within WordPress installations. Its intended use it to be for security professionals or WordPress administrators to asses the security posture of their WordPress installations. The code base is Open Source and licensed under the GPLv3.

[Read more…]

Change and Update WordPress URLS in Database

After migrating a WordPress site to a new URL either to a live production or a testing development server, the new URL strings in the mysql database need to be changed and updated in the various mysql database tables.

This method just uses the whole mysql database rather than a WordPress export/import from within, and is best suited for a straight swap. So you would copy all the WordPress files/folders to the new destination, set the correct ownership to those files,  then do the database switcheroo.

[Read more…]

Solving npm error: Cannot find module ‘are-we-there-yet’


# npm install cordova-ios

module.js:340 throw err; ^ Error: Cannot find module 'are-we-there-yet'

at Function.Module._resolveFilename (module.js:338:15) at

Function.Module._load (module.js:280:25) at Module.require

(module.js:364:17) at require (module.js:380:17) at Object.<anonymous>


at Module._compile (module.js:456:26) at Object.Module._extensions..js

(module.js:474:10) at Module.load (module.js:356:32) at

Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

[Read more…]