Run Terraform With AWS Profile
export AWS_PROFILE=profile_name
export AWS_PROFILE=profile_name
What is git submodule? It is another git project inside your git repository. If you working on multiple git projects but need them in one repository instead. You will be happy to setup git submodule. So here I have two git repositories for example: https://github.com/muffat/repo-a https://github.com/muffat/repo-b And since I’m updating the repo-b frequently, I want … Read more
ffmpeg -i <input-file> -ac 2 -f wav <output-file>
Simple trick to run the nginx with no server_name. server { listen 80 default_server; server_name _; location / { root /path/to/app; index index.php; try_files $uri $uri/ /index.php?q=$uri&$args; location ~* \.php { try_files $uri =404; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; } } }
sudo apt update sudo apt install docker.io
Vim is one of the tool that must have in any unix like system. One of the reason for using vim is the customization and the plugins that can be used depending on the needs. To install plugins on vim, I’m using vim-plugin from junegunn/vim-plug. Check vim version In fedora vim already installed, but you might … Read more
Installing rpm package can be tricky, sometimes dependecies that required are not met. I’ve experienced this when installing TeamViewer for fedora 28. Here’s just another snippet to installing the TeamViewer on fedora 28 with nice and easy. Download teamviewer from the source: $ wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm Install the dependencies and the rpm target: $ sudo dnf … Read more
Simple trick to setup simple command to spawn screenshot utility using scrot: $ sudo apt-get install scrot $ sudo touch /usr/bin/sel $ sudo chmod +x /usr/bin/sel $ vim /usr/bin/sel #!/bin/bash scrot -s -e ‘mv $f ~/Pictures/’
It happens when I tried to delete the NS that created by ECS service directory, then this error shows up: The resource hostedzone/Z1OWcan only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:us-east-1:561660628307:namespace/ns-c6lvlchj2gbcsobc) If there are services hanging around the in the NS you can’t delete then you could try: $ aws servicediscovery list-services $ aws servicediscovery delete-service –id= … Read more
Sometimes pip can be problematic, after upgrade the pip version, then you call it afterwards, it will fail somehow. $ pip install –user –upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-8.1.1 You are using pip version 8.1.1, however version 10.0.1 is available. You should consider upgrading via the ‘pip … Read more