Skip to content

Instantly share code, notes, and snippets.

View jlesage's full-sized avatar

Jocelyn Le Sage jlesage

  • Chambly, Quebec, Canada
  • 02:30 (UTC -04:00)
View GitHub Profile
#!/bin/sh
#
# This is an example of a pre-conversion hook. This script is always invoked
# with /bin/sh (shebang ignored).
#
# The first parameter is the full path where the video will be converted.
#
# The second parameter is the full path to the source file.
#
# The third argument is the name of the HandBrake preset that will be used to
@jlesage
jlesage / plex_dvr_post_processing.sh
Created February 18, 2019 10:38
Post-processing script for Plex DVR
#!/bin/bash
#
# Post-processing script for Plex DVR.
#
# This script is used to convert the video file produced by the DVR to a smaller
# version. The conversion is performed by a separate Docker container.
#
# For example, the HandBrake docker container is capable of automatically
# converting files put in a specific folder, called the "watch" folder. The

Keybase proof

I hereby claim:

  • I am jlesage on github.
  • I am jlesage (https://keybase.io/jlesage) on keybase.
  • I have a public key whose fingerprint is F5AA 6FA5 4072 2785 D128 3471 C4BC AECA 911C 8EEA

To claim this, I am signing this object:

@jlesage
jlesage / input.js.patch
Last active April 5, 2017 13:34
Fix for noVNC 0.6.2 about mouse clicks not working
--- /opt/novnc/include/input.js 2017-04-05 09:24:25.389523205 -0400
+++ /opt/novnc/include/input-new.js 2017-04-05 09:25:03.605331213 -0400
@@ -338,14 +338,13 @@
Util.addEvent(window, 'touchend', this._eventHandlers.mouseup);
Util.addEvent(c, 'touchend', this._eventHandlers.mouseup);
Util.addEvent(c, 'touchmove', this._eventHandlers.mousemove);
- } else {
- Util.addEvent(c, 'mousedown', this._eventHandlers.mousedown);
- Util.addEvent(window, 'mouseup', this._eventHandlers.mouseup);
- Util.addEvent(c, 'mouseup', this._eventHandlers.mouseup);