Search

Items tagged with: shell


#Waldbrände, #Dürre, #Hitze, #Überschwemmungen. Rechnung geht raus an: #Shell, #Exxon,
#BP, #SaudiAramco und all die anderen Erderhitzer: #makePollutersPay act.350.org/s/3116411.6KYgrd



The media in this post is not displayed to visitors. To view it, please go to the original post.

Never forget: this fossil fuelled extreme heat is being supercharged by BIG POLLUTERS with names and addresses, raking in record profits while tens of millions of people are left to cook.

#makepolluterspay #shell #heat #heatwave #climatechange



Dear bash experts,

I came across a script today that stubbornly did this for like 30 variables:

declare -rx FOO="${FOO:-}"
declare -rx BAR="${BAR:-}"
...

(So the variable left of the equation sign is the same as the one inside the curly braces. There is only a "💏 after it which assigns it an (empty?) default value, in case it is unset)

Can anyone explain what the reason for that could be? Exporting variables that might (or not) be unset/undefined? Making sure they have an empty value?

Thanks in advance!

#bash #unix #linux #shell #variables #homelab #


Lawsuit documents show Shell continued operating a compromised pipeline in Nigeria despite knowing it posed a pollution risk.

Spills between 2011 and 2013 killed thousands of hectares of mangroves in the Niger Delta, a vital biodiversity ecosystem.

Victoria Schneider and David Akana report for #Mongabay.
mongabay.cc/08xLNf

#Shell #Nigeria


Tip: you can reduce the heat your laptop/desktop computer generates by limiting its CPU frequency.

To restrict all cores to 800MHz on Linux, run one of these two commands as root:

cpupower frequency-set -u 800MHz

echo 800000 >/sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq

#heatwave #laptop #desktop #computers #downclocking #EnergyEfficiency #Linux #shell


Tja wäre das mal #Shell eingefallen, als sie sich am Montag (11.05) bei der 12 Uhr Preiserhöhung für den Diesel vertippt haben und somit den Diesel 24 Std. lang billiger verkaufen mussten als geplant. 😇😜


The media in this post is not displayed to visitors. To view it, please go to the original post.



Happy to announce that I just published my #PolyglotScript v2.0.0 research report for #cli #commandline #shell. It consolidates #batchfile, #PowerShell, and #POSIXShell together into 1 single file that can run anywhere, everywhere without requiring to install anything.

Tested on #linux, #windows, and #macos. For #FreeBSD, still pending because GitHub does not officially facilitate #FreeBSD yet.

Check it out at:

doi.org/10.5281/zenodo.1980543…


Writing bash/shell without code highlighting is such a chore...

500+ lines of grey boredom. Geez.
But, I almost have an universal video transcoder now 🤣

#shell #linux #scripting


The media in this post is not displayed to visitors. To view it, please go to the original post.

The selection of #Linux books available at the #CLT2026 was a bit lacking, so I finally decided two pick up two books in physical form, whose (legally aquired) digital copies helped me a lot on my Linux journey. 🐧

And special shoutout to @william_shotts for offering The Linux Command Line for free as the long running and updated internet edition. It's been super helpful! 🫶

(And thanks to @nostarch for being not like #Pearson 💩).

#Shell #CommandLine #Bash


New post: shell tricks that aren't exactly secret, but aren't always taught either.

Split into two sections: what works on any POSIX sh (FreeBSD, OpenBSD, Alpine...) and what's Bash/Zsh-specific. Because not everyone is on Linux with bash as their login shell.

Things like CTRL+W, $_, pushd/popd, fc, set -euo pipefail caveats, and more.

blog.hofstede.it/shell-tricks-…

#unix #bash #shell #sysadmin #freebsd #linux #cli



The media in this post is not displayed to visitors. To view it, please go to the original post.

TIL about MirBSD Korn Shell
Instead of talking about it here, I invite you to surf to the site and learn about it.
Compliments of @mirabilos toot.mirbsd.org/@mirabilos

mbsd.evolvis.org/mksh.htm

#Korn #Shell #sh #MirBSD #programming #OpenSource #technology #BSD #Linux


Lately I have noticed that when you purchase a ticket you don’t get a static PDF/PNG anymore.

Increasingly often, you get a .pkpass file, which is supposed to be opened in wallet apps (like Google Wallet or any 3rd-party wallet app).

Since I don’t like to share information about the events I attend with strangers on the Internet, I have decided to take a closer look at these .pkpass files.

They are just zip files that contain a background image, an icon and a pass.json with the actual information about the ticket. Nothing that can’t be handled by a script rather than a 3rd-party 100 MB mobile app.

I have thus put together a simple #shell script that does exactly that.

Dependencies:

  • jq
  • zint
  • magick
  • unzip
  • curl or wget

gist.manganiello.tech/fabio/pk…

Usage:

pkpass2png <a href="https://domain.tld/myticket.pkpass" rel="ugc">https://domain.tld/myticket.pkpass</a> ticket.png


Vor dem Hintergrund, dass zB #Shell seine Raffinerieanlagen zurückbaut, weil sie keine Zukunft in fossilen Energieträgern sieht, frage ich mich wirklich, wie nach 2035 Verbrenner betrieben werden sollen. Mit altem Frittenfett? Ist das diese #Technologieoffenheit? Wer seinen Verbrenner liebt, der schiebt?
#Verbrenneraus



#Lobbyismus ist mehr denn je allgegenwärtig.

Schnell denkt man an den großartigen #Film #ThankYouForSmoking oder an #Politiker wie die #GasKathi #Jensspahn und #FrankSchäffler. Wer "Männer, die die Welt verbrennen" von @chrisstoecker gelesen hat, denkt zudem an die Gebrüder #Koch an #Exxon und #Shell sowie natürlich aus aktuellem Anlass auch an die #Familienunternehmer

Was man jedoch nicht sofort im Blick hat: Auch die @umwelthilfe, @Finanzwende und der #DGB sind Lobbygruppen. Und wie beschissen die Welt ohne diese aussehen würde, mag ich mir gar nicht vorstellen...

Daher sollte man Lobbyismus nicht generell verteufeln, sondern sich der Vor- und Nachteile bewusst sein.

Über diese sprechen MdEP Oliver Schenk und Prof. Dr. Astrid Lorenz von der @unileipzig und Aurel Eschmann von @lobbycontrol morgen in #Leipzig #Sachsen

7smr5.r.a.d.sendibm1.com/mk/mr…




Sobald man anfängt Shellscripte zu „programmieren“ hat was man was falsch gemacht und sollte dringend python lernen.

#shell #python



The media in this post is not displayed to visitors. To view it, please go to the original post.

Weathered Urchin Shell.

Amazing patterns in the rows of tiny holes in the shell, alternating with rows of spines. Evolution is cool.

#photography #nature #shell #VintageLens #helios


I think I won't bother anymore with writing (bash) shell scripts that are longer than a few lines. I find the syntax too unintuitive and there are better programming languages like PHP that produce more readable code.

In the last two hours, I translated a bash shell script with ~250 lines to a PHP CLI script. The latter is nearly 400 lines long but definetly more readable and it also has more user-friendly output.

1/2

#Shell #ShellScripting #CLI #PHP #Programming


The media in this post is not displayed to visitors. To view it, please go to the original post.

matra (@matra.bsky.social)

bsky.app/profile/matra.bsky.so…

> Prima di aprire il suo studio a #NewYork nel 1929, Raymond Loewy è stato vetrinista per i magazzini #Macy's e illustratore per le riviste #Vogue e Harper's Bazar. Pioniere del #design (suoi i loghi di #LuckyStrike, BP, Exxon e #Shell) si faceva pagare a percentuale sull'aumento delle vendite.


A very very ugly chain of pipes, awk, sed, and xargs just saved me from hours of tedious and unexpected clicking in a stupid web-interface.

Learn some basic #shell scripting when you're young, it will help keeping you sane.

Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmst du dieser Verwendung zu. https://inne.city/tos