Skip to content

Instantly share code, notes, and snippets.

View bhatiavivek's full-sized avatar
💭
जिन्हें नाज़ है...

Vivek Bhatia bhatiavivek

💭
जिन्हें नाज़ है...
  • 32.23174776879912, 76.3430913791296
View GitHub Profile

To serve a .NET web app on an Ubuntu server in the simplest possible way, you can follow these steps:

  1. Install the .NET SDK on your Ubuntu server:
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

sudo apt-get update
@bhatiavivek
bhatiavivek / Tips for maintaining a simple static site by hand
Last active January 15, 2025 01:35
Tips for maintaining a simple static site by hand
From https://news.ycombinator.com/item?id=42705780
Here's some of my tips for a handwritten HTML site, since the author wished more tips existed:
- consider using an HTML boilerplate template like this one if you don't know where to start: https://www.matuzo.at/blog/html-boilerplate/
- consider using a CSS template, or a CSS reset, if you don't know where to start with styling. Pico CSS is a good drop-in: https://picocss.com/. Frontend devs always blog about their CSS resets, like this one: https://piccalil.li/blog/a-more-modern-css-reset/. But if you're someone inclined to write their own HTML, then you'll probably also want to write your own CSS. This takes time to learn. Especially learning how to design the page without looking crappy
- I copy my last page as a template whenever writing a new page