Skip to content

Instantly share code, notes, and snippets.

View lgrachov's full-sized avatar
🌧️
I love rain!

Lev lgrachov

🌧️
I love rain!
View GitHub Profile
@lgrachov
lgrachov / download-iterm.sh
Last active May 28, 2026 19:10
Auto-install iTerm
#!/usr/bin/env bash
# Use like: `curl -L https://tr.ee/iqzI19 | bash`
set -e
URL="https://iterm2.com/downloads/stable/latest"
ZIP="/tmp/iterm2-latest.zip"
APP="/Applications/iTerm.app"
if command -v curl >/dev/null 2>&1; then
curl -L "$URL" -o "$ZIP"
@lgrachov
lgrachov / fib.py
Created July 20, 2024 19:29
Fibonacci GUI in Python
# fib.py
# Written by Lev Grachov
# Import Tkinter
# If you get module not installed, then run this command:
# For Linux: `sudo apt-get install python3-tk`
# For Windows: `pip install tk`
# For macOS: `brew install python-tk`
from tkinter.simpledialog import askinteger
from tkinter import *