Для начала рассмотрим вариант самоподписанного сертификата корневого уровня.Для упрощения задачи сгенерируем сертификат, который будет содержать только необходимые параметры: Версия сертификата Серийный номер Алгоритм подписи Сведения об издателе Дата начала действия сертификата Дата окончания действия сертификата Сведения о владельце Открытый ключ Сделать это можно с помощью библиотеки Bouncy Castle, следующим образом: […]
CORS request external redirect not allowed
The CORS request was responded to by the server with an HTTP redirect to a URL on a different origin than the original request, which is not permitted during CORS requests. For example, if the page https://service.tld/fetchdata were requested, and the HTTP response is «301 Moved Permanently», «307 Temporary Redirect», […]
Install Node.js 10,12 LTS on Ubuntu 19.04/18.04/16.04 & Debian 10/9/8
Welcome to our guide on how to install Node.js 10|12 LTS on Ubuntu 18.04 / 16.04 / Debian 10/9. Node 10 became LTS version starting from Node v10.13.0. This LTS release of Node (Dubnium) will be supported until April 2020. Node.js 12 will enter LTS state on 2019-10-22 and this […]
WSL — How to run command as root?
Turns out there’s another command simply called wsl that lets you run arbitrary commands as arbitrary users: >wsl -u root -d Ubuntu-18.04 — echo «I am g$USER» I am groot N.B. you need to use separate args (instead of a string) for this one. -d is optional. You can change the default distro […]
UUID or GUID as Primary Keys? Be Careful!
I just read a post on ways to scale your database that hit home with me — the author suggests the use of UUIDs (similar to GUIDs) as the primary key (PK) of database tables. Reasons UUIDs are Good There are several reasons using a UUID as a PK would […]
Stop using git pull for deployment!
The problem You have a Git repository containing your project. You want to “deploy” that code when it changes. You’d rather not download the entire project from scratch for each deployment. The antipattern “I know, I’ll use git pull in my deployment script!” Stop doing this. Stop teaching other people […]
Ansible git add, commit and push. The missing piece in your pipeline.
As Network Automation Engineer I had to deal with complex CI/CD workflows for provisioning and maintaining multi-brand networks made up of hundreds of networking devices. In most cases (read — always) the CI/CD pipeline does template rendering, device configuration backups and collects pre and post check tests. While I could […]
How to Notify of Bamboo Deployment Status via Telegram
When developing the project, we prefer using messengers to simplify communication between team members. Which one do we use on a daily basis? This is Telegram which is considered to be the safest and most user-friendly messenger. It’s private enough, as all messages are encrypted, and compatible with all platforms. […]
Zero-downtime deployment with Docker
In this post I will share the process we went through at PerimeterX while searching for ways to speed up our main application deployment, with no downtime. Background Our environment is based, in large part, on Docker containers. We have a dynamic number of front-end CoreOS machines; each includes an […]
Error Lumen 5.7 | A Facade Root Has Not Been Set
A. The Problem This error found when i want to get data from my local mysql database. I was register mysql configuration in folder config like this, Picture 1. Registered mysql configuration in database.php file to simplify Then i go controller and call data in my database. i got error […]