Skip to content

Instantly share code, notes, and snippets.

View uncomfyhalomacro's full-sized avatar
🇵🇭
Manifesting 🌠

Soc Virnyl S. Estela uncomfyhalomacro

🇵🇭
Manifesting 🌠
View GitHub Profile
@uncomfyhalomacro
uncomfyhalomacro / Wayland.md
Created November 2, 2023 23:31 — forked from probonopd/Wayland.md
Boycott Wayland. It breaks everything!

Wayland actually is the future!

PS: probonopd is a crybaby who won't maintain x11.

@uncomfyhalomacro
uncomfyhalomacro / youtube-rss.nu
Last active October 16, 2023 00:13
Youtube RSS Feeder Script Fuzzy Finder
#!/usr/bin/nu
alias MENU = fuzzel -d
let subbed_channels = [
chrisbiscardi
dreamsofcode
fasterthanlime
fireship
fknight
@uncomfyhalomacro
uncomfyhalomacro / 80-juliamono-fontfeatures.conf
Created August 12, 2023 09:50
My preferred juliamono font features
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<description>Enable select opentype features for JuliaMono.</description>
<!--
Typographic features are provided on a per-typeface basis.
Tables with all available features are available here:
https://en.wikipedia.org/wiki/OpenType_feature_tag_list
@uncomfyhalomacro
uncomfyhalomacro / mermaid.html
Created July 28, 2023 13:38 — forked from mtolk/mermaid.html
This gist was created to anwser a question about using mermaidjs in the zola static site generator: https://zola.discourse.group/t/mermaid-integration/573?u=marco
<!-- should be in templates/ -->
<html>
<head>
<style>
div.mermaid {
width:25%;
}
</style>
</head>
<body>
uncomfy@localhost.localdomain
-----------------------------
OS: openSUSE Tumbleweed 20230627 x86_64
Host: Nitro AN515-55 (V2.06)
Kernel: 6.3.9-1-default
Uptime: 1 hour, 12 mins
Packages: 3730 (rpm), 84 (flatpak-user)
Shell: zsh 5.9
Display: 1920x1080 @ 144Hz
WM: river (Wayland)
@uncomfyhalomacro
uncomfyhalomacro / latency.txt
Created February 13, 2023 04:37 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@uncomfyhalomacro
uncomfyhalomacro / _mpv.zsh
Created January 29, 2023 12:33
some mpv things. aliases go bonkers with flatpak
#compdef mpv
# ZSH completion for mpv
#
# For customization, see:
# https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization
#
# This file is part of mpv.
#
@uncomfyhalomacro
uncomfyhalomacro / tree_sitter_guide.md
Created December 16, 2022 10:22 — forked from Aerijo/tree_sitter_guide.md
Guide to writing your first Tree-sitter grammar

Guide to your first Tree-sitter grammar

NOTE: The Tree-sitter API and documentation has changed and improved since this guide was created. I can't guarantee this is up to date.

About

Tree-sitter is the new way Atom is providing language recognition features, such as syntax highlighting, code folding, autocomplete, and more. In contrast to TextMate grammars, which work by regex matching, Tree-sitter will generate an entire syntax tree. But more on that can be found in it's own docs.

Here, we look at making one from scratch.

@uncomfyhalomacro
uncomfyhalomacro / list-of-installed-packages.txt
Created October 16, 2022 07:30
My package list from openSUSE (or Fedora)
# zypper se --installed-only | grep -E '^i\+' | awk '{print $3}'
adwaita-qt5
adwaita-qt6
alacritty
alsa-utils
apparmor
appmenu-gtk3-module
atuin
bandwhich
bat
@uncomfyhalomacro
uncomfyhalomacro / nuc7refusestoboot.md
Created April 11, 2022 09:37 — forked from starlinq/nuc7refusestoboot.md
How to fix Intel NUC that refuses to boot

Recently I have got a problem. My NUC7 refused to boot OS. The sympthom was exact as in this posting. The power button turned to solid amber/orange color (no blinking).

I've tried holding the power button for any length between 3 to 15 seconds, no changes.

Fortunately I solved the problem following an advice from Intel NUC community. The link to possible solutions is here.

I diassembled the NUC7 to reach an opposite side of the main board (with cooling fan and CMOS battery). I disconnected the battery for 15 minutes, and then connected it again. It solved the problem with power indicator and booting.