Skip to content

Instantly share code, notes, and snippets.

@wiltonlazary
wiltonlazary / bindings-cheat-sheet.md
Created May 14, 2018 04:14 — forked from eendeego/bindings-cheat-sheet.md
Node/V8 bindings cheat sheet
@wiltonlazary
wiltonlazary / gist:66d8aa4cb9dc5562e693dae8dd561d21
Created January 24, 2018 06:31 — forked from rgov/gist:1297132
call functions in target process with lldb Python script
import lldb
class Executioner(object):
typemap = {
None: 'void',
int: 'int',
float: 'float',
str: 'char *',
}
@wiltonlazary
wiltonlazary / lldb-debugging.md
Created January 23, 2018 07:35 — forked from alanzeino/lldb-debugging.md
LLDB debugging with examples

Commands

LLDB Commands

LLDB comes with a great set of commands for powerful debugging.

help

Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help <command-name> for more information on a command. Type help <command-name> <option> to get help for a specific option in a command too.

@wiltonlazary
wiltonlazary / lldb-debugging.md
Created January 23, 2018 07:35 — forked from alanzeino/lldb-debugging.md
LLDB debugging with examples

Commands

LLDB Commands

LLDB comes with a great set of commands for powerful debugging.

help

Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help <command-name> for more information on a command. Type help <command-name> <option> to get help for a specific option in a command too.

@wiltonlazary
wiltonlazary / g_ether.conf
Created December 9, 2017 19:36 — forked from dwilkins/g_ether.conf
Options for the g_ether module
# /etc/modprobe.d/g_ether.conf
options g_ether host_addr=12:a5:cf:42:92:fd dev_addr=5e:bc:ca:27:92:b1 idVendor=1317 idProduct=42146
@wiltonlazary
wiltonlazary / WebGL-frameworks-libraries.md
Created December 2, 2017 08:01 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL frameworks and libraries

A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • SceneJS: An extensible WebGL-based engine for high-detail 3D visualisation
  • Blend4Web: a tool for interactive 3D visualization on the Internet
@wiltonlazary
wiltonlazary / 01.config
Created October 20, 2017 19:12 — forked from etiennea/01.config
AWS Elastic Beanstalk node.js configuration for quick deployments
packages:
yum:
git: []
gcc: []
make: []
openssl-devel: []
ImageMagick: []
option_settings:
- option_name: NODE_ENV
@wiltonlazary
wiltonlazary / rotate_desktop.sh
Created October 19, 2017 19:33 — forked from mildmojo/rotate_desktop.sh
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
# https://wiki.ubuntu.com/X/InputCoordinateTransformation
@wiltonlazary
wiltonlazary / README.md
Created June 9, 2017 12:21 — forked from jon-a-nygaard/README.md
Highcharts example with SystemJS

Highcharts example with SystemJS

This is an example of how Highcharts can be used with SystemJS. It uses SystemJS to load source files, SystemJS Babel Plugin to transpile ES6 code, ExpressJS for the server application. ##Steps Install dependencies

npm install

Run the application

  • Start the application by running either npm run start or node server.js.
  • Open localhost:8080 and you should see a simple Highcharts demo.
@wiltonlazary
wiltonlazary / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Created October 28, 2016 04:30 — forked from Brainiarc7/VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".