fetch('/things/10', {
credentials: 'same-origin',
headers: {
'accept': 'application/json'
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 &' |
OlderNewer