Skip to content

Instantly share code, notes, and snippets.

View spotlesstofu's full-sized avatar

Camilla Conte spotlesstofu

View GitHub Profile
@pooladkhay
pooladkhay / wayland-blurry-fix.md
Last active May 10, 2024 05:34
VSCode blurry text under Wayland

Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland

Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.

In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland, for example you'll be launching VSCode like

$ code --enable-features=UseOzonePlatform --ozone-platform=wayland

This fix can be made permanent by creating a .desktop file or by directly editing /usr/share/applications/visual-studio-code.desktop

@ryo1kato
ryo1kato / perror
Created April 3, 2012 12:37
perror - bash implementation
#!/bin/bash
errno_headers="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h"
print_usage () {
echo "Usage: ${0##*/} ERRNO"
}
case $1 in
@be1
be1 / zimbra-soap.txt
Created September 2, 2010 12:02 — forked from MattMencel/zimbra-soap.txt
Zimbra 6.0.4 soap.txt file with json examples
REST URL for requesting content:
http://server/service/home/[˜][{username}]/[{folder}]?[{query-params}]
fmt={ics, csv, etc}
id={item-id}
imap_id={item-imap-id}
part={mime-part}
query={search-query}
types={types} // when searching
auth={auth-types}