Skip to content

Instantly share code, notes, and snippets.

View mathieu-pousse's full-sized avatar
👷
working hard @cloud-iam

Mathieu POUSSE mathieu-pousse

👷
working hard @cloud-iam
View GitHub Profile
@mathieu-pousse
mathieu-pousse / shadow-it.yaml
Last active September 4, 2017 20:37
Create a pod that is waiting for you
apiVersion: v1
kind: Pod
metadata:
name: shadow-it
labels:
name: debug
spec:
containers:
- name: shadow-it
image: ubuntu
# remove stopped containers
docker rm -v $(docker ps -aq)
# remove dangling images
docker rmi $(docker images -f "dangling=true" -q)
# remove dangling volumes
docker volume rm $(docker volume ls -qf dangling=true)

Keybase proof

I hereby claim:

  • I am mathieu-pousse on github.
  • I am mathieu_pousse (https://keybase.io/mathieu_pousse) on keybase.
  • I have a public key whose fingerprint is B195 4A6B DB93 83CF 3215 908F EE3E 4BCB 63B6 F87F

To claim this, I am signing this object:

@mathieu-pousse
mathieu-pousse / GreetingController.java
Created June 28, 2016 10:09
Content negotiation fails when requesting "text/plain" and throwing an error
package hello;
import java.util.HashMap;
import java.util.Map;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@RestController
public class GreetingController {
public class LinkedList {
private static class Node<E> {
E item;
Node<E> next; // null if last of the chain
Node<E> prev; // null if first of the chain
Node(Node<E> prev, E element, Node<E> next) {
this.item = element;
this.next = next;