Skip to content

Instantly share code, notes, and snippets.

View meredoth's full-sized avatar
🏠
Working from home

Giannis Akritidis meredoth

🏠
Working from home
View GitHub Profile
@meredoth
meredoth / Check-Discourse-Topic-Links.ps1
Last active August 3, 2025 13:33
A PowerShell script that takes a Discourse topic URL and prints all posts containing external links. This is useful for identifying spam posts that hide links in subtle places, such as within commas or periods. If a post seems suspicious, run this script with the Discourse topic URL as a parameter to display all external links found in the posts.
@meredoth
meredoth / LootProbabilities.cs
Last active September 13, 2024 15:31
An example of a loot probabilities table based on Unity's Animation and Min Max Curves. Check the explanation post (https://giannisakritidis.com/blog/Animation-And-Min-Max-Curves-In-Unity/)
public class LootProbabilities : MonoBehaviour
{
private const int MAX_LEVEL = 20;
private const float MAX_RARITY = 10;
[SerializeField] private ParticleSystem.MinMaxCurve lootRarityPerLevel;
[SerializeField] private AnimationCurve probabilitiesDistribution;
[ReadOnly, SerializeField] private LevelProbabilities[] probabilitiesPerLevel;