Skip to content

Instantly share code, notes, and snippets.

View Dakad's full-sized avatar
🐦

David A. K. Ad. Dakad

🐦
View GitHub Profile
@Dakad
Dakad / .gitconfig
Last active February 4, 2018 21:01
Sample of my git config (Example: .gitconfig)
# Commit early, commit often: it is a bad idea to do a lot of work without committing.
[user]
name = <Github Username>
email = <Github Email>
# signingkey = <GPGKEYIDHERE>
[commit]
# gpgsign = true
[push]
default = simple
@Dakad
Dakad / regex-on-hex-color
Last active July 14, 2017 05:17
Regex on Hex Color
/#([a-fA-F0-9]{3}){1,2}\b/
/#([a-f0-9]{3}){1,2}\b/i
@Dakad
Dakad / .bash_aliases
Last active July 31, 2017 22:42
My bash_aliases
#==============================
#
# ALIASES
#
#==============================
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'