morhook
@morhook.bsky.social
71 followers 29 following 560 posts
I program on the day. Stream on twitch as a hobby. https://morhook.dev.ar
Posts Media Videos Starter Packs
Reposted by morhook
it Might be over for me (trying NixOS again after not using it in a long time)
terminal "fastfetch" screenshot, showing various stats about my PC and the fact that it's running NixOS 25.05.
Reposted by morhook
Ultra modern graphic card. Was it difficult to install?
Ultra modern graphic card. Was it difficult to install?
I thought it was Bill Gates, but nowadays Elon Musk is making many good points.
Who do you think is the biggest supervillain in the tech industry?
Reposted by morhook
He gives $20 Billion of OUR dollars to bailout Argentina without consulting Congress or the American people. Does that seem like the actions of a KING to you?

Join us & let him know just what you think about that this Saturday, 10/18

#NoThronesNoCrownsNO_KINGS 👑
Reposted by morhook
🚨 BREAKING NEWS 🚨

The dollar amount has now risen to FORTY Billion.
THANK YOU FOR YOUR ATTENTION TO THIS MATTER.

#AmericaFirst 🇺🇸
Thanks from Argentina 🇦🇷
Reposted by morhook
Come work with me! My game studio is hiring a Senior VFX Artist for our multiplayer PC strategy game in Unreal. Full time and fully remote in the US, Canada, or LATAM. Please share, ping friends, etc. 😎

Link to the posting is in the reply below👇
Reposted by morhook
I am making this game :)
#indiedev #gamedev #indiegames #ignitement
happy wednesday! Today Factorio and other weeds! twitch.tv/morhook
I really missed seeing that penguin! 🐧
This combos usually are configured in something in Windows. On Linux you get a weird key event.
Happy Columbus Day! Previously Discovery of America Day, previously Day of the race, previously Diversity Day. Kind of hard to keep up with different governments on Argentina 🇦🇷!
Isn't the viral licensing of KHTML affecting how they have closed source parts of Chrome?
Today's popular browser engines have deep roots in KHTML, which was originally built for the open-source software KDE. I guess we all own a big thank you to the KDE project.

More @ en.wikipedia.org/wiki/KHTML#D...
English. What was the answer?
Can you guess the programming language that is as fast as C, as productive as Python, and as scalable as Java, but simpler than all three?
Interesting article! Hopefully we can continue making NAS safely with Synology on the future. FAFO means “Fuck Around Find Out”
Synology HDDs are rebranded Toshiba or Seagate drives, and they added an extra premium on top of it while banning all other manufacturers with firmware updates. So, people simply stopped buying their crap. This is how you teach lessons to these companies. They thought they were Apple of NAS world 🤣
Are you the son of SHRDLU ? What’s your relationship with that project?
This cheatsheet is awesome as always thanks! `cat` can be slow on a GIANT file? I've heard only legends about that, but if @b0rk says it, it's because it can happen.
redirects

wizardzines.com/comics/termi...

(from "The Secret Rules of the Terminal", out now! wizardzines.com/zines/termin...)
redirect to a file:

cmd > file.txt terminal emulator into program, program out to file.txt, error out to terminal emulator
append to a file:

cmd >> file.txt terminal emulator into program, program out to file.txt (append mode), error out to terminal emulator
send a file to stdin:

cmd < file.txt file.txt into program, program out and err to terminal emulator
redirect stderr to a file:

cmd 2 > file.txt terminal emulator into program, program out to nowhere, err out to file.txt
redirect stdout AND stderr:

cmd > file.txt 2>&1 terminal emulator into program, out and err to file.txt
pipe stdout:

cmd1 | cmd2 terminal emulator into program 1, 1 out to program 2 via pipe, 2 out to command line, program 2 out 1 and 2 to terminal emulator
pipe stdout AND stderr:

cmd1 2>&1 | cmd2 terminal emulator into program 1, 1 and 2 out to program 2 via pipe, program 2 out 1 and 2 to terminal emulator
three gotchas

    cmd file.txt > file.txt will delete the contents of file.txt some people use set -o noclobber (in bash/zsh) to avoid this

but I just have “never read from redirect to the same file” seared into my memory.

    sudo echo blah > /root/file.txt doesn’t write to /root/file.txt as root. Instead, do:

echo blah | sudo tee /root/file.txt or sudo sh -c 'echo blah > /root/file.txt'

    cmd 2>&1 > file.txt doesn’t write both stdout and stderr to file.txt. Instead, do: cmd > file.txt 2>&1

cat vs <

I almost always prefer to do:

cat file.txt | cmd

instead of

cmd < file.txt

it works fine & it feels better to me

using cat can be slower if if’s a GIANT file though
&> and &|

some shells support &> and &| to redirect/pipe both stdout and stderr

(also some shells use |& instead of &|)