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 / feedback.md
Last active Sep 14, 2019
Pulimi feedback
View feedback.md

Installation

  • 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)
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 / nodejs-cluster-zero-downtime.md
Last active Aug 4, 2019
nodejs clustering, zero downtime deployment solutions
View nodejs-cluster-zero-downtime.md

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)

@jedi4ever
jedi4ever / dns tuning ssh login speedup vagrant
Created May 27, 2013
speeding up DNS/SSH connections in vagrant
View dns tuning ssh login speedup vagrant
- Tune /etc/ssh/sshd_config
UseDNS no # Disable DNS lookups
GSSAPIAuthentication no # Disable negotation of slow GSSAPI
don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it
- Tune Vagrantfile
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
@jedi4ever
jedi4ever / upload-to-appstore.sh
Created Aug 18, 2014
Command upload App/Ipa to the iTunes Connect App Store
View upload-to-appstore.sh
#!/bin/bash
set -ex
# This scripts allows you to upload a binary to the iTunes Connect Store and do it for a specific app_id
# Because when you have multiple apps in status for download, xcodebuild upload will complain that multiple apps are in wait status
# Requires application loader to be installed
# See https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html
# Itunes Connect username & password
USER=bla
@jedi4ever
jedi4ever / gist:d095656ae0f0eca4a83ebb2b331da367
Last active Apr 22, 2019
Chromium build with proprietary codecs
View gist:d095656ae0f0eca4a83ebb2b331da367
@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 / gist:944216
Created Apr 27, 2011
build .deb for redis via fpm
View gist:944216
VERSION=2.2.5
apt-get -y install wget
rm -rf redis-$VERSION
wget http://redis.googlecode.com/files/redis-2.2.5.tar.gz -O redis-$VERSION.tar.gz
tar -xzvf redis-$VERSION.tar.gz
cd redis-$VERSION
./configure --prefix=/usr
make
rm -rf /tmp/redis-$VERSION.$$
mkdir /tmp/redis-$VERSION.$$
@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 / gist:7677d62f1414c28a1a8c
Last active Sep 29, 2018
Some notes on travisci remote debugging via ssh or screenshot or remote desktop of Mac VM builds
View gist:7677d62f1414c28a1a8c
Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac , sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build.
#################################################
# Enable remote ssh access to travisci build for debugging
#################################################
# Add a key so we can login to travisci vm
- cat ssh/travisci.pub >> ~/.ssh/authorized_keys
- chmod 600 ssh/travisci
# Install netcat
You can’t perform that action at this time.