This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomMethodSecurityExpressionHandler extends DefaultMethodSecurityExpressionHandler { | |
private final AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl(); | |
@Override | |
protected MethodSecurityExpressionOperations createSecurityExpressionRoot( | |
Authentication authentication, MethodInvocation invocation) { | |
val root = new CustomMethodSecurityExpressionRoot(authentication); | |
root.setPermissionEvaluator(getPermissionEvaluator()); | |
root.setTrustResolver(trustResolver); | |
root.setRoleHierarchy(getRoleHierarchy()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAILTO='' | |
*/5 * * * * ~/ps.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$source_dir = "C:\certs" | |
$keystore = "C:\Java\truststore.jks" | |
$cert_extensions = @( | |
"*.cer", | |
"*.crt", | |
"*.der", | |
"*.pem" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ChangeDetectionStrategy, Component, DoCheck, KeyValueDiffer, KeyValueDiffers} from '@angular/core'; | |
import {MatTableDataSource} from '@angular/material'; | |
interface Data { | |
} | |
const DATA: Data[] = []; | |
/** | |
* Provoque un changement de données pour qu'Angular détecte que les données ont été modifiées même si la variable n'a pas été modifiée. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redmine issue link in Gitlab Merge Request | |
// @namespace https://bludwarf.github.io/ | |
// @version 1.0 | |
// @description Add link to Merge Request title from GitLab to Redmine | |
// @author [email protected] | |
// @match https://gitlab*/*/merge_requests/* | |
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABrVBMVEUAAADnAADfAADdAADkAAvjAAzjAAzjAA3iAAzkAAviAAu/AAD/AADiAAziAAvfAADWAADcCwDcCwDlAADjAAvmAAjZBgDdCwDdCQDcBgDcCgDdCwD/AADUAADiAAziAAvUAADdCwDdCwD/AADdCgDbCQDiAAvfAAa/AADbCwDdCgDbCgDbBwDMAADaAADiAADeCQDQAADcCgDdBwAAAADdCgDcCwDbCgDCAADbCgDcCwDZCADeCgDbCwDfBwC/AADKAADMAADLAADUAADdCQDcCgDJAADJAADLAADKAADTAADLAADLAADKAADaAADIAADLAADMAADLAADKAADNAADLAADNAADLAADKAADOAADLAADLAADKAADEAADLAADMAADKAADMAADMAADKAADLAACjAACUAABVAADKAADNAADLAADLAAB/AACZAAChAAChAAChAAChAACpAACZAACpAACmAACgAAChAACfAAChAACcAACiAAChAACcAACeAAChAAChAACgAACiAACiAACgAACdAACiAAChAACgAAChAAChAADdDADdCwDMAACiAADiOACXAAAAi3RSTlMACwgPhrjT1c2sbQQEzrYQE87fCtUfKfigJe3HA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Prend chaque fichier commençant par 8 chiffres et le déplace dans le sous-dossier correspondant. | |
# | |
# Exemple : | |
# | |
# Le fichier : | |
# | |
# 20201229_100822 - Théo danse en cuisinant.mp4 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>fr.bludwarf</groupId> | |
<artifactId>commons</artifactId> | |
<version>1.0-DEV</version> | |
<name>Librairies communes</name> | |
<description>Librairies communes de Bludwarf</description> | |
<properties> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging.level.reactor.netty.http.client=debug | |
logging.level.org.apache.http=DEBUG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- "10" | |
sudo: false | |
dist: trusty | |
#addons: | |
# apt: | |
# sources: | |
# - google-chrome | |
# packages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from '@angular/core'; | |
import {FlatTreeControl} from '@angular/cdk/tree'; | |
import {CollectionViewer, SelectionChange} from '@angular/cdk/collections'; | |
import {BehaviorSubject, merge, Observable} from 'rxjs'; | |
import {map} from 'rxjs/operators'; | |
/** Flat node with expandable and level information */ | |
export class DynamicFlatNode<T> { | |
constructor(public item: T, public level: number = 1, public hasChildren: boolean = false, public isLoading: boolean = false) {} |
NewerOlder