Skip to content

Instantly share code, notes, and snippets.

View straiforos's full-sized avatar
🎩

Stephen Traiforos straiforos

🎩
View GitHub Profile
@straiforos
straiforos / keycloak.yaml
Created January 1, 2024 00:41 — forked from fleeto/keycloak.yaml
Keycloak sidecar
---
apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: httpbin-proxy
data:
proxy.json: |-
{
"target-url": "http://localhost:8000",
@straiforos
straiforos / rental.model.ts
Last active December 13, 2023 13:50
Rental View Model with TypeSerializer applied for Jackson like deserialization and serialization
import { Cost } from '../interfaces/cost';
import { Rental } from '../interfaces/rental';
import { CostViewModel } from './cost.model';
type NewRental = Omit<Rental, 'id' | 'createdAt' | 'updatedAt'>;
import { deserialize, Deserializer, Type } from 'typeserializer';
export class RentalViewModel implements Rental {
id = null;
name = '';
@straiforos
straiforos / resume.json
Last active April 5, 2024 20:43
resume.json
{
"basics": {
"name": "Stephen Traiforos",
"image": "https://www.gravatar.com/avatar/2802aa3aba37aee55d3baf94b42e90bf",
"label": "Fullstack Software Engineer",
"email": "stephen@traiforos.com",
"phone": "(508) 494-5048",
"summary": "Passionate full stack engineer seeking a highly collaborative team environment with a variety of architectures and technical challenges. Self driven developer with a proven track record of providing innovative solutions while leading by example through a thoughtful understanding of the customer experience, business priorities, and market opportunity.",
"location": {
"postalCode": "MA 02119",
@straiforos
straiforos / EnumValidator.java
Created February 16, 2022 14:35 — forked from fuxingloh/EnumValidator.java
Java Enum, @ValidEnum with Constraint that supports JsonIgnoreProperties if not registered. Basically: how to handle unknown enum values in swift & java.
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* Created by: Fuxing
*/
public class EnumValidator implements ConstraintValidator<ValidEnum, Enum> {
@Override
public boolean isValid(Enum value, ConstraintValidatorContext context) {
if (value == null) return false;
@straiforos
straiforos / gist:77cdc80694adac803227d1cbbeff50a5
Created December 31, 2021 20:29 — forked from karmanov/gist:499e0dfdf8e5ce119ad4
spring.jpa.hibernate.ddl-auto values
validate: validate the schema, makes no changes to the database.
update: update the schema.
create: creates the schema, destroying previous data.
create-drop: drop the schema at the end of the session.