Skip to content

Instantly share code, notes, and snippets.

@dhondta
dhondta / README.md
Last active February 10, 2024 10:30
Tinyscript steganography tool based on base32/64 padding

Paddinganograph

This Tinyscript-based tool allows to unhide data hidden in base32/base64 strings. It can take a PNG or JPG in input to retrieve an EXIF value as the input data.

This can be installed using:

$ pip install tinyscript
$ tsm install paddinganograph
@larsks
larsks / lxmlexample.md
Created September 1, 2016 04:26
Writing XML doctype and processing instructions with lxml

If you use lxml.etree, you can write an XML processing instruction (<? ... ?>) like this:

>>> from lxml import etree
>>> doc = etree.ElementTree(etree.fromstring('<data/>'))
>>> doc.getroot().addprevious(etree.ProcessingInstruction('xml', 'version=1.0'))
>>> print etree.tostring(doc)
<?xml version=1.0?><data/>

You can set doctype attribute when writing your XML by setting the doctype parameter of, e.g., etree.tostring:

@nicolashery
nicolashery / solarized-dark.css
Last active March 25, 2022 08:38 — forked from scotu/solarized.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content