Start off by using the yarn create command:
yarn create vite my-project --template preact-ts
cd my-project
Switch off telemetry (optional)
yarn config set enableTelemetry 0
| #!python3 | |
| import os | |
| import argparse | |
| import time | |
| parser = argparse.ArgumentParser( | |
| prog='wait-until-done', | |
| description='Waits until a process has completed. Usage like "python3 wait-until-done 1234 && do-next-command". Use "ps aux" to get the Process ID you are looking for.') | |
| parser.add_argument('pid') |
| { | |
| # https://caddyserver.com/docs/caddyfile/options#email | |
| email [email protected] | |
| } | |
| (tls_config) { | |
| tls { | |
| dns digitalocean {env.DIGITAL_OCEAN_DNS_API_TOKEN} | |
| # If you are running a DNS server on your network, controlling this domain, Caddy will resolve your DNS server to that internal server, and place the TXT entry there. |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net/http" | |
| "time" | |
| "github.com/go-chi/chi/middleware" | |
| "github.com/go-chi/chi/v5" |
| package main | |
| import ( | |
| "net/http" | |
| "fmt" | |
| ) | |
| /* |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| type Date struct { | |
| Day int | |
| Month int |
| { | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "noImplicitAny": true, | |
| "sourceMap": true, | |
| "outDir": "dist", | |
| "baseUrl": ".", | |
| "paths": { | |
| "*": ["node_modules/*"] | |
| }, |
| cd /tmp | |
| wget http://rsync.samba.org/ftp/rsync/src/rsync-3.1.1.tar.gz -O - | tar xz | |
| cd *rsync* | |
| ./configure | |
| make | |
| sudo make install | |
| make clean |
For running GUI applications as another user
otheruser=<username>
xhost +SI:localuser:$otheruser
su $otheruser
...