Skip to content

Instantly share code, notes, and snippets.

Gabriel gabrielstuff

Block or report user

Report or block gabrielstuff

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
gabrielstuff / ffmpeg+mpv-support
Created Oct 18, 2019
an install script for ffmpeg + mpv on the raspberry pi 3B+
View ffmpeg+mpv-support
##### by RPi_Mike
##### Vidware_Downloads: My script philosophy is to keep things clean and simple. That's why my first step is to create 3 different folders to keep the main elements of my script completely separate from each other. Before anything can be built, we first have to download 6 files in the form of "stable release tarballs". This is the raw source code my script will use to build the 6 programs. We also need 4 GPU-related files from the Raspberry Pi Foundation's official GitHub site that provide OpenGL ES and EGL support (they allow mpv to "talk" to the Raspberry's VideoCore GPU and thus facilitate hardware acceleration). Finally, we need a "waf" file that will allow us to build mpv. All of this will go inside the "Vidware_Downloads" folder – which we're creating with the mkdir command:
mkdir Vidware_Downloads
gabrielstuff /
Last active Jan 4, 2019
npm global package
npm install -g auto-install @feathersjs/cli @vue/cli vue-cli budo clibro electron electron-pdf firebase-tools fkill-cli gofetch gulp-cli website-scraper yo ytdl standard nativefier node-gyp npm mammoth speed-test np
gabrielstuff /
Last active Nov 15, 2018
The top software install for a new PC on Windows

New windows 10 machine setup

first install bash:

Third, install choco, open in elevation mode the cmd (with administrative rights) and copy paste :

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(''))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
gabrielstuff /
Last active Mar 14, 2017
📚 A description of what should include a setting module loader

Setting loader

The setting loader is a module that allows to load settings in the form of a JSON. This JSON file can include various parameters. We call them settings.

The settings should be overridable in the following levels :

  • default settings in a setting folder, in a JSON file. We might use HJSON
  • override settings loaded depending on the ENV : production / staging / development  This overriding should take the following form : load(settings/settings.${ENV}.json) if load(settings/settings.${ENV}.json) fail, tries load(settings/${ENV}.json) else tries load(settings/settings.json)
View sizeof.js
function sizeOf(url, callback) {
var image = new Image();
image.src = url;
image.onload = function () {
callback && callback(null, {width: image.width, height: image.height, ratio: image.width/image.height, img: image})
image.onerror = function(){
callback && callback('error')
gabrielstuff / preLoadInCache.js
Created Dec 15, 2016
Precache images based on JSON response
View preLoadInCache.js
'use strict'
var queue = require('async').queue
var cache = require("imgcache")
var _ = require('lodash')
// query the stories
// query content of eachStories
// then findURLInObject
gabrielstuff / globalTool.json
Last active Oct 15, 2016
Set of global npm
View globalTool.json
gabrielstuff / client.js
Last active Sep 2, 2016 — forked from sahat/client.js
Calculate client-server latency using
View client.js
var socket = require('')('');
var startTime;
setInterval(function() {
socket.emit('latency',, function(startTime) {
var latency = - startTime;
}, 2000);
gabrielstuff / bodyframe.json
Last active May 2, 2016
a body frame from kinect
View bodyframe.json
"bodies": [
"bodyIndex": 0,
"tracked": false
"bodyIndex": 1,
"tracked": false
You can’t perform that action at this time.