sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).| # File Path: /etc/apt/sources.list | |
| # Reference: https://tinyurl.com/ya9husgz | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://tw.archive.ubuntu.com/ubuntu/ focal main restricted | |
| # deb-src http://tw.archive.ubuntu.com/ubuntu/ focal main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://tw.archive.ubuntu.com/ubuntu/ focal-updates main restricted |
Manjaro Linux's ISOs are booting into Graphical UI (X.org), but unfortunately, LiveMedia of Manjaro doesn't have FBDEV driver for X server.
To run install script for Manjaro needs X server running, so to do that you need to install fbdev driver.
And if you're under proxied network, to install driver, you need to setup proxy configuration.
Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:
Build platform: Ubuntu 18.04LTS
Ensure the platform is up to date:
sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade
Install baseline dependencies first (inclusive of OpenCL headers+)
There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.
There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha
| # Automatic nginx virtual subdomains with sub-folders or sub-directories | |
| # | |
| # Since the original source where I found this code is now offline, I have decided to mirror it here. | |
| # All credit goes to: http://web.archive.org/web/20150307193208/http://www.messaliberty.com/2010/10/automatic-nginx-virtual-subdomains-with-sub-folders-or-sub-directories | |
| # | |
| # Description: In my web root directory I wanted create a folder called photos, and another called | |
| # music using a sftp program. Without manually going back to the config file or to the shell I like to | |
| # be able to access them at photos.nginxdomain.com and music.nginxdomain.com. That is what this config does. | |
| # Redirect visitors from http://nginxdomain.com/ to http://www.nginxdomain.com/ |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.
| // List all files in a directory in Node.js recursively in a synchronous fashion | |
| var walkSync = function(dir, filelist) { | |
| var fs = fs || require('fs'), | |
| files = fs.readdirSync(dir); | |
| filelist = filelist || []; | |
| files.forEach(function(file) { | |
| if (fs.statSync(dir + file).isDirectory()) { | |
| filelist = walkSync(dir + file + '/', filelist); | |
| } | |
| else { |
| #用正则简单过滤html的<>标签 | |
| import re | |
| str = "<img /><a>srcd</a>hello</br><br/>" | |
| str = re.sub(r'</?\w+[^>]*>','',str) | |
| print str |