LibrarianRA, to delhi
@LibrarianRA@worldkey.io avatar

SHELL Research shrinks inappropriate traffic boners. 1938
.
@GayOldTime

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

About 78% of shareholders voted on Tuesday for the group’s revised strategy under which it will cut more slowly than previously planned https://buff.ly/4bDKja2

Bentley, to random
@Bentley@canada.masto.host avatar

's phantom scandal should be a wake-up call for CFOs https://the-cfo.io/2024/05/14/shell-carbon-credit-scandal-cfos/

arn_fai, to accessibility French
@arn_fai@toot.aquilenet.fr avatar

Pour cette 13ème édition de la journée mondiale de sensibilisation à l'accessibilité , ARN, @hackstub et le groupe a11y-libre, propose à toutes les personnes qui pratiquent la ligne de commande, un hackaton « asynchrone » sur le thème « ligne de commande et cécité » !

Vous avez jusqu'au 31 mai, pour envoyer vos contributions. Il y a de nombreux lots à gagner.

https://arn-fai.net/fr/blog/shell-accessible

dougiec3, to random
@dougiec3@libretooth.gr avatar

Oil corporations making record profits ready to end democracy for more money.
"Biden wants to eliminate the tax breaks, which include long-standing incentives to help drill for oil and gas, with a recent White House budget proposal targeting $35bn in domestic subsidies and $75bn in overseas fossil fuel income."
https://www.theguardian.com/us-news/article/2024/may/16/donald-trump-big-oil-executives-alleged-deal-explained

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

sold millions of ‘phantom’ carbon credits https://buff.ly/4bo6iSd via FT

textovervideo, to python
@textovervideo@fosstodon.org avatar

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.

https://pyinfra.com/

ehmicky, to programming
@ehmicky@fosstodon.org avatar

We just released Execa 9, which is our biggest release so far.

If you're currently using Execa, you should check out the new features! Also, if you're currently using zx or Bun shell, you might be interesting in this alternative.

https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f

CelloMomOnCars, to Canada
@CelloMomOnCars@mastodon.social avatar

sold millions of 'phantom' to Canadian oil sands firms - FT

"Shell sold millions of carbon credits tied to CO2 removal that never took place to 's largest oil sands companies, Financial Times reported Sunday, raising new doubts about a technology seen as important in reducing greenhouse gas emissions."

https://seekingalpha.com/news/4100535-shell-sold-millions-of-phantom-carbon-credits-to-canadian-oil-sands-firms-ft

lily, to linux
@lily@glaceon.social avatar

here's a tip if a command is taking a long time and you want a notification when it's done:

^Z fg; notify-send 'done'

