Skip to content

Instantly share code, notes, and snippets.

Manuel Riel m3nu

Block or report user

Report or block m3nu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@m3nu
m3nu / unroot.md
Last active Aug 19, 2019
Unroot Android using Magisk to run Banking Apps
View unroot.md

Unroot Android Phone Using magiskboot

Settings in default.prop can prevent banking apps from working:

ro.secure=0  # should be 1
ro.debuggable=1  # should be 0

Sometimes (e.g. on LineageOS) you can edit those values directly on /system:

@m3nu
m3nu / test.sh
Created May 24, 2019
Mount Borg Repo for Other Users
View test.sh
# Tested on CentOS7/AWS
$ sudo adduser borg-1
$ sudo adduser borg-2
$ sudo yum install -y borgbackup
$ sudo mkdir /mnt/repo
$ sudo chown borg-1:borg-1 repo
# Allow access to other users
$ sudo -u borg-1 borg mount -o allow_other w66xh7lj@w66xh7lj.repo.borgbase.com:repo /mnt/repo
$ ll
View md2pdf.css
/* Optional CSS to customize fonts, colors, syntax highlighting. */
/* Normal */
@font-face {
font-family: Roboto;
src: url(~/Library/Fonts/Roboto/Roboto-Light.ttf);
}
/* Bold */
@font-face {
@m3nu
m3nu / simpletreemodel.py
Last active Nov 23, 2018
QTreeView with Custom QAbstractItemModel and Lazy Loading
View simpletreemodel.py
"""
This is an adjusted version of the official simpletreemodel[1] that adds lazy loading and uses a dict as backend.
Instead of the dict it could also use a database or similar. Items are only loaded when expanded, which allows
for speedy startup-time, even with 2.5m items.
1: https://github.com/baoboa/pyqt5/tree/master/examples/itemviews/simpletreemodel
"""
import sys
@m3nu
m3nu / tensorflow-Ubuntu.yml
Last active Mar 4, 2019
Ansible Playbook to set up Tensorflow and Keras on Ubuntu 16.04
View tensorflow-Ubuntu.yml
---
- name: Install Tensorflow and Keras on ubuntu1604
hosts: all
become: yes
handlers:
- include: roles/common/handlers/main.yml
vars:
- cuda_network_installer: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
- cuda_apt_key: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
@m3nu
m3nu / wp-version-check.py
Last active Feb 7, 2017
Find sites vulnerable to Wordpress Content Injection Vulnerability. For background see http://blog.snapdragon.cc/2017/02/07/find-sites-vulnerable-to-wordpress-content-injection-vulnerability/
View wp-version-check.py
import xml.etree.ElementTree as ET
import requests
import re
import logging as log
log.basicConfig(level=log.ERROR)
log.getLogger("requests").setLevel(log.WARNING)
# USAGE:
# 1. Run Nmap on your hosts. This will already match some versions.
@m3nu
m3nu / 0_reuse_code.js
Created Sep 26, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@m3nu
m3nu / uber-ride-history.py
Created Mar 6, 2016
Semi-manual python script to download your ride history including prices.
View uber-ride-history.py
#!/usr/bin/env python2
"""
Semi-manual script to download trips and cost.
Currently needs manual steps in 2 places. And chrome-selenium.
(or any other Selenium browser)
You also want to adapt the currencies to your needs.
@m3nu
m3nu / cloudflare-update.py
Created Jan 19, 2016
Python Cloudflare Dynamic DNS Update script
View cloudflare-update.py
#!/usr/bin/env python
"""
Update Cloudflare zone entry to current external IP.
Works great with servers on changing IPs or AWS spot instances.
Usage:
python cloudflare_update.py subdomain
@m3nu
m3nu / md2pdf.py
Last active Nov 21, 2016
md2pdf - Command line Markdown to PDF converter with support for CSS stylesheets and custom fonts
View md2pdf.py
#!/usr/bin/env python
import os
import sys
from markdown2 import markdown
from xhtml2pdf import pisa
"""
## Inspired by
You can’t perform that action at this time.