In the middle of the desert you can say anything you want
For my log, it would be interesting to create a keybinding that prepends current time to the beginning of the new created line and stays in insert mode.
Hot keys and keyboard shortcuts – Zoom Help Center
<Alt-A>
- mute/unmute microphone.Confluence saves draft version of the things you write if a page already exists. If the page is not created yet, no draft version is saved.
Project settings are not separate, but part of the general ‘Settings’.
Conditional formatting, especially the one that does gradient, is really nice. Butif you enter numbers with “.” as decimal point, while the sheet has “,” as decimal “point”, it will silently fail and color everything white.
TODO:
Lookarounds look useful: Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions
If TC triggers Sonar, it will provide a link to it once it finishes in the build log! (Same for CheckStyle - if it breaks because of it, going to the error and scrolling up in the log will lead to the problematic file and line.)
tig
(git)TS showed it to me some days ago, installed it, does really nice and colorful visualizations of branches statuses etc etc etc. Keyboard-driven and configurable and basically everything I might want, including easy to remember name.
This is awesome: Bar Plots in Python using Pandas DataFrames | Shane Lynn
Система моніторингу поширення епідемії коронавірусу
TL;DR use only one screen and they work.
I have a potential fix for this! I have 2 screens (internal laptop monitor, and external monitor). I noticed that the problem only presents when I’m using “dual monitor” mode and have “gallery view” enabled. The controls also don’t appear if I have “full screen” enabled. They also won’t appear if I have either window on the external monitor.
It works in “dual monitor” mode if I have the controls window set to “speaker view” and not in “full screen” with both windows on the internal (laptop) monitor. I can then move either window to the external monitor. If I’ve accidentally started Annotation mode “wrong”, I have to cancel it and move all windows to the internal monitor before re-starting Annontation mode.
I have my controls back! This is with version 5.2.458699.0906 1
I have version 5.3.47…. (no way to copypaste) and they don’t, but using only one monitor helped. Though I get a black screen underneath annotations when/as I’m writing them.
pwd | xc
alias pwx='pwd | xc'
I really need to gather them all in one place and make ~/.zshrc cleaner and neater.
```
cc() python3 -c "from math import *; from statistics import *; print($*);"
alias cc='noglob cc'
```
Added `statistics` to it, now I can do things like `cc mean([2, 4, 9])`. (As a bonus `stdev()` etc., [full list](https://docs.python.org/3/library/statistics.html)). Works for now. `"`, if any, have to be escaped.
## zsh prompt
Yet another change (theme file `clean2.zsh-theme`):
`PROMPT='%{$fg[green]%}(%*/%!) %{$fg[$NCOLOR]%}%B%b%{$reset_color%}%{$fg[blue]%}%B%5c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '`
It transforms to:
`(10:23:09/10712) some/folder/whatever/ $ mycommand`
Removed the user (that I had to edit out often), moved current time from `PROMPT` to the left side (now I can happily copypaste CLI args and output again).
## regex greedy / lazy
[Regex Quantifier Tutorial: Greedy, Lazy, Possessive](https://www.rexegg.com/regex-quantifiers.html) TODO
TL;DR most regex engines are greedy by default. Greedy = 'longest possible match'. Making it lazy sometimes means adding a "?" to the quantifier, such as `.*?`. Not supported everywhere, notably grep does this only with the perl syntax (`grep -P .*?`).
For vim: [regular expression - How to make regex matchers non-greedy? - Vi and Vim Stack Exchange](https://vi.stackexchange.com/questions/196/how-to-make-regex-matchers-non-greedy/13363#13363)
## `info` command instead of `man`
Nice, had no idea this existed. `info diff`, for example.
Found here: [linux - Understanding of diff output - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/81998/understanding-of-diff-output).
## Unified diff how to read
`@@ -1,4 +1,5 @@`:
> - The number after the comma is the length of the chunk (in the old or new file), and
> - the number before the comma is the line number for the beginning of the chunk.
> - The + and - signs refer to adding and deleting lines, respectively. [^sounce]
[^sounce]: [What do the numbers in the @@ line mean in output of diff? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/252927/what-do-the-numbers-in-the-line-mean-in-output-of-diff?noredirect=1&lq=1)
Gnu diff man page has more: [Detailed Unified (Comparing and Merging Files)](http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html)
## Git / Jira / Bitbucket branches and connections to tickets
As long as the branch name contains the issue key (ABCD-123), it gets connected - but only if the branch is created _after_ the creation of the ticket. [^jibbranchsource]
> As stated previously in this question, it is not possible. You are screwed if you create the branch first.
But also it seems that mentioning an issue name in the pull request (does this work for commits?) also works:
> Simply renaming the Pull Request in Github to include the issue id XXX-nnn in the name triggered that PR and Branch to be linked to the Jira ticket. [^jibbranchsource]
[^jibbranchsource]: [Solved: How to link existing JIRA issue to a existing bran...](https://community.atlassian.com/t5/Jira-questions/How-to-link-existing-JIRA-issue-to-a-existing-branch-in/qaq-p/701496)
## Random / i3 / workspaces
I could define a workspace officially, like number 5, for terminals I don't really need but that are open in deep folders I might need later.
## Random / documentation / dtb
Sometimes I miss the ability to drag and drop screenshots to my textfile with descriptions of stuff I did. I can drag and drop screenshots but they are a bit ephemeral. An interesting idea would be create a different keybinding that creates screenshots that get put in a particular folder; I can still drag-and-drop them, but I'll have stricter guarantees that they'll be there when I'll look for them.
## vim plugin MultipleSearch
[MultipleSearch - Highlight multiple searches at the same time, each with a different color. : vim online](https://www.vim.org/scripts/script.php?script_id=479)
```
:Search sth
:Search somethingelse
:SearchReset
```
Highlights them in diff colors, just what I need. `n/N` works only on the last one.
[vim-scripts/MultipleSearch2.vim: Improve Multiple search](https://github.com/vim-scripts/MultipleSearch2.vim) looks like an improved version of the above.
## vim search and substitute
You can use `\1` etc for `%s/..` commands, if the groups where previously defined by you in a usual `/search-for-stuff`!
```
/\v(https?):\/\/(.{-})\/.* <-- Search
:%s,,Protocol:\1 - Domain:\2,g <-- Substitution
```
This is awesome.
Tickets are linked automatically when mentioned like WHAT-1234
, but only with spaces around them; WHAT-1234: result
, for example, wouldn’t work.
alias sumup='paste -sd+ | bc'
This is nice! sort -V
sorts by “version numbers” => 1, 10, 20, 50, 200, instead of the alphabetic 1 10 20 200 50.
I need something like “output to CLI and copy to clipboard” + I need a smaller timestamp and to the left, not right-aligned, so I can more easily copypaste stuff.
I think part of the problem is people being raised to believe that love, in the biochemical sense, is the most important part of a relationship. Hence when they start feeling similar feelings for others, their relationship can weaken. But a relationship can be about so much more than just the biochemical side: two people, with similar goals and values, working together to build a better life for themselves and their children, and to help each-other achieve their dreams. 1
Zersetzung - Wikipedia “(German for “decomposition”) is a psychological warfare technique used by the Ministry for State Security (Stasi) to repress political opponents in East Germany during the 1970s and 1980s.”
TL;DR Download speed with ethernet is 4x faster, no differences otherwise.
Sa 17 Okt 2020 17:15:44 CEST.
Wifi, 50cm from router:
$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from [redacted]
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by [redacted]: 46.246 ms
Testing download speed................................................................................
Download: 101.10 Mbit/s
Testing upload speed......................................................................................................
Upload: 3.64 Mbit/s
Ethernet from same router:
$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from [redacted]
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by [redacted]: 40.086 ms
Testing download speed................................................................................
Download: 395.90 Mbit/s
Testing upload speed......................................................................................................
Upload: 3.89 Mbit/s
alias ccd='pwd | xc'
; though I kinda feel the task would be solved nicely as keyboard shortcut for kitty. + Reminder to myself that zsh nicely cd
-s to it when pasting the folder, without cd.
Also find | grep
is now f
instead of ff
.
“Du spricht für uns alle”
Forgetting about this nice use of grep:
grep "whatever" *
gives the matches while also displaying the filename!
And yet another place to find this! :actionlist
as command in ideavim.
IdeaVIM Help: motion is the last readable docu I can find, from 2006.
gi
starts insert mode at the last place insert mode was exited; '^
just moves the cursor there.
Had an issue with “Class not found” when running tests, fixed with “Invalidate caches and restart”
My custom up/down keys set via xmodmap (<Super-C>
etc.) got recognized everywhere in the OS except intellij; Can get configured in intellij keymap.