Skip to content

Instantly share code, notes, and snippets.

@dhh
dhh / linux-setup.sh
Last active March 12, 2025 22:35
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@ibmmqmet
ibmmqmet / README.md
Last active January 10, 2021 17:19
IBM MQ queue manager configuration as JSON

This program uses IBM MQ's REST interface to get a copy of all object definitions. It's similar to the dmpmqcfg program but uses JSON as the output format which might be more convenient for some uses.

See my blog post for more information.

@bcherny
bcherny / designing-data-intensive-application-notes.md
Last active March 2, 2025 20:09
Notes: Designing Data-Intensive Applications

Notes on Martin Kleppmann's excellent Designing Data-Intensive Applications.

Chapter 1: Reliable, Scalable, and Maintainable Applications

  • Data Systems
    • Dimensions to consider when thinking about data systems: access patterns, performance characteristics, implementations.
    • Modern data systems often blur the lines between databases, caches, streams, etc.
  • Reliability
    • Systems should perform the expected function at a given level of performance, and be tolerant to faults and user mistakes
  • Fault: One component of a system deviating from its spec. Prefer tolerating faults over preventing them (except for things like security issues). Faults stem from hardware failures, software failures, and human error (in a study, config errors caused most outages).
@jkuipers
jkuipers / HttpClientAutoConfiguration.java
Last active November 27, 2023 18:44
Spring Boot auto-configuration example for an Apache Components HTTP client and its usage in all RestTemplates created by the RestTemplateBuilder, plus trace logging support
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.client.RestTemplateCustomizer;
@root-talis
root-talis / InheritanceTypeIdResolver.java
Created September 8, 2017 09:06
Java Jackson automatic TypeIdResolver based on inheritance
/*
* Automatic inheritance type resolver for Jackson.
* @author root_talis<https://github.com/root-talis>
*
*
* Usage:
*
* @JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.PROPERTY, property = "discriminator")
* @JsonTypeIdResolver(InheritanceTypeIdResolver.class)
* class Animal { // can be abstract or interface
@Manouchehri
Manouchehri / rfc3161.txt
Last active March 16, 2025 08:46
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
@jkuipers
jkuipers / LoggingClientHttpRequestInterceptor.java
Last active March 14, 2025 10:56
RestTemplate-interceptor that logs outgoing requests and resulting responses
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpRequest;
import org.springframework.http.MediaType;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.util.StreamUtils;
@thomasmorf
thomasmorf / AEMDevResources
Last active May 12, 2022 16:54
Adobe Experience Manager Resources for Developers
Documentation
-------------
AEM: https://helpx.adobe.com/support/experience-manager/6-4.html
API References
--------------
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials.html
@alexklibisz
alexklibisz / tools - dpl - Dockerfile
Created December 27, 2015 09:02
Elastic Beanstalk Deployment using the dpl ruby gem ( '-' represents a '/' in the file path)
FROM ruby:2.2.4
RUN apt-get update -y
RUN apt-get install ruby-full -y
RUN apt-get install git -y
RUN gem install dpl
RUN gem install aws-sdk
RUN gem install aws-sdk-v1
RUN mkdir /usr/src/app