Skip to content

Instantly share code, notes, and snippets.

David Navia davidnaviaweb

  • David Navia
  • Madrid, SPAIN
Block or report user

Report or block davidnaviaweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidnaviaweb
davidnaviaweb / .gitconfig
Created Sep 6, 2019
A bunch of useful git shorthand commands.
View .gitconfig
## Logs ##
# pretty log #
l = log --pretty=format:"%C(Yellow)%H\\ %C(reset)%ad\\ %C(Green)%cr%C(reset)%x09\\ %Cred%d\\ %C(Cyan)%an:\\ %C(reset)%s" --decorate --date=format:%c
# tree log #
lg = log --graph --oneline --decorate --all
## Add ##
# add #
a = add
# add all indexed modified files #
@davidnaviaweb
davidnaviaweb / .gitconfig
Last active Oct 11, 2018
Git aliases for .gitconfig
View .gitconfig
[alias]
# logs
l = log --pretty=format:"%C(Yellow)%H\\ %C(reset)%ad\\ %C(Green)%cr%C(reset)%x09\\ %Cred%d\\ %C(Cyan)%an:\\ %C(reset)%s" --decorate --date=format:%c
lg= log --graph --oneline --decorate --all
# add
a = add
au = add -u
ap = add -p
aa = add .
@davidnaviaweb
davidnaviaweb / .gitconfig
Last active Oct 11, 2018
First part of .gitconfig
View .gitconfig
[push]
default = simple
[user]
email = davidnaviamatas@gmail.com
name = David Navia
@davidnaviaweb
davidnaviaweb / .bash_profile
Created Oct 11, 2018
Git alias for .bash_profile
View .bash_profile
# ----------------------
# Git Aliases
# ----------------------
alias g='git'
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
@davidnaviaweb
davidnaviaweb / functions.php
Created Oct 1, 2016
WordPress Dashboard tips & tricks @ WC Sevilla 2016
View functions.php
<?php
/**
* Mostrar / Ocultar Admin Bar
*
* Según el Codex, basta retornar el valor 'false' en la función 'show_admin_bar' para ocultar
* la barra de administración. Sin embargo, esta implementación parece que no funciona correctamente.
*
*/
function remove_admin_bar($show_admin_bar)
{
You can’t perform that action at this time.