I hereby claim:
- I am lucasmartins on github.
- I am lucasmartins (https://keybase.io/lucasmartins) on keybase.
- I have a public key ASAOeBskd1j4f62M6RN7UEFPJkoHlHy7w4gPgdzAsYl6Bwo
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# Simple readable password generation in Ruby. | |
# | |
# Generate reasonably secure random passwords of any chosen length, | |
# designed to be somewhat easy for humans to read and remember. | |
# Each password has a capitalized letter and a digit. | |
# | |
# Example: |
I hereby claim:
To claim this, I am signing this object:
Para gerar um novo certificado SSL você precisa dos seguintes procedimentos:
@dev
Gerar um .CSR (é um arquivo texto com uma chave);@dev
Enviar o .CSR para a entidade certificadora (TheSSLstore);
@dev
Verificar o Ownership do domínio via email (também da pra colocar um arquivo no srv. http);@dev
Baixar o .CRT (vem um zip com vários .CRT);@dev
Criar o bundle.crt
#!/bin/sh | |
# Sublime Text 3 Install (last update: Monday 13 March 2017) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# curl -L git.io/sublimetext | sh | |
# Detect the architecture |
require 'thread_safe' | |
# A process wide cache for in memory computing | |
class MX::Core::Cache | |
def self.init! | |
@data = ThreadSafe::Cache.new unless @data | |
end | |
def self.truncate! |
To generate the new SSL you need to follow these steps:
@dev
Generate a .CSR (a key text file);@dev
Send the .CSR to your certificate authority (We use TheSSLstore);
@dev
Verify the domain ownership through email (you can also put a file at your http server);@dev
Download the .CRT file (probably a zipball with a bunch of .CRT files);@dev
Brew the bundle.crt
Enable DTrace for non-root users (don't do that out of your development box)
# chmod 4755 dtrace
You can check for probes here: https://github.com/ruby/ruby/blob/trunk/probes.d
#@author: Lucas Martins | |
namespace :report do | |
desc 'Reports remaining time of tasks under work' | |
task :remaining => :environment do | |
data = [] | |
Issue.find(:all, :conditions => ['status_id in (?)', [2,4] ],:order=>'id').each do |issue| | |
remaining = issue.estimated_hours-issue.spent_hours | |
puts "##{issue.id} '#{issue.subject}' => remaining: #{remaining}, spent: #{issue.spent_hours}, estimated: #{issue.estimated_hours}" | |
subtasks = [] |
require 'socket' | |
server = TCPServer.open(6060) | |
loop { | |
client = server.accept | |
loop { | |
buffer = client.gets() | |
if buffer.nil? | |
buffer.close |
#!/usr/bin/env bash | |
# This is (kinda) a RBenv (plus ruby-build) installer for linux | |
# Just copy & paste off the install instructions from Github. | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile |