Skip to content

Instantly share code, notes, and snippets.

View HeitorAugustoLN's full-sized avatar

Heitor Augusto HeitorAugustoLN

  • Brasil
  • 06:33 (UTC -03:00)
View GitHub Profile
$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!"
@HeitorAugustoLN
HeitorAugustoLN / RECOMMENDED_SWAP.md
Last active March 25, 2023 12:50
Recommended swap size for your linux
{
// 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,
live_config_reload: true
background_opacity: 0.9175
window:
title: Terminal
dynamic_title: false
font:
normal:
family: Fira Code
style: Regular
bold:
@HeitorAugustoLN
HeitorAugustoLN / clone-all-repos.sh
Created July 27, 2020 02:31
A shell script that clones all my repositories on github
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
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;