Skip to content

Instantly share code, notes, and snippets.

View Teebor-Choka's full-sized avatar
🌍
"... walk with the master, see through the master, become the master.”

Tibor Teebor-Choka

🌍
"... walk with the master, see through the master, become the master.”
View GitHub Profile
@Teebor-Choka
Teebor-Choka / config.toml
Created May 22, 2025 22:10
uPoC GnosisVPN config
version = 2
[hoprd_node]
endpoint = "<API URL>"
api_token = "<API TOKEN>"
# internal_connection_port = 1422
[destinations]
@Teebor-Choka
Teebor-Choka / llm-on-premise-2024.md
Created November 13, 2024 20:57
On-premise LLM deployments and options

On-premise LLM model deployments

Requirements

LLM models used as an external resource offer multiple disadvantages:

  • Privacy - guarantees regarding confidential imformation usage by the models and intellectual property (IP) safety cannot be guaranteed
  • Flexibility - specialization and fine-tuning of more general models offers efficiency gains in terms of resources used and outputs achieved
  • Stability - reducing vendor dependency allows internal system stability through guaranteed availability

An approach, whereby LLM models and deployed, fine-tuned and utilized locally (on-premise) allows:

@Teebor-Choka
Teebor-Choka / Objects-relationships.md
Created June 21, 2024 20:39
Object Oriented Programming (OOP)

Object relationships

Association

(using relationship - "uses")

A - B or A -> B (A is associated with B)

  • weakest relationship (semantic dependency)
  • no ownership, separate life-times
  • allows one object instance to cause another to perform an action on its behalf

Improving C++ builds [1]

Tricks:

  • compilers do a lot less in Debug, use it in development
    • minimze optimizations
  • remove unreachable or dead code
    • cppcheck, Coverity, Understand, CppDepend, OCLint, gcov...
  • unused sources, libraries
  • commonly used sources => static libraries
  • use granular includes
@Teebor-Choka
Teebor-Choka / notebook.ipynb
Last active June 21, 2024 13:17
Jupyter notebook tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Teebor-Choka
Teebor-Choka / publish_to_google_chat.py
Created December 29, 2022 13:22
Publish to Google Chat
#!/usr/bin/env python3
from json import dumps
import os
from httplib2 import Http
def main():
url = os.environ["GOOGLE_CHAT_URL"]
@Teebor-Choka
Teebor-Choka / create_ro_user.sql
Last active September 30, 2022 11:43
Create a read-only user in postgresql
CREATE ROLE test_ro_access;
GRANT CONNECT ON DATABASE test TO test_ro_access;
GRANT USAGE ON SCHEMA public TO test_ro_access;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO test_ro_access;
CREATE USER test_read_user WITH PASSWORD 'passw0rd';
GRANT test_ro_access TO test_read_user;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Teebor-Choka
Teebor-Choka / cpp-topic-list.md
Last active July 21, 2019 21:39
Topics on C++ you should read about

What to consider before starting a project:

  • src: stacktrace, exceptions, allocator, static analysis
  • code: platform code, feature flag, outcompilable debug
  • stats: performance memory, image size, telemetry, scalability
  • code review, in-service improvements, debugging, regressions, testing...

Interesting language features:

@Teebor-Choka
Teebor-Choka / sentinel.cpp
Created July 21, 2019 20:52
Programming tricks - Sentinel
/**
* Sentinels: http://stackoverflow.com/a/5384593
*/
template<typename T>
decltype(auto) find_without_sentinel(const T& c)
{
for (iterator i=c.begin(); i!=c.end(); ++i) // first branch here
{
if (*i == x) // second branch here