mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
🍎: Add script and specify gdb version
This commit is contained in:
parent
7d933a0b16
commit
e4500181e4
3 changed files with 20 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -10,6 +10,8 @@ nvim/data
|
||||||
nvim/lazy-lock.json
|
nvim/lazy-lock.json
|
||||||
nvim/lazyvim.json
|
nvim/lazyvim.json
|
||||||
test/
|
test/
|
||||||
|
test.*
|
||||||
*.gz
|
*.gz
|
||||||
*.tar
|
*.tar
|
||||||
|
*.tgz
|
||||||
*.zip
|
*.zip
|
||||||
|
|
@ -92,6 +92,7 @@ alias c=code
|
||||||
# Misc #
|
# Misc #
|
||||||
|
|
||||||
alias cf=cfiles
|
alias cf=cfiles
|
||||||
|
alias gdb=aarch64-elf-gdb
|
||||||
|
|
||||||
### Functions ###
|
### Functions ###
|
||||||
|
|
||||||
|
|
|
||||||
17
powershell/scripts.ps1
Normal file
17
powershell/scripts.ps1
Normal 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 "| $_ |"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue