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
# a machine with a GPU would be nice. makes it faster. | |
# install Ollama - a runner for the models | |
sudo curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama | |
sudo chmod +x /usr/bin/ollama | |
sudo useradd -r -s /bin/false -m -d /usr/share/ollama ollama | |
# create service unit file | |
tee /usr/lib/systemd/system/ollama.service > /dev/null <<EOF |
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
```dataviewjs | |
this.container.style.minHeight = "1000px"; | |
const { renderCalendar } = app.plugins.plugins["obsidian-full-calendar"]; | |
let today = moment().format("GGGG-[W]WW"); | |
let rawData = await dv.io.csv("DataStores/csv/" + moment().format("GGGG-[W]WW") + ".csv"); | |
let entries = rawData.map((p) => ({ | |
backgroundColor: p.calendar == 'family' ? '#452538' : '#4d95f7', | |
borderColor: this.app.vault.getAbstractFileByPath(p.id + ".md") ? '#406f0b' : '#4d95f7', | |
allDay: p.allDay, |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Create a multi-az, load balanced and Auto Scaled sample web site running on\nan Apache Web Server. The application is configured to span all\nAvailability Zones in the region and is Auto-Scaled based on the CPU\nutilization of the web servers. Notifications will be sent to the operator\nemail address on scaling events. The instances are load balanced with a\nsimple health check against the default web page. **WARNING** This template\ncreates one or more Amazon EC2 instances and an Elastic Load Balancer. You\nwill be billed for the AWS resources used if you create a stack from this\ntemplate.\n", | |
"Parameters": { | |
"InstanceType": { | |
"Description": "WebServer EC2 instance type", | |
"Type": "String", | |
"Default": "t4g.micro" | |
}, | |
"OperatorEMail": { |
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: | | |
Create a multi-az, load balanced and Auto Scaled sample web site running on | |
an Apache Web Server. The application is configured to span all | |
Availability Zones in the region and is Auto-Scaled based on the CPU | |
utilization of the web servers. Notifications will be sent to the operator | |
email address on scaling events. The instances are load balanced with a | |
simple health check against the default web page. **WARNING** This template | |
creates one or more Amazon EC2 instances and an Elastic Load Balancer. You |
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
--- | |
services: | |
bitwarden: | |
container_name: vault | |
hostname: vault | |
image: vaultwarden/server:1.30.5-alpine | |
restart: always | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- $PWD/log:/var/log/vaultwarden |
This documentation adds important additions to the docs for kamal deploy tool (see github.com/basecamp/kamal)
You can use kamal deploy --destination staging
This will read config/deploy.yml and config/deploy.staging.yml files, and also will read .env.staging file if it exists.
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
<?php | |
/** | |
* The base configuration for WordPress | |
* | |
* The wp-config.php creation script uses this file during the installation. | |
* You don't have to use the web site, you can copy this file to "wp-config.php" | |
* and fill in the values. | |
* | |
* This file contains the following configurations: | |
* |
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
version: "3.9" | |
services: | |
cloudflared: | |
container_name: foobar | |
image: ghcr.io/erisa/cloudflared:2024.2.0 | |
command: tunnel --no-autoupdate run foobar | |
restart: always | |
environment: | |
READ_IP_HEADER: Cf-Connecting-Ip |
docker-compose.yaml /root/dockerfiles/step-by-step/3-docker-compose-cloudflared.yaml
A $PWD/cloudflared /root/dockerfiles/step-by-step/cloudflared.tar.gz
cd $PWD # also known as step-by-step folder
tar -czf cloudflared.tar.gz cloudflared/
B /var/www/html/ /root/dockerfiles/step-by-step/wpbackup/wp_today.tar.gz