Skip to content

Instantly share code, notes, and snippets.

View krichprollsch's full-sized avatar
🐼

Pierre Tachoire krichprollsch

🐼
View GitHub Profile
@krichprollsch
krichprollsch / README.md
Last active March 11, 2024 08:39
Zig root type comparison and tests

Something confuses me with the combination usage of @import("root") and builtin.test_functions in zig.

When I declare a root T class in the custom test runner here, the type comparison with the original Foo struct works in the main function, but doesn't work in a function run via builting.test_functions.

I reproduce the issue with Zig current master (0.12.0-dev.3193+4ba4f94c9).

@krichprollsch
krichprollsch / pass2bw
Last active March 6, 2023 08:24
pass2bw import pass password into bitwarden
#!/usr/bin/env bash
# pass2bw creates all pass items into bitwarden.
# All the pass items are set in the given <BW FOLDER> argument.
# Pass items imported can be filtered with <PASS PATH> argument.
# The bw items are created with the base pass path.
# usage: pass2bw <BW FOLDER> <PASS PATH>
# example: pass2bw import_from_path/work work
BW_FOLDER=$1

Keybase proof

I hereby claim:

  • I am krichprollsch on github.
  • I am krichprollsch (https://keybase.io/krichprollsch) on keybase.
  • I have a public key ASA99WCooMaaRu2dWdcvLaQdgViJt2gk8zBopLHBW8HTtgo

To claim this, I am signing this object:

Vim plugin Cheatsheet

Vimdiff

  • do get changes from other window into the current window
  • dp put the changes from current window into the other window
  • ]c jump to the next change
  • [c jump to the previous change
  • zo open fold
  • zc close fold

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname