Wednesday, June 12, 2019

Setup SSH Git for Cloning Source from Azure Devops

Hi guys,

I wanna share the steps that I did in setting up SSH for Git.
So, I want to clone source from Azure Devops (you can imagine it as Github) via ssh.

Create and Add SSH Key

1. Check whether you already have ssh key or not
ls -al ~/.ssh

If belows file aren't shown, it means you don't have ssh key:
id_rsa --> this is your private key
id_rsa.pub --> this is your public key


2. Create new key
ssh-keygen

3. Login into Azure Devops account and Click your picture ID

4. Choose Security > SSH Public Keys > Add.
Fill in field "Description" and copy your id_rsa.pub content to field "Field Data"

5. Click Save

6. ssh-add from terminal

Clone source with SSH

1. Copy the ssh url from the repository/source that you want to clone
2. Open terminal in your leptop, click
git clone [repository ssh url]


That's all, good luck :D

Reference: https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops

Monday, June 10, 2019

Extend Partition After Installing Dual Boot


Hi guys,

Last time, I installed dual boot Windows 10 and Ubuntu 16.04 in my leptop.
I allocated only 25GB for my Ubuntu but then I need to allocate more spaces.
So what I did is extend my Ubuntu partition via my Windows. Below are the steps

1. Download MiniTool Partition wizard
2. Free some spaces that you need. ex: 300GB. This free spaces will indicated as "Unallocated"
3. Select your Ubuntu partition (mine is dev/sda3) Note: This Ubuntu partition need to be adjacent to "Unallocated", otherwise you can not "merge" these 2 partitions.

  • If your Ubuntu partition is not adjacent to "Unallocated". Make it be adjacent first:
    • Backup your data
    • Use your Ubuntu OS and install GParted if it is'nt installed yet
    • Drag all necessary partition to make these 2 partitions be adjacent and "Unallocated" to the most bottom.

    • In my case I moved dev/sda2 to the left. 



    • Then dev/sda3 (Ubuntu partition) to the left. 

    • Now dev/sda3 is adjacent to "Unallocated". Grow dev/sda3 from 25GB to merge dev/sda3 with "Unallocated"



4. Select your Ubuntu partition and Click Move/Resize Partition.
Extend Ubuntu partition by dragging handle to the Extend direction.
5. Click Apply



Reference:
how to extend partition: https://www.partitionwizard.com/resizepartition/resize-partition-ubuntu.html
how to make partition so it will be adjacent: https://www.partitionwizard.com/resizepartition/how-to-merge-unallocated-spaces.html

Monday, May 27, 2019

Error docker-compose up

Hi guys,

If you are trying to run docker-compose up -d but got below error:
TypeError: docopt() got an unexpected keyword argument 'option_first'
or
ModuleNotFoundError: No Module named 'docker.errors'

try to run below comment:
1. pip uninstall docker-py 
2. pip install -U docker-compose
3. try run docker-compose up -d in new terminal

if it's still not working, try to run below comment:
1. pip uninstall docker 
2. pip uninstall docker-py
3. pip uninstall docker-compose
4. pip install docker-compose
5. try run docker-compose up -d in new terminal

Below is full error when can't perform docker-compose up




or


Reference:



Tuesday, May 21, 2019

ERROR: No matching distribution found for Django

Hi guys,

If you are installing requirements.txt using command
pip install -r requirements.txt and got error below:

ERROR: No matching distributin found for Django==2.0.0 (from -r requirements.txt (line 1))
try to check pip version you use by using command pip --version

If it is showing that you use python version 2.x, then you need to use python 3.x, because Django is not supported by python 2.x
pip3 install -r requirements.txt

Full error when trying to install requirements.txt using python 2.x







Hope this help
Regards,

Monday, April 29, 2019

Welcome 2019, Life as Coder

Hi Guys, Welcome to my blog.
It's been 3 years since my last post. Been busy with college world.
Since last 2016, I have been working as programmer. 
Start from this year, I will focus posting article related to programming and IT. 
Now I am preparing for it so please keep stay tuned guys. 
Please contact me if you have any request or question related programming :D

Warm Regards,
Shabrina

Followers