Add the following snippet at the bottom of ~/.zshrc
file.
RPROMPT='[%D{%L:%M:%S}] '$RPROMPT
#!/bin/sh | |
# | |
# Clean-up Xiaomi smartphone without rooting: | |
# | |
# 1) You have to install adb tool from android sdk | |
# 2) You have to activate developer options, next activate usb debugging | |
# 3) Comment out or delete lines with packages, if you really need them | |
# 4) Optional: I hightly recommed to activate OEM unlocking feature in developer options. | |
# It doesn't unlock you device immediately, but in case of breaking you phone | |
# you will have opportunity to unlock you phone and reflash it via MiFlash. |
dash_id=xxxx | |
api_key=xxx | |
app_key=xxx | |
# 1. export | |
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
# 2. edit dash.json | |
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |