monospace, to linux
@monospace@floss.social avatar

Tip for Linux shell beginners: Execute a second command only if the first one failed.

command_1 || command 2

Background: This compound command uses the result code returned by command_1 with the "shortcircuit" behaviour of the "logical OR" || operator.

br00t4c, to random
@br00t4c@mastodon.social avatar
br00t4c, to Florida
@br00t4c@mastodon.social avatar
wick3dr0se, to linux
@wick3dr0se@fosstodon.org avatar

I wrote a matrix digital rain implementation in under 50 lines of pure Bash.. I chose Bash due to it being widely installed and extremely portable. With modern systems this shouldn't cause any noticable performance changes and seems more than efficent so far

Looking for feedback, contributions or whatever helps 😆. If it interest you at all, let me know what you think about it!

https://github.com/wick3dr0se/matrix

Matrix digital rain

monospace, to linux
@monospace@floss.social avatar

Almost every Linux CLI tool that requires you to edit a file will consult the EDITOR environment variable to spawn the editor you prefer. So, if you want to use nano instead of vim, simply set it as your default editor in your .bashrc or .zshrc:

export EDITOR=nano

Hypx, to Hydrogen
@Hypx@mastodon.social avatar

Bloom and Shell to scope out green hydrogen energy opportunities

https://www.hydrogenfuelnews.com/green-hydrogen-bloom-shell/8563508/

vwbusguy, to linux
@vwbusguy@mastodon.online avatar

I'm pleased to announce that has a new release! Version 1.1.0 is out with significant improvements in the shell pipe handling for interactive CLI programs like vim.

https://github.com/vwbusguy/qbsh/releases/tag/1.1.0

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

Oil and Gas Companies Want You to Think They Care About Women -- but It's Just PR

https://www.desmog.com/2024/03/08/oil-and-gas-companies-want-you-to-think-they-care-about-women-but-its-just-pr/

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

Nigeria 🇳🇬 needs to ensure that safely dismantles its old wells & pipeline infrastructure or pays to remove them from the Niger delta before its exit, says a SONO report on the environmental impact of the activities of multinational firms https://buff.ly/3T7FmPf

monospace, to linux
@monospace@floss.social avatar

Have you ever frozen your Linux terminal by accidentally pressing Ctrl+s? That's a feature to stop it from scrolling off, and you can unfreeze it by pressing Ctrl+q.

CelloMomOnCars, to nigeria
@CelloMomOnCars@mastodon.social avatar

Shell is pulling out of after befouling it for 68 years, casting it off like a dirty oil rag.

" called it a way to streamline its business."
Looks more like it's running away from its cleanup responsibilities.

"Activists in the Niger Delta, where Shell has faced decadeslong local criticism to its oil exploration, plan to ask the government to withhold its approval if the company does not address its environmental damage."

https://apnews.com/article/nigeria-shell-onshore-assets-niger-delta-509baf4e7df6d1ef4eb88d17410cf6f5

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

Maybe this got nervous about :

A UK court ruled that "13,000 farmers and fishers from the Ogale and Bille communities in the Niger delta were entitled to bring legal claims against Shell for alleged breaches to their right to a clean environment.

The judge ruled it was arguable the pollution had fundamentally breached the villagers’ right to a clean environment under the Nigerian constitution and the African charter on human and people’s rights."

https://www.theguardian.com/business/2023/nov/23/shell-to-face-human-rights-claims-uk-over-chronic-oil-spills-niger-delta

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

"Local activists and international environmental groups want 's government to delay approving the sale of oil company 's onshore assets, claiming Shell is trying to shirk its environmental and social responsibilities in the highly polluted Niger Delta.

Protesters have appealed to the government of Nigeria, Africa’s top oil producer, to halt the sale until environmental concerns are addressed."

https://abcnews.go.com/International/wireStory/activists-urge-nigeria-delay-shells-sale-assets-polluted-107631110

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

And now seeing the writing on the wall, is following suit:

"The Petroleum Development Company of Nigeria Limited (SPDC), in which TotalEnergies holds a 10% stake, has struggled with hundreds of onshore oil spills as a result of theft, sabotage and operational issues that led to costly repairs and high-profile lawsuits over the years."


https://www.reuters.com/business/energy/totalenergies-looks-exit-nigerian-onshore-oil-following-shell-2024-02-08/

monospace, to linux
@monospace@floss.social avatar

Did you know there are variants of common Linux shell tools that have decompression function built in? For example, instead of first uncompressing a file to then view it in less, you can simply use zless.

There's also zcat, zgrep, zcmp andzdiff.

br00t4c, to random
@br00t4c@mastodon.social avatar

Samsung Galaxy S24+ vs. Galaxy S24 Ultra: Which One Should You Buy?

https://gizmodo.com/samsungs-galaxy-s24-vs-galaxy-s24-ultra-1851295804

BigAngBlack, to blackmastodon
@BigAngBlack@fosstodon.org avatar

#Shell must clean up pollution before it leaves #Niger delta, report says | Pollution | The Guardian

https://www.theguardian.com/environment/2024/feb/28/shell-must-clean-up-pollution-before-it-leaves-niger-delta-report-says

> Firm told it must take responsibility for toxic legacy of pollution and safe decommissioning of abandoned oil infrastructure

#BlackMastodon
@blackmastodon
@BlackMastodon

aral, to linux
@aral@mastodon.ar.al avatar

It’s bloody 2024, think we can agree on either wget or curl being installed by default on every freaking operating system by now so shell scripts can have a guaranteed way of carrying out http requests?

I mean it’s been about 35 years. I think it’s about time.

smallcircles, to random
@smallcircles@social.coop avatar

"Judge orders to rebrand as in recognition of total moral bankruptcy"

Husk: We Shell Out

https://www.theguardian.com/us-news/2024/feb/26/shell-climate-tech-startup-onward-oil-gas-jobs-greenwashing

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

Shell-Owned 'Clean Energy' Startup Features Oil and Gas Projects on Its Job Board

https://www.ecowatch.com/shell-clean-energy-startup-onward-greenwashing.html

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

Projects like 'Onward' allow to pretend it’s helping find climate solutions instead of just accelerating the climate crisis” Paris Marx, a technology critic & host of the Tech Won’t Save Us podcast, told Drilled
https://buff.ly/3wyn8Pf

UP8, to linux
@UP8@mastodon.social avatar
ApaulD, to lies
@ApaulD@aus.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • Durango
  • JUstTest
  • modclub
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • lostlight
  • All magazines