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 / 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 / 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 / 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 / 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 / parse_set_cookie.py
Created May 23, 2018 09:55
werkzeug parse_set_cookie
@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

$ 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 / 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>