Open files in Notepad++ from Git Bash, handling both Unix and Windows paths.
npp # Launch Notepad++
npp /e/path/to/file.php # Open file (Unix path)
npp anything\weird # Suspicious path → reads clipboard instead=== YOURLS SQL Queries Benchmark ===
Date: 2026-02-19 22:25:26
Cache plugin: DISABLED
Iterations per query: 10
========================================
--- OPTIONS TABLE QUERIES ---
SELECT all options (WHERE 1=1) | Avg: 1.06ms | Min: 0.94ms | Max: 1.71ms
SELECT single option (LIMIT 1) | Avg: 0.97ms | Min: 0.86ms | Max: 1.15ms
./admin/index.php:304:$url_results = yourls_get_db('read-admin_index')->fetchObjects( "SELECT * FROM `$table_url` WHERE 1=1 {$where['sql']} ORDER BY `$sort_by` $sort_order LIMIT $offset, $perpage;", $where['binds'] );
./includes/Database/Options.php:46:$sql = "SELECT option_name, option_value FROM $table WHERE 1=1";
./includes/Database/Options.php:105:$sql = "SELECT option_value FROM $table WHERE option_name = :option_name LIMIT 1";
./includes/Database/Options.php:164:$sql = "UPDATE $table SET option_value = :value WHERE option_name = :name";
./includes/Database/Options.php:209:$sql = "INSERT INTO $table (option_name, option_value) VALUES (:name, :value)";
./includes/Database/Options.php:240:$sql = "DELETE FROM $table WHERE option_name = :name";
./includes/functions-shorturls.php:259:$delete = $ydb->fetchAffected("DELETE FROM `$table` WHERE `keyword` = :keyword", array('keyword' => $keyword));
./includes/functions-shorturls.php:289:$insert = $ydb->fetchAffected("INSERT INTO `$table` (`keyword`, `url`userChrome vs. userContent :
userContent : modify web pages and internal pages like about:newtab and about:homeuserChrome : modify Firefox user interfaceIn about:config turn toolkit.legacyUserProfileCustomizations.stylesheets to true
Open folder %APPDATA%\Mozilla\Firefox\Profiles\, find one or more folders and go to the folder that has a lot of other folders.
$maintenance_start;
$ydb;
$yourls_actions;
$yourls_allowedentitynames;
$yourls_allowedprotocols;
$yourls_filters;
$yourls_l10n;
$yourls_locale;
$yourls_locale_formats;TP_Link_Extender_something)Export all databases except #mysql50#mysql-8.4, information_schema, mysql, performance_schema and phpmyadmin :
for DB in $(mysql -u root -e "SHOW DATABASES;" | grep -Ev "mysql|phpmy|schema|Database"); do echo "DB : $DB"; mysqldump -u root --skip-lock-tables --databases $DB > db_${DB}.sql; doneIn https://downloads.raspberrypi.org/raspios_arm64/images/ go to dir matching your setup and download the .info
(eg : https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2025-05-13/2025-05-13-raspios-bookworm-arm64.info)
Remove the first lines so all you have is a list of packages, and :
cat 2025-05-13-raspios-bookworm-arm64.info | cut -d' ' -f3 | sort > ~/initial_paquets.txt
This will be the sorted default package list.
$('body').find('a').each(function() {
var href=$(this).attr('onclick');
if(href) {
href=href.replace("location.href='", '').replace(/'$/g, '');
$(this).attr('href',href);
}Bookmarklet with https://mrcoles.com/bookmarklet/ : (include jQuery)