Skip to content

Instantly share code, notes, and snippets.

View juansedo's full-sized avatar
💻
Doing my best!

Juan Sebastián Díaz Osorio juansedo

💻
Doing my best!
  • Universidad EAFIT
  • Salgar, Antioquia, Colombia
View GitHub Profile
@juansedo
juansedo / README.md
Created August 17, 2021 05:50
My comment about .bashrc in **justintv** post (https://gist.github.com/justintv/168835)

I created my own version for displaying the git branch in prompt starting from @vankasteelj reply (wrote on Mar 7, 2016).

image

It is a simple solution that includes branch status color. Take a look:

parse_git_bg() {
  if [[ $(git status -s 2> /dev/null) ]]; then
 echo -e "\033[0;31m"
@juansedo
juansedo / description.md
Created October 12, 2021 21:14
Port Binding WSL2 Instance on Windows 10 via PowerShell

Install net-tools on WSL2:

sudo apt install net-tools

File network.ps1 on Windows:

If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {   
@juansedo
juansedo / README.md
Last active January 3, 2022 04:38
GPG Key configuration for dummies

Description

This gist will help you to create your first GPG key, as a summary from some pages. I hope to help you a lot with this configuration for the Verified icon in your commits and tags. Please, comment this gist if you have any problem to solve it and improve this guide.

Let's begin:

Short way

Summary (in Ubuntu)