Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| 2012-03-06 14:40:38+0100 [-] Log opened. | |
| 2012-03-06 14:40:38+0100 [-] twistd 11.1.0 (/usr/bin/python 2.7.2) starting up. | |
| 2012-03-06 14:40:38+0100 [-] reactor class: twisted.internet.glib2reactor.Glib2Reactor. | |
| 2012-03-06 14:40:38+0100 [-] Traceback (most recent call last): | |
| 2012-03-06 14:40:38+0100 [-] File "/usr/bin/twistd", line 14, in <module> | |
| 2012-03-06 14:40:38+0100 [-] run() | |
| 2012-03-06 14:40:38+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run | |
| 2012-03-06 14:40:38+0100 [-] app.run(runApp, ServerOptions) | |
| 2012-03-06 14:40:38+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 652, in run | |
| 2012-03-06 14:40:38+0100 [-] runApp(config) |
| 2012-03-07 11:10:14+0100 [-] Log opened. | |
| 2012-03-07 11:10:14+0100 [-] twistd 11.1.0 (/usr/bin/python 2.7.2) starting up. | |
| 2012-03-07 11:10:14+0100 [-] reactor class: twisted.internet.glib2reactor.Glib2Reactor. | |
| 2012-03-07 11:10:14+0100 [-] get_plugin_by_id called with 0xBDB and 0x1911 | |
| 2012-03-07 11:10:14+0100 [-] registering plugin <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> with opath /org/freedesktop/ModemManager/Devices/0 | |
| 2012-03-07 11:10:14+0100 [-] wrapping plugin <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> with class <class 'core.hardware.ericsson.EricssonF3607gwWrapper'> | |
| 2012-03-07 11:10:14+0100 [-] exporting <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> methods with class <class 'core.exported.WCDMAExporter'> | |
| 2012-03-07 11:10:14+0100 [-] emitting DeviceAdded('/org/freedesktop/ModemManager/Devices/0') | |
| 2012-03-07 11:10:19+0100 [-] emitting MmPropertiesChanged: org.freedesktop.ModemManager.Modem {'Enabled': dbus.Boolean(False)} | |
| 2012-03-07 11:10:19+0100 [-] emitting M |
| 2012-03-07 13:02:08+0100 [-] Log opened. | |
| 2012-03-07 13:02:08+0100 [-] twistd 11.1.0 (/usr/bin/python 2.7.2) starting up. | |
| 2012-03-07 13:02:08+0100 [-] reactor class: twisted.internet.glib2reactor.Glib2Reactor. | |
| 2012-03-07 13:02:08+0100 [-] get_plugin_by_id called with 0xBDB and 0x1911 | |
| 2012-03-07 13:02:09+0100 [-] registering plugin <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> with opath /org/freedesktop/ModemManager/Devices/0 | |
| 2012-03-07 13:02:09+0100 [-] wrapping plugin <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> with class <class 'core.hardware.ericsson.EricssonF3607gwWrapper'> | |
| 2012-03-07 13:02:09+0100 [-] exporting <EricssonF3607gw dport: /dev/ttyACM0 cport: /dev/ttyACM1> methods with class <class 'core.exported.WCDMAExporter'> | |
| 2012-03-07 13:02:09+0100 [-] emitting DeviceAdded('/org/freedesktop/ModemManager/Devices/0') | |
| 2012-03-07 13:02:17+0100 [-] emitting MmPropertiesChanged: org.freedesktop.ModemManager.Modem {'Enabled': dbus.Boolean(False)} | |
| 2012-03-07 13:02:17+0100 [-] emitting M |
| import os | |
| #os.execlp("termit", "termit", "-e", "bc") # runs bc [OK] | |
| #os.execlp("termit", "termit", "-e", "bc --quiet") # fails OR runs bc --quiet [OK, runs bc --quiet] | |
| #os.execlp("termit", "termit", "-e", "bc", "--quiet") # runs bc --quiet [FAIL, does not pass --quiet arg] | |
| #os.execlp("termit", "termit", "-e", "vi *") # fails OR runs vi * (wildcard) [OK, * is passed as file name] | |
| #os.execlp("termit", "termit", "-e", "vi", "*") # runs vi * (literal) [FAIL, does not pass literal * arg] |
| <!DOCTYPE html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="release/ui-grid.css"/> | |
| </head> | |
| <body ng-app="app"> | |
| <div ng-controller="MainCtrl"> | |
| <div ui-grid="{data:data}"></div> | |
| </div> |
| alert(); |
Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-$SHARD | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: nginx-$SHARD | |
| replicas: 250 | |
| template: |
| # This requires wlr-which-key version >= 1.2.0 available in NixOS unstable | |
| # TODO: Outputs eDP-1, DP-4 and DP-6 are hard-coded to my home setup | |
| # TODO: the number of workspaces is hard coded | |
| font: JetBrainsMono Nerd Font 22 | |
| menu: | |
| - key: "f" | |
| desc: focus | |
| submenu: |