Skip to content

Instantly share code, notes, and snippets.

View dzintars's full-sized avatar
🇱🇻
Playing with Zuul CI

Dzintars dzintars

🇱🇻
Playing with Zuul CI
View GitHub Profile
@dzintars
dzintars / inkscape.md
Last active February 19, 2024 11:00
How to Simple-Icons

How to create SVG cutouts/gaps in Inkscape

If you found this Gist, then keep in mind that it is not complete unting this message gets removed. There are missing steps.

TODO

  • Remove fill
  • Set the viewport
  • Export clean SVG
  • Optimizations?
@dzintars
dzintars / 00-zuul-ci.md
Last active February 5, 2024 10:44
Zuul CI

Zuul CI & Gerrit Code Review

@dzintars
dzintars / Neovim.md
Last active March 19, 2022 08:06
Neovim setup

My Neovim setup

https://github.com/oswee/prime/ansible/custom/roles/nvim

Structure

99% of the config examples i saw in the wild gives me a feeling that people actually don't know what they are doing with Neovim configuration. Neither I do. But I am questioning myself: How to structure configuration in a clean, modular, swappable, easy to read and navigate way. There, in the wild, I see things like: "Throw it all in a single file", "Plugins are evil, vanilla Vim is all I need", "I will leave that dead code for the reference in case if I need it",

@dzintars
dzintars / Qutebrowser.md
Created January 13, 2022 12:44
How to open Ranger in a Sway floating window from Qutebrowser

In a `~/.config/qutebrowser/config.py

config.set("fileselect.handler", "external")
config.set("fileselect.single_file.command", ['alacritty', '--class', 'ranger', '-e', 'ranger', '--choosefile', '{}'])
config.set("fileselect.multiple_files.command", ['alacritty', '--class', 'ranger', '-e', 'ranger', '--choosefile', '{}'])

In a ~/.config/sway/config

for_window [app_id="ranger"] floating enable
@dzintars
dzintars / index.md
Last active January 14, 2024 16:40
How to setup Ansible Collection

How to setup Ansible Collection

I hope to collect bits and pieces on how to setup Ansible Collection project for local development and testing with Molecule.

Structure

  • ~/code/github.com/user/namespace/
    • .skeleton/
    • collection-a/
    • collection-b/
@dzintars
dzintars / GetWinKey.vbs
Last active November 11, 2021 19:40
Get Windows 7 key
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
@dzintars
dzintars / project-quay-setup.md
Last active May 15, 2023 14:08
How to setup Quay Image Registry for the local development and testing

[UPDATE] by Dzintars Klavins @ 2023-05-15

These instructions is no more quite accurate. Current setup is much more simpler. Probably I will update these instructions at some point.

[WIP] by Dzintars Klavins @ 2021-08-28

Project Quay Setup

These instructions is written for myself as an reminder guide. It is higly possible that they are wrong, outdated, un-maintained.

@dzintars
dzintars / AsciiDoc.adoc
Last active June 26, 2021 12:19
AsciiDoc snippets for GitHub

Collection of things you can do with AsciiDoc in GitHub

@dzintars
dzintars / Bazel-Typescript.md
Last active December 4, 2021 05:22
Personal notes on Bazel Typescript setups

Bazel Typescript

To avoid ../../../../../../filename.ts garbage in the source code you can use Typescript Path Aliases. This approach not only cleans up your imports but also helps when making refacoring and moving packages/modules around. No matter where you will place your package, all imports allways will be resolvable.

But this is not enought at runtime. For example if you want to run WebPack dev-server. By default webpack does not know how to resolve those imports. You need to tweak WebPack config

Other resources:

FZF

Move up/down in results - ctrl+j and ctrl+k

Open file in vertical split - ctrl+v

Open file in horizontal split - ctrl+x

Open file in new tab - ctrl+t