Skip to content

Instantly share code, notes, and snippets.

/* Left-Align CSS for Obsidian (Live Preview) */
/* Required for use: Disable "Readable Line Length" (this snippet will replicate its function but more customizable) */
/* CodeMirror 6 changes some of the divs used for content in Obsidian, so this snippet just use the newest */
/* Live Preview */
.cm-content {
margin-left: 0;
max-width: 80%;
}
@kjentech
kjentech / RobertSafeFactory.ps1
Last active December 7, 2021 11:39 — forked from infamousjoeg/RobertSafeFactory.ps1
CyberArk Safe Search & Permission Granting
#Requires -Modules psPAS
[CmdletBinding()]
param (
[Parameter( Mandatory = $true, ParameterSetName = "PredefinedSafes")]
[string[]]
$SafeName,
[Parameter( Mandatory = $true, ParameterSetName = "SearchForSafes")]
[string]$SearchForSafes,
@kjentech
kjentech / cmgcertificatedmz.ps1
Created October 20, 2021 06:19
cmgcertificatedmz.ps1
$templateName = "WorkstationAuthentication"
$clientnameNoFQDN = "COMPUTERNAME01"
$suffix = "contoso.com"
$outfolder = "\\server\share\dmzClientCerts"
$pass = (ConvertTo-SecureString -String 'Pa$$w0rd' -Force -AsPlainText)
#no_touchy
$subjectName = "CN=$($clientnameNoFQDN).$suffix"
$DNSSANName = "$clientnameNoFQDN.$suffix"
$certStore = "cert:\LocalMachine\My"