npm init -y
npm install blocksmd fs-extra live-server
create a directory named src
and add a file named index.md
with the following contents:
#!/usr/bin/env bash | |
# show pid and port from matcher | |
MATCHER=$1 | |
if [ -n "$MATCHER" ]; then | |
sudo lsof -aPn -i4 -cnode -u${USER} -sTCP:LISTEN | grep $MATCHER | awk '{print $2 "|" $9}'; | |
exit 0; | |
fi; | |
# show all ssh tunnel tcp connections |
<script> | |
import { onMount } from "svelte"; | |
import { writable } from "svelte/store"; | |
const theme = writable("light"); | |
onMount(() => { | |
const storedTheme = localStorage.getItem("theme"); | |
if (storedTheme) theme.set(storedTheme); |
<script> | |
import { onMount } from "svelte"; | |
import { writable } from "svelte/store"; | |
const messages = writable([]); | |
let width = 1000; | |
let height = 200; | |
let gap = width / 100; |
<script lang="ts"> | |
import { createQrPngDataUrl } from "@svelte-put/qr"; | |
import { onMount } from "svelte"; | |
import JSZip from "jszip"; | |
const qrs = [ | |
]; | |
let srcs: string[] = []; | |
onMount(async () => { |
<div class="wrap"> | |
<img src="http://placehold.it/1200/1200" alt="testsetse" /> | |
</div> | |
<style> | |
.wrap { | |
width: 1200px; | |
height: 1200px; | |
position: relative; | |
overflow: hidden; |
package ui | |
import ( | |
"embed" | |
"fmt" | |
"io/fs" | |
"net/http" | |
) | |
//go:embed all:public |
FROM alpine:latest | |
WORKDIR /lux | |
RUN apk add --no-cache \ | |
curl ca-certificates openssl \ | |
perl curl ffmpeg \ | |
tar gzip jq; \ | |
apkArch="$(apk --print-arch)"; Arch=""; \ | |
case "$apkArch" in \ |
rootCAs, err := x509.SystemCertPool() | |
if err != nil { | |
return nil, err | |
} | |
// rootCAs := x509.NewCertPool() | |
pemData, err := os.ReadFile(certfile) | |
if err != nil { | |
return nil, err | |
} |