Skip to content

Instantly share code, notes, and snippets.

View sebinside's full-sized avatar

Sebastian Hahner sebinside

View GitHub Profile
@sebinside
sebinside / lockTrack.jsx
Created October 9, 2018 20:32
Lock any video track using the QE CEP DOM
// Enable quality engeneering = Work in Progress Version of the SDK
app.enableQE();
// Get WIP-Version of the current sequence
var activeSequence = qe.project.getActiveSequence();
// Get ANY available video track (same for audio), e.g. Track #3 (zero-based counting)
var someTrack = activeSequence.getVideoTrackAt(2);
// Lock this track. Also available: isLocked()
@sebinside
sebinside / MIDI-to-OBS.ts
Created May 7, 2019 17:22
Simple proof of concept how to connect a midi input to OBS using node js.
const easymidi = require('easymidi');
const OBSWebSocket = require('obs-websocket-js');
const paletteGearInputName = 'Palette Multi-function Device 0';
const paletteGearInput = new easymidi.Input(paletteGearInputName, false);
const obsSource = "Mic/Aux";
const obs = new OBSWebSocket();
obs.connect({ address: 'localhost:4444', password: '*******' })
@sebinside
sebinside / Generate chatoverflow npm package.sh
Last active October 31, 2019 12:41
Console command for generating a new version of the chat overflow swagger open api client.
# First, download swagger-codegen-cli, e.g. from maven
# And make sure npm is updated
npm install -g npm@latest
# Then, start your current chatoverflow build and execute the following commands
# Note to replace the npmVersion field with the current number (build number +1 at the end)
java -jar swagger-codegen-cli-2.4.9.jar generate \
-i http://localhost:2400/api-docs/swagger.json \
-l typescript-angular \
-o ./angular_api_client \
$ git config --get-regexp alias
alias.s status
alias.a add -A
alias.c commit -m
alias.l log --oneline
alias.p push
alias.cp "! cp() { git commit -a -m '$1' && git push ; } ; cp"
$ git config --global alias.xyz "xyz"
@sebinside
sebinside / ImageQuickSave.cs
Last active March 21, 2022 09:09
Simple c# utility to save images from clipboard.
using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ImageQuickSave
{
@sebinside
sebinside / elgato-api.md
Created December 29, 2021 17:55
Elgato Keylight REST API

Elgato Keylight REST API

Description

  • HTTP GET/POST Requests
  • Endpoint: http:///elgato/lights
  • JSON Fields
    • on: [0,1]
    • hue: [0.0,360.0)
  • saturation: [0.0,100.0]
@sebinside
sebinside / projects.md
Last active May 1, 2022 09:09
Coding projects

UML