Author Archives: cmanios

About cmanios

programming

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

Nginx https reverse proxy to WordPress with Apache, http and different port

Today I had to hide a WordPress 3.8.1 blog behind an Nginx reverse proxy configured to use only https. Nginx was behind an external firewall which forwarded https://bob.org:8080/blog to Nginx using https (port 4443). The difficulty was that whe WordPress … Continue reading

Posted in Linux, Nginx, Server | Tagged , , , , , , , , | 17 Comments

Export Untracked, modified, moved and deleted files from a Git repository to archive

Today I wanted to export to a .tar.gz archive all unstracked (new) , modified and deleted files from a Git repository. After some searching, I found a StackOverflow post which helped a lot. So after you cd inside your repository … Continue reading

Posted in Git, Linux, Source control | Tagged , , , , , , , , , , , | Leave a comment