]> git.phdru.name Git - dotfiles.git/log
dotfiles.git
22 months agobin/cgmem_*: Mounted memory cgroup at `/sys/fs/cgroup/memory`
Oleg Broytman [Tue, 27 Dec 2022 09:18:33 +0000 (12:18 +0300)]
bin/cgmem_*: Mounted memory cgroup at `/sys/fs/cgroup/memory`

Fred up `/sys/fs/cgroup` for other cgroups.

23 months ago.profile: HISTIGNORE mistakes
Oleg Broytman [Wed, 21 Dec 2022 10:18:59 +0000 (13:18 +0300)]
.profile: HISTIGNORE mistakes

`~?` must be `!?`.
`,c` and `ьс` (in the terminal's encoding) must be `mc`.

23 months ago.bashrc: Read history
Oleg Broytman [Tue, 6 Dec 2022 16:05:25 +0000 (19:05 +0300)]
.bashrc: Read history

23 months ago.vim: Add `ftplugin/sshconfig.vim`
Oleg Broytman [Thu, 1 Dec 2022 15:00:15 +0000 (18:00 +0300)]
.vim: Add `ftplugin/sshconfig.vim`

23 months ago.vim: Add `ConflictMarkersSearch()`
Oleg Broytman [Wed, 30 Nov 2022 12:27:41 +0000 (15:27 +0300)]
.vim: Add `ConflictMarkersSearch()`

23 months agoFeat(.mc/menu): Put random playlist in `/tmp/`
Oleg Broytman [Sun, 27 Nov 2022 14:35:11 +0000 (17:35 +0300)]
Feat(.mc/menu): Put random playlist in `/tmp/`

Requires latest version of `shuffle-playlist.py`.

23 months ago.shellrc: Run `/bin/rm` instead of just `rm`
Oleg Broytman [Sat, 26 Nov 2022 22:16:01 +0000 (01:16 +0300)]
.shellrc: Run `/bin/rm` instead of just `rm`

On some systems `rm` is an interactive alias that runs `rm -i`.

2 years ago.vim: Remove a personal mapping
Oleg Broytman [Thu, 17 Nov 2022 14:25:33 +0000 (17:25 +0300)]
.vim: Remove a personal mapping

2 years ago.vim: `RemoveTrailingSpaces()`
Oleg Broytman [Wed, 16 Nov 2022 16:23:45 +0000 (19:23 +0300)]
.vim: `RemoveTrailingSpaces()`

2 years ago.vim: `SqueezeEmptyLines()`
Oleg Broytman [Sat, 12 Nov 2022 15:08:25 +0000 (18:08 +0300)]
.vim: `SqueezeEmptyLines()`

Replace multiple consecutive empty lines with just one.

2 years agoFeat: On exit from `vim` do `cd` to its last working directory
Oleg Broytman [Fri, 28 Oct 2022 15:07:46 +0000 (18:07 +0300)]
Feat: On exit from `vim` do `cd` to its last working directory

2 years agoFix deprecated open mode `rU` -> `r`
Oleg Broytman [Thu, 27 Oct 2022 15:21:58 +0000 (18:21 +0300)]
Fix deprecated open mode `rU` -> `r`

2 years ago.bashrc: Add Python/pip 3.11
Oleg Broytman [Tue, 25 Oct 2022 09:28:02 +0000 (12:28 +0300)]
.bashrc: Add Python/pip 3.11

2 years ago.gitconfig: Fix URLs
Oleg Broytman [Sun, 16 Oct 2022 14:05:49 +0000 (17:05 +0300)]
.gitconfig: Fix URLs

Add `git@github.com:` and `git@gitlab.com:`.

2 years ago.profile: unset `MAILCHECK` under `screen`
Oleg Broytman [Sun, 9 Oct 2022 22:04:09 +0000 (01:04 +0300)]
.profile: unset `MAILCHECK` under `screen`

Unset `MAILCHECK` for all but the very 1st `screen` window.

2 years ago.profile: HISTIGNORE `cd`
Oleg Broytman [Sun, 9 Oct 2022 18:30:44 +0000 (21:30 +0300)]
.profile: HISTIGNORE `cd`

2 years ago.bashrc: Remove overlooked unused `$PY_VER`
Oleg Broytman [Sat, 8 Oct 2022 19:43:34 +0000 (22:43 +0300)]
.bashrc: Remove overlooked unused `$PY_VER`

2 years ago.bashrc: Fix variable name spelling
Oleg Broytman [Sat, 8 Oct 2022 19:43:18 +0000 (22:43 +0300)]
.bashrc: Fix variable name spelling

2 years ago.bashrc: Sort shopts alphabetically
Oleg Broytman [Sat, 8 Oct 2022 19:42:44 +0000 (22:42 +0300)]
.bashrc: Sort shopts alphabetically

2 years ago.bashrc: `unset HISTFILE` if it was unset before
Oleg Broytman [Sat, 8 Oct 2022 10:20:45 +0000 (13:20 +0300)]
.bashrc: `unset HISTFILE` if it was unset before

2 years ago.bashrc: Indent 4 spaces
Oleg Broytman [Sat, 8 Oct 2022 10:20:25 +0000 (13:20 +0300)]
.bashrc: Indent 4 spaces

2 years ago.fvwmrc: Increase big terminal size
Oleg Broytman [Sun, 2 Oct 2022 13:34:49 +0000 (16:34 +0300)]
.fvwmrc: Increase big terminal size

2 years ago.profile: Extend `$HISTIGNORE`
Oleg Broytman [Thu, 29 Sep 2022 11:32:10 +0000 (14:32 +0300)]
.profile: Extend `$HISTIGNORE`

2 years ago.mc/menu: Fix calling PDF viewer
Oleg Broytman [Wed, 21 Sep 2022 14:15:52 +0000 (17:15 +0300)]
.mc/menu: Fix calling PDF viewer

Convert the file name to KOI8-R before running `koi2lat`.

2 years ago.mc/menu: Verify detached signature
Oleg Broytman [Sun, 18 Sep 2022 21:18:38 +0000 (00:18 +0300)]
.mc/menu: Verify detached signature

2 years ago.mc/menu: Fix path
Oleg Broytman [Sun, 18 Sep 2022 21:16:32 +0000 (00:16 +0300)]
.mc/menu: Fix path

I moved `~/admin/prog/audio-cdr-video` to `~/prog/audio-cdr-video`

2 years ago.gitconfig: Add protocol changers and fixers
Oleg Broytman [Thu, 15 Sep 2022 16:07:04 +0000 (19:07 +0300)]
.gitconfig: Add protocol changers and fixers

Add `git://` protocol fixers and HTTPS/SSH changers.
Commented out -- they're only examples.

2 years ago.gitconfig: Allow `git archive --format=tar.bz2` and `tar.xz`
Oleg Broytman [Thu, 15 Sep 2022 16:06:16 +0000 (19:06 +0300)]
.gitconfig: Allow `git archive --format=tar.bz2` and `tar.xz`

2 years ago.gitconfig: Default remote is `origin`
Oleg Broytman [Thu, 15 Sep 2022 16:05:52 +0000 (19:05 +0300)]
.gitconfig: Default remote is `origin`

2 years ago.fvwmrc: Remove Opera
Oleg Broytman [Thu, 15 Sep 2022 10:06:45 +0000 (13:06 +0300)]
.fvwmrc: Remove Opera

It's just Chrome in disguise.

2 years ago.fvwmrc: Start `chromium` on a specific desktop
Oleg Broytman [Thu, 15 Sep 2022 10:04:11 +0000 (13:04 +0300)]
.fvwmrc: Start `chromium` on a specific desktop

2 years ago.bashrc: Save/restore history before/after X
Oleg Broytman [Sun, 11 Sep 2022 07:20:37 +0000 (10:20 +0300)]
.bashrc: Save/restore history before/after X

2 years ago.bashrc: Refactoring
Oleg Broytman [Sat, 10 Sep 2022 13:15:04 +0000 (16:15 +0300)]
.bashrc: Refactoring

2 years ago.bashrc: No need to test for `$BASH_VERSION`
Oleg Broytman [Sat, 10 Sep 2022 13:11:33 +0000 (16:11 +0300)]
.bashrc: No need to test for `$BASH_VERSION`

2 years agoshell: Fix indent (3 spaces -> 4)
Oleg Broytman [Sat, 10 Sep 2022 13:02:20 +0000 (16:02 +0300)]
shell: Fix indent (3 spaces -> 4)

2 years ago.profile: Add `$SCREENDIR`
Oleg Broytman [Tue, 6 Sep 2022 11:09:03 +0000 (14:09 +0300)]
.profile: Add `$SCREENDIR`

Commented out.

2 years ago.profile: Move motd closer to the beginning
Oleg Broytman [Tue, 6 Sep 2022 11:08:07 +0000 (14:08 +0300)]
.profile: Move motd closer to the beginning

To the very start of the interactive session.

2 years ago.screenrc: Use `caption` instead of `hardstatus`
Oleg Broytman [Sat, 3 Sep 2022 16:15:11 +0000 (19:15 +0300)]
.screenrc: Use `caption` instead of `hardstatus`

With `caption` `screen` changes terminal icon name.

2 years ago.fvwmrc: `xscreensaver`: Suspend screen
Oleg Broytman [Wed, 24 Aug 2022 20:40:19 +0000 (23:40 +0300)]
.fvwmrc: `xscreensaver`: Suspend screen

Turn off power immediately.

2 years ago.shellrc: Do not reset `PS1`
Oleg Broytman [Mon, 22 Aug 2022 15:54:08 +0000 (18:54 +0300)]
.shellrc: Do not reset `PS1`

2 years ago.shellrc: Use `PS1+=` to avoid overriding `PS1`
Oleg Broytman [Mon, 22 Aug 2022 15:53:18 +0000 (18:53 +0300)]
.shellrc: Use `PS1+=` to avoid overriding `PS1`

2 years ago.shellrc: Add function `last_cmd_status`
Oleg Broytman [Mon, 22 Aug 2022 15:52:23 +0000 (18:52 +0300)]
.shellrc: Add function `last_cmd_status`

2 years ago.shellrc: Rename `set_prompts` -> `set_prompt`
Oleg Broytman [Mon, 22 Aug 2022 15:51:37 +0000 (18:51 +0300)]
.shellrc: Rename `set_prompts` -> `set_prompt`

2 years ago.fvwmrc: Rename `Term2Hosts` -> `Term2HostsHome`
Oleg Broytman [Tue, 16 Aug 2022 09:59:29 +0000 (12:59 +0300)]
.fvwmrc: Rename `Term2Hosts` -> `Term2HostsHome`

They are my personal hosts.
Need to distinguish them from hosts at the job.

2 years agobin/l: preserve the terminal content
Oleg Broytman [Tue, 9 Aug 2022 08:04:30 +0000 (11:04 +0300)]
bin/l: preserve the terminal content

Switch to alternate screen.

2 years ago.fvwmrc: Remove `oper.med.ru`
Oleg Broytman [Wed, 22 Jun 2022 20:28:11 +0000 (23:28 +0300)]
.fvwmrc: Remove `oper.med.ru`

2 years agoI'm no longer working at NRSC
Oleg Broytman [Wed, 22 Jun 2022 20:10:47 +0000 (23:10 +0300)]
I'm no longer working at NRSC

2 years agohtml.vim: Remove `</meta>`
Oleg Broytman [Sat, 14 May 2022 12:14:03 +0000 (15:14 +0300)]
html.vim: Remove `</meta>`

2 years agoFix(bin): Fix `KillAll`: `return` -> `exit`
Oleg Broytman [Sun, 1 May 2022 20:49:14 +0000 (23:49 +0300)]
Fix(bin): Fix `KillAll`: `return` -> `exit`

The script was not fully ported from a shell function.

2 years ago.procmailrc: Catch mail from GHActions for Cheetah
Oleg Broytman [Mon, 18 Apr 2022 03:12:02 +0000 (06:12 +0300)]
.procmailrc: Catch mail from GHActions for Cheetah

Catch notifications from GitHub Actions for CheetahTemplate.

2 years ago.vim: Use `programming_lang.vim` in `python.vim`
Oleg Broytman [Sat, 9 Apr 2022 13:22:42 +0000 (16:22 +0300)]
.vim: Use `programming_lang.vim` in `python.vim`

2 years ago.fvwmrc: Reorder buttons
Oleg Broytman [Tue, 5 Apr 2022 10:44:10 +0000 (13:44 +0300)]
.fvwmrc: Reorder buttons

Put more frequently used audio player to the corner.

2 years agoRefactor(.vim/ftplugin): Settings common to all programming languages
Oleg Broytman [Sat, 2 Apr 2022 12:06:57 +0000 (15:06 +0300)]
Refactor(.vim/ftplugin): Settings common to all programming languages

2 years ago.vim: Add `ftplugin/javascript.vim`
Oleg Broytman [Sat, 2 Apr 2022 12:00:29 +0000 (15:00 +0300)]
.vim: Add `ftplugin/javascript.vim`

2 years ago.vim: Feat(ftplugin/python): Avoid double indent
Oleg Broytman [Mon, 28 Mar 2022 12:25:19 +0000 (15:25 +0300)]
.vim: Feat(ftplugin/python): Avoid double indent

2 years ago.fvwmrc: Improve terminal/ssh menus
Oleg Broytman [Sun, 27 Feb 2022 01:43:41 +0000 (04:43 +0300)]
.fvwmrc: Improve terminal/ssh menus

Use `-xrm "*Page:"` to start terminals
at the designated virtual screens.

2 years ago.fvwmrc: Quote macro definitions
Oleg Broytman [Sun, 27 Feb 2022 01:42:54 +0000 (04:42 +0300)]
.fvwmrc: Quote macro definitions

2 years agoFix(.fvwmrc): Restore quotes
Oleg Broytman [Sun, 27 Feb 2022 01:42:06 +0000 (04:42 +0300)]
Fix(.fvwmrc): Restore quotes

2 years ago.fvwmrc: Give more memory to `skype`
Oleg Broytman [Fri, 25 Feb 2022 01:37:50 +0000 (04:37 +0300)]
.fvwmrc: Give more memory to `skype`

2 years ago.fvwmrc: remove more empty lines
Oleg Broytman [Thu, 24 Feb 2022 21:04:20 +0000 (00:04 +0300)]
.fvwmrc: remove more empty lines

2 years ago.fvwmrc: Improve buttons
Oleg Broytman [Sat, 19 Feb 2022 01:48:04 +0000 (04:48 +0300)]
.fvwmrc: Improve buttons

Use `Exec "hangon"`.

Use `FvwmCommand` in `Exec exec` to start programs
at the designated virtual screens.

Use `-xrm "*Page:"` in `Exec exec TERM` to start terminals
at the designated virtual screens.

2 years ago.fvwmrc: Fix quoting
Oleg Broytman [Sat, 19 Feb 2022 01:46:54 +0000 (04:46 +0300)]
.fvwmrc: Fix quoting

Use double-quoting to avoid macro expansion too early.

2 years ago.fvwmrc: Combine terminal macros into `Term3Hosts`
Oleg Broytman [Sat, 19 Feb 2022 01:45:00 +0000 (04:45 +0300)]
.fvwmrc: Combine terminal macros into `Term3Hosts`

These macros no longer used separately.

2 years ago.fvwmrc: Remove unused functions `*-Big`
Oleg Broytman [Sat, 19 Feb 2022 01:42:59 +0000 (04:42 +0300)]
.fvwmrc: Remove unused functions `*-Big`

2 years ago.fvwmrc: Remove unused function `AudioPlayer`
Oleg Broytman [Sat, 19 Feb 2022 01:39:06 +0000 (04:39 +0300)]
.fvwmrc: Remove unused function `AudioPlayer`

2 years ago.fvwmrc: Move `SSH` into `SSH_SCREEN_*` macros
Oleg Broytman [Sat, 19 Feb 2022 01:35:51 +0000 (04:35 +0300)]
.fvwmrc: Move `SSH` into `SSH_SCREEN_*` macros

Avoid `SSH SSH_SCREEN`.

2 years ago.fvwmrc: Remove empty lines
Oleg Broytman [Sat, 19 Feb 2022 01:33:05 +0000 (04:33 +0300)]
.fvwmrc: Remove empty lines

2 years ago.fvwmrc: Pass `$TZ` from the local host
Oleg Broytman [Thu, 10 Feb 2022 14:39:00 +0000 (17:39 +0300)]
.fvwmrc: Pass `$TZ` from the local host

2 years ago.fvwmrc: Shorten titles to decrease buttons' size
Oleg Broytman [Thu, 10 Feb 2022 09:33:09 +0000 (12:33 +0300)]
.fvwmrc: Shorten titles to decrease buttons' size

2 years agoFix(.fvwmrc): Fix macro in a comment
Oleg Broytman [Thu, 10 Feb 2022 00:35:27 +0000 (03:35 +0300)]
Fix(.fvwmrc): Fix macro in a comment

2 years agoRefactor(.fvwmrc): Refactor macros for big terminals
Oleg Broytman [Thu, 10 Feb 2022 00:29:45 +0000 (03:29 +0300)]
Refactor(.fvwmrc): Refactor macros for big terminals

2 years agoRefactor(.fvwmrc): Combine term+ssh+screen macros
Oleg Broytman [Thu, 10 Feb 2022 00:21:35 +0000 (03:21 +0300)]
Refactor(.fvwmrc): Combine term+ssh+screen macros

2 years ago.fvwmrc: Rename terminal macros
Oleg Broytman [Wed, 9 Feb 2022 23:18:48 +0000 (02:18 +0300)]
.fvwmrc: Rename terminal macros

The structure of new name is:
terminal, encoding, geometry, ssh, screen.

2 years ago.fvwmrc: Remove unused font definitions
Oleg Broytman [Wed, 9 Feb 2022 16:57:00 +0000 (19:57 +0300)]
.fvwmrc: Remove unused font definitions

2 years agowebbrowser: Allow to open a new window/tab without an URL
Oleg Broytman [Tue, 8 Feb 2022 21:21:57 +0000 (00:21 +0300)]
webbrowser: Allow to open a new window/tab without an URL

2 years ago.fvwmrc: Mark remote hosts with `screen`
Oleg Broytman [Thu, 3 Feb 2022 00:23:46 +0000 (03:23 +0300)]
.fvwmrc: Mark remote hosts with `screen`

2 years ago.mc/mc.ext: `*.inpx` are zip files
Oleg Broytman [Mon, 3 Jan 2022 23:11:31 +0000 (02:11 +0300)]
.mc/mc.ext: `*.inpx` are zip files

2 years ago.mc/mc.ext: Refactor opening/viewing zip files
Oleg Broytman [Mon, 3 Jan 2022 23:11:04 +0000 (02:11 +0300)]
.mc/mc.ext: Refactor opening/viewing zip files

2 years ago.mc/menu: Make loud the default instead of louder
Oleg Broytman [Mon, 3 Jan 2022 20:11:56 +0000 (23:11 +0300)]
.mc/menu: Make loud the default instead of louder

2 years ago.mc/menu: Add quiet mplayer menu item
Oleg Broytman [Mon, 3 Jan 2022 20:11:25 +0000 (23:11 +0300)]
.mc/menu: Add quiet mplayer menu item

2 years agobash_prompt: Run `ls-files` from the root of the repo
Oleg Broytman [Fri, 17 Dec 2021 15:22:28 +0000 (18:22 +0300)]
bash_prompt: Run `ls-files` from the root of the repo

Running `ls-files` in a subdirectory could miss files
in other parts of the working tree.

2 years ago.bashrc: Delegate python completion for python3.10
Oleg Broytman [Tue, 7 Dec 2021 14:19:21 +0000 (17:19 +0300)]
.bashrc: Delegate python completion for python3.10

2 years agomc.ext: View Python packages
Oleg Broytman [Wed, 1 Dec 2021 14:05:00 +0000 (17:05 +0300)]
mc.ext: View Python packages

View Python packages (eggs and wheels) as ZIP files.

3 years ago.gitconfig: Refactor merge/pull-request aliases
Oleg Broytman [Wed, 10 Nov 2021 16:08:02 +0000 (19:08 +0300)]
.gitconfig: Refactor merge/pull-request aliases

3 years ago.gitconfig: Default branch is `master`
Oleg Broytman [Fri, 15 Oct 2021 23:13:16 +0000 (02:13 +0300)]
.gitconfig: Default branch is `master`

3 years agobash_prompt: Change `screen`/`tmux` titles
Oleg Broytman [Wed, 13 Oct 2021 15:08:09 +0000 (18:08 +0300)]
bash_prompt: Change `screen`/`tmux` titles

Cut long directories.
Prepend current time and memory control group.

3 years ago.fvwmrc: `deadbeef` requires more memory
Oleg Broytman [Wed, 6 Oct 2021 09:54:59 +0000 (12:54 +0300)]
.fvwmrc: `deadbeef` requires more memory

3 years ago.fvwmrc: Place `deadbeef` at the bottom right
Oleg Broytman [Wed, 6 Oct 2021 09:54:34 +0000 (12:54 +0300)]
.fvwmrc: Place `deadbeef` at the bottom right

3 years ago`bin/r`: Remove option `-4` from `rsync`
Oleg Broytman [Sun, 3 Oct 2021 14:47:03 +0000 (17:47 +0300)]
`bin/r`: Remove option `-4` from `rsync`

Add `-v`.

3 years agoAdd `cgmn` as a symlink to `cgmem_nice`
Oleg Broytman [Fri, 1 Oct 2021 16:16:25 +0000 (19:16 +0300)]
Add `cgmn` as a symlink to `cgmem_nice`

3 years ago`ssh`: Remove option `-4`
Oleg Broytman [Fri, 1 Oct 2021 14:49:44 +0000 (17:49 +0300)]
`ssh`: Remove option `-4`

3 years agoSwitch from `audacious` to `deadbeef`
Oleg Broytman [Thu, 30 Sep 2021 15:51:12 +0000 (18:51 +0300)]
Switch from `audacious` to `deadbeef`

`audacious` again lost ability to work with koi8 filesystems.
`deadbeef` restored it. :-)

