Skip to content

Instantly share code, notes, and snippets.

Zhenyu Song sunnyszy

Block or report user

Report or block sunnyszy

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
@sunnyszy
sunnyszy / README-setup-tunnel-as-systemd-service.md
Last active Nov 16, 2018 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward
View README-setup-tunnel-as-systemd-service.md

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@sunnyszy
sunnyszy / jupyter.service
Created Jul 5, 2018 — forked from r-darwish/jupyter.service
Jupyterlab as a systemd service
View jupyter.service
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
ExecStart=/home/roeyd/Notebook/.env/bin/jupyter lab --port 9090
WorkingDirectory=/home/roeyd/Notebook
[Install]
WantedBy=default.target
View local.automount.fat.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AbandonProcessGroup</key>
<true/>
<key>Label</key>
<string>local.automount.fat</string>
<key>StandardOutPath</key>
<string>/tmp/local.automount.fat.outlog</string>
View gist:0bb3f0a22308f2fbf20f9c3002c16b0a
Verifying that "zhenyus.id" is my Blockstack ID. https://explorer.blockstack.org/name/zhenyus.id
View gist:b3af77c1cfea9c0309ece6733411f7eb
Verifying my Blockstack ID is secured with the address 16W61fPqp14VpZKr9xg1AsivhcBnDmJ6hg https://explorer.blockstack.org/address/16W61fPqp14VpZKr9xg1AsivhcBnDmJ6hg
You can’t perform that action at this time.