Procházet zdrojové kódy

Update config files

Håvard O. Nordstrand před 5 roky
rodič
revize
190c7aeb97

+ 1 - 1
config/linux-server/applications.md

@@ -263,7 +263,7 @@ TFTP_OPTIONS="--create --secure"
   - Using a raw key:
     - Generate the key: `dd if=/dev/random of=/root/keys/zfs/<tank> bs=32 count=1`
     - Create the pool: `zpool create -O encryption=aes-128-gcm -O keyformat=raw -O keylocation=file:///root/keys/zfs/<tank> ...`
-    - Automatically unlock at boot time: Add and enable ([zfs-load-keys.service](https://github.com/HON95/wiki/blob/master/config/linux-server/res/zfs/zfs-load-keys.service)).
+    - Automatically unlock at boot time: Add and enable [zfs-load-keys.service]({{ site.github.repository_url }}/blob/master/config/linux-server/files/zfs/zfs-load-keys.service).
   - Reboot and test.
   - Check the key status with `zfs get keystatus`.
 - Send and receive snapshots:

+ 0 - 0
config/linux-server/res/zfs/zfs-load-keys.service → config/linux-server/files/zfs/zfs-load-keys.service


+ 12 - 53
config/pc/common-applications.md

@@ -10,17 +10,9 @@ breadcrumbs:
 ## Git
 
 ### Config
+Location: `~/.gitconfig`
 
-```ini
-[user]
-	name = <full_name>
-	email = <email_addr>
-[commit]
-	gpgsign = false
-[core]
-	autocrlf = input
-	eol = lf
-```
+Example: [.gitconfig]({{ site.github.repository_url }}/blob/master/config/pc/files/gitconfig).
 
 ## SSH
 
@@ -29,28 +21,18 @@ breadcrumbs:
 - New key (RSA): `ssh-keygen -t rsa -b 4096`
 
 ### Config
+Location: `~/.ssh/config`
 
-```text
-# File: ~/.ssh/config
-
-# Use special user and key
-host github.com
-    User git
-    IdentityFile ~/.ssh/id_rsa_artorias
-```
+Example: [config]({{ site.github.repository_url }}/blob/master/config/pc/files/ssh_config).
 
 ## Vim
 
 ### Config
+Location:
+- Global: `/etc/vim/vimrc`
+- User: `~/.vimrc`
 
-```text
-" File: ~/.vimrc
-
-" Global: /etc/vim/vimrc
-
-" Better YAML indentation
-autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
-```
+Example: [vimrc]({{ site.github.repository_url }}/blob/master/config/pc/files/vimrc).
 
 ## VS Code
 
@@ -59,33 +41,10 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
 - HTML CSS Support (ecmel.vscode-html-css)
 
 ### Config
+Location:
+- Linux: `~/.config/Code/user/settings.json`
+- Windows: `%APPDATA%\Code\User\settings.json`
 
-```javascript
-// Linux file: ~/.config/Code/user/settings.json
-// Windows file: %APPDATA%\Code\User\settings.json
-
-{
-"files.encoding": "utf8",
-"files.eol": "\n",
-// Hide open editors Explorer section
-"explorer.openEditors.visible": 0,
-"explorer.confirmDragAndDrop": false,
-"explorer.confirmDelete": false,
-// Don't jump to file in Explorer when tabbing to it
-"explorer.autoReveal": false,
-// Hide these in Explorer
-"files.exclude": {
-  "**/__pycache__/": true,
-  "**/*.o": true,
-  "**/*.pyc": true
-},
-// Don't show quick suggestion while typing
-"editor.quickSuggestions": false,
-"editor.autoClosingBrackets": "never",
-"editor.autoClosingQuotes": "never",
-"editor.autoSurround": "never",
-"html.autoClosingTags": false,
-}
-```
+Example: [settings.json]({{ site.github.repository_url }}/blob/master/config/pc/files/vscode_settings.json).
 
 {% include footer.md %}

+ 8 - 0
config/pc/files/gitconfig

@@ -0,0 +1,8 @@
+[user]
+	name = <full_name>
+	email = <email_addr>
+[commit]
+	gpgsign = false
+[core]
+	autocrlf = input
+	eol = lf

+ 4 - 0
config/pc/files/ssh_config

@@ -0,0 +1,4 @@
+# Use special user and key for host
+host github.com
+    User git
+    IdentityFile ~/.ssh/id_rsa_artorias

+ 2 - 0
config/pc/files/vimrc

@@ -0,0 +1,2 @@
+" Better YAML indentation
+autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

+ 20 - 0
config/pc/files/vscode_settings.json

@@ -0,0 +1,20 @@
+{
+    "files.encoding": "utf8",
+    "files.eol": "\n",
+
+    "explorer.openEditors.visible": 0,
+    "explorer.confirmDragAndDrop": false,
+    "explorer.confirmDelete": false,
+    "explorer.autoReveal": false,
+    "files.exclude": {
+      "**/__pycache__/": true,
+      "**/*.o": true,
+      "**/*.pyc": true
+    },
+
+    "editor.quickSuggestions": false,
+    "editor.autoClosingBrackets": "never",
+    "editor.autoClosingQuotes": "never",
+    "editor.autoSurround": "never",
+    "html.autoClosingTags": false,
+}