Skip to content

Instantly share code, notes, and snippets.

View SantiagoTorres's full-sized avatar

Santiago Torres SantiagoTorres

View GitHub Profile
@denisse-dev
denisse-dev / ASA-202002-11
Last active March 7, 2020 23:58
ASA-202002-11
Arch Linux Security Advisory ASA-202002-11
==========================================
Severity: High
Date : 2020-02-20
CVE-ID : CVE-2020-9283
Package : golang-golang-x-crypto
Type : denial of service
Remote : Yes
Link :
@ElDeveloper
ElDeveloper / gist:4206016
Last active October 13, 2015 13:57
Current git branch in your bash prompt

Show the time, the current folder where you are working and the current branch if working on a git repository. Output looks like 19:41:40 Documents@master$ . If using an xterm-256 terminal emulator, hour should be green, cwd white and the branch red.

function egit (){                                                               
    function get_git_branch () {                                                
        command git rev-parse --abbrev-ref HEAD 2> /dev/null                    
    }                                                                           
    # git specific usage for branching                                          
    function branch_separator () {                                              
        if [[ -n $(get_git_branch) ]]