Skip to content

Instantly share code, notes, and snippets.

View Zogoo's full-sized avatar
📖
Learning...

zogoo Zogoo

📖
Learning...
View GitHub Profile
@Zogoo
Zogoo / agent.rb
Created October 2, 2025 16:16
Code base scanner sample for Medium article
def answer_question(query)
# Generate embedding for the question
query_embedding = generate_query_embedding(query)
# Search for similar code
results = qdrant_client.points.search(
collection_name: "code_chunks",
vector: query_embedding,
limit: 5,
with_payload: true
@Zogoo
Zogoo / rails-5-initializer-commands
Last active July 26, 2022 08:59 — forked from elchingon/rails-5-initializer-commands
Rails 5 Initialize commands for Doorkeeper, Devise, Rolify, Rspec
# Create Rails App
```
rails new app_name -d postgres
```
### cp config/database.example.yml
```
rake db:create
```
@Zogoo
Zogoo / client_cert_tester.rb
Last active January 9, 2020 07:15
Helper class for test client certificate
require 'json'
require 'openssl'
require 'net/http'
require 'uri'
require 'cgi'
class ClientCertTestError < StandardError; end
class ClientCertClient
attr_accessor :use_client_cert, :cacart, :client_cert_path, :client_cert_pass