Sunday, December 31, 2017
How to install samba in centos
http://www.techotopia.com/index.php/Sharing_Files_between_CentOS_6_and_Windows_Systems_with_Samba
https://www.cyberciti.biz/faq/unix-create-user-account/
found this , i think this is the right one
https://www.youtube.com/watch?v=EYVO4kEQomE
https://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
How to install GIT in centos
yum install git
Reference:
https://www.rosehosting.com/blog/how-to-install-git-on-centos-7/
Reference:
https://www.rosehosting.com/blog/how-to-install-git-on-centos-7/
Saturday, December 30, 2017
How to install SSH server in linux
CentOS
https://tecadmin.net/install-or-update-openssh-server-centos-rhel-and-fedora/
https://tecadmin.net/install-or-update-openssh-server-centos-rhel-and-fedora/
No internet connection in fresh install CentOs
ip addr show
ifup enp0s3
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
https://www.youtube.com/watch?v=QeMCnkq9W10
ifup enp0s3
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
https://www.youtube.com/watch?v=QeMCnkq9W10
Saturday, December 23, 2017
How to list specific column name in the table
SELECT * FROM information_schema.columns WHERE table_catalog = 'myevo' AND table_name = 'purchase_order' and column_name = 'batch_id'
sorted
SELECT * FROM information_schema.columns WHERE table_catalog = 'vbroker20-beta1' AND table_name = 'vb_trade_tran' order by column_name
sorted
SELECT * FROM information_schema.columns WHERE table_catalog = 'vbroker20-beta1' AND table_name = 'vb_trade_tran' order by column_name
Tuesday, December 19, 2017
Docker Networking
Lately I have a problem and yet to be solve. It's related in docker networking I guess.
When I try to run Odoo connect to Postgres using the docker-compose it will run successfully but the problem here is that I couldn't longer connected to my network ip address. If I connect our Odoo UAT as 172.18.6.180:8069 it failed as in FAILED!
After reading a LOT of article about the issue still I can't figure it out. But, I learn a few things about the docker network. Some of it , like below list.
1. Talk about bridge network - https://github.com/docker/labs/blob/master/networking/A2-bridge-networking.md
When I try to run Odoo connect to Postgres using the docker-compose it will run successfully but the problem here is that I couldn't longer connected to my network ip address. If I connect our Odoo UAT as 172.18.6.180:8069 it failed as in FAILED!
After reading a LOT of article about the issue still I can't figure it out. But, I learn a few things about the docker network. Some of it , like below list.
1. Talk about bridge network - https://github.com/docker/labs/blob/master/networking/A2-bridge-networking.md
Python libraries
Running API from python code needs this libraries.
installing in centos
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
sudo pip install web.py
sudo pip install pyt
sudo pip install python-dateutil
sudo pip install tzlocal
sudo pip install pyyaml
installing in ubuntu, need to install the pip first.
$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv
installing in centos
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
sudo pip install web.py
sudo pip install pyt
sudo pip install python-dateutil
sudo pip install tzlocal
sudo pip install pyyaml
installing in ubuntu, need to install the pip first.
$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv
Monday, December 18, 2017
How to install Sublime in ubuntu
apt
Install the GPG key:wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https
Select the channel to use:
- Stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
- Dev
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
How to install docker-compose in ubuntu
sudo apt-get -y install python-pip
sudo pip install docker-compose
Sunday, December 17, 2017
GIT cheatsheet
I am curious about this GIT ever since but I don't have any actual encounter to use GIT in my development until now. I have a freelance job which use GIT as source control.
This project is an odoo development.
I have been struggling to commit my codes as I'm not familiar how to use GIT but luckily I understand a little bit more now.
With the help of my friend Google. There are some tutorial and sites that is very helpful to my knowledge.
very slick site and clear to understand
http://rogerdudler.github.io/git-guide/
another very good site to understand more about merging
https://confluence.atlassian.com/bitbucket/use-a-git-branch-to-merge-a-file-681902555.html
# clone a remote repository
git clone https://skyguyver@bitbucket.org/skyguyver/malphi.git
# update local repository
git pull origin master
# to see any changes
git status
# to check the difference
git diff
# last 1 entry in the log
git log -1
# to move to staging
git add <file>
# to commit
git commit -m "some comments here"
# show commit history
git log
git show 81a00
# revert committed
git revert 81a00
# delete irreversible
# git reset --hard 2e75
# reset and delete current merge
git reset --hard HEAD
# set usename and email
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
I found this more useful with an image to understand more about GIT
https://developer.atlassian.com/blog/2014/12/pull-request-merge-strategies-the-great-debate/
This project is an odoo development.
I have been struggling to commit my codes as I'm not familiar how to use GIT but luckily I understand a little bit more now.
With the help of my friend Google. There are some tutorial and sites that is very helpful to my knowledge.
very slick site and clear to understand
http://rogerdudler.github.io/git-guide/
another very good site to understand more about merging
https://confluence.atlassian.com/bitbucket/use-a-git-branch-to-merge-a-file-681902555.html
# clone a remote repository
git clone https://skyguyver@bitbucket.org/skyguyver/malphi.git
# update local repository
git pull origin master
# to see any changes
git status
# to check the difference
git diff
# last 1 entry in the log
git log -1
# to move to staging
git add <file>
# to commit
git commit -m "some comments here"
# show commit history
git log
git show 81a00
# revert committed
git revert 81a00
# delete irreversible
# git reset --hard 2e75
# reset and delete current merge
git reset --hard HEAD
# set usename and email
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
I found this more useful with an image to understand more about GIT
https://developer.atlassian.com/blog/2014/12/pull-request-merge-strategies-the-great-debate/
Wednesday, December 6, 2017
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/