Skip to content

Instantly share code, notes, and snippets.

Patrick Debois jedi4ever

Block or report user

Report or block jedi4ever

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jedi4ever
jedi4ever / patrick-unomaly.md
Last active Feb 22, 2019
Impression of 1 week exchange
View patrick-unomaly.md

I had a long overdue holiday planned. For many people this would mean going somewhere and relax. Turns out I'm not the sight-seeing person , I'm more of a people-seeing person: talking to people and exchanging new ideas is what makes me tick. Having been a consultant for several years, you learn the most from new environments. Interns would have that opportunity to apply , but why can't people with more experience?

So I launched on twitter the idea of what company is willing to do an exchange. After receiving several replies I got invited by Ramon Van Alteren from Unomaly and deciced to take a leap of faith.

It felt like the excitement of starting a new job. Scary , because you don't know what to expect.

@jedi4ever
jedi4ever / feedback.md
Last active Oct 8, 2018
Datadog logging feedback
View feedback.md

Some feedback on datadog log explorer:

07 Oct 2018:

  • the pricing is per event , all usual log saas are per GB , it is hard for me to guess how much it would cost

  • it is not 100% clear that when I use exclusion that it will count as an event or not

  • it wasn't clear that I needed the latest of the version 6 , I had latest of 5 dd-agent (took me an hour to realize)

  • in log explorer headers should stay on top (like a freeze row in google docs) + sidebar stays visible

  • in log explorer I'd like to change the column order , not just last added at the end

  • if I specify a metric that is in ms, why show 1 ms as 1000ns

@jedi4ever
jedi4ever / talk description.md
Last active Feb 8, 2018
Fronteers BE Talk Description 22 February
View talk description.md

Deep Dive - Puppeteer a Headless Chrome Node API

Ah! the joys of writing real browser tests ... Selenium and it's derived saas services are pretty slow or expensive. Not ideal for your snappy feedback loop while developing.

headless browsers like Phantomjs, Casperjs , Slimerjs fill in some gap trading speed for some compatibility. Puppeteer is the new kid on the block for automating a Chrome headless browser.

In this talk I'll:

  • walk you through the API using real world scenario's we used for our Platform Zender.tv
  • explain how to integrate it with react/jest and do parallel testing
View notes.md
@jedi4ever
jedi4ever / gist:d095656ae0f0eca4a83ebb2b331da367
Last active Apr 22, 2019
Chromium build with proprietary codecs
View gist:d095656ae0f0eca4a83ebb2b331da367
View gist:6e0a39e70e5cc9e5939e6c182f3e5e95
Topics:
- design
- frontend (react ~)
- mobile app (ios/android/...)
- VR
- iot (alexa, arduino, ...
- testing
- continuous delivery (artefact, versioning,...)
- serverless/containers/cloud
- ai stuff
View Reseach Livestream.md

These are notes while researching a way to convert a browser/website to a stream. This could be used for Facebook Live or for webrecording. TL'DR:

  • I started with Phantomjs - but that didn't support the html5 video tag
  • SlimerJS supports it, but there is no way to record audio directly (though this might come from desktop audio)
  • So I moved to research ffmpeg/X11/XVFB to record it with linux which works
  • But ffmpeg has no easy way to mix streams/overlays to I moved on to OBS with overlay browser support
  • I started researching options OBS in docker and it needed best a GPU , so I move to nvidia-docker
  • And so came across building game servers on EC2/AWS using GPUs and managed to run OBS inside of GPU g2x.large machine
  • I tried streaming to twich , which works great and managed to restream 4K 60FPS youtube on an AWS instance
  • Remote control works through OBS-Remote but OBS has kinda limit in types of features
@jedi4ever
jedi4ever / readme.md
Created Jan 13, 2017 — forked from vizath/readme.md
SlimerJS on AWS EC2 with webgl support
View readme.md

There is not a lot of doc or posts about making an headless renderer with webgl support. Here are few of my findings

I tried things on Heroku, but I was not able to make anything work.

Next, I tried EC2 t2.micro, only to find out that OpenGL needs a graphic card to execute (sure, there are things like mesa that I didn't tried, but it looked like I needed to build Chrome and I didn't want to go that way).

The only easy solution that I found was AWS EC2 GPU Instances. They are pretty much overpriced for what I'm trying to acheive, but it worked. You need to use an AMI that support the Nvidia GRID thing. eg https://aws.amazon.com/marketplace/pp/B00FYCDDTE and its CentOS.

Slimer need Firefox and Firefox need shared libraries that we need to install (we will use a custom repo).

View gist:e2e621a4f3f22a8b9f591e398e1e1881
fabric-activate: clean simulator-build
-xcrun simctl terminate 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2 $(BUNDLE_ID)
-xcrun simctl shutdown 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2
-xcrun simctl erase 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2
-xcrun simctl boot 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2
-xcrun simctl install 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2 $(XCODE_APP_FILE)
-xcrun simctl launch 6A6D30C8-AA08-4A55-A95A-0D5983AE33B2 $(BUNDLE_ID)
You can’t perform that action at this time.