Skip to content

Instantly share code, notes, and snippets.

@tiagosomda
tiagosomda / posh-git-profile-prompt.md
Created April 9, 2024 19:21
posh-git profile prompt
Import-Module posh-git

function prompt {
    $origLastExitCode = $LASTEXITCODE

    $prompt = "$($ExecutionContext.SessionState.Path.CurrentLocation)" 
    $prompt += "`n"
    if ($status = Get-GitStatus -Force) {
        $prompt += "["

Random Stand Up Order

I created a little script to break up the order in which we give updates in our standup.

getting random order by with sections

# Random Stand Up Row Call Order divided by sections
##################################################################
# instead of purely random standup order,
# I want to go through the standup in a specific sections
# (leads, dev, pms, and people that only show up sometimes)
@tiagosomda
tiagosomda / gito-command-in-bash.md
Created March 11, 2021 05:33
gito alias in bash

'gito' alias in bash

This is an alias I find useful to have in my dev environment.
I worked with a lot of different people in different projects and in different git repositories.
so I am often going to the repo's website to give people reference to code, so this command makes it easy to quickly get to the repo's website.

## add this to your .bashrc or .profile file
alias gito="browse_to_git_repo"
browse_to_git_repo() {
 # this assumes the remote origin url is using an ssh url

Foundry VTT Linux Server Setup

Create Linux VM

  • vm settings to be determined
  • add inbound port rule
    • source : *
    • destination : 24670
    • protocol : TCP

Install Tools on VM

Chromium Launcher Options

There are some sites that I like having on my taskbar as if they were applications.
You can easily do that by creating a shortcut to your chromium exe (chrome, edge, vivaldi, etc) and append the following option:
--app="your website address goes here"

--app tells it to open the site in "app mode"
then you just pass the website address

Here is an example of my shortcut target:

@tiagosomda
tiagosomda / useful-commands.md
Last active May 25, 2019 01:02
Useful Commands

Computer model

  • wmic bios get serialnumber
  • wmic csproduct get name, identifyingnumber
@tiagosomda
tiagosomda / ps-sln-start.ps1
Last active March 5, 2022 18:11
Powershell Profile (git and visual studio shortcuts)
## include this on your powershell profile
function title
{
param([string] $title )
$Host.UI.RawUI.WindowTitle = $title
}
function refreshenv
{
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
@tiagosomda
tiagosomda / traveling-tips.md
Last active June 9, 2019 20:09
Traveling Tips

Travelin Tips

This is a quick set of tips I am writing for a friend.

Levels of planning

  1. You can plan every city, hotel/hostel, and activity for your trip.
  2. You can just pick a date to leave and and date to come back and decide everything on the go.
  3. (my fav) Pick the cities, one or two main things I want to see at each city and where I want to stay (hotel/hostel)

Where do I like staying?

I usually like hostels. Particularly, a hostels that has a bar as well.