Skip to content

Instantly share code, notes, and snippets.

View michalfapso's full-sized avatar

Michal Fapso michalfapso

View GitHub Profile
@mfalkvidd
mfalkvidd / nginx-thingsboard
Last active November 22, 2024 15:17
Thingsboard nginx reverse proxy with websocket and HTTPS support (Let's Encrypt)
server {
listen 80;
server_name EXTERNAL_THINGSBOARD_DOMAIN.com;
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
@wagenet
wagenet / glibc.md
Last active June 12, 2025 02:01
glibc Versions

glibc Versions

List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.

Summary

Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.

If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.

@pjwhams
pjwhams / qtdumper.cpp
Last active October 19, 2023 18:25
Dump size and position of Qt QWidgets and QLayouts
// Copyright (c) 2016-2023 Paul Walmsley and others
// 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:
@mahuna13
mahuna13 / std.cpp
Created May 9, 2012 10:19
standard library functions for Halide
#include "std_try.h"
#include <math.h>
using namespace Halide;
#define PI 3.14159
/*
Interpolations
*/