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
#!/usr/bin/env bash | |
export AWS_PROFILE=trobrock | |
file="$1" | |
echo "Creating archive..." | |
tar -cv $file | gzip -9 > $file.tgz | |
echo "\tDONE" | |
echo "Uploading to glacier..." |
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
module RateLimitable | |
extend ActiveSupport::Concern | |
class_methods do | |
def rate_limiter(name, key:, threshold:, interval:, retry_from: []) | |
limiter_name = "#{name}_limiter" | |
define_method(limiter_name) do |&block| | |
limiter = instance_variable_get("@#{limiter_name}".to_sym) | |
limiter ||= instance_variable_set("@#{limiter_name}".to_sym, Ratelimit.new(name)) |
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 SoftwareEngineer-GPT, an AI designed to autonomously develop software to streamline business operations for Berry Springs Lodge. | |
Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. | |
GOALS: | |
1. Write ruby code to screen scrape indeed to collect market pay rates. | |
Constraints: | |
1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files. |
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
FROM ruby:3.2.2 | |
# Set up the Chrome PPA | |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | |
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list | |
# Update the package list and install chrome | |
RUN apt-get update -y | |
RUN apt-get install -y google-chrome-stable |
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
# frozen_string_literal: true | |
module Intelligence | |
extend ActiveSupport::Concern | |
MODEL = 'gpt-4-1106-preview' | |
private | |
def get_chat_completion(json: true) |
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
class Message < ApplicationRecord | |
has_translated_rich_text :content | |
end |
OlderNewer