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/

br00t4c, to random
@br00t4c@mastodon.social avatar

Shell company steering $2.6 million to Republican PACs raises concerns of illicit funding scheme

http://opensecrets.org/news/2024/05/shell-company-steering-millions-to-republican-pacs-raises-concerns-of-illicit-funding-sch

br00t4c, to Texas
@br00t4c@mastodon.social avatar

'Pathetic Shell' Ted Cruz Gets Blunt Reminder After Over-The-Top Trump Defense

https://www.huffpost.com/entry/ted-cruz-trump-reminder_n_663c7840e4b048f80e99f9e4

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

#nodejs #node #javascript #js #cli #terminal #console #bash #shell

br00t4c, to random
@br00t4c@mastodon.social avatar
br00t4c, to random
@br00t4c@mastodon.social avatar

Shell sold millions of carbon credits for carbon that was never captured, report finds

https://www.cbc.ca/news/climate/shell-greenpeace-quest-1.7196792?cmp=rss

br00t4c, to random
@br00t4c@mastodon.social avatar
CelloMomOnCars, to Canada
@CelloMomOnCars@mastodon.social avatar

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

"Shell sold millions of carbon credits tied to CO2 removal that never took place to #Canada'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.

br00t4c, to random
@br00t4c@mastodon.social avatar

Shell's bumper GBP6.1bn profits sparks anger from climate campaigners

https://www.independent.co.uk/news/uk/home-news/shell-profits-environment-climate-change-b2538463.html

br00t4c, to random
@br00t4c@mastodon.social avatar
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

#shell #trick with which I surprised greybeards at the local hackerspace (which was surprising cause I'm the opposite of a #bash 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!

#linux #unix #sh #tip

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


brennansv, to Bash
@brennansv@sfba.social avatar

There is a Bash IDE extension for VS Code which works with LSP to support shell scripting. I have IDE features for shell scripts now. 🤯 https://marketplace.visualstudio.com/items?itemName=mads-hartmann.bash-ide-vscode #Bash #Shell

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.

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 , -)

br00t4c, to Energy
@br00t4c@mastodon.social avatar
CelloMomOnCars, to Netherlands
@CelloMomOnCars@mastodon.social avatar

"The Dutch Senate on Tuesday approved a law to permanently close the gas field, following the government's promise that production will never be resumed to limit seismic risks in the region.

The law will leave huge reserves in the ground."


https://www.reuters.com/business/energy/dutch-senate-approves-law-permanently-close-groningen-gas-field-2024-04-16/

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

THIS is how you negotiate royalties:

"Gas profits have delivered an estimated 363 billion euros ($385 billion) to the Dutch treasury since production started in the 1960s, while and 's profit from was around 66 billion euros during that period."

https://www.reuters.com/business/energy/dutch-senate-approves-law-permanently-close-groningen-gas-field-2024-04-16/

Gas brought the Dutch a higher living standard, financed the Delta Works coastal storm barrier, and made the a poster child for Dutch disease (unlike Norway, they spent it all).

mboelen, to linux
@mboelen@mastodon.social avatar

I'm working on a cheat sheet for #AWK. 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

#linux #sysadmin #automation #shell

br00t4c, to random
@br00t4c@mastodon.social avatar

Shell says doing more to rein in global warming is 'unrealistic'

https://qz.com/shell-climate-change-resolution-1851417483

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • tsrsr
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • hgfsjryuu7
  • Youngstown
  • InstantRegret
  • slotface
  • khanakhh
  • rosin
  • ngwrru68w68
  • kavyap
  • PowerRangers
  • normalnudes
  • tacticalgear
  • cubers
  • everett
  • vwfavf
  • ethstaker
  • osvaldo12
  • Durango
  • mdbf
  • cisconetworking
  • modclub
  • GTA5RPClips
  • tester
  • anitta
  • All magazines