Skip to content

Instantly share code, notes, and snippets.

View hebertreis's full-sized avatar

Hebert Reis hebertreis

  • CRE8 Tecnologia
  • Brazil, Sao Paulo
View GitHub Profile
@hebertreis
hebertreis / notion2blog.js
Last active January 27, 2020 05:42 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "rampbrasil.com"
const START_PAGE = "https://www.notion.so/Ramp-Brasil-683bf2c1c1854794a0561b60b0944e94"
//const DISQUS_SHORTNAME = "rampbrasil"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@hebertreis
hebertreis / example.txt
Created December 2, 2015 13:46
Extract f4v,flv timecode recorded using Flash Media Live Enconder FMLE
#open terminal in your mac our linux
php extractTimeCode.php /tmp/TESTE.f4v
# output
#Running: ffprobe -i /tmp/TESTE.f4v -select_streams 2 -show_packets -sexagesimal -show_data -v quiet -print_format json
#total=12
#Seconds 0 => 2015-11-24 11:07:20
#Seconds 0.513 => 2015-11-24 11:07:20
#Seconds 1.015 => 2015-11-24 11:07:21