Skip to content

Instantly share code, notes, and snippets.

View generic_http_mock_server.py
"""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 Jul 17, 2021
YANG unquoted-string ambiguity test, debug graph
View log.html
<!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 Jul 6, 2021
./build/xdg-desktop-portal-wlr -r -l TRACE
View STDOUT
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
@Hubro
Hubro / neovide_rCURRENT.log
Created Jun 29, 2021
neovide_rCURRENT.log
View 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
@Hubro
Hubro / neovide_rCURRENT.log
Created Jun 29, 2021
neovide_rCURRENT.log
View 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("") }
@Hubro
Hubro / neovide_rCURRENT.log
Last active Jun 27, 2021
neovide_rCURRENT.log
View neovide_rCURRENT.log
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: GuiFontSet("") }
@Hubro
Hubro / AUR
Created Jun 25, 2021
My Arch package list
View AUR
# Drivers
ckb-next # Does RGB for Corsair hardware
samsung-unified-driver # cups drivers for Samsung printers and scanners
# GUI stuff (fonts, icons, themes etc.)
ttf-ms-fonts
ttf-windows
ttf-ubraille
breeze-snow-cursor-theme
@Hubro
Hubro / bench-irq-mode.txt
Created May 14, 2021
Interrupt mode vs poll mode, NVMe RAID
View bench-irq-mode.txt
#############################
### 1024k sequential read ###
#############################
TEST: (g=0): rw=read, bs=(R) 1024KiB-1024KiB, (W) 1024KiB-1024KiB, (T) 1024KiB-1024KiB, ioengine=libaio, iodepth=32
fio-3.26
Starting 1 process
TEST: Laying out IO file (1 file / 500MiB)
View steam-vr-system-report.txt
SteamVR System Report created Sun Jan 26 01:26:34 2020
<Report>
SteamVR Version: 1.9.16 (1576990468)
SteamVR Date: 2019-12-22
Steam: Public
Steam Branch:
Steam AppID: 250820
Tracking: No Driver
OS: Linux version 5.4.14-arch1-1 (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Thu, 23 Jan 2020 10:07:05 +0000
View steam-system-information.txt
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU Family: 0x6