This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if findmnt -M /mnt >/dev/null 2>&1; then | |
umount /mnt | |
fi | |
DISK_LEADIN_BYTES=$(fdisk -l /dev/xvdb | awk ' | |
/^Device.* Start .* End / { | |
# Input line will be like: | |
# | |
# Device Boot Start End Sectors Size Id Type | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// No one knows why Amazon doesn't simply provide a total of item prices for wishlists. | |
// But with a little script in the F12 Developer Console, you can calculate a total. | |
Array.from(document.getElementsByClassName("g-item-sortable")) | |
.map((i) => { | |
return /\$([0-9.]+)/.exec(i.innerText)[1] - 0 | |
}) | |
.reduce((a,b) => { | |
return a+b | |
}) | |
.toLocaleString([], { |
NewerOlder