How to expand partition size on Raspberry Pi Ubuntu disk Task: expand root partition. After writing image on sd card I see 3.8GB partition size. I have 14GB sd card.… Continue reading “How to expand partition size on Raspberry Pi Ubuntu disk”…
How to disable parent page scrolling I have iframe html5 game with arrow keys control. Task is to disable parent page scrolling when arrow keys pressed.… Continue reading “How to disable parent page scrolling”…
How to disable run multiple cron jobs on different EC2 instances Task: Disable run multiple cron jobs on different EC2 instances with common EFS directory Implementation Run bash script as a… Continue reading “How to disable run multiple cron jobs on different EC2 instances”…
Yii get user’s attributes Task: get password from user Object: app\models\User#1( => null => null => null … => [… Continue reading “Yii get user’s attributes”…
Amazon Linux + Apache + phpFPM Task: Prepare environment with Apache and phpFPM Implementation: install apache: yum install httpd install php-fpm: yum install php-fpm add autostart:… Continue reading “Amazon Linux + Apache + phpFPM”…
CLI RPN Calculator Task: Implement a command-line reverse polish notation (RPN) calculator using a language that you know well. Language: Java Java command… Continue reading “CLI RPN Calculator”…
How to make dump of Elasticsearch index Task: Create dump of index in JSON format Steps: install npminstall elasticdump tools:npm install elastic dump -gcommand to make a… Continue reading “How to make dump of Elasticsearch index”…
Arduino fast sin function Task: Create fast function to get math sinus. One of implementation – create array for each degree values: float sin… Continue reading “Arduino fast sin function”…
HowTo tar with process symlink directory files Task: compress directory with all symlink files. Use command: # tar -cvhf backup.tar /backupdirectory Result – tar.gz file with all… Continue reading “HowTo tar with process symlink directory files”…
Docker: Setup MySQL master-slave Task: create docker-compose environment to run MySQL master and slave servers. Implementation: docker-compose.yml file: version: ‘2’ services: mysqldb-master: image: mysql:5.7… Continue reading “Docker: Setup MySQL master-slave”…
Setup nginx+php7.2fpm Ubuntu 18.04 Install NGINX # Install software-properties-common package to give us add-apt-repository package sudo apt-get install -y software-properties-common # Install latest nginx… Continue reading “Setup nginx+php7.2fpm Ubuntu 18.04”…
Get all files modified in last 5 days in a directory with subdirectories Task: Prepare list of files with path add created datetime; Implementation use command in the linux or Mac OS: find… Continue reading “Get all files modified in last 5 days in a directory with subdirectories”…