Skip to content

Instantly share code, notes, and snippets.

--- src/client/contacts.py 2012-10-06 14:32:00.148779992 +0200
+++ - 2012-10-06 14:56:20.841356974 +0200
@@ -361,7 +361,7 @@
numbers = contact.details(QContactPhoneNumber.DefinitionName);
for number in numbers:
- self.contacts.append({"alphabet":label[0].upper(),"name":label,"number":QContactPhoneNumber(number).number(),"picture":avatar});
+ self.contacts.append({"alphabet":label[0].upper(),"name":label,"number":QContactPhoneNumber(number).number().replace(" ","").replace("(","").replace(")",""),"picture":avatar});
return self.contacts;
@juergbi
juergbi / fuse.diff
Created August 20, 2020 15:20
Patch for Docker seccomp profile to allow unprivileged user and mount namespaces (unprivileged FUSE)
--- default.json 2020-08-20 17:12:32.077214836 +0200
+++ fuse.json 2020-08-20 17:12:26.407300355 +0200
@@ -618,54 +618,17 @@
},
{
"names": [
- "clone"
+ "clone",
+ "mount",
+ "umount",
diff --git a/tests/frontend/mirror.py b/tests/frontend/mirror.py
index ef391def8..b58942cf1 100644
--- a/tests/frontend/mirror.py
+++ b/tests/frontend/mirror.py
@@ -839,42 +839,24 @@ def test_source_mirror_plugin(cli, tmpdir):
"name": "middle-earth",
"kind": "mirror",
"aliases": {
- "foo": ["<invalid>"],
- "bar": ["<invalid>"],