Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Riduidel / keytool-import.sh
Last active January 24, 2018 08:10 — forked from jirutka/keytool-import.sh
Script to import key/certificate pairs into an existing Java keystore
#!/bin/bash
#
# The MIT License
#
# Copyright 2013-2015 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
version: '2'
services:
registrator:
image: gliderlabs/registrator:master
network_mode: host
volumes:
- /var/run/docker.sock:/tmp/docker.sock
tty: true
restart: always
command:
version: '2.1'
services:
asciidoc-builder:
build: .
command: mvn install
volumes:
- .:/usr/src/app/
- ~/.m2:/root/.m2
FROM maven:3.5.0-jdk-8-alpine
RUN apk --no-cache add graphviz ttf-droid ttf-droid-nonlatin
ADD . /usr/src/app
WORKDIR /usr/src/app
2017-05-26T07:10:36.110Z OIDC+: AuthenticateJWT called with token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2hvbWVib29rLmV1LmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHw1OTFlZmZmZDY2MGI4NzcxMTYxZTYwNDAiLCJhdWQiOiJ1OEM2QjVPV05LVUx2bmt1OTFCWXlLRXd5QmdSTlZLSCIsImV4cCI6MTQ5NTY0ODAxOCwiaWF0IjoxNDk1NjEyMDE4fQ.sPG7AS36k548iMP5063SEnz2tZ3FSUmOmdG41tfBlj8
2017-05-26T07:10:36.111Z OIDC+: JWT issuer: https://!myapplication.eu.auth0.com/, audiences: [MY_CLIENT_ID]
2017-05-26T07:10:36.111Z OIDC+: Call GetProviderForIssuer w/ providers: map[Auth0:0xc4201020c0]
2017-05-26T07:10:36.111Z OIDC+: GetProviderForIssuer with issuer: https://!myapplication.eu.auth0.com/, audiences: [MY_CLIENT_ID]
2017-05-26T07:10:36.111Z OIDC+: Provider matches, returning
2017-05-26T07:10:36.111Z OIDC+: Provider for issuer: &{JWTOptions:{ValidationKey:<nil> SigningMethod:<nil>} Issuer:https://!myapplication.eu.auth0.com/ Register:true ClientID:0xc420015a80 ValidationKey:0xc420015a90 CallbackURL:0xc420f59bd0 DisableSession:false Scope:[] Inclu
func (h *handler) checkAuth(context *db.DatabaseContext) error {
h.user = nil
if context == nil {
return nil
}
defer checkAuthRollingMean.AddSince(time.Now())
var err error
// If oidc enabled, check for bearer ID token
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="7zip" version="19.0" />
<package id="7zip.install" version="19.0" />
<package id="7zip.portable" version="19.0" />
<package id="AdoptOpenJDKjre" version="14.0.1.7" />
<package id="Bitnami-XAMPP" version="7.4.6" />
<package id="chocolatey" version="0.10.15" />
<package id="chocolateygui" version="0.15.0" />
<package id="clink" version="0.4.9" />

Keybase proof

I hereby claim:

  • I am riduidel on github.
  • I am riduidel (https://keybase.io/riduidel) on keybase.
  • I have a public key whose fingerprint is EA8A FF4C 12AC E7BD CCE7 66C6 AFD7 BDA6 0364 932D

To claim this, I am signing this object:

@Riduidel
Riduidel / Wisdom.java
Last active August 29, 2015 14:21
Upload ajax vers Wisdom
@Route(method = HttpMethod.POST, uri = "/{portal}/config/{page}/upload")
public Result uploadFileFor(@Parameter("portal") String portalId,
@Parameter("page") String pageId,
@FormParameter("fileInputChooser") FileItem uploaded) throws IOException {
// Et là, pas la peine de voir le code : uploaded est null !
}
@Riduidel
Riduidel / remover.groovy
Created December 4, 2014 09:58
Fix svn:mergeinfo by removing it
def files = [
/* Files requiring intervention */
]
def projectDir = /* my project dir */
/**
* I **could** have used svnant (http://subclipse.tigris.org/svnant.html) but as it is not available in any repo, I preferred to directly invoke the command
*/
def ant = new AntBuilder()