Skip to content

Instantly share code, notes, and snippets.

View marccarre's full-sized avatar

Marc Carré marccarre

View GitHub Profile
@marccarre
marccarre / springer.py
Last active May 26, 2020 15:12
Download all open Springer ebooks
#!/usr/bin/env python
'''
Springer has released some ebooks freely in order to support learning during
these times of lockdown with the COVID-19 spreading.
Source: https://www.springernature.com/gp/librarians/news-events/all-news-articles/industry-news-initiatives/free-access-to-textbooks-for-institutions-affected-by-coronaviru/17855960
A spreadsheet containing the URLs of all available books can be found on the
aforementioned page. These URLs have been hardcoded below. And this script
lets you download all books automatically.
@marccarre
marccarre / leetcode-ranking.py
Last active July 19, 2020 06:24
leetcode-ranking.py
#!/usr/bin/env python
'''
Usage:
./leetcode-ranking.py -c 198 marccarre Hydromail daisuke834
2400 marccarre 96
2895 Hydromail 116
6666 daisuke834 267
Prerequisites:
- pipenv install click==7.1.2
@marccarre
marccarre / list_kindle_releases.py
Created October 24, 2020 08:46
List all available versions of Kindle for Mac and Kindle for PC.
#!/usr/bin/env python
'''
List all available versions of Kindle for Mac and Kindle for PC.
Dependencies:
- asyncio==3.4.3
- aiohttp==3.6.3
'''
import os
import sys
@marccarre
marccarre / README.md
Last active October 26, 2023 20:47
Vagrant on Apple M1

Vagrant on Apple M1

Summary:

  • QEMU: ✅ (but few boxes)
  • libvirt: ❎ (suggestions welcome!)
  • Parallels: ✅ (but few boxes)
  • VMWare Fusion: ✅ (but few boxes)
  • VirtualBox: ❎ (timeout)