Skip to content

Instantly share code, notes, and snippets.

@caot
caot / Wayland.md
Created May 31, 2024 22:09 — forked from probonopd/Wayland.md
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

Double-Ended Spark Plug Thread Chaser
* How To Fix Stripped Spark Plug Threads For Free https://youtu.be/yY_fuDRltZE
@caot
caot / workaround-podman-issue19913.sh
Created March 7, 2024 15:33 — forked from rugk/workaround-podman-issue19913.sh
Workaround script for podman rm (--force) does not work anymore ("container state improper"/"invalid argument" when unmounting) and start neither, see https://github.com/containers/podman/issues/19913
#!/bin/bash
#set -x
# Define the list of containers you want to remove
containers=("nextcloud_redis_1" "nextcloud_db_1" "nextcloud_nc_1")
for container in "${containers[@]}"; do
echo "Now handling $container..."
# First attempt to forcefully remove the container
podman rm --force "$container"
@caot
caot / django_error_test_database_1005.md
Created September 19, 2023 20:10 — forked from rminderhoud/django_error_test_database_1005.md
Fix mysql error 1005 when running django tests

#Django Test Database Error 1005 8/1/2015

Environment

  • Django 1.8.3
  • MySQL 5.5

When running python manage.py test I was receiving the following error

6 steps to a successful machine learning journey
https://www.grammarly.com/plagiarism-checker
https://helpfulpapers.com/chat-gpt-essay-detector
https://www.scribbr.com/plagiarism-checker/
https://copyleaks.com/plagiarism-checker
https://www.paperrater.com/free_paper_grader
https://www.7sistershomeschool.com/high-school-writing-requirements-an-authoritative-guide/
* GE - 15089 7-Day Digital Timer - Setup Guide https://youtu.be/0PrySANKSRs
* 49809 Program Guide Defiant Indoor Digital Timer https://youtu.be/fHosBxKKlnE
wget https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.44.tgz
tar vxf openldap-2.4.44.tgz
cd openldap-2.4.44
export PKGS=$HOME/apps/openldap-2.4.44
./configure --prefix=$PKGS --enable-shared
make depend
make
make install
* PaLM 2
codey
google colaboratory
TyDi QA
* github copilot
* openAI
GPT-4
chatgpt
@caot
caot / LoginRequiredMiddleware.py
Created May 12, 2023 13:26 — forked from brianlittmann/LoginRequiredMiddleware.py
Django middleware component that wraps the login_required decorator around all URL patterns be default, with exceptions. Can also require user to belong to a group ("admin" in this gist) or be adapted if using the Django admin app.
"""
Middleware component that wraps the login_required decorator around all URL patterns be default, with exceptions.
Define PUBLIC_URLS and ADMIN_URLS using regex in settings.py, where:
PUBLIC_URLS do not require user to be logged in.
ADMIN_URLS require user to be in admin group.
Source: http://stackoverflow.com/a/2164224/720054
"""
# settings.py
PUBLIC_URLS = (