Skip to content

Instantly share code, notes, and snippets.

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
Last active Jan 3, 2022
GPG Key configuration for dummies
View README.md

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)

@juansedo
juansedo / description.md
Created Oct 12, 2021
Port Binding WSL2 Instance on Windows 10 via PowerShell
View description.md

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
Created Aug 17, 2021
My comment about .bashrc in **justintv** post (https://gist.github.com/justintv/168835)
View README.md

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"