Skip to content

Instantly share code, notes, and snippets.

View karolzlot's full-sized avatar
🏠
Working from home

Karol Zlot karolzlot

🏠
Working from home
View GitHub Profile
@karolzlot
karolzlot / stack question.md
Last active July 14, 2022 12:57
Get differences between two lists of dictonaries (result as two differences lists) in Python - this is a draft for a question which finally landed here: https://stackoverflow.com/questions/68091970/get-differences-between-two-lists-of-dictionaries-result-as-two-differences-lis

I have two lists of dictonaries. They contain gmail labels and filters. I need to get differences between them in form of two differences lists. I want order of the elements to be preserved.

Example:

a=[
	{'name': 'label_a'},
	{'color': {'background': '#42d692', 'text': '#094228'}, 'name': 'label_b'},
@karolzlot
karolzlot / bwa, samtools, bcftools on WSL.txt
Last active February 23, 2021 07:35
Install bwa, samtools & bcftools on Windows WSL (Ubuntu)
# tested on WSL 2, Ubuntu 18.04 LTS
# needed for bwa & samtools
sudo apt-get install build-essential make libz-dev -y
# needed for samtools
sudo apt-get install cwltool libc-ares2 libhttp-parser2.7.1 libjs-bootstrap nodejs nodejs-doc python python-asn1crypto python-avro python-cachecontrol python-certifi python-cffi-backend python-chardet python-cryptography python-enum34 python-html5lib python-idna python-ipaddress python-isodate python-lockfile python-mistune python-openssl python-pkg-resources python-pyparsing python-rdflib python-rdflib-jsonld python-requests python-ruamel.yaml python-schema-salad python-shellescape python-six python-sparqlwrapper python-typing python-urllib3 python-webencodings -y
sudo apt-get install libncurses5-dev -y
# sudo apt-get remove zlib1g-dev -y
sudo apt-get install zlib1g-dev -y