I hereby claim:
- I am sirtawast on github.
- I am sirtawast (https://keybase.io/sirtawast) on keybase.
- I have a public key ASCVSERxYhKo7xKpQUtvN0jRluTqX1ajMcJdavXXWrweEAo
To claim this, I am signing this object:
| window.i18n = window.i18n || {}; | |
| i18n._langCache = {} | |
| i18n._availableLangs = [ | |
| 'fi', | |
| 'en', | |
| ] | |
| i18n._updateElements = function () { |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| class CamStream { | |
| protected $code_done = 99999999; | |
| protected $buffer = ""; | |
| public function start_stream($url="https://example.org", $passwd="hello:world") { | |
| $exit_ok = false; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); |
| #/bin/bash | |
| # Assumes aws-cli installed and configured | |
| # Use crontab or whatever you like to automate | |
| HA_BACKUP_DATE=$(date +"%m-%d") | |
| HA_S3_BUCKET_PATH="my-ha-backups/latest/whatever" | |
| cd /home/$USER/homeassistant | |
| docker compose stop |
| for file in $(git diff --name-only --cached); do | |
| previous_commit=$(git rev-list -1 HEAD -- $file) | |
| previous_commit_msg=$(git rev-list --format="%s" -1 HEAD -- $file | tail -n 1) | |
| if [ -z "$previous_commit" ]; then | |
| echo "$file NEW" | |
| else | |
| echo "$file $previous_commit" | |
| git commit -m "fixup! $previous_commit_msg" -m "$file $previous_commit" | |
| fi | |
| done |