Skip to content

Instantly share code, notes, and snippets.

View roelderickx's full-sized avatar

Roel Derickx roelderickx

View GitHub Profile
@roelderickx
roelderickx / HOWTO decline legitimate interest.md
Last active October 11, 2025 13:05
Decline all legitimate interests at once

From a comment on reddit to the question whether or not to allow Legitimate Interest:

That's non-sense. You can't ask for consent for another legal reason, and Legitimate Interest is a legal reason. If you see "Legitimate Interest", turn it off : that means they HAD to require consent, and know they have no justification to even show.

THEY consider that making money is the legitimate interest of a business, while the GDPR doesn't consider that a legal legitimate interest to violate privacy. (I'm not totally sure if it's legal to change the meaning of a legal term to match a common usage, but I'm not a lawyer.)

Theoretically not giving consent should require the same effort as giving consent, but unchecking all Legitimate Interest checkboxes is usually a daunting task. This can easily be automated by creating a bookmark: choose a name to your liking and let it point to `javascript:Array.from(documen

@roelderickx
roelderickx / remove_temp_files.sh
Created September 16, 2023 10:02
Remove all temporary files (*~) recursively
#!/bin/bash
find . -name '*~' -print0 2> /dev/null | xargs -0 rm
@roelderickx
roelderickx / campsites.sql
Created November 11, 2021 15:13
Select all campsites within a given distance from a given coordinate
-- replace lon, lat with the coordinate you want to search and dist with the distance in metres
select name, way, tags from planet_osm_point where ST_DWithin(way, ST_Transform(ST_SetSRID(ST_Point(lon, lat), 4326), 3857), dist) and tourism = 'camp_site';
@roelderickx
roelderickx / HOWTO cygwin powershell.txt
Created October 9, 2020 10:12
Start cygwin in a PowerShell window
Given cygwin is installed in C:\cygwin64, create a shortcut as follows:
- target: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "C:\cygwin64\bin\bash --login"
- start in: %HOMEDRIVE%%HOMEPATH%