Tag Archives: linux

Let’s Encrypt SSL certificate without root or sudo privileges

Five days ago we had to renew a number of SSL certificates using free Let’s Encrypt SSL authority to a few Apache servers which were installed in Jelastic PaaS environment. The Apache servers were installed in an environment where: We … Continue reading

Posted in Apache, HTTP, Linux | Tagged , , , , , , , , , , , , , | 2 Comments

Migrate a Gitlab Docker container from version 8.0.4 to 8.2.0

Update 2016-05-13: The following procedure works perfectly for migrations from version 8.0.4 to 8.7.5 A few days ago, I had to migrate a Gitlab instance installed in Docker from version 8.04 to 8.2.0. I followed the exact steps described in … Continue reading

Posted in Docker, Git, Gitlab, Linux, Source control | Tagged , , , , , , | 2 Comments

JSON remove new lines via Linux and use it as string variable and as param in cURL POST request

Today I had to parse a JSON response in a JUnit test and then reuse it in a cURL command line call. Unfortunately I could not read the JSON response from a file or from an HTTP request, so I … Continue reading

Posted in Java, Linux, Mint, Ubuntu | Tagged , , , , , , , | Leave a comment

Solr fix corrupted index using Lucene

A few days ago, a Solr server in our SolrCloud installation stopped unexpectedly. After examining solr.log file I spotted that it could not start again because index.20140510031827076 file was corrupted. After some searching I found this Lucidworks article which described … Continue reading

Posted in Apache, Java, Linux, Lucene, Solr, Windows | Tagged , , , , , , , , , , , , | 1 Comment

Linux: Extract audio and video using ffmpeg

Today I had some mp4 video files and I wanted to extract the audio and video into separate files. So to do that you can do the following: Extract audio from video file and convert it to mp3 To accomplish … Continue reading

Posted in Linux, Uncategorized | Tagged , , , , , , , | Leave a comment

Read SMS directly from Sqlite database in Android

Today I wanted to extract the SMS content out of the android SMS application SQLite database using ADB. NOTE: The whole procedure was tested on a rooted phone running Cyanogenmod Android. It may not work on unrooted phones So I … Continue reading

Posted in Android, Databases, Linux, SQLite | Tagged , , , , , , , , , , , , | 28 Comments

Linux get hard disk statistics using Python

Today I wanted to collect disk usage information and send them to a remote server script. I used df command to collect disk usage information and Python to send them to a remote server. Note that the remote server script … Continue reading

Posted in Linux, Python, Ubuntu | Tagged , , , , , , , | Leave a comment