Skip to content

Instantly share code, notes, and snippets.

View Assassin9520's full-sized avatar

George Marin Assassin9520

View GitHub Profile
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
@Assassin9520
Assassin9520 / synology.startup
Last active March 14, 2024 12:55 — forked from SanCoder-Q/synology.startup
Synology NAS - How to make a program run at startup
Synology NAS - How to make a program run at startup
Forked from https://gist.github.com/SanCoder-Q/f3755435e6e8bd46ba95bf0ec54ae1a4
To make a startup service on DSM7.2 see below comment.
(TL;DR):
touch /etc/systemd/system/startup_service_mine.service
systemctl enable startup_service_mine.service
systemctl status startup_service_mine.service