A quick Speedtest from the Linux command line
speedtest-cli is in the Ubuntu repositories!
speedtest-cli is in the Ubuntu repositories!
When working accross a mix of Windows and Linux systems, line brakes can be a pain. This is especially true when writing scripts in one for use on the other. This can be easily addressedin Notepad++ on Windows as shown below.
Do you want to reduce the version information that Apache and PHP are providing in the HTTP headers? This may help. /etc/apache2/conf-available/security.conf /etc/php5/apache2/php.ini
When working with web server JSON responses, if they span several lines with no ‘new line’ formatting they can be difficult to read. When JSON responses end up on the command line, it is possible to format them for easier reading. Here I use a short output from the jsontest.com site as an example. Copyable …
Continue reading ‘Formatting JSON with the Python JSON Tool’ »
If you need to create custom dictionaries or wordlists, there are many options, in this case we were looking for UK specific street / road names. You do not need to ‘scrape’ open street map for data, it is not ideal from their point of view or yours. As the data is open, they do …
Continue reading ‘Building a UK Street / Road Name Wordlist’ »
Ever needed to convert IP addresses that someone has written down into a list? eg: 10.0.0.47 to 52 and 192.168.243.5 to 12 Try seq, as follows: Or for my example: You could then redirect the output too: Hope this is useful.
If you want to identify the configuration options for STS etc, you will need to look at HTTP Headers. From Linux you can use curl. For HTTPS sites, you may want to consider the –insecure option if you have other cert issues to contend with.
I was working on a dedicated server the other day and needed a quick script to backup the website and the MySQL database. The following bash script will do just that, simply modify the directory paths within the tar command to ensure every folder you need is included, the MySQL command assumes all databases need …
Continue reading ‘Basic web server backup script – MySQL and Apache’ »
So I tried and failed to disable the screensaver and screen blanking within pidora on the Raspberry Pi. I was up against a time target and needed to find a solution. I needed the screen to stay live, with no screen blanking or screensaver, even when the keyboard and mouse were completely disconnected. I tried …
Continue reading ‘Raspberry Pi Screensaver and Screen Blanking with Pidora’ »
This week I decided to dust off my RPM hat and build an RPM for the distributed.net client application. Firstly to test my setup here and secondly to make the client easier to deploy and remove from my systems. I have packaged the core DNETC application (v2.9104.510), and added my own DNETC System V init …