Epic Tricked tips
now also as rss#10 Create screenshot in mpv
You can press s in mpv to create a screenshotof the current frame itll save to your home directory. You will be able to feel good about yourself creating high quality screenshots for both wallpapers and being better.
#9 Global gitignroe
Did you know git supports a global gitignore
for example git config --global core.excludesFile '~/.gitignore'
and then add .DS_Store
to it and life is good!
#8 If you want to use the new svelte runes without that much pain
let gameState: BoardData = $state(null!)
Thats it you cast null to be BoardData and your done, this way you don't have to deal with it requiring a default value and you can do it without a ts ignore and instead with a slightly better cast
#7 Give wasm-bindgen a try
With rust and wasm-bindgen its trivial to use wasm to create js bindings for wasm libraries. thats it you get a js file works with vite and your code can be executed
#6 Wayland and stuff not working?
You might be missing nvidia_drm.modeset=1
kernel param, yes i spend a couple hours debugging this i thought i already had it but guess systemdboot and racit kernel params are diferent (another tip lmao)
#5 Running amazon luna on linux
Recently had some issues trying to run amazon luna on linux saying my browser is not supported on microsoft edge and on brave i would get a black screen, the solution for me was to use edge but change the user agent to that of brave, so i ended up with this:
#4 caddy templates
(base) {
# Logging config / other things
tls {
dns cloudflare ${CLOUDFLARE_TOKEN}
resolvers 1.1.1.1
}
}
example.tricked.dev {
import base
reverse_proxy :9090
}
Makes it so you can reduce the amount of boilerplace needed on each domain
#3 connect to webdav on dolphin
Go to the network folder inside dolphin and then select Add Network Folder next to the adress bar.
Bonus tip you can access folders over ssh by using the fish protocol too
#2 keep ssh session open for faster connection
~/.ssh/config:
Host *
ControlMaster auto
ControlPath ~/.ssh/control-%r@%h:%p
ControlPersist 10m