Skip to content

Instantly share code, notes, and snippets.

View lmiceli's full-sized avatar

Leonardo Miceli lmiceli

View GitHub Profile
8. The Long Road
Everyone wants to be good at something. The motivations may vary a little but one thing is true for all of us: mastering something gives us pleasure. We become proud of ourselves, even if no one else cares about it. However, very few of us have the focus and determination that is required to master something. Very few of us are willing to walk the long and hard road to mastery.
This chapter is about our careers and the things that really motivate us. Are we really looking after our careers? Do we really know where we are going or where we want to be? What are the things that really motivate us to do a great job? Should we see our jobs as an investment? If yes, what should be the return on our investment?
A TALE FROM A BRAZILIAN TEENAGER
As a middle-class teenager living in a small town in the Brazilian countryside, my dream was to live in London. I could never explain why, but there was something about London that fascinated me. My parents always avoided longer conversations about the subje
@lmiceli
lmiceli / temp.html
Last active November 28, 2018 13:34
<html>
<head>
<meta charset='utf-8' />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<style>
body {
display: flex;
padding: 0;
margin: 0;
width: 100vw;
https://randyfay.com/content/rebase-workflow-git
git checkout 7.x-1.x # Check out the "public" branch
git pull # Get the latest version from remote
git checkout -b comment_broken_links_101026 # topical branch
... # do stuff here.. Make commits.. test...
git fetch origin # Update your repository's origin/ branches from remote repo
git rebase origin/7.x-1.x # Plop our commits on top of everybody else's
git checkout 7.x-1.x # Switch to the local tracking branch
git pull # This won't result in a merge commit
@lmiceli
lmiceli / .gitconfig
Created October 7, 2016 14:26 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
#! /bin/bash
alias gl="git l"
alias gll="git ll"
alias ga="git a"
#alias gap="git "
alias gaa="git add -A"
#alias gca="git "
alias gcm="git cm"
alias gd="git d"
alias gds="git ds"
[alias]
ll = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
# one-line log
l = log --pretty=format:"%C(#b6b649)%h\\ %ad%C(#f5236c)%d\\ %Creset%s%C(#0383f5)\\ [%cn]" --decorate --date=short
a = add
ap = add -p
c = commit --verbose
ca = commit -a --verbose
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>