Skip to content

Instantly share code, notes, and snippets.

View cloud-inetum's full-sized avatar

José Guimarães cloud-inetum

  • Inetum
View GitHub Profile
@cloud-inetum
cloud-inetum / server.js
Created June 30, 2023 21:21 — forked from leanazulyoro/server.js
Next.js SSR Cache using LRU Cache
const express = require('express')
const next = require('next')
const Cache = require('lru-cache');
const compression = require('compression')
const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })

Expand Ubuntu disk after Hyper-V Quick Create

It is quick and easy to use Hyper-V Quick Create to get an Ubuntu virtual machine running on a Windows 10 computer. However, if this method is used, you may end up with a tiny Ubuntu virtual disk that will not be useful for any serious work and it is less obvious than the initial setup how to increase the size of this disk.

These steps fix the problem:

1. Turn off the VM.

2. Hyper-V Manager Settings Virtual hard disk.