pressing Ctrl-Z in a terminal emulator will pause the current running command. running "fg" will resume it in the foreground, but returning to the shell has the added benefit of allowing you to queue up multiple commands in a single line (technically you can do this by blindly typing the command while something else is running (as long as that command doesn't read from stdin), but i think this is more elegant.

notify-send is from libnotify, it allows sending a desktop notification from the command line.

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

PFA, Denmark’s 🇩🇰 biggest pension fund, has revealed it has divested its entire holding in , citing recent disappointment with the giant’s climate stance https://buff.ly/44mGPWU

jutty, to programming
@jutty@bsd.cafe avatar

After a while trying to understand if either ksh or zsh provided a way to prevent taking strings and undefined variables as 0 when doing arithmetic evaluation, there seems to be no feature specifically for it, sadly.

Closest is using set -o nounset (ksh) and setopt no_unset (zsh) to prevent undefined variables from evaluating to zero. If a "string" contains only numbers, a dot and whitespace, it will be treated as a number. Also, if it only contains the name of any other variable and whitespace, it evaluates to that.

Not that I expected shell languages to provide accurate arithmetic.

As a bonus though, it was cool learning about ksh's compound variables, force_float option and especially discipline functions.

dcz, to Bash
@dcz@fosstodon.org avatar

with which I surprised greybeards at the local hackerspace (which was surprising cause I'm the opposite of a expert):

mv photo{tocheck,supercool}.jpg

is the same as

mv phototocheck.jpg photosupercool.jpg

The shell copies an argument with {,} inside, and each resulting argument has a different part of what's in {}.

rm plan.{md,svg,png,odt}

Have fun!

necrosis, to science German
@necrosis@chaos.social avatar

Leute. Ich hab sooooooooooo was geiles entdeckt.

Kennt ihr schon https://www.olivetin.app/ ?

Damit kann man Tools eine verpassen. 😍

Ok, das würde sich auch mit von umsetzen lassen. Aber dennoch.

Für unsere Beschäftigten, die eher Windows gewohnt sind kann ich so Shell Tools leichter zugänglich machen. Das ist so toll. 😍

Für sicher auch einen Blick wert. :3


mkwadee, to GNOME
@mkwadee@mastodon.org.uk avatar

I can finally say I’ve upgraded successfully to . It was not without hassle this time and it started with what seemed to be a system that did not even give me a prompt after , although the update process had seemed to go smoothly and quickly. Luckily, the virtual screens were working and so I could to a . Although didn’t seem to be working, was and so I was able to open a desktop session, but only in

exa, to programming
@exa@mastodon.online avatar

Hey fediverses, is there any good online shell scripting primer for non-programmers? Something like "automate your stuff with unix" or so, ideally focused on the methodology rather than gory details of shell scripting.
#unix #shell #programming #learning

juandesant, (edited ) to random
@juandesant@astrodon.social avatar

A one-liner for exporting your Conda environments for re-creation on another machine… but you might want to have a look at whether you actually need to recreate those environments.

for envs in $(conda env list | egrep -v "^#" | awk '{print $1}'); do echo "Exporting environment: $envs"; conda activate $envs; conda env export --no-builds | egrep -v "^prefix" > "$envs.yaml"; conda deactivate $envs; done; ls -l *.yaml  

/ht @boitarsor for improvement

chmouel, to Bash
@chmouel@fosstodon.org avatar

reading the tzselect shell script from the tzdata, there is a nice flag called -c to specify coordinates, the way the script does gps coordinates to timezones in awk is pretty impressive!

so if you travel a lot and have no idea where you are located and want to set your timezone quite easily you can do something like this to approximately know where you are (it's useless i know, just interesting):

tzselect -c $(curl -s ipinfo.io|jq -r .loc| tr , -)

mboelen, to linux
@mboelen@mastodon.social avatar

I'm working on a cheat sheet for . This nifty tool is easily overlooked, but so powerful that it really made me invest more time into learning it.

The initial version of the cheat sheet is available and ready for feedback: https://linux-audit.com/cheat-sheets/awk/

Boosts would be appreciated, and feedback even more!

What are your AWK one-liners that others really need to know and should be included?

Special thanks to @DopeGhoti

captainfutura, to random German
@captainfutura@mastodon.social avatar

: absurd hoher Milliarden-Rekordgewinn

: absurd hoher Milliarden-Rekordgewinn

: absurd hoher Milliarden-Rekordgewinn

Skeptischer Claus-Dieter: „Die ist eine linksgrüne Verschwörung, um uns allen das Geld für angeblichen „Klimaschutz“ aus der Tasche zu ziehen und die Fossilindustrie zu ruinieren!!!“

AlanC, to photography
@AlanC@pixelfed.social avatar
orhun, to rust
@orhun@fosstodon.org avatar

Want to add Vim key bindings to your Rust application? 🤔
Say less.

🦀 modalkit: A Rust library for building modal editing applications.

🚀 Can be used with TUIs (via @ratatui_rs) or shell-like applications.

⭐ GitHub: https://github.com/ulyssa/modalkit by @ulyssa

Bella, to Battlemaps
awoodsnet, to php
@awoodsnet@phpc.social avatar

I’m giving 2 talks at Tek in Chicago — Shell Scripting for PHP Developers and Create Better Dotfiles — later this month. It’ll be something to see! You don’t want to miss it!

Get your ticket today!

https://tek.phparch.com/

sushee, to random
@sushee@fosstodon.org avatar

I had my mind blown 🤯

pax -rw -pe -s/foo/bar/ foo.* .

copies foo.* to while renaming it to bar.*

and I've been fiddling with damn loops and what not.. and pax is ANCIENT.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • rosin
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • lostlight
  • All magazines