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.

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

Fairbuds are Fairphone's proof that we really could make better tiny gadgets

https://arstechnica.com/?p=2016094

awb, to python

The /usr/bin/env approach in a Shell script's shebang line is pretty clever, but where did it originate? The earliest examples I could find were for Python in 1998. In "Programming Perl" it is mentioned in the 3rd edition from 2000, but not earlier. I also did not find it used in Tcl or Expect references. All sorts of wrapper script hacks with exec were used though.

So, can anybody point me at pre-1998 examples of the use of env in a Shell script's first line?

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

Aquí, updateando Zorin mientras tomo el café. Vuestra tarde, ¿Qué tal?

visone,
@visone@fosstodon.org avatar

@yoyo308

Actualizando mi script para passwords para poder usarlo con tut y mantener la cuenta encryptada en la config.
Asi como actualizar las opciones de editar y añadir passwords ......

Vamos una tarde de trasteo

lobocode, to Lisp
@lobocode@hachyderm.io avatar

Conducting a small experiment using instead of script. Reason? Mere curiosity.

chmouel, to Bash
@chmouel@fosstodon.org avatar

Something that served me well over the year, viewing a configuration files without the comment and the newlines with sed:

sed -e '/^#/d' -e '/^$/d' file.conf

so you can see a clean version of all the settings you have set in the file..

visone, (edited )
@visone@fosstodon.org avatar

@chmouel

I would add this to filter out empty lines

sed -e '/^#/d' -e '/$^/d' -e '/^[[:space:]]*$/d'

scy, to Bash
@scy@chaos.social avatar

Friendly reminder that

#!/bin/sh
set -e

is better than

#!/bin/sh -e

because the latter stops working when you do "sh script.sh" instead of "./script.sh".

cdrmack, to vim
@cdrmack@fosstodon.org avatar

„The Missing Semester of your CS education” is a series of lectures run by the MIT students. They discuss things like , , , . Worth watching, especially if you are new to the industry.

https://missing.csail.mit.edu

br00t4c, to random
@br00t4c@mastodon.social avatar

Refurbished Dell Latitude 7320 Detachable Tablets Are Starting at $379.99 Right Now

https://lifehacker.com/tech/refurbished-dell-latitude-7320-detachable-tablet-deal

linuxmagazine, to linux
@linuxmagazine@fosstodon.org avatar

The May issue has been released! This month we look at the D-Bus architecture, which creates a powerful channel for applications to communicate. Order your copy! today https://bit.ly/Linux-Magazine-catalog

santiago, to random
@santiago@masto.lema.org avatar

I keep forgetting the name but aria2 is just great when you want to download a torrent on a server. One parameter (magnet or torrent file) and it starts downloading.

https://aria2.github.io

br00t4c, to random
@br00t4c@mastodon.social avatar

Shell In Court Over Its 'Dire' Exacerbation Of The Climate Crisis

https://popularresistance.org/shell-in-court-over-its-dire-exacerbation-of-the-climate-crisis/

CelloMomOnCars, to Hydrogen
@CelloMomOnCars@mastodon.social avatar

"['s] Energy Transition report is actually a full-throated defense of the industry.

– First, management is bullish on production;
– Second, they foresee a continued significant role for in the transportation sector;
– Third, [there is] an expectation for more .
– Fourth, new carbon abatement and removal technologies “will be needed.” [This refers to] technologies or operating efficiencies that presently do not exist."

https://www.theguardian.com/business/2024/mar/14/shell-warns-it-may-slow-emissions-reduction-during-crucial-climate-decade

stux, (edited ) to random Dutch
@stux@mstdn.social avatar

blijft voorhouden dat regelgeving betreft 1 bedrijf geen invloed heeft op het klimaat :nkoFacepalm2:

Dude, natuurlijk heeft het effect als je een van de GROOTSTE vervuilers ter wereld bent

Evolve or die

tinkebell, to random
@tinkebell@mstdn.social avatar

dus. (aldus )
had de nederlandse staat moeten aanklagen, níet .

sterker nog, (herken de gaslight opmerking) ‘deze zaak heeft zelfs een averechts effect op het terugbrengen van emissies.’

chiq hoor. shell beschuldigt milieudefensie van destructie 🥴

CarbonBubble, to climate
@CarbonBubble@mastodon.energy avatar

A Dutch 🇳🇱 court will today hear 's appeal against a landmark climate ruling which ordered it to drastically deepen planned greenhouse gas cuts 📉 https://buff.ly/3TXPRpQ

glynmoody, to random
@glynmoody@mastodon.social avatar

Emma Thompson and Greta Thunberg among critics of Shell’s case - https://www.theguardian.com/business/2024/apr/01/public-figures-urge-shell-to-drop-lawsuit-against-greenpeace "More than 30 public figures sign letter condemning $1m legal action" shame on

br00t4c, to random
@br00t4c@mastodon.social avatar

'xz utils' Software Backdoor Uncovered in Years-Long Hacking Plot

https://unicornriot.ninja/2024/xz-utils-software-backdoor-uncovered-in-years-long-hacking-plot/

gnulinux, to ilaughed German
@gnulinux@social.anoxinon.de avatar

Video: Linux Password einfach ändern auf der CLI

Du kannst unter Linux entweder auf der Kommandozeile oder mit grafischen Hilfsprogrammen das Passwort Deines Benutzers ändern. Als Root-Benutzer hast Du ausserdem die Möglichkeit, Passwörter für alle Benutzer deines Systems zurückzusetzen.

https://gnulinux.ch/video-linux-password-einfach-ändern-auf-der-cli

vwbusguy, to linux
@vwbusguy@mastodon.online avatar

In today's adventures, did you know that [ is an executable ELF binary provided by coreutils? There's a /usr/bin/[ program in the $PATH on most Linux systems.

Check it out:
which [

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