Skip to content

Instantly share code, notes, and snippets.

View carlos-regis's full-sized avatar
🎯
Focusing

Carlos Regis carlos-regis

🎯
Focusing
View GitHub Profile
@carlos-regis
carlos-regis / dart_aliases.ps1
Created October 7, 2024 12:43
PowerShell Dart Aliases
function Invoke-DartFixApply()
{
dart fix --apply
}
Set-Alias -Name dfapply -Value Invoke-DartFixApply
function Invoke-DartAnalyze()
{
dart analyze
}
@carlos-regis
carlos-regis / flutter_aliases.ps1
Last active October 7, 2024 12:37
PowerShell Flutter Aliases
# RUN
function Invoke-FlutterRun()
{
flutter run
}
Set-Alias -Name frun -Value Invoke-FlutterRun
# BUILD
function Invoke-FlutterBuild()
{
@carlos-regis
carlos-regis / .editorConfig
Created April 11, 2024 13:36 — forked from RealDotNetDave/.editorConfig
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated February 14, 2024
# dotNetDave's NEW coding standards book is available at: https://bit.ly/CodingStandards8
# Rockin' the Code World with dotNetDave (weekly live show): https://bit.ly/RockinCodeWorldShows
root = true
# All Files
[*]
// Stephen Toub Deep Dive on Async/Await
// https://www.youtube.com/watch?v=R-z2Hv-7nxk
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
// ------------------------------------------------------------
AsyncLocal<int> myValue = new();
List<MyTask> tasks = new();
for (int i = 0; i < 100; i++)
Set-Alias c Clear-Host
Set-Alias l Get-ChildItem
Set-Alias p pwd
Set-Alias s 'C:\Program Files\Sublime Text\sublime_text.exe'
function Clear-List
{
Clear-Host
Get-ChildItem
}
@carlos-regis
carlos-regis / dotnet_aliases.ps1
Last active October 7, 2024 12:37
PowerShell DotNet Aliases
#region BUILD
function Invoke-DotnetBuild([string]$name)
{
if([String]::IsNullOrWhiteSpace($name))
{
dotnet build
return
}
dotnet build $name
@carlos-regis
carlos-regis / docker_aliases.ps1
Last active October 7, 2024 12:32
PowerShell Docker Aliases
#############################
##### Container #####
#############################
### Info ###
function Get-DockerContainers {
docker ps
}
Set-Alias dps Get-DockerContainers
@carlos-regis
carlos-regis / git_aliases.ps1
Last active October 9, 2024 14:49
PowerShell Git Aliases
Set-Alias g git
function Invoke-GitStatus
{
git status --short --branch
}
Set-Alias gs Invoke-GitStatus
function Invoke-GitFetchOrigin
{
@carlos-regis
carlos-regis / Microsoft.PowerShell_profile.ps1
Last active October 7, 2024 12:30
PowerShell Profile
# Add VS Devenv
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
#### user interface ####
Import-Module -Name Terminal-Icons
oh-my-posh --init --shell pwsh --config 'C:\code\powershell\ohmyposh.json' | Invoke-Expression
#### auto complete && suggestions #####
Import-Module z
@carlos-regis
carlos-regis / dotnet.omp.json
Last active October 7, 2024 12:28
Oh My Posh config with dotnet
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [