













CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" cmake .. -DCMAKE_BUILD_TYPE=Debug -DHEADLESS_CLIENT=ONDDNet: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.4.0, BuildID[sha1]=f4622ec1ca0e2802458ccca060d681619257dfc8, with debug_info, not stripped

















explain analyze SELECT COUNT(*) as count, date(timezone('UTC', purchase_time)) as day from purchase GROUP BY date(timezone('UTC', purchase_time)) ORDER BY day DESC LIMIT 15;
QUERY PLAN
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=1000.46..11744.04 rows=15 width=12) (actual time=1667.304..1700.836 rows=15 loops=1)
-> Finalize GroupAggregate (cost=1000.46..341213.86 rows=475 width=12) (actual time=1667.302..1700.832 rows=15 loops=1)
Group Key: (date(timezone('UTC'::text, purchase_time)))
-> Gather Merge (cost=1000.46..341201.99 rows=950 width=12) (actual time=1666.905..1700.817 rows=31 loops=1)
Workers Planned: 2
Workers Launched: 2
-> Partial GroupAggregate (cost=0.43..340092.31 rows=475 width=12) (actual time=15.057..1098.931 rows=291 loops=3)
Group Key: date(timezone('UTC'::text, purchase_time))
-> Parallel Index Scan Backward using idx_purchase_purchase_time on purchase (cost=0.43..323734.62 rows=3270114 width=4) (actual time=0.029..975.622 rows=2609251 loops=3)
Planning Time: 0.235 ms
Execution Time: 1700.887 ms 








































ANALYZE TABLE table_name; commandOPTIMIZE TABLE tbl; command


























































mpv "$(ls -1 | rofi -dmenu)"

mpv "$(ls -1 | rofi -dmenu)" 
bindsym --release Print exec maim -s --format=png /dev/stdout | xclip -selection clipboard -t image/png -ibindsym --release $mod+o exec maim -i $(xdotool getactivewindow) --format=png /dev/stdout | xclip -selection clipboard -t image/png -i to take a perfect screenshot of the active window

bindsym $mod+d exec --no-startup-id rofi -show drun




alias upgrade='sudo emerge -avuDN @world'







z and Z


















nvdec or vdpau on the gpu line it's not using your gpu



gpu there is the video output driver, gpu is the modern one



vdpau enabled, not all applications can use nvenc/nvdec







β― rg vdpau
make.conf
21:USE="X -wayland lm-sensors contrib mount alsa pulseaudio xinerama opengl vulkan udev elogind -systemd fontconfig vorbis opus vdpau bluetooth"
package.use/vlc
214:# required by media-libs/mesa-22.1.7::gentoo[vdpau]
218:x11-libs/libvdpau abi_x86_32 dri













equery you can do equery d <package> to find out what depends on it

equery d dev-qt/qtcore 



--hwdec in mpv what happens?







hwdec=auto/usr/share/doc/mpv...


hwdec?



profile=gpu-hq it'll set the scaler and a couple other things




ewa_lanczossharp is better if you have a beastgpu





































β― rg pulseaudio
make.conf
21:USE="X -wayland lm-sensors contrib mount alsa pulseaudio xinerama opengl vulkan udev elogind -systemd fontconfig vorbis opus vdpau bluetooth"
package.use/00cpu-flags
2:# required by media-sound/pulseaudio-daemon-16.1::gentoo[alsa,alsa-plugin]
4:# required by media-sound/pulseaudio-16.1::gentoo
5:# required by www-client/firefox-bin-105.0.3::gentoo[pulseaudio]
7:>=media-plugins/alsa-plugins-1.2.7.1 pulseaudio












startx?
xrdb -merge ~/.Xresources
if [ -n "${GPG_AGENT_INFO}" ]; then
kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
fi
exec dbus-launch --exit-with-session ssh-agent i3

















gentoo-pipewire-launcher & to your i3 config













exec startx so I can stay in tty if I'd like
io_uring, a new Linuxβ¦


media-video/pipewire sound-server extra I don't have anything else



X dbus readline ssl from my USE too












-sound-server on pulseaudio as suggested on the migration guide?-daemon actually sorry-daemon











β― mpv \[SubsPlease\]\ Vinland\ Saga\ S2\ -\ 12\ \(1080p\)\ \[CDAA6C02\].mkv
(+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz)
(+) Subs --sid=1 --slang=eng (*) 'English subs' (ass)
Using hardware decoding (nvdec).
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 1920x1080 cuda[nv12]
AV: 00:00:04 / 00:25:55 (0%) A-V: 0.000
SDL_AUDIODRIVER=pipewire ./DDNet

















β― mpv \[SubsPlease\]\ Vinland\ Saga\ S2\ -\ 12\ \(1080p\)\ \[CDAA6C02\].mkv
(+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz)
(+) Subs --sid=1 --slang=eng (*) 'English subs' (ass)
Using hardware decoding (nvdec).
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 1920x1080 cuda[nv12]
AV: 00:00:04 / 00:25:55 (0%) A-V: 0.000 










str_timestamp_ex implementation as ddnet?
















