Skip to content

Instantly share code, notes, and snippets.

@xiopt
xiopt / README.md
Created October 26, 2021 10:24 — forked from icebob/README.md
Inter-namespace middleware

Inter-namespace middleware

This middleware can connect to other namespaces.

Usage

Connect to other namespaces with the same broker options

moleculer.config.js

const InterNamespaceMiddleware = require("./inter-namespace.js");
@xiopt
xiopt / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Created March 19, 2020 13:21 — forked from Brainiarc7/ffmpeg-vp8&9-encode-test-vaapi-intel.md
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools

@xiopt
xiopt / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Created March 19, 2020 13:21 — forked from Brainiarc7/ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)

@xiopt
xiopt / ffmpeg_build.sh
Last active December 24, 2022 05:00 — forked from talkingnews/ffmpeg_build.sh
Build ffmpeg and all needed codecs from latest git revisions
#!/bin/bash
sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
@xiopt
xiopt / sublime_hq_patches.md
Created February 14, 2020 16:17
Sublime HQ Patching Guide

Sublime Text 3

Sublime Text 3 (Build 3211)

Windows 32-bit

Reggable using Junk
Pre-Regged
@xiopt
xiopt / intercept-xhr.js
Created January 13, 2020 08:53
Intercept XHR requests so that we can do something useful with it.
// Taken from https://stackoverflow.com/a/27363569
// Allows for the object to be interrogated
((() => {
const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
console.log('request started!');
this.addEventListener('load', function() {
console.log('request completed!');
console.log(this.readyState); //will always be 4 (ajax is completed successfully)
@xiopt
xiopt / nginx.conf
Created May 29, 2018 14:44 — forked from denys281/nginx.conf
phpmyadmin nginx virtual host (php-fpm)
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name phpmyadmin.my;
root /usr/share/phpmyadmin;
@xiopt
xiopt / Bluetoothctl.py
Created May 9, 2018 08:38
Python A2DP Bluetooth Connection
# ReachView code is placed under the GPL license.
# Written by Egor Fedorov (egor.fedorov@emlid.com)
# Copyright (c) 2015, Emlid Limited
# All rights reserved.
# If you are interested in using ReachView code as a part of a
# closed source project, please contact Emlid Limited (info@emlid.com).
# This file is part of ReachView.
@xiopt
xiopt / install_apcu_4-0-7.sh
Created March 2, 2018 10:01 — forked from enoch85/install_apcu_4-0-7.sh
Install APCu 4.0.7. This script requires PHP 5.6.
#!/bin/bash
#
# Tech and Me 2015 - https://www.en0ch.se
#
# This requires PHP 5.6
# Must be root
[[ `id -u` -eq 0 ]] || { echo "Must be root to run script, in Ubuntu type: sudo -i"; exit 1; }
# Print current version