Instalando Docker em um WSL 2 com Ubuntu 22.04
Before start the installation process, make sure you meet the following prerequisites:
- A Windows 10 operating system with WSL 2 support.
- WSL 2 enabled.
- Ubuntu 22.04 installed on WSL 2.
import React, { createContext, useContext, useState, useEffect } from "react" | |
type Props = { | |
children: React.ReactNode | |
} | |
type Context = { | |
count: number | |
increment: () => void | |
} |
import java.util.function.UnaryOperator | |
import javax.sql.DataSource | |
import org.flywaydb.core.Flyway | |
import org.flywaydb.core.api.configuration.FluentConfiguration | |
import org.flywaydb.core.api.output.MigrateResult | |
import zio.* | |
import zio.test.TestAspect | |
object FlywayTestAspect: |
Installation steps for running Arch Linux with root on ZFS using UEFI and systemd-boot
. All steps are run as root
.
Requires an Arch Linux image with ZFS built-in (see References).
If using KVM, add a Serial number for each virtual disk and reboot the VM. The disks should now be available in /dev/disk/by-id
as virtio-<Serial>
.
Lesson 1 SUMMARY | |
1. The cursor is moved using either the arrow keys or the hjkl keys. | |
h (left) j (down) k (up) l (right) | |
2. To start Vim from the shell prompt type: vim FILENAME <ENTER> | |
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes. | |
OR type: <ESC> :wq <ENTER> to save the changes. |
import java.sql.Connection | |
import javax.sql.DataSource | |
import org.postgresql.ds.PGSimpleDataSource | |
import org.testcontainers.containers.PostgreSQLContainer as OriginalPostgreSQLContainer | |
import zio.* | |
class PostgreSQLContainer(dockerImageName: String) | |
extends OriginalPostgreSQLContainer[PostgreSQLContainer](dockerImageName) |
In general, you will learn some markdown tricks combined with standard HTML tags. In more details what you will learn:
I just recently switched to an ISP that uses CGNAT. I needed a way to access my Plex server remotely now that I didn't have a public IPv4 address. Thankfully for most of my other web hosted projects, I was able to use Cloudflare tunnels. But it's ambigous if Cloudflare is okay with you using Tunnels for Plex traffic.
Instead people suggested buying a VPS and hosting a VPN (like Wireguard) to route your traffic through. I couldn't find a complete guide to do this. I struggled for a couple days with trial and error until I finally found a configuration that worked. I wanted to document this for anyone else in the same situation (and future me).
#!/bin/bash | |
set -e | |
export CONFIG_MODULE_SIG=n | |
export CONFIG_MODULE_SIG_ALL=n | |
# For current kernel | |
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}') | |
temp_dir=$(mktemp -d) | |
echo "Installing FacetimeHD camera for $KERNELRELEASE" |
Setting up hybrid graphics linux is generally painful with the current state of Nvidia support. If you can avoid getting an Nvidia GPU based laptop if you plan to use Linux. I use a distro called Archcraft and had some issues specific to my setup (distro/hardware)
The hardware I am installing this on is a TongFang GM6TG7W (aka Wootbook Extreme IV). It has an Intel iGPU and an Nvidia 3070 Max-Q dGPU.