Skip to content

Instantly share code, notes, and snippets.

View ABeltramo's full-sized avatar

ABeltramo

  • Chatterbox Labs
  • London
View GitHub Profile
@ABeltramo
ABeltramo / README.md
Last active July 10, 2024 13:11
Gstreamer WebRTC demo using gst-wayland-display

Requirements

Setup Rust and Gstreamer on your machine. Install our custom gst-wayland-display Gstreamer plugin

git clone https://github.com/games-on-whales/gst-wayland-display.git
cd gst-wayland-display
# Install cargo-c if you don't have it already
cargo install cargo-c
# Build and install the plugin, by default under 
@ABeltramo
ABeltramo / Readme.md
Created February 1, 2023 15:08
Docker clean old versions
@ABeltramo
ABeltramo / Readme.md
Created November 21, 2022 16:34
Sunshine RTP performance

Method

This is running on Sunshine latest master (e1b112c), on a M1 macbook.
All tests are using forced H.264 and only changing resolution and bitrate (Moonlight defaults used).

I benchmarked the method videoBroadcastThread() at different points using:

auto start = high_resolution_clock::now();
@ABeltramo
ABeltramo / README.md
Last active July 8, 2021 17:40
GOW GUI
@ABeltramo
ABeltramo / docker-compose.yml
Created February 26, 2021 11:13
Cloudtube + Second docker-compose
version: "3.9"
services:
second:
image: abeltramo/cloudtube-second:latest
cloudtube:
image: abeltramo/cloudtube:latest
ports:
- 10412:10412
links:
@ABeltramo
ABeltramo / gcloud-automl.clj
Created February 3, 2021 16:03
Babashka GCloud automl API
#!/usr/bin/env bb
; Install gcloud from https://cloud.google.com/sdk/docs/install
; first time configure using gcloud init
; See API documentation at https://cloud.google.com/vision/automl/docs/
(require '[babashka.curl :as curl]
'[clojure.java.shell :refer [sh]]
'[cheshire.core :as json]
'[clojure.string :as str]
@ABeltramo
ABeltramo / Dockerfile
Last active April 15, 2023 19:20
Tensorflow, Keras, Flask resnet50 deploy
FROM python:3.6-slim
# Install deps
ADD requirements.txt /
RUN pip install -U -r /requirements.txt
# Trigger download of resnet model from github
RUN python -c "from keras.applications.resnet50 import ResNet50; ResNet50()"
# Add flask app

Intellij salmon blue dark theme

@ABeltramo
ABeltramo / KerasJavaOutput.java
Created October 16, 2019 14:41
KerasJavaPredictor
package co.chatterbox.xai.image;
import co.chatterbox.image_ablation.ModelOutput;
import org.nd4j.linalg.api.ndarray.INDArray;
import java.util.List;
public class KerasJavaOutput implements ModelOutput {
private INDArray predictions;
@ABeltramo
ABeltramo / items.json
Created February 25, 2019 09:01
MTMR personal config
[
{ "type": "exitTouchbar", "align": "left", "bordered": false, "title": "exit"},
{ "type": "mute", "bordered": false, "align": "left", "width" : 46},
{ "type": "brightnessDown", "bordered": false, "align": "left", "width" : 46},
{ "type": "brightnessUp", "bordered": false, "align": "left", "width" : 46},
{ "type": "play", "align": "left", "bordered": false, "width" : 46},
{ "type": "dock", "align": "left", "width" : 550},
{ "type": "appleScriptTitledButton",
"source": {
"inline":