Skip to content

Commit e036422

Browse files
author
BinaryPatrick
committed
add alert blockquote styleing
1 parent f82914d commit e036422

17 files changed

+35
-17
lines changed

astro.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig, envField, fontProviders } from "astro/config";
2+
import { remarkAlert } from "remark-github-blockquote-alert";
23
import tailwindcss from "@tailwindcss/vite";
34
import sitemap from "@astrojs/sitemap";
45
import remarkToc from "remark-toc";
@@ -20,7 +21,7 @@ export default defineConfig({
2021
}),
2122
],
2223
markdown: {
23-
remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
24+
remarkPlugins: [remarkAlert, remarkToc, [remarkCollapse, { test: "Table of contents" }]],
2425
shikiConfig: {
2526
// For more themes, visit https://shiki.style/themes
2627
themes: { light: "one-light", dark: "dark-plus" },

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dayjs": "^1.11.19",
2222
"lodash.kebabcase": "^4.1.1",
2323
"remark-collapse": "^0.1.2",
24+
"remark-github-blockquote-alert": "^2.0.1",
2425
"remark-toc": "^9.0.0",
2526
"satori": "^0.18.3",
2627
"sharp": "^0.34.5",

src/data/blog/2022/install-pihole-ha.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,8 @@ vrrp_instance pihole {
138138
| 18 | The other nodes IPs |
139139
| 23 | Node authentication. Keep in mind this is unencrypted, which is why we specify the other nodes by IP |
140140
| 32 | The script to run to verify DNS is live |
141-
141+
> [!WARNING]
142142
> Never set an IP reservation for the virtual IP, or set it as a static address for another device
143-
> {: .prompt-warning }
144143
145144
Also keep in mind, this is set up for unicast, but can be configured for multicast. I just like to be explicit. You can find more details about [keepalived configuration here](https://keepalived.readthedocs.io/en/latest/configuration_synopsis.html).
146145

src/data/blog/2022/lxc-plex-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Final provisioned LXC environment is as follows:
2626

2727
Mounting my media share from a storage device was easy enough, once I realized I had to make the container privileged. I configured `fstab` to automount the share when the environment started, and used a credential file stored in /root for security.
2828

29+
> [!TIP]
2930
> Privileged Container must be set to true to mount a network share
30-
> {: .prompt-tip }
3131
3232
Lets start with the credential file. It's a simple file that needs to live somewhere fstab can access. I used /root because `fstab` will run as root so I know it will have access.
3333

src/data/blog/2023/adding-figurine-to-login.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ I saw a very interesting video by [Alex Kretzschmar](https://www.youtube.com/wat
1212

1313
To do this quickly and use the hostname for the login message, you can use thise script, otherwise follow along below
1414

15+
> [!WARNING]
1516
> Don't just take my word for it. Always inspect the code that will be running on your machines, especially from an untrusted and unsigned source.
16-
> {: .prompt-warning }
1717
1818
```bash
1919
curl https://gist.githubusercontent.com/binarypatrick/2e33d8d3c79210dc74077627cb0deb9c/raw/ | sudo bash

src/data/blog/2023/back-up-rpi-live.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ To install it, follow the guide on the github page, but here is a simplified ver
2626

2727
## Scripts Install
2828

29+
> [!WARNING]
2930
> Don't just take my word for it. Always inspect the code that will be running on your machines, especially from an untrusted and unsigned source.
30-
> {: .prompt-warning }
3131
3232
```bash
3333
git clone https://github.com/seamusdemora/RonR-RPi-image-utils.git ./image-utils
@@ -53,8 +53,8 @@ sudo image-backup --initial /mnt/backup/$(date +"%Y-%m-%d").img,,5000
5353

5454
The backup run time will depend on your device and how much data it needs to copy. It is surprisingly fast though. 15GB usually runs for 2+ minutes on a Raspberry Pi 4B.
5555

56+
> [!WARNING]
5657
> Backup can be pretty large, ~15GB depending on how much you have running on your Pi
57-
> {: .prompt-warning }
5858
5959
Once you have a completed backup, you can run an incremental backup by running `image-backup` and providing an existing backup to update.
6060

src/data/blog/2023/bitwarden-automated-backup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export BW_NOTIFICATION_EMAIL="<your_notification_email_address>"
7979

8080
The scripts we're going to run live a repo named [BitwardenBackup](https://github.com/BinaryPatrick/BitwardenBackup). Definitely review the code that will be running. The script needs to be put somewhere the Bitwarden user can read it, and it needs to be set as executable.
8181

82+
> [!WARNING]
8283
> Don't just take my word for it. Always inspect the code that will be running on your machines, especially from an untrusted and unsigned source.
83-
> {: .prompt-warning }
8484
8585
```bash
8686
REPO_BACKUP_SCRIPT=https://raw.githubusercontent.com/BinaryPatrick/BitwardenBackup/main/backup.sh

src/data/blog/2023/configuring-postfix-with-gmail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ smtp_use_tls = yes
3939

4040
Notice that instead of adding your gmail credentials directly, we're adding them to a file named `gmail_credentials`. Your credentials will depend on whether you use multi-factor authentication (MFA/2FA) or not. If you are now, then you can just put your credentials directly into this file, otherwise you'll need to create an app password. It is highly recommended to use multi-factor authentication whenever possible so I'll assume you are.
4141

42+
> [!TIP]
4243
> It is highly recommended to use multi-factor authentication whenever possible
43-
> {: .prompt-tip }
4444
4545
Go to your [Google account page](https://myaccount.google.com/) and select _Security_ from the side navigation. Then in the center, select _2-Step Verification_. After verifying it's really you, scroll to the bottom and find _App Passwords_. From this page you can generate a new app specific password. I often select custom from the drop down and give it a descriptive name, then select _Generate_.
4646

src/data/blog/2023/linux-on-dell-wyse-3040.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ This is pretty easy to do. In the BIOS, navigate to _Maintenance > Data Wipe_ an
2424

2525
Picking a disto is tricky here. My device only had a 16 GB eMMC drive, which is really 14.8 GB. Most distros require 16 actually GB. Debian does not though and installing a minimal version works well for this low power device. Luckily Debian 12 (Bookworm) just came out so I used that. I also used [Ventoy](https://www.ventoy.net/en/download.html), but you however you choose get it on a USB stick and in the device.
2626

27+
> [!TIP]
2728
> Debian 12 is a good pick with only 16 GB eMMC and 2 GB RAM
28-
> {: .prompt-tip }
2929
3030
![Debian 12 Install (Non-GUI)](../../../assets/images/2023/linux-on-dell-wyse-3040/debian-12-install.png)
3131

@@ -37,8 +37,8 @@ I leave the root password empty. This will assign the initial user account to th
3737

3838
Once Debian is installed, it may not boot up correctly. You may get an error saying `No bootable devices found`. Wyse devices require a `BOOTX64.EFI` file. To add this file, I loaded Debian Live and mounted the eMMC device. On my instance, the eMMC device has the label `mmcblk0p1`. Use the following to mount this device.
3939

40+
> [!WARNING]
4041
> Wyse devices require a `/boot/efi/EFI/BOOT/BOOTX64.EFI` file to boot to the eMMC
41-
> {: .prompt-warning }
4242
4343
```bash
4444
sudo mkdir /mnt/debian

0 commit comments

Comments
 (0)