Skip to content

Instantly share code, notes, and snippets.

View zacksmash's full-sized avatar
💯

Zack Warren zacksmash

💯
View GitHub Profile
@zacksmash
zacksmash / Chat.vue
Last active June 7, 2025 01:28 — forked from joshcirre/Chat.vue
Simple Chat App with Vue and useStream
<script setup lang="ts">
import StreamingIndicator from '@/components/StreamingIndicator.vue';
import { useStream } from '@laravel/stream-vue';
import { onMounted, onUnmounted, ref, watch } from 'vue';
type Message = {
type: 'response' | 'error' | 'prompt';
content: string;
};
const messages = ref<Message[]>([]);
const { data, send, cancel, isStreaming, id } = useStream('chat');
@zacksmash
zacksmash / deploy.sh
Last active October 17, 2024 10:47
Laravel Forge Zero Downtime Script
# Stop On Error
set -e
# Set Paths
SITE=${FORGE_SITE_PATH#"/home/forge/"}
DEPL="/home/forge/deployments/${SITE}"
# Create Deployment Directory
mkdir -p ${DEPL}