Skip to content

Instantly share code, notes, and snippets.

Avatar

Hebert Reis hebertreis

  • CRE8 Tecnologia
  • Brazil, Sao Paulo
View GitHub Profile
@hebertreis
hebertreis / notion2blog.js
Last active Jan 27, 2020 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
View notion2blog.js
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 Dec 2, 2015
Extract f4v,flv timecode recorded using Flash Media Live Enconder FMLE
View example.txt
#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