Skip to content

Instantly share code, notes, and snippets.

View ergoithz's full-sized avatar
🚚
Moved to gitlab.com/ergoithz

Felipe A. Hernandez ergoithz

🚚
Moved to gitlab.com/ergoithz
View GitHub Profile
@ergoithz
ergoithz / subscriptions_to_opml.py
Created November 20, 2020 13:19
CODE | PY | Youtube subscriptions.json to OPML
#!/bin/env python
import pathlib
import json
import datetime
import html
tpl_file = '''
<opml version="1.1">
<head><title>Superduper exporter 9000</title><dateCreated>{today}</dateCreated></head>
$ PYENV_DEBUG=1 pyenv install
+ [pyenv:22] enable -f /home/orpheus/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath
+ [pyenv:29] '[' -z '' ']'
++ [pyenv:31] type -p greadlink readlink
++ [pyenv:31] head -1
+ [pyenv:31] READLINK=/sbin/readlink
+ [pyenv:32] '[' -n /sbin/readlink ']'
+ [pyenv:57] '[' -z '' ']'
+ [pyenv:58] PYENV_ROOT=/home/orpheus/.pyenv
+ [pyenv:62] export PYENV_ROOT
@ergoithz
ergoithz / README.md
Last active July 12, 2019 11:49
#movingtogitlab

#movingtogitlab

This project have been moved to GitLab because of the Microsoft's acquisition of GitHub.

Rationale

I do not feel comfortable letting Microsoft to keep my code and snoop into my development workflow. They have a long track of both anticompetitive and anticonsumer behavior, industrial espionage, office bribery, patent trolling and direct attack to the open-source community as a whole.

Links

Profile: gitlab.com/ergoithz

@ergoithz
ergoithz / parse_set_cookie.py
Created May 23, 2018 09:55
werkzeug parse_set_cookie
@ergoithz
ergoithz / circle-rectangle.ipynb
Last active January 26, 2018 21:49
Jupyter circle-rectangle plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ergoithz
ergoithz / foxyproxy.json
Last active January 5, 2018 12:42
My FoxyProxy SOCKS5 preset
{
"mode": "patterns",
"proxySettings": [
{
"title": "Local SOCKS5",
"type": 3,
"color": "#66cc66",
"address": "localhost",
"port": 8527,
"active": true,
@ergoithz
ergoithz / duperom.py
Last active July 14, 2017 11:47
Interactive rule-based duplcated ROM removal tool
import re
import os
import os.path
import itertools
class FILTERS:
TIERS = [
@ergoithz
ergoithz / etc > modprobe.d > mk_arcade_joystick.conf
Created July 13, 2017 18:33
Game Pie Advance config files
#Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk
options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,20
@ergoithz
ergoithz / regexp.md
Last active February 16, 2020 09:04

ISODATE

^(\d{4}-((0[1-9]|1[0-2])-([0-1][1-9]|[12][0-8])|(0[13-9]|1[012])-(29|30)|(0[13578]|1[02])-31)|(\d\d(0[48]|[2468][048]|[13579][26])|(0[48]|[2468][048]|[13579][26])00)-02-29)$

Regular expression visualization

Debuggex Demo

@ergoithz
ergoithz / magisk.g5.howto.md
Last active August 30, 2021 20:35
LG G5 MAGISK-ROOT HOWTO

LG G5 (H850) TWRP & MAGISK (ROOT)

This tutorial shows the entire process of oficially unlocking, TWRP recovery flashing, and Magisk rooting your european LG G5.

Important

  • Unlocking bootloader wipes all your phone data, backup first.
  • Do not flash no-verity-opt-encrypt.zip, it causes random issues and it's not needed unless you want a writable system partition, and you probably don't (it prevent stock roms from being updated).
  • DO NOT WIPE data partition: As long user-data partition is encrypted with a key stored there, it will be no longer available.
  • If you have working root support, remove it (binary and application) before installing Magisk.
  • Root APPs with Magisk-related issues:
  • All non-magisk root managers.