Skip to content

Instantly share code, notes, and snippets.


Patrick Debois jedi4ever

View GitHub Profile
jedi4ever /
Last active Jul 26, 2020
Pulimi feedback


  • did brew install pulumi, installed 1.0.0 , running it keeps nagging about brew upgrade to 1.0.1
  • I wonder if there is a phone-home option, then it needs an optional opt-out
  • I'd expect pulumi init instead of new
  • pulumi needs documentation on the bootstrap for the state bucket (correct permissions)
  • pulumi login defaults to the saas platform, and says alternative logins available. not too clear , a select local would be nice
  • also the path where is stores the files should be asked for during installation
  • pulumi new --secrets-provider=passphrase (default I assume) has no way to initialize the secret from the CLI (like reading it from stdin or file)
  • why is bin in .gitignore (because typescript compiles in ./bin)
jedi4ever /
Last active Feb 22, 2019
Impression of 1 week exchange

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 /
Last active Oct 8, 2018
Datadog logging feedback

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 / talk
Last active Feb 8, 2018
Fronteers BE Talk Description 22 February
View talk

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
  • explain how to integrate it with react/jest and do parallel testing
jedi4ever / gist:d095656ae0f0eca4a83ebb2b331da367
Last active Jun 2, 2020
Chromium build with proprietary codecs
View gist:d095656ae0f0eca4a83ebb2b331da367
View gist:6e0a39e70e5cc9e5939e6c182f3e5e95
- design
- frontend (react ~)
- mobile app (ios/android/...)
- VR
- iot (alexa, arduino, ...
- testing
- continuous delivery (artefact, versioning,...)
- serverless/containers/cloud
- ai stuff
View Reseach

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 /
Created Jan 13, 2017 — forked from vizath/
SlimerJS on AWS EC2 with webgl support

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 and its CentOS.

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

You can’t perform that action at this time.