Skip to content

Instantly share code, notes, and snippets.


Sander van Dragt svandragt

View GitHub Profile
petenelson / output-css-classes.php
Last active September 19, 2022 13:49
WordPress: Output CSS classes
View output-css-classes.php
* Outputs a list of sanitized CSS class names.
* @param array|string $classes List of class names (array or string with
* class names separated by spaces or commas).
* @param bool $echo Echo the list of class names (defaults to true).
* @return void|array
function output_css_classes( $classes, $echo = true ) {
Luzifer /
Last active August 16, 2023 14:24
Running docker-compose as a systemd service

Running docker-compose as a systemd service


File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
jexchan /
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts