-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick
committed
Mar 10, 2024
0 parents
commit 0c9669f
Showing
243 changed files
with
9,719 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.120.4 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install Node.js dependencies | ||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
- name: Build with Hugo | ||
env: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
run: | | ||
hugo \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "themes/hugo-theme-monochrome"] | ||
path = themes/hugo-theme-monochrome | ||
url = https://github.com/kaiiiz/hugo-theme-monochrome.git |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Blog](https://ptrck0.github.io/blog/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": [ | ||
"../themes/hugo-theme-monochrome/assets/*" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
+++ | ||
title = 'Favorite Neovim plugins' | ||
date = 2024-03-10T15:00:00+01:00 | ||
draft = false | ||
+++ | ||
|
||
Some of my favorite Neovim plugins: | ||
|
||
## Package manager | ||
|
||
- [lazy.nvim](https://github.com/folke/lazy.nvim) | ||
|
||
## [LSP and snippets](https://github.com/neovim/nvim-lspconfig) | ||
|
||
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip) | ||
- [cmp-nvim-lsp](https://github.com/sar/cmp-lsp.nvim) | ||
- [cmp_luasnip](https://github.com/saadparwaiz1/cmp_luasnip) | ||
- [friendly-snippets](https://github.com/rafamadriz/friendly-snippets) | ||
- [mason-lspconfig.nvim](https://github.com/williamboman/mason-lspconfig.nvim) | ||
- [mason.nvim](https://github.com/williamboman/mason.nvim) | ||
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | ||
- [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) | ||
|
||
## Syntax highlighting | ||
|
||
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | ||
|
||
## Navigation | ||
|
||
- [aerial.nvim](https://github.com/stevearc/aerial.nvim) | ||
- [harpoon](https://github.com/ThePrimeagen/harpoon) | ||
- [leap.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | ||
- [nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua) | ||
- [nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects) | ||
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | ||
- [trouble.nvim](https://github.com/folke/trouble.nvim) | ||
|
||
## Git | ||
|
||
- [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) | ||
- [vim-fugitive](https://github.com/tpope/vim-fugitive) | ||
|
||
## Text manipulation | ||
|
||
- [nvim-autopairs](https://github.com/windwp/nvim-autopairs) | ||
- [undotree](https://github.com/mbbill/undotree) | ||
- [vim-commentary](https://github.com/tpope/vim-commentary) | ||
- [vim-surround](https://github.com/tpope/vim-surround) | ||
- [vim-unimpaired](https://github.com/tpope/vim-unimpaired) | ||
|
||
## UI | ||
|
||
- [catppuccin](https://github.com/catppuccin/nvim) | ||
- [diffview.nvim](https://github.com/sindrets/diffview.nvim) | ||
- [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | ||
- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) | ||
- [markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim) | ||
- [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) | ||
- [oil.nvim](https://github.com/stevearc/oil.nvim) | ||
- [todo-comments.nvim](https://github.com/folke/todo-comments.nvim) | ||
- [which-key.nvim](https://github.com/folke/which-key.nvim) | ||
- [zen-mode.nvim](https://github.com/folke/zen-mode.nvim) | ||
|
||
## Linting and quality tools | ||
|
||
- [none-ls.nvim](https://github.com/nvimtools/none-ls.nvim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
+++ | ||
title = 'Set up a second HDD like the default one in Proxmox' | ||
date = 2023-10-14T20:00:00+01:00 | ||
draft = false | ||
+++ | ||
|
||
This tutorial shows how to set up an extra harddisk in Promox, and split it in storage and a thinlvm pool. | ||
|
||
## Format the disk, create a physical volume and volume group | ||
|
||
Find the new drive with fdisk: | ||
|
||
```bash | ||
fdisk -l | ||
``` | ||
|
||
Create a partition on the new drive: | ||
|
||
```bash | ||
fdisk /dev/sdb | ||
``` | ||
|
||
Validate the partition is there: | ||
|
||
```bash | ||
fdisk -l | ||
``` | ||
|
||
Create a physical volume on the new partition: | ||
|
||
```bash | ||
pvcreate /dev/sdb1 | ||
``` | ||
|
||
Create a new volume group: | ||
|
||
```bash | ||
vgcreate hdd2 /dev/sdb1 | ||
``` | ||
|
||
Check if the volume group has been created: | ||
|
||
```bash | ||
vgdisplay | ||
``` | ||
|
||
## Create a storage directory (backups, ISO images) | ||
|
||
Create a new logical volume for the backup in the new group: | ||
|
||
```bash | ||
lvcreate -n hdd2_data -L 300G hdd2 | ||
``` | ||
|
||
Create a file system on the data lv: | ||
|
||
```bash | ||
mkfs.ext4 /dev/mapper/hdd2_data | ||
``` | ||
|
||
Mount the data directory: | ||
|
||
```bash | ||
mount /dev/mapper/hdd2_data /mnt/hdd2_data | ||
``` | ||
|
||
To automount the drive, find the UUID: | ||
|
||
```bash | ||
blkid /dev/mapper/hdd2_data | ||
``` | ||
|
||
Append the following in /etc/fstab: | ||
|
||
```bash | ||
UUID=<UUID> /mnt/hdd2_data ext4 defaults 0 2 | ||
``` | ||
|
||
You can now add the drive via the UI: Data Center->Storage->Add->Directory. | ||
|
||
As the directory fill in the mount point. | ||
|
||
## Create a lvm-thin pool (running VM's) | ||
|
||
Create a new logical volume, for example with the remaining disk space | ||
|
||
```bash | ||
lvcreate -l100%FREE -n hdd2_thin-lvm hdd2 | ||
``` | ||
|
||
*sometimes 100% does not work, in that case 99% probably will. | ||
|
||
Convert the logical volume into a thin-lvm: | ||
|
||
```bash | ||
lvconvert --type thin-pool hdd2_lvmthin | ||
``` | ||
|
||
You can add more metadata storage if required, the default might be only a few megabytes: | ||
|
||
```bash | ||
lvextend --poolmetadatasize +1G hdd2_lvmthin | ||
``` | ||
|
||
You can now add the drive via the UI: Data Center->Storage->Add->LVM-Thin. | ||
|
||
## More reading | ||
|
||
- [How to Add New Disks Using LVM to an Existing Linux System](https://www.tecmint.com/add-new-disks-using-lvm-to-linux/) | ||
- [LFCS: How to Manage and Create LVM Using vgcreate, lvcreate and lvextend Commands](https://www.tecmint.com/manage-and-create-lvm-parition-using-vgcreate-lvcreate-and-lvextend/) | ||
- [Adding disk as LVM to proxmox](https://forum.proxmox.com/threads/adding-a-disk-and-set-it-as-lvm-thin-help-needed-please.111724/) |
Oops, something went wrong.