DEV Community

Cover image for Weekly 0060
Emanuele Bartolesi
Emanuele Bartolesi

Posted on

1

Weekly 0060

Monday

Today was a busy day at the office with my colleagues. We had a meeting where I presented the Azure Data Faker project, which is a tool that generates realistic fake data for testing and development purposes. I explained how it works, what features it has, and how it can benefit our clients. The presentation went well and I received some positive feedback and constructive suggestions from my team. I was happy with the outcome and proud of my work.

Tuesday

Post on blog: https://dev.to/this-is-learning/how-to-unleash-the-power-of-multithreading-in-javascript-with-web-workers-20m5

https://res.cloudinary.com/practicaldev/image/fetch/s--weIlnwoF--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3ai3dqb1vr4w02z8ja7.png

During the day I did a lot of calls for Branplane.
The first one with Marta in the early morning to talk about the next steps for Brandplane and other with potential customers.

I also had a call with a new startup to become the new CTO. Let’s see in the next days/weeks.

Wednesday

Clean up desktop and temporary files from my Desktop.
Update my PowerShell script to update my local GitHub projects and cleanup the directory:

$branches = ("master", "main", "develop", "dev")
# get all directories in the current directory (just the first level)
$repos = Get-ChildItem -Path . -Filter .git -Recurse -Depth 1 -Force -Directory | Select-Object -expandproperty fullname
function Update-Repos {
Push-Location ".."
$branch = &git rev-parse --abbrev-ref HEAD
Write-Host "Current branch:" $branch
if ($branches -Contains $branch) {
if (git status --porcelain | Where-Object { $_ -match '^\?\?' }) {
# untracked files exist
Write-Host "There are untracked files" -ForegroundColor DarkYellow
}
elseif (git status --porcelain | Where-Object { $_ -notmatch '^\?\?' }) {
# uncommitted changes
Write-Host "There are uncommitted changes" -ForegroundColor DarkYellow
}
else {
# all clear
$branch = &git rev-parse --abbrev-ref HEAD
$head = &git rev-parse HEAD
$origin = &git rev-parse origin/HEAD
if ($head -ne $origin) {
Write-Host "Pulling changes on branch:" $branch -ForegroundColor Green
git pull
}
else {
Write-Host $branch "is up to date" -ForegroundColor Green
}
}
}
else {
Write-Host "Not one of the default branches. Pull it manually." -ForegroundColor Yellow
}
Pop-Location
}
Write-Host "Starting..." -ForegroundColor Green
Foreach ($i in $repos) {
# https://www.git-tower.com/learn/git/faq/cleanup-remote-branches-with-git-prune
Write-Host "Git fetch prune:" $i
Push-Location $i
git fetch --prune
Update-Repos
Pop-Location
Write-Host "----------------------------------------------------" -ForegroundColor White
}
Write-Host "Your GitHub folder is up to date." -ForegroundColor Green
Write-Host "----------------------------------------------------" -ForegroundColor White
Write-Host "----------------------------------------------------" -ForegroundColor White
Write-Host "Removig bin & obj folders" -ForegroundColor White
Get-ChildItem .\ -include bin,obj -exclude node_modules -Recurse | ForEach-Object ($_) {
Write-Host "Removing:" $_.fullname -ForegroundColor Red
remove-item $_.fullname -Force -Recurse
}
Write-Host "All bin & obj files and folders are removed." -ForegroundColor Green

In the afternoon I have packed all my stuff for traveling in the next ten days. I will write a blog post about what I bring with me for 3 conferences in 10 days and a few days of remote working.

Thursday

Bank Holidays in DACH area!

Mood: 💸

Friday

After lunch a had an important meeting (super secret) and after that meeting I went to the venue of the first conference I will have tomorrow.
I am one of the organizers of Collabdays Italy 2023 and we had to check all the stuff to the venue, pack some speakers gifts and other accomodations for everyone.
In the evening we had the speakers dinner.

Mood: ☠️


Are you interested in learning GitHub but don't know where to start? Try my course on LinkedIn Learning: Learning GitHub.

LinkedIn Learning


Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out 🙂

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more