timeshift: take snapshots of system and can perform system recovery.
ncdu: drive capacity analysis, easily identify which directories are using the most space.
htop: CLI system monitor highly configurable.
| /** | |
| * Returns a number between 0 and 100 relative to scroll position. | |
| * | |
| * If target scroll container has top and bottom margins, results may be different | |
| * than expected. | |
| * @param {*} scrollContainer target scroll container, default is document.body. | |
| * @returns number between 0 & 100. | |
| */ | |
| function getVerticalScrollPercentage( scrollContainer = document.body ){ | |
| const p = scrollContainer.parentNode; |
| /***************************************** | |
| * Hamburger Menu with Drawer | |
| ***************************************** | |
| / | |
| /** | |
| * Initiates the header hamburger menu. | |
| */ | |
| const hamburgerMenu = () => { | |
| const menu = document.querySelector('#hamburger-menu') |
| import { useBlockProps, InnerBlocks, RichText, useInnerBlocksProps } from '@wordpress/block-editor' | |
| import { useState, useEffect } from 'react' | |
| import { select, useDispatch, useSelect } from '@wordpress/data' | |
| import { usePrevious } from '@wordpress/compose' | |
| import { | |
| createBlock, | |
| } from '@wordpress/blocks'; | |
| import { Tooltip, Icon } from '@wordpress/components' | |
| import { __ } from '@wordpress/i18n' | |
| import './editor.scss' |
| <?php | |
| /** | |
| * @package GrafikBasePlugin | |
| */ | |
| namespace Lib\Services\Components; | |
| use Lib\Services\ServicesBase; | |
| use Lib\Services\Service; |
| import type { UniqueIdentifier } from '@dnd-kit/core' | |
| import { BaseBlock, BlockIndex } from '../types/block' | |
| import { extractUUID } from './helper' | |
| /** | |
| * Creates a shallow clone of a Map. | |
| * | |
| * @template K - The type of the map's keys | |
| * @template V - The type of the map's values | |
| * @param {Map<K, V>} map - The map to clone |
| <!-- malicious-test.html --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Innocent Looking Page</title> | |
| </head> | |
| <body> | |
| <h1>This looks like normal content!</h1> | |
| <p>But it's actually stealing your cookies...</p> |