Skip to content

Instantly share code, notes, and snippets.

View thluiz's full-sized avatar

Thiago Luiz Silva thluiz

View GitHub Profile
@thluiz
thluiz / winget-basic-packages.ps1
Last active April 20, 2025 14:52
Winget Minimal Packages
winget install nordvpn Bitwarden.Bitwarden Obsidian.Obsidian Microsoft.VisualStudioCode Schniz.fnm Beeper.Beeper JanDeDobbeleer.OhMyPosh Microsoft.PowerToys 7zip.7zip Hugo.Hugo.Extended Inkscape.Inkscape GIMP.GIMP.3 dotPDN.PaintDotNet Spotify.Spotify Evolus.Pencil IrfanSkiljan.IrfanView IrfanSkiljan.IrfanView.PlugIns KDE.Krita WinDirStat.WinDirStat Ngrok.Ngrok StefansTools.grepWin WinMerge.WinMerge vim.vim Microsoft.SQLServer.2022.Developer Microsoft.SQLServerManagementStudio Microsoft.PowerShell Microsoft.Sysinternals.ProcessExplorer StefansTools.grepWin --accept-source-agreements --silent --accept-package-agreements
@thluiz
thluiz / userChrome.css
Created October 24, 2022 14:25
Firefox - Hide Title Bar
.tabbrowser-tab {
visibility: collapse;
}
.titlebar-button {
height: 27px !important;
}
#nav-bar {
margin-top: -42px;
margin-right: 140px;
@thluiz
thluiz / post-test-markdown-01.cs
Last active April 16, 2022 13:05
Testing post markdown
namespace minimal;
public void Main()
{
Console.WriteLine("test");
}
{"version":1,"resource":"file:///c%3A/st/src/Directory.Packages.props","entries":[{"id":"cSa5.props","timestamp":1661369240480}]}
@thluiz
thluiz / profile.ps1
Created February 23, 2020 12:57
Powershell basic profile and alias
#$GitPromptSettings.DefaultPromptWriteStatusFirst = $true
#$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
#$GitPromptSettings.DefaultPromptEnableTiming = $true
#$GitPromptSettings.DefaultPromptPrefix = ""
New-Alias -Name vi -Value 'C:\Program Files (x86)\vim\vim80\vim.exe'
New-Alias -Name vim -Value 'C:\Program Files (x86)\vim\vim80\vim.exe'
# Include this if you like a vim command line experience
@thluiz
thluiz / profile.json
Last active December 18, 2021 16:36
Windows Terminal Profile
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [],
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
{
"defaults":
{
"font":
@thluiz
thluiz / download-images-loop.ps1
Created November 13, 2019 09:21
Powershell script for download images in a range
$wc = New-Object System.Net.WebClient
For ($i=1; $i -le 100; $i++) {
$url = "https://membros.myvtmi.im/qrcode/http/cerimonias.myvtmi.im/cerimonia-$i"
$wc.DownloadFile($url, "c:\tmp\cerimonia-$i.png")
}
@thluiz
thluiz / ChocolateyMinimalPackages.ps
Last active May 2, 2020 15:31
Chocolatey minimal packages
choco install -y irfanview 7zip.install checksum firacode slack paint.net inkscape gimp irfanview-shellextension irfanviewplugins spotify nuget.commandline soapui pencil krita windirstat ngrok
choco install -y archive archiver grepwin procexp winmerge vim bat powertoys evernote nodejs.install audacity zoom-client powershell-core sql-server-management-studio zoomit visualstudio2019community
choco install visualstudiocode-insiders --pre -y
{"lastUpload":"2021-07-10T03:58:02.482Z","extensionVersion":"v3.4.3"}
@thluiz
thluiz / sql-server-row-number-performance.sql
Last active February 14, 2018 14:31
Trying to compare multiple implementations of dynamic ordering in sql server
create table #test_data(col1 varchar(100), col2 varchar(100))
declare @i int = 0
while (@i < 1000000)
begin
insert into #test_data(col1, col2)
values ('col1_' + right('00000000' + cast(@i as varchar(9)), 9), CONVERT(varchar(255), NEWID()))
set @i = @i + 1
end