Skip to content

Instantly share code, notes, and snippets.

View gambolputty's full-sized avatar

Gregor Weichbrodt gambolputty

View GitHub Profile
@gambolputty
gambolputty / README.md
Last active March 30, 2021 22:50
docker-compose systemd service

Create a file /etc/systemd/system/myservice.service

Commands

Enable the service:

  • systemctl enable myservice

Then:

  • service myservice start
  • service myservice status

Keybase proof

I hereby claim:

  • I am gambolputty on github.
  • I am greg0r (https://keybase.io/greg0r) on keybase.
  • I have a public key ASCLei3QEsYm8fy9eVf9P_9QRC9IJqoPmA2rJ470RunN8Ao

To claim this, I am signing this object:

1. Bookmark ("Lesezeichen") mit folgender URL anlegen:
javascript:(function()%7Bdocument.getElementsByTagName('body')%5B0%5D.style.transform %3D 'scale(-1%2C 1)'%7D)()
2. Auf www.spiegel.de gehen.
3. Bookmark anklicken.
@gambolputty
gambolputty / Wordpress: create output for Facebook & Twitter crawlers (pages & posts)
Last active April 17, 2017 19:59
Create custom post & pages output for facebook- & twitter crawlers. Useful for single page application themes built with VueJS oder Angular (facebook crawler doesn't read JavaScript)
function wp_crawler_version() {
if ( !is_admin() ) {
if ( is_home() ) {
return;
}
/*