Skip to content

Instantly share code, notes, and snippets.

View mateusreis's full-sized avatar

Mateus Reis mateusreis

View GitHub Profile
@mateusreis
mateusreis / fnfix.py
Last active August 29, 2015 14:06 — forked from MicahElliott/fnfix.py
#! /usr/bin/env python
"""Fix ugly file names to be UNIX shell-friendly.
PROBLEM
=======
You have files named with funky characters lying around in your
filesystem. Ugly files like "My Document #3 - (2005)[1].txt" are
common when you're sharing directories with Windows users, but you
@mateusreis
mateusreis / .gitconfig
Last active August 29, 2015 14:13 — forked from codexico/.gitconfig
# ~/.gitconfig
# https://gist.github.com/codexico/2a34c0d599f3af93b46f
[alias]
# Retorna todos os alias desta lista
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t\\2/' | sort;
# Retorna o caminho do repositório
url = remote -v;
@mateusreis
mateusreis / git.mylog
Last active July 29, 2016 17:24
Git alias for my log and branch all
git config --global alias.bra '!git branch --all'
git config --global alias.mylog '!git log --author="$(git config user.name)" --pretty=format:"%h - %an, %ar : %s" --author="$(git config user.name)" --pretty=format:"%h - %an, %ar : %s"
@mateusreis
mateusreis / Fetch-API-cheat-sheet.md
Created November 30, 2016 03:16 — forked from jsdf/Fetch-API-cheat-sheet.md
Fetch API cheat sheet

fetch api cheat sheet

get JSON

fetch('/things/10', {
  credentials: 'same-origin',
  headers: {
    'accept': 'application/json'
  }
# some more ls aliases
alias sou='source .bashrc'
alias profile='sudo nano .bashrc'
alias gitk='gitk 2>/dev/null'
alias gk='gitk --all 2> /dev/null &'