Skip to content

Instantly share code, notes, and snippets.

View g2px1's full-sized avatar
🌌
Working

g2px1 g2px1

🌌
Working
View GitHub Profile
@g2px1
g2px1 / platform-detection.h
Created April 20, 2024 17:55 — forked from thiago-rezende/platform-detection.h
Platform detection macros for C/C++
#pragma once
/* check for emscripten */
#if defined(__EMSCRIPTEN__)
#define HORUS_PLATFORM_EMSCRIPTEN
#error "[ platform ]: emscripten platform is not supported!"
/* check for windows platform */
#elif defined(_WIN32)
@g2px1
g2px1 / Authorization.java
Created October 15, 2022 19:05
JpaOAuth2AuthorizationService for Spring Authorization Server
/*
* Copyright 2020-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@g2px1
g2px1 / Client.java
Created October 15, 2022 19:05 — forked from sjohnr/Client.java
JpaRegisteredClientRepository
/*
* Copyright 2020-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@g2px1
g2px1 / postgres.md
Created September 21, 2022 19:10 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql

Run server: