Skip to content

Instantly share code, notes, and snippets.

View VitalyAnkh's full-sized avatar
🏠
Reading stacks project

VitalyR VitalyAnkh

🏠
Reading stacks project
View GitHub Profile
@VitalyAnkh
VitalyAnkh / error.rs
Created January 14, 2019 15:35
Redox build error log
rm -f build/libkernel.a
rm -rf build/initfs
mkdir -p build/initfs
export PATH="/home/vitalyr/projects/rust/redox/prefix/x86_64-unknown-redox/gcc-install/bin:$PATH" && \
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Running `installer/target/debug/redox_installer --cookbook=cookbook -c initfs.toml build/initfs/`
Install Config {
general: GeneralConfig {
prompt: false
@VitalyAnkh
VitalyAnkh / listen1_aha_playlist.md
Last active March 28, 2022 06:56
updated by Listen1(https://listen1.github.io/listen1/) at 3/28/2022, 2:56:17 PM

本歌单由Listen1创建, 歌曲数:38,歌单数:1,点击查看更多

@VitalyAnkh
VitalyAnkh / mtr.css
Created April 5, 2019 21:17 — forked from ruanyf/mtr.css
mtr.css: Hong Kong MTR station colors http://metrocolor.live/index.html
:root {
--heng-fa-chuen: #b51921;
--tai-koo: #b2103e;
--kowloon-bay: #c41832;
--tseung-kwan-o: #ef342a;
--wui-kai-sha: #a84d18;
--po-lam: #f68f26;
--sai-wan-ho: #faca07;
--disneyland-resort: #07594a;
--skek-kip-mei: #4ba946;
@VitalyAnkh
VitalyAnkh / false-report.rs
Created November 12, 2019 13:41
intellij-rust false report
fn from_hex(input:&str)->Result<u8, std::num::ParseIntError>{
u8::from_str_radix(input,16)
}
# System Info:
1. `uname -a`:
Linux rex 5.7.7-arch1-1 #1 SMP PREEMPT Wed, 01 Jul 2020 14:53:16 +0000 x86_64 GNU/Linux
2. `lsb_release`:
`lsb_release` not found.
3. `/etc/lsb-release`:
In file included from termchar.h:23,
from scroll.c:25:
dispextern.h: 在函数‘GLYPH_CODE_P’中:
dispextern.h:1890:58: 错误:expected expression before ‘>’ token
1890 | (MAX_FACE_ID<TYPE_MAXIMUM (EMACS_INT)> > CHARACTERBITS
| ^
In file included from termhooks.h:27,
from frame.h:22,
from character.c:37:
dispextern.h: 在函数‘GLYPH_CODE_P’中:
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" name="de.neemann.digital.docu.DocuTest" time="2.573" tests="1" errors="0" skipped="0" failures="1">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.jnu.encoding" value="UTF-8"/>
<property name="java.class.path" value="/home/vitalyr/.cache/paru/clone/digital-git/src/digital-git/target/test-classes:/home/vitalyr/.cache/paru/clone/digital-git/src/digital-git/target/classes:/home/vitalyr/.m2/repository/com/thoughtworks/xstream/xstream/1.4.18/xstream-1.4.18.jar:/home/vitalyr/.m2/repository/io/github/x-stream/mxparser/1.2.2/mxparser-1.2.2.jar:/home/vitalyr/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar:/home/vitalyr/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar:/home/vitalyr/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcre
(map! :leader
;; make doom-leader-buffer-map alive
(:prefix-map ("b" . "buffer")
:desc "Toggle narrowing" "-" #'doom/toggle-narrow-buffer
:desc "Previous buffer" "[" #'previous-buffer
:desc "Next buffer" "]" #'next-buffer
(:when (featurep! :ui workspaces)
:desc "Switch workspace buffer" "b" #'persp-switch-to-buffer
:desc "Switch buffer" "B" #'switch-to-buffer)
(:unless (featurep! :ui workspaces)
@VitalyAnkh
VitalyAnkh / PKGBUILD
Created February 15, 2022 14:25
PKGBUILD for libgccjit-11.2.0
# Maintainer: Andrew Whatson <https://aur.archlinux.org/account/flatwhatson>
# Maintainer: ZenTauro <zentauro at riseup dot net>
# Contributor: Ruben De Smet <ruben dot de dot smet at glycos dot org>
# Contributor: Jashandeep Sohi <jashandeep.s.sohi@gmail.com>
pkgname=libgccjit
pkgver=11.2.0
pkgrel=1
pkgdesc='Just-In-Time Compilation using GCC.'
arch=(x86_64)
@VitalyAnkh
VitalyAnkh / gist:1d146e2bcf46402e2b45d1201fbdd230
Created May 1, 2022 06:05
drm_info output when mutter is causing a invisible cursor
Node: /dev/dri/card0
├───Driver: nvidia-drm (NVIDIA DRM driver) version 0.0.0 (20160202)
│ ├───DRM_CLIENT_CAP_STEREO_3D supported
│ ├───DRM_CLIENT_CAP_UNIVERSAL_PLANES supported
│ ├───DRM_CLIENT_CAP_ATOMIC supported
│ ├───DRM_CLIENT_CAP_ASPECT_RATIO supported
│ ├───DRM_CLIENT_CAP_WRITEBACK_CONNECTORS supported
│ ├───DRM_CAP_DUMB_BUFFER = 1
│ ├───DRM_CAP_VBLANK_HIGH_CRTC = 1
│ ├───DRM_CAP_DUMB_PREFERRED_DEPTH = 24