Skip to content

Instantly share code, notes, and snippets.

View scrool's full-sized avatar

Pavol Babinčák‏ scrool

View GitHub Profile
@scrool
scrool / pipx_python_version_mismatch.md
Created November 26, 2023 13:30
pipx not able to install packages after upgrade from Fedora 38 to Fedora 39
$ pipx install git+https://github.com/Softcatala/whisper-ctranslate2
  File "/usr/lib/python3.12/site-packages/pipx/main.py", line 863, in cli
    return run_pipx_command(parsed_pipx_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pipx/main.py", line 214, in run_pipx_command
    return commands.install(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pipx/commands/install.py", line 30, in install
    package_name = package_name_from_spec(
@scrool
scrool / digikam_export_duplicates
Created January 9, 2022 15:34
Read exact duplicates from Digikam Sqlite3 database as csv
attach 'similarity.db' as similarity;
attach 'digikam4.db' as digikam4;
SELECT (a1.identifier || a1.relativePath || '/' || x.di1_name) AS Image1,
(a2.identifier || a2.relativePath || '/' || x.di2_name) AS Image2
FROM (SELECT similarity.ImageSimilarity.value, di1.name AS di1_name, di1.album AS di1_album, di2.name AS di2_name, di2.album AS di2_album
FROM similarity.ImageSimilarity
JOIN digikam4.Images AS di1 ON di1.id = imageid1
JOIN digikam4.Images AS di2 ON di2.id = imageid2
WHERE value=1.0
#!/usr/bin/bash
# Reads WiFi connections managed by NetworkManager. Ignores connections
# not in ifcfg-rh format
# <https://developer.gnome.org/NetworkManager/stable/nm-settings-ifcfg-rh.html>
# Leaves out UUID, HWADDR and NAME from comparison of config file content.
# If any files are duplicated, removes oldest connections based on timestamp
set -eu
set -o pipefail

Shell Motorsport Bluetooth Remote Control

Shell Motorsport collection

Shell Oil Company in its gas station offers loyalty program under name Shell ClubSmart. Members collect points which can be later used to get rewards. In 2020 they have offered a collection of die-cast car models under name Shell Motorsport. All models of the colletion are equipped with electrical motor. One of the models - Nissan Formula E Gen 2 Car - contains a battery that can be used to control a model remotely over Bluetooth. In some markets a battery with

@scrool
scrool / xled-release-checklist.md
Last active January 2, 2018 20:29 — forked from audreyfeldroy/pypi-release-checklist.md
Xled Release Checklist
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for version 0.1.1"
  • Update version number (can also be minor or major)
bumpversion patch
@scrool
scrool / download_zeal_user_docsets.py
Last active December 31, 2017 11:14 — forked from crmne/download_zeal_user_docsets.py
A solution to the lack of UI for Dash's user docsets in Zeal. Uses Python 3 and easygui (pip3 install easygui)
import os
import json
import tarfile
import urllib.request
import easygui
import configparser
user_docsets_url = 'https://dashes-to-dashes.herokuapp.com/docsets/contrib'
app_title = 'Download Zeal user docsets'
_ = '_ = "Red Hat loves Python!"\n\
print _.replace("Red Hat\
loves Python!", repr(_), 1)'
print _.replace("Red hat loves Python!",
repr(_), 1)