Skip to content

Instantly share code, notes, and snippets.

View kortov's full-sized avatar
๐Ÿ’ญ
๐Ÿ‘ ๐Ÿˆ ๐Ÿ’ป ๐ŸŽธ ๐Ÿ’

Eugene Kortov kortov

๐Ÿ’ญ
๐Ÿ‘ ๐Ÿˆ ๐Ÿ’ป ๐ŸŽธ ๐Ÿ’
View GitHub Profile
@talon
talon / README.md
Last active September 23, 2025 09:55
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell
@NickBarreto
NickBarreto / iBooks popups which degrade nicely in other devices
Last active September 3, 2024 10:37
How to create popup footnotes in iBooks which degrade well for other EPUB3 readers
The only requirements for popup footnotes in iBooks are:
* Ebook has to be an EPUB3
* epub:type "noteref" and "footnote"
So you can link to a totally separate document, as you normally would for endnotes,
but include the attributes so the <a> link behaves differently in iBooks, instead triggering the popup.
Original reference link would look something like this (in a file called ch001.html):
<a epub:type="noteref" href="footnote.html#note1">1</a></div>
@dunhamsteve
dunhamsteve / fixfootnotes.py
Created March 25, 2014 05:10
This is a rough script to rewrite footnotes in an epub file to match what iBooks expects for pop-up footnotes. I'm posting it in case it is useful to someone.
#!/usr/bin/python
# Written and placed in the public domain by Steve Dunham
# Tries to find footnotes in an epub and transform them into iBooks/epub3 popup footnotes.
#
# This works with a couple of Terry Pratchett books, it will probably need tweaking for other books.
# This script tries to:
#
# - find the footnote links
@sixman9
sixman9 / groovyMap2List.txt
Created July 25, 2012 10:54
Turn/convert a map into a list in Groovy
def m = [a:b, c:d]
def l = []
m.each() { k, v -> l << k }
Alternatively:
def m = new TreeMap([a:b, c:d])
then use m.keySet().each() ...