-
Complexity always wins. Especially at 3am.
Your clever abstraction becomes your 3am nightmare. Hope you like recursive stack traces.
-
Code you wrote 6 months ago was clearly the work of an idiot.
Unfortunately, that idiot was you.
This file contains hidden or 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
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
This file contains hidden or 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
| { | |
| "name": "OpenChat 3.5", | |
| "load_params": { | |
| "n_ctx": 8192, | |
| "n_batch": 512, | |
| "rope_freq_base": 10000, | |
| "rope_freq_scale": 1, | |
| "n_gpu_layers": 80, | |
| "use_mlock": true, | |
| "main_gpu": 0, |
This file contains hidden or 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
| #cloud-config | |
| # This is the user-data configuration file for cloud-init. By default this sets | |
| # up an initial user called "ubuntu" with password "ubuntu", which must be | |
| # changed at first login. However, many additional actions can be initiated on | |
| # first boot from this file. The cloud-init documentation has more details: | |
| # | |
| # https://cloudinit.readthedocs.io/ | |
| # | |
| # Some additional examples are provided in comments below the default |
This file contains hidden or 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: "2" | |
| networks: | |
| gitea: | |
| external: false | |
| services: | |
| gitea: | |
| image: gitea/gitea:latest | |
| environment: |
This file contains hidden or 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
| docker run -d --restart unless-stopped --name consul --net=host -v consul:/consul/data \ | |
| -e CONSUL_BIND_INTERFACE=wg0 -e 'CONSUL_LOCAL_CONFIG={"datacenter":"nbg", "leave_on_terminate": true}' \ | |
| consul agent -retry-join=10.88.88.3 -retry-join=10.88.88.5 -retry-join=10.88.88.7 |
This file contains hidden or 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
| docker run -d --restart unless-stopped -e MINIO_ACCESS_KEY=AKAARDVARKS -e MINIO_SECRET_KEY=oobidoobidowahwahwahwahhuba \ | |
| -v /mnt/minio:/minio \ | |
| --network host \ | |
| minio/minio server \ | |
| http://10.98.88.3/minio \ | |
| http://10.98.88.4/minio \ | |
| http://10.98.88.5/minio \ | |
| http://10.98.88.6/minio \ | |
| http://10.98.88.7/minio \ | |
| http://10.98.88.9/minio |
Adapted from caddy systemd Service Unit
The provided file should work with systemd version 219 or later. It might work with earlier versions.
The easiest way to check your systemd version is to run systemctl --version.
We will assume the following:
This file contains hidden or 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/sh | |
| ######### | |
| # | |
| # Note: this does not provide a production ready cluster. It will produce a dev cluster with a single etcd daemon. | |
| # | |
| ########## | |
| apt-get -y update | |
| apt-get -y upgrade | |
| apt-get -y install apt-transport-https ca-certificates curl software-properties-common tmux vim |
NewerOlder