Skip to content

Instantly share code, notes, and snippets.

View tekh's full-sized avatar
💭
I may be slow to respond.

Benoit St-Martin tekh

💭
I may be slow to respond.
  • 428 Precondition Required
View GitHub Profile
@tekh
tekh / super_inheritance.py
Last active December 27, 2020 20:58
super inheritance I guess
class mlgate:
#some methods and vars like the host, port, token and such
class Event(mlgate):
#some event properties added on top of mlgate base class
class EventUpload(Event)
#needs the other two classes properties and can use their constructors through super().__init__()
def __init__():
#perform init
# --------------------------VERSUS--------------------------------------
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@tekh
tekh / cheatsheets.md
Created August 2, 2021 01:25 — forked from FlorianHeigl/cheatsheets.md
Printable Cheat Sheets for Software

A collection of links to useful cheat sheets.

Only what's properly printable can get a spot at the top of this list. It should also be small enough to fit on a few pages. almost all links in this document were designed by their creators so that YOU can print them in a good-looking format and store them however is best for you. Anything that isn't really something you could print in A4/US Letter format, but is still a well-made cheatsheet can get a spot at the end of the page.

Pleae contribute any you remember you've seen and liked. It would be wonderful if we can get these to be something more commonly made.

Search Engines

@tekh
tekh / rke2_agent_install
Last active July 28, 2024 23:02
rke2_agent_install
#How to add rke2 agents;
## Tested on Ubuntu Server 22.04LTS, minimal install. Seems to have no issues, a little less ram used (30meg) and saving about 2gb of HD space
### If running on QEMU:
apt install qemu-guest-agent -y && systemctl enable --now qemu-guest-agent
### On the server
# Retrieve the server token located in /var/lib/rancher/rke2/server/node-token
@tekh
tekh / lyra.txt
Created July 17, 2025 06:19 — forked from xthezealot/lyra.txt
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock Al's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing