# install ollama
brew install --cask ollama
# install continue.dev
code --install-extension Continue.continue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i Michael_Jackson_–_Bad.mp3 -ar 8000 -ac 1 -ab 64 out_2.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Filename : migrate | |
# Description : Migrate Proxmox OpenVZ container from one storage to another | |
# Author : James Coyle | |
# URL: https://www.jamescoyle.net/how-to/2863-move-proxmox-container-to-different-storage-2 | |
# Version: | |
# -Date -Author -Description | |
# 20-11-2013 James Coyle Initial | |
# 13-12-2017 James Coyle Changes for LXC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Replace 'symplcms' with the database'name | |
createdb --template=template0 --locale=en_US.UTF-8 --encoding=UTF8 -U postgres symplcms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DBeaver Ultimate License Key |
based on the following article: An Introduction to PostgreSQL Performance Tuning and Optimization
- huge pages: Enabling on Linux will give a performance boost to PostgreSQL (VMPeak / HugePageSize = 4310)
- max_connections: optimal number is roughly 4 times the number of CPU cores. The recommended number is the GREATEST(4 x CPU cores, 100). Beyond this number, a connection pooler such as pgbouncer should be used. avoid setting max_connections too high as it will increase the size of various data structures in Postgres which can result in CPU cycles being wasted
- shared_buffers: variable by workload - starting Point: LEAST(RAM/2, 10GB).
- work_mem: ((Total RAM - shared_buffers)/(16 x CPU cores))
- maintenance_work_mem: 1GB good start
- effective_io_concurrency: SSD = 200, HDD = Number of Disks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docs - LXD Helpful Docs: | |
https://www.stgraber.org/2016/03/30/lxd-2-0-image-management-512/ | |
https://www.flockport.com/flockport-first-look-at-lxd/ | |
http://insights.ubuntu.com/2016/03/14/the-lxd-2-0-story-prologue/ | |
Docs - Installation: | |
http://insights.ubuntu.com/2016/03/14/the-lxd-2-0-story-prologue/ | |
Docs - API: | |
https://linuxcontainers.org/lxd/getting-started-cli/ |
It is possible to use curl to query the LXD unix.socket directly:
curl --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers | jq .
Example output:
{
-
qemu —
brew install qemu
-
guestfish — https://hub.docker.com/r/curator/guestfish/
1. Backup VM
NewerOlder