Skip to content

Instantly share code, notes, and snippets.

View sun-jiao's full-sized avatar
🇵🇸
Free Palestine, from the river to the sea.

Sun Jiao sun-jiao

🇵🇸
Free Palestine, from the river to the sea.
View GitHub Profile
@sun-jiao
sun-jiao / my-kde-config.md
Last active December 12, 2023 02:12
KDE配置

选择ChromeOSKDE桌面布局:

图片

取消Discover、Gwenview、终端、Okular、Inkscape、Gimp的固定;固定tabby。

图片

应用Windows 11 white的"Plasma视觉风格"

@sun-jiao
sun-jiao / endeavour-to-arch-guide.MD
Last active May 2, 2024 12:03
Converting EndeavourOS to ArchLinux

Firstly:

sudo nano /etc/pacman.conf

Commenting EndeavourOS repository, and adding the arch community repo:

#[endeavouros]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/endeavouros-mirrorlist
@sun-jiao
sun-jiao / Gnome box 报错.md
Last active November 28, 2023 09:37
Unable to start domain: /usr/libexec/qemu-bridge-helpe

Gnome boxes报错 Unable to start domain: /usr/libexec/qemu-bridge-helper --br=virbr0 --fd=27: failed to communicate with bridge helper: stderr=failed to get mtu of bridge 'virbr0': No such device: Transport endpoint is not connected

解决方法:

sudo systemctl enable --now libvirtd

@sun-jiao
sun-jiao / shelf_cors_test_server.dart
Created February 20, 2023 02:00
dart shelf CORS test server.
import 'dart:io';
import 'package:shelf/shelf.dart';
import 'package:shelf/shelf_io.dart';
import 'package:shelf_router/shelf_router.dart';
import 'package:shelf_cors_headers/shelf_cors_headers.dart';
Future<void> main() async {
final handler = const Pipeline()
.addMiddleware(corsHeaders())