Bash is a turner-complete language anyway. Everyone has a opinion but the shell is the closest interface between a system unless gui which easier but a lot restricted and limit base on how it’s was developed
@PSzlazak3 сағат бұрын
If it takes you 1h21m to switch order of printed output and finally work is not done, then you suck at programming! 😉/s
@andrewsinclair76548 сағат бұрын
Yeah it’s definitely how OS were originally made. We would be talking about the bare minimum of what you could consider an operating system. IIRC all the theory and code is covered in “the Minix book” called Operating Systems Design and Implementation, by Andrew S. Tanenbaum.
@zm716011 сағат бұрын
Pretty simple solution; instead of reading the file, just scrape the dhcp list from your router. Or you can just periodically check your ARP table: Nearly all network stacks include doing a "gratuitous ARP" after getting dhcp lease.
@bayyyi12 сағат бұрын
I did it. It wasnt hard just long had to write everything which is usually just granted by some lib otherwise. Its a good learning experience.
@coolguy69verycool17 сағат бұрын
Its actually pretty simple, you create your own programming language and then commit yourself to daily communication to god through this language. Let fear and reverence guide you
@FoxofMulder18 сағат бұрын
can chat gpt write an os?
@knysliux00118 сағат бұрын
Pi-hole can be configured to act as a DHCP server giving it some additional functionality when setup this way.
@carlosbah462322 сағат бұрын
¡Gracias por compartir!
@GNUgenius022 сағат бұрын
Hello , I use arch btw
@EinSatzMitX17 сағат бұрын
How do you tell if a guy uses arch linux? He will tell you.
@sheldondearrКүн бұрын
DNS server and DHCP server can be the same external IP (Pihole) as long as you don't have overlapping sockets. Idk about notifications cuz I live on layer 4, but they gotta edit the dnsmasq config. Personally I prefer to segment networks and wait to manually move leases with MAC binds to 16-32 IP scopes
@Violet-rv1fvКүн бұрын
Alex hormozi?!
@can2835Күн бұрын
What's the point of a router? Couldn't you plug your computer directly into the wall?
@johnsmith898121 сағат бұрын
Yeah but you'd only be able to connect one single machine out via the modem. Your average ISP assigns one public IP and the router assigns private addresses that all route through that one IP. Connecting directly to the modem without a router is also not a good idea from a security perspective because then you're only relying on the security of your operating system without the additional protection of the router firewall.
@AntranigVartanianКүн бұрын
Just wanted to say thanks for "Void Linux Bhyve Image on OmniOS” blog post! saved my ass today trying to figure out UEFI boot on bhyve on FreeBSD!
@justwanderin8472 күн бұрын
Us old COBOL programmers like 80 columns. I like 4 spaces indent.
@Chalisque2 күн бұрын
You learn something new every day. Today: [[ -t fd ]].
@yousuckatprogrammingКүн бұрын
nice! if you're on bash try `help [[` to understand the syntax better and `help test` to see all the possible options.
@ChalisqueКүн бұрын
@@yousuckatprogramming Interestingly, you only need single brackets: [ -t 0 ] does the same thing. The use of double brackets is to regex match a string.
@ChalisqueКүн бұрын
and && and || too
@calholli2 күн бұрын
If you have 16gb of ram or more.. Don't bother useing swap
@matthewcochran15223 күн бұрын
This has to be the first ever stream on youtube from a linux machine
@yousuckatprogrammingКүн бұрын
and i cheated - this was streamed from my mac :p
@carpa_guitar3 күн бұрын
This would be useful :)
@Cjsbowtie4 күн бұрын
Great content. Get well soon.
@yousuckatprogrammingКүн бұрын
ty appreciate it
@Jayvil7734 күн бұрын
Do it!…pls
@adamtankanow87114 күн бұрын
I do agree that your solution is better as I would say it's always better to use built-ins first. You _could_ solve the subshell problem with: ```bash #!/usr/bin/env bash i=0 while read -r -d '' f ; do echo "file: ${f}" ((i++)) done < <(find files -type f -print0) echo "found ${i} files" ``` Are there unintended consequences of this solution?
@adamtankanow87114 күн бұрын
I see another commenter also suggested this. 👍
@iCrimzon5 күн бұрын
The most based title ive ever seen in my life
@patximartel5 күн бұрын
You wanna guess what color is my terminal You wanna guess what editor I use Is it neovim really riced up Or evil emacs showing my bad lisp code
@yousuckatprogrammingКүн бұрын
i hate that i heard these lyrics in my head
@Alex-vi6iz5 күн бұрын
The shell is pretty easy imo once you spend time with it. The hard thing is bash, very ugly language&syntax
@pauburguetvela43224 күн бұрын
It's almost a string manipulation utility and yet it's used and it works
@BrilianK4 күн бұрын
@@pauburguetvela4322the syntax still sucks
@vvvvvvvval5 күн бұрын
Not even a brat girlie but I’m so HERE FOR IT This is the content I need 🥲
@4m4705 күн бұрын
Bro, plz do it. I'd buy it/donate it.
@FredTyco5 күн бұрын
Nice to explain zombie issue, just missing the last part. Maybe you should talk about process pid 1 (init on linux) which is responsible for collecting zombie process... and often this doesn't work in container because process pid 1 is python, java... and this executable doesn't care to collect "orphan zombie" (to ack them). Just a tip, in container you can use "tini" (like init) which ack zombie process and avoid filling running container with zombies when you try to connect into them.
@niklausrupai13415 күн бұрын
That is stupid, but I laughed badly at the "remote shell requested"
@strob56576 күн бұрын
😂
@flanger0016 күн бұрын
Donghua Jinlong mentioned! Blessed.
@EdwardPsCL6 күн бұрын
Learned helplessness. I'm looking forward to all the work fixing the mess
@Hamled6 күн бұрын
Bro cloned a repo with 3 objects... just curl the raw file
@yousuckatprogrammingКүн бұрын
the chad `curl` vs the virgin `git clone`
@aryankothari46346 күн бұрын
well this is convenient. The other day i logged onto my ubuntu server running kubernetes. it said something like "400 zombie processes" and i had no idea what that meant. Thanks mate.
@shateq4 күн бұрын
Did you watch the walking dead?
@donaldmickunas85526 күн бұрын
Never, never, never run a script that you haven't checked out first. Procrastinating on this will bite you badly.
@fourone12543 күн бұрын
this was satire
@donaldmickunas85523 күн бұрын
@@fourone1254 If you say so.
@lashlarue79246 күн бұрын
Everybody know that Donghua Jinlong industriar grade grycine no good. For good produc you must go to Heifan Xiaoshin Jeibei. Work rike a charm every teim. 👌
@justwanderin8476 күн бұрын
Ya Think?
@la.zanmal.6 күн бұрын
The problem is, many people don't.
@SB-qm5wg6 күн бұрын
ps [aux] --forest works well too
@Clebatwork6 күн бұрын
Terry Davis is smiling upon us with this glorious backing track :) Great video Dave <3
@Clebatwork6 күн бұрын
BRO HOLY SHIT, that's YOU IN THE PIANO COVER VIDEO!!! I Had NO IDEA THAT WAS YOU OR YOUR COVER FUCK....... That shit brings tears to my eyes. Much love <3
@yousuckatprogramming6 күн бұрын
i made the piano cover AND the electronic one in this video 😎
@taupi52466 күн бұрын
@@yousuckatprogramming WAIT THE PIANO ONE WAS YOU This whole time i was following your vids I didn't know you made this really good cover
@ivanheffner25876 күн бұрын
But did you get the glycine?
@compositeboson1236 күн бұрын
lol damn thanks for the reminder
@dylanh3337 күн бұрын
The real question is: did you SSH into a system running OSX to do this demo? That pstree output looks pretty cracked for what otherwise mostly appears to be a vanilla Ubuntu desktop environment
@yousuckatprogrammingКүн бұрын
oh it's such a mess how i record these. i screen record the terminal on my mac and the camera on my phone. i then mix it together in Final Cut Pro and put an ubuntu static screenshot over the final product as an overlay lmao.