aboutsummaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorBradley Taunt <brad@serpapi.com>2024-06-14 09:24:07 -0400
committerBradley Taunt <brad@serpapi.com>2024-06-14 09:24:07 -0400
commit59b3b077758942f4b45a07fa52e856df8edeea3a (patch)
treec3ebe1a1265556569c02c4de563b728c1a564773 /_posts
parent26c7db12364e8eba08e2f8e85bb534ed735a0be8 (diff)
Further minimal improvements, reducing code base
Diffstat (limited to '_posts')
-rw-r--r--_posts/2022-03-14-eero.md60
-rw-r--r--_posts/2022-04-18-safari-default-dark-mode.md22
-rw-r--r--_posts/2024-02-23-Please_Make_Your_Table_Headings_Sticky.md2
3 files changed, 42 insertions, 42 deletions
diff --git a/_posts/2022-03-14-eero.md b/_posts/2022-03-14-eero.md
index 139022b..367bc07 100644
--- a/_posts/2022-03-14-eero.md
+++ b/_posts/2022-03-14-eero.md
@@ -26,18 +26,18 @@ Before we get into the step-by-step details, here are the required items you'll
Before you place your microSD card into the Pi and boot it up, connect it to your local computer (via USB adapter) - we will need to add some files first. Once loaded into the `boot` folder, add an empty file simply called `ssh` (no extensions). Next open your preferred text editor and enter the following code, editing the content to match your own country code and home network settings:
-
- country=US
- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
- update_config=1
-
- network={
- ssid="WIFI_SSID"
- scan_ssid=1
- psk="WIFI_PASSWORD"
- key_mgmt=WPA-PSK
- }
-
+```sh
+country=US
+ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
+update_config=1
+
+network={
+ ssid="WIFI_SSID"
+ scan_ssid=1
+ psk="WIFI_PASSWORD"
+ key_mgmt=WPA-PSK
+}
+```
Save this file as `wpa_supplicant.conf` and add it to the `boot` directory as well.
@@ -47,9 +47,9 @@ You can now safely eject the microSD card and place it into your Raspberry Pi.
Connect power to your Pi and give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer's terminal and enter the following command:
-
- ssh pi@raspberrypi.local
-
+```sh
+ssh pi@raspberrypi.local
+```
If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password. The default password will be: `raspberry`
@@ -57,21 +57,21 @@ If everything was set up properly you will be asked to trust this device. Next,
Once you are connected directly to the Pi, it's best to check for updates:
-
- sudo apt update
-
+```sh
+sudo apt update
+```
...and if updates are in fact available, install them via:
-
- sudo apt upgrade
-
+```sh
+sudo apt upgrade
+```
This next step is optional but I highly recommend it for security purposes. You should change both the hostname and password of this soon-to-be Pi-hole server. To do this simply run:
-
- sudo raspi-config
-
+```sh
+sudo raspi-config
+```
1. Edit Hostname: navigate to `System Settings` --> `Hostname`
2. Edit Password: navigate to `System Settings` --> `Password`
@@ -82,9 +82,9 @@ Once complete, reboot the Pi. Just remember that when you try to reconnect to th
This is the easy part:
-
- curl -sSL https://install.pi-hole.net | bash
-
+```sh
+curl -sSL https://install.pi-hole.net | bash
+```
Pi-hole runs a full install script that walks you through step-by-step on setting things up. It's best to use the suggested defaults during the install - everything is pretty simple.
@@ -92,9 +92,9 @@ Near the end of the setup you'll be show the newly created static IP for this Pi
Once it's finished, shutdown the Pi safely by running:
-
- sudo shutdown now
-
+```sh
+sudo shutdown now
+```
## Hardware Setup
diff --git a/_posts/2022-04-18-safari-default-dark-mode.md b/_posts/2022-04-18-safari-default-dark-mode.md
index 91095b4..b5c2401 100644
--- a/_posts/2022-04-18-safari-default-dark-mode.md
+++ b/_posts/2022-04-18-safari-default-dark-mode.md
@@ -15,9 +15,9 @@ A common practice is to include a `@media` query via CSS to target styling chang
Adding the following meta tag inside your document's `head` element, you can enable dark mode instantly with zero configuration:
-
- <meta name="color-scheme" content="dark light" />
-
+```html
+<meta name="color-scheme" content="dark light" />
+```
There are minor caveats:
@@ -42,15 +42,15 @@ Even though by adding the color-scheme meta tag we get ourselves good dark mode
Luckily for us there is a simple solution using minimal amounts of CSS[^1]:
-
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
+```scss
+@supports (color-scheme: dark light) {
+ @media screen and (prefers-color-scheme: dark) {
+ a:link {color: #9e9eff;}
+ a:visited {color: #d0adf0;}
+ a:active {color: red;}
}
-
+}
+```
We are brute-forcing Safari to implement the same color HEX codes used by both Firefox and Chrome browsers. How a horrible accessibility oversight could happen within a company as large as Apple is astounding...
diff --git a/_posts/2024-02-23-Please_Make_Your_Table_Headings_Sticky.md b/_posts/2024-02-23-Please_Make_Your_Table_Headings_Sticky.md
index 6d71cb2..3a9e611 100644
--- a/_posts/2024-02-23-Please_Make_Your_Table_Headings_Sticky.md
+++ b/_posts/2024-02-23-Please_Make_Your_Table_Headings_Sticky.md
@@ -23,7 +23,7 @@ Your browser does not support the video tag.
Pretty awesome, right? It might look like magic but it's actually very easy to implement. You only need to add 2 CSS properties on your `thead`:
-```css
+```scss
position: sticky;
top: 0;
```