Notka dla siebie – czy takie zmiany w /etc/sysctl.conf faktycznie przyspieszą działanie Ubuntu na komputerze z mnóstwem ramu?
vm.swappiness=10
vm.vfs_cache_pressure=50
Notka dla siebie – czy takie zmiany w /etc/sysctl.conf faktycznie przyspieszą działanie Ubuntu na komputerze z mnóstwem ramu?
vm.swappiness=10
vm.vfs_cache_pressure=50
It turns out that Internet Explorer caches AJAX requests (how clever). If you’re using $.ajax(), you can pass cache: false option to it, but if – like me – you’re using $.get() and $.post(), just use
$.ajaxSetup({cache: false});
somewhere at the start of your script.
Mostly for my future reference. -threads 8 should be changed to the number of CPU cores (my i7 has 4 with HT, thus I set it to 8).
ffmpeg -i input.avi -acodec libfaac -ab 48k -vcodec libx264 -vpre fast -vb 500k -threads 8 -f flv output.flv
Mostly note to my self for future reference.
What they don’t tell You in the tar backup tutorial is that it’s not enough to edit /etc/fstab (and their instructions for grub are for grub-legacy).
Because after restoring you probably have new partition UUIDs, you must:
mount -B /dev /rootfs/dev
, etc. (with proc and sys at least) to be able to chroot from livecd to your root fschroot /rootfs
blkid
sudo dpkg-reconfigure -plow grub-pc
to automatically upgrade grub config files, just let it install to the drive(s) it was onupdate-initramfs -u
so UUID stored inside initramfs get updated, tooThen you should be able to boot it.