Skip to content

Instantly share code, notes, and snippets.

View Branyac's full-sized avatar
😁

Sergio Monedero Branyac

😁
View GitHub Profile
@davidfowl
davidfowl / dotnetlayout.md
Last active November 13, 2024 13:19
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@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
@M0r13n
M0r13n / doh
Last active November 16, 2024 17:08
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