Bart Dorlandt

423 posts

Bart Dorlandt banner
Bart Dorlandt

Bart Dorlandt

@BartOmation

Moved to 🦋, https://t.co/FN3YvTzCf0

Amersfoort, The Netherlands Katılım Mayıs 2015
239 Takip Edilen93 Takipçiler
Bart Dorlandt
Bart Dorlandt@BartOmation·
Depending on the pipeline system you're using, you might need to specify the commands to be executed yourself (jenkins, gitlab, ...) Hang on... You just created that beautiful #taskfile to make your life easier... Why not make your pipeline easier, by just executing your tasks
Bart Dorlandt tweet mediaBart Dorlandt tweet media
English
0
0
0
80
Bart Dorlandt
Bart Dorlandt@BartOmation·
Using parallelisation without thinking! That is what you can achieve with the `deps` keyword in #task. See the example on how to run your lint, scan and test in parallel by just running `task check`. No complications, just actions!
Bart Dorlandt tweet media
English
0
3
7
752
Bart Dorlandt
Bart Dorlandt@BartOmation·
You are expanding your #taskfile and realise that there a couple of tasks with dependencies on a build process. Though you don't want to rebuild it, if nothing changed. #Task got you covered! Using sources and generates to monitor the source files and if the generated file exists
Bart Dorlandt tweet media
English
0
2
6
648
Bart Dorlandt
Bart Dorlandt@BartOmation·
How to deal with #task when needing a dynamic variable or one that is stored in a file or from the output of another command... Variables can be assigned using the 'sh' key when assigned a variable. Allowing you to assign the output of any shell command. Lovely
Bart Dorlandt tweet media
English
0
0
0
24
Bart Dorlandt
Bart Dorlandt@BartOmation·
As mentioned in my previous post, occasionally you'll need to execute a command in multiple directory or differently said, need to execute a #task multiple times. Which may involve directories, files or any action essentially. A for loop is what we need 😀
Bart Dorlandt tweet media
English
0
0
0
19
Bart Dorlandt
Bart Dorlandt@BartOmation·
You need to run a command for some sub-directories of your project... Doing this with make, you'd need to manually put your logic in to jump back up a dir. No thinking required with #task. Just add an entry to the array, it always starts from the #taskfile location.
Bart Dorlandt tweet media
English
1
0
0
57
Bart Dorlandt
Bart Dorlandt@BartOmation·
You have this beautiful #Taskfile helping you out. Though some systems use exec1 for a certain task, while the other use exec2. A concrete example could be 'docker-compose' vs 'docker compose'. Here is a way of working with that. ❯ task a -n task: [a] docker compose --help
Bart Dorlandt tweet media
English
0
0
0
62
Bart Dorlandt
Bart Dorlandt@BartOmation·
The debug capability in vscode/pycharm is great! I can't imagine people debug without it. I still see too many people not using the watch feature though. It is so nice to just have a few things in focus while diving in. I recommend to check it out
Bart Dorlandt tweet media
English
0
0
0
40
Bart Dorlandt
Bart Dorlandt@BartOmation·
Did you ever run into a #python project which you wanted to debug, but your breakpoints weren't respected... I had this the other day, having a project with pytest and pytest-cov. Apparently this messes up vscode. Mainly pytest-cov is the blocker. Try this for your launch.json.
Bart Dorlandt tweet media
English
0
0
0
35
Bart Dorlandt
Bart Dorlandt@BartOmation·
Something blew my mind today. In the tech community everyone has touched the jinja templating syntax at one point or another. Today I learned that the double curly braces in the template syntax are called "mustache", who knew? buff.ly/3CO7pyA :-{{
Bart Dorlandt tweet media
English
0
0
0
31
Bart Dorlandt
Bart Dorlandt@BartOmation·
In case you were at autocon2 and didn't had enough technology this week, my interview on BMP (BGP monitoring protocol) implementation just came out. With it you can kill some time on the way back home So a bit of shameless plug 😄 packetpushers.net/podcasts/heavy…
English
0
0
1
38
Roman Dodin
Roman Dodin@ntdvps·
It is quite cool to see X to be back to this OG Twitter vibe "hey ppl, I just had a dump" social network. No more tech marketing as it used to be, people moved to linkedin. With that, I wanted to say that Cilium hubble UI is overrated, I could never achieve with it anything I wanted to achieve. I think CLI is probably the way it is meant to be consumed
English
4
0
5
1.3K
Bart Dorlandt retweetledi
Pablo Galindo Salgado
Pablo Galindo Salgado@pyblogsal·
🐍💥Python 3.13.0 has been released! 🎉 This is the first version with 🧵experimental GIL-free mode, an experimental JIT compiler🔧, a slick new REPL 🖌️ and many new cool features! And it's faster, smarter, and more colorful than ever! 🚀 Get it here: python.org/downloads/rele…
English
18
368
1.3K
163.6K
Roman Dodin
Roman Dodin@ntdvps·
Booked a flight from AMS to SYD. 25h20m of travel time is partially why I opted in for it. Will be my longest flight journey to this date. I guess only NZ is further? (From ~non exotic destinations)
English
6
0
10
1.9K
Bart Dorlandt
Bart Dorlandt@BartOmation·
@ntdvps There must be a plugin for that in ohmyzsh or something. Like auto virtualenv enabling for python. 😉
English
0
0
1
32
Roman Dodin
Roman Dodin@ntdvps·
@BartOmation yeah, this is for cases when you know what expect the alias replace the original. In my case there is no additional magic besides that I use it with a specific inventory and this alias is not system wide, I `source` it when I enter the dir with the project
English
1
0
0
108
Roman Dodin
Roman Dodin@ntdvps·
The way I do my ansible ✅ hermetic reproducibility, same ansible version all the time ✅ zero install harassment. No deps hell ✅ OS agnostic, ~whenever I want to run - it runs ✅ Easy ansible version switch. Change a tag string and you're off And yes, I am building/maintaining these ansible containers for some recent Ansible versions that use different Python backends at github.com/srl-labs/ansib…
Roman Dodin tweet media
English
3
1
44
3.6K