sudo snap install lxd && lxd init
lxd init --preseed <<EOF
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"runtime" |
// model.ts | |
import mongoose, { Schema } from 'mongoose'; | |
const schema = new Schema({ | |
//...schema definition | |
}); | |
schema.methods.toJSON = function() { | |
// ... compute some data to go along with your response |
import { ZodError, z } from "zod"; | |
interface RequestBody { | |
name: string; | |
} | |
const RequestBody = z.object({ | |
name: z.string(), | |
}); |
# Fetch the URI of the latest version of the winget-cli from GitHub releases | |
$latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object { $_.EndsWith('.msixbundle') } | |
# Extract the name of the .msixbundle file from the URI | |
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split('/')[-1] | |
# Show a progress message for the first download step | |
Write-Progress -Activity 'Installing Winget CLI' -Status 'Downloading Step 1 of 2' | |
# Temporarily set the ProgressPreference variable to SilentlyContinue to suppress progress bars |
Os conceitos vão ser apresentados da forma mais básica possível para que se possa entender a ideia primordial do software. Os comandos serão baseados num terminal UNIX. Ou seja, funcionarão em linux e mac.
http://rogerdudler.github.io/git-guide/index.pt_BR.html
O repositório é a pasta do projeto. Todo repositório tem uma pasta oculta .git. Isso é o que mostra para o git e para você que existe um repositório naquela pasta.
Introduction: I was trying to run some neuroscience image processing commands that uses NVIDIA GPU. The challenge is that most of our computation will be run inside an LXC container running Ubuntu 16.04 (the host runs Ubuntu 16.04 as well). Installing the NVIDIA driver on the host is not so hard, but doing it inside the LXC container is much more challenging.
I already have an unprivileged container running, so I will not repeat the steps to create an LXC container here.
Our graphics card is NVIDIA GeForce GTX 1080 Ti.
Here are the main steps:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebGPU Audio</title> | |
</head> | |
<body> | |
<button type="button" id="play">Play</button> | |
<script type="module"> | |
const code = ` |
' ASR rules bypass creating child processes | |
' https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-exploit-guard/enable-attack-surface-reduction | |
' https://www.darkoperator.com/blog/2017/11/11/windows-defender-exploit-guard-asr-rules-for-office | |
' https://www.darkoperator.com/blog/2017/11/6/windows-defender-exploit-guard-asr-vbscriptjs-rule | |
Sub ASR_blocked() | |
Dim WSHShell As Object | |
Set WSHShell = CreateObject("Wscript.Shell") | |
WSHShell.Run "cmd.exe" | |
End Sub |