Skip to content

Instantly share code, notes, and snippets.

View bobby285271's full-sized avatar
🙈
Playing Gakumas

Bobby Rong bobby285271

🙈
Playing Gakumas
View GitHub Profile
@bobby285271
bobby285271 / pandoc.lua
Created July 12, 2021 07:53
Docbook -> CommonMark
local fenced = '```\n%s\n```\n'
function CodeBlock (cb)
return pandoc.RawBlock('markdown', fenced:format(cb.text))
end
@bobby285271
bobby285271 / clone_elementary.sh
Created July 25, 2021 13:05
Clone all elementary repositories
#/usr/bin/env bash
curl -s https://api.github.com/orgs/elementary/repos?per_page=200 | jq .[].ssh_url | xargs -n 1 git clone
@bobby285271
bobby285271 / switchboard-plug-onlineaccounts-6-1-0.log
Last active August 1, 2021 09:17
nixpkgs#130380 - switchboard-plug-onlineaccounts-6.1.0 build log
these derivations will be built:
/nix/store/s3432mgph2sffiddp3kl1b6s75i56nbp-switchboard-plug-onlineaccounts-6.1.0.drv
/nix/store/x7pmzbbi9wlv1izj9anqgidkmdf1xlbw-switchboard-6.0.0-with-plugs.drv
building '/nix/store/s3432mgph2sffiddp3kl1b6s75i56nbp-switchboard-plug-onlineaccounts-6.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/iwkaqp166dpcfirg1nas182fkr3nlxm7-source
source root is source
patching sources
configuring
meson flags: --buildtype=plain --libdir=/nix/store/av9xvg4z5lkhddwvsw9ihqj0m3wnmjhw-switchboard-plug-onlineaccounts-6.1.0/lib --libexecdir=/nix/store/av9xvg4z5lkhddwvsw9ihqj0m3wnmjhw-switchboard-plug-onlineaccounts-6.1.0/libexec --bindir=/nix/store/av9xvg4z5lkhddwvsw9ihqj0m3wnmjhw-switchboard-plug-onlineaccounts-6.1.0/bin --sbindir=/nix/store/av9xvg4z5lkhddwvsw9ihqj0m3wnmjhw-switchboard-plug-onlineaccounts-6.1.0/sbin --includedir=/nix/store/av9xvg4z5lkhddwvsw9ihqj0m3wnmjhw-switchboard-plug-onlineaccounts-6.1.0/include --mandir=/nix/store/av9
@bobby285271
bobby285271 / podman-qq-setup.sh
Last active February 23, 2022 04:35 — forked from karuboniru/podman qq setup
Podman QQ
podman run --name qq \
--device /dev/snd --net=host --ipc=host \ # remove net=host if you don't want this
--device=/dev/dri/card0:/dev/dri/card0 \
--device=/dev/dri/renderD128:/dev/dri/renderD128 \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ${XDG_RUNTIME_DIR}/pulse/native:/run/user/0/pulse/native \
-e PULSE_SERVER=unix:/run/user/0/pulse/native \
-v $HOME/containerhome:/root:Z \ # choose a path you like, same for following
-v $HOME/containerhome/TencentFiles:/TencentFiles:Z \
-v $HOME/文档/Fonts:/usr/share/fonts/Windows:Z \ # external fonts, any path in /usr/share/fonts will be fine
these derivations will be built:
/nix/store/hdimjsq31c7yif7fydf1mwkkachbmrpf-libvirt-glib-4.0.0.drv
building '/nix/store/hdimjsq31c7yif7fydf1mwkkachbmrpf-libvirt-glib-4.0.0.drv'...
unpacking sources
unpacking source archive /nix/store/b2jsb17h2nahyh02a85kjijxwnx418zx-libvirt-glib-4.0.0.tar.xz
source root is libvirt-glib-4.0.0
setting SOURCE_DATE_EPOCH to timestamp 1613391784 of file libvirt-glib-4.0.0/libvirt-glib.spec
patching sources
configuring
meson flags: --buildtype=plain --libdir=/nix/store/p6lrvgfbz3ckn1284n6kagd31f5xzd97-libvirt-glib-4.0.0/lib --libexecdir=/nix/store/p6lrvgfbz3ckn1284n6kagd31f5xzd97-libvirt-glib-4.0.0/libexec --bindir=/nix/store/p6lrvgfbz3ckn1284n6kagd31f5xzd97-libvirt-glib-4.0.0/bin --sbindir=/nix/store/p6lrvgfbz3ckn1284n6kagd31f5xzd97-libvirt-glib-4.0.0/sbin --includedir=/nix/store/gn5nvdq0adyzxawn94vccjbvv2gj9ija-libvirt-glib-4.0.0-dev/include --mandir=/nix/store/p6lrvgfbz3ckn1284n6kagd31f5xzd97-libvirt-glib-4.0.0/share/man --infodir=/nix/store/p6
@bobby285271
bobby285271 / gala-6.2.1-build-failure.log
Last active February 23, 2022 04:34
gala-build-log
these derivations will be built:
/nix/store/c61qypdaa8lwqzc1jvx3yz02xq3nwx9c-gala-6.2.1.drv
building '/nix/store/c61qypdaa8lwqzc1jvx3yz02xq3nwx9c-gala-6.2.1.drv'...
unpacking sources
unpacking source archive /nix/store/iz46f6593cmg6dhavbwmrz5a1xrqqdb9-source
source root is source
patching sources
applying patch /nix/store/apgddji40b33ksvljjxz5n3071aw0ldw-plugins-dir.patch
patching file meson.build
applying patch /nix/store/4v9873w5kmpk508x4yz1j3xiqq1lfajl-d425959aa2b9b9ac7ef622f601f3de1ca8ee768a.patch
From 236a1253dbdab5a760aaa6eb9b3f0a7bd64ce285 Mon Sep 17 00:00:00 2001
From: Bobby Rong <rjl931189261@126.com>
Date: Fri, 8 Oct 2021 10:41:04 +0800
Subject: [PATCH] 3.36
---
.../x11/desktop-managers/pantheon.nix | 6 +-
.../{3.38 => 3.36}/default.nix | 22 +++---
.../{3.38 => 3.36}/fix-paths.patch | 0
.../core/mutter/{3.38 => 3.36}/default.nix | 10 ++-
From 9ff45a9519183ac0533abc348cbfcd139fccfad3 Mon Sep 17 00:00:00 2001
From: Bobby Rong <rjl931189261@126.com>
Date: Fri, 8 Oct 2021 21:12:08 +0800
Subject: [PATCH] 41
---
.../x11/desktop-managers/pantheon.nix | 6 +-
.../gnome-settings-daemon/3.38/default.nix | 135 --------------
.../3.38/fix-paths.patch | 15 --
.../core/gnome-settings-daemon/default.nix | 2 +-
@bobby285271
bobby285271 / pantheon-test-meson-0.61.patch
Last active February 23, 2022 04:33
Test building Pantheon with meson 0.61
From a332decaa3952dcfb55a20a950d1ebf33b449a46 Mon Sep 17 00:00:00 2001
From: Bobby Rong <rjl931189261@126.com>
Date: Thu, 13 Jan 2022 14:13:07 +0800
Subject: [PATCH] pantheon: test meson 0.61
---
pkgs/desktops/pantheon/apps/appcenter/default.nix | 4 ++--
.../pantheon/apps/elementary-calculator/default.nix | 4 ++--
.../pantheon/apps/elementary-calendar/default.nix | 4 ++--
pkgs/desktops/pantheon/apps/elementary-camera/default.nix | 4 ++--
these 5 derivations will be built:
/nix/store/54cqbf00qfr6hsp8g2r5cmcx8lib2j47-source.drv
/nix/store/argxb65zd54q2ph1m55iajzjiz0xv85c-libxmlb-0.3.7.drv
/nix/store/krvyc5dva94ipkw60qjh87v7325cc1ni-fix-paths.patch.drv
/nix/store/vzkxp8b8fjqszgsbi0xhhbh4awd3cadm-source.drv
/nix/store/yzdv81zdmman474fm0pyahah34g2fc87-appstream-0.15.2.drv
these 155 paths will be fetched (157.38 MiB download, 876.65 MiB unpacked):
/nix/store/04g35l60rnnk185zwp1gl0zziiaf8yyi-mirrors-list
/nix/store/06c43d6nx5rizspjycgfd44rgnh236hn-libidn2-2.3.2
/nix/store/0mdsnsdq7077hp5krhciackxm95h8yzs-libxslt-1.1.34-bin