This code snippet tells `fetch()` to abort the request when it takes longer than the specified amount of time. It is only one line!
Code snippets, tech howto’s and scripts
By default only the main user of a domain can SFTP into a domain. Plesk does allow to add FTP users but for some reason not for access over encrypted SSH. That makes the whole feature broken given today’s security standards that don’t allow plain FTP access anymore. This guide helps you to properly set up the new user for secure access over SFTP.
How to have the screen command log its output in realtime to a file. Purely command line, no .screenrc file involved.
Run this command to fix the Operation not permitted error on macOS.
When coding for Arduino you may wish to run certain code once every N milliseconds. For a very simple program like blinking a LED with a 2 seconds interval using the delay() function will be sufficient. But what about multiple bits of code where each require a different interval? Using delay() they will slow each other down, significantly disrupting your program. The solution is the meassure the last time the code parts were executed.
Sometimes you need to quickly restore a file from your macOS Time Machine backups without using the pretty graphical interface.
One small and easy command to fix InnoDB ‘column last_update in table “mysql”.”innodb_table_stats”‘ type mismatch error.
Simple instructions on how to install a local PowerDNS Recursor on macOS 10.12 Sierra to avoid using the DNS servers provided in your network or by your internet provider.