start new:
tmux
start new with session name:
tmux new -s myname
export function makeDefaults<T extends Record<string, any>, D extends Partial<T>>( | |
options: T, | |
defaults: D | |
): T & D { | |
for (const key in options) { | |
if (Object.hasOwn(options, key) && options[key] === undefined) { | |
delete options[key]; | |
} | |
} |
/path/to/prefs/filetypes/
This page will help you find the correct directory.
import axios, { AxiosResponse } from "axios"; | |
import { Prisma } from "generated/client"; | |
const endpoint = "http://localhost:3001/db"; | |
class PrismaRequester { | |
async card<T extends keyof Prisma.CardDelegate<any>>( | |
action: T, | |
args?: Parameters<Prisma.CardDelegate<any>[T]>[0] |
<body> | |
<div> | |
<button class="trigger">I want to drink something!</button> | |
<div class="result"></div> | |
</div> | |
<script> | |
const resultElement = document.querySelector(".result"); | |
const setDrink = (drink) => { | |
if (drink) { | |
resultElement.innerText = `Enjoy your drink, ${drink}`; |
const SelfInvokingChildren = () => { | |
const [loading, error, data] = useData() | |
return ( | |
<Layout> | |
{(function () { | |
if (loading) return <Placeholder /> | |
if (error) return <Error /> |
Подключение: ssh root@192.168.0.1
Смена пароля: passwd
Обновление:
apt-get update
apt-get upgrade