Skip to content

Instantly share code, notes, and snippets.

View BjornW's full-sized avatar

BjornW BjornW

View GitHub Profile
@BjornW
BjornW / gist:8a5566ebe33e767101df8ae7a01295f9
Created June 30, 2021 11:03
In reactie op Internet consultatie https://www.internetconsultatie.nl/terrorismebestrijding Wet verwerking persoonsgegevens coördinatie en analyse terrorismebestrijding en nationale veiligheid
Geachte meneer/mevrouw,
Een heftig en omstreden voorstel dat gaat over de verwerking van gevoelige persoonsgegevens van iedereen in Nederland. Een constructieve reactie daarop kan alleen gegeven worden na een grondige bestudering. Daarvoor zijn vijf werkdagen niet alleen niet genoeg, ze zijn een schoffering van de tegenmacht. Dit kan en moet beter. U heeft hiervoor de mogelijkheden, door deze consultatie opnieuw te doen of de reactietermijn te verlengen en iedereen die wil reageren daarvoor de tijd te geven. Zoals al meerdere organisaties (Amnesty International, Waag, Bits of Freedom etc) publiekelijk hebben betoogd.
Hun voorstel? Minstens vier weken. Ik sluit me daar bij aan. Dat is geen onredelijke eis, maar gewoon de minimumtermijn die hiervoor staat. En dat heeft een reden.
In de hoop dat u mijn en andere reacties mee zult wegen en hierop de juiste beslissing neemt,
@BjornW
BjornW / gist:e460e519e51d5eec6966176455469357
Created January 9, 2019 09:57
Xiaomi Redmi Note5 Pro notes
Q: How to boot into TWRP after it being installed?
A: Poweroff the phone. Then press power button while keeping the volume up pressed as well until the TWRP logo is shown
<?php print_r(__FILE__); ?>
@BjornW
BjornW / gist:55c267e4ad436430d1eb6ff4a81dd472
Created May 16, 2018 15:56
Make Nautilus use list-view on Ubuntu 16.04 with i3wm as window manager
Type this into the terminal:
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
@BjornW
BjornW / waarom-ssl-certificaat.md
Created December 18, 2017 21:36
Waarom een SSL certificaat

hier

@BjornW
BjornW / wachtwoorden-in-email.md
Last active February 3, 2024 05:57
Waarom wachtwoorden in een email versturen niet verstandig is.md

Organisaties die emails versturen met daarin je gebruikersnaam en wachtwoord realiseren zich blijkbaar niet dat dit een slecht idee is. In dit stukje probeer ik kort en bondig uit te leggen waarom het versturen van wachtwoorden of andere gevoelige informatie per email onveilig is.

Ik gebruik hierbij als metafoor 'de Post' zoals die al honderden jaren acief is

Emails zijn eigenlijk net ansichtkaarten

Email is te vergelijken met een ansichtkaart. Een ansichtkaart heeft geen envelope. Het adres en de boodschap zijn door iedereen die de ansichtkaart verwerkt direct te lezen. Een ansichtkaart wordt daarom niet gebruikt voor gevoelige informatie. Een wachtwoord op een ansichtkaart zetten is daarom onverstandig omdat iedereen dit direct kan lezen.

Om ietwat gevoeligere informatie te versturen gebruik je een envelope. Een envelope bevat een ontvangst adres en eventueel een retour adres. In de envelope stop je de brief of kaart. Daarmee blijft de boodschap met gevoeligere

@BjornW
BjornW / gist:a77903b00977c1e27d5dc29f50895036
Created December 15, 2017 10:03
Rewrite rules for WordPress Multisite (4.9.1) with Nginx used in BD
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
## See also:
## https://easyengine.io/wordpress-nginx/tutorials/multisite/subdirectories/minimal/
@BjornW
BjornW / Howto-install-Arduino-1.8.5-on-Ubuntu-16.04LTS.md
Last active March 28, 2018 18:47
Install Arduino 1.8.5 on Ubuntu 16.04
  1. Download Arduino IDE from https://www.arduino.cc/download_handler.php
  2. Extract arduino-1.8.5-linux64.tar.xz
  3. Copy arduino-1.8.5 into /opt/arduino
  4. Go into /usr/local/bin, e.g. cd /us r/local/bin
  5. Make a symlink from /usr/local/bin/arduino to /opt/arduino/arduino-1.8.5/arduino, e.g. ln -s /opt/arduino/arduino-1.8.5/arduino arduino

After a bit of poking around svgo:

  1. in /usr/bin is a commandline node apps installed, which is more like a shell script calling node. E.g svgo
  2. libs used are installed in /usr/lib/node_modules, which are referenced from the svgo shell script
@BjornW
BjornW / howto-install-npm-ubuntu-16.04.md
Last active November 29, 2017 20:18
Install npm on Ubuntu 16.04

I'm installing the current LTS release of nodejs and npm, which is v8.9.1 and 5.5.1 on Ubuntu 16.04 LTS

  1. Download the setup script: https://deb.nodesource.com/setup_8.x and make sure you understand what it does before continuing...
  2. Chmod +x the setup script to make it an executable. Mine is called setup_8.x and I have renamed it setup_8.x.sh
  3. Run the script with sudo, it will add another repository to your sources.list.d and update apt's cache.
  4. Install the nodejs packages as the script states using: sudo apt-get install nodejs
  5. Type nodejs --version to get your nodejs version and type npm -v to get your npm version.

If all went well it should be similar to mine.