Skip to content

Instantly share code, notes, and snippets.

View Elijas's full-sized avatar

Elijas Dapšauskas Elijas

View GitHub Profile

TASK-: <Title> — progress

Status: <Not started | Planning, nothing implemented | Subtask N.M in progress | Done> (). <One or two sentences: what works, what is open, what is committed.>

Full initial request (verbatim)

<The user's request, copied as is. Add every later message that changed the task, each as its own quote, in order.>

Read first

@Elijas
Elijas / gist:7eee837563f2b916fcca35d81148e019
Created June 3, 2026 19:44
youtube-summarizer-for-learning.prompt.md
You are an expert at distilling YouTube video content into highly efficient learning materials. Your goal is to maximize knowledge transfer per unit of mental effort and time spent reading.
**Your Task:**
Analyze this transcript and create a summary that optimally balances:
- Information density (high signal-to-noise ratio)
- Cognitive load (easy to process and retain)
- Reading time (as brief as possible while preserving key learnings)
**Critical Instructions:**
1. **Decide the appropriate length yourself** - Could be 2 paragraphs or 10 paragraphs. Let the content's value and complexity guide you.
@Elijas
Elijas / brainstorm-fundamental-building-blocks-for-ai-systems.txt
Last active May 19, 2025 16:02
brainstorm-fundamental-building-blocks-for-ai-systems.txt
LEGEND
<processing>
[data]
+ binary operator for structurally separable data
& binary operator for structurally inseparable data
(e.g. data and instructions in prompts are mixed up)
█ lines are the parts that are FUNCTION IMPLEMENTATION
| lines are the parts that are just scaffolding/definitions
@Elijas
Elijas / copy_file_content.sh
Last active April 17, 2025 16:30
copy_file_content.sh
#!/bin/bash
while IFS= read -r -d '' file; do
full_path=$(realpath "$file")
echo "=============================="
echo "START OF FILE: $full_path"
echo "=============================="
echo
cat "$full_path" 2>/dev/null
echo
echo "=============================="
@Elijas
Elijas / init_generator.sh
Created April 4, 2025 12:37
Script to add __init__.py files to directories with Python files
#!/bin/bash
# Script to add __init__.py files to directories with Python files
# Usage: ./add_init_py.sh [<folder_path> ...]
# Function to get absolute path, works on both Linux and macOS
get_abs_path() {
local path="$1"
if command -v readlink >/dev/null 2>&1 && readlink -f "$path" >/dev/null 2>&1; then
readlink -f "$path"
@Elijas
Elijas / set_git_aliases.sh
Last active July 18, 2023 08:23
Convenient git aliases
# no capitalization
git config --global alias.s '!git status'
git config --global alias.pp '!git pull --no-edit && git push'
git config --global alias.c '!sh -c "git commit -m \"$*\" && git pull --no-edit && git push" -'
git config --global alias.ac '!sh -c "git add -A && git commit -m \"$*\" && git pull --no-edit && git push" -'
git config --global alias.nac '!sh -c "nbdev_prepare && git add -A && git commit -m \"$*\" && git pull --no-edit && git push" -'
# with first letter capitalization
git config --global alias.s '!git status'
git config --global alias.pp '!git pull --no-edit && git push'
@Elijas
Elijas / install.sh
Created October 23, 2022 13:37
Install custom python version
pyenv install 3.6.15
virtualenv -p ~/.pyenv/versions/3.6.15/bin/python3.6 .venv
source ./.venv/bin/activate
@Elijas
Elijas / main.py
Last active October 7, 2022 18:56
EscapeTheJail
# Quick and dirty solution to the problem; code should be cleaned up
from pydtmc import MarkovChain
def solve_jail_escape(input_str):
input_ = [list(k) for k in input_str.split('\n')]
start_i, start_j = None, None
target_i, target_j = None, None
for i, row in enumerate(input_):
@Elijas
Elijas / easy_window_drag.ahk
Last active July 11, 2026 20:51
Easy Window Drag (KDE) - Allows to drag/resize windows by clicking and dragging mouse buttons while holding a modifier key. No more sniping the windows corners - just hovering the window becomes enough.
; Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny
; http://www.autohotkey.com
; This script makes it much easier to move or resize a window: 1) Hold down
; the ALT key and LEFT-click anywhere inside a window to drag it to a new
; location; 2) Hold down ALT and RIGHT-click-drag anywhere inside a window
; to easily resize it; 3) Press ALT twice, but before releasing it the second
; time, left-click to minimize the window under the mouse cursor, right-click
; to maximize it, or middle-click to close it.
; This script was inspired by and built on many like it
@Elijas
Elijas / README.md
Last active May 11, 2021 10:50
CompreFace jQuery demo