Small fixes and commands that were each a post of their own once. They’re collected here so they’re easier to find.
Disable ping in Linux#
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_allFiles empty in an HTML form?#
Put enctype="multipart/form-data" in your form tag.
“Importing plotly failed. Interactive plots will not work.”#
pip3 install --upgrade plotlyFind large directories on AIX#
I usually run it from under a partition which is running out of space. It can take a while.
du -g | sort -n -rTell if a number is whole in PHP#
if ($num == (int) $num) {
// It's whole
} else {
// It's not
}sar (sysstat) for performance monitoring#
Using sar, you can also collect all performance data on an on-going basis, store them, and do historical analysis to identify bottlenecks.
via 10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring.
How much can you get out of a $4 VPS?#
I am a big fan of cheap VPSs. I start many personal projects, bring up a VPS, play around and then wipe it. Never have to worry about accidentally running up a bill in 100s or 1000s of dollars. I run this blog on a $4 server.
So this was interesting to read how far can a cheap VPS go.