Skip to content

Commit b6f0f0b

Browse files
committed
styling improvements
1 parent 77c1e1f commit b6f0f0b

38 files changed

+4197
-16774
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.16.0

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
## @rsapkf's notes
1+
## [rsapkf/73]
22

33
![George McFly, Back to the Future, at precisely 1:03:59](mcfly.png)
44

55
These are companion notes to my [dotfiles](https://github.com/rsapkf/dotfiles) and [links](https://github.com/rsapkf/42/) where I keep short snippets of code, shell scripts, tricks and tips to remember stuff.
66

7-
Notes are in [`docs/`](https://github.com/rsapkf/notes/tree/master/docs) directory.
7+
Notes are in the [`docs/`](https://github.com/rsapkf/73/tree/main/docs) directory.
88

99
View all notes: [notes.rsapkf.xyz](https://notes.rsapkf.xyz/)
1010

11-
_Built using [Docusaurus v2](https://v2.docusaurus.io/)._
12-
_Search powered by [Algolia DocSearch](https://github.com/algolia/docsearch/)._
11+
_Built using [Docusaurus](https://docusaurus.io/). Search powered by [Algolia DocSearch](https://github.com/algolia/docsearch/)._

docs/linux/awk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: awk
3+
title: awk
4+
---
5+
6+
awk notes.

docs/linux/browser.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,23 @@ title: Browser
2121
sudo update-alternatives --config x-www-browser
2222
```
2323

24-
- ### `about:config` settings
25-
26-
- `browser.bookmarks.openInTabClosesMenu` - true -> false
27-
- `browser.bookmarks.showMobileBookmarks` - true -> false
28-
- `browser.tabs.loadBookmarksInTabs` - false -> true
29-
- `browser.bookmarks.autoExportHTML` - false -> true
30-
- `browser.tabs.tabMinWidth` - 76 -> 100
31-
- `browser.tabs.closeTabByDblclick` - false -> true
32-
- `browser.tabs.closeWindowWithLastTab` - true -> false
33-
- `browser.privatebrowsing.autostart` - false -> true
34-
- `geo.enabled` - true -> false
35-
- `extensions.pocket.enabled` - true -> false
36-
37-
- Other interesting settings:
38-
- `browser.urlbar.openintab`
39-
40-
## Useful shortcuts
41-
42-
Shortcuts:
43-
https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly
24+
### `about:config` settings
25+
26+
- `browser.bookmarks.openInTabClosesMenu` - true -> false
27+
- `browser.bookmarks.showMobileBookmarks` - true -> false
28+
- `browser.tabs.loadBookmarksInTabs` - false -> true
29+
- `browser.bookmarks.autoExportHTML` - false -> true
30+
- `browser.tabs.tabMinWidth` - 76 -> 100
31+
- `browser.tabs.closeTabByDblclick` - false -> true
32+
- `browser.tabs.closeWindowWithLastTab` - true -> false
33+
- `browser.privatebrowsing.autostart` - false -> true
34+
- `geo.enabled` - true -> false
35+
- `extensions.pocket.enabled` - true -> false
36+
- `browser.urlbar.openintab`
37+
38+
### Useful shortcuts
39+
40+
[Firefox keyboard shortcuts](https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly)
4441

4542
- `Home` - move to the top of the page. I recommend using Vimium.
4643
- `<C-l>` - highlight the url bar.

docs/linux/emacs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ id: emacs
33
title: Emacs
44
---
55

6-
## Emacs
76
Emacs notes.

docs/linux/git.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: git
77

88
- `git log --oneline` - displays single commit information per line.
99
- `git rev-list HEAD --count` - total number of commits.
10-
- `git shortlog` - summarize 'git log' output.
10+
- `git shortlog` - summarize `git log` output.
1111
- `git commit --amend -m "New commit message"` - edit the last commit message.
1212

1313
## Miscellaneous
@@ -22,25 +22,44 @@ title: git
2222

2323
- Get a list of the deleted files in git history
2424

25-
`git log --diff-filter=D --summary | grep delete` - without commit hashes.
25+
```
26+
## without commit hashes
27+
git log --diff-filter=D --summary | grep delete
2628
27-
`git log --diff-filter=D --summary | grep -E 'delete|^commit\s+\S+'` - with commit hashes.
29+
## with commit hashes
30+
git log --diff-filter=D --summary | grep -E 'delete|^commit\s+\S+'
31+
```
2832

2933
- Amend older or multiple commit messages
3034

31-
- `git rebase -i HEAD~n` - display a list of the last n commits in the default text editor.
35+
- Display a list of the last n commits in the default text editor
36+
37+
```
38+
git rebase -i HEAD~n
39+
```
40+
3241
- Replace `pick` with `reword` before each commit message you want to change, save and close the commit list file.
3342
- In each resulting commit file, type the new commit message, save the file, and close it.
34-
- `git push --force` - force-push the amended commits.
43+
- Push the amended commits.
44+
45+
```
46+
git push --force
47+
```
3548
3649
- Amend the very first commit message [[\*](https://stackoverflow.com/a/14630424)]
3750
38-
- `git rebase -i --root`
51+
```
52+
git rebase -i --root
53+
```
3954
4055
- Squash all previous commits into one [[\*](https://stackoverflow.com/a/23486788)]
4156
42-
`git reset $(git commit-tree HEAD^{tree} -m "A new start")`
57+
```
58+
git reset $(git commit-tree HEAD^{tree} -m "A new start")
59+
```
4360
4461
- Print a leaderboard of authors based on number of commits in a git repo
4562
46-
`git log --format='%an' | sort | uniq -c | sort -nr`
63+
```
64+
git log --format='%an' | sort | uniq -c | sort -nr
65+
```
File renamed without changes.

docs/linux/hacks.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/linux/linux.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,61 @@ slug: /
66

77
## Some useful commands
88

9-
- Free memory (2.2G/7.6G)<br />
9+
- Free memory (2.2G/7.6G)
1010

1111
```
1212
free -h | awk '/^Mem:/ {print $3 "/" $2}'
1313
```
1414

15-
- Top 10 most memory intensive processes<br />
15+
- Top 10 most memory intensive processes
1616

1717
```
1818
ps axch -o cmd:15,%mem --sort=-%mem | head
1919
```
2020

21-
- Top 10 most CPU intensive processes<br />
21+
- Top 10 most CPU intensive processes
2222

2323
```
2424
ps axch -o cmd:15,%cpu --sort=-%cpu | head
2525
```
2626

27-
- Does your terminal emulator support _italics_?<br />
27+
- Does your terminal emulator support _italics_?
2828

2929
```
3030
echo -e "\e[3m foo \e[23m"
3131
```
3232

33-
- `dd` command usage to burn an iso to a flash drive<br />
33+
- `dd` command usage to burn an iso to a flash drive
3434

3535
```
3636
dd if=Downloads/archlinux-x86_64.iso of=/dev/sdb status=progress
3737
```
3838

39-
- Display the SSID of connected network<br />
39+
- Display the SSID of connected network
4040

4141
```
4242
nmcli -t -f active,ssid dev wifi | egrep '^yes' | cut -d\' -f2
4343
```
4444

45-
- Colormap in terminal<br />
45+
- Colormap in terminal
4646

4747
```
4848
msgcat --color=test
4949
```
5050

51-
- Set a random wallpaper from r/earthporn<br />
51+
- Set a random wallpaper from r/earthporn
5252

5353
```
5454
wget -O - -q reddit.com/r/earthporn.json | jq '.data.children[] |.data.url' | head -1 | xargs feh --bg-fill
5555
```
5656

57-
- Browse memes from r/memes<br />
57+
- Browse memes from r/memes
5858

5959
```
6060
wget -O - -q reddit.com/r/memes.json | jq '.data.children[] |.data.url' | xargs feh
6161
```
6262

63-
- Runs `command1` 1 out of 10 times<br />
63+
- Runs `command1` 1 out of 10 times
6464

6565
```
6666
[ $[$RANDOM % 10] = 0 ] && command1 || command2

docs/linux/sed.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: sed
3+
title: sed
4+
---
5+
6+
sed notes.

docs/linux/setting-up.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,31 @@ id: setting-up
33
title: Setting up a new machine
44
---
55

6-
## Some things I like to do when setting up a new Linux machine.
6+
Some things I like to do when setting up a new Linux machine.
77

88
### Map `CAPSLOCK` to `CTRL` and vice versa.
99

10-
- On Debian,
10+
- On Debian ([EmacsWiki](https://www.emacswiki.org/emacs/MovingTheCtrlKey), [WikiWikiWeb](http://wiki.c2.com/?RemapCapsLock)):
1111

1212
- `vim /etc/default/keyboard`
1313
- Change the line that reads `XKBOPTIONS=""` to `XKBOPTIONS="ctrl:swapcaps"`
1414
- `$ sudo dpkg-reconfigure -phigh console-setup`
1515

16-
- EmacsWiki: https://www.emacswiki.org/emacs/MovingTheCtrlKey
17-
- WikiWikiWeb: http://wiki.c2.com/?RemapCapsLock
18-
1916
### Install dotfiles
2017

21-
Pull up my [dotfiles](https://github.com/rsapkf/dotfiles/) and run the install script
22-
23-
### Install necessary programs
24-
25-
- Programming environments: Python (Latest), Rust, Haskell, Java
26-
- Text editors: Vim/Neovim, Emacs(Orgmode, Evil), VSCode, Gedit
27-
- IDEs: Pycharm, IntellijIDEA, Android Studio
28-
- Web browsers: Firefox Developer Edition, Brave, Chromium, qutebrowser, surf, w3m, lynx
29-
- Terminal emulators: Alacritty, rxvt-unicode, st
30-
- Window managers: i3, dwm, dwmstatus
31-
- Misc: sent, zsh, ranger, mutt, Irssi, dmenu, broot, nitrogen, fzf
32-
- Fonts: Mononoki Nerd Font, Source Code Pro
33-
- Themes
18+
Pull up my [dotfiles](https://github.com/rsapkf/dotfiles/) and run the install script.
3419

35-
- vim-airline, powerline tmux
36-
- Dracula on zsh, mutt, qutebrowser, i3, dmenu, rxvt-unicode (.Xresources), Alacritty, VSCode, Sublime Text, Emacs, Jetbrains IDEs, Firefox, Chromium, Neovim, Gedit
20+
### Install programs
3721

22+
- **Programming environments**: Python (Latest), Rust, Haskell, Java
23+
- **Text editors**: Vim/Neovim, Emacs (Orgmode, Evil), VSCode, Gedit
24+
- **IDEs**: Pycharm, IntellijIDEA, Android Studio
25+
- **Web browsers**: Firefox Developer Edition, Brave, Chromium, qutebrowser, surf, w3m, lynx
26+
- **Terminal emulators**: Alacritty, rxvt-unicode, st
27+
- **Window managers**: i3, dwm, dwmstatus, slstatus
28+
- **Misc.**: sent, zsh, ranger, mutt, Irssi, dmenu, broot, nitrogen, fzf
29+
- **Fonts**: Mononoki Nerd Font, Source Code Pro
30+
- **Themes**: Dracula
3831
- Enable _Italics_ in Vim and tmux ([add terminfo](https://github.com/tmux/tmux/blob/2.1/FAQ#L355-L383) if needed).
3932
- Configure [Mutt](https://github.com/muttmua/muttt)/[NeoMutt](https://github.com/neomutt/neomutt).
4033
- Enable 'Single click to open files' in the default graphical file manager.

docs/linux/text-editors-and-ides.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ title: Text editors and IDEs
77

88
## Sublime Text
99

10-
## Gedit
10+
To enable Vim mode, go to user settings (Settings > Preferences) and remove `Vintage` from `ignored_packages` array.
11+
12+
## gedit
1113

1214
- `<C-:>` - open emoji window.
1315
- `F9` - toggle side panel.
14-
- Install Dracula Theme (https://draculatheme.com/gedit)
15-
16+
- Install [Dracula theme](https://draculatheme.com/gedit):
1617
- Download the raw file:
17-
18-
`$ wget https://raw.githubusercontent.com/dracula/gedit/master/dracula.xml`
19-
18+
```
19+
$ wget https://raw.githubusercontent.com/dracula/gedit/master/dracula.xml
20+
```
2021
- Move the file to gedit styles folder:
21-
22-
`$ mv dracula.xml $HOME/.local/share/gedit/styles/`
23-
22+
```
23+
$ mv dracula.xml $HOME/.local/share/gedit/styles/
24+
```
2425
- Activate in gedit's preferences dialog.
2526
2627
## Pycharm

0 commit comments

Comments
 (0)