Skip to content

Instantly share code, notes, and snippets.

View ABeltramo's full-sized avatar

ABeltramo

View GitHub Profile
@ABeltramo
ABeltramo / Dockerfile
Created September 25, 2025 14:37
GOW Hyprland
# syntax=docker/dockerfile:1.4
ARG BASE_APP_IMAGE
# hadolint ignore=DL3006
FROM ${BASE_APP_IMAGE}
# List taken from https://wiki.hypr.land/Getting-Started/Installation/#packages
ARG HYPRLAND_PACKAGES="meson wget build-essential ninja-build cmake-extras cmake gettext gettext-base fontconfig libfontconfig-dev libffi-dev libxml2-dev libdrm-dev libxkbcommon-x11-dev libxkbregistry-dev libxkbcommon-dev libpixman-1-dev libudev-dev libseat-dev seatd libxcb-dri3-dev libegl-dev libgles2 libegl1-mesa-dev glslang-tools libinput-bin libinput-dev libxcb-composite0-dev libavutil-dev libavcodec-dev libavformat-dev libxcb-ewmh2 libxcb-ewmh-dev libxcb-present-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-res0-dev libxcb-xinput-dev libtomlplusplus3 libre2-dev libxcursor-dev"
ARG BUILD_PACKAGES="git curl libzip-dev librsvg2-dev libtomlplusplus-dev libpugixml-dev libseat-dev libinput-dev libdisplay-info-dev hwdata libre2-dev libmagic-dev libjxl-dev wayland-protocols libwayland-dev libgbm-dev libxcb-errors-dev"
@ABeltramo
ABeltramo / README.md
Last active February 10, 2025 06:38
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;