Skip to content

Instantly share code, notes, and snippets.

View Teut2711's full-sized avatar

Vishesh Mangla Teut2711

  • IRASUS Technologies, Gurugram
  • Haryana,India
  • 18:13 (UTC +05:30)
View GitHub Profile
@Teut2711
Teut2711 / apt_update_confusion.txt
Last active January 12, 2024 18:37
What the heck does apt update do?
# Use an official PostgreSQL image as the base image
FROM postgres:13.12-bullseye
# Automate interactive shell
ENV DEBIAN_FRONTEND=noninteractive
# Update index/packages
RUN apt update
RUN apt upgrade -y
public async Task<IActionResult> OnPostAsync(string opt, string value)
{
ProcessStartInfo start = new ProcessStartInfo();
start.FileName = "python/python-3.8.0-embed-amd64/python.exe";
start.Verb = "runas";
start.Arguments = $"python/backend.py {opt} {value}";
start.UseShellExecute = false;
start.RedirectStandardOutput = true;
using (Process process = Process.Start(start))
{