Random Notes¶
Windows¶
Open Powershell in Admin mode
Set the following environment variables:
$envName= 'psgist'
$envValue= '64e4d4d22d4757be6e8e26fd39d760c9'
$env:psgist = $envValue
function Set-EnvVar($envName, $envValue) {
# param($envName, $envValue)
# $env:$name = $value
[System.Environment]:: ($envName, $envValue,[System.EnvironmentVariableTarget]::User)
write-host 'Environment variable set'
write-host '$envName: $envValue'
}
Set-EnvVar $envName $envValue
echo $env:psgist
$name = "amr"
$value = "smells"
function Set-LocalVar($name, $value) {
# parm($name, $value)
write-host "$name $value"
}
Set-LocalVar amr smells
Navigate to Profile home directory
Download $Profile¶
function Git-profile {
$gitUser ="bamr87"
Write-Output $env:psgist
$masterProfile = "Microsoft.PowerShell_profile.ps1"
$url = "https://gist.githubusercontent.com/$gitUser/$env:psgist/raw/$masterProfile"
$FileName = Split-Path $profile -Leaf
$FilePath = Split-Path $profile
$FullPath = "$FilePath\$FileName"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile($url,$FullPath)
}
function Restart-Powershell {
Start-Process powershell
exit
}
restart powershell function
Linux¶
MacOS¶
Importing and exporting homebrew packages
{% raw %}
<div class="sidebar__top">
<a href="'''liquid{{site.github.repository_url}}'''/blob/gh-pages/{{page.name}}">
<i class="fab fa-github-square"></i>
</a>
<a href="vscode://file{{ site.local_git_pc}}/{{ site.local_repo }}/{{ page.path }}">
<i class="fas fa-laptop-code"></i>
</a>
<a href="vscode://file{{ site.local_git_mac}}/{{ site.local_repo }}/{{ page.path }}">
<i class="fas fa-laptop-code"></i>
</a>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a>
</div>
{% endraw %}
Features¶
Hover Notes¶

Paste images in Markdown¶
Autoscale images¶
Render LaTeX from markdown¶
add script to head
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
MathJax¶
\[\begin{equation} \phi = \frac{1+\sqrt{5}}{2} \end{equation}\]
$$ \phi = \frac{1+\sqrt{5}}{2} $$ is the golden ratio
\[\begin{align} \phi = \frac{1+\sqrt{5}}{2} \end{align}\]
Auto Name Code Snippet¶
# Conversion
markdown: kramdown
highlighter: rouge
syntax_highlighter: coderay
# lsi: false
# excerpt_separator: "\n\n"
# incremental: false
# Markdown Processing https://jekyllrb.com/docs/configuration/markdown/
kramdown: # https://kramdown.gettalong.org/options.html
input: GFM
header_offset: 2
# hard_wrap: false
auto_ids: true
# footnote_nr: 1
# entity_output: as_char
# toc_levels: 1..6
# smart_quotes: lsquo,rsquo,ldquo,rdquo
# enable_coderay: false
```
## Keyboard shortcuts
[MS WOrd](https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-word-95ef89dd-7142-4b50-afb2-f762f663ceb2#bkmk_navigatewin)
## Gallery
```html
{: .img-fluid }
adding {: .img-fluid } to a list of images will add it to the <p> tag.
See _scss/it-journey/it-journey.scss
Examples¶

this is a block quote
Note
this is a note
Commands¶
mkdocs new [dir-name]- Create a new project.mkdocs serve- Start the live-reloading docs server.mkdocs build- Build the documentation site.mkdocs -h- Print help message and exit.
Project layout¶
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
Icons with bootstrap¶
https://icons.getbootstrap.com/#install

OS Based instructions¶
These instructions are pertinent to Mac users.
These instructions are pertinent to Linux users.
These instructions are pertinent to Windows users.