Skip to content

Instantly share code, notes, and snippets.

View OlivierJaquemet's full-sized avatar

Olivier Jaquemet OlivierJaquemet

View GitHub Profile
@OlivierJaquemet
OlivierJaquemet / bcrypt-work-factor.md
Created September 9, 2024 16:04
Default work factor for bcrypt in various implementations across languages

Table with different bcrypt implementations across languages, their default work factors, and links to sources for more information:

Language / Library Default Work Factor Source Information
Python (bcrypt library) 12 https://pypi.org/project/bcrypt/
Java (jBCrypt) 10 https://www.mindrot.org/projects/jBCrypt/
JavaScript (bcrypt.js) 10 https://github.com/dcodeIO/bcrypt.js
C# (.NET BCrypt.Net) 11 https://github.com/BcryptNet/bcrypt.net
PHP (password_hash()) 10 https://www.php.net/manual/en/function.password-hash.php
Ruby (bcrypt-ruby) 12
@OlivierJaquemet
OlivierJaquemet / jplatform-oembed.properties
Last active February 9, 2018 11:40
JPlatform URL Media template JSP allowing any URL with a valid oEmbed provider to be inserted and displayed in Jalios JPlatform
# 1. Copy JSP in your JPlatform webapp
# 2. Declare this JPlatform URL media template with the following properties (adapte th JSP path) :
# oEmbed
media.template.default.URL.zzz-oEmbed.enabled: true
media.template.default.URL.zzz-oEmbed.regex: .*
media.template.default.URL.zzz-oEmbed.jsp: /jcore/media/url/mediaTemplateOEmbed.jsp
@OlivierJaquemet
OlivierJaquemet / jplatform-timeline.properties
Last active February 9, 2018 11:40
JPlatform URL Media template JSP allowing Knightlab Timeline to be inserted and displayed in Jalios JPlatform
# 1. Copy JSP in your JPlatform webapp
# 2. Declare this JPlatform URL media template with the following properties (adapte th JSP path) :
# Knightlab Timeline
media.template.default.URL.knightlab-timeline.enabled: true
media.template.default.URL.knightlab-timeline.regex: ^https://cdn\\.knightlab\\.com/libs/timeline3/latest/embed/index.html\\?.*
media.template.default.URL.knightlab-timeline.jsp: /jcore/media/url/mediaTemplateKnightlabTimeline.jsp
@OlivierJaquemet
OlivierJaquemet / jplatform-gist.properties
Last active February 9, 2018 11:40
JPlatform URL Media template JSP allowing GitHub Gist URL to be inserted and displayed in Jalios JPlatform
# 1. Copy JSP in your JPlatform webapp
# 2. Declare this JPlatform URL media template with the following properties (adapte th JSP path) :
# GitHub Gist
media.template.default.URL.github-gist.enabled: true
media.template.default.URL.github-gist.regex: ^(?:https?:)?//gist.github.com/([A-Za-z\\d](?:[A-Za-z\\d]|-(?=[A-Za-z\\d])){0,38})/([0-9A-Za-z]+).*
media.template.default.URL.github-gist.jsp: /jcore/media/url/mediaTemplateGitHubGist.jsp
@OlivierJaquemet
OlivierJaquemet / index.html
Created October 29, 2012 18:13
IE 9 will crash when opening this file on a web server configured in the local intranet zone.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr" xml:lang="fr" dir="ltr" xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Crash IE</title>
<style type="text/css">
tr:nth-child(odd) {
}
</style>
</head>
@OlivierJaquemet
OlivierJaquemet / gist:3295145
Created August 8, 2012 13:48 — forked from fcamblor/gist:3294986
google doodle beaten (2)
// Execute this script in console on https://www.google.com/doodles/basketball-2012 :)
// Add this prior to anything : it will allow you to use jquery in your page :)
var script = document.createElement('script');
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js';
script.type = 'text/javascript';
script.onload = function() {
// Configure here your space charge configurations
// count corresponds to the number of times current change will be applied