Skip to content

Instantly share code, notes, and snippets.

View formatq's full-sized avatar
🌐
Working

Aleks Ivanov formatq

🌐
Working
  • Munich
View GitHub Profile
@formatq
formatq / HeathPrometheusEndpoint.java
Last active December 6, 2022 13:25
Spring Boot Health Check as Prometheus format
package ru.formatko;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.prometheus.client.Collector;
import io.prometheus.client.exporter.common.TextFormat;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Collections;
@formatq
formatq / Trash list of Russian Youtube channels BlockTube Backup.txt
Last active December 8, 2021 10:21
A trash list of Russian Youtube channels that appear in Youtube trends (>3100 blocked channels)
// BlockTube https://chrome.google.com/webstore/detail/blocktube/bbeaicapbccfllodepmimpkgecanonai
// Blocked by context menu (AkStar)
UC5aNdQmTYqlSxJHS9Ld0pBw
// Blocked by context menu (TheKateClapp)
UCC83eap-hc6uFQHRJ2F2LNg
// Blocked by context menu (ОЛЕЖЭ)
UC9rUnYrza0heXpO011zNDfQ
@formatq
formatq / WSHandler.java
Created August 25, 2015 10:52
WSHandler.java
/**
* Copyright 2010 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software