Skip to content

Instantly share code, notes, and snippets.

View erichmachado's full-sized avatar
🏠
Working from home

Erich Soares Machado erichmachado

🏠
Working from home
View GitHub Profile
Hi David,
I came across your profile online and wanted to reach out about Development
Opportunities here at Groupon. The company is growing, and we're always
looking for folks with solid skills that can make positive contribution to
our continued success. Any chance you'd be open to a quick conversation
about opportunities, or for any possible networking potential? If so, let me
know when you're free and we can set up a time to chat. Also, if you are
interested, it would be great if you could forward a current resume over
that I can take a look at. I look forward to hearing back from you! Please
let me know if you have any questions.
@ream88
ream88 / excel_template_handler.rb
Created January 24, 2012 15:30 — forked from stephencelis/redcarpet.rb
Markdown, Excel template handler for Rails 3.2.
class ActionView::Template
module Handlers
class Excel
def call(template)
%{
Tempfile.open('writeexcel').tap do |tmp|
WriteExcel.new(tmp.path).tap do |workbook|
#{template.source}
end.close
end.tap(&:rewind).read
@henrik
henrik / README.markdown
Created June 26, 2012 07:30
This is how we test that all translation keys match up between locales, in Rails.

This is how we test that all translation keys match up between locales.

Stuff that only goes in one locale (such as an admin section) or that can't be translated yet (if you use external translators) can simply go in files that don't match the path "config/locales/??.yml", like "config/locales/wip.fo.yml".

@Deradon
Deradon / live.rb
Last active December 16, 2016 14:36
Re-run a command whenever a file in directory is changed!
#!/usr/bin/env ruby
# Re-run a command whenever a file in directory is changed!
#
# Inspired by: http://ngauthier.com/2012/02/quick-tests-with-bash.html
# Thanks Nick!
#
# Patrick Helm (me@patrick-helm.de), 2013
#
#
@x2q
x2q / wd-live-s3-backup.sh
Last active February 19, 2018 00:29
WD My Book Live Duplicity Back Up To Amazon S3 (and Glacier). See this blog post for more info: http://www.x2q.net/blog/2013/02/24/howto-backup-wd-mybook-live-to-amazon-s3-and-glacier/
#!/bin/sh
# WD Live Duplicity Back Up To Amazon S3 (and Glacier)
#
# Requires python-boto, duplicity, util-linux, and trickle to be installed
# Install using: apt-get install python-boto duplicity util-linux trickle
#
# See this blog post for more info:
# http://www.x2q.net/blog/2013/02/24/howto-backup-wd-mybook-live-to-amazon-s3-and-glacier/
@scy
scy / opening-and-closing-an-ssh-tunnel-in-a-shell-script-the-smart-way.md
Last active July 18, 2024 07:57
Opening and closing an SSH tunnel in a shell script the smart way

Opening and closing an SSH tunnel in a shell script the smart way

I recently had the following problem:

  • From an unattended shell script (called by Jenkins), run a command-line tool that accesses the MySQL database on another host.
  • That tool doesn't know that the database is on another host, plus the MySQL port on that host is firewalled and not accessible from other machines.

We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like

ssh -L 3306:localhost:3306 remotehost

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@chesterbr
chesterbr / brasileiros_toronto.md
Last active October 28, 2019 16:51
Sugestões para Brasileiros visitando Toronto

Sempre que alguém visita Toronto (em particular vindo do Brasil) a gente fica em dúvida sobre onde levar/recomendar.

O @djlebersilvestre compartilhou comigo uma lista de sugestões. Eu fiz alguns adendos e publiquei aqui. Sugestões são bem-vindas!

Locais / passeios

  • CN Tower (A visita vale a pena. O restaurante é um pouco caro - pelo preço tem opções melhores, mas é giratório)
  • Ripley's Aquarium
  • Real Sports Bar
  • Distillery District (falam que o restaurante Clooney é muito bom)
@ygrenzinger
ygrenzinger / CleanArchitecture.md
Last active June 13, 2024 09:52
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.