There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

tuto193 , to programmerhumor in Can we finally put this one to rest?

This is missing one at the very top that’s just:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">return a < b
</span>
carbotect , to android in Google's messaging mess continues: Chat app now wants to be the next WhatsApp

I don’t get it. Are Google employees completely ignoring all the negative press their messaging apps get?

Everyone online agrees, that all these messaging apps that Google keeps pumping, just hurt each other.

Here is a list of every messaging app that Google has ever produced:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Android SMS
</span><span style="color:#323232;">
</span><span style="color:#323232;">Bump!
</span><span style="color:#323232;">
</span><span style="color:#323232;">Cloud to Device Messaging
</span><span style="color:#323232;">
</span><span style="color:#323232;">Chat (not the same as Google Chat)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Disco
</span><span style="color:#323232;">
</span><span style="color:#323232;">Dodgeball
</span><span style="color:#323232;">
</span><span style="color:#323232;">Firebase Cloud Messaging
</span><span style="color:#323232;">
</span><span style="color:#323232;">Gizmo5
</span><span style="color:#323232;">
</span><span style="color:#323232;">Gmail
</span><span style="color:#323232;">
</span><span style="color:#323232;">GTalkService
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google+
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google+ Hangouts (not the same as Google Hangouts)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google+ Messenger
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google.com/talk
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Allo
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Assistant (it really did once have its own text feature)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Assistant Messages (and then this but only in a family group)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Buzz
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Chat
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Cloud Messaging
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Docs
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Docs Editor Chat
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Duo
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Fi
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Friend Connect
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Groups
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Hangouts
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Hangouts Chat
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Hangouts Meet
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Helpouts
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Huddle
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Latitude
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Maps Messages
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Meet
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Messenger SMS
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Pay Messages
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Phone Messaging
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Photos Messages
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Schemer
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Spaces (this was basically Google's version of Instagram and it lasted less than a year)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Stadia Messages
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Talk
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Voice
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Voice Legacy
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Voice Third-party Apps
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Voice for G Suite
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Voice FXO VoIP Gateway (Obihai)
</span><span style="color:#323232;">
</span><span style="color:#323232;">Google Wave
</span><span style="color:#323232;">
</span><span style="color:#323232;">GrandCentral Communications
</span><span style="color:#323232;">
</span><span style="color:#323232;">Jaiku
</span><span style="color:#323232;">
</span><span style="color:#323232;">Jibe Mobile
</span><span style="color:#323232;">
</span><span style="color:#323232;">Meebo
</span><span style="color:#323232;">
</span><span style="color:#323232;">Messages
</span><span style="color:#323232;">
</span><span style="color:#323232;">Orkut
</span><span style="color:#323232;">
</span><span style="color:#323232;">Postini
</span><span style="color:#323232;">
</span><span style="color:#323232;">Slide
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sparrow
</span><span style="color:#323232;">
</span><span style="color:#323232;">YouTube Messages
</span>
savvywolf , to programmerhumor in What's inside that package.json
@savvywolf@pawb.social avatar
<pre style="background-color:#ffffff;">
<span style="color:#323232;">{
</span><span style="color:#323232;">  "status": 404,
</span><span style="color:#323232;">  "Msg": "Unknown error",
</span><span style="color:#323232;">  "timestamp": "4/3/23 12:11PM",
</span><span style="color:#323232;">}
</span>
csm10495 , to programmerhumor in Lemmy
@csm10495@sh.itjust.works avatar

You know at least it printed an error. I hate when things silently swallow errors.

I’m looking at you, Python programmers:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">try:
</span><span style="color:#323232;">   ... 
</span><span style="color:#323232;">except:
</span><span style="color:#323232;">   pass
</span>
rimorso , to programmerhumor in Lemmy

We are not savages now we use

<pre style="background-color:#ffffff;">
<span style="font-weight:bold;color:#a71d5d;">with </span><span style="color:#323232;">suppress(</span><span style="color:#0086b3;">Exception</span><span style="color:#323232;">):
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#0086b3;">100 </span><span style="color:#323232;">lines nonsense
</span>
ColonelSanders , to showerthoughts in It will feel like home once I hear about the undertaker throwing mankind off hell in a cell
<pre style="background-color:#ffffff;">
<span style="color:#323232;">We remember those we left,
</span><span style="color:#323232;">and those who went away.
</span><span style="color:#323232;">Taking with us memories,
</span><span style="color:#323232;">and in our hearts they'll stay.
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sprog and Schnoodle, ShittyMorph,
</span><span style="color:#323232;">the highlights of our days.
</span><span style="color:#323232;">They speak to us in spirit,
</span><span style="color:#323232;">what words we cannot say.
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">Fear not, oh wary traveler,
</span><span style="color:#323232;">there's one thing you should know.
</span><span style="color:#323232;">For out of ashes and the past,
</span><span style="color:#323232;">new sprouts begin to grow.
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">Let others take the mantle,
</span><span style="color:#323232;">to raise that burning flame.
</span><span style="color:#323232;">Together we can make our own,
</span><span style="color:#323232;">and love them all the same.
</span>
ruud , to selfhosted in How quickly will a lemmy instance eat up storage?
@ruud@lemmy.world avatar

This is lemmy.world after 4 weeks:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">58G	pictrs
</span><span style="color:#323232;">34G	postgres
</span>
NettoHikari , to selfhosted in How quickly will a lemmy instance eat up storage?
@NettoHikari@social.fossware.space avatar

This is my small instance with way fewer users than lemmy.world.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">11G	pictrs
</span><span style="color:#323232;">5.2G	postgres
</span>
russjr08 , to selfhosted in How quickly will a lemmy instance eat up storage?
@russjr08@outpost.zeuslink.net avatar

My instance has 13 users, and has been up for 2 months now:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">1.5G    ./pictrs
</span><span style="color:#323232;">3.4G    ./postgres
</span>
Lemmyin , to linux in Your best terminal aliases

Here are mine. Sorry for the mouth full, but I think people may benefit from some of these :)

<pre style="background-color:#ffffff;">
<span style="color:#323232;">alias ll="ls -alkhF"
</span><span style="color:#323232;">alias l="ls -1"
</span><span style="color:#323232;">
</span><span style="color:#323232;"># BE CAREFUL WITH THIS AND COULD RETURN COLOR KEYCODES INTO PIPES ETC...
</span><span style="color:#323232;">alias grep='grep --color=always' 
</span><span style="color:#323232;">
</span><span style="color:#323232;">alias db='dotnet build'
</span><span style="color:#323232;">
</span><span style="color:#323232;">alias gs='git status'
</span><span style="color:#323232;">alias gf='git fetch'
</span><span style="color:#323232;">alias gl='git pull'
</span><span style="color:#323232;">alias gp='git push'
</span><span style="color:#323232;">alias gpt='git push --tags'
</span><span style="color:#323232;">alias gP='git push --force-with-lease'
</span><span style="color:#323232;">alias ga='git add'
</span><span style="color:#323232;">alias gd='git diff'
</span><span style="color:#323232;">alias gw='git diff --word-diff'
</span><span style="color:#323232;">setopt interactive_comments
</span><span style="color:#323232;">preexec(){ _lc=$1; }
</span><span style="color:#323232;">alias gcm='git commit -m "${_lc#gcm }" #'
</span><span style="color:#323232;">
</span><span style="color:#323232;"># THE BELOW TO BE USED ALONG WITH THE FOLLOWING GIT ALIASES:
</span><span style="color:#323232;">#[alias]
</span><span style="color:#323232;">#	logo = log --pretty=tformat:'%C(auto,red)%m %C(auto,yellow)%h%C(auto,magenta) %G? %C(auto,blue)%>#(12,trunc)%ad %C(auto,green)%<(15,trunc)%aN%C(auto,reset)%s%C(auto,red) %gD %D' --date=short
</span><span style="color:#323232;">#	adog = log --all --decorate --oneline --graph
</span><span style="color:#323232;">#	dog = log --decorate --oneline --graph
</span><span style="color:#323232;">
</span><span style="color:#323232;">alias glog='git logo'
</span><span style="color:#323232;">alias gdog='git dog'
</span><span style="color:#323232;">alias gadog='git adog'
</span><span style="color:#323232;">
</span><span style="color:#323232;">alias gb='git branch'
</span><span style="color:#323232;">alias gba='git branch --all'
</span><span style="color:#323232;">alias gco='git checkout'
</span><span style="color:#323232;">alias gm='git merge'
</span><span style="color:#323232;">alias gt='git tag | sort -V | tail'
</span><span style="color:#323232;">
</span><span style="color:#323232;">alias rl='source ~/.zshrc'
</span><span style="color:#323232;">alias n='nvim'
</span><span style="color:#323232;">
</span><span style="color:#323232;"># LIST PATHS OF OTHER ZSH SHELLS I HAVE OPEN
</span><span style="color:#323232;">lssh() {
</span><span style="color:#323232;">	ps au 
</span><span style="color:#323232;">		| awk '$11 == "-zsh" || $11 == "/bin/zsh" { print $2 }' 
</span><span style="color:#323232;">		| xargs pwdx 
</span><span style="color:#323232;">		| awk '{ print $2 }' 
</span><span style="color:#323232;">		| sed -n "|^${2}.*|p" 
</span><span style="color:#323232;">		| sort -u 
</span><span style="color:#323232;">		| nl
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;"># CD TO SHELL NUMBER RETURNED BY LSSH
</span><span style="color:#323232;">cdsh() {
</span><span style="color:#323232;">	cd $(lssh 
</span><span style="color:#323232;">		| sed "$1!d" 
</span><span style="color:#323232;">		| cut -f 2)
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;"># CD TO PATH OF ANOTHER SHELL, USING FZF AS SELECTOR
</span><span style="color:#323232;">cs() {
</span><span style="color:#323232;">	cmd1=$(lssh | fzf --select-1 --query "$1" --height=~50 | cut -f 2)
</span><span style="color:#323232;">	cmd="cd $cmd1"
</span><span style="color:#323232;">	print -S $cmd
</span><span style="color:#323232;">	eval $cmd
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;"># RUN THE COMMAND FROM HISTORY, USING FZF AS SELECTOR, ALTERNATIVE TO <C-R>
</span><span style="color:#323232;">hf() {
</span><span style="color:#323232;">	cmd=$(history 0 | sort -nr | cut -c 8- | fzf -e --select-1 --no-sort --query "$1" )
</span><span style="color:#323232;">	# push the command into the history
</span><span style="color:#323232;">	print -S $cmd
</span><span style="color:#323232;">	eval $cmd
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;"># REMMINA USING THE CONNECTION FILE SELECTED USING FZF
</span><span style="color:#323232;">rf() {
</span><span style="color:#323232;">	pushd ~/.local/share/remmina
</span><span style="color:#323232;">	cmd=$(remmina -c $(ls $PWD/* | fzf -e --select-1 --no-sort --query "$1"))
</span><span style="color:#323232;">	# push the command into the history
</span><span style="color:#323232;">	print -S $cmd
</span><span style="color:#323232;">	eval $cmd
</span><span style="color:#323232;">	popd
</span><span style="color:#323232;">}
</span>
wgs , to linux in Your best terminal aliases
@wgs@lemmy.sdf.org avatar

I made a cool exercise some time ago: checking my top 10 used commands, to see how I can “optimize” them, and maybe create a few aliases to save a few keystrokes. Turns out I don’t need that much aliases in the end:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">alias v='vis' # my text editor
</span><span style="color:#323232;">alias sv='doas vis'
</span><span style="color:#323232;">alias ll='ls -l'
</span>

And that’s pretty much it ^^ I do have a lot of scripts though, some of them being one-liners, but it makes them shell independent, which I like :)

For reference, here is my analysis of my top 10 most used commands.

edit: I do have a bunch of git aliases though for common subcommands I use. I prefer using them as git <alias> over using she’ll specific aliases so I can always type “git” and not mentally think wether I need a git command or a shell alias.

bahmanm , to linux in Your best terminal aliases
@bahmanm@lemmy.ml avatar
<pre style="background-color:#ffffff;">
<span style="color:#323232;">alias et='emacsclient -ct'
</span><span style="color:#323232;">alias ec='emacsclient -cn'
</span><span style="color:#323232;">alias make='make --warn-undefined-variables'
</span>
Plasma , to linux in Your best terminal aliases
@Plasma@lemmy.ml avatar
<pre style="background-color:#ffffff;">
<span style="color:#62a35c;">alias </span><span style="font-weight:bold;color:#795da3;">..</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">'cd ..'
</span>
Plasma , to linux in Your best terminal aliases
@Plasma@lemmy.ml avatar
<pre style="background-color:#ffffff;">
<span style="color:#62a35c;">alias </span><span style="font-weight:bold;color:#795da3;">..</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">'cd ..'
</span>
CsXGF8uzUAOh6fqV , to linux in Your best terminal aliases
@CsXGF8uzUAOh6fqV@lemmy.world avatar

Selection of my fish abbreviations for comfy terminal creatures:

<pre style="background-color:#ffffff;">
<span style="color:#323232;"># MISC -----------------
</span><span style="color:#323232;">abbr -a la 'exa -la'
</span><span style="color:#323232;">abbr -a p 'python'
</span><span style="color:#323232;">abbr -a v 'nvim'
</span><span style="color:#323232;">abbr -a rmd 'rm -rf'
</span><span style="color:#323232;">abbr -a feh 'feh --scale-down -d'
</span><span style="color:#323232;">abbr -a ka 'doas killall'
</span><span style="color:#323232;">abbr -a fp 'ffplay'
</span><span style="color:#323232;">abbr -a ff 'firefox'
</span><span style="color:#323232;">abbr -a tree 'exa -T'
</span><span style="color:#323232;">abbr -a libver 'dpkg -l | grep'
</span><span style="color:#323232;">abbr -a ex 'chmod +x'
</span><span style="color:#323232;"># specific file and directory based
</span><span style="color:#323232;">abbr -a notes 'nvim ~/.vimwiki/index.md'
</span><span style="color:#323232;">abbr -a idir 'cd ~/some/important/dir'
</span><span style="color:#323232;">abbr -a fishconf 'nvim ~/.config/fish/config.fish'
</span><span style="color:#323232;">abbr -a vimconf 'nvim ~/.config/nvim/init.vim'
</span><span style="color:#323232;">abbr -a i3conf 'nvim ~/.config/i3/config'
</span><span style="color:#323232;"># PACMAN ---------------
</span><span style="color:#323232;">abbr -a pin 'doas pacman -S'
</span><span style="color:#323232;">abbr -a pun 'doas pacman -Rns'
</span><span style="color:#323232;">abbr -a pss 'pacman -Ss'
</span><span style="color:#323232;">abbr -a pls 'pacman -Qd'
</span><span style="color:#323232;">abbr -a aurls 'paru -Qm'
</span><span style="color:#323232;">abbr -a pct 'pacman -Q | wc -l'
</span><span style="color:#323232;">abbr -a syu 'paru -Syu'
</span><span style="color:#323232;">abbr -a pcl 'paccache -r -k 1; paru --cc;'
</span><span style="color:#323232;">abbr -a pfd 'pacman -Qs'
</span><span style="color:#323232;"># GIT ------------------
</span><span style="color:#323232;">abbr -a ga 'git add -A; git status'
</span><span style="color:#323232;">abbr -a gr 'git reset'
</span><span style="color:#323232;">abbr -a gd 'git diff'
</span><span style="color:#323232;">abbr -a gc 'git commit -m'
</span><span style="color:#323232;">abbr -a gdc 'git diff HEAD~0 --stat'
</span><span style="color:#323232;">abbr -a gl 'git log'
</span><span style="color:#323232;">abbr -a gb 'git branch'
</span><span style="color:#323232;">abbr -a gp 'git push origin'
</span><span style="color:#323232;">abbr -a gch 'git checkout'
</span><span style="color:#323232;">abbr -a gam 'git commit --amend - m'
</span><span style="color:#323232;">abbr -a gcl 'git clone'
</span><span style="color:#323232;"># RUST -----------------
</span><span style="color:#323232;">abbr -a cc 'cargo clippy --all-features'
</span><span style="color:#323232;">abbr -a ccc 'cargo check'
</span><span style="color:#323232;">abbr -a cb 'cargo build'
</span><span style="color:#323232;">abbr -a cr 'cargo run'
</span><span style="color:#323232;">abbr -a cbr 'cargo build --release'
</span><span style="color:#323232;">abbr -a crr 'cargo run --release'
</span><span style="color:#323232;">abbr -a ct 'cargo test'
</span><span style="color:#323232;">abbr -a ctt 'cargo tarpaulin --ignore-tests --skip-clean'
</span><span style="color:#323232;">abbr -a bacon 'bacon clippy-all -w'
</span><span style="color:#323232;">abbr -a cil 'cargo install --path ./'
</span><span style="color:#323232;">abbr -a cia 'cargo install-update -a'
</span><span style="color:#323232;">abbr -a ca 'cargo add'
</span>
minorsecond , to linux in Your best terminal aliases
<pre style="background-color:#ffffff;">
<span style="color:#323232;">alias ein='f() { sudo emerge -av $1 };f'
</span><span style="color:#323232;">alias eup='sudo emerge -avuDN @world'
</span>
knobbysideup , to linux in Your best terminal aliases
<pre style="background-color:#ffffff;">
<span style="color:#323232;">become="sudo su -"
</span><span style="color:#323232;">pb="ansible-playbook"
</span>
literally1848 , to linux in Your best terminal aliases

alias clearswap='sudo swapoff -a && sudo swapon -a

alias reload=‘source ~/.bashrc’

scan_local() {

<pre style="background-color:#ffffff;">
<span style="color:#323232;"> local_ip=$(ip addr show wlan0 | grep "inet " | awk '{print $2}' | awk -F '/' '{print $1}')
</span><span style="color:#323232;">
</span><span style="color:#323232;"> sudo nmap -sn "$local_ip/24"
</span>

}

BendyLemmy , to linux in Your best terminal aliases
@BendyLemmy@lemmy.ml avatar

TTIME (abbr - not alias)

<pre style="background-color:#ffffff;">
<span style="color:#323232;">abbr -a -- ttime date '+It is %-H %M and %S seconds'|espeak >/dev/null 2>/dev/null # imported from a universal variable, see `help abbr`
</span>
KelsonV , to technology in Google will be deleting inactive google accounts together with all data on them starting December 1, 2023
@KelsonV@lemmy.world avatar

From the description:

Google will give you an opportunity to take an action in your account by:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Sending email notifications to your Google Account
</span><span style="color:#323232;">Sending notifications to your recovery email, if any exists
</span>
Iridium , to programmerhumor in LLMs Making Algorithms & Data Structures Obsolete
<pre style="background-color:#ffffff;">
<span style="color:#323232;">Function isPrime(number):
</span><span style="color:#323232;">    return false
</span>

Accurate for almost 100% of cases

NoGoodDevGuy , to youshouldknow in YSK: While you're on Lemmy/Kbin/Fediverse, you're not "the product" but you're also not "the customer".

I heard it was shortened from “the customer is always right in knowing what they want”

<pre style="background-color:#ffffff;">
ShittyKopper , to showerthoughts in Lemmy resembles the old reddit experience so well that they even emulate the old reddit server performance

Not OP but I can answer with my own stats:

In just a week, With BTRFS compression (compress-force=zstd:3) & deduplication (via bees), media is at about 1GB (and I am subscribed to media-heavy communities like 196) and the postgres DB is at about 550MB (which is also currently shared with Matrix Dendrite)

At “idle” (as you can be while being connected to ActivityPub & Matrix), the immediate CPU and RAM usage breakdown per container is:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">NAME        CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME         AVG CPU %
</span><span style="color:#323232;">pict-rs     0.20%       18.92MB / 4.005GB  0.47%       3.319GB / 1.105GB  17.58GB / 3.239GB  13          1h16m57.232828s  0.59%
</span><span style="color:#323232;">crowdsec    1.39%       44.23MB / 4.005GB  1.10%       106.4MB / 23.46MB  25.53GB / 486.7MB  11          45m28.744419s    1.95%
</span><span style="color:#323232;">caddy       0.63%       73.06MB / 4.005GB  1.82%       1.675GB / 1.977GB  3.322GB / 720MB    10          21m9.94572s      0.90%
</span><span style="color:#323232;">dendrite    1.58%       197.7MB / 4.005GB  4.94%       912.8MB / 2.33GB   8.718GB / 4.761GB  12          53m26.302022s    1.43%
</span><span style="color:#323232;">postgres    5.33%       82.51MB / 4.005GB  2.06%       56.22GB / 7.961GB  20.92GB / 295.7GB  23          8h20m28.078567s  2.86%
</span><span style="color:#323232;">lemmy-ui    0.00%       48.71MB / 4.005GB  1.22%       3.491GB / 5.961GB  3.603GB / 5.267GB  12          31m35.884936s    0.24%
</span><span style="color:#323232;">lemmy-be    2.82%       29.01MB / 4.005GB  0.72%       16.45GB / 57.85GB  7.966GB / 6.439GB  6           3h6m34.633508s   1.42%
</span>

Net IO you shouldn’t really care about as that includes inter-container networking. I’m trying to find how much outgoing data have been transferred but because the month just ended I have no idea how accurate the numbers are.

hitagi , to nostupidquestions in Where are all the videos and gifs?

ani.social

I love that lol.

hehe

Is there somewhere in the docs that explains how to configure your instance to compress images like that?

The Lemmy docs are kind of lacking admittedly but you can configure image compression through . You can find all the environment variables you can use here.

My docker-compose.yml file includes this:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">pictrs:
</span><span style="color:#323232;">    image: asonix/pictrs:0.4.0-rc.9-linux-arm64v8
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PICTRS__MEDIA__PREPROCESS_STEPS=resize=1000
</span><span style="color:#323232;">      - PICTRS__MEDIA__MAX_FILE_SIZE=8
</span><span style="color:#323232;">      - PICTRS__MEDIA__MAX_WIDTH=10000
</span><span style="color:#323232;">      - PICTRS__MEDIA__MAX_HEIGHT=10000
</span><span style="color:#323232;">      - PICTRS__MEDIA__FORMAT=webp
</span>

(Guix GNU+Linux) Need help with packages with older versions than wanted on the Guix Channel.

Hello. I am new to the Guix GNU+Linux distro. And I’m trying to get the latest version of Anki (2.1.65). However, an older version (2.1.16) is what’s there in the Guix channel (which is too old). I’m reading here that a simple edit to the education.scm file (the version var) would fix it. Unfortunately, the education.scm...

aurtzy , to linux in (Guix GNU+Linux) Need help with packages with older versions than wanted on the Guix Channel.

I was pretty much finished writing this post until I realized you might be mistaken with how updating packages works - editing the package version field merely changes what Guix thinks the version is, not the actual package version. By modifying the version field, the source code that’s downloaded will change since the download url is conveniently built off the version variable, but the hash - and potentially the build process itself - will also change because of this. You’ll need to additionally update the hash, at the very least.

However, there’s also a comment in the definition stating “Later versions have dependencies on npm packages not yet in Guix”, so unless this comment is outdated, you’ll have to package newer versions of the dependencies too. While I believe that learning Guix packaging has been a very much worthwhile experience, you might want to use something like the flatpak Justin linked if you don’t want to go through the trouble of figuring this out right now, because as far as I can see this will not be as straightforward as just changing a version number.

Of course, I don’t have context on what you read and I didn’t look at the package definition in depth, so in case I’m the mistaken one here or you still want to know how to proceed for future reference, here’s my original post:


The easiest way to do this would probably be to use the command guix package --install-from-file=path/to/file with a file that returns the modified package.

Notably, you’ll want to also include the original define-module expression at the top to pull in necessary code, as well as add an anki at the very bottom which indicates that the file will return the anki definition:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">(define-module (gnu packages education)
</span><span style="color:#323232;">  ...)
</span><span style="color:#323232;">
</span><span style="color:#323232;">(define-public anki
</span><span style="color:#323232;">  ;; modified package here
</span><span style="color:#323232;">  ...)
</span><span style="color:#323232;">
</span><span style="color:#323232;">anki
</span>

The above method should work just fine, but I’d only recommend it for short-term usage since it doesn’t scale well nor does it take advantage of the declarative-ness of Guix.


Alternatively, if you’re looking for a more long-term solution, I would suggest either creating your own channel or setting a custom load path where you can write whatever extra code to include in your configuration. The former is the most ideal, but the latter is much easier to set up, only requiring tweaking the module name and setting an environment variable.

Personally, a channel is overkill, so what I do is globally set the GUIX_PACKAGE_PATH environment variable to my config location where I’ve defined custom modules, which I can then pull into my Guix Home configuration (including modified packages). Feel free to have a look at my config for reference, although it’s still fairly work-in-progress right now: github.com/aurtzy/guix-config

If you haven’t heard of David Wilson (a.k.a. System Crafters), he’s a great resource for learning Guix stuff, and has his own Guix Home configuration that you can check out as well: github.com/daviwil/dotfiles/tree/guix-home

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines