Skip to content

Instantly share code, notes, and snippets.

View jesussuarz's full-sized avatar
🌀
Verified

Jesus Suarez jesussuarz

🌀
Verified
View GitHub Profile
@jesussuarz
jesussuarz / readme.md
Created November 3, 2025 14:04
Update Passbolt user permissions via MySQL

Update Passbolt user permissions via MySQL

This SQL snippet provides a simple way to manage Passbolt user permissions directly from the MySQL database, It can be used by system administrators who need to adjust resource access (passwords, folders, or shared secrets) without using the web interface, for example, when a user has left the organization or needs elevated privileges on multiple entries,

By using these queries, you can, identify a user’s internal Passbolt UUID (id) using their email address, bulk update their access level (type) in the permissions table, convert all “update” permissions (editable) to “owner” permissions (full control), or any combination you require,

@jesussuarz
jesussuarz / create_new_admin_wordpress_script.php.md
Created December 5, 2025 15:07
Create New Admin Wordpress Script PHP

Admin User Auto-Creation Script for WordPress

This script loads WordPress, checks if the user exists, and if not, creates a new administrator account with a randomly generated password.

<?php
// Script to create an administrator user using the credentials from wp-config.php

// Load WordPress
require_once __DIR__ . '/wp-load.php';