Skip to content

Instantly share code, notes, and snippets.

View sandrocarval's full-sized avatar

Sandro Ribeiro sandrocarval

  • Brazil
  • 02:17 (UTC -03:00)
View GitHub Profile
@dforocha
dforocha / gototvs
Created March 28, 2016 17:38
Script criado para simplificar o acesso via ssh nos servidores da TOTVS
#!/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:
@haggen
haggen / cpf_cnpj_validators.rb
Last active October 21, 2019 14:40 — forked from gouvermxt/cpf_cnpj_validators.rb
CPF and CNPJ validators Rails 3+ style
# 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
@everaldo
everaldo / .irbrc
Last active December 11, 2015 02:59
Instalação do Rbenv
require 'irb/ext/save-history'
#History configuration
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"