• Skip to main navigation
  • Skip to main content
  • Skip to footer
  • Portfolio
    • Java
    • DevOps
    • PHP
    • Web shop
    • Web site
    • HTML5
    • Data mining
    • Games
  • Applications
  • online games
  • Services
  • Posts
    • Author: QubeDron
    • Author: SnailDog
  • Experiments
  • Contacts
  • Skip to menu toggle button

ScAlAn

Scientific Algorithms and Analytics

Tag: bash

How to create floppy image file on Mac

Task: create disk image file on Mac to use in virtualBox from directory Implementation: Use next command: hdiutil makehybrid -o…
Continue reading “How to create floppy image file on Mac”…
Posted on: January 19, 2023 Last updated on: January 19, 2023 Comments: 0 Written by: Alex

How to decode file from cp866 to utf on Mac

Task: decode text files in bash from cp866 to uff Implementation: Use next command: iconv -f cp866 -t utf-8 <…
Continue reading “How to decode file from cp866 to utf on Mac”…
Posted on: January 18, 2023 Last updated on: January 18, 2023 Comments: 0 Written by: Alex

How to open finder window with current path

Task: Open finder window with current path in the terminal Implementation: Use next command: open . Done.
Continue reading “How to open finder window with current path”…
Posted on: December 13, 2022 Last updated on: December 13, 2022 Comments: 0 Written by: Alex

How to execute SQLs in the docker Postgres db

Task: Write script to execute SQL commands in the docker Prostgers DB Script: Import dump file: Done.
Continue reading “How to execute SQLs in the docker Postgres db”…
Posted on: July 12, 2022 Last updated on: July 12, 2022 Comments: 0 Written by: Alex

How to Set all directories to 755 and all files to 644

Task: set different attributes for files and directories Solution: Done.
Continue reading “How to Set all directories to 755 and all files to 644”…
Posted on: June 29, 2022 Last updated on: June 29, 2022 Comments: 0 Written by: Alex

Monitor periodically linux ordered processes

Task: Monitor processes on the linux instance order by CPU usage Solution Use next command (displays top 15 rows): ps…
Continue reading “Monitor periodically linux ordered processes”…
Posted on: November 24, 2021 Last updated on: November 24, 2021 Comments: 0 Written by: Alex

Linux check if server exists by IP and port

Task: Check if server exists by IP and port in the Jenkins Job before connect to it by SSH in…
Continue reading “Linux check if server exists by IP and port”…
Posted on: November 2, 2021 Last updated on: November 2, 2021 Comments: 0 Written by: Alex

AWS get list of ec2 ids by beanstalk environment name

Task: Get list of EC2 instances Id(s) by beanstalk environment name Solution: envname=”wp-env” for ec2Id in $(aws elasticbeanstalk describe-environment-resources –environment-name…
Continue reading “AWS get list of ec2 ids by beanstalk environment name”…
Posted on: October 29, 2021 Last updated on: October 29, 2021 Comments: 0 Written by: Alex

Docker: How to copy file from container to local computer

Task: Copy some file from container to local computer Solution: docker cp <container>:<path><filename.ext> <localpath> Example: docker cp nginx:/var/log/mylog.log . Done.
Continue reading “Docker: How to copy file from container to local computer”…
Posted on: September 1, 2021 Last updated on: September 1, 2021 Comments: 0 Written by: Alex

How to play mp3 file from osX console

Task: Play mp3 file from osX console Implementation: Use internal player: afplay file.mp3 Useful parameter: -r <rate> – set playback…
Continue reading “How to play mp3 file from osX console”…
Posted on: June 2, 2021 Last updated on: June 2, 2021 Comments: 0 Written by: Alex

Howto monitor AWS EC2 instance status in bash script

Task: Monitor instance status in bash script Implementation: #!/bin/bash instanceID=i-… # your instance ID # Get instance status… instanceStatus=$(aws ec2…
Continue reading “Howto monitor AWS EC2 instance status in bash script”…
Posted on: January 18, 2021 Last updated on: December 24, 2020 Comments: 0 Written by: Alex

Howto get list of directories and their size in Linux

Task: Get lust of directories and their size Solution: du -sh * With hidden directories: sudo du -sh $(ls -A)…
Continue reading “Howto get list of directories and their size in Linux”…
Posted on: December 19, 2020 Last updated on: December 23, 2020 Comments: 0 Written by: Alex
1 2 3 Next page »

Recent Posts

  • Raspberry Pi Set custom display resolution
  • How to create floppy image file on Mac
  • How to decode file from cp866 to utf on Mac
  • How to remove Docker popup message to create symlink at startup OsX
  • How to open finder window with current path
  • Netbeans How to create multicursor editing
  • Prepare infrastructure, CI/CD, Support of WP site on AWS
  • Javascript: Configure web page to open it in fullscreen mode
  • Netbeans How to select vertical blocks
  • Game: classical tetris game with 2 players at the same screen
  • Java: dbUnit add support of jsonb type in the H2 mem db with Postgres mode
  • Game: classical tetris game
  • Java: Tests custom JSON comparator

What’s ScAlAn?

Main activity of our co-working team is service to develop and support IT solutions.

Can we help?

We can offer professional development and support for your business.

You have an idea?
You want to make some improvement?
You want to implement?

Contacts

Email: info@scalan.com
Phone: +38 (067) 573-24-19
Skype: scalan75
© 2023 ScAlAn | Using Modern WordPress theme. | Back to top ↑