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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtfa1ympybOXisMIlvinQ5nbDB0WGtu4q5SaUaQ67M7GJ8oacBCAy63pf9YCf+GuJ9XvQDhAhRGUPpmn0qtz5zP+ZTLrRdXZ9tYcl4RHo3ElCFgvaL5vWsISxwBXj4G4xLX4GTMSWYDJvQCzm2rWxqq98nswWvFOOgPh40Wx2ztU1uNXEq1tOO/1AtF/nTGL/xZzjw59fpjhP1UghkXfYd/nMPQDIytvNXJdc3V/O+Oo4vfkOqQ0+feL9laeJuht5XPDm/GMfLajkf+iJe7e9AIMIJhEsNCJj0GC4plricTXzqnY12iaIzupDf11M9/hbPNOImUFuB1zbmTaTIKCUYQ== siga |
#!/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 |
#!/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: |
require 'socket' | |
server = TCPServer.open(6060) | |
loop { | |
client = server.accept | |
loop { | |
buffer = client.gets() | |
if buffer.nil? | |
buffer.close |
#@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 = [] |
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
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
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
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby.git#v84 --app YOURAPP |
#!/usr/bin/env ruby | |
# Ruby Recursive Build | |
# This script is intended for environment first setups automation, its homebrewed and tested only on my env. | |
# Use it at your own risk. | |
# I strongly recommend you to read the code through, and change it to fit your needs. | |
# It will look for your .ruby-version files and install all of 'em | |
# run this inside your Workspace folder | |
# Download it into your Workspace folder | |
# chmod +x ruby-recursive-building.rb |