- 7
- 25 300
Jordi Adoumie
เข้าร่วมเมื่อ 30 ต.ค. 2011
I like solving problems with technology.
You’ll occasionally find me in an IDE trying to piece things together.
You’ll occasionally find me in an IDE trying to piece things together.
Creating the BEST Advent of Code Workflow with PowerToys and WSL
In this video, I'm going to show off how to use some of the newest Power Toys utilities to improve your Advent of Code workflow this holiday season 🎄🧑🎄❄️.
Advent of Code: adventofcode.com/2024
PowerToys Docs: learn.microsoft.com/en-us/windows/powertoys/
AOCD Python Library: pypi.org/project/advent-of-code-data/
Setting Up Session ID: github.com/wimglenn/advent-of-code-wim/issues/1
one click magic: (0:00)
intro to advent of code: (1:07)
set up wsl aocd python library: (3:06)
powertoys magic New+: (8:00)
powertoys magic Workspaces: (9:59)
ITS ALIVE!: (13:04)
outro: (14:05)
Advent of Code: adventofcode.com/2024
PowerToys Docs: learn.microsoft.com/en-us/windows/powertoys/
AOCD Python Library: pypi.org/project/advent-of-code-data/
Setting Up Session ID: github.com/wimglenn/advent-of-code-wim/issues/1
one click magic: (0:00)
intro to advent of code: (1:07)
set up wsl aocd python library: (3:06)
powertoys magic New+: (8:00)
powertoys magic Workspaces: (9:59)
ITS ALIVE!: (13:04)
outro: (14:05)
มุมมอง: 756
วีดีโอ
Framework 16: The Laptop Designed to Be Taken Apart
มุมมอง 2K7 หลายเดือนก่อน
I just got the FW 16 as my new daily driver! I took some time to share the different configurations that I'm planning on using, going through the unboxing, and showing how to configure various modules on the computer - it's awesome. I hope you enjoy! intro: (0:00) config 1, 2 black spacers: (1:18) config 2, 2 color shift spacers: (1:33) config 3, 2 color shift spacers left aligned: (1:55) confi...
How to Customize WSL & CMD in Windows Terminal with Oh My Posh!
มุมมอง 12K9 หลายเดือนก่อน
We're going to fully customize WSL (Ubuntu Bash Shell) & CMD from scratch using Oh My Posh! If you haven't already setup PowerShell and would like to do so, check out my other video where I'll get you set up in just 5m: th-cam.com/video/yxzYixOmPHg/w-d-xo.html You can also check out how to build your own custom oh-my posh segment FROM SCRATCH: th-cam.com/video/NR7i0SKFbtI/w-d-xo.html Oh My Posh...
How does Sudo for Windows work?
มุมมอง 8K11 หลายเดือนก่อน
Windows has a new feature! In this video, Mike Griese and I will be discussing: 1. How to enable Sudo for Windows 2. A quick technical dive into the different configuration options If you'd like to learn more, you can check out the full blog post: [enter link here] You can also take a look at the Microsoft Learn docs: [enter link here] You can also check out the GitHub repository here: [enter l...
Setting up Adafruit RGB Board with Hello World Text for BEGINNNERS!
มุมมอง 1.1K11 หลายเดือนก่อน
Learn how to get started with the Adafruit Matrix Portal M4 and RGB Board. In just 10m, we will go from unboxing to lighting up the board with custom text. Adafruit RGB Board and Microcontroller: learn.adafruit.com/adafruit-matrixportal-m4/overview Install CircuitPython Libraries: learn.adafruit.com/adafruit-matrixportal-m4/install-circuitpython GitHub Gist with Final Code: gist.github.com/joad...
Make Windows Terminal Look AWESOME in Just 5 Minutes.
มุมมอง 1.4Kปีที่แล้ว
In just five minutes, we're going to go from your out of the box Windows Terminal look and feel to an AWESOME, colorful, informative & fully customizable experience. intro: (0:00) install oh-my-posh: (1:26) configure your shell: (2:00) IT'S ALIVE!: (3:16) Customizing Your Theme: (3:23) A Note About Nerd Fonts: (4:54) Check out the Oh My Posh Docs: ohmyposh.dev/ My Oh My Posh Theme: gist.github....
NBA Stats inside of Windows Terminal! Building an Oh My Posh Segment from Scratch.
มุมมอง 314ปีที่แล้ว
Get NBA schedule information stats for your favorite NBA team directly inside of your favorite shell! If you don't want to watch the full video on building this segment from scratch, check out the links included below for a blog post shorter video content on how to get setup with Oh My Posh. In this video I build an NBA Oh My Posh segment from scratch, so you can learn about building segments i...
Thnx was unaware of clink thanx
3:08 IS THAT A PUN?!
I like your tutorial, but I've found that for whatever reason, the NBA segment does not work on the most recent version of OMP.
@@JC-Alan can you share your configuration? I’ll look into it.
@@jordiadoumie1919 I was trying your theme, and the only part that didn't work was the NBA portion (I tried it in PowerShell and WSL). Interestingly, I did a clean install of OMP on my laptop and it works fine, so it's something on my end that I'll sort out. I appreciate it regardless 🙂
Thank you very much.
why am igetting ? instead of ubuntu emblem
@@alial-muhtaseb2977 you need to have a nerd font set up on your machine. I made another video explaining that process, but the TLDR is change your font to a nerd font in windows terminal in the settings (appearance)
Cool setup, I think you can do similar thing with tmux and bash scripts (specific window placement could be a little bit tricky tho). I see it can be applicable to other things like leetcodes, assignmenets or journaling as well. One thing that would be useful in this setup is probably another script (or shortcut) that closes all these windows when you are done xD
tmux with its persistent session could be a little bit faster to load and faster to quit imho
@@etterathe closing all the windows would be awesome. Definitely could be replicable with scripts - it’s nice to have a simple UI though for folks too. I’ll have to play around with tmux. I do love the automatic window placement though. It was difficult to show in the video but it’s especially nice if you use many monitors as you can set them up in specific positions on specific monitors
Thanks for this awesome tuto. Can you please tell me how you were able to show red arrows while you are recording
@@AmineChablaoui it’s called zoomit! It’s an awesome sysinternals utility & it’s actually coming into PowerToys soon!
Hello, Im having trouble getting the code to work. I have the correct libraries installed in the lib folder, but when I try to run the code.py, it doesnt work. I get the error: "adafruit_display_text" is not definedPylance when I try to import anything.
I’m trying to modify wsl in VS Code, I have both .profile and .bashrc file, not sure which one to modify. CONFIG ERROR also show up😮
Update, so far so good. I just had to download the S3 UF2 file instead. Any other cool projects you've completed? I'm trying to have screens similar to the Tidbyt
@@brody2642 I haven’t picked it up in a while, I’ve done a few cool things. Coolest one was connecting it to a web server where friends could input their own messages and have it displayed at a little celebration at my house
@@brody2642 let me know if you come up with anything cool !
Hey Jordi! Does this still apply to the Matrix portal s3? I'm having a lot of trouble setting it up but I stumbled upon your video
Is it possible to enter the admin credentials for sudo within the console versus a UAC prompt, similar to other operating systems?
@@joshodell8670 Not currently.
Hi i have a Question, how you Modifie your Powershell Window? or ist this a Macbook?
@@mfmusik70 oh my posh! Check out my channel for a few videos around how I set up Windows Terminal :)
I managed to install Oh-my-posh, add the eval to my .profile, and change the theme, but I still get a question mark in front of the WSL, hostname, bash, and I don't know how to fix it. Do you have any tips? I'm using the "hul 10" theme, but it's the same with other themes.
@@cyberluk3 this is likely due to the font you’re using in Windows Terminal. Check out the installing fonts section of my blog here - joadoumie.github.io/jordi-rants/2023/10/24/oh-my-posh-nba-segment.html
Great video, helped me a lot! I am curious, though, as to why we are reaching out to github for the theme when we've already installed them all locally? Instead of using HTTPS in bash, for example, we can use our own directory path e.g. `eval "$(oh-my-posh init bash --config /home/[USER]/.cache/oh-my-posh/themes/hul10.omp.json)"` Thanks for the video!
Hi this looks great thank you really! but i would like to use tmux's status line at the bottom while oh-my-posh is active, so is there a way to do it? please help!
I can’t believe I have been trying to put something on my display for months and here I click your channel and it’s easier then the rest of TH-cam!!Thank You
Thank you for this... I had gotten my powershell and bash modified didn't know how to do wsl... This helped
Helped me a lot 🤍
This worked for me on both PowerShell and Command Prompt on Windows 10! Although Command Prompt only will not load the custom theme I made for some reason.
Looks like the Command Prompt script doesn't allow local files at all, only links.
@@Kaldog thanks for sharing your findings!
Would have been nice to use actual powershell instead of the dated netstat command.
Good overview. I just got mine. Although the screen is not touch, it has a very matte black finish, which is really nice--no reflection.
Criminal lapdog, are you waiting for me to call you again?
I have been having trouble using sudo apt and sudo yum, its still not available this commands? is there a different way to type it so I could run them?
@@jonathanmaximilianoacevesr4358 apt and yum are still Linux specific commands. Try winget instead which is the windows package manager. It’s a great cli tool. You can “winget install” and “winget search” among other things for packages
hi i got a problem When I restart Linux it tells me 'oh-my-posh: command not found'
Try putting the: eval "$(oh-my-posh init bash --config '~/{theme}.omp.json')" inside ~/.profile instead of ~/.bashrc
@@mardortc Thanks! It worked
@@mardortc thank you so much!
Does this work on Windows 10?
@@yepsan95 sure does!
@@jordiadoumie1919 It didn't work on Windows 10 for the cmd :,(
@@yepsan95 oh really? I’ll do a bit more digging! Thanks for informing me
Thanks a bunch!
Thanks man! I was using chatgpt to set oh-my-posh in the cmd but the directory was not right after following your video I've successfully set-up oh-my-posh in cmd.
This was very fun to watch! Now I need to buy myself one….
Thank so much you bro !
aren't the screws numbered so you can screw/unscrew the in an order that makes it easier to un-/mount? or is it just a suggestion?
They are numbered - I didn’t follow the numbering scheme but maybe would have been better!
@@jordiadoumie1919 It's to ensure even distribution to avoid warping or an uneven surface. Kinda like how you would tighten in a star pattern on a vehicle's wheel.
This is the best video I've seen on the Framework 16. All the configurations are so cool + the hot-swappable ports are so killer.
OK. I tried running the following commands: sudo Get-WindowsUpdate sudo Get-AppPackage sudo Get-Disk None of them seem to work. In fact, none of the "command" list commands seem to work. I keep getting the same message: "Command not found". Am I doing something wrong? Is it not ready yet or something?
We're working on better integrating pwsh cmdlets. github.com/microsoft/sudo/issues/5. For now if you are having issues with cmdlets, please try sudo pwsh {Get-WindowsUpdate ...}... that should fix your issues in the meantime.
@@jordiadoumie1919 yeah, I figured that out myself, but thanks for the reply. Looking forward to more functional sudo on windows 😊
This is pretty awesome! But having to click a pop up is pretty tacky, is this just a windows quirk? Id rather have to type in a password and run it in the same window instead
This is just a Windows quirk of how administrator privileges work - password would be cool but breaks the usual UAC flow
You would use ALT + Y to auto accept. Or you would use gsudo which can cache credentials.
Hey, ,I got it to work just the same as you (very helpful btw) but whenever I open a new ubuntu terminal i have a red x instead of a blue check. Any reason?
Is it red where it is telling you your file path or is it a different segment? If you can pinpoint the segment I think we can debug together. What’s your home directory when you launch Ubuntu ?
"Some other new window?" Did I hear that correctly? You don't know what this new window that just opened? I just read the article this video link comes from. Why do you need a YT video on the same article people can just read? It has all the usual visual aids to show you how to do it.
This is being needlessly pedantic, don't be that guy because you are in a bad mood
@@djdevelops2616 Really, lol. You trigger easily. I guess you're too young to think critically yet. Just saying the obvious above, no bad mood.
It really should be you get the UAC prompt once, then those privileges remain in that console window for X amount of minutes, like how Sudo for Linux works. Close...but not perfect.
Really good content! just got my terminal looking much better!
That's awesome! Glad it was helpful for you.
Nice feature ! Thanks for your presentation and work :]
not working for me unfortunately.. not sure if limitation to region? i have an error with my 'type' Value is not accepted. Valid values: "az", "aws", "azfunc", "angular", "battery", "carbonintensity", "command", "connection", "crystal", "cds", "cf", "cftarget", "cmake", "docker", "dotnet", "dart", "executiontime", "flutter", "fossil", "gcp", "git", "gitversion", "go", "haskell", "helm", "ipify", "iterm", "julia", "java", "kotlin", "kubectl", "lastfm", "lua", "mercurial", "node", "npm", "nx", "ocaml", "os", "owm", "path", "perl", "python", "php", "plastic", "project", "root", "ruby", "rust", "r", "react", "sapling", "session", "sitecore", "spotify", "status", "shell", "sysinfo", "strava", "svn", "swift", "time", "text", "terraform", "ui5tooling", "umbraco", "unity", "upgrade", "wakatime", "winreg", "withings", "xmake", "ytm".(1)
Are you trying to build your own, OR are you trying to just use the nba one?
just tried using the default segment. but debug showing false unsure on how to sort the template part out?
@@gemidriver if you don't point to a specific theme '--config xyz' in your profile and just have the pwsh init oh-my-posh part does that render any of the segments from the default theme?
@@jordiadoumie1919 I got it working, I didn't have the template in my segment
Do I have to be an Insider to enable this option? I enable Developer mode and I don't see this option. If it's required, can I enable Sudo without being an Insider? Thanks.
At this point, it’s only available on insider builds. We’re working on expanding this.
@@jordiadoumie1919 Thanks for the update!
superuser do ... where is doe ? or dough? sudo ... DO .. DO DO DO .. not DOE !!
"disableInput" only made sense after it was explained by Mike. Please think about providing verbose descriptions in the settings GUI or changing the name to something else that's a bit more clear. Maybe something like Interactive (for Inline) and Non-Interactive (for disableInput) ? Other than that I'm pretty excited for this! Now all we need is !! to be implemented with Terminal (or maybe an alias can do that?)
Thanks for the feedback! I really appreciate it. We’re tracking an ask on the GH repo for this functionality - stay tuned!
Definitely, "non-interactive" mode would sound much more understandable and be in line with common concepts in the industry. The "disable input" mode really feels something like a quickly sketched compromise between developers and their concerned cybersecurity staff. One could think they there's a way to validate that the input is being given to the terminal from the same authentic source which has also confirmed the UAC. Also, what if you throw a command in this mode through sudo, either by accident or intentionally, that expects user input but the selected mode prevents any input from being given?
seems no different than having to launch an Admin CMD and running netstat from the prompt. A true sudo-like implementation would be running sudo "command" from a non-admin cmd prompt
This is exactly what you can do with disable input and inline modes
4:43 lol! Looks like someone is running Steam on their work PC. But "it's work work and compatibility testing with Steam", right? 😉
This is my personal computer that I built actually, not my work laptop. I didn’t even realize there was still steam services running though! 😂
looks dope! I recon Sudo should suppress UAC prompts in near future?
We’re looking into all the ways we can make this tool as valuable as possible. We are tracking this issue in the GitHub repository: github.com/microsoft/sudo/issues/7
just wanted to say i very much appreciate this candid rundown. keep up the good work jordi and mike <3
Awesome! Man, You made my day!
So glad you enjoyed :)
@jordiadoumie1919 I second @RihelB. The Windows and *nix sudo commands are different enough that they should have different names. Copying the name didn't work out so well when "curl" was made an alias for "Invoke-WebRequest". I also don't see many people complaining about e.g. ifconfig vs ipconfig. If sudo on Windows supports the exact same same syntax, flags, options, etc as sudo on *nix, I could see the case for keeping the names the same since the user-facing functionality would be very similar. But even then, just the UAC prompt alone makes it different enough that I'd call it something else. My natural inclination is that two tools with the same name should do the same thing, and this is not true of sudo on Windows. All that being said, I LOVE this idea of making something better than "runas". Good job!
I hear you! We thought about some of the options you’re calling out here. A lot of customers voiced having the muscle memory of doing similar flows on various operating systems was more important to them and that’s where we landed. I totally understand your perspective and I do really appreciate the feedback. I’m always trying to learn from people like you so I can help to build things that will make your life better.
Are there any plans on the roadmap to implement something like a 'sudoers' file to lock things down or would we have to use a combination of group policy and permissions? The granularity of using 'sudoers' would be a boon to organizations that have different administrative tiers/responsibilities within IT.
Would love to hear more about your use-cases and scenarios. Please start an issue in the GitHub repository so we can track and prioritize based on feedback! github.com/microsoft/sudo
Why there should be a "sudo" command at all? since there is a "runas" command already for the same thing with plenty of options.
IMO runas is... not fun to use. I'm 100% down with making something better. I'm not sure we could just revamp the "runas" command either since it's so old and who knows what would break if it changed
@@DustinBriles It's Windows, leaving your old crap lying around for a decade or more makes perfect sense. :P --- I agree that it would make a certain amount of sense to duplicate the functionality of runas with more of a Unix/Linux style syntax. sudo <program> (run the program as admin) sudo -u <user> <program> (RUN program AS specific user) sudo -u <user> -h <host> <program (RUN program ON remote host AS specfic user) Or maybe even have a syntax that allows you to specify the user as a quoted string like 'DOMAIN\UserName' It should be relatively easy to translate that into the equivalent 'RUNAS' command... Or at least reuse the same basic functionality to achieve it.