Advanced Search
Search Results
10 total results found
Show server statistics like CPU, RAM and Docker container usage
Statistics Server Show server statistics htop Docker Show running Docker containers docker ps Show all containers (stopped and running) docker ps -a Docker container CPU usage ctop: https://github.com/bcicen/ctop docker run --rm -ti \ --name=ctop...
Error installing ruby version on M1 Mac
OpenSSL Usually, the errors regarding installing ruby on an M1 mac is OpenSSL related. Here are some common errors and fixes. Error: Error running '__rvm_make -j8', Fix: 1. Check OpenSSL path with brew --prefix openssl 2. Then run this command to ins...
Caddy
Introduction Caddy is running with a resumed configuration. The --resume flag means Caddy is using the last known good configuration, which is stored internally as a JSON object. This configuration is auto-saved when Caddy is running and can be reused on rest...
Sync Heroku to Hatchbox database
Please refer to this tutorial first: https://wiki.sigbit.app/books/hatchbox/page/restore-local-sql-dump-to-hatchbox 1. Download file from Heroku If you need to download the database from heroku, do this: heroku pg:backups:capture --app example-app hero...
Increase disk storage of EC2 instance
Tutorial Links Amazon Docs Make sure to take a snapshot of the volume beforehand for safety: How to snapshot AWS Step 1 - Check file system df -hT Step 2 - Find partition lsblk Step 3 - Extend disk Check which disk and which partition to extend. ...
Hatchbox - Sync CMS Database
This page explains how to sync the database from one hatchbox server to another. In this example, we're syncing the prod database with the staging database. Note: This will not sync the S3 bucket storing all images. To do that please follow this tutorial. Sc...
Sync S3 buckets
How to sync one bucket to another: https://repost.aws/knowledge-center/move-objects-s3-bucket In my experience the size of the CMS S3 bucket is >10GB which will take ~22m @ 10mbit/s.
How to use params and searchParams in Nextjs 13
There are 3 different variants of params params (/blog/1) single params multiple params searchParams (/blog?postId=123) single search params multiple search params Both params and searchParams (/blog/1?postId=123) There are multiple w...
Troubleshooting "pg_restore: error: unsupported version (1.15) in file header"
When attempting to restore a PostgreSQL database using pg_restore, you might encounter the error: "pg_restore: error: unsupported version (1.15) in file header". This typically indicates a version mismatch between the pg_dump used to create the backup and the ...
Set up Prometheus and connect linode servers together
Go to Linode, open VPC, create a new VPC and add all nodes that you want, restart nodes, then continue this tutorial. This makes sure that all nodes are on the same subnet network. Download node_exporter wget https://github.com/prometheus/node_exporter/relea...