[-] [email protected] 78 points 2 months ago

I'm picturing Daffy Duck and Bugs Bunny swapping hunting signs on a tree... "Linux season!" "GNU season!", back and forth. The rest of us just watching like Elmer Fud.

[-] [email protected] 31 points 2 months ago* (last edited 2 months ago)

Don't know about everyone else, but here are some of mine:

  • Stick to posix compliance shell code, wherever possible
  • Please wrap your variables with { }. Just please.
  • Global variables being exported in all caps
  • Local variables in lower case
  • $() instead of ` `
  • Comment anything complicated, comment what section, comment usage
  • Include usage output if options are not recognized
  • Use case instead of if / elif, where possible
  • 80 characters or less per line, where possible
  • HERE docs in designated section, marked by comment blocks
  • Comment your functions immediately above it's definition
  • Add comment "#End of function Xyz" at line immediately below a function, with replacing Xyz with name of that function
  • 2 space indentation
  • Multi-line strings: First line open with quote and first line of string, followed by a backslash , subsequent lines properly indented and backslashed. Last line, properly indented and close quoted.
  • Break up multiple piping of commands with |\ and a new line where it makes sense to look nice, assisting readability
  • Echo what the script is doing once in a while if the user will be waiting for a while
  • Please don't do shar archives, or byte located binary extractions, make a script and a separate tarball - Helps a ton if we have to change it, like say... swapping out a bundled java runtime built for x86_64 with one for aarch64
  • If the script will run for a very long time, check for tmux or screen and also the TMOUT variable... Give a warning to the user their connection might time out before the script is done if they don't unset TMOUT, and try using tmux or screen to allow the script to continue in the background, even if you do get disconnected
  • Make use of logger
  • I try to organize a script this way: 1. Shebang, 2. Initial variable definitions, 3. Functions, 4. runtime execution code, which might be best outside of a function, and calling functions. 5. Clean-up (remove pid and lock files, tmp files, etc etc.)
[-] [email protected] 42 points 9 months ago

Too bad you can't see who downvoted you, too... Need that leaked, as well.

[-] [email protected] 38 points 10 months ago

Cant follow the money to see who owns him if there are no accounts. For any adult with a roof over their head, to not have at least one bank account is very odd, and for a politician, very sus.

[-] [email protected] 44 points 10 months ago

The "TLDR" is sub heading is completely misleading. Cinnamon devs see they have to move, that's the reason. "Begging to work" on Wayland is not at all what the article says. Before you downvote, read it. Nothing in that article or the link to one dev's blog says anything even remotely like that.

[-] [email protected] 34 points 11 months ago

Sure, if it's a native Linux port. If it requires WINE, forget it.

[-] [email protected] 43 points 11 months ago

This was no accident. They want you to install apps via their walled garden snap store.

[-] [email protected] 42 points 11 months ago* (last edited 11 months ago)

In their general rules:

Any pictures of food containing animal products, including but not limited to meat, cheese, or egg, must be tagged nsfw along with food discussion content warnings (CW: Food).

Animal Liberation is essential to any leftist movement, including platforms like Hexbear. Volunteers, comments, and posts, should not be anti-vegan, although users and volunteers are not required to be vegan.

Wow. Just wow. That is so far beyond leftist.

[-] [email protected] 48 points 1 year ago

This is an ad.

[-] [email protected] 56 points 1 year ago

Warning: No matter what anyone tells you, do not use any rm command with the -r option and/or any wildcard charachers like * and ?, unless you understand the command fully.

2
Welcome! (lemmy.dbzer0.com)
submitted 1 year ago by [email protected] to c/[email protected]
[-] [email protected] 92 points 1 year ago

Isn't it illegal to screw with the military actions of the U.S. ... and its allies?!!?

380
submitted 1 year ago by [email protected] to c/[email protected]

What use to be the PPA that allowed Ubuntu users to use native .deb packages for Firefox has recently changed to the same meta package that forces installation of Snap and the Firefox snap package.

I am having to remove the meta package, then re-uninstall the snap firefox, then re-uninstall Snap, then install pin the latest build I could get (firefox_116.0.3+build2-0ubuntu0.22.04.1~mt1_arm64.deb) to keep the native firefox build.

I'm so done with Ubuntu.

1
PseudoSpock slaps... (lemmy.dbzer0.com)
submitted 1 year ago by [email protected] to c/[email protected]
  • PseudoSpock slaps so-n-so around a bit with a large trout!
[-] [email protected] 46 points 1 year ago

If you need Adobe, just don't bother with linux on your primary work / study machine. Save linux for another system.

view more: next ›

PseudoSpock

joined 1 year ago
MODERATOR OF