Based in my .vimrc
- h Move left
- j Move down
- k Move up
- l Move right
- $ Move to end of line
| # Checando codificação de arquivos: | |
| find . -iname "*.phtml" | while read linha; do file -i $linha; done | |
| # Conversão em Lote | |
| find . -iname "*.phtml" | while read linha; do iconv --from-code=ISO-8859-1 --to-code=UTF-8 $linha > $linha.new; mv $linha.new $linha; done |
| ####################### | |
| # Pretty .bashrc | |
| ####################### | |
| alias mountedinfo='df -hT' | |
| BLACK='\e[0;30m' | |
| BLUE='\e[0;34m' | |
| GREEN='\e[0;32m' | |
| CYAN='\e[0;36m' |
| ## Use auto-indentation. | |
| set autoindent | |
| ## Backup files to filename~. | |
| set backup | |
| ## Constantly display the cursor position in the statusbar. Note that | |
| ## this overrides "quickblank". | |
| set const | |
| ## Use cut to end of line by default. | |
| set cut |
| #!/usr/bin/env ruby | |
| # /usr/local/bin/open_subl | |
| require 'cgi' | |
| require 'uri' | |
| begin | |
| query = CGI.parse(URI.parse(ARGV.first).query) | |
| url = query['url'].first | |
| file = URI.parse(url).path | |
| line = query['line'].first | |
| column = query['column'].first |
| #Download Elementary OS from here: | |
| #http://sourceforge.net/projects/elementaryos/files/stable/ | |
| #First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
| /** | |
| * Documentation: http://docs.azk.io/Azkfile.js | |
| */ | |
| systems({ | |
| 'rails-app': { | |
| image: { docker: "azukiapp/ruby:2.2", }, | |
| provision: [ | |
| "bundle install --path /azk/bundler", | |
| "bundle exec rake db:create db:migrate db:seed", | |
| ], |
| /** | |
| * Documentation: http://docs.azk.io/Azkfile.js | |
| */ | |
| systems({ | |
| app: { | |
| depends: [ | |
| 'mongodb', 'mysql', 'redis', 'sidekiq' | |
| ], | |
| image: { docker: "azukiapp/ruby:2.2"}, | |
| provision: [ |
Based in my .vimrc
| #!/bin/bash | |
| INPUT_PORT=8000 | |
| # Usage info | |
| show_help() { | |
| cat << EOF | |
| Uso: ${0##*/} [-arl] | |
| Redirecionamento da porta $INPUT_PORT para um Serviço Azk. | |
| -h display this help and exit |