XFS is a high-performance journaling file system created by Silicon Graphics, Inc. XFS is particularly proficient at parallel IO due to its allocation group based design. This enables extreme scalability of IO threads, filesystem bandwidth, file and filesystem size when spanning multiple storage devices.
GNU Parted is a program for creating and manipulating partition tables.
This article describe how to use parted and xfs_growfs to resize XFS disk partition size dynamically.
Prerender is a node server that uses Headless Chrome to render HTML, screenshots, PDFs, and HAR files out of any web page. The Prerender server listens for an http request, takes the URL and loads it in Headless Chrome, waits for the page to finish loading by waiting for the network to be idle, and then returns your content.
It have some advantages:
Loosely coupled
No code or only a small codes need to modify no matter what technical architecture is used within Front-End or Back-End.
Out of the box
Provide cache support, multiple render types(HTML, Image, PDF, HAR), Allowlist, Blacklist, etc.
Developing apps today requires so much more than writing code. Multiple languages, frameworks, architectures, and discontinuous interfaces between tools for each lifecycle stage creates enormous complexity.
Docker simplifies and accelerates your workflow, while giving developers the freedom to innovate with their choice of tools, application stacks, and deployment environments for each project.
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
# prerender/prerender: Node server that uses Headless Chrome to render a javascript-rendered page as HTML. To be used in conjunction with prerender middleware. # https://github.com/prerender/prerende CHROME_FLAGS="--no-sandbox, --headless, --disable-gpu, --remote-debugging-port=9222, --hide-scrollbars" LOG_REQUESTS=false PORT=3000 # memory or redis STORAGE_CACHE=memory # prerender-redis-cache/prerenderRedisCache.js at master · JonathanBennett/prerender-redis-cache # https://github.com/JonathanBennett/prerender-redis-cache/blob/master/lib/prerenderRedisCache.js # REDISTOGO_URL=redis://redis:6379/0 # REDISCLOUD_URL=redis://redis:6379/0 # REDISGREEN_URL=redis://redis:6379/0 REDIS_URL=redis://redis:6379/0 # prerender/prerender-memory-cache: In memory cache for use with Prerender server # https://github.com/prerender/prerender-memory-cache CACHE_MAXSIZE=10000 CACHE_TTL=3600
Run
Recommand to run ss-prerender with Docker Compose or Docker.
Docker Compose
1
docker-compose up
Docker
1
docker run -it --rm --name ssr-prerender -p 3000:3000 cloudolife/ssr-prerender:latest
Kubernetes
TBD
Shell
You can run ss-prerender from local shell or within a docker container.
This repository has provider a Google Chrome version and will auto install while docker build process. But you can upgrade Google Chrome to the latest version by download and replace google-chrome-stable_current_amd64.deb file with the latest Google Chrome version.
For security reasons, Alibaba Cloud blocks outbound traffic on TCP port 25 by default. that You cannot connect to external addresses TCP port 25 from Alibaba Cloud Cloud servers (ECS).
Background Information
Blocking the outbound direction of TCP 25 port may affect your connection to the SMTP server of a third-party mail service provider through TCP 25 port to send external mail. If you need to use the cloud server on Alibaba Cloud to send external emails, it is recommended that you use Alibaba Cloud Mail products or use the 465 port provided by a third-party mail service provider.
Note If there are special scenarios, you must use TCP port 25 on the cloud server for external connections. Please submit a port 25 unblocking application in the security management and control platform. Alibaba Cloud will review the application reason you submitted and notify you of the review result by email.
Configuration
Remember to replace the content within {{ }} with your prefer value.
asdf is a single CLI tool for managing multiple runtime versions. It extend with a simple plugin system to install your favourite language: Dart, Elixir, Flutter, Golang (Go), Java, Node.js, Python, Ruby …
This article is about how to use asdf and Node.js plugin to install multiple Node.js versions on macOS with the Homebrew package manager.
OSSImport is a free tool created by the Alibaba Cloud product team to assist with data backup and migration into the Alibaba Cloud Object Storage Service (OSS). Using OSSImport data can be migrated from either local storage or from third party cloud platforms. Currently supported data sources include Qiniu, Baidu BOS, AWS S3, Azure Blob, Youpai Cloud, Tencent Cloud COS, Kingsoft KS3, HTTP, and other OSS buckets.
Using MigrationComments, you can simply add comments during your migrations. Or if you already have existing data structures, just add the comments afterwards in a separate migration. And of course you can always modify and delete these comments in later migrations.
So where are these comments used? Firstly, they will be included in your schema.rb dump which is where your IDE (e.g. RubyMine, VS Code) should be learning about your model structure. This means that they’ll be available at any point in your project. Additionally, if you are using the 'annotate’ gem, these comments will be added to the annotations that are generated within your model.rb file.
Github or Gitlab use ~/.ssh/id_rsa as the default SSH private key. But sometimes you need more accounts than one for access to Github or Gitlab and similar tools. For example you can have one account for your projects at home and second account for your company.
There are three ways to Use multiple SSH private keys within git commands.