Skip to content

Instantly share code, notes, and snippets.

@KarimAziev
KarimAziev / picamera2-manual.md
Last active November 1, 2025 11:49
I converted the Picamera 2 PDF manual (2025-03) to Markdown because, apparently, the Raspberry Pi Foundation couldn't be bothered to provide one. #md
@KarimAziev
KarimAziev / build_openscad.sh
Created July 17, 2025 06:56
Build Openscad #sh
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
set -e
set -o pipefail
git clone [email protected]:openscad/openscad.git
cd openscad
@KarimAziev
KarimAziev / firefox-frustration.txt
Created July 13, 2025 14:27
Firefox Frustration #txt
I have to say - as the developer of such "insecure" extension (Chrome-Emacs), I'm baffled by this "insecure” label. Every time I update my add-on, I submit the full source code and detailed instructions, yet it seems that no one ever really looks at what I provide. It feels like my work is automatically dismissed, and I'm being penalized just because it didn't go through some manual review process I can't even influence.
What exactly does "actively monitored” mean? If my extension were truly dangerous, this would be highlighted with concrete evidence or specific criteria. Instead, it simply gets tagged with a warning that nothing more is expected from me. It's hard not to feel brushed aside by a process that appears to rely more on automated checks than genuine security evaluations.
I'm all for keeping users safe, but by lumping all non-"Recommended” extensions into the same category, it feels like you're ignoring the effort and transparency many developers like me put into our work. Clear guidance on how to
@KarimAziev
KarimAziev / firefox-frustration.txt
Created July 13, 2025 14:24
Firefox Frustration #txt
I have to say - as the developer of such "insecure" extension (Chrome-Emacs), I'm baffled by this "insecure” label. Every time I update my add-on, I submit the full source code and detailed instructions, yet it seems that no one ever really looks at what I provide. It feels like my work is automatically dismissed, and I'm being penalized just because it didn't go through some manual review process I can't even influence.
What exactly does "actively monitored” mean? If my extension were truly dangerous, this would be highlighted with concrete evidence or specific criteria. Instead, it simply gets tagged with a warning that nothing more is expected from me. It's hard not to feel brushed aside by a process that appears to rely more on automated checks than genuine security evaluations.
I'm all for keeping users safe, but by lumping all non-"Recommended” extensions into the same category, it feels like you're ignoring the effort and transparency many developers like me put into our work. Clear guidance on how to
@KarimAziev
KarimAziev / debug_polygon.scad
Created June 10, 2025 18:49
Debug Polygon #scad
module debug_polygon(points, paths=undef, convexity=undef, debug=false,
arrow_size=1, font_size=4, font_color="red",
show_arrows=true) {
polygon(points=points, paths=paths, convexity=convexity);
if (debug) {
for (i = [0 : len(points) - 1]) {
pt = points[i];
@KarimAziev
KarimAziev / km-lsp-tailwind.el
Last active March 20, 2025 11:21
Km Lsp Tailwind #el
(defvar km-tailwind-candidates nil)
(defun km-tailwind--serialize (data filename)
"Serialize DATA to FILENAME.
The saved data can be restored with `km-tailwind--unserialize'."
(when (file-writable-p filename)
(with-temp-file filename
(insert
@KarimAziev
KarimAziev / cv2_install_in_venv.sh
Last active January 17, 2025 08:37
CV2 venv installation #sh
#!/bin/sh
# Uninstall the pre-existing "opencv-python" package, if any, which may have been installed as a pre-built binary
pip uninstall opencv-python -y
# Install essential dependencies for compiling OpenCV with desired features
# These include tools for building software (build-essential, cmake, python3-dev)
# and libraries for multimedia (GStreamer, FFmpeg, libav), image I/O (libpng, libjpeg, libtiff, etc.),
# GUI functionality (libgtk-3-dev), and Python bindings (python3-numpy).
sudo apt install build-essential cmake git python3-dev python3-numpy \

elemental — intuitive defaults

;; Author: Henrik Kjerringvåg
;; Url: https://github.com/hkjels/elemental
;; Version: 0.0.1
;;; Commentary:
;; Elemental changes a lot of default configurations of Emacs to
;; be more intuitive and to improve performance.
;;
@KarimAziev
KarimAziev / guide-raspberry-ssh.md
Created November 25, 2024 18:13
Guide Raspberry Ssh beginners #md

Guide for Setting up Raspberry Pi WiFi and SSH

🪐 Overview

This guide will help you set up your Raspberry Pi to connect via WiFi and SSH and run your robot (Pidog or Picar-X). For most steps, we'll use the Raspberry Pi GUI to keep things beginner-friendly. If you're comfortable with advanced tools, there’s a secret advanced section for configuring wpa_supplicant directly.


📋 Setup Checklist

@KarimAziev
KarimAziev / km_video_car.py
Created August 6, 2024 16:56
Picar-x controlling car with video #py #picar-x
# #!/usr/bin/env python3
from picarx import Picarx
from vilib import Vilib
from time import sleep, time, strftime, localtime
import readchar
from robot_hat.utils import reset_mcu
from robot_hat import Music
from os import geteuid, getlogin, path
from google_speech import Speech