View autogpt-prompt.txt
This file contains 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. |
View rate_limitable.rb
This file contains 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)) |
View backup-to-glacier
This file contains 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..." |
View encrypted_attribute.rb
This file contains 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 EncryptedAttribute | |
extend ActiveSupport::Concern | |
class_methods do | |
def attr_encrypted(attr) | |
define_method(attr) do | |
value = instance_variable_get("@#{attr}") | |
return value if value |
View Gemfile
This file contains 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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
View workflow.yml
This file contains 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: Compile Mermaid Diagrams | |
on: [push] | |
jobs: | |
build: | |
name: Compile Mermaid | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: |
View git-bisect.sh
This file contains 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 | |
# Run this with `git bisect start BAD_SHA GOOD_SHA ; git bisect run ~/git-bisect.sh` | |
# Run migrations, bundle, etc to make sure the app updates through time, and ensure there is a clean git tree | |
bundle install | |
git checkout Gemfile.lock | |
# Run the test, the exec is important so it returns the proper status code | |
exec rspec spec/models/tasks/inventory_clone_spec.rb |
View chef-output
This file contains 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
Waiting for sshd | |
done | |
Connecting to 74.207.242.176 | |
Get:1 http://mirrors.linode.com lucid Release.gpg [189B] | |
Ign http://mirrors.linode.com/ubuntu/ lucid/main Translation-en_US | |
Ign http://mirrors.linode.com/ubuntu/ lucid/restricted Translation-en_US | |
Ign http://mirrors.linode.com/ubuntu/ lucid/universe Translation-en_US | |
Ign http://mirrors.linode.com/ubuntu/ lucid/multiverse Translation-en_US | |
Get:2 http://mirrors.linode.com lucid-updates Release.gpg [198B] | |
Ign http://mirrors.linode.com/ubuntu/ lucid-updates/main Translation-en_US |
View user.json
This file contains 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
{ | |
"companies": [ | |
{ | |
"id": 1, | |
"name": "420...", | |
"street": "420 Kush St.", | |
"city": "Seattle", | |
"state": "WA", | |
"zip_code": "12345" | |
} |
View controller.coffee
This file contains 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 App.SalesSummaryReportController extends Ember.ObjectController | |
currentInterval: null | |
+observer interval | |
intervalChanged: -> | |
return if @interval == @currentInterval | |
@transitionToRoute 'sales_summary_report', interval: @interval |
NewerOlder