- These instructions are at http://bit.ly/35V0Jty
- Displays:
- Arrangement: uncheck mirror
- For each monitor: select scaled and more space; use sRGB for color
- Mouse: uncheck scroll direction natural
#/bin/bash | |
## taking.kr ([email protected]) | |
## 2019-06-11 | |
########################################### | |
read -p "hostname (ex taking.kr): " uhost | |
read -p "new username: " uname | |
read -p "$uname's Password: " upasswd | |
encrypt_pass=$(perl -e 'print crypt($ARGV[0], "password")' $upasswd) | |
############ nameserver setting ############### |
#!/bin/bash | |
## | |
## Warning: do not use this unless you understand and agree with what it does | |
## | |
## Based on: https://forum.proxmox.com/threads/convert-privileged-to-unprivileged-container.31066/#post-261883 | |
## | |
## NOT HANDLED | |
## * multiple disks | |
## * if there are backup/snapshot references in the lxc/$vmid.conf the unprivileged:1 will be added to the end of the file and in a backup config not in the active config, that can break the first boot | |
## * setuid and setgid permissions are not retained |
.vagrant |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
#! /bin/bash | |
# readonlyroot.sh -- Setup dirs on the tmpfs to keep the root partition read-only | |
# See-Also: http://roland.entierement.nu/pages/debian-on-soekris-howto.html | |
# Available-At: https://gist.github.com/1216392 | |
# | |
# Place this file in /etc/init.d and run: | |
# sudo update-rc.d readonlyroot.sh start 04 S | |
# | |
# To maintain persistent data, place a file at /etc/cron.d/readonlyroot as: | |
# 0 * * * * root /etc/init.d/readonlyroot.sh save >/dev/null |
# some from: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips | |
# set timezone: | |
SetEnv TZ Australia/Melbourne | |
# SEO Friendly 301 Permanent Redirects | |
Redirect 301 http://www.queness.com/home http://www.queness.com/ | |
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2020 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.
gituser
via Diskstation interface (with File Station and WebDAV privilages)git
(located at /volume1/git
) with read/write access for gituser
and admin
. This folder will hold all the repos.