Skip to content

Instantly share code, notes, and snippets.

View antonmry's full-sized avatar

Antón Rodríguez antonmry

View GitHub Profile
@antonmry
antonmry / log
Created October 16, 2025 15:29
Allen Compilation Error
[allenuser@1e57ed4f5960 build]$ cmake -DSTANDALONE=ON ..
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- Separable compilation: ON
-- CPU_ARCH: native
-- Memory manager: SINGLE_ALLOC
-- Synchronous device execution: OFF
-- Contracts: OFF
-- Magfield use texture: OFF
-- Allen device target: CPU
-- Could NOT find FFI (missing: FFI_LIBRARIES HAVE_FFI_CALL)
@antonmry
antonmry / GestionHabitaciones.java
Last active October 12, 2025 12:39
Ejemplo del nuevo switch exhaustivo
enum TipoHabitacion {
// Esta es la clave: qué pasa cuando añades un nuevo tipo de habitación?
//Free(0.0f),
Lowcost(50.0f),
Doble(100.0f),
Suite(200.0f);
private final float coste;
TipoHabitacion(float c) {
## K8s cluster with kind
Docker is the only available dependency.
TODO: amd64?
docker build -t kind-cli -f Dockerfile.kind .
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
kind-cli --help
@antonmry
antonmry / NewRelic_dashboard.json
Last active February 4, 2025 21:55
Scripts to run MinIO in Docker with Prometheus metrics enabled
{
"name": "Minio",
"description": null,
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "Minio",
"description": null,
"widgets": [
{
set hlsearch
set scrolloff=3
set ignorecase smartcase
set showmode
set history=1000
set NERDTree
" antonmry
let mapleader = " "
let g:mapleader = " "
@antonmry
antonmry / colors_minimum.lua
Last active January 6, 2025 19:03
NeoVim configuration files created on 2025-01-06 20:03:20
--- Name: minimum
--- Description: A minimal colorscheme for neovim.
--- Author: Peter Aronoff
--- License: BSD-3-Clause
--- URL: https://github.com/telemachus/dotfiles/blob/main/config/nvim/colors/minimum.lua
local g = vim.g
local cmd = vim.cmd
if g.colors_name ~= nil then
cmd("highlight clear")
@antonmry
antonmry / litra-auto-on.plist
Last active June 5, 2025 11:05
This is script to auto on/off a Logitech light when the webcam is on/off in Mac. It requires hidapitester
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>litra-auto-on</string>
<key>ProgramArguments</key>
<array><string>/Library/LaunchDaemons/litra-auto-on.sh</string></array>
<key>RunAtLoad</key>
<true/>
@antonmry
antonmry / Dockerfile
Created May 3, 2022 10:42
Docker and Kubernetes workshop
FROM nginx:latest
WORKDIR /usr/share/nginx/html
COPY index.html index.html
@antonmry
antonmry / application.yml
Created January 30, 2020 11:20
Disable Spring Embedded Kafka logs
spring:
kafka:
producer:
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
logging:
level:
org.springframework.kafka.*: OFF
org.springframework.kafka.listener.[KafkaMessageListenerContainer$ListenerConsumer]: OFF
org.apache.kafka.*: OFF
@antonmry
antonmry / Foo2.java
Last active January 30, 2020 07:22
SpringBoot application with Junit5 tests using EmbeddedKafka
package example;
import lombok.*;
@Data
@NoArgsConstructor(access = AccessLevel.PRIVATE, force = true)
@AllArgsConstructor
public class Foo2 {
private String foo;
}