Skip to content

Instantly share code, notes, and snippets.

@bl00m
bl00m / parse_vcf.py
Last active November 25, 2022 15:12
Read VCF (vCard) contact export file and print phone numbers
#!/bin/env python3
import sys
VCF_FILE = './contacts.vcf'
def main():
alist = []
with open(VCF_FILE, 'r') as f:
vcard = None
@bl00m
bl00m / wallabag_share_creds.patch
Last active May 17, 2019 13:35
Patch wallabag to share credentials between users
This patch allow wallabag users to share credentials.
One user can add creds that only him can manage but that all users can use to unlock articles.
diff --git a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php
index 548de74..eb4735c 100644
--- a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php
+++ b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php
@@ -26,10 +26,21 @@ class SiteCredentialController extends Controller
{
$this->isSiteCredentialsEnabled();
@bl00m
bl00m / pwgen.py
Last active April 26, 2017 13:24
Use scrypt to derive a password in a 24 chars string in base64
#!/usr/bin/env python
# Usage : pwgen.py [salt]
import scrypt
import getpass
import base64
import pyperclip
import time
import sys