Skip to content

Instantly share code, notes, and snippets.

@hula-prose
hula-prose / cloudSettings
Last active December 3, 2022 13:58 — forked from brenopolanski/export-svg-inkscape.md
Exporting object as SVG from Inkscape (quickest way)
{"lastUpload":"2021-07-19T14:02:44.063Z","extensionVersion":"v3.4.3"}
@brenopolanski
brenopolanski / export-svg-inkscape.md
Created December 26, 2017 13:29
Exporting an object as svg from inkscape
  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web
@dAnjou
dAnjou / _.md
Last active November 14, 2023 11:49
Automatically unlock KeePass database with GNOME Keyring

(Tested with KeePassXC on Fedora 25)

By default when using GNOME Keyring you have a keyring that is unlocked when you log in (usually called "Login"). You can make use of that by storing a KeePass database password in this keyring and using it to automatically unlock your KeePass database.

Store the KeePass database password in GNOME Keyring. You'll have to set a label and at least one attribute/value pair. The label is displayed in a GNOME keyring manager (e.g. Seahorse), the attribute/value pair should be a unique identifier because it's needed for the lookup. I suggest to use keepass as attribute and the database name as value (make sure it doesn't contain any spaces).

secret-tool store --label="KeePass <database_name>" keepass <database_name>

Then create a script to launch and immediately unlock your KeePass database.

@zengabor
zengabor / gist:5305917
Last active January 23, 2022 19:16
**Custom prefix for Python unit test methods** (doing BDD in Python and wanted proper prefixes instead of the default 'test' prefix, and pytest had a bug: https://bitbucket.org/hpk42/pytest/issue/284/python_classes-and-python_functions)
import unittest
unittest.TestLoader.testMethodPrefix = 'should'
from unittest import TestCase as Specification
class MyClass(Specification):
def should_do_something():
"""This method with the 'should' prefix will be picked up by test runners"""