Skip to content

Instantly share code, notes, and snippets.

@ahmed-shehata
ahmed-shehata / AdbCommands
Created November 3, 2022 11:23 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@ahmed-shehata
ahmed-shehata / Shield_Intents.MD
Created August 9, 2022 22:57 — forked from mcfrojd/Shield_Intents.MD
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@ahmed-shehata
ahmed-shehata / hyperion_mi_led.py
Created March 20, 2021 15:54 — forked from SergioSV96/hyperion_mi_led.py
A Hyperion UDP listener for Xiaomi Mi LED Smart Bulb bulbs! Just "pip install yeelight" and run with "python3 hyperion_mi_led.py PORT NAME"
import time
import yeelight
import sys
import socket
import colorsys
import argparse
from yeelight import BulbException
@ahmed-shehata
ahmed-shehata / regex-es6-imports.js
Created June 27, 2019 17:04 — forked from manekinekko/regex-es6-imports.js
A regular Expression to parse ECMAScript6 import syntax
let regex = `import
(?:
["'\s]*
([\w*{}\n, ]+)
from\s*
)?
["'\s]*
([@\w/_-]+)
["'\s]*
;?
exec >> /tmp/${PROJECT_NAME}_archive.log 2>&1
FRAMEWORK_NAME="YOUR-FRAMEWORK-NAME"
cd ${SRCROOT}/Pods/${FRAMEWORK_NAME}/
echo "🚀restore ${SRCROOT}/Pods/${FRAMEWORK_NAME}"
rm -rf ./${FRAMEWORK_NAME}.framework
unzip -o ${FRAMEWORK_NAME}.zip
rm -rf ${FRAMEWORK_NAME}.zip
@ahmed-shehata
ahmed-shehata / archieve-pre-actions.sh
Created April 12, 2019 23:34 — forked from jeffery812/archieve-pre-actions.sh
Remove i386/x86_64 architectures from framework
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1
FRAMEWORK_NAME="YOUR-FRAMEWORK-NAME"
cd ${SRCROOT}/Pods/${FRAMEWORK_NAME}/
echo "🚀backup ${SRCROOT}/Pods/${FRAMEWORK_NAME}/${FRAMEWORK_NAME}.framework"
if [ -f "${FRAMEWORK_NAME}.zip" ]
then