Skip to content

Instantly share code, notes, and snippets.

Sebastian Webber sebastianwebber

Block or report user

Report or block sebastianwebber

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sebastianwebber
sebastianwebber / ssh-forward-clipboard.md
Created Feb 7, 2017 — forked from dergachev/ssh-forward-clipboard.md
Forward your clipboard via SSH reverse tunnels
View ssh-forward-clipboard.md

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:

View rhq-agent.service
[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 / rhq-server.service
Last active Aug 29, 2015 — 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)
View rhq-server.service
[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
View rhq-storage.service
[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 / wildfly.service -.ini
Last active Aug 29, 2015 — forked from marekjelen/gist:8568448
Wildfly Domain Controller Service for SystemD systems
View wildfly.service -.ini
[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
You can’t perform that action at this time.