3 years ago.fvwmrc: Enlarge fonts for Qt-based `audacious`
Oleg Broytman [Wed, 29 Sep 2021 14:02:00 +0000 (17:02 +0300)]
.fvwmrc: Enlarge fonts for Qt-based `audacious`

3 years ago.fvwmrc: Remove dead code
Oleg Broytman [Mon, 30 Aug 2021 13:07:50 +0000 (16:07 +0300)]
.fvwmrc: Remove dead code

I used to have a separate terminal with root logged in
but now I use `sudo` instead.

3 years ago.fvwmrc: Add a menu to open a terminal with SSH with SOCKS5 proxy
Oleg Broytman [Sun, 8 Aug 2021 16:39:46 +0000 (19:39 +0300)]
.fvwmrc: Add a menu to open a terminal with SSH with SOCKS5 proxy

3 years ago.fvwmrc: Run Firefox with a fixed profile
Oleg Broytman [Sun, 1 Aug 2021 00:21:48 +0000 (03:21 +0300)]
.fvwmrc: Run Firefox with a fixed profile

3 years ago.profile: Adapt to newer `pyenv`
Oleg Broytman [Wed, 7 Jul 2021 09:06:23 +0000 (12:06 +0300)]
.profile: Adapt to newer `pyenv`

3 years ago.mc: Treat `*.m3u8` as playlists
Oleg Broytman [Thu, 1 Jul 2021 17:17:13 +0000 (20:17 +0300)]
.mc: Treat `*.m3u8` as playlists

3 years ago.mc/menu: View pdf with `qpdfview`
Oleg Broytman [Thu, 10 Jun 2021 16:43:08 +0000 (19:43 +0300)]
.mc/menu: View pdf with `qpdfview`

I use non-UTF8 (KOI8-R) locale but `qpdfview` no longer opens non-UTF8 paths.
The menu item opens the file directly using `qpdfview`
if the full path is UTF8-encoded. If not the code creates ASCII-only symlink
in `~/home/tmp/` that encodes the full path in its name to make `qpdfview`
store session info for the file.

3 years agoFeat(bash_prompt): Show current time
Oleg Broytman [Sun, 30 May 2021 11:30:46 +0000 (14:30 +0300)]
Feat(bash_prompt): Show current time