Skip to content

Instantly share code, notes, and snippets.

View m3nu's full-sized avatar

Manu m3nu

View GitHub Profile
m3nu /
Last active August 19, 2021 00:16
Unroot Android using Magisk to run Banking Apps

Unroot Android Phone Using magiskboot

Moved to here.

m3nu /
Created May 24, 2019 01:22
Mount Borg Repo for Other Users
# 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 /mnt/repo
$ ll
/* 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 /
Last active May 25, 2024 22:36
QTreeView with Custom QAbstractItemModel and Lazy Loading
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.
import sys
m3nu / tensorflow-Ubuntu.yml
Last active March 4, 2019 11:52
Ansible Playbook to set up Tensorflow and Keras on Ubuntu 16.04
- name: Install Tensorflow and Keras on ubuntu1604
hosts: all
become: yes
- include: roles/common/handlers/main.yml
- cuda_network_installer:
- cuda_apt_key:
m3nu /
Last active February 7, 2017 04:57
Find sites vulnerable to Wordpress Content Injection Vulnerability. For background see
import xml.etree.ElementTree as ET
import requests
import re
import logging as log
# 1. Run Nmap on your hosts. This will already match some versions.
m3nu / 0_reuse_code.js
Created September 26, 2016 05:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
m3nu /
Created March 6, 2016 05:31
Semi-manual python script to download your ride history including prices.
#!/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 /
Created January 19, 2016 07:08
Python Cloudflare Dynamic DNS Update script
#!/usr/bin/env python
Update Cloudflare zone entry to current external IP.
Works great with servers on changing IPs or AWS spot instances.
python subdomain
m3nu /
Last active November 21, 2016 18:34
md2pdf - Command line Markdown to PDF converter with support for CSS stylesheets and custom fonts
#!/usr/bin/env python
import os
import sys
from markdown2 import markdown
from xhtml2pdf import pisa
## Inspired by