Skip to content

Instantly share code, notes, and snippets.

@SWBSanjeewa
SWBSanjeewa / linux extend volume.md
Last active July 30, 2018 08:02
linux extend volume

Increase disk in vmware using vcenter

enter image description here

You need to reboot the host after extending the volume, Once reboot you can see the extended volume with fdisk -l command

Create physical volume

>fdisk /dev/sda
root@csl-jsl-04-prod:~# fdisk /dev/sda  
@SWBSanjeewa
SWBSanjeewa / export_git_repo.txt
Last active July 9, 2018 07:08
Create new git repository from existing git repository
Clone original repository
Check current remote url
>git remote -v
Set new remote url
>git remote set-url origin <new_git_repo_url>
Push all branches to new repository
git push -u origin --all
@SWBSanjeewa
SWBSanjeewa / Search my gists.md
Created March 19, 2018 05:19 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files. language:html

Generate sha256 values
>sha256sum <file name>
Install docker on ubuntu
>apt install docker.io
Install docker-compose on ubuntu
>apt install docker-compose
Build Image
>docker build . -t <image_name>
Run container
@SWBSanjeewa
SWBSanjeewa / jenkins-docker-compose
Created August 22, 2017 05:53
Run jenkins master and slave using docker compose
Master - jenkins-master-docker-compose.yml
jenkins_app:
image: jenkins:2.60.1
container_name: jenkins_master
restart: always
ports:
- "80:8080"