sudo docker run -d --name=homeassistant --restart=always --network=host \
-v /home/$USER/homeassistant:/config \
ghcr.io/home-assistant/home-assistant:stable
name: Deploy Next.js Site via SSH | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
Matrix is:
an open standard for decentralised communication, providing simple HTTP APIs and open source reference implementations for securely distributing and persisting JSON over an open federation of servers.
It's pretty fantastic, if you think on the massive problem of fragmentation all across the web. They've created an easy to use API, and you can do a kludgy test using curl from the terminal (*nix
, mac, win). See: http://matrix.org/docs/howtos/client-server.html
It's pretty straightforward to do a quick test. I have an account at https://matrix.org / https://vector.im, so I used that to get a token.
# create a Volume folder in home root directory or user directory
mkdir -p uptimekuma
# install via Docker
docker run -d --restart=always -p 3001:3001 -v /root/uptimekuma:/app/data --name uptime-kuma louislam/uptime-kuma:latest
Create Docker Network
docker network create --subnet=172.1.0.0/16 Network Name
Run Docker Container
docker run -d --net NETWORKNAME \
--ip STATICIP \
-it \
--name n8n \
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
function umami_preconnect_url(){ | |
if(! is_user_logged_in()){ | |
echo '<link rel="preconnect" href="https://umami.example.com" />'; | |
} | |
} | |
add_action('wp_head', 'umami_preconnect_url'); | |
function umami_track_code() { | |
if(! is_user_logged_in()){ | |
?> |
Go to https://developers.facebook.com/tools/debug/accesstoken/ and use this page to test your tokens at each step, namely looking at their expiry date.
Go to developers.facebook.com and generate a User token with the permissions required.
To post to pages you need pages_show_list, pages_read_engagement, pages_manage_posts, public_profile
.
This short tutorial describes how to upload GPS tracks to Strava using your command line interface / shell. It requires no special tools or any 3rd party code.
Run the following steps with your user logged in to Strava in your browser!
Strava uses OAuth to authenticate against 3rd party applications. In order to authenticate to your Strava account from your command line, you first have to generate an API key. Therefore go to this page https://strava.github.io/api/v3/oauth/ and create a new API. The settings are as follows:
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi |