Skip to content

Instantly share code, notes, and snippets.

View maxwellamaral's full-sized avatar
😀

Maxwell Anderson maxwellamaral

😀
View GitHub Profile
@maxwellamaral
maxwellamaral / google_fit.md
Created September 6, 2022 12:35 — forked from maxwellcc/google_fit.md
Integrando sensores do MiBand Fit ao Home Assistant

Integrando o MiBand Fit ao Home Assistant

Esta integração foi realizada em jul/2022 utilizando o Home Assistant v. 2022.6[^1].

Estas anotações foram criadas baseando-se no post do Google Home Brasil e em Google Calendars

  1. Abra o aplicativo Zepp. Selecione a opção 'Perfil' na parte inferior direita. Selecione a opção 'Adicionar contas' e, depois disto, selecione 'Google Fit' e faça o acesso.
  2. Crie as entradas googlefit_client_id e googlefit_client_secret no seu arquivos secrets.yaml;
  3. Para obter os googlefit_client_id e googlefit_client_secret, deve-se seguir os passos abaixo:
  • Entrar no site do Google Developers Console com a mesma conta utilizada na integração do Google Fit junto ao aplicativo Zepp;
@maxwellamaral
maxwellamaral / README.md
Last active August 3, 2022 13:21 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
@maxwellamaral
maxwellamaral / instructions.md
Created August 2, 2022 23:52 — forked from bubba-h57/instructions.md
Configuring Jetbrains Gateway and WSL

Step 1: SSH Daemon

In your WSL instance, re-install OpenSSH server as follows.

sudo apt remove --purge openssh-server
sudo apt install openssh-server

Edit /etc/ssh/sshd_config (e.g. sudo vi /etc/ssh/sshd_config) and add the following lines to the bottom of the file. Ensure you replace WSL_ACCOUNT_NAME with your WSL2 account name.

@maxwellamaral
maxwellamaral / .gitlab-ci.yml
Created July 3, 2022 17:45 — forked from Mastermind-U/.gitlab-ci.yml
Django gitlab.ci
image: docker:latest
services:
- docker:dind
stages:
- build
- test
- deploy