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
var selector = '#searchResultsTable > tbody > tr > td.searchResultsPriceValue > div > span' | |
var elements = document.querySelectorAll(selector) | |
var totalPrice = 0; | |
for (var i = 0; i < elements.length; i++) { | |
var element = elements[i]; | |
var priceText = element.textContent || ''; | |
var price = parseInt(priceText.replace('TL', '').replace('.', '').trim(), 10); | |
if (!isNaN(price)) { | |
totalPrice += price; | |
} |
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
{ | |
"[python]": { | |
"editor.formatOnType": true | |
}, | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.colorTheme": "Noctis Azureus", | |
"workbench.preferredDarkColorTheme": "Noctis Azureus", | |
"workbench.sideBar.location": "right", | |
"yaml.customTags": [ | |
"!And", |
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
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=8 | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
grep SwapTotal /proc/meminfo | |
Ref: https://bogdancornianu.com/change-swap-size-in-ubuntu/ |