Skip to content

Instantly share code, notes, and snippets.

sticker_commission:
displayName: "Sticker Commission"
columns:
sticker:
type: ref(sticker)
displayName: Sticker
commissionedAt:
type: ref(artist)
displayName: "Commissioned at"
@tomgk
tomgk / _steps.md
Last active July 30, 2020 08:58
Set up service unit in Ubuntu

Setus

  • Put endless.sh in /root
  • vi /etc/systemd/system/test.service
  • Put content of file test.service
  • Reload service: systemctl daemon-reload
  • Start service: service test start

Usage later

  • Stop: service test stop
  • Check status: service test status
@tomgk
tomgk / _service.md
Created July 30, 2020 07:47 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
// ==UserScript==
// @name Userscript Name
// @namespace http://example.com/
// @description Userscript Description
// @match http://example.com/* (or @include * to include all pages)
// @version 1.0
// ==/UserScript==
// Emulate Greasemonkey's unsafeWindow in Chrome
window.unsafeWindow = window.unsafeWindow || (function() {