Skip to content

Instantly share code, notes, and snippets.

@anir
anir / ckad-learning.md
Created January 23, 2020 20:55 — forked from benc-uk/ckad-learning.md
Certified Kubernetes Application Developer (CKAD)
@arsho
arsho / Install Openshift Client Tool in Ubuntu 16.04.md
Created January 19, 2018 10:56
Install Openshift Client Tool (oc) in Ubuntu 16.04

Install Openshift OC Tool in Ubuntu 16.04

What is OC Tool?

OC tool stands for OpenShift Origin Client Tools

Environment

  • Operating System : Ubuntu 16.04 LTS (64-bit)
@chbaranowski
chbaranowski / ContentController.java
Created October 4, 2017 19:04
SSE Spring and Angular
@RequestMapping("/api/v1/content")
@RestController
public class ContentController {
@Autowired
ContentRepository contentRepository;
private final List<SseEmitter> emitters = new ArrayList<>();
@RequestMapping(path = "/stream", method = RequestMethod.GET)
@dsyer
dsyer / startup.md
Last active October 30, 2023 07:41
Notes on Spring Boot startup performance

Anatomy of Spring Boot Start Up Timing

When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.

Basic empty web app with actuators has three such gaps:

0                                                                        1410ms
|------|---------------------------|-----|------|---------|--------|--------|
       |           578             |     |144(5)|         | 133(6) |
@subfuzion
subfuzion / curl.md
Last active May 31, 2024 09:45
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@axtec
axtec / InstallCert.java
Created December 7, 2011 17:55
Install SSL Certificate
/*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*