sudo apt install build-essential dkms virtualbox-guest-x11
Create ~/.xprofile with this content
{ | |
"singleQuote": true, | |
"trailingComma": "all", | |
"semi": false, | |
"tabWidth": 2, | |
"endOfLine": "lf", | |
"arrowParens": "always", | |
"printWidth": 120 | |
} |
{ | |
"root": true, | |
"ignorePatterns": ["**/*"], | |
"plugins": ["@nrwl/nx", "@typescript-eslint/eslint-plugin"], | |
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], | |
"overrides": [ | |
{ | |
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | |
"rules": { | |
"@nrwl/nx/enforce-module-boundaries": [ |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", |
~/.xprofile | |
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
xrandr --addmode Virtual1 1920x1080_60.00 | |
xrandr --output Virtual1 --mode 1920x1080_60.00 |
Create an Ubuntu 20.04 VM on Hyper-V. For example: my-ubuntu
Connect to your VM and run these commands inside:
wget https://gist.githubusercontent.com/saeidjoker/3d05a608eea14370b772f2dcdd842b7d/raw/0f81231ae321e7dde96f078bc23a9b2151522b51/install.sh
sudo chmod +x install.sh
sudo ./install.sh
Follow [steps][1]:
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
const amqp = require('amqplib'); | |
const uuid = require('uuid') | |
const EventEmitter = require('events').EventEmitter | |
class RabbitMqRpcClient { | |
constructor() { | |
/** | |
* @type {amqp.Connection} | |
*/ | |
this.connection = null; |
# This allows you to set DNS back to DHCP | |
Get-NetAdapter -Physical | |
$adapters = Get-NetAdapter -Physical | |
$adapterIndex = "" | |
$adapterName | |
for ($i = 0; $i -lt $adapters.Count; $i++) { | |
$a = $adapters[$i] | |
if ($a.Status -eq "Up") { | |
$adapterIndex = $a.InterfaceIndex | |
$adapterName = $a.Name |