Skip to content

Instantly share code, notes, and snippets.

View eloydegen's full-sized avatar

Eloy eloydegen

  • The Netherlands
View GitHub Profile
#!/usr/bin/env python3
import requests
import sys
import json
from datetime import date, timedelta
def time_calc(time_str):
if time_str.endswith("AM"):
time_str = time_str.strip("AM")
@eloydegen
eloydegen / android-store-definitions.md
Created June 9, 2021 22:49 — forked from konsumer/android-store-definitions.md
Android store device definition files
Name API Link
alps 875 (api19) 19 875
OPPO 1201 (api22) 22 1201
vivo 1601 (api24) 24 1601
vivo 1603 (api23) 23 1603
vivo 1606 (api23) 23 1606
vivo 1610 (api23) 23 1610
vivo 1716 (api25) 25 1716
vivo 1718 (api25) 25 [171
@eloydegen
eloydegen / vpn.md
Created January 8, 2020 23:45 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

A Russian translation of this article can be found here, contributed by Timur Demin. There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Why not?

@eloydegen
eloydegen / aob.py
Created September 20, 2018 11:07 — forked from anonymous/aob.py
All of Bach media extraction
#!/usr/bin/python
# Audio extraction script for All of Bach:
# http://allofbach.com/en/
import re
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://allofbach.com/en/bwv/')
soup = BeautifulSoup(page)
@eloydegen
eloydegen / aob.py
Created September 20, 2018 11:07 — forked from anonymous/aob.py
All of Bach media extraction
#!/usr/bin/python
# Audio extraction script for All of Bach:
# http://allofbach.com/en/
import re
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://allofbach.com/en/bwv/')
soup = BeautifulSoup(page)
@eloydegen
eloydegen / mininet.py
Created April 2, 2018 14:42
Mininet topology
#!/usr/bin/python
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import Controller
class MyTopo( Topo):
"Simple topology example."
def __init__( self ):
"Create custom topo." # initialize topology
Topo.__init__( self )
@eloydegen
eloydegen / gpio.sh
Created December 9, 2016 14:11
Check all GPIO pins
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Run this script as root"
exit
fi
cd /sys/class/gpio
touch export
for i in {1..27}
do
### Keybase proof
I hereby claim:
* I am eloydegen on github.
* I am eloydegen (https://keybase.io/eloydegen) on keybase.
* I have a public key whose fingerprint is B637 F76B A49B 8FEF 872F 1EC4 D9F5 12B4 F73D DD92
To claim this, I am signing this object: