Skip to content

Instantly share code, notes, and snippets.

elmimmo

Block or report user

Report or block elmimmo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elmimmo
elmimmo / DumpCD.tool
Last active Jul 31, 2019
Dump contents of optical media upon inserting, then eject and repeat. (requires macOS)
View DumpCD.tool
#!/bin/bash
# Dump contents of optical media upon inserting, then eject and repeat.
#
# Requires macOS.
#
# If ran without the appropriate env variables, it will ask for:
# * destination
# * order no. to be recorded for the first media being copied. The orden no.
# of each copy which will be logged into a CSV file created in _destination_
@elmimmo
elmimmo / center-images.xhtml
Last active Oct 27, 2017
Center images in ebooks
View center-images.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<title>Centering images in ebooks</title>
<!-- <link rel="stylesheet" type="text/css" href="style.css"/> -->
<style type="text/css">
.center-image {
@elmimmo
elmimmo / after-toc.ncx
Last active Mar 8, 2016
The NCX DOCTYPE is not required in EPUB 2, and you are actually better off without it. See why.
View after-toc.ncx
<?xml version="1.0" encoding="UTF-8"?>
<ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx/">
<head>
<meta name="dtb:uid" content="urn:uuid:e04c4d19-57af-4495-a8c8-882695b7c8dc" />
</head>
<docTitle>
<text/>
</docTitle>
<navMap>
<navPoint id="title_page">
@elmimmo
elmimmo / local.shared.savethemblobs.plist
Last active Jan 23, 2018
Script to schedule automated batch-downloading of all SHSH blobs from Apple that it's currently signing for all iOS devices you own. You are expected to have ran TinyUmbrella at east once. Requires https://github.com/Neal/savethemblobs.
View local.shared.savethemblobs.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.shared.savethemblobs</string>
<key>LowPriorityIO</key>
<true/>
<key>Nice</key>
<integer>19</integer>
@elmimmo
elmimmo / drae22.js
Created Oct 23, 2013
Bookmarklet para buscar una palabra (la seleccionada, si hay alguna) en el Diccionario de la Real Academia de la Lengua Española (RAE)
View drae22.js
javascript:void(q=window.getSelection?window.getSelection():(document.getSelection?document.getSelection():(document.selection?document.selection.createRange().text:'')));if(q=='')void(q=prompt('Introduce%20una%20palabra%20para%20buscarla%20en%20el%20DRAE:',''));if(q)%7Bvoid(window.open('http://drae22.rae.es/'+encodeURIComponent(q)));%7D;
@elmimmo
elmimmo / palette.sh
Last active Dec 18, 2015
Creates an image with a palete of swatches of the most common colors in an image, and their hexadecimal code, ordered by higher frequency from left to right.
View palette.sh
#!/bin/bash
# Creates an image with a palete of swatches of the most common colors in an
# image, and their hexadecimal code, ordered by higher frequency from left to
# right.
#
# Requires Imagemagick.
#
# Author: Jorge Hernández Valiñani
@elmimmo
elmimmo / selectAllTumblrPosts.js
Last active Jan 24, 2018
Select all posts in Tumblr Mass Post Editor
View selectAllTumblrPosts.js
var my_array = document.querySelectorAll('[id^=post_]');
var i;
for (i = 0; i < Math.min(my_array.length, 100); i += 1) {
my_array[i].click();
}
@elmimmo
elmimmo / cover.xhtml
Last active Dec 14, 2015
Display an image full-screen, proportionally, in HTML using SVG
View cover.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<title> </title>
<style type="text/css">
html, body {
height: 100%;
width: 100%;
@elmimmo
elmimmo / SmartyPants Readme.txt
Created Jul 9, 2012
Unicode SmartyPants (unofficial)
View SmartyPants Readme.txt
SmartyPants
===========
by John Gruber
http://daringfireball.net/
Version 1.5.1 - Fri 12 Mar 2004
SmartyPants is a free web publishing plug-in for Movable Type, Blosxom,
@elmimmo
elmimmo / autoingestion.sh
Last active Oct 6, 2015
Script to schedule automated batch-downloading of Apple's App Store and iBookStore sales reports using Apple's AutoIngestion tool
View autoingestion.sh
#!/bin/bash
# `autoingestion.sh` downloads Apple iOS App Store sales data. It will
# download it to the same folder the script is running from, and group
# the downloaded files into directories by report type.
#
# It will only attempt to download if new sales data should be
# available.
#
# As skipping already downloaded files depends on the filename pattern
You can’t perform that action at this time.