Skip to content

Instantly share code, notes, and snippets.

View lobster2012-user's full-sized avatar
🎯
Focusing

lobster2012-user lobster2012-user

🎯
Focusing
View GitHub Profile
/*
event.c
sync_history
zbx_process_events
process_trigger_events
update_trigger_changes
recalculate_triggers
zbx_process_triggers
@lobster2012-user
lobster2012-user / 1.json
Created January 17, 2019 18:48
asp net
"AllowedHosts": "*",
"Kestrel": {
"EndPoints": {
"Https": {
"Url": "https://localhost:5090/",
// "Certificate": {
// "Path": "test.pfx"
//}
}
}
@lobster2012-user
lobster2012-user / IL_Enum_HasFlag_0_1
Created June 18, 2018 22:06
IL_Enum_HasFlag_0_1
public static Func<T, T, bool> create_has_flags_delegate1<T>()
where T : Enum
{
var method = DynamicMethodGenerator.Create<Func<T, T, bool>>("EnumHasFlags");
var ilGen = method.GetILGenerator();
ilGen.Emit(OpCodes.Ldarg_0);
ilGen.Emit(OpCodes.Ldarg_1);
ilGen.Emit(OpCodes.And);
ilGen.Emit(OpCodes.Ldc_I4_0);