Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
| # -*- coding: utf-8 -*- | |
| # @author: Peter Lamut | |
| import argparse | |
| import os | |
| import shutil | |
| N = 10 # the number of files in seach subfolder folder | |
| function drips(){ | |
| docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /' | |
| } |
| List of MOC Keys | |
| enter -- starts playing | |
| s -- stops playing | |
| n -- plays next item from the playlist | |
| b -- plays previous item from the playlist | |
| space -- pause | |
| p -- pause | |
| S -- plays at random | |
| R -- repeats the same song in a loop, |
jq — https://jqlang.org/ — "like sed for JSON data"
There are several options available for installing jq.
I prefer to use Homebrew: brew install jq
| #!/bin/sh | |
| # this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless | |
| PREREQ="" | |
| prereqs() | |
| { | |
| echo "$PREREQ" | |
| } | |
| case $1 in | |
| prereqs) |
| mkdir ./mnt | |
| mount /dev/pve/root ./mnt | |
| cd mnt | |
| mount -t proc proc proc/ | |
| mount -t sysfs sys sys/ | |
| mount -o bind /dev dev/ | |
| cd .. | |
| chroot ./mnt ./bin/bash | |
| pmxcfs | |
| /bin/nano /etc/pve/nodes/{node name}/qemu-server/100.conf |
README.md
[email protected]
Using GPU-PV, you can create a partition of your GPU and assign it to a Windows virtual machine
Make sure your GPU is visible.