config/environments/development.rb
Set raise_delivery_errors
true on development
config.action_mailer.raise_delivery_errors = true
IMPORTANT
Given a message like this:
{ "message": {"accountId":1,"timestamp":"1694709688878","amount":1001,"sentFromClientAt":1694709688913}, "delivered_at": 1694709688954 }
The kcat command can be used with jq to format message, even a calculated attribute:
kcat -C -b localhost:31090 -f '{ "message": %s, "delivered_at": %T } \n' -t input-topic -u | jq '. + { "took": "\(.delivered_at - .message.sentFromClientAt) ms" }'
declare @NewCollationName sysname | |
set @NewCollationName = 'SQL_Latin1_General_CP1_CI_AI' | |
select | |
'ALTER TABLE ' + QUOTENAME(SCHEMA_NAME(st.schema_id)) + '.' + QUOTENAME(st.name) + | |
' ALTER COLUMN ' + QUOTENAME(sc.name) + ' ' + styp.name + '(' + | |
CASE WHEN sc.max_length = -1 THEN 'max' ELSE CONVERT(varchar(10),sc.max_length) END + | |
') collate ' + @NewCollationName + ' | |
go | |
' | |
from |
https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x
⌘ ← "SEND HEX CODE" 0x01
⌘ → "SEND HEX CODE" 0x05
⌥ ← "SEND ESC SEQ" b
⌥ → "SEND ESC SEQ" f
[ | |
{ | |
"key": "ctrl+alt+t", | |
"command": "workbench.action.closePanel", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+alt+t", | |
"command": "workbench.action.toggleMaximizedPanel", | |
"when": "!terminalFocus" |
$ rails generate controller Noticias titulo | |
$ rails destroy controller Noticias titulo | |
$ rails generate model Noticia titulo:string | |
$ rails destroy model Noticia | |
$ rake db:migrate | |
$ rake db:rollback | |
$ rake db:migrate VERSION=0 #defaz todas as migrations, deixa o banco "limpo" |
def pshow(sparkDf, limit=10): | |
return sparkDf.limit(limit).toPandas() |
### Keybase proof | |
I hereby claim: | |
* I am godoy on github. | |
* I am agodoy (https://keybase.io/agodoy) on keybase. | |
* I have a public key ASCHj9JiLOg-r_EGv-cMa4ShYioCiFoF3Pd8pcahky6v_go | |
To claim this, I am signing this object: |