]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
attempted airflow run
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 759d65518ced91a7f5493ef534124d06e3266009..8ae1eb412d1d4e99d51cc40666af518b2f4485ec 100644 (file)
@@ -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
 
 # 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
 }
 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/"
 }
   Write-Host "R Studio is running at http://localhost:8787/"
   Write-Host "Jupyter is running at http://localhost:8888/"
 }
@@ -51,12 +59,38 @@ function Start-DockerJuiceShop() {
   Write-Host "Vulnerable Juice Shop running on 3000"
 }
 
   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.
 # Import some home grown PowerShell modules, if they are installed.
-$modPaths = @("C:\src\toybox\toybox.psm1")
+$modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1")
 $modPaths | ForEach-Object {
 $modPaths | ForEach-Object {
-  Write-Host $_
   $_ | Format-Table
   if(Test-Path -Path $_) {
     Import-Module $_
   $_ | Format-Table
   if(Test-Path -Path $_) {
     Import-Module $_
+    Write-Host "Loaded $_"
   }
   }
+}
+
+function Start-DockerPython3Bash {
+  docker run -it python /bin/bash
+}
+
+function Start-DockerPython2Bash {
+  docker run -it python:2-buster /bin/bash
+}
+
+function Stop-Docker {
+  docker stop $(docker ps -a -q)
+}
+
+function New-DockerAirflow {
+  docker run -v ./:/etc/myscripts apache/airflow /bin/bash /etc/myscripts/airflow.sh
+
+}
+
+function Start-DockerAirflow {
+  docker run airflow -f webserver
 }
\ No newline at end of file
 }
\ No newline at end of file