radusbriciu@proton.me
recursive git status powershell
Get-ChildItem -Directory -Recurse | ForEach-Object {
if (Test-Path "$($_.FullName)\.git") {
Write-Host "Directory: $($_.FullName)"
git -C $_.FullName status
Write-Host "`n"
}
}
recursive pip install powershell
Get-ChildItem -Directory | ForEach-Object {
if ((Test-Path "$($_.FullName)\setup.py") -or (Test-Path "$($_.FullName)\pyproject.toml")) {
Push-Location $_.FullName
pip install .
Pop-Location
}
}
recursive git status bash
find . -type d -name ".git" -execdir sh -c 'echo "Directory: $(pwd)"; git status; echo ""' \;
recursive pip install .sh
#!/bin/bash
# Loop through each subdirectory
for dir in */; do
# Check if setup.py or pyproject.toml exists in the subdirectory
if [[ -f "${dir}setup.py" || -f "${dir}pyproject.toml" ]]; then
echo "Installing package in $dir"
# Change to the directory, install, and then return to the original directory
(cd "$dir" && pip install .)
else
echo "No installable package found in $dir"
fi
done
balanced
powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
ultimate performance
powercfg /setactive e9a42b02-d5df-448d-aa00-03f14749eb61
pandoc README.md --pdf-engine=xelatex -o test.pdf