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 February 7, 2024 17:02
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 {
@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
*/