Skip to content

Instantly share code, notes, and snippets.

@maty974
maty974 / Synology-Diskstation-Git.md
Created February 15, 2018 06:05 — 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
@maty974
maty974 / bash-git-prompt.sh
Created March 7, 2018 08:57 — forked from zessx/bash-git-prompt.sh
Custom PS1 for git
# Install for all users:
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P /etc/bash_completion.d
# Install for one user:
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P ~
# $ echo "\n\n# Bash Git Prompt\nsource ~/bash-git-prompt.sh" >> ~/.bashrc
# $ . ~/.bashrc
# Settings:
BGP_BRANCH_SAFE=("develop")
@maty974
maty974 / backlight-daemon.sh
Created March 11, 2018 12:50 — forked from furui/backlight-daemon.sh
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
#!/bin/bash
while true
do
inotifywait -e modify /sys/class/backlight/acpi_video0/brightness
echo brightness set to: $(cat /sys/class/backlight/acpi_video0/brightness)
xbacklight -set $(cat /sys/class/backlight/acpi_video0/brightness)
done
@maty974
maty974 / tmux-migrate-options.py
Created April 25, 2020 11:33 — forked from tbutts/tmux-migrate-options.py
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#