Linux Relocate

# .bashrc
[gist file](https://gist.github.com/cryptogun/5c50dfa72c9a3c750052aa339e961484)


# Migrate system setting
```bash
less /etc/fstab
sudo cat /etc/crontab
```

# Check manually installed services
```bash
systemctl list-unit-files
```
# Easy graphical firewall configuration
```bash
sudo apt install gufw
```
# Automatic security updates
```bash
sudo apt update -y && sudo apt install unattended-upgrades apt-listchanges -y
sudo dpkg-reconfigure  --priority=low unattended-upgrades
systemctl status unattended-upgrades
```

# KeePass setting
[setting](http://cryptogun.blogspot.com/2017/07/my-keepass-setting.html)

# Privacy
chrome account 
firefox history
# Sublime

## List all packages
Preferences -> Package Control -> List Packages
## Install a package
Preferences -> Package Control -> Install Package. Type in package name to install.

## Useful packages
### Coding
[A File Icon](https://github.com/ihodev/a-file-icon): File icons in sidebar.
[BracketHighlighter](https://github.com/facelessuser/BracketHighlighter): Highlight `{}`s.
[MarkdownEditing](https://github.com/SublimeText-Markdown/MarkdownEditing): Dynamic Markdown highlight. 
[Markdown Preview](https://github.com/revolunet/sublimetext-markdown-preview):  Convert to html locally and open in browser. Usage: `Ctrl+Shift+P > Markdown Preview: Preview in Browser`
[Sublimerge 3](http://www.sublimerge.com/sm3/):  Colorful diff tool.
[GitGutter](https://github.com/jisaacks/GitGutter): Visulize git `add/delete/modify` with `"+" "-"` etc.<br>
### Python
```bash
pip install pyflakes
pip install pep8
```
[SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3): A platform for code linting / error warning. 
Setting: Check `Tools > SublimeLinter > Linter Mode > Load/save`
[SublimeLinter-pyflakes](https://github.com/SublimeLinter/SublimeLinter-pyflakes):  Linter plugin for Python code. 
[SublimeLinter-pep8](https://github.com/SublimeLinter/SublimeLinter-pep8): Following the Python PEP8 coding style. 
### Django
[Djaneiro](https://github.com/squ1b3r/Djaneiro):  Django template hightlight and auto-completion.<br>
### UTF-8
[ConvertToUTF8](https://github.com/seanliang/ConvertToUTF8): Editing and saving files encoded in GBK, BIG5, EUC-KR, EUC-JP, Shift_JIS.
[Codecs33](https://github.com/seanliang/Codecs33):  CJK text encode/decode.
[InputHelper](https://github.com/xgenvn/InputHelper): Input non-keyboard characters like Chinese (if you cannot input directly).

### Evaluating now
[randomeverything](https://github.com/kimpettersen/random-sublime-text-plugin)

[Style​Token](https://github.com/vcharnahrebel/style-token) Painting brush for keyword tracking / highlighting.

[Terminal](https://github.com/wbond/sublime_terminal) Shortcut opening new terminal.

[Console Exec](https://github.com/joeyespo/sublimetext-console-exec) Execute/build in new terminal. For Linux/OSX I recommand this [TerminalView](https://github.com/Wramberg/TerminalView) Emulator.

[Git](https://github.com/kemayo/sublime-text-git) git commands. 

[Sublime​Code​Intel](https://github.com/SublimeCodeIntel/SublimeCodeIntel) code navi and auto completion.

[Session Manager](https://github.com/Zeeker/sublime-SessionManager) or 

[SimpleSession](https://github.com/woodruffw/SimpleSession) Time machine for saving current window. Can restore unsaved snippets but not unsaved file changes.

```
0_package_control_loader.sublime-package
A File Icon.sublime-package
BracketHighlighter.sublime-package
ChineseLocalizations.sublime-package
Console Exec.sublime-package
Djaneiro.sublime-package
Git.sublime-package
GitGutter.sublime-package
LaTeXing.sublime-package
MarkdownEditing.sublime-package
nginx.sublime-package
Package Control.sublime-package
Protobuf Syntax Hightlighting.sublime-package
Session Manager.sublime-package
Smali.sublime-package
StyleToken.sublime-package
SublimeLinter-pep8.sublime-package
SublimeLinter-pyflakes.sublime-package
SublimeLinter.sublime-package
Sublimerge 3.sublime-package


backrefs
ConvertToUTF8
jsonschema
markupsafe
mdpopups
oauthlib
pygments
pymdownx
python-jinja2
python-markdown
pyyaml
Random Everything
requests
requests-oauthlib
SublimeCodeIntel
Sublimerge 3
tabulate
Terminal
zzz A File Icon zzz
ZZZZZZZZ-Localization
```

### Official ranking
packagecontrol offical https://packagecontrol.io/browse/popular

-----------------------
## Un-wanted syntex highlighting
View -> Syntax -> Open all with current extension as... ->[your syntax choice]
## Sublime settings
```js
// Preferences -> Settings
{
 "bold_folder_labels": true,
 "caret_extra_width": 1,
 "caret_style": "solid",
 "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
 "draw_white_space": "all",
 "font_face": "", // "", Consolas, PragmataPro, InputMono (input.fontbureau.com)
 "font_size": 12,
 "highlight_modified_tabs": true,
 "ignored_packages":
 [
  "Sublimerge Pro",
  "Vintage"
 ],
 "rulers":
 [
  // python PEP8
  79
 ],
 "tab_size": 4,
 //// On Windows new Sublime >3126:
 // "theme": "Adaptive.sublime-theme",

 "translate_tabs_to_spaces": true,
 "word_wrap": true,

 "update_check": false
 // Only works if you purchased.
}
```

```js
// Preferences -> Key Bindings -> User
[
    {
        "keys": ["ctrl+shift+c"],
        "command": "cancel_build",
    },
]

```

评论

此博客中的热门博文

Windows下ShadowSocks客户端安装和配置 顺带KCP

How to Install KeePass on M1 Mac

How User Friendly is a MacOS