diff --git a/.gitignore b/.gitignore index 58064ae..6cea856 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ nvim/data nvim/lazy-lock.json nvim/lazyvim.json test/ +test.* *.gz *.tar +*.tgz *.zip \ No newline at end of file diff --git a/mac/.zshrc b/mac/.zshrc index 97462f8..f716d4f 100644 --- a/mac/.zshrc +++ b/mac/.zshrc @@ -92,6 +92,7 @@ alias c=code # Misc # alias cf=cfiles +alias gdb=aarch64-elf-gdb ### Functions ### diff --git a/powershell/scripts.ps1 b/powershell/scripts.ps1 new file mode 100644 index 0000000..49f47f0 --- /dev/null +++ b/powershell/scripts.ps1 @@ -0,0 +1,17 @@ +function CsvToMarkdown { + param( [string]$csv) + $counter = 0 + $column = $csv.Split("`n")[0].Split(",").Length + $aHeader = " --- |" + $header = "|" + $aHeader * $column + $csv.replace(",", " | ").Split("`n") | ForEach-Object { + if ($counter -eq 0) { + Write-Output "| $_ |" + $counter++ + Write-Output $header + } + else { + Write-Output "| $_ |" + } + } +} \ No newline at end of file