Compare commits
1 Commits
editorconf
...
syncthing
Author | SHA1 | Date | |
---|---|---|---|
89aef0434e |
38
DevOps/syncthing.md
Normal file
38
DevOps/syncthing.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
type: "note"
|
||||
created: "2023-11-10T16:21:17.756Z"
|
||||
updated: "2023-11-10T16:21:23.300Z"
|
||||
---
|
||||
|
||||
# Syncthing
|
||||
|
||||
* Download from https://nssm.cc/download
|
||||
* Download from https://syncthing.net/downloads
|
||||
* Extract syncthing-windows-amd64-v1.26.0.zip
|
||||
* Extract nssm-2.24.zip
|
||||
* Replace {user} with you windows user name in all the commands below
|
||||
|
||||
```bash
|
||||
mkdir %localappdata%/IFXApps
|
||||
move "C:\Users\{user}\Downloads\syncthing-windows-amd64-v1.26.0\syncthing-windows-amd64-v1.26.0" %localappdata%/IFXApps
|
||||
move "C:\Users\{user}\Downloads\nssm-2.24\nssm-2.24" %localappdata%/IFXApps
|
||||
```
|
||||
|
||||
```bash Administrator
|
||||
cd "C:\Users\{user}\AppData\Local\IFXApps\nssm-2.24\win64"
|
||||
nssm.exe install Syncthing
|
||||
```
|
||||
|
||||
```conf NSSM
|
||||
C:\Users\{user}\AppData\Local\IFXApps\syncthing-windows-amd64-v1.26.0\syncthing.exe
|
||||
C:\Users\{user}\AppData\Local\IFXApps\syncthing-windows-amd64-v1.26.0
|
||||
--no-restart --no-browser --home="C:\Users\{user}\AppData\Local\IFXApps\syncthing-windows-amd64-v1.26.0"
|
||||
```
|
||||
|
||||
* Using services.msc change service to run as your infineon account and automatic delay
|
||||
* Restart Syncthing service
|
||||
* Look in log file under %localappdata%/IFXApps for http port for web gui
|
||||
* Open http address to setup Syncthing and open identity windows to allow phone to scan QRCode
|
||||
* Install https://apps.apple.com/us/app/m%C3%B6bius-sync/id1539203216 on iPhone
|
||||
* Install https://play.google.com/store/apps/details?id=com.nutomic.syncthingandroid&hl=en&gl=US on android
|
||||
* Open app and click add remote button at bottom to scan QRCode from PC
|
@ -1,63 +0,0 @@
|
||||
---
|
||||
type: "note"
|
||||
created: "2024-04-16T19:09:30.884Z"
|
||||
updated: "2024-04-17T09:09:36.234Z"
|
||||
---
|
||||
|
||||
# editorconfig
|
||||
|
||||
- [editorconfig](https://editorconfig.org/)
|
||||
- [editorconfig-how-to-autofix-all-files-in-a-project](https://stackoverflow.com/questions/39343031/editorconfig-how-to-autofix-all-files-in-a-project)
|
||||
- [eclint-npmjs](https://www.npmjs.com/package/eclint)
|
||||
- [eclint-github](https://github.com/jednano/eclint)
|
||||
|
||||
## eclint
|
||||
|
||||
```bash
|
||||
l:
|
||||
cd "L:\DevOps\Mesa_FI\OpenInsight"
|
||||
echo node_modules >> .gitignore
|
||||
echo [*] > .editorconfig
|
||||
echo charset = utf-8 >> .editorconfig
|
||||
echo end_of_line = crlf >> .editorconfig
|
||||
echo indent_size = 4 >> .editorconfig
|
||||
echo indent_style = space >> .editorconfig
|
||||
echo insert_final_newline = true >> .editorconfig
|
||||
echo tab_width = 4 >> .editorconfig
|
||||
npm i -D prettier
|
||||
npx prettier LSL2/STPROC/AC*.txt --check
|
||||
# npx prettier fix **/*.txt --check
|
||||
cls
|
||||
npm i -D eclint
|
||||
npx eclint fix LSL2/STPROC/AC*.txt
|
||||
# npx eclint fix **/*.txt
|
||||
REM
|
||||
```
|
||||
|
||||
## dotnet
|
||||
|
||||
```bash
|
||||
l:
|
||||
cd "L:\DevOps\Mesa_FI\OI-Metrology\Server"
|
||||
dotnet build
|
||||
echo [*] > .editorconfig
|
||||
echo end_of_line = crlf >> .editorconfig
|
||||
echo indent_size = 4 >> .editorconfig
|
||||
echo indent_style = space >> .editorconfig
|
||||
echo insert_final_newline = false >> .editorconfig
|
||||
echo tab_width = 4 >> .editorconfig
|
||||
dotnet format whitespace
|
||||
REM
|
||||
```
|
||||
|
||||
- [dotnet-format](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format)
|
||||
|
||||
```bash
|
||||
l:
|
||||
cd "L:\DevOps\Mesa_FI\OI-Metrology\Server"
|
||||
dotnet build
|
||||
del .editorconfig
|
||||
notepad ../.editorconfig
|
||||
dotnet format format --report .vscode --verbosity detailed --severity warn
|
||||
REM
|
||||
```
|
Reference in New Issue
Block a user