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
| #!/bin/bash | |
| # | |
| # FUNCTION: | |
| # Simplificar o acesso via SSH nos servidores da TOTVS | |
| # Antes de acessar o servidor esse script tenta autenticar na VPN da TOTVS por isso atualize a variável VPN_CONNECTION_NAME com o nome da sua conexão de VPN | |
| # AUTHOR: | |
| # Diego Rocha | |
| # CREATED: | |
| # 28-03-2016 | |
| # UPDATES: |
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
| # CPF and CNPJ validators Rails 3+ style | |
| # By Arthur Corenzan <[email protected]> | |
| # Based on the work of André Camargo <[email protected]> | |
| # | |
| # Copy this file to your initializers or lib directory, then apply like this: | |
| # | |
| # class Person | |
| # ... | |
| # | |
| # validates :cpf, :cpf => true |
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
| require 'irb/ext/save-history' | |
| #History configuration | |
| IRB.conf[:SAVE_HISTORY] = 1000 | |
| IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" |