Amount of RAM | Recommended swap space |
---|---|
<= 2 GB | 2x RAM |
2GB - 8GB | = RAM |
> 8GB | 0.5x RAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$years = @("2005", "2008", "2010", "2012", "2013", "2015+") | |
$arches = @("x86", "x64") | |
foreach ($year in $years) { | |
foreach ($arch in $arches) { | |
Write-Host "Installing Microsoft Visual C++ $year Redistributable ($arch)" | |
winget.exe install --id Microsoft.VCRedist.$year.$arch -e --silent | |
} | |
} | |
Write-Host "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Editor settings | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.folding": false, | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 17, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
live_config_reload: true | |
background_opacity: 0.9175 | |
window: | |
title: Terminal | |
dynamic_title: false | |
font: | |
normal: | |
family: Fira Code | |
style: Regular | |
bold: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CNTX={users}; NAME={HeitorAugustoLN}; PAGE=1 | |
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" | | |
grep -e 'git_url*' | | |
cut -d \" -f 4 | | |
xargs -L1 git clone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Spinner : IDisposable | |
{ | |
private const string Sequence = @"/-\|"; | |
private int counter = 0; | |
private readonly int left; | |
private readonly int top; | |
private readonly int delay; | |
private bool active; | |
private readonly Thread thread; |