Skip to content

Instantly share code, notes, and snippets.

View gerardag's full-sized avatar
👋

Gerard Albanell gerardag

👋
View GitHub Profile
@Jelle-S
Jelle-S / install_ha_vb.sh
Last active March 3, 2024 19:11
Install Home Assistant on VirtualBox
# Installs Home Assistant on VirtualBox following https://www.home-assistant.io/installation/linux
# Install VirtualBox
sudo apt-get -y install virtualbox
# Create a new VM
VBoxManage createvm --name homeassistant --register
# Select OS type "Other Linux (64-bit)"
VBoxManage modifyvm homeassistant --ostype Linux_64
# Set RAM to 6GB (modify to your needs, TODO: make this an option, default value 2GB), video memory to 16MB (TODO: make this an option, default value 16MB)
VBoxManage modifyvm homeassistant --memory 6144 --vram 16
# 2 vCPUs (TODO: make this an option, default value 2)
@michilehr
michilehr / ambee.yml
Last active May 31, 2023 09:26
Home Assistant Ambee Pollen API
### Ambee Pollen
# Must be added in sensor.yml
# replace LAT, LONG and API-KEY with your values
- platform: rest
scan_interval: 3600
resource: https://api.ambeedata.com/latest/pollen/by-lat-lng?lat=LAT&lng=LONG
name: "Ambee Pollen"
headers:
@zoilomora
zoilomora / README.md
Last active April 25, 2024 08:17
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@vidvisionify
vidvisionify / better_ring.yaml
Created February 2, 2019 05:59
Home Assistant package to download the last Ring video and better last motion sensors
# This package assumes the name of your camera is 'Front Door'. You may need to change some things if it's not.
downloader:
download_dir: www/ring
python_script:
# Put this, un-commented, in a folder named 'python_scripts' at the root of your home assistant config.
# Also create a folder named 'ring' in 'www'
# # ==== ring_download.py START ====
@CliffordAnderson
CliffordAnderson / brew-install-script.sh
Last active February 14, 2024 08:29
Brew script for installing packages and applications on OSX
#!/bin/sh
# Homebrew Script for OSX
# To execute: save and `chmod +x ./brew-install-script.sh` then `./brew-install-script.sh`
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask..."
brew tap homebrew/cask