Skip to content

Instantly share code, notes, and snippets.

@mancku
mancku / _config_hypr_envs.conf
Created October 7, 2025 13:10
Omarchy Custom configuration
# https://discord.com/channels/1390012484194275541/1410499858170646610/1419446267771359353
# https://wiki.hypr.land/Hypr-Ecosystem/hyprcursor/
env = XCURSOR_THEME,Bibata-Modern-Ice
env = XCURSOR_SIZE,48 # Adjust size (e.g., 16, 24, 32)3234
@mancku
mancku / mancku.omp.json
Last active February 13, 2025 17:30
Oh-My-posh custom configuration
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "right",
"type": "prompt",
"segments": [
{
"style": "powerline",
"invert_powerline": true,
@mancku
mancku / gist:08cb5592ce4eea8878f93289a127f5a6
Created January 30, 2025 23:31
Windows apps install commands
winget install --name Notepad++
winget install --name "7-Zip for Windows"
winget install JanDeDobbeleer.OhMyPosh
# Install IIS
Dism /Online /Enable-Feature /FeatureName:IIS-DefaultDocument /All
wsl --install
winget install git.git
winget install OpenJS.NodeJS.LTS
winget install Microsoft.Powershell
winget install Microsoft.VisualStudioCode
@mancku
mancku / MappingExtensions.cs
Last active April 14, 2023 11:39 — forked from lluisfranco/ClassExtensions01.cs
Map - Copy base class properties to derived class
public static class MappingExtensions
{
public static TT Map<TT, ST>(this TT targetType, ST sourceType,
params string[] namesOfPropertiesToIgnore) where TT : class
{
if (sourceType == null)
{
return null;
}
@mancku
mancku / GenericDeserializer.cs
Created March 11, 2016 20:30
C# Generics XML Serialize - Deserialize
public static T DeserializeObject<T>(string xml)
{
using (MemoryStream mem = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
{
XmlSerializer deser = new XmlSerializer(typeof(T));
return (T)deser.Deserialize(mem);
}
}