Skip to content

Instantly share code, notes, and snippets.

View bily-amin's full-sized avatar

Bilyamin Adam bily-amin

View GitHub Profile
@bily-amin
bily-amin / crt.sh
Created December 14, 2021 20:08 — forked from 1N3/crt.sh
A small bash script to gather all certificate sub-domains from crt.sh and save them to a file
#!/bin/bash
#
# crt.sh sub-domain check by 1N3@CrowdShield
# https://crowdshield.com
#
OKBLUE='\033[94m'
OKRED='\033[91m'
OKGREEN='\033[92m'
OKORANGE='\033[93m'
@bily-amin
bily-amin / FieldUtils.java
Created July 6, 2021 08:54 — forked from jasper-vandemalle/FieldUtils.java
FieldUtils mutates and accesses fields using reflection.
package be.vandemalle.jasper.util.reflection;
import java.lang.reflect.Field;
import org.apache.commons.lang.StringUtils;
public class FieldUtils {
/**
* Get the specified field on the class. If the field is not found on the class itself will recursively check
* the superclass.
@bily-amin
bily-amin / Messages.java
Created February 23, 2021 23:36 — forked from jonikarppinen/Messages.java
Example of using message resources in Spring Boot service layer code, in as simple way as possible (hopefully!). NOTE: this approach supports only a single locale, not dynamically changing it.
package com.company.project.components;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.Locale;
Elastic Load Balancer, CloudFront and Let's Encrypt