Skip to content

Instantly share code, notes, and snippets.

View farkasmate's full-sized avatar

Mate Farkas farkasmate

  • Student.com
  • London
View GitHub Profile
@westerneer
westerneer / link_multiple_switches.yaml
Last active August 31, 2025 09:41 — forked from aderusha/link_multiple_switches.yaml
Home Assistant Blueprint: Link Multiple Switches v1.0.1
@loicginoux
loicginoux / firebase-messaging-sw.js
Last active October 26, 2024 07:16
Adding FCM to an html page to receive notifications and sending then via FCM ruby gem. (edit: HTTPS needed!)
// [START initialize_firebase_in_sw]
// Give the service worker access to Firebase Messaging.
// Note that you can only use Firebase Messaging here, other Firebase libraries
// are not available in the service worker.
importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-messaging.js');
// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
@pysysops
pysysops / hiera_undef.yaml
Created October 13, 2016 11:07
Undef a parameter in Puppet hiera
class::parameter::name: null
class::parameter::name: Null
class::parameter::name: NULL
class::parameter::name: ~
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm