Skip to content

Instantly share code, notes, and snippets.

View willsantos's full-sized avatar

Wilson Santos willsantos

View GitHub Profile
@willsantos
willsantos / readme.md
Created December 6, 2022 20:12
Vscode Java Config

Minhas configurações vscode para java

@willsantos
willsantos / projetoDotNet.bat
Last active October 20, 2022 19:24
Script gerador de projeto DotNet versão windows
#Chame o script passando o nome da Solucao seguido do nome do projeto
#Irá criar dentro de uma pasta com o mesmo nome da solução.
mkdir %1
cd %1
dotnet new gitignore
dotnet new sln -n %1
@willsantos
willsantos / projetoDotNet.sh
Last active October 12, 2022 19:25
Script Gerador de projetos dotnet
#Chame o script passando o nome da Solucao seguido do nome do projeto
#Irá criar dentro de uma pasta com o mesmo nome da solução.
# Não esquecer de dar permissão de execução
mkdir $1
cd $1
dotnet new gitignore
@willsantos
willsantos / git-update-fork.sh
Last active September 29, 2022 00:47 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream URL_GIT_PROJETO_ORIGINAL
# Obtenha todos os branches deste novo remote:
git fetch upstream
# Certifique-se de que você está no branch main:
@willsantos
willsantos / api-angular-bootcamp.json
Last active July 31, 2022 22:26
Api mocked to Angular app
[
{
"Id": "06fd5aef-bb36-47bd-9419-c9dfd1f291b0",
"Name": "BANCO DE DADOS \u2013 PROJETO E IMPLEMENTA\u00c7\u00c3O",
"Price": 72.69,
"Quantity": 10,
"Category": "Banco de Dados",
"Image": "https://m.media-amazon.com/images/I/51E9+KPb9ML.jpg"
},
{
@willsantos
willsantos / apiCS
Last active July 20, 2022 20:35
mockApi.json
[
{
"customerId": "8505a811-6593-4438-9d7d-af8df6f92e97",
"code": "1",
"name": "Google LTDA",
"commercialName": "Google",
"status": "Active"
},
{
"customerId": "85d81fa2-33c7-40a4-97db-edac5843b1ef",
@willsantos
willsantos / PowerShell_Profile.ps1
Last active July 25, 2023 16:21
My PowerShell config
Import-Module -Name Terminal-Icons
#Import-Module -Name Terminal-Icons
#Functions
#function projetos { set-location "D:\OneDrive\Projetos" }
#Alias
new-alias rename rename-item
new-alias lsa get-childitem
@willsantos
willsantos / links-uteis.json
Last active March 16, 2022 22:20
Simulate server data
@willsantos
willsantos / mount-vhd.ps1
Last active July 4, 2024 02:09
Mount VHD
param([switch]$Elevated)
function Test-Admin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}
if ((Test-Admin) -eq $false) {
if ($elevated)
{