Using Windows developer CLI tools outside of Visual Studio is way more of a pain than it needs to be. Here's how to set up the VS Developer Command Prompt in VS Code's integrated terminal.
- Visual Studio with any workloads you need
- VS Code
| using CliWrap; | |
| using Spectre.Console; | |
| using System.Diagnostics; | |
| namespace SystemdTemplate; | |
| public static class Systemd | |
| { | |
| /// <summary> | |
| /// Attempt to install the current process as a systemd service |
| using System.Threading.Channels; | |
| using CliWrap; | |
| using Spectre.Console; | |
| string command = AnsiConsole.Ask<string>("[bold blue]Command to run[/]"); | |
| var channel = Channel.CreateUnbounded<string>(); | |
| var processArgumentsTask = Task.Run(async () => { | |
| while (true) { |
| SELECT version(); | |
| SELECT ns.nspname, t.oid, t.typname, t.typtype, t.typnotnull, t.elemtypoid | |
| FROM ( | |
| -- Arrays have typtype=b - this subquery identifies them by their typreceive and converts their typtype to a | |
| -- We first do this for the type (innerest-most subquery), and then for its element type | |
| -- This also returns the array element, range subtype and domain base type as elemtypoid | |
| SELECT | |
| typ.oid, typ.typnamespace, typ.typname, typ.typtype, typ.typrelid, typ.typnotnull, typ.relkind, | |
| elemtyp.oid AS elemtypoid, elemtyp.typname AS elemtypname, elemcls.relkind AS elemrelkind, |
Using Windows developer CLI tools outside of Visual Studio is way more of a pain than it needs to be. Here's how to set up the VS Developer Command Prompt in VS Code's integrated terminal.
| 00:00:00,000 --> 00:00:03,320 | |
| I'm happy to call this meeting to order. | |
| 00:00:03,320 --> 00:00:04,960 | |
| The public hearing of, | |
| 00:00:04,960 --> 00:00:05,960 | |
| if I can get attention in the chamber, | |
| 00:00:05,960 --> 00:00:07,200 |
Transcription of City of Vancouver councillors' remarks from a public hearing on bus lanes, July 24 2024.
Original video: https://www.youtube.com/live/42xxT_6wpHc?si=t5li2BR1_F0RA663&t=20453
Downloaded audio with yt-dlp --download-sections "*5:40:50-6:05:30" -x --audio-format best https://www.youtube.com/watch?v=42xxT_6wpHc, transcribed with Deepgram. Lots of small transcription errors but you can get the gist.