By default, every Google device uses the following configured DNS-servers: 8.8.8.8 8.8.4.4 But I don’t want my guests, who can use my WiFi, to let Google phone home and give information about who visits my network. I use iptables to block those DNS-requests. The firewall rejects all the DNS-requests that would be sent to Google. …
Author Archives: MvandeK
Handige PowerShell commando’s voor mezelf
Het toevoegen van lange DKIM sleutels met dnscmd Probleem met PowerShell: het kan geen strings aan die langer zijn dan 255 tekens. Mijn DKIM-key is langer dan dat, en ondanks allerlei pogingen is het niet gelukt om deze met PowerShell toe te voegen aan de DNS-zone. Gelukkig werkt dnscmd nog wel in PowerShell, dus kan …
Continue reading “Handige PowerShell commando’s voor mezelf”
Telfort Glasvezel met ASUS RT-AC68U router
Na twee jaar met de Experiabox v8 te hebben gewerkt in combinatie met een Telfort Glasvezel abonnement, is het tijd om deze te vervangen. Ter vervanging van de Experiabox v8 heb ik de ASUS RT-AC68U aangeschaft. Het belangrijkste is dat internet en IPTV blijven werken. Ik maak geen gebruik van telefonie, waardoor VOIP niet in …
Continue reading “Telfort Glasvezel met ASUS RT-AC68U router”
Keep WordPress comment_agent and comment_user_IP empty with hooks
WordPress saves all kinds of information when someone leaves a comment on your blog/website. Two pieces of information I don’t need from someone who comments on an article are the IP-address of the author and the User Agent of the browser they used to place the comment. pre_comment_* hooks WordPress has pre_comment_* hooks which can …
Continue reading “Keep WordPress comment_agent and comment_user_IP empty with hooks”
How to delete files with a certain extension from a folder and all of its subfolders
First, browse to the folder in which you want to delete files with a specific extension cd /path/to/folder Then delete the files with the extension .jpg find . -type f -iname \*.jpg -delete . tells to start searching in the current folder. -type f tells find only to look for files. -iname makes the search …
Zip specific files in a directory
zip -R zipfile.zip ‘*.jpg’
Specifieke CSS selector voor uitgaande domeinnamen
Ik ben constant bezig om mijn weblog over fotografie te verbeteren. Vandaag had ik weer een nieuw idee: bij elke uitgaande link wil ik een icoontje wat aangeeft dat het een externe link is. Daarvoor moet ik verschillende CSS selectors gebruiken om het gewenste doel te bereiken. Na zoeken kwam ik op de volgende code …
Continue reading “Specifieke CSS selector voor uitgaande domeinnamen”
Detect changing Public IP with PowerShell
I’m using an internet connection from an ISP called Telfort, and this week my public IP-address suddenly changed (without notice) which left meĀ unable to receive email for 6 hours. Sadly, it’s not possible to get a static ip-address with this ISP. To prevent future downtime I searched for a program that sends an email when …
Continue reading “Detect changing Public IP with PowerShell”
How to change WordPress default Email From Name and From Address
WordPress sends by default an email from wordpress@domainname.com with WordPress as sender name. This can be adjusted easily via a filter. Change the From Address The filter will change the From address from wordpress@ to the value you specify. function new_mail_from( $from_email ) { $from_email = ‘myownemail@domainname.com’; return $from_email; } add_filter( ‘wp_mail_from’, ‘new_mail_from’ ); Change …
Continue reading “How to change WordPress default Email From Name and From Address”
Improved code – Show related posts in WordPress without a plugin
A while ago I posted an article about showing related posts in WordPress without the use of a plugin. Recently I have found better code for this and I would like to share it with you <?php $tag_ids = wp_get_post_tags( $post->ID, array( ‘fields’ => ‘ids’ ) ); $args = array( ‘tag__in’ => $tag_ids, ‘post__not_in’ => …
Continue reading “Improved code – Show related posts in WordPress without a plugin”