-
- Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
- References are at the end of the document.
| import requests | |
| import json | |
| import gradio as gr | |
| url = "http://localhost:11434/api/generate" | |
| headers = { | |
| 'Content-Type': 'application/json', | |
| } |
| See Comment |
The other day, someone posted a little guide here for hosting a ATM8 server on a headless Linux machine. /u/AlexHailstone noted that Docker could work for this as well and would be nice, and I so happen to have ran my Minecraft servers in Docker containers for years now. So here is a little guide for you guys. This is not a Docker starter guide, you'll need to google around a bit for that if you're not familiar with Docker, but it shouldn't be too difficult.
(Just to cover my ass, I'm not responsible for any loss of (save)data or other risks you may open yourself up to by reading and using this little guide. Please make sure you understand what you're doing by running this. There shouldn't be any problems but if there are, I can't be held responsible!)
Let's get started!
| // This file assures that a Jest test file and Cypress test file exists for each component. | |
| import path from "path"; | |
| import fs from "fs"; | |
| function getFiles(filepath: string) { | |
| return fs.readdirSync(filepath).filter(function (file) { | |
| return fs.statSync(path.join(filepath, file)).isFile(); | |
| }); | |
| } |
| To install Docker on Debian as root: | |
| 1) apt-get update | |
| 2) apt-get install ca-certificates curl gnupg lsb-release | |
| 3) curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| 4) echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | |
| $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| 5) apt-get update | |
| 6) apt-get install docker-ce docker-ce-cli containerd.io |
| import {computed, ref} from "vue"; | |
| import { | |
| addMonths, addYears, | |
| eachDayOfInterval, | |
| endOfISOWeek, | |
| getYear, | |
| getDate, | |
| isSameMonth, | |
| startOfISOWeek, | |
| startOfMonth, |
| session=lxqt | |
| geometry=1920x1080 | |
| localhost # comment this out to allow connections from anywhere | |
| alwaysshared |
| let { withProse } = require("./src/remark/withProse"); | |
| let { withSyntaxHighlighting } = require("./src/remark/withSyntaxHighlighting"); | |
| let { withTableOfContents } = require("./src/remark/withTableOfContents"); | |
| let { withExamples } = require("./src/remark/withExamples"); | |
| let { withLayout } = require("./src/remark/withLayout"); | |
| let { withNextLinks } = require("./src/remark/withNextLinks"); | |
| let { VueLoaderPlugin } = require("vue-loader"); | |
| let path = require("path"); | |
| const withMDX = require("@next/mdx")({ |
| @props([ | |
| 'percentage' => 0, | |
| 'failed' => false | |
| ]) | |
| @php | |
| $done = $failed || $percentage == 100; | |
| @endphp | |
| <div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }} |