Skip to content

Instantly share code, notes, and snippets.

View Michal-Mikolas's full-sized avatar

Michal Mikoláš Michal-Mikolas

View GitHub Profile
@Michal-Mikolas
Michal-Mikolas / bookmarklets.js
Last active April 24, 2024 08:55
My Bookmarklets
// https://katanya.co.uk/labs/bookmarklet-generator
fetch('https://api.github.com/gists/77dabbdbf39f57fe6816dc9e00866bb9?time=' + Math.floor(Date.now()/(5*60*1000))
.then(response => response.json())
.then(data => {
var scriptContent = data.files['FILENAME.js'].content;
scriptContent = scriptContent.replaceAll('{{ID}}', '');
scriptContent = scriptContent.replaceAll('{{SECURITY_KEY}}', '');
const scriptFn = new Function(scriptContent);
scriptFn();
@felipou
felipou / decrypt_dbeaver.py
Last active March 18, 2024 18:46
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome)
import sys
import base64
import os
import json
from Crypto.Cipher import AES