Skip to content

Instantly share code, notes, and snippets.

View icyerasor's full-sized avatar

icyerasor icyerasor

View GitHub Profile
@icyerasor
icyerasor / Miro-Share-Project-Bookmarklet.js
Last active February 2, 2024 08:37 — forked from valioDOTch/Miro-Share-Project-Bookmarklet.js
Miro share project board bookmarklet
/*
* Code for a bookmarklet to get a shareable link to Miro project
*
* installation: use the URL of this Gist on https://www.yourjs.com/bookmarklet/ to add a Bookmarklet to your browser bar.
*
* usage: click on the bookmarklet, after opening up a Miro project.
* it will add a link icon (🔗) on the right hand side of the project title (next to the ➕ plus icon)
* When you click on the link, a dialog appears that provides you with a URL to share in chats or emails.
* Be aware that this might break.
*
@icyerasor
icyerasor / IteratecStatisticalLoggingSessionEventListener.java
Created January 23, 2017 22:03
An Hibernate StatisticalLogging EventListener that uses seconds instead of nanoseconds for logging
package de.iteratec;
import org.hibernate.BaseSessionEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Modified to make the output remotely readable; directly use the slf4jLogger we use in our project.
* Use by calling sessionFactory.getSessionFactoryOptions().getBaselineSessionEventsListenerBuilder().setAutoListener(IteratecStatisticalLoggingSessionEventListener.class);