Skip to content

Instantly share code, notes, and snippets.

@Hubro
Hubro / gist:10e2be14104aecb0f0e42f4ec9fe4c82
Created September 15, 2023 21:19
hubro-system-information-2023-09-15
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: X570 AORUS MASTER
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 5950X 16-Core Processor
CPU Family: 0x19
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
# vim: fdm=marker:fdl=0
[[ -f "$HOME/.zprofile" ]] && source "$HOME/.zprofile"
# {{{ ZSH general config
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
KEYTIMEOUT=1
impl Solution {
pub fn is_match(s: String, p: String) -> bool {
match_regex(&s, &p)
}
}
pub fn match_regex(text: &str, regex: &str) -> bool {
let regex = parse_regex(regex);
let text: Vec<_> = text.chars().collect();
@Hubro
Hubro / lsp.log
Created April 10, 2022 12:11
LSP log for nvim-lspconfig bug report
This file has been truncated, but you can view the full file.
[START][2022-04-10 14:09:58] LSP logging initiated
[INFO][2022-04-10 14:10:14] .../vim/lsp/rpc.lua:261 "Starting RPC client" {
args = { "--stdio" },
cmd = "pyright-langserver",
extra = {
cwd = "/home/tomas/src/github/pwr-Solaar/Solaar"
}
}
[TRACE][2022-04-10 14:10:14] .../lua/vim/lsp.lua:892 "LSP[pyright]" "initialize_params" {
capabilities = {
@Hubro
Hubro / generic_http_mock_server.py
Last active August 8, 2021 14:02
My pylintrc.ini file
"""Generic mock HTTP server
Perfect for mocking external services where we need to push stuff but we don't
really care about the response (as long as it's 200 OK.)
Currently this mock server assumes all requests will contain JSON payloads,
since this is currently true and it simplifies the implementation.
"""
@Hubro
Hubro / log.html
Created July 17, 2021 15:42
YANG unquoted-string ambiguity test, debug graph
<!DOCTYPE html>
<style>svg { width: 100%; }</style>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.47.3 (0)
-->
<!-- Pages: 1 -->
<svg width="82pt" height="31pt"
@Hubro
Hubro / STDOUT
Last active July 6, 2021 14:23
./build/xdg-desktop-portal-wlr -r -l TRACE
This file has been truncated, but you can view the full file.
xdg-desktop-portal-wlr on  cropping [!] is 📦 v>=0.50.0
➜ ./build/xdg-desktop-portal-wlr -r -l TRACE
2021/07/06 16:22:49 [TRACE] - config: trying config file /home/tomas/.config/xdg-desktop-portal-wlr/sway
2021/07/06 16:22:49 [TRACE] - config: trying config file /home/tomas/.config/xdg-desktop-portal-wlr/config
2021/07/06 16:22:49 [TRACE] - config: trying config file /usr/local/etc/xdg/xdg-desktop-portal-wlr/sway
2021/07/06 16:22:49 [TRACE] - config: trying config file /usr/local/etc/xdg/xdg-desktop-portal-wlr/config
2021/07/06 16:22:49 [ERROR] - config: no config file found
2021/07/06 16:22:49 [DEBUG] - config: outputname: (null)
2021/07/06 16:22:49 [DEBUG] - config: max_fps: 0.000000
2021/07/06 16:22:49 [DEBUG] - config: exec_before: (null)
@Hubro
Hubro / neovide_rCURRENT.log
Created June 29, 2021 21:43
neovide_rCURRENT.log
This file has been truncated, but you can view the full file.
TRACE [neovide::redraw_scheduler] Next frame queued
DEBUG [neovide::window::window_wrapper] Render Triggered
TRACE [neovide::renderer] Drawing Frame
TRACE [neovide::redraw_scheduler] Next frame queued
TRACE [neovide::redraw_scheduler] Next frame queued
DEBUG [neovide::window::window_wrapper] Render Triggered
TRACE [neovide::renderer] Drawing Frame
TRACE [neovide::redraw_scheduler] Next frame queued
TRACE [neovide::redraw_scheduler] Next frame queued
DEBUG [neovide::window::window_wrapper] Render Triggered
@Hubro
Hubro / neovide_rCURRENT.log
Created June 29, 2021 21:16
neovide_rCURRENT.log
This file has been truncated, but you can view the full file.
INFO [neovide::bridge] Starting neovim with: Command { std: "/usr/bin/nvim" "--embed", kill_on_drop: false }
INFO [neovide::bridge] Close watcher started
INFO [neovide::bridge] Neovide registered to nvim with channel id 1
INFO [neovide::bridge] Neovim process attached
TRACE [neovide::bridge::handler] Neovim notification: "redraw"
TRACE [neovide::channel_utils] redraw_event OptionSet { gui_option: ArabicShape(true) }
TRACE [neovide::channel_utils] redraw_event OptionSet { gui_option: AmbiWidth("single") }
TRACE [neovide::channel_utils] redraw_event OptionSet { gui_option: Emoji(true) }
TRACE [neovide::channel_utils] redraw_event OptionSet { gui_option: GuiFont("") }
TRACE [neovide::channel_utils] redraw_event OptionSet { gui_option: GuiFontWide("") }