Skip to content

Instantly share code, notes, and snippets.

View anisimovdk's full-sized avatar
🏖️

Dmitry K. Anisimov anisimovdk

🏖️
View GitHub Profile
@anisimovdk
anisimovdk / Wireguard quick-setup.md
Created December 22, 2023 22:01
Wireguard quick-setup

Wireguard quick-setup

Keygen

Server

wg genkey | tee /etc/wireguard/private.key
chmod go= /etc/wireguard/private.key
cat /etc/wireguard/private.key | wg pubkey | tee /etc/wireguard/public.key
@anisimovdk
anisimovdk / Files or directories moved from OSX to Synology NAS is inaccessible.md
Created April 21, 2018 14:35
Files or directories moved from OSX to Synology NAS is inaccessible

Files or directories moved from OSX to Synology NAS is inaccessible

If files or directory is inaccessible you need to normalize it from UTF-8 C (OSX) to D (Linux)

  • Enable NFS on NAS
  • Setup NFS permission on NAS for target directory
  • From linux connect to NFS share (CentOS: mount.nfs -w 192.168.1.100:/volume1/datastore/ /mnt/)
  • Install convmv tool (CentOS: yum install convmv)
  • Open mounted directory
  • Run command convmv -r -f utf8 -t utf8 --nfc . (dry-run)
@anisimovdk
anisimovdk / RoyalTSX-Command-Task
Last active February 17, 2023 18:10
Mounting CIFS share from RoyalTSX
0. Download mountCifs.scpt
1. Create command in Tasks subfolder
2. In Command tab specify
a. Command: osascript
b. Arguments: mountCifs.scpt $URI$ C$ "$EffectiveUsernameWithoutDomain$" "$EffectivePassword$"
c. Working Directory: path to mountCifs.scpt
3. In Credentials tab select "Use the context credentials" (for getting credentials from remote connection)
4. Mark task as favorite
5. Execute task on remote connection
6. (For Royal TSX 3.0.0.14 beta or newer) To hide terminal window pop-up disable "Run in Terminal" checkbox at General tab of task