I hereby claim:
- I am mg6 on github.
- I am mgamrat (https://keybase.io/mgamrat) on keybase.
- I have a public key ASCbLDWlU__v15rzLlBWV3kTpdNynyXaDtZ7pIISeDDG3wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
A Pen by Julian Garnier on CodePen.
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
this fork downloads all formats and does so without using jquery (since that didnt work for me) | |
note that if you are in chrome, chrome will not download the pdfs for you by default, to fix this | |
type “about:plugins” in the address bar and disable chrome's pdf viewer | |
*/ | |
var pattern = /(MOBI|EPUB|PDF|PDF( ?\(H.\))?|CBZ|Download)$/i; |
#!/bin/bash | |
# MIT License | |
# | |
# Copyright (c) 2018 Maciej Gamrat <maciej@gamrat.it> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
#!/bin/bash | |
# MIT License | |
# | |
# Copyright (c) 2018 Maciej Gamrat <maciej@gamrat.it> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
#!/bin/bash | |
export LC_ALL=C | |
curl -s "http://speedtest-ams2.digitalocean.com/" \ | |
| grep -Eo "speedtest\-.+.digitalocean.com" \ | |
| while read -r addr; do | |
echo -n "$addr " | |
ping -c5 -w3 "$addr" | tail -1 | awk -F / -- '{print $5, $0}' | |
done |
#!/bin/bash | |
# MIT License | |
# | |
# Copyright (c) 2016 Maciej Gamrat | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
#!/bin/bash | |
# Public domain. | |
curl -sSL "http://www.helax.cz/playlist" | | |
xmllint --html --format - 2>/dev/null | | |
awk -- 'match($0, /data-target="#pl-d([0-9]+)"/, m) {d = m[1]}; match($0, /class="time"[^0-9]+([0-9:]+)<.+span> +(.+) +<\/li/, m) {print d, m[1], m[2]}' |
#!/usr/bin/env python3 | |
# | |
# wu.py - W-machine interpreter written in Python | |
# Copyright (C) 2015 Maciej Gamrat <maciej@gamrat.it> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |