yum install java-1.7.0-openjdk tomcat6 tomcat6-webapps tomcat6-admin-webapps wget
wget http://mirror.catn.com/pub/apache/lucene/solr/4.3.1/solr-4.3.1.tgz
tar -xzf solr-*.tgz
require "sinatra" | |
require "mogli" | |
enable :sessions | |
set :raise_errors, false | |
set :show_exceptions, false | |
# Scope defines what permissions that we are asking the user to grant. | |
# In this example, we are asking for the ability to publish stories | |
# about using the app, access to what the user likes, and to be able |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
FROM python:3.9-slim as builder | |
RUN apt-get update -y && apt-get install -y --no-install-recommends wget make build-essential libssl-dev zlib1g zlib1g-dev | |
RUN mkdir -p /tmp/python | |
WORKDIR /tmp/python | |
RUN wget https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tar.xz |
This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!
First, add the ruby-openai gem! Needs to be at least version 4. Add Sidekiq too.