Skip to content

Instantly share code, notes, and snippets.

View guicheffer's full-sized avatar
🟢
Available

João Guilherme guicheffer

🟢
Available
View GitHub Profile
@guicheffer
guicheffer / config-iterm.json
Last active February 12, 2021 00:04
iTerm2
{
"Working Directory" : "\/Users\/guicheffer\/www",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Green Component" : 0,
"Red Component" : 0,
"Blue Component" : 0
},
"Rows" : 25,
"Ansi 11 Color" : {
@guicheffer
guicheffer / alias.txt
Last active December 3, 2020 20:32
PRETTY GIT LG
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@guicheffer
guicheffer / @guicheffer.zsh-theme
Last active July 6, 2018 10:45
My theme on iTerm2
# @guicheffer.zsh-theme, based on gnzh by Matthew Nelson.
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
local return_status="%{$fg[red]%}%(?..❌)%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX="|"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓%{$reset_color%} "
# https://gist.github.com/codexico/2a34c0d599f3af93b46f
[color]
# Use colors in Git commanfds that are capable of colored output when
# outputting to the terminal. (This is the default setting in Git ≥ 1.8.4.)
ui = auto
@guicheffer
guicheffer / _reset.scss
Last active June 8, 2018 01:10
_reset.scss ❤️
/* http://guicheffer.me/
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
/* Set up Git Configuration */
git config --global user.email "hi@guicheffer.me"
git config --global user.name "João Guilherme"
git config --global core.editor "vi"
git config --global color.ui true
@guicheffer
guicheffer / socialmedia.js
Last active June 7, 2016 17:43
social media (share) functions
function shareFacebook(title, summary, url, image) {
url = ['https://www.facebook.com/sharer/sharer.php?s=100&p[summary]=', encodeURI(summary), '&p[title]=', encodeURI(title), '&p[url]=', encodeURI(url), '&p[images][0]=', encodeURI(image)];
window.open(url.join(''), 'facebook', 'height=300,width=600');
}
function shareFacebookFBui(options, callbackShare) {
// http://developers.facebook.com/docs/reference/dialogs/feed/
var defaults = {
method: 'feed',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
@guicheffer
guicheffer / pre-push
Created January 5, 2016 21:07
hook to force tests and prevent failing pushs to develop or master
#!/usr/bin/env bash
# .git/hooks/pre-push
# hook to force tests and prevent failing pushs to develop or master
#
# Refs:
# http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
# http://blog.ittybittyapps.com/blog/2013/09/03/git-pre-push/
#
# Bypassing the pre-push hook: