Skip to content

Instantly share code, notes, and snippets.

View shanehoey's full-sized avatar
💭
I may be slow to respond.

Shane Hoey shanehoey

💭
I may be slow to respond.
View GitHub Profile
@shanehoey
shanehoey / locations.json
Created February 8, 2024 00:43
Azure Naming
[
{
"id": 1,
"name": "Australia Central",
"shortName": "auc"
},
{
"id": 2,
"name": "Australia Central 2",
"shortName": "auc2"
@shanehoey
shanehoey / New-SelfSignedCert.ps1
Last active September 10, 2023 10:17
Self Signed Certificates
[CmdletBinding()]
param (
[Parameter(mandatory=$true)]
[string]$cn,
[Parameter(mandatory=$false)]
[string]$san,
[Parameter(mandatory=$false)]
[string]$ip,
[Parameter(mandatory=$false)]
[string]$pfx = ".\cert.pfx",
@shanehoey
shanehoey / Overview.md
Last active August 4, 2023 08:44
Teams Survivable Branch Appliance

Teams Survivable Branch Aplliance

@shanehoey
shanehoey / readme.md
Created January 21, 2023 04:57
Certificates

Issue a manual certificate on Windows PKI and use it on an Audiocodes Gateway

Issue a manual certificate on Windows PKI and use it on an Audiocodes Gateway

certreq.exe -attrib "CertificateTemplate:webserver" -submit ssl.req
@shanehoey
shanehoey / new-adforest.md
Last active January 21, 2023 04:56
New AD Forest

New AdForest

$servername =       "dc01"
$domainname =       "example.com"
$netbios    =       "example"
$ipaddress =        "192.168.10.248"
$prefixlenght =     "24"
$defaultgateway =   "192.168.10.254"
@shanehoey
shanehoey / github.http
Last active August 22, 2022 07:25
github api
@owner = shanehoey
@repository = shanehoey
@token = {{ $processEnv GITHUBtoken }}
### Check rate limit
get https://api.github.com/rate_limit
Accept: application/vnd.github+json
Authorization: token {{token}}
### get user
@shanehoey
shanehoey / directrouting.ps1
Last active May 23, 2022 10:59
Direct Routing Audit
# Display
Get-CsOnlinePSTNGateway | Select-Object * | Format-list
Get-CsOnlinePstnUsage | Select-Object * | Format-list
Get-CsOnlineVoiceRoute | Select-Object * | Format-list
Get-CsOnlineVoiceRoutingPolicy| Select-Object * | Format-list
Get-CsVoiceRoutingPolicy | Select-Object * | Format-list
Get-CsTenantDialPlan | Select-Object * | Format-list
@shanehoey
shanehoey / brandX.md
Last active May 14, 2022 03:34
Snooey Theme syntax files

brand[x].Yaml Syntax

layout: &layout
  body:
    class:   # class
    style:   # style
  header:
 class: # class