flowchart TD %% Card Types ABI((Issue Card)) ABT{{Task Cards}} ABP{{Problem Card}} subgraph B1[Epic and Sprint] ABE{{Epic}} ABS{{Sprint}} ABE --> ABS end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%* | |
// From: https://forum.obsidian.md/t/quickadd-plugin/20032/70 | |
const responses = []; | |
let chc = ["Choice 1", "Choice 2", "Choice 3"] | |
if (!chc.includes("Done")) { | |
chc.push("Done"); | |
} | |
// Multiple selection suggester pattern | |
let r; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set environment variables | |
Set-Item -Path "env:PSProfileGistID" -Value '1ba47a193046115d3d14d28ee2c58f2f' | |
# Profile variables | |
$script:documents = (Join-Path $env:USERPROFILE 'Documents') | |
$script:gitdir = (Join-Path $script:documents 'git') | |
# Extend Path | |
$PathExt = @( | |
(Join-Path $env:APPDATA 'espanso') |
I hereby claim:
- I am jpbruckler on github.
- I am jpbruckler (https://keybase.io/jpbruckler) on keybase.
- I have a public key ASAeTMq_fAEoIfLMyjl8qc0BKUiTLGL1UrX06xUAIvH1Tgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-RandomPassword { | |
<# | |
.SYNOPSIS | |
Generates a random password. | |
.DESCRIPTION | |
Generates a random password that is $Length characters long and | |
contains a minimum of $MinSpecial special characters. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Shrug | |
{ | |
<# | |
.SYNOPSIS | |
Copies a shrug emoji to your clipboard. | |
.DESCRIPTION | |
Copies the shrug emoji to the clipboard. If this function is saved in a | |
file (like your $profile), the text encoding of that file needs to be | |
set to UTF-8 with BOM in order for all the characters to be displayed | |
propertly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Creates an HTTP header using BASIC authentication for use with Invoke-WebRequest or Invoke-RestMethod. | |
.DESCRIPTION | |
PowerShell 5 and below does not support BASIC authentication with Invoke-WebRequest and Invoke-RestMethod. | |
This function will create a header in the format necessary to send BASIC authorization strings for HTTP | |
requests. The returned header defaults to a hashtable, but with the -AsJson switch, it will return | |
properly formatted JSON. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Header = @{ | |
'Accept' = 'application/vnd.oasis.stix+json; version=2.0' | |
} | |
$BaseURI = 'https://cti-taxii.mitre.org/stix/' | |
$EnterpriseCollection = 'collections/95ecc380-afe9-11e4-9b6c-751b66dd541e/objects' | |
$Uri = '{0}{1}' -f $BaseURI, $EnterpriseCollection | |
$Response = Invoke-RestMethod -Headers $Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Open-MITRE | |
{ | |
<# | |
.SYNOPSIS | |
Opens MITRE ATT&CK wiki page for the given T code in the default browser. | |
.DESCRIPTION | |
For a given technique code (Tnnnn), opens the wiki page for the corresponding | |
MITRE ATT&CK technique in the default browser. | |
.PARAMETER TechniqueCode | |
The ATT&CK technique code. This can either be a 4 digit number, or the fully |