Skip to content

Instantly share code, notes, and snippets.

@boxabirds
boxabirds / .cursorrules
Last active October 29, 2025 23:48
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
from telethon import TelegramClient, events, sync
from telethon.tl.types import DocumentAttributeVideo
api_id = yourAPIIDInteger
api_hash = yourAPIhashString
client = TelegramClient('session_name', api_id, api_hash)
client.start()
ids=[]
firstnames=[]
lastnames=[]
@lwrubel
lwrubel / csv-to-ris-format.py
Last active December 21, 2022 20:56
Convert csv exported from Google Sheets to RIS format. To use: python csv-to-ris-format.py infile.csv outfile.txt
#!/usr/bin/env python
# To use:
# python csv-to-ris-format.py csvfile.csv risoutput.txt
#
# Assumes you have removed the header row from the csv file,
# columns are in the same order as the labels list,
# and there are no other columns in the csv.
import csv
from sys import argv

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: