These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
| #!/bin/bash | |
| # Change this to the SSD you want to check | |
| drive="/dev/sda" | |
| # Extract the sector size and LBA written from the output | |
| sector_size=$(sudo smartctl -Ai $drive | grep 'Sector Size' | awk '{print $3}') | |
| lba_written=$(sudo smartctl -Ai $drive | grep 'Total_LBAs_Written' | awk '{print $10}') | |
| lba_read=$(sudo smartctl -Ai $drive | grep 'Total_LBAs_Read' | awk '{print $10}') | |
| # Calculate TBW and print the result | |
| tb_write=$(echo "scale=2; $sector_size * $lba_written / 1024^4" | bc -l) |
| deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware |
Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.
The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades
Disable:
sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"
This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will
| from polygenerator import random_polygon | |
| import matplotlib.pyplot as plt | |
| def is_inside(edges, xp, yp): | |
| cnt = 0 | |
| for edge in edges: | |
| (x1, y1), (x2, y2) = edge | |
| if (yp < y1) != (yp < y2) and xp < x1 + ((yp-y1)/(y2-y1))*(x2-x1): | |
| cnt += 1 |
| #!/bin/bash | |
| ## Change following to '0' for output to be like ls and '1' for eza features | |
| # Don't list implied . and .. by default with -a | |
| dot=0 | |
| # Show human readable file sizes by default | |
| hru=1 | |
| # Show file sizes in decimal (1KB=1000 bytes) as opposed to binary units (1KiB=1024 bytes) | |
| meb=0 | |
| # Don't show group column |
| /** | |
| * Inspired by @MoOx original script: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
| * Adds file download per @micalevisk https://gist.github.com/MoOx/93c2853fee760f42d97f#gistcomment-2660220 | |
| * Tweaked from @douglascayers https://gist.github.com/douglascayers/d47e525dbd1e7149bafa65939f350baf | |
| * | |
| * Changes include: | |
| * - Get the description from the `title` attribute instead of `aria-label` (doesn't exist anymore) | |
| * - Use style.backgroundColor and parse the rgb(...) to hex (rather than regex parsing of 'style' string) | |
| * - Downloads labels to a JSON file named after the webpage to know which GitHub repo they came from. | |
| * |
| /** | |
| * Inspired by @MoOx original script: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
| * Adds file download per @micalevisk https://gist.github.com/MoOx/93c2853fee760f42d97f#gistcomment-2660220 | |
| * | |
| * Changes include: | |
| * - Get the description from the `title` attribute instead of `aria-label` (doesn't exist anymore) | |
| * - Use style.backgroundColor and parse the rgb(...) to hex (rather than regex parsing of 'style' string) | |
| * - Downloads labels to a JSON file named after the webpage to know which GitHub repo they came from. | |
| * | |
| * Last tested 2019-July-27: |
| FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8 | |
| Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW | |
| windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442 | |
| Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G | |
| Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q | |
| Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM | |
| Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6 | |
| Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73 | |
| Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J |