Skip to content

Instantly share code, notes, and snippets.

View rhapsodyv's full-sized avatar
🚀

Victor Oliveira rhapsodyv

🚀
View GitHub Profile
@rhapsodyv
rhapsodyv / gist:1556772
Created January 3, 2012 20:28
código do dia - 03/01/12 - bom pra iniciar o ano
var stringJson = action.response.responseText;
if (stringJson == '{"success":false,"errors":{"ChangePassForm[recaptcha_response_field]":["Recaptcha"]}}'){
Ext.MessageBox.alert('Recaptcha Incorreto', 'O código do Recaptcha está incorreto.');
Recaptcha.reload();
}
@rhapsodyv
rhapsodyv / Joe Armstrong on Programmer Productivity.txt
Last active November 29, 2021 22:16
Joe Armstrong on Programmer Productivity
LINK: https://groups.google.com/forum/#!msg/erlang-programming/OiyGQ4UHqxw/HgGma01CGqYJ
Once upon a very long time ago we did a project to compare the efficiency of
Erlang to PLEX.
We implemented "the same things" (TM) in Erlang and PLEX and counted total man hours
We did this for several different things.
@rhapsodyv
rhapsodyv / send_proxy_headers.rb
Created September 16, 2016 19:57
send headers to proxy before ssl thing in ruby
require 'net/http'
require 'net/protocol'
# SUPPORT TO SEND HEADERS TO PROXY BEFORE THE SSL THING
module Net
class HTTP
# SUPPORT TO SEND HEADERS TO PROXY BEFORE THE SSL THING
attr_accessor :proxy_headers
def connect

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@rhapsodyv
rhapsodyv / marlin-stm32-variants.md
Created April 17, 2021 23:07
Marlin STM32 variants

1. THE_BOARD.json

We just need the THE_BOARD.json when there's no generic board available for this mcu. Or if the current generic_board.json from PIO have some bug.

For this board, we can just use: board = genericSTM32F407VGT6 and configure any extra build flag needed in the build_flag option.

Everything other board.json that is copied/added to Marlin should have a strong reason. For example, I copied genericSTM32F407VGT6.json to marlin because the original has a bug. I sent a PR to PIO and they merged my board fix. But until PIO release a new version, we need use the copy.

Current available boards: https://github.com/platformio/platform-ststm32/tree/develop/boards