Workaround for Arch Adding some more context here for those who may not know how to apply the solutions given here:
-
Install/update code-features
yay code-features
-
In VSCode, Shift-Ctrl-P > "Configure Runtime Arguments" > Add this line:
// GetFreePort asks the kernel for a free open port that is ready to use. | |
func GetFreePort() (port int, err error) { | |
var a *net.TCPAddr | |
if a, err = net.ResolveTCPAddr("tcp", "localhost:0"); err == nil { | |
var l *net.TCPListener | |
if l, err = net.ListenTCP("tcp", a); err == nil { | |
defer l.Close() | |
return l.Addr().(*net.TCPAddr).Port, nil | |
} | |
} |
// https://stackoverflow.com/questions/39320371/how-start-web-server-to-open-page-in-browser-in-golang | |
// open opens the specified URL in the default browser of the user. | |
func open(url string) error { | |
var cmd string | |
var args []string | |
switch runtime.GOOS { | |
case "windows": | |
cmd = "cmd" | |
args = []string{"/c", "start"} |
/* | |
requirejs.config({ | |
paths: { | |
'ymaps': ['//api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU'] | |
}, | |
shim: { | |
'ymaps': {exports: 'ymaps'} | |
} | |
}); | |
*/ |
# 1. search where is the most space use | |
for i in /*; do echo $i; find $i |wc -l; done | |
# or | |
for i in /var/*; do echo $i; find $i |wc -l; done | |
# 2. delete unused files (in my case php sessions) |
Workaround for Arch Adding some more context here for those who may not know how to apply the solutions given here:
Install/update code-features
yay code-features
In VSCode, Shift-Ctrl-P > "Configure Runtime Arguments" > Add this line:
# src: ~/.config/mimeapps.list | |
# url: https://binfalse.de/2019/06/27/thunar-s-volatile-default-application/ | |
# default open | |
[Default Applications] | |
text/plain=xed.desktop | |
# open with submenu | |
[Added Associations] | |
text/plain=code-oss.desktop;nvim.desktop; |
https://www.reddit.com/r/Fedora/comments/88rze5/fedora_wont_let_me_login_into_preexisting_user/
I've kept my /home partition the same across distros. I just installed Fedora KDE spin, but not it won't let me login through SDDM. This hasn't been an issue with other distributions like Ubuntu or Arch. Not the best first impression...
How do I fix this?
I get the following error when trying to login in the console:
-- username : /home/username: change directory failed: permission denied
# setup cura 5 on ubuntu 22.04 with mesa opengl | |
# 1. unpack appimage | |
./Ultimaker-Cura-5.0.0-linux.AppImage --appimage-extract | |
cd ./squashfs-root | |
# 2. fix "dri not found" | |
# libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object | |
# file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) |
# 1. install wine (from winehq site, not repo) | |
# 2. wine dipfree_en.exe | |
# 3. apt install winbind to resolve ntlm_auth | |
# 4. add MESA_GL_VERSION_OVERRIDE=4.5COMPAT in .desktop files to resolve GLXBadFBConfig (on my intel video) | |
# 5. follow https://askubuntu.com/questions/323437/how-to-prevent-wine-from-adding-file-associations | |
# to back xdg-open <url> in browser | |
# ( rm ~/.local/share/appliations/wine-extension-htm; update-mime-database ~/.local/share/mime/ ) | |
# 5.1. check it | |
# xdg-settings get default-web-browser |
# /etc/ssh/sshd_config.d/ipqos.conf | |
# https://discourse.osmc.tv/t/solved-ssh-connection-sometimes-hangs/76504/5 | |
IPQoS cs0 cs0 |