Tag Archives: linux

Check internet speed from the command line

Warning: count(): Parameter must be an array or an object that implements Countable in /home/wwwmani/public_html/42/wp-content/plugins/wp-shkshell/wp-shkshell.php on line 59

So, i was fiddling with my raspberry pi and thought about checking the internet download and upload speed. After a few searches and tests, this seems to be the easiest and finest solution: go to the cli and type: [user]$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py wait for the python script download, then: [user]$ chmod +x speedtest-cli… Read More »

Get last modified and change date of file in linux

Short post to keep things simple, and i also have better things to do: You had a great script doing skynet stuff on your server, but you noticed it stopped tracking the missile network sometime last week. Could someone have changed it? You know the last time you edited it, sometime around november 1976, so… Read More »

Install php-gd with yum

Again, as a reminder because this was the second time i had to install php-gd manually on one of my servers: yum install php-gd wash, rinse, restart, play. Note: to restart apache: “apachectl restart” (restarts apache, not worrying about open connections) “apachectl graceful” (restarts apache, but waits for open connections to resolve)

Linux server – start/stop/restart mysql

Its merely a reminder so i dont go through the search to restart mysql on one of my stupid servers: Usually (i think) its like this: /etc/init.d/mysqld start /etc/init.d/mysqld stop /etc/init.d/mysqld restart On that server of mine, because of some config: /etc/rc.d/init.d/mysqld start /etc/rc.d/init.d/mysqld stop /etc/rc.d/init.d/mysqld restart