Skip to content

Instantly share code, notes, and snippets.

@mreddycap
mreddycap / Synology-Diskstation-Git.md
Last active October 29, 2021 17:35 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
  • Open Git Server and allow gituser permissions
@mreddycap
mreddycap / win10-process-details.md
Last active March 4, 2021 05:41
Windows commands

Windows process related commands

Locate the process running on a given port on Windows

netstat -aof | findstr :8080

Find the process name by pid

tasklist /fi "pid eq 2216"

For a given port, get PID and Process/Image Name with headers

for /f "tokens=5" %a in ('netstat -aon ^| findstr :8080') do tasklist /FI "PID eq %a"