Пікірлер
@MrR8686
@MrR8686 23 минут бұрын
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
@PSzlazak
@PSzlazak 3 сағат бұрын
If it takes you 1h21m to switch order of printed output and finally work is not done, then you suck at programming! 😉/s
@andrewsinclair7654
@andrewsinclair7654 8 сағат бұрын
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.
@zm7160
@zm7160 11 сағат бұрын
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.
@bayyyi
@bayyyi 12 сағат бұрын
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.
@coolguy69verycool
@coolguy69verycool 17 сағат бұрын
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
@FoxofMulder
@FoxofMulder 18 сағат бұрын
can chat gpt write an os?
@knysliux001
@knysliux001 18 сағат бұрын
Pi-hole can be configured to act as a DHCP server giving it some additional functionality when setup this way.
@carlosbah4623
@carlosbah4623 22 сағат бұрын
¡Gracias por compartir!
@GNUgenius0
@GNUgenius0 22 сағат бұрын
Hello , I use arch btw
@EinSatzMitX
@EinSatzMitX 17 сағат бұрын
How do you tell if a guy uses arch linux? He will tell you.
@sheldondearr
@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
@Violet-rv1fv Күн бұрын
Alex hormozi?!
@can2835
@can2835 Күн бұрын
What's the point of a router? Couldn't you plug your computer directly into the wall?
@johnsmith8981
@johnsmith8981 21 сағат бұрын
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
@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!
@justwanderin847
@justwanderin847 2 күн бұрын
Us old COBOL programmers like 80 columns. I like 4 spaces indent.
@Chalisque
@Chalisque 2 күн бұрын
You learn something new every day. Today: [[ -t fd ]].
@yousuckatprogramming
@yousuckatprogramming Күн бұрын
nice! if you're on bash try `help [[` to understand the syntax better and `help test` to see all the possible options.
@Chalisque
@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
@Chalisque Күн бұрын
and && and || too
@calholli
@calholli 2 күн бұрын
If you have 16gb of ram or more.. Don't bother useing swap
@matthewcochran1522
@matthewcochran1522 3 күн бұрын
This has to be the first ever stream on youtube from a linux machine
@yousuckatprogramming
@yousuckatprogramming Күн бұрын
and i cheated - this was streamed from my mac :p
@carpa_guitar
@carpa_guitar 3 күн бұрын
This would be useful :)
@Cjsbowtie
@Cjsbowtie 4 күн бұрын
Great content. Get well soon.
@yousuckatprogramming
@yousuckatprogramming Күн бұрын
ty appreciate it
@Jayvil773
@Jayvil773 4 күн бұрын
Do it!…pls
@adamtankanow8711
@adamtankanow8711 4 күн бұрын
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?
@adamtankanow8711
@adamtankanow8711 4 күн бұрын
I see another commenter also suggested this. 👍
@iCrimzon
@iCrimzon 5 күн бұрын
The most based title ive ever seen in my life
@patximartel
@patximartel 5 күн бұрын
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
@yousuckatprogramming Күн бұрын
i hate that i heard these lyrics in my head
@Alex-vi6iz
@Alex-vi6iz 5 күн бұрын
The shell is pretty easy imo once you spend time with it. The hard thing is bash, very ugly language&syntax
@pauburguetvela4322
@pauburguetvela4322 4 күн бұрын
It's almost a string manipulation utility and yet it's used and it works
@BrilianK
@BrilianK 4 күн бұрын
​@@pauburguetvela4322the syntax still sucks
@vvvvvvvval
@vvvvvvvval 5 күн бұрын
Not even a brat girlie but I’m so HERE FOR IT This is the content I need 🥲
@4m470
@4m470 5 күн бұрын
Bro, plz do it. I'd buy it/donate it.
@FredTyco
@FredTyco 5 күн бұрын
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.
@niklausrupai1341
@niklausrupai1341 5 күн бұрын
That is stupid, but I laughed badly at the "remote shell requested"
@strob5657
@strob5657 6 күн бұрын
😂
@flanger001
@flanger001 6 күн бұрын
Donghua Jinlong mentioned! Blessed.
@EdwardPsCL
@EdwardPsCL 6 күн бұрын
Learned helplessness. I'm looking forward to all the work fixing the mess
@Hamled
@Hamled 6 күн бұрын
Bro cloned a repo with 3 objects... just curl the raw file
@yousuckatprogramming
@yousuckatprogramming Күн бұрын
the chad `curl` vs the virgin `git clone`
@aryankothari4634
@aryankothari4634 6 күн бұрын
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.
@shateq
@shateq 4 күн бұрын
Did you watch the walking dead?
@donaldmickunas8552
@donaldmickunas8552 6 күн бұрын
Never, never, never run a script that you haven't checked out first. Procrastinating on this will bite you badly.
@fourone1254
@fourone1254 3 күн бұрын
this was satire
@donaldmickunas8552
@donaldmickunas8552 3 күн бұрын
@@fourone1254 If you say so.
@lashlarue7924
@lashlarue7924 6 күн бұрын
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. 👌
@justwanderin847
@justwanderin847 6 күн бұрын
Ya Think?
@la.zanmal.
@la.zanmal. 6 күн бұрын
The problem is, many people don't.
@SB-qm5wg
@SB-qm5wg 6 күн бұрын
ps [aux] --forest works well too
@Clebatwork
@Clebatwork 6 күн бұрын
Terry Davis is smiling upon us with this glorious backing track :) Great video Dave <3
@Clebatwork
@Clebatwork 6 күн бұрын
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
@yousuckatprogramming
@yousuckatprogramming 6 күн бұрын
i made the piano cover AND the electronic one in this video 😎
@taupi5246
@taupi5246 6 күн бұрын
@@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
@ivanheffner2587
@ivanheffner2587 6 күн бұрын
But did you get the glycine?
@compositeboson123
@compositeboson123 6 күн бұрын
lol damn thanks for the reminder
@dylanh333
@dylanh333 7 күн бұрын
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
@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.