CD to a folder like:
mkdir $HOME/Desktop/Backup_Arduino
cd $HOME/Desktop/Backup_Arduino
Set these variables
Arduino Nano Old Bootloader:
#écraser une branche distante avec la branche locale | |
créér une branche temporaire avec les corrections : git chechout -b branchetmp | |
faire les fix | |
vérifier que l'on est sur la bonne branche temp | |
git push -f origin branchetmp:nomDeLaBrancheàEcraser | |
#supprimer des commits non voulu |
git config --global push.autoSetupRemote true |
CD to a folder like:
mkdir $HOME/Desktop/Backup_Arduino
cd $HOME/Desktop/Backup_Arduino
Set these variables
Arduino Nano Old Bootloader:
blueprint: | |
name: Aquara remote switch single rocker | |
description: Automate the Aquara remote switch single rocker with zha | |
domain: automation | |
input: | |
aquara_remote_switch_single_rocker: | |
name: Aquara remote switch single rocker | |
selector: | |
device: | |
integration: zha |
function logPackageName() { | |
adb shell dumpsys activity recents | grep 'Recent #0' | cut -d= -f2 | sed 's| .*||' | cut -d '/' -f1 | |
} | |
function logpref() { | |
APP_ID=$(logPackageName) | |
echo "current packageName:$APP_ID" | |
SHARED_PREF_FILES=$(adb shell "run-as $APP_ID ls /data/data/${APP_ID}/shared_prefs/") | |
SHARED_PREF_FILE=${SHARED_PREF_FILE[0]} | |
echo "current preference file:$SHARED_PREF_FILE" |
function replaceDas(){ | |
file_list=( | |
/c/Users/UserName/.leptonrc | |
) | |
search=${1} | |
replace=${2} | |
echo "replace $search to $replace" | |
echo "in" | |
for filename in "${file_list[@]}"; | |
do |
#plugin
#configuration ide
#adb shell getprop gsm.baseband.imei | |
#adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '.[:space:]'" | |
#!/bin/bash | |
# Get the device properties | |
adb shell getprop | grep "model\|version.sdk\|manufacturer\|ro.serialno\|product.name\|brand\|version.release\|build.id\|security_patch" | sed 's/ro\.//g' | |
# get the device ime | |
echo "[device.imei]: [$(adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d'| tr -d '\n' | tr -d '.' | tr -d ' ')]" | |
# get the device phone number | |
echo "[device.phonenumber]: [$(adb shell service call iphonesubinfo 19 | awk -F "'" '{print $2}' | sed '1 d'| tr -d '\n' | tr -d '.' | tr -d ' ')]" |
.pv : instantiate private val | |
ANY → $expr$ $expr$= new $expr$(); |
adb shell am broadcast -a com.whereismywifeserver.intent.TEST | |
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] | |
[--esn <EXTRA_KEY> ...] | |
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] | |
[--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] | |
[--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...] | |
[--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...] | |
[--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...] | |
[--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>] |