Skip to content

Instantly share code, notes, and snippets.

View sandrocarval's full-sized avatar

Sandro Ribeiro sandrocarval

  • Brazil
  • 21:15 (UTC -03:00)
View GitHub Profile
@sandrocarval
sandrocarval / goadt
Created December 21, 2016 16:27 — forked from dforocha/goadt
script to do the ssh on adtsys machines
#!/bin/bash
export PEM_KEY="~/.ssh/aws-totvs.pem"
function list() {
echo "ADTsys server list:
jerico01
jerico02
jis01
jis02
# CPF and CNPJ validators Rails 3+ style
# By Arthur Corenzan <arthur@corenzan.com>
# Based on the work of André Camargo <andre@boaideia.inf.br>
#
# Copy this file to your initializers or lib directory, then apply like this:
#
# class Person
# ...
#
# validates :cpf, :cpf => true