Skip to content

Instantly share code, notes, and snippets.


Martin Vidner mvidner

  • SUSE
  • Prague, CZ, EU
View GitHub Profile
View screenshots-tui-all.txt
$ cd yast/yast-ycp-ui-bindings/examples/screenshots-tui
$ grep . *txt
Alignment1-1.txt: YaST2 - ./../../Alignment1.rb @ ohmu
Alignment1-1.txt: ┌─────────────────────────────────────────────────────────────────────┐
Alignment1-1.txt: │[This is a very long button - it reserves extra space for the label.]│
Alignment1-1.txt: │[ Stretchable button ]Label│
Alignment1-1.txt: └─────────────────────────────────────────────────────────────────────┘
AutoShortcut1-1.txt: YaST2 - ./../../AutoShortcut1.rb @ ohmu
AutoShortcut1-1.txt: ┌────────────────────────┐
AutoShortcut1-1.txt: │┌Software Selection────┐│
mvidner / yast-size.txt
Created Sep 18, 2020
YaST takes up 258 MiB on disk
View yast-size.txt
YaST takes up 258 MiB on disk.
Starting with a 2020-09-01 openSUSE Tumbleweed that already has Cockpit installed,
these are the byte sizes of packages installed by "zypper install yast2"
218922718 glibc-locale
16627072 ruby2.7
9940016 ruby2.7-rubygem-nokogiri
3427518 hwinfo
3413184 libruby2_7-2_7
mvidner /
Last active Jul 7, 2020
installer memory consumption: where to look next
mvidner / ps.console
Last active Jun 10, 2020 Convert a space-delimited table (where the last column may contain spaces) to CSV (comma separated value)
View ps.console
$ ps -f | tee /dev/stderr | ./table_to_csv > ps.csv
martin 12310 3022 0 09:36 pts/13 00:00:00 /bin/bash
martin 13255 12310 0 10:18 pts/13 00:00:00 ps -f
martin 13256 12310 0 10:18 pts/13 00:00:00 tee /dev/stderr
martin 13257 12310 0 10:18 pts/13 00:00:00 /bin/bash ./table_to_csv

Thank you for the report!

  1. What steps did you take?
  2. What was the expected result?
  3. What was the actual result?
mvidner /
Last active Jan 13, 2020
Unlocking the Clubhouse: Women in Computing

Unlocking the Clubhouse: Women in Computing

Margolis, Jane and Fisher, Allan (2002). Unlocking the Clubhouse: Women in Computing. Cambridge, MA: MIT Press.

This is an expanded table of contents.

Introduction: Women out of the loop

View lazy_enumerator.rb
def file_properties(filename)
print "."

Emacs has an ususual way of escaping special characters in regular expressions, which I keep forgetting, so here's a summary

Literal Special Emacs bare Emacs escaped
* \*
* 0 or more *
+ \+
+ 1 or more +
? \?

Problems with Bidirectional (BiDi) Text

If the whole paragraph contains only right-to-left text, it poses no problem. Problems are much likelier to occur if we mix the text directions.

Here I want to write down my knowledge so that the simple parts are easily accessible to beginners, and terms are defined for reference when sorting and solving bugs

TODO: show example fixes to the problems (and note that they may look wrong,

You can’t perform that action at this time.