Skip to content

Instantly share code, notes, and snippets.

View kolosovpetro's full-sized avatar

Petro Kolosov kolosovpetro

View GitHub Profile
@artyomsveshnikov
artyomsveshnikov / server.js
Created August 22, 2021 09:22
Simple server.js for Angular static site
//Install express server
const express = require('express');
const path = require('path');
const app = express();
// Serve only the static files form the dist directory
app.use(express.static(__dirname + '/dist/<appName>'));
app.get('/*', function(req,res) {
@1eedaegon
1eedaegon / install-vmware-player-with-vagrant.ps1
Last active August 4, 2025 13:22
Install vagrant with vmware for windows 11
# 1. Download and install go
https://golang.org/doc/install
# 2. Download and install VMware workstation player
https://www.vmware.com/products/workstation-player.html
# 3. Download and install vagrant
https://www.vagrantup.com/downloads
# 4. Download vagrant vmware utility
@kolosovpetro
kolosovpetro / win_restore.ps1
Last active October 11, 2023 16:35
To restore windows
sfc /scannow
chkdsk C: /f /r /x
chkdsk D: /f /r /x
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\Sources\install.wim