This file contains hidden or 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
#!/bin/sh | |
cd /var | |
touch swap.img | |
chmod 600 swap.img | |
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 | |
mkswap /var/swap.img | |
swapon /var/swap.img | |
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab | |
sysctl -w vm.swappiness=30 | |
free |
This file contains hidden or 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
//Vk replace all images on timeline to placeholders | |
// extends nodelist for foreach | |
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach; | |
// find & replace images | |
function vk_replace_img(selector,placeholder,src=null) { | |
document.querySelectorAll(selector).forEach(function(el) { | |
// console.log(el.src); |
NewerOlder