Command | Description |
---|---|
:q[uit] |
Quit Vim. This fails when changes have been made. |
:q[uit]! |
Quit without writing. |
:cq[uit] |
Quit always, without writing. |
This file contains 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
# ---------------------------------------------------------------------- | |
# Start an HTTP server from a directory, optionally specifying the port | |
# ---------------------------------------------------------------------- | |
pyserver() { | |
local port="${1:-8000}" | |
sleep 1 && open "http://localhost:${port}/" & | |
# Set the default Content-Type to `text/plain` instead of `application/octet-stream` | |
# And serve everything as UTF-8 (although not technically correct, this doesn’t break anything for binary files) | |
python -c $'import SimpleHTTPServer;\nmap = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map;\nmap[""] = "text/plain";\nfor key, value in map.items():\n\tmap[key] = value + ";charset=UTF-8";\nSimpleHTTPServer.test();' "$port" |
This file contains 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
#!/bin/bash | |
# ------------------------------------------------------------------------------ | |
# | System | | |
# ------------------------------------------------------------------------------ | |
# Navigation | |
# ------------------- |
This file contains 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
#!/bin/bash | |
# | |
# General | |
# --------------------------------------------------- | |
# Create a data URI from a file | |
datauri() { | |
local mimeType="" |
This file contains 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
# Executar no shell/bash com: bash install.sh | |
# ------------------------------------------------------------------------------ | |
# | Helpers | | |
# ------------------------------------------------------------------------------ | |
# Renderiza um log de informação | |
e_informa() { | |
printf "\n$(tput setaf 7)%s$(tput sgr0)\n" "$@" |
Testar/verificar a disposição dos elementos de uma determinada página em determinadas resoluções de tela.
Executar captura de telas de acordo com os viewports definidos em um script, com a ajuda do PhantomJS.
Necessário ter o NodeJS instalado.
Attention: the list was moved to https://github.com/vitorbritto/dev-list
This page is not maintained anymore, please update your bookmarks.
Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!
NewerOlder