Skip to content

Instantly share code, notes, and snippets.

@jcassee
jcassee / ScopeSecured.java
Created May 23, 2020 22:12
Implementation of Micronaut Security annotation for securing routes using JWT scopes (micronaut-projects/micronaut-security#254)
package example;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface ScopeSecured {
String[] value();
Verifying that +jcassee is my blockchain ID. https://onename.com/jcassee
# Run in zsh
homeshick clone sorin-ionescu/prezto
homeshick cd prezto
mkdir home
cd home
for f in ../runcoms/z*; do ln -s $f .${f:t}; done
ln -s .. .zprezto
homeshick link
### Keybase proof
I hereby claim:
* I am jcassee on github.
* I am jcassee (https://keybase.io/jcassee) on keybase.
* I have a public key whose fingerprint is F8AE AD70 673F BED1 E1B6 DABF 8631 BE41 EF27 ED5F
To claim this, I am signing this object:
@jcassee
jcassee / tasks
Created January 2, 2014 11:29
Because the variable `y` is converted to a string, the last debug message is always printed.
---
- debug: var=x
- debug: var=y
register: z
- debug: msg="This task should only be run if x is true"
when: y or z|changed
@jcassee
jcassee / LogOutputStream
Created September 6, 2013 22:25
Inspiratie voor debuggin van streams
package com.goabout.api.http;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class LogOutputStream extends OutputStream {
private OutputStream stream;