Skip to content

Instantly share code, notes, and snippets.

View Branyac's full-sized avatar
😁

Sergio Monedero Branyac

😁
View GitHub Profile
@PlagueHO
PlagueHO / ICloneable_Class_PowerShell_Finished.ps1
Created March 11, 2016 01:21
Creating an ICloneable class in PowerShell, with the Clone method implemented.
class Car:ICloneable {
[Object] Clone () {
$NewCar = [Car]::New()
foreach ($Property in ($this | Get-Member -MemberType Property))
{
$NewCar.$($Property.Name) = $this.$($Property.Name)
} # foreach
return $NewCar
} # Clone
[String] $Make
@davidfowl
davidfowl / dotnetlayout.md
Last active April 14, 2024 15:02
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@M0r13n
M0r13n / doh
Last active April 15, 2024 10:35
Setup Cloudflare as a DoH (DNS over HTTPS) resolver on Mikrotik devices (RouterOS v7.0.2+)
# Temporarily add a normal upstream DNS resolver
/ip dns set servers=1.1.1.1,1.0.0.1
# CA certificates extracted from Mozilla
/tool fetch url=https://curl.se/ca/cacert.pem
# Import the downloaded ca-store (127 certificates)
/certificate import file-name=cacert.pem passphrase=""
# Set the DoH resolver to cloudflare