I really like sublime, especially in my development. It is very lightweight and many features.
Today I learned something nice related to shortcut keys.
http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html
Keep on subliming... :)
Wednesday, February 28, 2018
Sunday, February 25, 2018
Setup vagrant but cannot ping other network ip address “Destination Host Unreachable”
I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they downvoted my post.
https://stackoverflow.com/questions/48899409/setup-vagrant-but-cannot-ping-other-network-ip-address-destination-host-unreach
Sad! really sad. :( curse you!!!
But anyway, I solved it in my own way. I found this article below
https://github.com/moby/moby/issues/27818
It's simply my docker IP address clashed with my company IP address because when you create the container by default it will create 172.18.xx.xx IP address. Boom! Destination unreachable.... blah blah.
So, I just create a custom docker network and when I checked it created IP address that start 172.19.xx.xx
$ docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.0 vbroker-network-v1
updated 2018-0720:
docker network create --driver=bridge --subnet=172.28.0.0/16 --gateway=172.28.5.254 vbroker-network
then in the docker-compose.yml, just added
networks:
default:
external:
name: vbroker-network
Eureka!
https://stackoverflow.com/questions/48899409/setup-vagrant-but-cannot-ping-other-network-ip-address-destination-host-unreach
Sad! really sad. :( curse you!!!
But anyway, I solved it in my own way. I found this article below
https://github.com/moby/moby/issues/27818
It's simply my docker IP address clashed with my company IP address because when you create the container by default it will create 172.18.xx.xx IP address. Boom! Destination unreachable.... blah blah.
So, I just create a custom docker network and when I checked it created IP address that start 172.19.xx.xx
$ docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.0 vbroker-network-v1
updated 2018-0720:
docker network create --driver=bridge --subnet=172.28.0.0/16 --gateway=172.28.5.254 vbroker-network
then in the docker-compose.yml, just added
networks:
default:
external:
name: vbroker-network
Eureka!
Monday, February 19, 2018
Install VirtualBox guest additions in CentOS
Open up the virtualbox centos gui
type:
su -
yum update kernel*
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
reboot
insert virtual optical disk in settings
mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run
Merci!
References:
http://nanxiao.me/en/install-virtualbox-guest-additions/
type:
su -
yum update kernel*
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
reboot
insert virtual optical disk in settings
mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run
Merci!
References:
http://nanxiao.me/en/install-virtualbox-guest-additions/
Monday, February 12, 2018
Improve command prompt console
In Linux when you open a terminal, you can also open a new tab out of it but in Windows you can't using the native command prompt. Even Powershell has no capability of opening new tab.
So I call my friend google and found out this 2 amazing tools.
1. Console - pretty simple and nice but the problem is that I don't know how to properly maximize without losing the focus of the command prompt.
2. ConEmu - this is the finest that I found so far. Pretty slick and have a lot of function. you can choose what console you liked. Recommended!!!
Thursday, February 8, 2018
the right way to write docker-compose, charing!
version: '2'
services:
odoo:
image: odoo:9
container_name: myevo_odoo
depends_on:
- db
ports:
- "8069:8069"
volumes:
- odoo-web-data:/var/lib/odoo
- ./myevo_odoo_addons:/mnt/extra-addons
environment:
- PYTHONUNBUFFERED=1
- user=odoo
- password=odoo
db:
image: postgres:9.5.10
container_name: myevo_db
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
odoo-web-data:
odoo-db-data:
services:
odoo:
image: odoo:9
container_name: myevo_odoo
depends_on:
- db
ports:
- "8069:8069"
volumes:
- odoo-web-data:/var/lib/odoo
- ./myevo_odoo_addons:/mnt/extra-addons
environment:
- PYTHONUNBUFFERED=1
- user=odoo
- password=odoo
db:
image: postgres:9.5.10
container_name: myevo_db
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
odoo-web-data:
odoo-db-data:
New to vagrant and its really cool
I always heard this name before and I thought its another technology and not relevant. So I didn't bother to learn.
But now, when I read the documentation its all about development thing, like the docker for containerization and vagrant for virtual machine.... COOL!
So, I hopped in youtube find a nice and easy to learn how to install vagrant. I found this link below.
https://www.youtube.com/watch?v=PmOMc4zfCSw&t=178s
Everything went well until I type the command. vagrant ssh, boom! permission denied. It took me at least 5 hours including lunch time break :)
Finally, I got it working. fix some permission on authentickey and enabling some settings, and blah blah blah..
https://groups.google.com/forum/#!topic/vagrant-up/mUNB182dY24
Eureka!
Finally, I can ssh without opening a real virtual machine. soooooo coooolllll!!!!
But now, when I read the documentation its all about development thing, like the docker for containerization and vagrant for virtual machine.... COOL!
So, I hopped in youtube find a nice and easy to learn how to install vagrant. I found this link below.
https://www.youtube.com/watch?v=PmOMc4zfCSw&t=178s
Everything went well until I type the command. vagrant ssh, boom! permission denied. It took me at least 5 hours including lunch time break :)
Finally, I got it working. fix some permission on authentickey and enabling some settings, and blah blah blah..
https://groups.google.com/forum/#!topic/vagrant-up/mUNB182dY24
Eureka!
Finally, I can ssh without opening a real virtual machine. soooooo coooolllll!!!!
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
One of the functionality in our system is can able to generate a report using Jasper report. We have a Jasper server setup in another ip ad...
-
https://www.liquidweb.com/kb/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts/