🍎: Add script and specify gdb version

This commit is contained in:
js0ny 2024-08-27 13:12:35 +08:00
parent 7d933a0b16
commit e4500181e4
3 changed files with 20 additions and 0 deletions

2
.gitignore vendored
View file

@ -10,6 +10,8 @@ nvim/data
nvim/lazy-lock.json
nvim/lazyvim.json
test/
test.*
*.gz
*.tar
*.tgz
*.zip

View file

@ -92,6 +92,7 @@ alias c=code
# Misc #
alias cf=cfiles
alias gdb=aarch64-elf-gdb
### Functions ###

17
powershell/scripts.ps1 Normal file
View file

@ -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 "| $_ |"
}
}
}