Today, around 15:25 GMT +2, I’ll present my talk at @pyconit about debugging Python applications inside the docker and k8s cluster. You can watch it online using the stream link https://2024.pycon.it/en/streaming or attend (Room Lasagna).
23.5.2024 10:55Today, around 15:25 GMT +2, I’ll present my talk at @pyconit about debugging Python applications inside the docker and k8s cluster. You...Discussion of 1BRC in #Go https://github.com/gunnarmorling/1brc/discussions/67
Context: https://twitter.com/gunnarmorling posted a problem https://morling.dev/blog/one-billion-row-challenge/ the idea is pretty simple and from another side not so simple.
We need more #golang solutions :)
5.1.2024 08:28Discussion of 1BRC in #Go https://github.com/gunnarmorling/1brc/discussions/67Context: https://twitter.com/gunnarmorling posted a problem...Slides of my today's talk from #kcdaustria about debugging #golang apps inside #k8s cluster
https://drive.google.com/file/d/1-6ERQda23o7OiLHziz4wwgvdFWS0kyv8/view
@andrii Small demo
19.7.2023 07:26@andrii Small demoHere is my favorite tool (fzf) with some shell bindings, which I'm using in my day-to-day job:
The TL;DR is:
- The up and down arrows let you cycle through your Bash history 1 line at a time
- Use CTRL + r to quickly reverse-search your Bash history
Link for docs -> https://github.com/junegunn/fzf/wiki/Configuring-shell-key-bindings
Small demo https://i.stack.imgur.com/H9wAh.gif
Tutorial: Find and fix vulnerable dependencies with govulncheck https://go.dev/doc/tutorial/govulncheck
#golang #tutorial #Security #vulnerable
18.7.2023 09:41Tutorial: Find and fix vulnerable dependencies with govulncheck https://go.dev/doc/tutorial/govulncheck#golang #tutorial #Security...TIL: if you want to avoid temp file in some situations you can use a tool such as GNU `sponge` (part of the moreutils package):
For example format json in place:
```
jq . file.json | sponge file.json
```
"In programming, if someone tells you “you’re overcomplicating it,” they’re either 10 steps behind you or 10 steps ahead of you." – Andrew Clark
22.6.2023 15:49"In programming, if someone tells you “you’re overcomplicating it,” they’re either 10 steps behind you or 10 steps ahead of...#vim rename tip:
You can rename a few files at a time using Vim/neovim:
bonus feature: if it's #git repo it will fallback to git mv
https://github.com/thameera/vimv/blob/master/vimv
14.6.2023 11:26#vim rename tip:You can rename a few files at a time using Vim/neovim:bonus feature: if it's #git repo it will fallback to git...LOL:
$ pip install pyjokes
Collecting pyjokes
Downloading pyjokes-0.6.0-py2.py3-none-any.whl (26 kB)
Installing collected packages: pyjokes
Successfully installed pyjokes-0.6.0
$ pyjoke
A good programmer is someone who always looks both ways before crossing a one-way street..
$ pyjoke
QAs consist of 55% water, 30% blood and 15% Jira tickets.
Be conservative in what you do, be liberal in what you accept from others. —Transmission Control Protocol
10.6.2023 10:13Be conservative in what you do, be liberal in what you accept from others. —Transmission Control Protocol"Tell me and I forget, teach me and I may remember, involve me and I learn" - unknown
6.6.2023 12:13"Tell me and I forget, teach me and I may remember, involve me and I learn" - unknownIf you use your .bash_profile on more than one computer (e.g. synced via git)
, but some command not installed e.g. bat: you can avoid breaking cat like so:
command -v bat >/dev/null 2>&1 && alias cat="bat"
5.6.2023 07:52#tip #bash If you use your .bash_profile on more than one computer (e.g. synced via git) , but some command not installed e.g. bat: you can..."Programming isn't about what you know; it's about what you can figure out." - Chris Pine
11.5.2023 15:56"Programming isn't about what you know; it's about what you can figure out." - Chris Pine@andrii
So assume you have such a diff:
diff --git foo.c foo.c
index a655540..5a59044 100644
--- foo.c
+++ foo.c
@@ -1,3 +1,3 @@
int main(void) {
- printf("hello word!\n");
+ printf("hello world!\n");
}
$ git jump diff
will open an #EDITOR on foo.c:3
3.5.2023 08:40@andrii So assume you have such a diff:diff --git foo.c foo.cindex a655540..5a59044 100644--- foo.c+++ foo.c@@ -1,3 +1,3 @@ int main(void)...#git tip: Recently on reddit I found an interesting #git tip:
Jump to interesting elements in an editor (#vim/#emacs):
$ git jump diff
https://github.com/git/git/blob/master/contrib/git-jump/git-jump
3.5.2023 08:40#git tip: Recently on reddit I found an interesting #git tip:Jump to interesting elements in an editor (#vim/#emacs):$ git jump...Today found interesting #rust benchmarking tool:
$ hyperfine ls
Benchmark 1: ls
Time (mean ± σ): 2.3 ms ± 0.6 ms [User: 0.8 ms, System: 1.2 ms]
Range (min … max): 1.7 ms … 9.4 ms 334 runs
https://github.com/sharkdp/hyperfine
credits to
@elijahmanor
#postgresql TIL
You can use \watch to re-execution of commands.
My talk has been highlighted in golang weekly https://golangweekly.com/issues/448 thanks @golang_discussions !
20.2.2023 08:42My talk has been highlighted in golang weekly https://golangweekly.com/issues/448 thanks @golang_discussions !Video of my #FOSDEM lightning talk from #Rust dev room https://www.youtube.com/watch?v=JVe9O4epSxc
12.2.2023 10:07Video of my #FOSDEM lightning talk from #Rust dev room https://www.youtube.com/watch?v=JVe9O4epSxc