Skip to content

Instantly share code, notes, and snippets.

View clapbr's full-sized avatar
💭
froggin around

Bruno Filipe clapbr

💭
froggin around
View GitHub Profile
<?php
echo 'Hello World!'; ?>
@clapbr
clapbr / app.py
Last active August 13, 2021 03:07
flask monkeyrunner http remote PoC (don't use this in production)
from flask import Flask
from flask_restful import Resource, Api, reqparse
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
from apscheduler.schedulers.background import BackgroundScheduler
import time
import subprocess
app = Flask(__name__)
api = Api(app)
@clapbr
clapbr / media_player.py
Last active January 12, 2021 19:48 — forked from mhofman/universal.py
Universal media_player for home-assistant with support for `active_child_template` and `default_first_child` (port to 0.102)
"""
Combination of multiple media players into one for a universal controller.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.universal/
"""
import logging
# pylint: disable=import-error
from copy import copy