From: Edward Delaporte Date: Fri, 5 Jun 2020 18:50:16 +0000 (-0500) Subject: Added a command we need go get a token now, apparently. X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/42ff2406543af3995cc81c0a763e7aabf4078f8f?ds=sidebyside Added a command we need go get a token now, apparently. --- diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index d2fd450..a72d539 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -1,4 +1,11 @@ +# Courtesty of MKletz +# Get-ChildItem -Path 'C:\Repos' -Filter "*.psd1" -Recurse | ForEach-Object -Process { +# $Path = Split-Path -Path $_.Directory -Parent +# $env:PSModulePath = $env:PSModulePath + ";$($Path)" +#} +$env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'') + # Kali linux env $ENV:PATH +=":/home/delaport/development/flutter/bin" # Flutter in Kali under WSL @@ -24,6 +31,7 @@ function New-DockerRStudio() { } function Start-DockerRStudio() { docker start rpython + jupyter notebook list Write-Host "R Studio is running at http://localhost:8787/" Write-Host "Jupyter is running at http://localhost:8888/" } @@ -51,6 +59,11 @@ function Start-DockerJuiceShop() { Write-Host "Vulnerable Juice Shop running on 3000" } +function Start-DockerGrafana() { + docker run --rm -d --name=grafana -p 3001:3001 -user $ID --volume "C:\src\data:/var/lib/grafana" grafana/grafana + Write-Host "Grafana running on 3001" +} + # Import some home grown PowerShell modules, if they are installed. $modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1") $modPaths | ForEach-Object {