Skip to content

Instantly share code, notes, and snippets.

View adefelicibus's full-sized avatar

Alexandre Defelicibus adefelicibus

  • A.C.Camargo
  • Brazil
View GitHub Profile
#!/usr/bin/env python3
import requests
import hashlib
import getpass
password = getpass.getpass()
hash = hashlib.sha1(password.encode("utf8")).hexdigest().upper()
head, rest = hash[:5], hash[5:]
r = requests.get("https://api.pwnedpasswords.com/range/%s" % head)
@adefelicibus
adefelicibus / snakefile
Last active July 19, 2018 19:15
Snakemake log issue #912
# Create the directory fake/test and the file fake/test/sample.Mutect2.snpSift.vcf.gz
# Run on cluster, example:
# snakemake --cluster 'bash ' -j1 -p
rule all:
input:
expand(
"fake/test/{t}.Mutect2.snpSift.hardfilter.vcf.gz",
t=['sample']),