Skip to content

Instantly share code, notes, and snippets.

View philippwaller's full-sized avatar
⚙️
work in progress...

Philipp Waller philippwaller

⚙️
work in progress...
View GitHub Profile
@philippwaller
philippwaller / dashboard.yaml
Created January 16, 2024 16:32
Home Assistant: Waste Management Dashboard
# This Home Assistant layout is designed for tracking various waste collection schedules.
#
# Before implementing this layout, ensure that the following integrations/components
# are installed via the Home Assistant Community Store (HACS) to ensure full functionality:
# - Waste Collection Schedule: For handling different waste collection types.
# - template-entity-row: Enables custom row templates in entity cards.
# - auto-entities: Dynamically displays entities based on defined rules.
# - Easy Time: Used for formatting time and date information efficiently.
type: custom:auto-entities
#!/bin/sh
echo "Please login to your Apple Account through the Mac App Store"
echo "When logged in sucessfully press [ENTER} to continue"
read
##############################################
## Install homebrew and Xcode
##############################################
@philippwaller
philippwaller / HueClient.groovy
Last active September 19, 2019 00:30
Hue REST-Client written in Groovy
package io.waller.light
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import groovy.util.logging.Slf4j
@Slf4j
class HueClient {
String host
String token
#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string en
d-i debian-installer/country string DE
d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
@philippwaller
philippwaller / sethostname.sh
Last active March 5, 2017 22:38 — forked from makuk66/cloudstack-sethostname.sh
dhclient hook for setting the hostname, updating /etc/hosts, and re-generating ssh keys on Ubuntu.Useful for creating CloudStack templates.See https://issues.apache.org/jira/browse/CLOUDSTACK-4556
#!/bin/sh
# dhclient change hostname script for Ubuntu
# /etc/dhcp/dhclient-exit-hooks.d/sethostname
# logs in /var/log/upstart/network-interface-eth0.log
# for debugging:
echo "sethostname BEGIN"
export
set -x