Skip to content

Instantly share code, notes, and snippets.

View nbogojevic's full-sized avatar

Nenad Bogojevic nbogojevic

  • Amadeus
  • Sophia-Antipolis, France
View GitHub Profile
@nbogojevic
nbogojevic / remove_home_assistant_alexa.js
Created February 25, 2021 22:59
Remove all Home Assistant devices from Alexa
// Paste in development console
$x('//div[contains(text(), "Home Assistant")]')
.map((innerDiv) => innerDiv.parentNode.parentNode)
.map((parentDiv) => parentDiv.getElementsByTagName("button")[0])
.forEach((button) => {
fetch(
`https://alexa.amazon.fr/api/phoenix/appliance/${encodeURIComponent(button.getAttribute(
"appliance-id"
))}`,
{
@nbogojevic
nbogojevic / LDAPGuacSynology.md
Created June 27, 2019 20:57
Updating synology ldap for guacamole
slapadd -v -u -n 0 -F /var/packages/DirectoryServer/target/etc/data/slapd.d -l guacConfigGroup.ldif