Debugging site in chrome from android device

Download platform tools from here — Run ADB with command

Configure your phone according to this article — (for my specific it is Connect your phone to the computer with USB cable. Follow instructions from here — When finished, stop ADB and turn off all the developer features on your …

Read more

Make your bot for telegram using go

It’s really not that difficult. Here are the docs: Here is a simple library in go for telegram — (too simple, from my point of view, does not cover all functionality, but okay). And here is a skeletton for making your bots if you want it as just standalone binary —

Letsencrypt — easy way

Now you can install certbot-nginx and it will do everything for you.

And then

If it does not work, try this sudo certbot -d -d and then select nginx in a prompt.

Install postgresql 11 on CentOs7

Just what to do, no discussion.

Postgres in docker: random «unique violation» errors

While running postgres in docker (for development, of course), from time to time I just run into errors like «Duplicate Key Value Violates Unique Constraint». I found the solution (thanks to this answer, for sure — if you have a table called «[table]», just do this

Gitlab-ci: build go app with docker as a docker image

Preparations [TO BE UPDATED LATER] My gitlab-ci.yml

My Dockerfile

Pulling from your private registry Create deploy token as described here. After that, you can do this:

Useful links: (full description of gitlab-ci.yml) Somewhat useful: (it says to do sudo usermod -aG docker …

Read more

Automark messages as read in all folders, except inbox

Well, you can do it with Google Apps Scripts. Here is how you can do this — I decided not to touch the Spam folder together with Inbox.

Free weather APIs — old, odd, but works to be discovered to be discovered to be discovered, looks abandoned works, but keys are for valid for 3 months only died (

How to split disk pool on synology nas

I have a Synology NAS DS 218+. When I bought it, I decided to make a RAID1 pool from two disks. But after time passed, I realized that I don’t have enough space to store all files. And I decided to make two separate disks instead of one RAID1. RAID0 is worse for me comparing …

Read more

Another cool article on using PostgreSQL+pgBouncer with go

Extremely interesting and very practical talk about problems occurring with go+pgBouncer (in Russian, sorry). And a video on that: