Skip to main content


Cheat Sheet

Bash: echo $? - exit status of last command (0 no error) ' - Single quote removes meaning special meaning of special character. find /qwe -type f -iname *.js -exec cp --parents -t /tmp/ {} + -- find all js files and copy with parent directory ystemctl set-default (ls -l /lib/systemd/system/runlevel*) -- set runlevel echo <password> | sudo -S for i in t@01 st@02 ba@sta03;do ssh -o RequestTTY=true $i "sudo -l";done -- allow tty present VIM: :r! sed -n '16,812 p' < input_file.txt -- copy line range from input_file :1,10d -- delete line from 1 to 10 :se nu -- show line numbers Apache: Redirection in Apache (By default, the Redirect directive establishes a 302, or temporary, redirect.): URL: <VirtualHost *:80> ServerName Redirect 301 /oldlocation </VirtualHo
Recent posts


  To share this code with your teammates, you’ll want to create a shared Git repository that you can all access. One way to do this is to use GitHub. Head over to, create an account if you don’t have one already, and create a new repository. Configure your local Git repository to use the new GitHub repository as a remote endpoint named origin as follows: git remote add origin<YOUR_USERNAME>/<YOUR_REPO_NAME>.git git push origin main git pull origin main # Create local repo server #git init --bare  change remote repo url: git remote -v # View existing remotes # origin (fetch) # origin (push) git remote set-url origin # Change the 'origin' remote's URL git remote -v # Verify new remote URL # origin (fetch) # origin (push) Git reset & revert: # restore and re

Euro trip. Chapter1: Bucovice-Prague-Nuremberg-Leipzig-Dresden

    Begin to write something every time is complicated for me. Any way i should start. So this trip was somehow unplanned. Where to go, stay ... everything planned on way.    Trip started 2nd of July from Bucovice to Prague. Made reservation on "Hotel Globus" for one night. After check-inn we went to centre walk, see landmarks  of Prague. Additional we have a lunch at asian cafe.     3rd July. Next our plan was drove from Prague to Munich stay one night in camp hostel, visit Munich Zoo. But plans changed on way and we decided drove first Nuremberg to see my friend. Made reservation at "Azimut Hotel". As we arrived earlier check-inn was after 3PM, parked car and we decided not to waste time go and see Nuremberg. We have a lunch some soup and german sausage. And also for 30 euros we took city tour by bus about 2 hour. We saw almost whole city with information (recommended). Evening we meet my friend have a lunch thanks special thanks Fagani. Before driving to Leipzig 

Salt -- cheat sheet

      The Salt system is a Python-based open-source remote execution framework for configuration management, automation, provisioning and orchestration.  A basic Salt implementation consists of a Salt master managing one or more Salt minions.

AWS info

Virtual Servers ● EC2- the classic, the original. Virtual servers on shared hardware similar to VMWare. General purpose computing. ● Associated services: Auto Scaling Groups, Elastic Load Balancers ● Container services:○ECS - Elastic Container Service ● EKS - Elastic Kubernetes Service ● Fargate - Serverless Containers ● Lightsail - actually EC2's but simple as heck Code As A Service ● Lambda - executes individual functions (in a variety of programming languages) on an ad-hoc on-demand basis and you pay by the millisecond of elapsed compute time○Go, Rust, Java, .NET, Python, Node, Ruby, or custom runtimes ● The glue that holds AWS together○Dozens of other services have “hooks” such that “when XYZ event occurs, run this Lambda” ● Little code snippets can augment your S3 buckets, Cognito user pools, SQS queues, and so many more Bundling Services That Deploy Applications With Compute Under The Hood ● Elastic Beanstalk - upload application packages and it provisions Elastic Load Bala

Service Hosting - KVM documentation

Host System Requirements: Minimum host system requirements 6 GB free disk space. 2 GB RAM. Recommended system requirements One core or thread for each virtualized CPU and one for the host. 2 GB of RAM, plus additional RAM for virtual machines. 6 GB disk space for the host, plus the required disk space for the virtual machine(s). KVM Hypervisor Requirements: an Intel processor with the Intel VT-x and Intel 64 virtualization extensions for x86-based systems; or an AMD processor with the AMD-V and the AMD64 virtualization extensions. Installing the Virtualization Packages: To use virtualization on OL7, at minimum, you need to install the following packages: # yum install qemu-kvm libvirt qemu-kvm: This package provides the user-level KVM emulator and facilitates communication between hosts and guest virtual machines. qemu-img: This package provides disk management for guest virtual machines. The qemu-img package is installed as a dependency of the qemu-kvm package. libvirt: