preview
Yes, I will also web search. Just wanna know if y’all have a favorite.
Yes, I will also web search. Just wanna know if y’all have a favorite.
Yes, I will also web search. Just wanna know if y’all have a favorite.
Yes, I will also web search. Just wanna know if y’all have a favorite.
I need to find out how much garbage can be cleared when ‘nix-collect-garbage -d’ is run for a personal project but I haven’t been able to find any answer about this on documentations and DDG.
I’ve tried ‘du -sh /nix/store’ but it would print the size everything in /nix/store however ‘nix-collect-garbage -d’ does not remove everything when it’s executed so that’s not gonna work. I’ve also tried executing “nix-store --gc --print-dead | grep ‘^/nix*’” (‘–print-dead’ produces output that which contains store paths that are not live and will not be used, with respect to roots) and then executing “stat -c ‘%s’” on each path (‘stat -c “%s” $file_name’ produces output containing the bytes of the concerned file in bytes) however that doesn’t seem to work as well for some unknown reason as they all seem to add up to a few kilobytes (despite the actual amount that ‘nix-collect-garbage -d’ deletes being about 400MB).
I know that the code below is extremely shit but that’s because that’s not my main project but a separate script solely for trying to find out what I am doing wrong and how I can properly implement this in my main project.
Thanks for any help!
`#!/usr/bin/env bash
tmp() {
declare -a str byt str=( $(nix-store --gc --print-dead 2>/dev/null | grep '/nix*') ) for garbage in "${str[@]}"; do byt+=( $( stat -c '%s' $garbage ) ) done total=0 for filesize in "${byt[@]}"; do total=$(( $total + $filesize )) done convertedtotal="$(( ( $total / 1024 ) /1024 ))MB" echo "$total" echo "$convertedtotal"
}
tmp`
Some responses from people on other platforms that did not work perfectly:
“I had the same issue a couple months back, i asked claude back then and got: sudo nix-store --gc --print-dead 2>/dev/null | xargs -I{} du -s {} 2>/dev/null | awk ‘{sum += $1} END {printf “%.2f GB\n”, sum/1024/1024}’”
And
"```
bytes=$(
nix-store --gc --print-dead |
xargs du -sb |
awk ‘{s+=$1} END {print s}’
)
numfmt --to=iec “$bytes”
some like this should work for you" Both of them had one issue: `$ nix-store --gc --print-dead | grep '^/nix*' | xargs du -sh | awk '{ print $1 }' finding garbage collector roots... determining live/dead paths... 8.0K 8.0K 8.0K 4.0K 1.6M 1.9M 8.0K 2.3M 8.0K 45M 4.0K 4.0K 8.0K 4.0K 4.0K 4.0K 684K 8.0K 8.0K 4.0K 8.0K 8.0K 7.7M 692K 4.0K 728K 8.0K 8.8M 344K 492K 4.0K 572K 8.0K 1.1M 4.0K 4.0K 8.0K 4.0K 8.0K 36K 8.0K 8.0K 8.0K 4.0K 4.0K 8.0K # All of that is about 72MB. $ nix-collect-garbage -d removing old generations of profile /home/north/.local/state/nix/profiles/home-manager removing old generations of profile /home/north/.local/state/nix/profiles/profile finding garbage collector roots... deleting garbage... deleting '/nix/store/vdixm6r047a3rw1wx8pqsjh40nl886jj-kate-26.04.2.drv' deleting '/nix/store/s5i0c135x2x5dz9ah01zxvl3prywqb30-kate-26.04.2.tar.xz.drv' ... deleting '/nix/store/rivv4fh68mkqnc4v225mflmi3a9damcj-xfconf-4.20.0' deleting '/nix/store/9nj1k063j54qfxzcm49dspwwl1sxhqs0-libxfce4util-4.20.1' deleting unused links... note: hard linking is currently saving 0.0 KiB 46 store paths deleted, 64.8 MiB freed` Now what's strange is that 'nix-store --gc --print-dead' outputs these 46 paths (which add up to ~72MB) and 'nix-collect-garbage -d' deletes 46 paths but somehow, 64.8 MiB, which is about 68MB, is freed instead of 72MB. I tried to replicate this again and it worked, there's always some amount of inaccuracy. Of course, a few megabytes don't matter but this can create significant inaccuracies on systems with more cache, but this definitely is a lot better.
I need to find out how much garbage can be cleared when ‘nix-collect-garbage -d’ is run for a personal project but I haven’t been able to find any answer about this on documentations and DDG.
I’ve tried ‘du -sh /nix/store’ but it would print the size everything in /nix/store however ‘nix-collect-garbage -d’ does not remove everything when it’s executed so that’s not gonna work. I’ve also tried executing “nix-store --gc --print-dead | grep ‘^/nix*’” (‘–print-dead’ produces output that which contains store paths that are not live and will not be used, with respect to roots) and then executing “stat -c ‘%s’” on each path (‘stat -c “%s” $file_name’ produces output containing the bytes of the concerned file in bytes) however that doesn’t seem to work as well for some unknown reason as they all seem to add up to a few kilobytes (despite the actual amount that ‘nix-collect-garbage -d’ deletes being about 400MB).
I know that the code below is extremely shit but that’s because that’s not my main project but a separate script solely for trying to find out what I am doing wrong and how I can properly implement this in my main project.
Thanks for any help!
`#!/usr/bin/env bash
tmp() {
declare -a str byt str=( $(nix-store --gc --print-dead 2>/dev/null | grep '/nix*') ) for garbage in "${str[@]}"; do byt+=( $( stat -c '%s' $garbage ) ) done total=0 for filesize in "${byt[@]}"; do total=$(( $total + $filesize )) done convertedtotal="$(( ( $total / 1024 ) /1024 ))MB" echo "$total" echo "$convertedtotal"
}
tmp`
Some responses from people on other platforms that did not work perfectly:
“I had the same issue a couple months back, i asked claude back then and got: sudo nix-store --gc --print-dead 2>/dev/null | xargs -I{} du -s {} 2>/dev/null | awk ‘{sum += $1} END {printf “%.2f GB\n”, sum/1024/1024}’”
And
"```
bytes=$(
nix-store --gc --print-dead |
xargs du -sb |
awk ‘{s+=$1} END {print s}’
)
numfmt --to=iec “$bytes”
some like this should work for you" Both of them had one issue: `$ nix-store --gc --print-dead | grep '^/nix*' | xargs du -sh | awk '{ print $1 }' finding garbage collector roots... determining live/dead paths... 8.0K 8.0K 8.0K 4.0K 1.6M 1.9M 8.0K 2.3M 8.0K 45M 4.0K 4.0K 8.0K 4.0K 4.0K 4.0K 684K 8.0K 8.0K 4.0K 8.0K 8.0K 7.7M 692K 4.0K 728K 8.0K 8.8M 344K 492K 4.0K 572K 8.0K 1.1M 4.0K 4.0K 8.0K 4.0K 8.0K 36K 8.0K 8.0K 8.0K 4.0K 4.0K 8.0K # All of that is about 72MB. $ nix-collect-garbage -d removing old generations of profile /home/north/.local/state/nix/profiles/home-manager removing old generations of profile /home/north/.local/state/nix/profiles/profile finding garbage collector roots... deleting garbage... deleting '/nix/store/vdixm6r047a3rw1wx8pqsjh40nl886jj-kate-26.04.2.drv' deleting '/nix/store/s5i0c135x2x5dz9ah01zxvl3prywqb30-kate-26.04.2.tar.xz.drv' ... deleting '/nix/store/rivv4fh68mkqnc4v225mflmi3a9damcj-xfconf-4.20.0' deleting '/nix/store/9nj1k063j54qfxzcm49dspwwl1sxhqs0-libxfce4util-4.20.1' deleting unused links... note: hard linking is currently saving 0.0 KiB 46 store paths deleted, 64.8 MiB freed` Now what's strange is that 'nix-store --gc --print-dead' outputs these 46 paths (which add up to ~72MB) and 'nix-collect-garbage -d' deletes 46 paths but somehow, 64.8 MiB, which is about 68MB, is freed instead of 72MB. I tried to replicate this again and it worked, there's always some amount of inaccuracy. Of course, a few megabytes don't matter but this can create significant inaccuracies on systems with more cache, but this definitely is a lot better.
From directors Abby Martin and Matt Belen, Cuba After Castro delivers the definitive portrait of Miguel Díaz-Canel, Cuba’s first leader born after the Revolution. Through this unprecedented in-depth interview we see a vision of revolutionary Cuba suppressed in the west: a nation of collective values and defiance in the face of constant threats from the United States.
The film chronicles Diaz-Canel’s formation as an unexpected successor to the Castros — an unassuming organizer molded by the revolutionary process. Confronting a perfect storm of intensified U.S. sanctions, a media war, a devastating pandemic, and historic domestic protests. Díaz-Canel reflects on navigating these existential crises for the nation he has come to lead.
MB01XX2FAXAAEQJ
From directors Abby Martin and Matt Belen, Cuba After Castro delivers the definitive portrait of Miguel Díaz-Canel, Cuba’s first leader born after the Revolution. Through this unprecedented in-depth interview we see a vision of revolutionary Cuba suppressed in the west: a nation of collective values and defiance in the face of constant threats from the United States.
The film chronicles Diaz-Canel’s formation as an unexpected successor to the Castros — an unassuming organizer molded by the revolutionary process. Confronting a perfect storm of intensified U.S. sanctions, a media war, a devastating pandemic, and historic domestic protests. Díaz-Canel reflects on navigating these existential crises for the nation he has come to lead.
MB01XX2FAXAAEQJ
Xuan 軒 シュエン | XCancel
Xuan 軒 シュエン | XCancel
Grün und autofrei: So stellt sich Rostock das neue Warnowquartier vor. Private Autos sollen nicht ohne Weiteres durch die Straßen fahren dürfen. Stattdessen bekommen Fußgänger und Radfahrer Vorrang. Parkplätze vor der Wohnungstür gibt es nicht.
Ute Fischer-Gäde (Grüne), Senatorin für Bau, Klima und Mobilität in Rostock, sieht im Autofrei-Konzept die Stadtplanung der Zukunft.
Auf rund 2000 Anwohner sollen 500 Parkplätze kommen, die in Garagen am Rande des Wohnviertels stehen. Um den Einkauf die letzten Meter zur Wohnung transportieren zu können, werden Anwohnern Lastenräder und Handwagen zur Verfügung gestellt.
Freie Fahrt haben nur Feuerwehr, Rettungswagen, Müllabfuhr, Pflege und Straßenreinigung. Wenn es sich aber nicht um Notfälle handelt, haben Fußgänger und Radfahrer Vorrang auf den Straßen und Fahrzeuge müssen Schritttgeschwindigkeit einhalten.
Grün und autofrei: So stellt sich Rostock das neue Warnowquartier vor. Private Autos sollen nicht ohne Weiteres durch die Straßen fahren dürfen. Stattdessen bekommen Fußgänger und Radfahrer Vorrang. Parkplätze vor der Wohnungstür gibt es nicht.
Ute Fischer-Gäde (Grüne), Senatorin für Bau, Klima und Mobilität in Rostock, sieht im Autofrei-Konzept die Stadtplanung der Zukunft.
Auf rund 2000 Anwohner sollen 500 Parkplätze kommen, die in Garagen am Rande des Wohnviertels stehen. Um den Einkauf die letzten Meter zur Wohnung transportieren zu können, werden Anwohnern Lastenräder und Handwagen zur Verfügung gestellt.
Freie Fahrt haben nur Feuerwehr, Rettungswagen, Müllabfuhr, Pflege und Straßenreinigung. Wenn es sich aber nicht um Notfälle handelt, haben Fußgänger und Radfahrer Vorrang auf den Straßen und Fahrzeuge müssen Schritttgeschwindigkeit einhalten.
Only joking a bit.
Fresno is in the lower 80s this weekend. Which is very cool for this time of year. Meanwhile an entire continent is getting the weather we usually get…crazy.
Only joking a bit.
Fresno is in the lower 80s this weekend. Which is very cool for this time of year. Meanwhile an entire continent is getting the weather we usually get…crazy.
I have bind mounts configured in my /etc/fstab. The source (i.e. where the files physically exist) is on a removable USB drive.
Right now it works but I have to mount/unmount everything individually when I plug/unplug the drive. I would like to be able to have the bind mounts follow the state of of the USB drive automatically.
Is there a way?
Edit here is relevant section of fstab:
/dev/mapper/external-crypt /mount/external auto nosuid,nodev,nofail,x-systemd.device-timeout=5 0 0 /mount/external/realfolder /home/user/folder none bind,nofail 0 0
So when I run sudo mount “/mount/external” I want sudo mount /home/user/folder to be implied; likewise for umount.
I have bind mounts configured in my /etc/fstab. The source (i.e. where the files physically exist) is on a removable USB drive.
Right now it works but I have to mount/unmount everything individually when I plug/unplug the drive. I would like to be able to have the bind mounts follow the state of of the USB drive automatically.
Is there a way?
Edit here is relevant section of fstab:
/dev/mapper/external-crypt /mount/external auto nosuid,nodev,nofail,x-systemd.device-timeout=5 0 0 /mount/external/realfolder /home/user/folder none bind,nofail 0 0
So when I run sudo mount “/mount/external” I want sudo mount /home/user/folder to be implied; likewise for umount.
I am still of my left of socialist idea that transit should be free for everyone.
I am still of my left of socialist idea that transit should be free for everyone.
VPN, confini digitali in una rete senza confini
Internet è nato per connettere le persone al di là dei confini. Eppure, sempre più spesso, gli utenti sperimentano versioni diverse dello stesso internet a seconda della loro posizione geografica.
https://pirati.io/2026/06/vpn-confini-digitali-in-una-rete-senza-confini/
VPN, confini digitali in una rete senza confini
Internet è nato per connettere le persone al di là dei confini. Eppure, sempre più spesso, gli utenti sperimentano versioni diverse dello stesso internet a seconda della loro posizione geografica.
https://pirati.io/2026/06/vpn-confini-digitali-in-una-rete-senza-confini/
cross-posted from: lemmy.blahaj.zone/post/44379458
!fill_in_the_blank_comics@lemmy.blahaj.zone
It’s a classic forum game from way back in the BBS days, thought I’d bring it back cause it can be pretty funny
Either through writing captions, editing the uploaded image, or even drawing in new parts of it, you finish the comic which is missing something
cross-posted from: lemmy.blahaj.zone/post/44379458
!fill_in_the_blank_comics@lemmy.blahaj.zone
It’s a classic forum game from way back in the BBS days, thought I’d bring it back cause it can be pretty funny
Either through writing captions, editing the uploaded image, or even drawing in new parts of it, you finish the comic which is missing something
An opinionated, fast, native android app for Logseq
An opinionated, fast, native android app for Logseq
Pro, Max, and Ultra tiers move to the M7 line as Apple chases memory bandwidth for on-device AI.
Pro, Max, and Ultra tiers move to the M7 line as Apple chases memory bandwidth for on-device AI.
Stone Age 4X strategy game Folk Emerging combines the romance of early Civilisation with the ramshackle community vibe of King of Dragon Pass.
Stone Age 4X strategy game Folk Emerging combines the romance of early Civilisation with the ramshackle community vibe of King of Dragon Pass.
Mighty chuffed with how the topstitching is coming along on my #FreeSewingCrux climbing pants! I figured I could get away with the hot pink stretch denim for sports gear. And if not, I say I can.
I’m using my Bernina’s triple stitch for the top stitching (still cheaper than special topstitching thread, so 🤷). The triple stitch started acting up after using the machine’s basting stitch setting though (see photo 4), so I’ve gotten in touch with the company I bought it from. While waiting for them to video call me, though, I used the overlock stitch for a while to finish an edge, and it started working perfectly again.
So that’s nice, I guess… Though I would prefer it to know what caused the issue and how I can solve it without having to overlock two sideseams for pants first.
#sewing #FreeSewing #Jeans #Bernina #TopStitching #Climbing #bouldering
@sewing@lemmy.world @freesewing@freesewing.social
Mighty chuffed with how the topstitching is coming along on my #FreeSewingCrux climbing pants! I figured I could get away with the hot pink stretch denim for sports gear. And if not, I say I can.
I’m using my Bernina’s triple stitch for the top stitching (still cheaper than special topstitching thread, so 🤷). The triple stitch started acting up after using the machine’s basting stitch setting though (see photo 4), so I’ve gotten in touch with the company I bought it from. While waiting for them to video call me, though, I used the overlock stitch for a while to finish an edge, and it started working perfectly again.
So that’s nice, I guess… Though I would prefer it to know what caused the issue and how I can solve it without having to overlock two sideseams for pants first.
#sewing #FreeSewing #Jeans #Bernina #TopStitching #Climbing #bouldering
@sewing@lemmy.world @freesewing@freesewing.social
I just read American Apocalypse: A History of Modern Evangelicalism, there was a lot about the early history I didn’t know about, like how it started mostly because WW1 basically validated the beliefs of a lot of people that thought the world was ending soon, and how a lot of them were actually pacifists and not christian nationalists, but around WW2 evangelicals became what we know them as today, although there was temporarily an active left-wing faction during the american civil rights era. It delves into just how much they become one of if not the strongest interest group around the Reagan era, and how oddly it must’ve felt to have a president that thought the world was gonna end, that was the craziest part to me I didn’t know that a central tenet of fundamentalism and evangelicals is that they’re actively waiting for the world to end, and making decisions around that, kinda reminded me of a, not totally illogical, tendency of some internet leftists to predict a kind of final crisis which ushers in socialism in our lifetimes.
The book end during obama’s second term, so it doesn’t delve into how the movement is currently doing, and personally I hear a lot less about them that I did during trump 1. So what do people here think, has it all been subsumed into trumpism? Or has it been subsumed into zionism, with the original christian message becoming secondary? Is it spreading or decreasing inside america?
More importantly to me, is it actually spreading OUTSIDE north america? Part of why I started reading this was because I heard that it was, mostly to south america, and the overly emotional tone and messianism of american fundamentalists reminded me of the far-right here in portugal (which isn’t protestant).
I just read American Apocalypse: A History of Modern Evangelicalism, there was a lot about the early history I didn’t know about, like how it started mostly because WW1 basically validated the beliefs of a lot of people that thought the world was ending soon, and how a lot of them were actually pacifists and not christian nationalists, but around WW2 evangelicals became what we know them as today, although there was temporarily an active left-wing faction during the american civil rights era. It delves into just how much they become one of if not the strongest interest group around the Reagan era, and how oddly it must’ve felt to have a president that thought the world was gonna end, that was the craziest part to me I didn’t know that a central tenet of fundamentalism and evangelicals is that they’re actively waiting for the world to end, and making decisions around that, kinda reminded me of a, not totally illogical, tendency of some internet leftists to predict a kind of final crisis which ushers in socialism in our lifetimes.
The book end during obama’s second term, so it doesn’t delve into how the movement is currently doing, and personally I hear a lot less about them that I did during trump 1. So what do people here think, has it all been subsumed into trumpism? Or has it been subsumed into zionism, with the original christian message becoming secondary? Is it spreading or decreasing inside america?
More importantly to me, is it actually spreading OUTSIDE north america? Part of why I started reading this was because I heard that it was, mostly to south america, and the overly emotional tone and messianism of american fundamentalists reminded me of the far-right here in portugal (which isn’t protestant).

i often continue editing my images after i post them. this is the original. let me know what you think vs the current version!

i often continue editing my images after i post them. this is the original. let me know what you think vs the current version!
But campaigners want the LW masts in Worcestershire to be given listed status.
But campaigners want the LW masts in Worcestershire to be given listed status.
a great tweet by yours mctruly that says ATTENTION SHARKS a radio station that just plays cool loud engine revving sounds so people think you have a cool car
a great tweet by yours mctruly that says ATTENTION SHARKS a radio station that just plays cool loud engine revving sounds so people think you have a cool car
The Evolution of Terror in Modern Web Fiction
Horror has always been a cornerstone of storytelling, but the digital age has transformed how we experience the macabre. In the realm of web novels, horror is rarely a standalone genre; it frequently bleeds into cultivation, system-based progression, and post-apocalyptic survival. This intersection creates a unique brand of tension where the protagonist isn’t just running from a monster, but often trying to understand a logic-defying system or outlevel a cosmic entity that views humanity as mere ants. The medium allows for a slow-burn psychological erosion that traditional formats often miss, dragging the reader through hundreds of chapters of escalating dread.
The Evolution of Terror in Modern Web Fiction
Horror has always been a cornerstone of storytelling, but the digital age has transformed how we experience the macabre. In the realm of web novels, horror is rarely a standalone genre; it frequently bleeds into cultivation, system-based progression, and post-apocalyptic survival. This intersection creates a unique brand of tension where the protagonist isn’t just running from a monster, but often trying to understand a logic-defying system or outlevel a cosmic entity that views humanity as mere ants. The medium allows for a slow-burn psychological erosion that traditional formats often miss, dragging the reader through hundreds of chapters of escalating dread.