veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

283
active users

#shell

12 posts12 participants0 posts today
Replied in thread

@amin

I have a couple #shell functions for that sort of thing, but they don't work for LUKS.

Is it only an automounter, or can it be run manually?

Strangely, KDE Plasma couldn't mount it, which is what told me that it likely had some kind of problem. I'm just glad that #gparted could fix it.

function diskmount {
    local device
    if [[ -n $1 ]]
    then
        device="$1"
        #[[ $device =~ ^/dev/ ]] || device="/dev/$device"
        echo "$device" |grep -q "^/dev/" || device="/dev/$device"
        udisksctl mount -b $device
    else
        ( warn "usage: diskmount devname (i.e., sdb, not full path)"; return 1 )
    fi
}

function diskunmount {
    local device
    local poweroff=true
    if [[ $1 == --no*power*off || $1 == --no?eject ]]; then
        shift
        poweroff=false
    fi
    if [[ -n $1 ]]
    then
        device="$1"
        [[ $device == /dev/* ]] || device="/dev/$device"
        udisksctl unmount -b $device && $poweroff && udisksctl power-off -b $device
    else
        ( warn "usage: diskunmount devname (i.e., sdb, not full path)"; return 1 )
    fi
}

I'm editing #bash here-documents in #emacs. I'm using the '<<-' flavour to make it look nicer with indentation. Right now, I have to manually enter "real" leading Tabs with 'C-q Tab' which is error prone and cumbersome, given that I use the mightiest editor on this world. Isn't there some package to automatically indent a here document?

𝗩𝗮𝗻 𝗦𝗵𝗲𝗹𝗹 𝘁𝗼𝘁 𝗥𝗵𝗲𝗶𝗻𝗺𝗲𝘁𝗮𝗹𝗹: 𝗱𝗶𝘁 𝘇𝗶𝗷𝗻 𝗱𝗲 𝗳𝗮𝘃𝗼𝗿𝗶𝗲𝘁𝗲 𝗮𝗮𝗻𝗱𝗲𝗹𝗲𝗻 𝘃𝗮𝗻 𝗡𝗲𝗱𝗲𝗿𝗹𝗮𝗻𝗱𝘀𝗲 𝗵𝘂𝗶𝘀𝗵𝗼𝘂𝗱𝗲𝗻𝘀

Nederlandse huishoudens beleggen inmiddels bijna 200 miljard euro in aandelen, becijferde De Nederlandsche Bank (DNB). Net als voorgaande jaren, behoort Shell tot de favorieten. Daarin hadden we eind juni 4,4 miljard euro zitten. Maar ook in tech- en...

rtl.nl/nieuws/economie/artikel

Van Shell tot Rheinmetall: dit zijn de favoriete aandelen van Nederlandse huishoudens
RTL Nieuws · Van Shell tot Rheinmetall: dit zijn de favoriete aandelen van Nederlandse huishoudensNederlandse huishoudens beleggen inmiddels bijna 200 miljard euro in aandelen, becijferde De Nederlandsche Bank (DNB). Net als voorgaande jaren, behoort Shell tot de favorieten. Daarin hadden we eind juni 4,4 miljard euro zitten. Maar ook in tech- en defensiereuzen wordt flink wat geld gestoken.

“There seems to be, first of all, a collective will to not look at who are the real perpetrators of global warming.”

“Our collective global witness, if you like, to global warming is less than 10% of the actual numbers. Most of it is caused by these big oil and gas companies”

Anish Kapoor

#ClimateBreakdown
#Greenpeace
#Protest
#BigOil
#Shell

theguardian.com/environment/20

The Guardian · Huge ‘Butchered’ artwork installed on North Sea gas rig by Greenpeace activistsBy Damien Gayle

#Greenpeace #cambiamenticlimatici

Attivisti installano un’opera d’arte di Anish Kapoor su una piattaforma di #Shell per l’estrazione di #gas.

L'opera intitolata #BUTCHERED e concepita per l’azione di protesta, denuncia le ferite all'umanità e alla Terra dall’industria fossile.

«Mentre il settore dei combustibili fossili ricava miliardi dalla distruzione del #clima, le persone sono costrette a farsi carico dei danni causati da inondazioni, siccità e incendi boschivi», dichiara Greenpeace.