Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
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
alias gh="open \`git remote -v | grep [email protected] | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`" |
This is an example of how to convert notes from OneNote into Markdown to use in other, less annoying Note applications. I am using PowerShell on Windows here, but other shell/scripting environments would work as well. If you want separate .md
files, you'll need to export your OneNote pages separately. Exporting a section, or a selection of pages creates a single .docx
file.
- Download and install Pandoc
- Export each of your note pages to a
.docx
(Word) format using OneNote export from the File menu - Gather all of these
.docx
files into a directory - Open directory in File Explorer
- Open Powershell from the File Explorer using File -> Open Windows Powersell
- Run the following command:
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
Install-Module @('PSWinDocumentation', 'PSWinDocumentation.AD', 'PSWriteWord', 'PSWriteExcel') | |
Import-Module PSWinDocumentation | |
Import-Module PSWinDocumentation.AD | |
# Import-Module DbaTools # (if you require SQL export) | |
# Those should automatically load | |
#Import-Module PSWriteWord | |
#Import-Module PSWriteExcel | |
#Import-Module ActiveDirectory | |
$Document = [ordered]@{ | |
Configuration = [ordered] @{ |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 | |
Install-Module Posh365 -force | |
Install-Module GPOZaurr -force | |
Install-Module Posh365 -force | |
Import-Module Posh365 -force | |
Import-Module GPOZaurr -force | |
Import-Module Posh365 -force |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 | |
Install-Module @('PSWinDocumentation', 'PSWinDocumentation.AD', 'PSWriteWord', 'PSWriteExcel') -force | |
Import-Module PSWinDocumentation -force | |
Import-Module ActiveDirectory -force | |
Import-Module PSWinDocumentation.AD -Force | |
Import-Module PSWriteWord -Force | |
if ($null -eq $ADForest) { | |
$ADForest = Get-WinADForestInformation -Verbose -DontRemoveEmpty | |
} |
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
using namespace System.Management.Automation | |
function Set-StandardMember { | |
[CmdletBinding()] | |
param( | |
[parameter(Mandatory, ValueFromPipeline)] | |
[object] $InputObject, | |
[parameter(Mandatory)] | |
[string[]] $DefaultProperties |
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
version: 1 | |
schemas: | |
- id: pro | |
desc: project | |
parent: root | |
namespace: true | |
template: | |
id: pro.template | |
type: note | |
children: |
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
version: 1 | |
schemas: | |
- id: pro | |
desc: project | |
parent: root | |
namespace: true | |
template: | |
id: pro.template | |
type: note | |
children: |
- Create a personal workspace using Initialize Workspace
- initialize with a blank vault
- if you want to version control the vault, run Vault Convert to add a git repository to this vault
- repeat this process with other vaults as needed (we recommend just starting off with a single vault), see reasons for going multi-vault here
- add your workspace to version control by running the following:
- Initialize a git repo
- initialize with a blank vault