Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View benoitemile's full-sized avatar

Benoît Emile benoitemile

  • Paris
View GitHub Profile
@jwmcgettigan
jwmcgettigan / bitwarden_duplicate_cleaner.py
Last active April 10, 2024 03:45
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
#!/usr/bin/env python3
# Copyright © 2023 Justin McGettigan
# 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 copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@ebidel
ebidel / download_chrome41.js
Last active February 14, 2024 01:56
For when you need to test your site in Google Search (Chrome 41).
/**
* Copyright 2018 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@joscha
joscha / MonitoredStory.js
Last active May 2, 2019 21:23
React Storybook example for stats.js integration
import React from 'react';
import Stats from 'stats.js';
const { requestAnimationFrame, cancelAnimationFrame } = window;
class MonitoredStory extends React.Component {
constructor(...args) {
super(...args);
this.rafFn = () => null; // noop
}
@cou929
cou929 / detect-private-browsing.js
Last active April 6, 2024 03:21
Detect private browsing mode (InPrivate Browsing or Incognito).
function retry(isDone, next) {
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false;
var id = window.setInterval(
function() {
if (isDone()) {
window.clearInterval(id);
next(is_timeout);
}
if (current_trial++ > max_retry) {
window.clearInterval(id);