Taken from https://keestalkstech.com/2018/03/install-nano-with-entware-on-synology-nas-dsm6/.
- Prepare directory for Entware
# create a home for Entware
mkdir -p /volume1/@Entware/opt
# go on as root| GVLKs for KMS and Active Directory-based activation of Office 2019 and Office 2016 | |
| Applies to: Volume licensed versions of Office 2019 and Office 2016, including Project and Visio | |
| By default, volume licensed versions of Office 2019 and Office 2016 are installed with a Generic Volume License Key (GVLK). | |
| The GVLK enables Office to automatically discover and activate against your KMS host computer or Active Directory infrastructure. | |
| Important | |
| These license keys can't be used to activate your personal copy of Office. |
Taken from https://keestalkstech.com/2018/03/install-nano-with-entware-on-synology-nas-dsm6/.
# create a home for Entware
mkdir -p /volume1/@Entware/opt
# go on as rootThis can be applied generically but usually applies to Linux nodes that have a local caching nameserver running, which means pointing to an IP in the loopback range (127.0.0.0/8). Ubuntu 18.04 Bionic Beaver does this by default.
sudo systemctl mask systemd-resolved
rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
| syntax on | |
| filetype plugin indent on | |
| "Get the 2-space YAML as the default when hit carriage return after the colon | |
| autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
| set is hlsearch ai ic scs | |
| nnoremap <esc><esc> :nohls<cr> | |
| "https://vim.fandom.com/wiki/Moving_lines_up_or_down |
| #!/bin/bash | |
| #### Functions ### | |
| display_usage() { | |
| echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!" | |
| echo -e "\nUsage:\n$0 <saved_image> [--push]\n" | |
| echo -e " <saved_image>\t\t\tThe image file to load and push" | |
| echo -e " [--push]\t\t\tPush to registry" | |
| echo -e "\nExample: $0 /mydir/ubuntu.tar --push " | |
| } |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # This is how I used it: | |
| # $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
| import sys | |
| import time | |
| # in dockerfile | |
| RUN useradd -ms /bin/bash new_user_name | |
| # in cli | |
| useradd -ms /bin/bash new_user_name |
Git 更換遠端伺服器倉庫網址URL
1.確認目前Git遠端伺服器網址: git remote -v
git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
2.更換Git遠端伺服器位網址,使用:git remote set-url