Skip to content

Instantly share code, notes, and snippets.

View brenonovelli's full-sized avatar
🤘

Breno Novelli brenonovelli

🤘
View GitHub Profile
@renanlara
renanlara / header.php
Last active May 12, 2018 13:16
WooCommerce - Exibe: Seja bem vindo, faça seu Login ou Cadastre-se! Seja bem vindo, "Usuário" ou Minha Conta!
<?php global $current_user; if ( isset($current_user) ) { echo "Seja bem-vindo, "; echo $current_user->user_login; } ?>
<?php global $user_ID;
if($user_ID) {
echo '<class="login"><a href="' . site_url('minha-conta/logout/', 'login') . '">' . __('(Sair)', 'atahualpa') . '</a>';
} else {
echo '<class="login"><a href="' . site_url('minha-conta/', 'login') . '">' . __('Faça seu Login', 'atahualpa') . '</a>';
} ?>
<?php global $current_user; if ( isset($current_user) ) { echo "ou "; } ?>
<?php global $user_ID;
@ibraheem4
ibraheem4 / postgres-brew.md
Last active October 14, 2024 11:59 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update