Skip to content

Instantly share code, notes, and snippets.

View GraafG's full-sized avatar
🏠
Working from home

Geert de Graaf GraafG

🏠
Working from home
View GitHub Profile
@GraafG
GraafG / p1.ymal
Created September 17, 2021 17:47
ESPhome config for P1 shield on wemos
#based on https://github.com/zuidwijk/dsmr/blob/main/slimmelezer.yaml
substitutions:
device_name: slimmelezer
device_description: "DIY P1 module to read your smart meter"
esphome:
name: ${device_name}
comment: "${device_description}"
platform: ESP8266
Michiel de Router
wifi in de trein
Wifi Soerjadi
iPhone van Nico Dijkshoorn
192.168.1.1
@GraafG
GraafG / Unicorns.html
Created October 14, 2018 00:32
Unicorns (Chrome theme-color demo, chrome android header)
<!DOCTYPE html>
<html>
<head>
<title>Unicorns!</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="theme-color" content="#FF0000">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
@GraafG
GraafG / Azure DNS CAA.ps1
Last active November 6, 2020 08:42
Script to add CAA records to Azure DNS
#More info: https://geertdegraaf.nl/adding-caa-records-to-azure-dns
#login with Azure Account
Login-AzureRmAccount
#select subscription with Azure DNS
Get-AzureRmSubscription
Set-AzureRmContext -SubscriptionId "xxxx-xxxx-xxxx-xxxx"
#List all ResourceGroups in Subscription
Get-AzureRmResourceGroup
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
@GraafG
GraafG / keybase.md
Last active August 18, 2019 14:34
Keybase proof

Keybase proof

I hereby claim:

  • I am GraafG on github.
  • I am geertdegraaf (https://keybase.io/geertdegraaf) on keybase.
  • I have a public key whose fingerprint is 5FA6 CC2B 0B16 4F0D C94E 7440 390B 7A86 30E2 2251

To claim this, I am signing this object: