Skip to content

Instantly share code, notes, and snippets.

View AsierraDEV's full-sized avatar

AsierraDEV

  • SCS
  • Fuerteventura, Islas Canarias
View GitHub Profile
@felipou
felipou / decrypt_dbeaver.py
Last active July 2, 2024 14:56
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
@ssddanbrown
ssddanbrown / export-books.php
Last active January 2, 2024 10:46
BookStack-Export-Books
#!/usr/bin/env php
<?php
// API Credentials
// You can either provide them as environment variables
// or hard-code them in the empty strings below.
$apiUrl = getenv('BS_URL') ?: ''; // http://bookstack.local/
$clientId = getenv('BS_TOKEN_ID') ?: '';
$clientSecret = getenv('BS_TOKEN_SECRET') ?: '';