LouWii's Blog

< Web developer & geek stuff />

Full blog posts written by me, without all this Twitter stuff.

Cheap chinese DB killer – exhaust muffler review

Proper review a cheap chinese product: this time, it’s a DB killer (or exhaust silencer) that you can easily find on Aliexpress or Banggood. It’s cheap, but is it any good?

Continue reading

Cheap chinese motorcycle license plate mount review

Cheap chinese product reviews:the first of the serie is a CNC aluminum license plate mount for motorcycle that you can easily find on Aliexpress or Banggood. It’s cheap, but is it any good?

Continue reading

DIY: Electric Skateboard / Longboard

I’ve been commuting by bike for more than 3 years now, and I like it, even if I live in a city where it rains quite a lot… During the last few years, I’ve seen electric skateboards becoming more and more popular and I really would like to try and see if it’s a good alternative to commuting by bike (plot twist, they can’t be used on public space where I live, but it’s tolerated). Unfortunately, the good models are above my budget, but I think I found a solution. (this post is under ongoing edit)

Continue reading

Split your Redux actions into several files

I’m currently working on a React project using Redux. I was putting all my actions into one file, but it quickly became unmanageable. Weirdly, I’ve had a hard time to find a nice example showing up how to split all your actions into different files. So I’m sharing how I’ve set it up, as it might help a few people out there.

I’ve divided my actions into several files:

  • authActions.js
  • postActions.js
  • userActions.js

My actions look like this

I then have a actionCreators.js files that export all actions at once.

And then, I can import all actions at once:

But you can also import only the actions needed, of course 😉



Check an SSL certificate against the server private key and CSR

When working with SSL certificates, it can be handy to check that the certificate you got (.crt file) properly corresponds to the private key (.key file) and the certificate request (.csr file).

Just use those commands :

They will output a string composed of numbers. All 3 of them need to be the same in order for your certificate to work properly on your server.

It’s as simple as that.


« Older posts

© 2018 LouWii's Blog

Theme by Anders NorenUp ↑