| 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 hidden or 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
| # I really like the way this is laid out | |
| # https://github.com/aldrichtr/poco/blob/master/src/ps1/poco.psd1 | |
| @{ | |
| ## Module Info | |
| ModuleVersion = '1.2.0' | |
| Description = "Interactive filtering command based on peco" | |
| GUID = 'fcdcab47-0505-4ba8-b845-538effc1d88e' | |
| # HelpInfoURI = '' | |
| ## Module Components |
This file contains hidden or 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
| local M = { | |
| "neoclide/coc.nvim", | |
| branch = "master", | |
| build = "yarn install --frozen-lockfile", | |
| } | |
| M.config = function() | |
| -- Some servers have issues with backup files, see #649 | |
| vim.opt.backup = false | |
| vim.opt.writebackup = false |
This file contains hidden or 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
| // vscode-keybindings for navigation with I/J/K/L and additional functionality with surrounding characters | |
| // Place your key bindings in this file to overwrite the defaults | |
| // ALT + I/J/K/L: up/left/down/right | |
| // ALT + SHIFT + I/J/K/L: mark text up/left/down/right | |
| // CTRL + J/L: send cursor to start/end of line | |
| // CTRL + ALT + J/L: send cursor to start/end of word | |
| // CTRL + ALT + U/O: send cursor to "wordPartLeft"/"wordPartRight" | |
| // CTRL + ALT + SHIFT + U/O: mark from cursor to "wordPartLeft"/"wordPartRight" | |
| // CTRL + ALT + Y: got to declaration |
This file contains hidden or 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
| # See https://github.com/gui-cs/F7Hisoty which replaces this |
This file contains hidden or 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
| #require -version 5.1 | |
| #Usage: iwr https://tinyurl.com/VSCodeServer | iex | |
| #Parameterized usage: & ([ScriptBlock]::Create((iwr https://tinyurl.com/VSCodeServer))) -Your -Options | |
| param( | |
| #Path to install the vscode binary to. This defaults to a folder in your Local AppData path. Must be writable by your current user without sudo | |
| [string]$InstallPath, | |
| #Installation architecture. This is normally autodetected. | |
| $Arch, | |
| #Installation platform. Normally autodetected. | |
| $Target = 'unknown-linux-gnu', |
This file contains hidden or 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 git@github.com | 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
.docxfiles 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 hidden or 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 hidden or 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 |