This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.SimpleDateFormat | |
/* | |
this is very !naive! implementation by making just a copy of defined files (probably doesn't handle spaces or special chars!) | |
1) define following `backupMap` and `removeBeforeRestore` | |
2) import it into the app build.gradle using `apply from: "$rootProject.projectDir/appbackup.gradle"` | |
3) and then just run: | |
#backup (see the BackupID e.g. 20220307-113423) | |
./gradlew app:appBackup | |
#restore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//be sure your hook folder is correct | |
//`git config core.hooksPath` | |
//or set it `git config core.hooksPath .git/hooks` | |
//be sure the sh.exe exists and it's correct | |
//file:prepare-commit-msg | |
#!C:/Program\ Files/Git/usr/bin/sh.exe | |
python ".git/hooks/prepare-commit-msg.py" "$1" | |
exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create google sheet file with 'Data', 'Weather', 'Settings' sheets | |
Settings: //https://developers.google.com/nest/device-access/get-started | |
SDMUrl https://smartdevicemanagement.googleapis.com/v1 | |
projectId ... | |
nestDeviceId ... | |
oauthClientId ... | |
oauthClientSecret ... | |
oauthRefreshToken ... | |
oauthAccessToken ... |
OlderNewer