Skip to content

Instantly share code, notes, and snippets.

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

Alexander R Torrijos stormwild

🏠
Working from home
View GitHub Profile
@stormwild
stormwild / lenovo-service-centers.md
Last active November 10, 2024 03:14
Levono Service Centers

Levono Service Centers

Lenovo Authorised Service Centers | Lenovo Philippines

Partner's Name City/Municipality Address Contact Number(s) Business Operation Hours Supported Products Service Option
ACCENT MICRO TECHNOLOGIES, INC. - PASIG Pasig City 6/F ALVA Business Center, 259 C. Raymundo Ave., Pasig City 1600 02-5322-2800 / 02-8988-9788 Local 7277 Monday–Friday: 8:30 AM–5:30 PM Desktop, Notebook, Tablet (Think, Idea,

The Alley by Vikings (Buffet)

The Romantic Buffet (Buffet)

Tong Yang (Buffet)

Six Doors BBQ Buffet (Buffet)

Lore Manila (Ala Carte)

AI Generated. Not verified for accuracy, useful for conceptual understanding, double check on documentation for your specific cron implementation.

Prompt for ChatGPT

how does cron handle monthly for feb

In a typical cron schedule, if you specify a cron expression that runs on a day that doesn't exist in February, like the 29th, 30th, or 31st, it will simply not execute in February. Here’s how different scenarios would play out:

1. Cron Schedule with Day 29, 30, or 31

@stormwild
stormwild / Program.cs
Created October 1, 2024 09:05 — forked from dj-nitehawk/Program.cs
Showing deprecated endpoint versions in Swagger
var bld = WebApplication.CreateBuilder();
bld.Services
.AddFastEndpoints()
.SwaggerDocument(o =>
{
o.DocumentSettings = s =>
{
s.DocumentName = "Initial Release";
s.Version = "v0";
};
@stormwild
stormwild / 1-BaseQuestion.cs
Created October 1, 2024 09:04 — forked from dj-nitehawk/1-BaseQuestion.cs
Validator inheritance for polymorphic DTOs.
[
JsonPolymorphic(TypeDiscriminatorPropertyName = "_t"),
JsonDerivedType(typeof(MultiChoiceQuestionRequest), "mcq"),
JsonDerivedType(typeof(RatingQuestionRequest), "rq")
]
public class BaseQuestionRequest
{
public int Id { get; set; }
}
@stormwild
stormwild / Program.cs
Created October 1, 2024 09:03 — forked from dj-nitehawk/Program.cs
Request DTO inheritance with Validator composition
public class BaseRequest
{
public string? Id { get; init; }
}
public class BaseRequestValidator : Validator<BaseRequest>
{
public BaseRequestValidator()
{
RuleFor(x => x.Id)