Skip to content

Instantly share code, notes, and snippets.

View sebastianwebber's full-sized avatar
🏠
Working from home

Sebastian Webber sebastianwebber

🏠
Working from home
View GitHub Profile
@sebastianwebber
sebastianwebber / wildfly.service -.ini
Last active August 29, 2015 14:16 — forked from marekjelen/gist:8568448
Wildfly Domain Controller Service for SystemD systems
[Unit]
Description=WildFly Domain Controller
After=network.target
[Service]
Type=simple
User=jboss
Group=jboss
ExecStart=/opt/wildfly-8.2.0.Final/bin/domain.sh -bmanagement=0.0.0.0
[Unit]
Description=RHQ Storage Node
After=network.target
PartOf=rhq-server.service
[Service]
Type=forking
ExecStart=/opt/rhq-server-4.13.1/bin/rhqctl start --storage
@sebastianwebber
sebastianwebber / rhq-server.service
Last active August 29, 2015 14:25 — forked from rafaeltuelho/rhq-server.service
JON/RHQ Server Unit Service for Systemd bases systems (tested with JON 3.3.0.GA-Update2 on RHEL 7)
[Unit]
Description=RHQ Server
Requires=rhq-storage.service
After=rhq-storage.service
[Service]
Type=forking
PIDFile=/opt/rhq-server-4.13.1/bin/internal/rhq-server.pid
[Unit]
Description=RHQ Agent
After=network.target
[Service]
Type=forking
PIDFile=/opt/rhq-agent/bin/rhq-agent.pid
ExecStart=/opt/rhq-server-4.13.1/bin/rhqctl start --agent
@sebastianwebber
sebastianwebber / ssh-forward-clipboard.md
Created February 7, 2017 18:54 — forked from dergachev/ssh-forward-clipboard.md
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command: