The Official Site of the PHP Developer and DevOps Engineer Ray Icemont
About me and the site
Hi, my name is Ray (Yuri) Icemont. I'm a PHP Backend Developer, DevOps Engineer and Linux enthusiast.
I have more than 15 years of experience in PHP development, as well as design and maintenance of IT infrastructure, including high-load projects requiring high availability.
I am an introvert, which is probably why I haven't had a personal website or any social media accounts all this time. But the internet is not only a "socialization medium" but also an "institution of socialization". And so with the beginning of a new stage in my life I got a GitHub account, then a LinkedIn account and now even a personal website. I sincerely hope it benefits both me and the society.
This site is powered by a mini CMS written by me in PHP. The third party components are Twig for templating and gettext for internationalization. For the frontend (not my forte) Bootstrap is used.
IT and Development
In the PHP category I will publish articles about PHP, about scripts, various solutions, notes, etc. In the Linux category I plan to post publications, tutorials and share my personal experience. As my native language is Russian, firstly all publications will be in Russian, then later I will translate them into English.
My hobby is designing and assembling various electronic devices. I have been interested in electronics and circuitry since I was a child, from the age of 6. At first I flipped through the pages of popular publications on radio engineering, and then, after learning to use the soldering iron, I assembled simple devices according to circuit diagrams published in these magazines and books.
Docker 13:09 / 15.07.2021
The official Nextcloud image for Docker already includes options to automatically obtain a certificate from Let's Encrypt – to do this, just define environment variables LETSENCRYPT_HOST and LETSENCRYPT_EMAIL in the Docker Compose file. But this is not possible for the PHP-FPM version of the image for obvious reasons. Of course, you can solve everything with the container proxy, for example nginx-proxy, but if you need to get Nextcloud up and running quickly just to get acquainted with its functionality and SSL is a must for most of the functionality, then perhaps a simpler solution (but maybe not quite right).
Here is my solution for raising a fully functional Nextcloud instance on Docker, based on an image with PHP-FPM and with SSL from Let's Encrypt.
Snippets 20:09 / 05.07.2021
Recently in one of the chats a task on ImageMagick was discussed, which I found interesting, due to the fact that it was considered to be difficult and there were no ready similar solutions.
Briefly, the task was as follows: you need to write a script that will use ImageMagick to add a footer to a photo or image. And this footer should not overlap the original image, but be added at the bottom by the width of the processed image. The footer (black) should have a logo (static) and two labels (white) with the ability to choose any fonts for these labels.
I've never had any experience with ImageMagick for PHP before, as for my tasks I was satisfied with the capabilities of GD library. I wanted to solve this task, and with the ready solution I'm sharing in this publication.
My scripts 15:51 / 05.07.2021
You can read more about CurlWrapper, a small and simple OOP wrapper for PHP cURL with no overhead, in this publication.
The new version (v1.1.0) adds functionality for setting basic configuration parameters:
My scripts 16:00 / 10.06.2021
About CurlWrapper library
CurlWrapper – the simplest OOP wrapper for PHP cURL with no overhead.
Designed to test and work with simple RestFull and JSON APIs and execute simple queries.
No advanced settings, just a minimum set of options needed to initialize cURL and perform simple queries with different headers. Writing similar code can be done in minutes, but sometimes you want to have a ready-made library for simple tests so you don't waste time.
- License: MIT
- GitHub URL: https://github.com/Icemont/CurlWrapper