Author Archives: yogene

Ubuntu network configuration

Initial setup. netplan. This is a nice explanation from linuxhint.ca View Current IP Address To view the current IP address of your machine, you can use either of the following commands: $ ip a Or $ ip addr Running either of the above … Continue reading

Posted in debian/ubuntu, linux | Leave a comment

RU-EN Business, Financial and Juristic translation

Russian – Legal English Here is a nice collection of the tips concerning: Home site:https://lim-english.com/ Legal english (tips and coursebooks list)https://lim-english.com/posts/anglijskij-dlya-yuristov/ Property formshttps://lim-english.com/posts/ooo-i-drugie-formy-sobstvennosti/ INN (ITN) and more legal abbreviationshttps://lim-english.com/posts/inn-i-drugie-sokrashcheniya/

Posted in English, Languages | Leave a comment

postgresql installation & setup

Here should be no trick concerning the subject, but I’ve been stuck for a day with it. OK, having Oracle Linux 8 (CentOS 8), trying to install the postgresql: sudo dnf install postgresql The first surprise: by defauld the ancient … Continue reading

Posted in linux, Oracle/CentOS/RedHat, postgresql | Leave a comment

Basic source/headers structure in c/c++

Just as another cheatsheet, took from here, as usually though. If you want to use a function in multiple source files (or rather, translation units), then you place a function declaration (i.e. a function prototype) in the header file, and the definition in one source … Continue reading

Posted in c, cpp, programming | Leave a comment

C dot and arrow (. / ->) – this is what I have to perceive

Arrow is just the dot version while accessing elements of a struct/class that is a pointer instead of a reference. Why parenthesis are in use? . is standard member access operator that has a higher precedence than * pointer operator. To make the … Continue reading

Posted in c, programming | Leave a comment

Linux swap partition setup

This may be useful in some cases of change your mind of use of hibernation or missing swap partition during OS setup ocassionally or deliberately (e.g. in the case of Ubuntu LTS Server installation the mounting of swap partition leads … Continue reading

Posted in linux | Leave a comment

Preparing Windows disk for Linux installation

Usually it’s to be done under Linux setup shell console (open command shell from installation environment) or it may be conducted via setup-GUI (not supposed in present topic). Resize NTFS filesystem: ntfsresize /dev/<Windows partition (e.g. sda1)> -s <NEW SIZE (e.g. … Continue reading

Posted in linux | Leave a comment

PHP+nginx setup tricks

General notes: The trial follows the way I’ve discovered the solutions of the problem. Following it directly reproduces most of my mistakes and quests. If the final solution is necessary, it’s recommended to pre-read the article before you begin All … Continue reading

Posted in linux, PHP, web | Leave a comment

Docker cheatsheet

Installation: Official guide: https://docs.docker.com/engine/install Using dnf instead of yum (RH7/CO7/OL7) and dnf configure-manager instead of yum-configure-manager. Pull image / run container: sudo docker pull <image name> sudo docker run [opts] <repository>/<image name>:<version> or latest useful [opts]: –name <name> – run … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment

Linux repositories & package management

yum – old (up to CentOS 7) dnf – new (since CentOS 8) dnf dnf update dnf upgrade dnf install <package name> dnf remove <package name> dnf list <package name> dnf module list <module name> dnf module reset <module name> … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment