This file contains hidden or 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
import { useEffect, useState } from "react"; | |
const CHARS = new Set(" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
function isAlphanumeric(char) { | |
return CHARS.has(char); | |
} |
This file contains hidden or 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
"use client"; | |
import React, { ReactNode } from "react"; | |
import { ErrorBoundary } from "react-error-boundary"; | |
export default function ErrorBoundaryFunctionalWrapper({ | |
children, | |
errorComponent, | |
}: { | |
children: ReactNode; |
This file contains hidden or 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
import "server-only"; | |
import ToDoItem from "../../components/todo/ToDoItem"; | |
import ToDoItemClient from "../../components/todo/ToDoItemClient"; | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
export default async function ToDoList() { | |
const url = "http://localhost:4000/todos"; | |
const res = await fetch(url,{ |
This file contains hidden or 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
services: | |
wg-easy: | |
environment: | |
- LANG=en | |
- WG_HOST=5.78.84.82 | |
- 'WG_POST_DOWN=iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' | |
- 'WG_POST_UP=iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' | |
image: ghcr.io/wg-easy/wg-easy | |
container_name: wg-easy | |
volumes: |
This file contains hidden or 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
services: | |
wg-easy: | |
environment: | |
- LANG=en | |
- WG_HOST=5.78.84.82 | |
- 'WG_POST_DOWN=iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' | |
- 'WG_POST_UP=iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' | |
image: ghcr.io/wg-easy/wg-easy | |
container_name: wg-easy | |
volumes: |
This file contains hidden or 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
version: '3.8' | |
services: | |
simpleweb: | |
image: 'yeasy/simple-web:latest' | |
restart: always | |
ports: | |
- '8095:80' | |
container_name: simpleweb | |
expose: | |
- 8095 |
This file contains hidden or 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
version: "3.9" | |
networks: | |
web: | |
external: true | |
services: | |
mysqlsecure: | |
image: mysql:8.0 | |
container_name: mysqlsecure |
This file contains hidden or 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
version: '3.8' | |
services: | |
changedetection: | |
labels: | |
- 'traefik.http.middlewares.<random_unique_name>.basicauth.users=test:$2y$12$ci.4U63YX83CwkyUrjqxAucnmi2xXOIlEF6T/KdP9824f1Rf1iyNG' | |
image: 'redis/redisinsight:latest' | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:5540"] | |
interval: 30s | |
timeout: 10s |
This file contains hidden or 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
version: "3.9" | |
services: | |
mysqlsecure: | |
image: mysql:8.0 | |
container_name: mysqlsecure | |
volumes: | |
- ./data:/var/lib/mysql | |
- ./certs:/etc/mysql/certs | |
environment: |
This file contains hidden or 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
version: "3.9" | |
services: | |
mysqlsecure: | |
image: mysql:8.0 | |
container_name: mysqlsecure | |
volumes: | |
- ./data:/var/lib/mysql | |
- ./certs:/etc/mysql/certs | |
environment: |