Skip to content

Instantly share code, notes, and snippets.

View BeRo1985's full-sized avatar

Benjamin Rosseaux BeRo1985

View GitHub Profile
BeRo1985 /
Created November 11, 2022 23:47 — forked from ianfabs/
How to Automount VHD on windows 10

So here's a pretty neat thing, I use VHD's to organize the space on my computer. You can too!

  • Click Start

  • Type in the search bar "Disk par" =>

  • Click first result =>

  • In the program, click "Action" =>

BeRo1985 / gist:c1373a49b8ed19499d8bc07eda95a382
Created April 30, 2018 05:26 — forked from lordkhonsu/gist:7eca5cbf0440589946c7
bash sed anonymize ip adresses in file

This line will replace the last octet of ipv4 adresses in a given file with a zero:

sed -i '' -e 's/(([0-9]{1,3}.){3})[0-9]{1,3}/\10/g'