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”…
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”…
MP3 title charset change from CP1251 to UTF8 I have mp3 files with title in Windows CP1251 charset. When I copy them to MP3 player or play them… Continue reading “MP3 title charset change from CP1251 to UTF8”…
Extract all .gz in a directory- Linux Next command helps to do that: find . -name ‘*.gz’ -exec gunzip ‘{}’ \; Note: source .gz files will be… Continue reading “Extract all .gz in a directory- Linux”…
ls – How to sort files by date… How to display newer files at the bottom of the ls output in Linux or Mac: ls -latr lLong list with more… Continue reading “ls – How to sort files by date…”…
How to migrate GIT repository from bitbucket to AWS CodeCommit Steps: Get code from bitbucket: git clone –bare https://<username>@bitbucket.org/<userdir>/<project>.git cd <project>.git git push –mirror ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/<project> Continue reading “How to migrate GIT repository from bitbucket to AWS CodeCommit”…
Ubuntu allow sudo su without password Steps: Modify /etc/sudoers: from: sudo ALL=(ALL:ALL) ALL to: sudo ALL=(ALL:ALL) NOPASSWD:ALL Continue reading “Ubuntu allow sudo su without password”…
Docker – copy file from container to host In order to copy a file from a container to the host, you can use the command:Continue reading “Docker – copy file from container to host”…