You shouldn’t wear Depends in the shower. They’re for getting back to that squishy feeling after the shower.
- 0 Posts
- 4 Comments
You’re probably wanting
[ -z "${VAR1}" -a -z "${VAR2}" ]. Note in bash that there are minor differences in how[ ]and[[ ]]tests are handled. You can pull up a handy cheat sheet of the operands on most distros by runningman test, though you’ll need to read through the CONDITIONAL EXPRESSIONS section ofman bashif you want to see the minor differences of the single vs double square bracket commands (mostly whether locale applies to string order, as well as whether operands are evaluated in numeric comparisons).
dion_starfire@sh.itjust.worksto
Linux@lemmy.ml•Noone told me about systemctl suspend. I had to accidently learn about it from the arch pages. My battery is happy now, and you all will never be forgiven for your silence. That is all.
2·5 months agoAll legit. At the end of the day, both the commands that go through systemd and the direct cat something >/proc/… or cat something >/sys/… are all doing the same thing - telling the kernel to do some procedure.
There’s some settings stuff in /proc and /sys that you don’t want to tweak without knowing the effects, as they could break things in hard to fix ways, but for stuff like beeping or changing sleep states, the worst you’ll do is lock up your computer and need to reboot. And even that is rare unless the hardware really doesn’t like a particular sleep state.
They also work great for getting PETG prints to release from PEI build plates. Flip the can upside down, spray at the back of the sheet where the print is until it forms a thin layer of frost. Wait until the frost disappears (really you’re waiting for the metal to contract, but you won’t see that), bend the plate, and the part should pop right off.
…then flee to somewhere better ventilated to escape the cloud of bitterant before you vomit.