Skip to content

Instantly share code, notes, and snippets.

View Neirth's full-sized avatar

Sergio Martínez Neirth

View GitHub Profile
@Neirth
Neirth / Dockerfile
Created May 17, 2023 23:43
Docker Service to Bind rclone Storage to S3 compatible API
FROM alpine:edge
# Install the rest of dependencies inside minio image
RUN apk add minio supervisor rclone fuse3
# Prepare data temp folder
RUN mkdir -p /data/backup
# Configure rclone remote path
ENV REMOTE_PATH
@Neirth
Neirth / main.rs
Created April 17, 2023 22:21
Testing OpenCL Acceleration over Rust
extern crate ocl;
use ocl::ProQue;
/// Transpose a matrix using OpenCL
///
/// # Arguments
///
/// * `width` - Width of the matrix
/// * `height` - Height of the matrix
/// * `matrix` - Matrix to transpose
@Neirth
Neirth / DataObs.cc
Created June 19, 2021 10:24
Observable Object for all types
/*
* Copyright 2021 Sergio Martinez
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in the
* Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
@Neirth
Neirth / Dockerfile
Last active April 12, 2024 10:25
Wine Container for Docker/Kubernetes Platform
#
# Docker Container with Wine Installed
#
# Might is interesting install proton from Valve Software for run more apps inside this container
# or use Wine Upstream package, this is a proof of concept only but I hope is useful for study
# how to migrate Windows Containers inside Kubernetes Linux Cluster or create Windows Dependent
# Containers for Linux.
#
# Author: Sergey Neirth
# Create at: 27/03/2021
// Clases para escribir en los ficheros
import java.io.File;
import java.io.FileWriter;
// Clases para usar Java Reflection
import java.lang.Class;
import java.lang.reflect.Field;
// Listas y mapas para sintetizar la informacion.
import java.util.ArrayList;