Skip to content

Instantly share code, notes, and snippets.

View szczk's full-sized avatar

Krzysztof Szczepaniec szczk

View GitHub Profile
@szczk
szczk / Documentation.md
Created February 28, 2025 10:57 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@szczk
szczk / root_canvas_wxwidgets.md
Last active January 8, 2026 08:35
Embedding CERN ROOT canvas into wxWidgets window

Intro

Some notes on embedding Root's (https://root.cern/) TCanvas into wxWidgets window, mostly based on this post. Should also work for other GUI frameworks I suppose.

Seems straightforward, but I've struggled for a while to get it working, so I've decided to leave this note here for myself and others in need, as a starting point.

If you need to embed root, my first advice would be... don't. Obviously Root is a standard tool in physics, and I also use it extensively, but it is also a huge and convoluted C++ code, including it in your own app might cause trouble and crashes.

@szczk
szczk / ANSI.md
Created October 5, 2022 22:18 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27