Skip to content

Instantly share code, notes, and snippets.

@atomlab
atomlab / README.md
Last active August 31, 2024 11:40
PDF2DOCX_RUS_LANGUAGE

PIP deps

pip install pytesseract pdf2image python-docx pypdf

Install tesseract-lang

brew install tesseract-lang
@atomlab
atomlab / Cloudflare–Restrict_Tunnel_Access_by_IP_Address.md
Last active January 3, 2025 17:25
Cloudflare – Restrict Tunnel Access by IP Address
  1. Find the "Access Groups" section
  2. Click the "Create Group" button
  3. Enter group name: allow-ips
  4. Add IP addresses or ranges that should not be restricted.

Screenshot_20250103_195507

  1. Then go to the "Applications" section and create a new application by clicking the "Add an Application" button.

Screenshot_20250103_195718_edit

@atomlab
atomlab / talos_nft_list_ruleset_issue_fix.md
Last active February 20, 2025 19:59
Talos. nft list ruleset. netlink: Error: cache initialization failed: Operation not permitted

Encountered an error in Talos when running nft list ruleset

% kubectl debug -n kube-system -it --image alpine node/$NODE
/ # apk add nftables
/ # nft list ruleset
netlink: Error: cache initialization failed: Operation not permitted

The issue was related to security capabilities and was resolved by using --profile=sysadmin:

@atomlab
atomlab / linguist_translator_openai_support.md
Created March 1, 2025 19:13
linguist Translator OpenAI support
@atomlab
atomlab / Pacman_exists_in_filesystem_errors.md
Last active March 24, 2025 15:34
Pacman: "exists in filesystem" errors

Wokraround

pacman -S --overwrite "*" <package_name>

Also

pacman -Qnq | pacman -S - --overwrite '*'