Skip to content

Commit 4f3e583

Browse files
committed
"updated tags and authors, bump docusaurus, kafka connect draft start"
1 parent c46b0cf commit 4f3e583

8 files changed

+6123
-2674
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
actions.md

blog/2024-06-19-tmux-tips.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
---
22
slug: tmux-tips
33
title: tmux tips
4-
authors:
5-
name: Tomasz Kubacki
6-
title: Random dev
7-
url: https://github.com/tomaszkubacki
8-
image_url: https://avatars.githubusercontent.com/u/348532?s=400&v=4
4+
authors: tkub
95
tags: [tmux, linux]
106
---
117

128
# tmux - ultimate linux console multiplexer
139

1410
In this post I would like to show you the *tmux* cli tool. [*tmux*](https://github.com/tmux/tmux) is a terminal multiplexer allowing you to run your cli task in the background and use multiple terminals at once (hence the name multiplexer).
11+
<!-- truncate -->
1512

1613
I will show you the value of tmux by showing a couple of usecases. But before we start you need to know how to invoke tmux commands.
1714

@@ -117,7 +114,7 @@ ctrl+b z
117114
Use the same command to unzoom.
118115

119116

120-
### There is one more thing...
117+
### One more thing...
121118

122119
Another cool gadged is to display clock in the current window
123120

blog/2024-06-22-vim-tips.md

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,48 @@
11
---
22
slug: vim-tips
33
title: vim tips and tricks
4-
authors:
5-
name: Tomasz Kubacki
6-
title: Random dev
7-
url: https://github.com/tomaszkubacki
8-
image_url: https://avatars.githubusercontent.com/u/348532?s=400&v=4
4+
authors: tkub
95
tags: [linux, vim]
106
---
117

128
# VIM tips list
139

14-
## How to use this guide
10+
This post is a list of vim tips and tricks i found useful during my never ending jurney of learing vim
1511

16-
### Learn vim basic
17-
You need to know what is normal and insert mode in vim.
18-
Whenever I write
19-
```
20-
:something
12+
<!-- truncate -->
13+
14+
## Learn vim basic
15+
You need to know some vim basics to use those tips. Nothing really deep just how to start, leave or change vim mode.
16+
If you have Vim installed, you probably have vimtutor command installed as well.
17+
Just enter your command line and type
18+
```shell
19+
vimtutor
2120
```
22-
I mean invoking *something* command in so called normal mode (pressing ctrl+c then typing :something)
21+
to check it out.
2322

24-
#### Use ctrl+c to switch to normal mode
23+
## Modes and leaving Vim
24+
25+
### Use ctrl+c to switch to normal mode
2526
There are two ways to switch to normal mode one is to use escape key, but often more convenienient is to use ctrl+c shortcut
2627

2728
Famous leave vim jokes arouse, because users can't enter the normal mode after editing.
2829

29-
To quit the editor you need to do in normal mode
30+
### Leave Vim with multiple files and tabs opened
31+
32+
As you know to quit the editor you need to type
3033

3134
```
3235
:q
3336
```
34-
or if multiple windows are opened close them all
37+
in normal mode.
38+
39+
To leave Vim with multiple windows and tabs opened use
3540

3641
```
3742
:qa
3843
```
3944

40-
### Navigatig
45+
## Navigatig
4146

4247
Beyond normal vim movements like scrolling with
4348
```
@@ -59,13 +64,10 @@ ctl+o
5964

6065
and forward to last position with
6166

62-
6367
```
6468
ctl+i
6569
```
6670

67-
68-
6971
### Split windows and navigate between them
7072

7173
The magic command to split vertically is :vsplit command
@@ -96,7 +98,7 @@ ctrl+w [arrow key]
9698
```
9799
command.
98100

99-
#### Resizing
101+
### Resizing
100102

101103
increase size
102104
```
@@ -118,21 +120,23 @@ Maximize current window
118120
ctrl+w _
119121
```
120122

123+
## Plugins
124+
121125
### Use decent plugin manager
122126

123127
One modern and easy to use vim plugin manager is [vim-plug](https://github.com/junegunn/vim-plug)
124128

125-
## Use file tree plugin
129+
### Use NERDTree plugin
126130

127-
Use NERDTree file tree display in vim - https://github.com/preservim/nerdtree
131+
NERDTree helps file tree display in vim - https://github.com/preservim/nerdtree
128132

129133
after install just open it with
130134
```
131135
:NERDTree
132136
```
133137
in normal mode
134138

135-
## Run Terminal inside vim
139+
### Run Terminal inside vim
136140

137141
Vim has build in terminal plugin. You can open it with
138142
```
@@ -145,10 +149,9 @@ If you want terminal below current window use
145149
:bel term
146150
```
147151

152+
## Copy between editor and terminal
148153

149-
### Copy between editor and terminal
150-
151-
#### Copy from the editor to the terminal
154+
### Copy from the editor to the terminal
152155

153156
Assume you did copy some text into default register (e.g. by using yy coping line), then you can paste it into terminal by using
154157
```
@@ -158,7 +161,7 @@ ctrl+w ""
158161
> note: it is possible to copy from other registers as well. To list registers use the :register command
159162
160163

161-
#### Copy from the terminal to the editor
164+
### Copy from the terminal to the editor
162165

163166
It's possible to switch terminal into normal read-only editor by pressing
164167

@@ -173,6 +176,3 @@ To go back to the terminal mode just press *i* (like insert)
173176

174177

175178

176-
177-
178-

blog/2025-03-15-kafka-connect.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
slug: kafka-connect
3+
title: stream data from kafka to relational database
4+
draft: true
5+
authors: tkub
6+
tags: [java, kafka]
7+
---
8+
9+
# How to stream data from Kafka to relational database
10+
11+
In this post I would like to show how to stream data from any topic to relational database.
12+
13+
<!-- truncate -->
14+
15+
## What is Kafka Connect
16+
17+
In Short Kafka Connect is a framework facilitating streaming integrations beetwen Kafka and other systems.
18+
You can lear more about it [here](https://developer.confluent.io/courses/kafka-connect/intro/).
19+
20+
There are number of abstractions provided by the framework
21+
22+
23+
Source -> Kafka Connect -> Kafka
24+
25+
Kafka -> Kafka Connect -> Sink
26+
27+

blog/authors.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tkub:
22
name: Tomasz Kubacki
3-
title: Just me
4-
image_url: https://x.com/tomaszkubacki/photo
3+
title: Random dev
4+
image_url: https://avatars.githubusercontent.com/u/348532?s=400&v=4

blog/tags.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
facebook:
1+
linux:
22
label: Linux
33
permalink: /linux
4-
description: Linux tag
5-
hello:
4+
description: Linux operating system
5+
vim:
6+
label: Vim
7+
permalink: /vim
8+
description: Vim editor
9+
tmux:
610
label: Tmux
711
permalink: /tmux
8-
description: TMUX - terminal multiplexer
12+
description: TMUX - terminal multiplexer
13+
java:
14+
label: Java
15+
permalink: /java
16+
description: Java
17+
kafka:
18+
label: Kafka
19+
permalink: /kafka
20+
description: Apache Kafka
21+
rust:
22+
label: Rust
23+
permalink: /rust
24+
description: Rust lang

0 commit comments

Comments
 (0)