2024-06-03

This commit is contained in:
2024-06-03 07:04:29 -07:00
commit a6071a4073
273 changed files with 16707 additions and 0 deletions

11
_-Review/acmdb.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.098Z"
updated: "2024-01-06T01:25:36.098Z"
---
# ACMDB
- [SRP 2100](../CEP/srp-2100.md)
- Gertler Torsten (CSC FI FE EMA EA D)

9
_-Review/ado.md Normal file
View File

@ -0,0 +1,9 @@
---
type: "topic"
created: "2024-01-24T18:10:35.032Z"
updated: "2024-01-24T18:11:09.504Z"
---
# ADO
- [Microsoft Azure DevOps platform (ADO) & Agile Planning features](https://videoportal.infineon.com/videos/play/F3D1A032-8372-487D-9B16-A6A68EB17044/4BED60DB-7C37-41C1-BBB9-3C1318D1836F)

39
_-Review/amazon-photos.md Normal file
View File

@ -0,0 +1,39 @@
---
type: "topic"
created: "2024-01-30T14:11:19.493Z"
updated: "2024-01-30T14:32:47.829Z"
---
# Amazon Photos
```bash
d:/5-Other-Small/Proxmox/005/amzn1.account.AEQ4S3XN3XWICR7H2IOYECAHOTGQ-uploads.db
h3a6y4IxR_iZOXc7scb5JQ 542502700281.jpg
# https://www.amazon.com/photos/all/gallery/h3a6y4IxR_iZOXc7scb5JQ
```
```bash
d:/5-Other-Small/Proxmox/010/amzn1.account.AEQ4S3XN3XWICR7H2IOYECAHOTGQ-cloud.db
h3a6y4IxR_iZOXc7scb5JQ 542502700281.jpg FILE ["SaJrrTfFQBKV4EDFVg-G4w"] [] [] 638421045472150000 638421045830990000 0 0 0 CloudDriveDesktop xn_5TJ4K-w8 AVAILABLE 0 2 638390897810190000 image/jpeg jpg e6e2e729a759bf006528d01aea900611
# https://www.amazon.com/photos/folders/SaJrrTfFQBKV4EDFVg-G4w/gallery/h3a6y4IxR_iZOXc7scb5JQ
```
```bash
"Logan Phares"
G7cjz2QIrY2RXVgErQBGC4
```
- [ ] Open Edge and Navigate to https://www.amazon.com/photos
- [ ] Login to Amazon Photos
- [ ] Navigate to People
- [ ] Enable Developer Tools in Edge
- [ ] Clear network log
- [ ] Click on each person to get json data
- [ ] Developer Tools - Network Tab filter on search
- [ ] Developer Tools - Network Tab right click for contextual menu click "Save all as HAR with content"
- [ ] Use code to export lines containing "text": "{\"aggregations\":{\"allPeople\"
- [ ] Remove "text": " and trailing "
- [ ] Remove \"
- [ ] Parse json
- [ ] Create directory from first aggregations.people.searchData.clusterName {value}.json
- [ ] Save as first aggregations.people.match {value}.json in directory with data content

11
_-Review/apc.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "topic"
created: "2024-01-06T01:25:36.239Z"
updated: "2024-01-06T01:25:36.239Z"
---
# APC
[EAF](../EAF/eaf.md)
- [Update Trend](../.kanbn/tasks/update-trend.md)

50
_-Review/arduino.md Normal file
View File

@ -0,0 +1,50 @@
---
type: "topic"
created: "2024-01-06T01:25:36.094Z"
updated: "2024-01-06T01:25:36.094Z"
---
# Arduino
```c++ Sprinklers
const int last = 8;
const int first = 5;
const int minutes = 1;
int pin;
int counter = 0;
void setup() {
pinMode(first, OUTPUT);
pinMode(first + 1, OUTPUT);
pinMode(first + 2, OUTPUT);
pinMode(first + 3, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(first, HIGH);
digitalWrite(first + 1, HIGH);
digitalWrite(first + 2, HIGH);
digitalWrite(first + 3, HIGH);
digitalWrite(LED_BUILTIN, LOW);
}
void loop() {
pin = first + counter;
digitalWrite(pin, LOW);
if(counter == 0)
delay(minutes * 60 * 1000UL);
else if(counter == 1)
delay(minutes * 30 * 1000UL);
else if(counter == 2)
delay(minutes * 60 * 1000UL);
else if(counter == 3)
delay(minutes * 60 * 1000UL);
else
delay(minutes * 1 * 1000UL);
digitalWrite(pin, HIGH);
counter += 1;
if (pin >= last)
{
counter = 0;
}
}
```

35
_-Review/artifactory.md Normal file
View File

@ -0,0 +1,35 @@
---
type: "topic"
assigned: ""
created: "2024-01-12T16:48:17.489Z"
updated: "2024-01-12T16:48:17.489Z"
---
# Artifactory
```bash
# https://artifactory.intra.infineon.com/artifactory/api/search/artifact?name=system.text.json.8.0.0.nupkg
```
```json
{
"results": [
{
"uri": "https://artifactory.intra.infineon.com/artifactory/api/storage/ngt-nuget-org-cache/System.Text.Json.8.0.0.nupkg"
},
{
"uri": "https://artifactory.intra.infineon.com/artifactory/api/storage/ngt-nuget-v2-org-cache/System.Text.Json.8.0.0.nupkg"
}
]
}
```
```bash
nuget sources Add -Name Artifactory -Source https://artifactory.intra.infineon.com/artifactory/api/nuget/v3/ngt-nuget-org/index.json -username phares -password cmVmdGtuOjAxOjE3NDExMTM5NTA6RzNwVkx1Qmx4ajJnSkJodVBpU1dDcmJ1TWZi
nuget sources Add -Name Artifactory -Source https://artifactory.intra.infineon.com/artifactory/api/nuget/v3/ngt-nuget-org/index.json -username phares -password cmVmdGtuOjAxOjE3NDExMTQzNTE6RFlDdVp1MzJ3UzgzakFNcGM1bU5NendmMEtB
dotnet nuget add source --name Artifactory https://artifactory.intra.infineon.com/artifactory/api/nuget/v3/ngt-nuget-org/index.json
dotnet nuget add source --name AUC-Artifactory https://artifactoryedge-auc.icp.infineon.com/artifactory/api/nuget/v3/ngt-nuget-org/index.json
dotnet nuget disable source "nuget.org"
dotnet nuget disable source "Artifactory"
dotnet nuget list source
```

43
_-Review/asus-laptop.md Normal file
View File

@ -0,0 +1,43 @@
---
type: "topic"
created: "2024-01-29T00:24:50.067Z"
updated: "2024-01-29T00:24:50.067Z"
---
# Asus Laptop
```bash
ufw allow from 192.168.11.0/28 to any port 22 comment "01) SSH"
ufw allow from 192.168.11.0/28 to any port 80 comment "02) HTTP"
ufw allow from 192.168.11.0/28 to any port 9400 comment "03) dashkiosk"
ufw allow from 192.168.0.0/24 to any port 22 comment "04) SSH"
ufw allow from 192.168.0.0/24 to any port 80 comment "05) HTTP"
ufw allow from 192.168.0.0/24 to any port 9400 comment "06) dashkiosk"
```
```bash
38.8 GiB [##########] /var
4.0 GiB [# ] swap.img
3.0 GiB [ ] /usr
2.8 GiB [ ] /snap
258.7 MiB [ ] /boot
5.9 MiB [ ] /etc
2.0 MiB [ ] /root
1.5 MiB [ ] /run
140.0 KiB [ ] /tmp
92.0 KiB [ ] /home
e 16.0 KiB [ ] /lost+found
e 4.0 KiB [ ] /srv
e 4.0 KiB [ ] /opt
e 4.0 KiB [ ] /mnt
e 4.0 KiB [ ] /media
. 0.0 B [ ] /proc
0.0 B [ ] /sys
0.0 B [ ] /dev
@ 0.0 B [ ] libx32
@ 0.0 B [ ] lib64
@ 0.0 B [ ] lib32
@ 0.0 B [ ] sbin
@ 0.0 B [ ] lib
@ 0.0 B [ ] bin
```

1026
_-Review/auclv0558.md Normal file

File diff suppressed because it is too large Load Diff

7
_-Review/avalonia-ui.md Normal file
View File

@ -0,0 +1,7 @@
---
type: "note"
---
# avalonia-ui
- [Avalonia](https://avaloniaui.net/)

9
_-Review/azure.md Normal file
View File

@ -0,0 +1,9 @@
---
type: "note"
created: "2024-03-31T15:03:05.802Z"
updated: "2024-03-31T15:03:20.280Z"
---
# Azure
- [Infineon-Technologies-AG-Mesa-FI](https://dev.azure.com/Infineon-Technologies-AG-Mesa-FI/)

59
_-Review/baget.md Normal file
View File

@ -0,0 +1,59 @@
---
type: "topic"
created: "2024-01-14T02:18:18.203Z"
updated: "2024-04-18T17:02:46.506Z"
---
# BaGet
- [BaGet Worker](../.kanbn/tasks/ba-get-worker.md)
```bash
dotnet nuget locals all --clear
dotnet build "L:\DevOps\Mesa_FI\Baget\src\BaGet.Worker\BaGet.Worker.csproj"
dotnet build "L:\DevOps\Mesa_FI\OI-Metrology\Server\OI.Metrology.Server.csproj"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "Infineon.EAF.Runtime" --version "2.56.0" --source "https://tfs.intra.infineon.com/tfs/ManufacturingIT/_packaging/eaf/nuget/v3/index.json"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "Tibco.Rendezvous" --version "8.5.0" --source "https://packagemanagement.eu.infineon.com:4430/api/v2/"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "Infineon.Yoda" --version "5.4.1" --source "https://packagemanagement.eu.infineon.com:4430/api/v2/"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "External.Common.Logging" --version "3.3.1" --source "https://packagemanagement.eu.infineon.com:4430/api/v2/"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "External.log4net" --version "2.0.8" --source "https://packagemanagement.eu.infineon.com:4430/api/v2/"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "Infineon.Monitoring.MonA" --version "3.0.0" --source "https://packagemanagement.eu.infineon.com:4430/api/v2/"
dotnet add "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj" package "Infineon.Monitoring.MonA" --version "3.0.1" --source "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
dotnet build "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj"
T:
cd "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation"
git ls-tree -l HEAD -- "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj"
git checkout -q -- "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj"
dotnet build "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\Adaptation\MET08RESIHGCV.Tests.csproj"
dotnet build "L:\DevOps\Mesa_FI\File-Watcher\File-Watcher.csproj"
dotnet build "L:\DevOps\Mesa_FI\File-Folder-Helper\File-Folder-Helper.csproj"
dotnet build "L:\DevOps\Mesa_FI\OI-Metrology\Server\OI.Metrology.Server.csproj"
code "L:\DevOps\Mesa_FI\File-Watcher"
REM
```
```bash
sc.exe create "BaGet-Server" binpath="D:\net6.0\BaGet\Server\BaGet.exe"
sc.exe start "BaGet-Server"
sc.exe query "BaGet-Server"
```
```conf
L:\BaGet\2024
\\messdv002.na.infineon.com\Candela\BaGet\2024
L:\BaGet\2024
\\mesfs.infineon.com\EC_EAFRepository\BaGet\2024
\\messa017.infineon.com\d$\ProgramData\EC_EAFRepository\nupkg
\\messa08ec.infineon.com\d$\ProgramData\EC_EAFRepository\nupkg
\\messa08ec.infineon.com\nupkg
\\messa04ec.infineon.com\d$\nupkg
\\messa08ec.infineon.com\nupkg
\\mestsa05ec.infineon.com\d$\nupkg
\\messa08ec.infineon.com\nupkg
\\messa020ec.infineon.com\d$\nupkg
```

View File

@ -0,0 +1,9 @@
---
type: "topic"
created: "2024-01-06T01:25:36.090Z"
updated: "2024-01-06T01:25:36.090Z"
---
# Barcode Scanners
## DS3678

12
_-Review/bash.md Normal file
View File

@ -0,0 +1,12 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.087Z"
updated: "2024-01-06T01:25:36.087Z"
---
# Bash
```bash
sudo -i
```

52
_-Review/bee-link.md Normal file
View File

@ -0,0 +1,52 @@
---
type: "topic"
created: "2024-01-06T01:25:36.115Z"
updated: "2024-01-06T01:25:36.115Z"
---
# Bee-Link
- [Syncthing](syncthing.md)
```bash
adduser syncthing
```
```bash
sudo -i
nano /etc/hosts
echo >/etc/hosts && nano /etc/hosts
```
```conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
127.0.0.1 localhost
127.0.1.1 DESKTOP-PE6MOCB. DESKTOP-PE6MOCB
192.168.0.73 phares3757.ddsn.net
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
```bash
apt-get update
apt-get upgrade
apt-get install syncthing
apt-get install apt-transport-https
apt-get install ca-certificates
apt-get install links
syncthing
adduser syncthing
cat /etc/passwd | cut -d: -f1
systemctl enable syncthing@syncthing.service
systemctl start syncthing@syncthing.service
systemctl status syncthing@syncthing.service
journalctl -e -u syncthing@syncthing.service
nano /home/syncthing/.config/syncthing/config.xml
```

821
_-Review/beelink.md Normal file
View File

@ -0,0 +1,821 @@
---
type: "topic"
Brand: "Beelink"
GPU: "Intel Celeron 11th Gen N5095 2.9GHz"
SSD: "M.2 SATA3 2280"
RAM: "8GB DDR4"
created: "2024-04-02T01:49:25.791Z"
updated: "2024-04-08T16:54:34.096Z"
---
# Beelink
```bash
apt-get update
apt-get upgrade
reboot
ip a
lsb_release -a
apt-get install links unzip net-tools ufw nginx git nano ncdu -y
ncdu
ufw enable
ufw allow from 192.168.0.0/24 to any port 22 comment "01) SSH"
ufw allow to 0.0.0.0/0 port 80 comment "02) HTTP"
ufw allow to 0.0.0.0/0 port 443 comment "03) HTTPS"
ufw status numbered
cd /home/mike/
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 7.0
ln -s /home/mike/.dotnet/dotnet /usr/local/bin/dotnet
dotnet --info
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
dotnet --info
timedatectl set-timezone America/Phoenix
timedatectl
snap install dashkiosk
snap restart dashkiosk
snap install ubuntu-frame wpe-webkit-mir-kiosk
ufw status numbered
snap set wpe-webkit-mir-kiosk url=http://localhost:9400/receiver
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
/snap/wpe-webkit-mir-kiosk/current/bin/setup.sh
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
snap set ubuntu-frame daemon=true
apt-get install -y ca-certificates
openssl s_client -showcerts -connect DESKTOP-H6JG91B:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >DESKTOP-H6JG91B.crt
nano /etc/hosts
nano /etc/nginx/sites-available/default
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:80/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name dashkiosk.laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:9400/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name gogs.laundry.phares.myftp.org;
client_max_body_size 5000m;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name nextcloud.laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8081/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name photoprism.laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:2342/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name ~(pi-hole).laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8005/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name syncthing.laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8384/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
```
```bash
systemctl restart nginx
nginx -t
nginx -s reload
nano /home/mike/laundry.phares.myftp.org.conf
echo >/home/mike/laundry.phares.myftp.org.conf && nano /home/mike/laundry.phares.myftp.org.conf
```
```conf
[req]
default_bits = 2048
default_keyfile = laundry.phares.myftp.org.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Anthem
organizationName = Organization Name (eg, company)
organizationName_default = Phares
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = laundry.phares.myftp.org
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = laundry.phares.myftp.org
DNS.2 = dashkiosk.laundry.phares.myftp.org
DNS.3 = gogs.laundry.phares.myftp.org
DNS.4 = nextcloud.laundry.phares.myftp.org
DNS.5 = photoprism.laundry.phares.myftp.org
DNS.6 = pi-hole.laundry.phares.myftp.org
DNS.7 = syncthing.laundry.phares.myftp.org
DNS.8 = beelink.server
DNS.9 = beelink
DNS.10 = localhost
DNS.11 = 127.0.0.1
```
```bash
rm /etc/nginx/laundry.phares.myftp.org.key
rm /etc/nginx/laundry.phares.myftp.org.crt
ls /etc/nginx
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/laundry.phares.myftp.org.key -out /etc/nginx/laundry.phares.myftp.org.crt -config /home/mike/laundry.phares.myftp.org.conf
ls /etc/nginx
apt install update-manager-core
exit
do-release-upgrade
exit
adduser gogs
cd /home/gogs
wget https://dl.gogs.io/0.13.0/gogs_0.13.0_linux_amd64.tar.gz
tar -xvzf gogs_0.13.0_linux_amd64.tar.gz
rm gogs_0.13.0_linux_amd64.tar.gz
cd gogs
ufw status numbered
./gogs web
mkdir /home/gogs/gogs-repositories
chown gogs /home/gogs -R
chgrp gogs /home/gogs -R
nano /home/gogs/gogs/custom/conf/app.ini
nano /etc/systemd/system/gogs-daemon.service
systemctl enable gogs-daemon
systemctl start gogs-daemon
systemctl status gogs-daemon.service
systemctl daemon-reload
journalctl -fu gogs-daemon.service
journalctl --rotate
journalctl --vacuum-time=1s
cd /home/gogs
git clone https://github.com/Kos-M/GogsThemes
exit
cp ~/.bash_history /home/mike/bash-history-2023-10-17.txt
chown mike /home/mike -R
chgrp mike /home/mike -R
exit
adduser pi-hole
cd pi-hole
curl -sSL https://install.pi-hole.net | bash
```
```conf
# http://pi.hole/admin
# http://192.168.1.62/admin
fUiY4SYS
```
```conf
nano /etc/lighttpd/lighttpd.conf
```
```conf
server.port = 8005
```
```conf
service lighttpd restart
pihole -a -p 4hink
apt install unbound
; https://docs.pi-hole.net/guides/dns/unbound/
nano /etc/unbound/unbound.conf.d/pi-hole.conf
```
```conf
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes
# May be set to yes if you have IPv6 connectivity
do-ip6: no
# You want to leave this to no unless you have *native* IPv6. With 6to4 and
# Terredo tunnels your web browser should favor IPv4 for the same reasons
prefer-ip6: no
# Use this only when you downloaded the list of primary root servers!
# If you use the default dns-root-data package, unbound will find it automatically
#root-hints: "/var/lib/unbound/root.hints"
# Trust glue only if it is within the server's authority
harden-glue: yes
# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes
# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no
# Reduce EDNS reassembly buffer size.
# IP fragmentation is unreliable on the Internet today, and can cause
# transmission failures when large DNS messages are sent via UDP. Even
# when fragmentation does work, it may not be secure; it is theoretically
# possible to spoof parts of a fragmented DNS message, without easy
# detection at the receiving end. Recently, there was an excellent study
# >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
# by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
# in collaboration with NLnet Labs explored DNS using real world data from the
# the RIPE Atlas probes and the researchers suggested different values for
# IPv4 and IPv6 and in different scenarios. They advise that servers should
# be configured to limit DNS messages sent over UDP to a size that will not
# trigger fragmentation on typical network links. DNS servers can switch
# from UDP to TCP when a DNS response is too big to fit in this limited
# buffer size. This value has also been suggested in DNS Flag Day 2020.
edns-buffer-size: 1232
# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads: 1
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
```
```conf
service unbound restart
# http://beelink:8005/admin/settings.php?tab=dns
# https://docs.pi-hole.net/guides/dns/unbound/
127.0.0.1#5335
```
```bash
apt-get install syncthing
apt-get install apt-transport-https
adduser syncthing
cat /etc/passwd | cut -d: -f1
systemctl enable syncthing@syncthing.service
systemctl start syncthing@syncthing.service
systemctl status syncthing@syncthing.service
journalctl -e -u syncthing@syncthing.service
nano /home/syncthing/.config/syncthing/config.xml
```
```xml
<address>0.0.0.0:8384</address>
```
```bash
systemctl restart syncthing@syncthing.service
chown syncthing /home/syncthing -R
chgrp syncthing /home/syncthing -R
```
```bash
ufw status numbered
ufw allow from 192.168.1.0/26 to any port 22 comment "01) SSH"
ufw allow to 0.0.0.0/0 port 80 comment "02) HTTP"
ufw allow to 0.0.0.0/0 port 443 comment "03) HTTPS"
ufw allow from 192.168.1.0/26 to any port 53 comment "04) DNS"
ufw allow from 192.168.1.0/26 to any port 67 comment "05) Unknown"
ufw allow from 192.168.11.0/24 to any port 8005 comment "06) SSH"
ufw allow from 192.168.0.0/26 to any port 22 comment "07) SSH"
ufw allow from 192.168.11.0/28 to any port 22 comment "08) SSH"
ufw allow from 192.168.21.0/28 to any port 22 comment "09) SSH"
ufw allow from 192.168.31.0/26 to any port 22 comment "10) SSH"
ufw allow from 192.168.41.0/26 to any port 22 comment "11) SSH"
ufw allow from 192.168.42.0/28 to any port 22 comment "12) SSH"
ufw allow from 192.168.43.0/26 to any port 22 comment "13) SSH"
ufw allow from 192.168.44.0/26 to any port 22 comment "14) SSH"
ufw allow to 0.0.0.0/0 port 22 comment "15) SSH"
ufw status numbered
```
```conf
To Action From
-- ------ ----
[ 1] 22 ALLOW IN 192.168.1.0/26 # 01) SSH
[ 2] 80 ALLOW IN Anywhere # 02) HTTP
[ 3] 443 ALLOW IN Anywhere # 03) HTTPS
[ 4] 53 ALLOW IN 192.168.1.0/26 # 04) DNS
[ 5] 67 ALLOW IN 192.168.1.0/26 # 05) Unknown
[ 6] 9400 ALLOW IN 192.168.1.0/26 # 06) dashkiosk
```
```bash
echo >/etc/hosts && nano /etc/hosts
nano /etc/hosts
```
```conf
127.0.0.1 localhost
127.0.0.1 beelink
127.0.1.1 laundry.phares.myftp.org
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
```bash
# adduser twingate
# curl -s https://binaries.twingate.com/client/linux/install.sh | bash
# twingate setup
# twingate start
# curl "https://binaries.twingate.com/connector/setup.sh" | sudo TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMDc3IiwiZGlkIjoiMTAwMzc4OSIsImp0aSI6IjIyNTJmMjIwLWNkNjQtNDlhYy04YjRhLTE0NDFjOWUyM2U5ZSIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDE0Mzc4LCJpYXQiOjE2OTgwMTA3NzgsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAxMTA3OCwicm5ldGlkIjoiNzIyNzcifQ.aQnQMUGqM5fBEbR781u-lCPjltfmb1TdZUJTNJ_GYiiSJiemJiIrVK80xHQlIpPB2kot34nxmpvVK4kZK64X3w" TWINGATE_REFRESH_TOKEN="AWOLHa11QFXENAyov_w-KQ5ZC-keHm2w_ActZP8M7hBpy2NOC7EDT2bkEpBCO-YLTd40Pp-pdplIJu0lvdvNBAGINHopYnX2XOgaMxS5tbPPTsHRlnQpckaXYuOwu28W0ORs8g" TWINGATE_NETWORK="phares" bash
# curl "https://binaries.twingate.com/connector/setup.sh" | TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMjIxIiwiZGlkIjoiMTAwNDI3NCIsImp0aSI6ImQxMWIwYWIzLWJjZTgtNDIxZS05MzAwLTA1ZmFkZDk5YjllMiIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDM3MTgzLCJpYXQiOjE2OTgwMzM1ODMsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAzMzg4Mywicm5ldGlkIjoiNzIyNzcifQ.7YqB5iz1lzsfb6adLPx53NNA3dJ1NnuzmNhyyi4FzPdMTGxn3qbHD1olvWpEEi69D8gAvF5K77DPwE1BHxo4Qw" TWINGATE_REFRESH_TOKEN="HypbNsUdue5Dh3s5W4ePR9RIkFDsjEGiNJFJDf_cLdixkn94ieMypUZMH_XIc4-13L_PuQ61M7RWG5rF21ZRAgFf1MuIMf5kJGhuQq_VG7_E_6Q8NMLAajP5W05jTofB-sY3Ig" TWINGATE_NETWORK="phares" bash
```
```bash
# https://ubuntu.com/server/docs/network-configuration
ip a
ip address show eno1
ls -l /etc/netplan/
echo >/etc/netplan/00-installer-config.yaml && nano /etc/netplan/00-installer-config.yaml
```
```yaml old
# This is the network config written by 'subiquity'
network:
ethernets:
enp2s0:
dhcp4: true
version: 2
```
```yaml new
network:
ethernets:
enp2s0:
addresses:
- 192.168.1.62/26
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [205.171.3.25, 205.171.2.25]
version: 2
```
```bash
netplan apply
ip addr flush enp2s0
```
```bash Thu Dec 28 2023 13:45:50 GMT-0700 (Mountain Standard Time)
# ufw allow from 192.168.1.0/26 to any port 8005 comment "04) Pi-hole"
# ufw allow from 192.168.1.0/26 to any port 9400 comment "06) dashkiosk"
# ufw allow from 192.168.1.0/26 to any port 8384 comment "07) syncthing"
```
```bash Thu Dec 28 2023 14:08:10 GMT-0700 (Mountain Standard Time)
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-20-04
sudo -i
snap install nextcloud
snap changes nextcloud
snap info nextcloud
snap connections nextcloud
cat /snap/nextcloud/current/meta/snap.yaml
nextcloud.manual-install admin {KeePass-Password}
nextcloud.occ config:system:get trusted_domains
nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.laundry.phares.myftp.org
nextcloud.occ config:system:get trusted_domains
nano /etc/hosts
ls /var/snap/nextcloud/current/certs/live
nextcloud.disable-https
snap set nextcloud ports.http=8081
nextcloud.occ user:resetpassword admin
nano /home/gogs/gogs/custom/conf/app.ini
# mkdir -p /mnt1
# mount -t ntfs -o ro /dev/sdc1 /mnt1
# mount /dev/sda4 /mnt
# snap stop nextcloud
# cp -r /mnt1/b/ /mnt/1-Images-A/
# ls /var/snap/nextcloud/common/nextcloud/data
# mv /var/snap/nextcloud/common/nextcloud/data /mnt/1-Images-B
# mkdir -p /mnt/1-Images-C/nextcloud/data
# mv /mnt/1-Images-B /mnt/1-Images-C/nextcloud/data
# mkdir -p /mnt/2-Images-B/nextcloud/data
# mv /mnt/1-Images-C/nextcloud/data/1-Images-B/ /mnt/2-Images-B/nextcloud/data/
nano /var/snap/nextcloud/current/nextcloud/config/config.php
mkdir -p /var/snap/nextcloud/common/nextcloud/data
chmod -R 0770 /var/snap/nextcloud/common/nextcloud/data
# chmod -R 0770 /mnt/2-Images-B/nextcloud/data
# mkdir /mnt/1-Images-A
# mkdir /mnt/2-Images-B
# mkdir /mnt/3-Videos-A
# mkdir /mnt/4-Videos-B
# mkdir /mnt/5-Other-Small
# mkdir /mnt/6-Other-Large
# mkdir /mnt/6-Other-Large-B
# mkdir /mnt/7-Question
# mkdir /mnt/8-Move
# mkdir /mnt/9-Delete
snap start nextcloud
nextcloud.occ files:scan --all
# mv /mnt/1-Images-A/c /mnt/2-Images-B/nextcloud/data/admin/files/Photos/_
# nextcloud.occ files:scan --all
# mv /mnt/2-Images-B/nextcloud/data/admin/files/Photos/_ /mnt/2-Images-B/nextcloud/data/admin/files/Photos/Original
# chown -R root:root /mnt/2-Images-B/nextcloud/data
# chmod -R 0770 /mnt/2-Images-B/nextcloud/data
nextcloud.occ files:scan --all
snap set nextcloud php.memory-limit=-1
snap get nextcloud php.memory-limit
snap restart nextcloud
nextcloud.occ preview:generate-all -vvv
nextcloud.mysql-client
nextcloud.export -b
```
```conf
WARNING: This functionality is still experimental and under
development, use at your own risk. Note that the CLI interface is
unstable, so beware if using from within scripts.
Enabling maintenance mode... done
Exporting database...
Successfully exported /var/snap/nextcloud/common/backups/20231228-210650
Disabling maintenance mode... done
```
```bash Sun Dec 31 2023 23:09:31 GMT-0700 (Mountain Standard Time)
sudo -i
snap remove --purge nextcloud
snap install nextcloud
snap changes nextcloud
snap info nextcloud
snap connections nextcloud
cat /snap/nextcloud/current/meta/snap.yaml
nextcloud.manual-install mikepharesjr@msn.com {KeePass-Password}
nextcloud.occ config:system:get trusted_domains
nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.laundry.phares.myftp.org
nextcloud.occ config:system:get trusted_domains
nano /etc/hosts
ls /var/snap/nextcloud/current/certs/live
nextcloud.disable-https
snap set nextcloud ports.http=8081
nextcloud.occ user:resetpassword mikepharesjr@msn.com
nextcloud.occ config:system:set overwrite.cli.url --value=https://nextcloud.laundry.phares.myftp.org
nextcloud.occ config:system:set overwriteprotocol --value=https
cat /var/snap/nextcloud/current/nextcloud/config/config.php
snap start nextcloud
nextcloud.occ files:scan --all
snap set nextcloud php.memory-limit=-1
snap get nextcloud php.memory-limit
snap restart nextcloud
nextcloud.mysql-client
nextcloud.export -b
```
```bash
# mount -t drvfs D: /mnt/d
# ln -s '/mnt/d/1-Images-A/Images-7007a9df-Results/C)Resize/7007a9df/Original/()' '/var/snap/nextcloud/common/nextcloud/data/admin/files/Photos/()'
# chown -R root:root '/var/snap/nextcloud/common/nextcloud/data/admin/files/Photos/()'
# chmod 0770 '/var/snap/nextcloud/common/nextcloud/data/admin/files/Photos/()'
# ls '/var/snap/nextcloud/common/nextcloud/data/admin/files/Photos/()'
# nano /var/snap/nextcloud/current/nextcloud/config/autoconfig.php
# chown -R root:root '/mnt/d/data'
# chmod 0770 '/mnt/d/data'
mount /dev/sdb1 /mnt
cp -r '/mnt/K-A/1-Images-A/Images-7007a9df-Results/C)Resize/7007a9df/Original/()/' '/var/snap/nextcloud/common/nextcloud/data/mikepharesjr@msn.com/files/'
ls -la /home/mike/preview/
# cp -r /home/mike/preview/* /var/snap/nextcloud/common/nextcloud/data/appdata_oce2cq0odh1l/preview/
rsync -a -v -h --ignore-existing /home/mike/preview/ /var/snap/nextcloud/common/nextcloud/data/appdata_oce2cq0odh1l/preview/
chown -R root:root /var/snap/nextcloud/common/nextcloud/data/appdata_oce2cq0odh1l/preview/
ncdu /home/mike/preview/
ncdu /var/snap/nextcloud/common/nextcloud/data/appdata_oce2cq0odh1l/preview/
snap restart nextcloud
nextcloud.occ files:scan --all
nextcloud.occ preview:generate-all -vvv
```
```bash Sat Jan 27 2024 16:58:09 GMT-0700 (Mountain Standard Time)
sudo -i
wget http://www.observium.org/observium_installscript.sh
chmod +x observium_installscript.sh
./observium_installscript.sh
# 5
ufw allow from 192.168.1.0/26 to any port 161 comment "06) SNMP"
nano /etc/snmp/snmpd.conf
```
```conf
###########################################################################
#
# snmpd.conf
# An example configuration file for configuring the Net-SNMP agent ('snmpd')
# See snmpd.conf(5) man page for details
#
###########################################################################
# SECTION: System Information Setup
#
# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string
sysLocation server-beelink
sysContact Mike Phares <mikepharesjr@msn.com>
# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number
sysServices 72
###########################################################################
# SECTION: Agent Operating Mode
#
# This section defines how the agent will operate when it
# is running.
# master: Should the agent operate as a master agent or not.
# Currently, the only supported master agent type for this token
# is "agentx".
#
# arguments: (on|yes|agentx|all|off|no)
master agentx
# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ':'s).
# arguments: [transport:]port[@interface/address],...
# agentaddress 127.0.0.1,[::1]
# Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161,udp6:[::1]:161
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# Views
# arguments viewname included [oid]
# system + hrSystem groups only
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid | -V view]
# Read-only access to everyone to the systemonly view
#rocommunity public default -V systemonly
#rocommunity6 public default -V systemonly
rocommunity fUy#YjMb6t6t573PRNe3 192.168.1.0/26
# SNMPv3 doesn't use communities, but users with (optionally) an
# authentication and encryption string. This user needs to be created
# with what they can view with rouser/rwuser lines in this file.
#
# createUser username (MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224) authpassphrase [DES|AES] [privpassphrase]
# e.g.
# createuser authPrivUser SHA-512 myauthphrase AES myprivphrase
#
# This should be put into /var/lib/snmp/snmpd.conf
#
# rouser: a SNMPv3 read-only access username
# arguments: username [noauth|auth|priv [OID | -V VIEW [CONTEXT]]]
rouser authPrivUser authpriv -V systemonly
# include a all *.conf files in a directory
```
```bash
systemctl restart snmpd
systemctl status snmpd
netstat -antup | grep -i 161
```
```yml
Beelink MINI S Mini PC Basic Specifications
Intel N5095(4C/4T, 4M Cache, 2GHz up to 2.9GHz)
CPU: Intel Celeron Processor N5095(4C/4T, 4M Cache, Up to 2.9GHz)
GPU: Intel UHD Graphics
RAM: 8GB Hard Disk: 128GB/256GB
Network: WiFi IEEE 802.11/b/g/n/ac, 2.4+5.8G WiFi, Ethernet 1000Mbps LAN, Bluetooth 4.0
Adapter: Input: 100-240V AC, 50/60Hz , Output: 12V 3A
Max Screen Resolution: 3840 x 2160@60Hz
Processor: 2.9 GHz celeron
RAM: 8 GB DDR4
Hard Drive: 256 GB SSD
Graphics Coprocessor: Intel UHD Graphics
Chipset Brand: Intel
Card Description: Integrated
Wireless Type: 2.4 GHz Radio Frequency
Number of USB 3.0 Ports: 4
Brand: Beelink
Series: MINIS(MINI S,MINIS Pro,MINI G,MINI X)
Item model number: Beelink
Hardware Platform: PC
Operating System: OS
Item Weight: 1.46 pounds
Package Dimensions: 8.46 x 5 x 2.24 inches
Color: Black
Processor Brand: Intel
Number of Processors: 4
Computer Memory Type: DDR4 SDRAM
Hard Drive Interface: Serial ATA
Hard Drive Rotational Speed: 1800.00
Optical Drive Type: 256
Power Source: Input: 100-120V AC, 50/60Hz
```
```yml Trigkey
Screen Resolution: 3840 x 2160
Max Screen Resolution: 3840 x 2160 pixels
Processor: 3.4 GHz celeron
RAM: 16 DDR4
Hard Drive: 500 GB SSD
Chipset Brand: Intel
Graphics Card Ram Size: 512.00
Number of USB 2.0 Ports: 2
Brand: TRIGKEY
Series: GREEN G4
Item model number: TRIGKEY Mini PC
Hardware Platform: PC
Operating System: OS
Item Weight: 1.25 pounds
Product Dimensions: 4.96 x 4.45 x 1.57 inches
Item Dimensions LxWxH: 4.96 x 4.45 x 1.57 inches
Processor Brand: Intel
Number of Processors: 4
Computer Memory Type: DDR4 SDRAM
Flash Memory Size: 512 MB
Hard Drive Interface: Solid State
```
```bash
root@beelink:~# adduser loganphares
info: Adding user `loganphares' ...
info: Selecting UID/GID from range 1000 to 59999 ...
info: Adding new group `loganphares' (1007) ...
info: Adding new user `loganphares' (1007) with group `loganphares (1007)' ...
info: Creating home directory `/home/loganphares' ...
info: Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for loganphares
Enter the new value, or press ENTER for the default
Full Name []: Logan Phares
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
info: Adding new user `loganphares' to supplemental / extra groups `users' ...
info: Adding user `loganphares' to group `users' ...
root@beelink:~# cp /home/mike/.ssh/authorized_keys /home/loganphares/.ssh/authorized_keys
cp: cannot create regular file '/home/loganphares/.ssh/authorized_keys': No such file or directory
root@beelink:~# mkdir /home/loganphares/.ssh
root@beelink:~# cp /home/mike/.ssh/authorized_keys /home/loganphares/.ssh/authorized_keys
root@beelink:~# chown -R loganphares /home/loganphares
root@beelink:~# mkdir /home/loganphares/.ssh^C
root@beelink:~# usermod -a -G billmiller loganphares
usermod: group 'billmiller' does not exist
root@beelink:~# usermod -a -G billmillermusic loganphares
root@beelink:~# exit
```

View File

@ -0,0 +1,26 @@
---
type: "topic"
created: "2024-01-06T01:25:36.093Z"
updated: "2024-01-06T01:25:36.093Z"
---
# BDD (Behavior Driven Development)
## Given When Then Approach
- Given: Some given context (Preconditions).
- When: Some Action is performed (Actions).
- Then: Particular outcome/consequence after the above step (Results).
- [Gherkin Reference](https://cucumber.io/docs/gherkin/reference/)
- [Examples](https://github.com/cucumber/vscode)
- [writing features - gherkin language](https://docs.behat.org/en/v2.5/guides/1.gherkin.html)
- [Cucumber](https://marketplace.visualstudio.com/items?itemName=CucumberOpen.cucumber-official)
- Remove - [category:formatters feature](https://marketplace.visualstudio.com/items?itemName=korostylov.gherkin-highlight)
- Remove - [SpecFlow Steps Definition Generator](https://marketplace.visualstudio.com/items?itemName=RajUppadhyay.specflow-steps-definition-generator)
- Remove - [Cucumber (Gherkin) Full Support](https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete)
```bash
# https://github.com/search/advanced
path:*.feature schedule language:C#
```

125
_-Review/build-tools.md Normal file
View File

@ -0,0 +1,125 @@
---
type: "topic"
created: "2024-01-06T01:25:36.087Z"
updated: "2024-01-06T01:25:36.087Z"
---
# build-tools
```bash
https://www.royalapps.com/ts/win/download
x-https://silentinstallhq.com/visual-studio-build-tools-2017-silent-install-how-to-guide/
https://visualstudio.microsoft.com/downloads/?q=build+tools
https://learn.microsoft.com/en-us/visualstudio/install/workload-and-component-ids?view=vs-2022
https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2022
https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022
https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2022&preserve-view=true
Microsoft.VisualStudio.Workload.MSBuildTools
vs_BuildTools.exe --layout ./vs_BuildTools --add Microsoft.VisualStudio.Workload.MSBuildTools
vs_BuildTools.exe --layout ./vs_BuildTools --add Microsoft.VisualStudio.Workload.WebBuildTools --includeOptional --lang en-US
vs_BuildTools.exe --layout ./vs_BuildTools --add Microsoft.VisualStudio.Component.WebDeploy --includeOptional --lang en-US
vs_BuildTools.exe --layout ./vs_BuildTools --add wasm.tools --includeOptional --lang en-US
vs_BuildTools.exe --layout ./vs_BuildTools --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang en-US
d:
cd D:/vs_BuildTools - MSBuildTools
vs_BuildTools.exe --noweb --nocache
cd D:/Tmp/phares/vs_BuildTools
```
```bash
https://docs.microsoft.com/en-us/nuget/reference/migrate-packages-config-to-package-reference
https://stackoverflow.com/questions/3980909/microsoft-webapplication-targets-was-not-found-on-the-build-server-whats-your
vs_BuildTools.exe --add Microsoft.VisualStudio.Workload.WebBuildTools --passive
```
```bash
D:
cd D:/VSCode Install/003/Microsoft Visual Studio/2022/vs_BuildTools - MSBuildTools
vs_BuildTools.exe --noweb --nocache
-
dotnet framework what is new in 4.8.1
Announcing .NET Framework 4.8.1
https://devblogs.microsoft.com/dotnet/announcing-dotnet-framework-481/#:~:text=has%20done%20in%20.-,NET%20Framework%204.8.,based%20control%20letter%20by%20letter.
```
```bash
L:/GitHub/msbuild/vs_buildtools__622544594.1570551114.exe --layout c:/vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --add Microsoft.VisualStudio.Setup.WMIProvider --includeOptional --lang en-US
xcopy /e c:/VSLayout //messv02ecc1.ec.local/EC_EAFRepository/VS2019
xcopy /e c:/VSLayout //messdv003.infineon.com/EDA/VS2019
//messdv003.infineon.com/EDA/VS2019
//messv02ecc1.ec.local/EC_EAFRepository/VS2019
ndp461-devpack-kb3105179-enu.exe
```
```bash
D:
cd "D:/Tmp/phares/Microsoft Visual Studio/2022/vs_BuildTools - MSBuildTools"
vs_BuildTools.exe --noweb --nocache
```
```bash
D:
cd D:/2022
vs_BuildTools.exe --noweb --nocache --layout ./vs_BuildTools --add Microsoft.VisualStudio.Workload.WebBuildTools --includeOptional --lang en-US
```
```bash
vs_BuildTools.exe --layout c:\VSLayout --includeOptional --lang en-US
vs_BuildTools.exe --noWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeOptional --lang en-US
```
```json
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.CoreBuildTools",
"Microsoft.VisualStudio.Workload.MSBuildTools",
"Microsoft.VisualStudio.Component.Windows10SDK",
"Microsoft.VisualStudio.Component.VC.CoreBuildTools",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
"Microsoft.VisualStudio.Component.Windows11SDK.22621",
"Microsoft.VisualStudio.Component.VC.CMake.Project",
"Microsoft.VisualStudio.Component.TestTools.BuildTools",
"Microsoft.VisualStudio.Component.VC.ASAN",
"Microsoft.VisualStudio.Component.TextTemplating",
"Microsoft.VisualStudio.Component.VC.CoreIde",
"Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
"Microsoft.VisualStudio.Workload.VCTools",
"Microsoft.VisualStudio.Component.TypeScript.TSServer",
"Microsoft.VisualStudio.Component.Node.Build",
"Microsoft.VisualStudio.Workload.NodeBuildTools"
]
}
```
```bash
certutil.exe -addstore -f "Root" "\\mesfs.infineon.com\VSLayout\certificates\manifestRootCertificate.cer"
certutil.exe -addstore -f "Root" "\\mesfs.infineon.com\VSLayout\certificates\manifestCounterSignRootCertificate.cer"
certutil.exe -addstore -f "Root" "\\mesfs.infineon.com\VSLayout\certificates\vs_installer_opc.RootCertificate.cer"
```
```json - Response.json
{
"installChannelUri": ".\\ChannelManifest.json",
"channelUri": "\\\\mestsa05ec.infineon.com\\VSLayout\\ChannelManifest.json",
"installCatalogUri": ".\\Catalog.json",
"channelId": "VisualStudio.17.Release",
"productId": "Microsoft.VisualStudio.Product.BuildTools",
"addProductLang": [
"en-US"
]
}
```
```bash
\\mesfs.infineon.com\VSLayout\vs_BuildTools.exe --noWeb
```
```bash Tue Jan 02 2024 10:37:11 GMT-0700 (Mountain Standard Time)
# https://visualstudio.microsoft.com/downloads/?q=build+tools
"D:\Downloads\2024\VisualStudioSetup.exe" --layout "C:\VSLayout" --includeOptional --lang en-US
vs_BuildTools.exe --noWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeOptional --lang en-US
```

48
_-Review/c-sharp.md Normal file
View File

@ -0,0 +1,48 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.085Z"
updated: "2024-01-06T01:25:36.085Z"
---
# C Sharp
```bash
dotnet add package runtime.win-x64.Microsoft.DotNet.ILCompiler --version 7.0.7
dotnet publish -r win-x64 -c Release -p:PublishAot=true --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
```
```C#
internal partial class AppSettingsSourceGenerationContext : JsonSerializerContext
```
- [x] File-Folder-Helper
- [x] View-by-Distance-MKLink-Console/Rename
```C#
void Do(Action? tick)
```
- [x] View-by-Distance-MKLink-Console/CopyDistinct
```C#
public interface IMetadata<T> { }
public class B_Metadata : IMetadata<MetadataExtractor.Directory> { int IMetadata<MetadataExtractor.Directory>.GetInt() => 1; }
```
- [x] View-by-Distance-MKLink-Console/Property
```bash
C:\Windows\System32\Config\SystemProfile\AppData\Roaming\Microsoft\UserSecrets
```
```C#
IConfigurationSection[] configurationSections = configurationRoot.GetChildren().ToArray();
foreach (IConfigurationSection configurationSection1 in configurationSections)
{
if (configurationSection1.GetChildren().ToArray().Length > 1)
continue;
}
string text = configurationRoot.GetDebugView();
File.WriteAllText(".txt", text);
```

45
_-Review/cep.md Normal file
View File

@ -0,0 +1,45 @@
---
type: "topic"
created: "2024-01-19T17:28:32.761Z"
updated: "2024-01-19T18:16:19.087Z"
---
# CEP
```
From: Phares Mike (IT FI MES) <Mike.Phares@infineon.com>
Sent: Thursday, November 30, 2023 11:40 AM
To: Jarsey Martha (IT FI MES) <Marti.Jarsey@infineon.com>
Subject: FW: Compass 2 PC Specs
```
Hello Marti,
These would be another case of maybe CEP.
## Client supplied from vendor. Vendor HW, OS and SW
- Tencor (1,2,3)
- HgCV (1,2,3)
- CDE (2,4,5,6)
- BioRad (2,3)
- BioRad Stratus (4,5)
- SP1
- SRP
## Client supplied from IT with standard OS and Virus Protection. IFX HW and OS; Vendor SW
- Wafer counter (FQA 6”, FQA 8” and five more on order for Epi Pro)
- FilmSence (Test tool with webpage (currently on CEP domain but need to question can it be moved to IFX))
- Akrion wet bench (Barcode webpage)
- Nikon Microscope
## Client supplied from IT then FI removes standard OS to add Linux. IFX HW; Vendor OS and SW
- BioRad (2,3 (beta barcode solution))
## Akrion wet bench (per Jonathan) IFX HW and OS, FI SW
- Web page on ISC Fab Client
- Barcode scanner on CEP
## https://cepi-na.infineon.com/#searchresults
- ntp01.mes.infineon.com
- ntp01.auc.infineon.com
- reftime.ifxcep.net

108
_-Review/certbot.md Normal file
View File

@ -0,0 +1,108 @@
---
type: "topic"
created: "2024-01-06T01:25:36.083Z"
updated: "2024-01-06T01:25:36.083Z"
---
# certbot
```bash
ln -s /etc/nginx/sites-available/code-server /etc/nginx/sites-enabled/code-server
nginx -s reload
cp /var/log/letsencrypt/letsencrypt.log /home/vscode/Notes/
ls /etc/nginx/sites-available
cp /etc/nginx/sites-available/code-server /home/vscode/Notes/
echo >/etc/nginx/sites-available/code-server && nano /etc/nginx/sites-available/code-server
nginx -s reload
cp /etc/nginx/sites-available/default /home/vscode/Notes/
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
nginx -s reload
nano /etc/letsencrypt/options-ssl-nginx.conf
links http://phares3757.ddns.net/index.html
nano /etc/nginx/sites-available/default
nginx -s reload
links http://phares3757.ddns.net:8080/index.html
links http://phares3757.ddns.net:8080/index.htm
nano /etc/nginx/sites-available/default
ls /var/www/html
mkdir -R /var/www/html/.well-known/acme-challenge
mkdir -r /var/www/html/.well-known/acme-challenge
mkdir -a /var/www/html/.well-known/acme-challenge
mkdir --a /var/www/html/.well-known/acme-challenge
mkdir -p /var/www/html/.well-known/acme-challenge
nano /var/www/html/.well-known/acme-challenge/3EyVP-v2tP40lnP9unxVDBHOYnkuIyn8cKIODjMdQK4
links http://phares3757.ddns.net:8080/.well-known/acme-challenge/3EyVP-v2tP40lnP9unxVDBHOYnkuIyn8cKIODjMdQK4
certbot --redirect --agree-tos --nginx -d phares3757.ddns.net -m mikepharesjr@msn.com
nano /etc/nginx/sites-available/default
rm /etc/nginx/sites-enabled/code-server
nginx -s reload
links http://phares3757.ddns.net/.well-known/acme-challenge/3EyVP-v2tP40lnP9unxVDBHOYnkuIyn8cKIODjMdQK4
certbot --redirect --agree-tos --nginx -d phares3757.ddns.net -m mikepharesjr@msn.com
ufw status numbered
certbot --redirect --agree-tos --nginx -d phares3757.ddns.net -m mikepharesjr@msn.com
certbot install --cert-name phares3757.ddns.net
ln -s /etc/nginx/sites-available/code-server /etc/nginx/sites-enabled/code-server
nginx -s reload
certbot install --cert-name phares3757.ddns.net
certbot renew
certbot certonly
certbot --non-interactive --redirect --agree-tos --nginx -d phares3757.ddns.net -m mikepharesjr@msn.com
```
```bash
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
# echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
server {
listen 8080 default_server;
listen [::]:8080 default_server;
include /etc/nginx/fcgiwrap.conf;
root /var/www/html;
server_name _;
}
```
```bash
echo >/etc/nginx/sites-available/code-server && nano /etc/nginx/sites-available/code-server
```
```conf
# echo >/etc/nginx/sites-available/code-server && nano /etc/nginx/sites-available/code-server
server {
server_name phares3757.ddns.net;
location / {
proxy_pass http://localhost:8007/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/phares3757.ddns.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/phares3757.ddns.net/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = phares3757.ddns.net) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 8080;
listen [::]:8080;
server_name phares3757.ddns.net;
return 404; # managed by Certbot
}
```
```bash
ufw allow from 0.0.0.0/0 to any port 8080 comment "24) acme-challenge"
cp /var/log/letsencrypt/letsencrypt.log /home/vscode/Notes
certbot --non-interactive --redirect --agree-tos --nginx -d phares3757.ddns.net -m mikepharesjr@msn.com
```

11
_-Review/check-mk.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "note"
created: "2024-02-03T06:22:40.713Z"
updated: "2024-02-03T06:22:55.972Z"
---
# check-mk
# Check MK
https://checkmk.com/download?method=cmk&edition=cre&version=2.2.0p21&platform=ubuntu&os=mantic&type=cmk&google_analytics_user_id=

17
_-Review/chocolatey.md Normal file
View File

@ -0,0 +1,17 @@
---
type: "note"
created: "2024-03-14T17:04:21.119Z"
updated: "2024-03-14T17:09:55.880Z"
---
# Chocolatey
- [Windows Server App Store](https://luy.infineon.com/luy/client/#/single/ItService/64793)
- [IFX DC Win App Store](https://confluencewikiprod.intra.infineon.com/display/WSCS/IFX+DC+WIN+App+Store)
- [Usage](https://confluencewikiprod.intra.infineon.com/display/WSCS/DC+WIN+App+Store+Client+Usage#DCWINAppStoreClientUsage-Thestartmenuentry)
```yml
From: IT: New Service <ITNewService@infineon.com>
Sent: Tuesday, April 26, 2022 7:00 AM
Subject: Windows Server: IFX DC WIN App Store is available now
```

13
_-Review/chonky.md Normal file
View File

@ -0,0 +1,13 @@
---
type: "topic"
created: "2024-01-06T01:25:36.079Z"
updated: "2024-01-06T01:25:36.079Z"
---
# Chonky
```bash
# https://lewisadeveloper.hashnode.dev/create-a-filesystem-browser-with-reactjs-and-chonky
```
[npm](npm.md)

146
_-Review/chromebook.md Normal file
View File

@ -0,0 +1,146 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.079Z"
updated: "2024-01-06T01:25:36.079Z"
---
# Chormebook
```bash
# https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y
```
```bash
# https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html
curl -LO https://corretto.aws/downloads/latest/amazon-corretto-21-x64-linux-jdk.tar.gz
```
```bash
# https://go.dev/dl/
# https://go.dev/doc/install
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
nano .bashrc
```
```conf
# add to bottom
export PATH=$PATH:/usr/local/go/bin
```
```bash
source ~/.bashrc
go version
```
```youtube Sat Apr 13 2024 13:53:41 GMT-0700 (Mountain Standard Time)
320,622 views Sep 13, 2018 Ubuntu Linux Tutorial Videos
Your sound might not work. I can't help that. Find the right drivers for your system. READ THE COMMENTS SECTION. Your question has been answered already.
I will not tell you if your Chromebook is compatible. If you want to know it your Chromebook is compatible, you're going to have to figure out what processor you're working with. Then figure out what architecture it is built on (Braswell, Skylake, etc) and then go here to see if that architecture is compatible. https://johnlewis.ie/custom-Chromeboo...
If you want to install Ubuntu on your Chromebook and remove Chrome OS, this tutorial is for you. This is not a dual boot. This will REPLACE ChromeOS with Ubuntu.
#Ubuntu #Chromebook #ChromeOS
THIS WILL DELETE EVERYTHING FROM YOUR CHROMEBOOK.
Instructions were taken from these locations:
http://www.fascinatingcaptain.com/blo...
https://johnlewis.ie/custom-Chromeboo...
/=========================================/
What youll need:
- Chromebook (Im using the Acer C720)
- Live Linux USB drive (Im using Ubuntu 18.04)
/=========================================/
Step 1. Enable Developer mode
Developer mode will wipe your Chromebook back to factory settings so make sure you back up any data not on your Google drive.
With your Chromebook turned off hold down the ESC and Refresh While keeping them held down, press the power button once.
Press Ctrl + D to bypass this screen.
Press Enter at the next screen.
On the next screen press Ctrl + D to bypass this message.
You will see a timer counting down in the top right hand corner of the screen. The Chromebook will reboot and youll see the screen with the red exclamation mark.
Developer mode is now enabled, power off the Chromebook.
Step 2. Modify the Chromebooks BIOS
By enabling developer mode, your Chromebook will always display the screen with the red exclamation mark on startup. Lets now modify the BIOS to allow us to install Linux.
Turn the Chromebook on and press Ctrl + D to bypass the screen with the red exclamation mark.
Your Chromebook is reset to factory settings so you will need to go through the Chrome OS setup again.
Press Ctrl + Alt + T to bring up a terminal window tab.
Type shell and press Enter.
Type this: cd;bash ˂(curl https://johnlewis.ie/flash_cb_fw.sh)
** You'll have to replace that angle bracket with the one on your keyboard. YouTube won't let me use an actual angle bracket after the "bash"
Choose the option to Modify my Chromebooks RW_LEGACY slot and follow the on-screen instructions.
Step 3. Enable USB boot
Pressing Ctrl + D at the screen with the red exclamation mark on startup will take you to your Chrome OS install but pressing Ctrl + L will take you to the BIOS screen to boot from your USB drive. Lets turn on the Ctrl + L functionality next:
Press Ctrl + D at the initial startup screen to load Chrome OS.
Press Ctrl + Alt + F2 at the Chrome OS login screen.
Login using the password chronos
At the terminal prompt, type sudo crossystem dev_boot_usb=1 dev_boot_legacy=1
Power off the Chromebook by typing in sudo poweroff
Now on startup, if you press Ctrl + L, you will get the BIOS screen instead of Chrome OS.
Step 4. Install Linux
At this stage most of the work is done and all thats left is to install Linux:
Plug in your USB drive into the USB port of your Chromebook.
Plug in your live Linux USB into the other USB port.
Power on the Chromebook and press Ctrl + L to get to the BIOS screen.
Press ESC when prompted and you will see 3 drives: the USB drive, the live Linux USB drive (I am using Ubuntu) and the eMMC (the Chromebooks internal drive). Choose the live Linux USB drive.
Choose the option Try Ubuntu without installing. When Linux loads make sure you can connect to the internet (I am using my trusty USB to Ethernet hub combo for a wired connection).
Click on the Install Ubuntu 18.04 LTS icon and follow the on screen prompts until you get to Installation type.
We want to leave the Chromebooks internal drive untouched so choose the option to do something else so that we can manually setup the partitions for Ubuntu.
Ignore all the mmc partitions and look for your USB drive, if youre not sure, look at the size of the drive.
Check your partitions are correct and continue the install.
The rest of the install is a standard install so just follow the on screen prompts.
Once finished, reboot, remove the live Linux USB and press Ctrl + L
You now have Linux installed. Run the software updates to make sure you have the latest firmware, drivers and software.
/=========================================/
```

View File

@ -0,0 +1,98 @@
---
type: "topic"
created: "2024-01-14T02:18:21.719Z"
updated: "2024-01-16T22:39:43.760Z"
---
# code-marketplace
```PowerShell
# https://github.com/coder/code-marketplace
mkdir D:\go-lang\code-marketplace\extensions
nssm install code-marketplace
```
```yaml
Application Tab:
Path: D:\go-lang\code-marketplace\code-marketplace-windows-amd64.exe
Startup directory: D:\go-lang\code-marketplace
Arguments: server --extensions-dir ./extensions
```
```bash
D:
cd "D:\go-lang\code-marketplace"
code-marketplace-windows-amd64.exe --extensions-dir ./extensions add "C:\Users\phares\Downloads\dheovani.svg-viewer-1.0.2.vsix"
code-marketplace-windows-amd64.exe --extensions-dir ./extensions add "L:\Git\YO-VSCode\type-script-helper\type-script-helper-1.5.1.vsix"
```
```bash
L:
cd "L:\Git\code-marketplace"
go run ./cmd/marketplace/main.go server --extensions-dir ./extensions
```
```bash
curl 'https://localhost/api/extensionquery' -H 'Accept: application/json;api-version=3.0-preview.1' --compressed -H 'Content-Type: application/json' --data-raw '{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"}],"pageSize":1}],"flags":439}' | jq .results[0].extensions[0].versions[0].assetUri
"https://localhost/assets/vscodevim/vim/1.24.1"
"https://localhost/assets/IFX/type-script-helper/1.5.1"
"https://localhost/files/IFX/type-script-helper/1.5.1"
```
```json # product.json
"extensionsGallery": {
"serviceUrl": "https://code-marketplace/api",
"itemUrl": "https://code-marketplace/item",
"resourceUrlTemplate": "https://code-marketplace/files/{publisher}/{name}/{version}/{path}"
},
```
```json # product.json
"linkProtectionTrustedDomains": [
"https://code-marketplace"
],
```
- [codium](https://code-marketplace/api/publishers/IFX/vsextensions/type-script-helper/1.5.1/vspackage)
- [actual](https://code-marketplace/files/IFX/type-script-helper/1.5.1/IFX.type-script-helper-1.5.1.vsix)
- [Using-Open-VSX-in-VS-Code](https://github.com/eclipse/openvsx/wiki/Using-Open-VSX-in-VS-Code)
- [using-extensions-in-compiled-vscode](https://stackoverflow.com/questions/44057402/using-extensions-in-compiled-vscode)
```json
[
{
"_id": "0147389a-4d28-47df-a84d-937d1f15a411",
"colId": "history",
"containerId": "",
"name": "https://code-marketplace/api/extensionquery",
"url": "https://code-marketplace/api/extensionquery",
"method": "POST",
"sortNum": 0,
"created": "2023-09-30T19:41:35.995Z",
"modified": "2023-09-30T19:52:38.850Z",
"headers": [
{
"name": "Accept",
"value": "application/json;api-version=3.0-preview.1"
},
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "User-Agent",
"value": "Thunder Client (https://www.thunderclient.com)",
"isDisabled": true
}
],
"params": [],
"body": {
"type": "json",
"raw": "{\"filters\":[{\"criteria\":[{\"filterType\":8,\"value\":\"Microsoft.VisualStudio.Code\"}],\"pageSize\":1}],\"flags\":439}",
"form": []
},
"tests": []
}
]
```

66
_-Review/code-server.md Normal file
View File

@ -0,0 +1,66 @@
---
type: "basic-note"
assigned: ""
created: "2024-01-06T01:25:36.079Z"
updated: "2024-01-06T01:25:36.079Z"
---
# Code Server
```bash
sudo -i
apt remove code-server
curl -fsSL https://code-server.dev/install.sh | sh
su vscode
nano ~/.config/code-server/config.yaml
```
```yml
bind-addr: 127.0.0.1:8007
auth: password
password: Darren
cert: false
```
```bash
exit
echo>/etc/systemd/system/code-server.service & nano /etc/systemd/system/code-server.service
```
```conf
[Unit]
Description=code-server
After=nginx.service
[Service]
Type=simple
User=vscode
ExecStart=/usr/bin/code-server
Restart=always
[Install]
WantedBy=multi-user.target
```
```bash
service code-server start
service code-server status
systemctl enable code-server
exit
exit
```
```bash
# git bash
npm i -D code-server --unsafe-perm
cd "L:/Git/code-server/node_modules/.bin"
bash code-server
```
## Sub-tasks
- [ ] code-server
### Relations
[Ubuntu](ubuntu.md)

View File

@ -0,0 +1,15 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.078Z"
updated: "2024-01-06T01:25:36.078Z"
---
# Command Prompt
## windows 11 clear quick access
```bash
# https://www.elevenforum.com/t/clear-and-reset-quick-access-folders-in-windows-11.4693/
del /f /s /q /a "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms"
```

14
_-Review/compass.md Normal file
View File

@ -0,0 +1,14 @@
---
type: "topic"
created: "2024-01-30T20:29:49.056Z"
updated: "2024-01-30T20:31:16.608Z"
---
# Compass
## v1.5.1
- http://10.95.1.19/login
- Alerton
- Envision for BACKtalk
- Ascent Compass

View File

@ -0,0 +1,64 @@
---
type: "topic"
created: "2024-01-06T01:25:36.182Z"
updated: "2024-01-06T01:25:36.182Z"
---
# Continuous Improvement - next steps
Hi All
Please look at the next steps and have feedback ready.
## Next steps
- Review and feedback of Incident Frequency actions. Outline attached
- Ideas on how we want those practices documented
- Start roadmap of how establish consistency across all apps
- For reduction in Requirements Changes; - Consider requirements documents examples. What is a good fit for our sites. Marti will send some examples. - Decision / assumption is all requests should have a requirements doc assuming it can be simple for small enhancements
- Marti to prepare for AO roles and responsibilities for next staff meeting. Should jump into this earlier rather than later.
## Key Metrics value add
- Incident Frequency increase quality and stability with permanent corrective actions/detections
- Outline actions/practices
- Check for sustainability / gaps
- Next steps
- SLA for Critical and High priority incidents minimize factory impact of application failures
- follow FI Problem Management process for SLA violations
- review session for updated process
- Performance to Commit increase customer satisfaction with on-time delivery of high priority enhancement requests
- Update graph to include number of requests completed
- Outline current / needed practices
- Align on where to start
- Check for sustainability / gaps
- Next steps
- Deployment Quality
- Outline after AO responsibilities and define IRMA scope
## INCIDENT FREQUENCY
- Practices to keep and expand. Define gaps and outline next steps needed.
- For all in-house apps.
- Join all apps in Iteraplan to Eva
- Source Control in Git
- Use of Dev server for development
- Use of DevOps
- Join all apps in Iteraplan in Eva
- Build script to build binaries (how to accomplish the same for OI); adjust for Test environment; incl diff levels of complexity where possible
- Include automated test plans; minimum “happy path”
- Script to release/deploy - Rigorous testing; more edge cases, use checklists and/or OneNote, may be in Test Plans - Code review before deployment - User testing and buy-off before deployment - Ensure user training is done before deployment - Communication (customer and FI) before deployment. Leverage IRMA - App / Server monitoring; define standard minimum resource/behavior to monitor.
- For 3rd party apps (no development but vendor or Infineon upgrades)
- Join all apps in Iteraplan to Eva
- No source control and no Dev server
- No use of DevOps due limited benefit
- User testing and buy-off before deployment
- Ensure user training is done before deployment
- Communication (customer and FI) before deployment. Leverage IRMA
- App / Server monitoring; define standard minimum resource/behavior to monitor.
- For Marti;
- work on retaining/developing OI / Mesa OI experience
- ensuring that scope/size does not exceed FI resource bandwidth
- Continued communications with IT OS (bi-weekly alignment call)
- Work with team to propose best fit FAQ solution
- Consider customer enabling as part of PCA
- How and where to enshrine

13
_-Review/copilot.md Normal file
View File

@ -0,0 +1,13 @@
---
type: "note"
created: "2024-03-13T15:19:46.792Z"
updated: "2024-03-18T15:26:00.235Z"
---
# Copilot
- [wiki](https://confluencewikiprod.intra.infineon.com/display/SFGH/GitHub+Copilot+-+Best+Practices)
- [Install](https://confluencewikiprod.intra.infineon.com/display/IFX/GitHub+Copilot)
- [SSO](https://github.com/orgs/infineon/sso)
- [Permission](https://confluencewikiprod.intra.infineon.com/display/IFX/How+to+get+permission+for+Copilot+and+GitHub+account)
- [Work-Flow-Generator](https://workflowgenerator.infineon.com/portal/f164e6d7-35c9-40a7-b4f2-45316b0d3d68/userDelegates)

17
_-Review/crontab.md Normal file
View File

@ -0,0 +1,17 @@
---
type: "note"
created: "2024-04-08T22:34:39.830Z"
updated: "2024-04-08T22:34:43.299Z"
---
# crontab
```bash
crontab -l
crontab -r
crontab -e
```
```conf
*/2 * * * * nmap -n -sn -Pn 192.168.31.19 192.168.31.82 -oN /var/www/html/on-results.txt
```

5
_-Review/cygwin64.md Normal file
View File

@ -0,0 +1,5 @@
---
type: "note"
---
# cygwin64

192
_-Review/dameware.md Normal file
View File

@ -0,0 +1,192 @@
---
type: "topic"
created: "2024-01-06T01:25:36.137Z"
updated: "2024-01-06T01:25:36.137Z"
---
# Dameware
```
cSpell:disable
```
```conf
inetcpl.cpl
\\messv02ecc1.ec.local\EC_EAFRepository\Fab ISCvX
Start
../\ISCFC1Q4DV2\FQA - Bag Table Left.txt
../\ISCFC1T1DV2\FQA - Bag Table Right.txt
../\ISCFC270DV2\Left of R74.txt
../\ISCFC274DV2\Behind R52.txt
../\ISCFC2B0DV2\Left of R39.txt
../\ISCFC2B5DV2\FQA - Left of BioRad4.txt
../\ISCFMXL7151J58\Right of R24.txt
../\ISCFMXL7151J5B\Behind Tencor 3.txt
../\ISCFMXL7151J5C\Right of R36.txt
../\ISCFMXL7151J5D\Right of R43.txt new
../\ISCFMXL7151J5K\Behind R44.txt
../\ISCFMXL7151J5N\Right of R61.txt
../\ISCFMXL7151J5P\Right of R23.txt new
../\ISCFMXL7151J5Q\Right of R27.txt
../\ISCFMXL7151J5R\Behind R50.txt
../\ISCFMXL7151J5S\Right of R28.txt new
../\ISCFMXL7151J5T\Right of R64.txt
../\ISCFMXL7151J60\Right of R35.txt
../\ISCFMXL7151J61\Right of R57.txt
../\ISCFMXL7151J64\Behind R42.txt
../\ISCWMXL7151J5G\Supervisor (Kelly).txt
../\ISCWMXL7151J62\Lead Desk (Mircrowave).txt
../\ISCWMXL7151J63\Supervisor (Ian).txt
```
```conf
new at 62 and 64
```
```conf
ISCFMXL2472FSZ.INFINEON.COM 10.95.33.55 infineon\IFXRESFB8E81A3F
```
```conf
ifxres2dc9530f2 and ifxresfb8e81a3f
```
```conf
C:\WINDOWS\SysWOW64\odbcad32.exe
\\mestsa003\mestsa003\CAA
```
```conf
ISCFMXL7151J5B-Off
ISCFMXL7151J5C-Failed-IFXResd8b6c1414
ISCFMXL7151J5D-Off
ISCFMXL7151J5P-Off
ISCFMXL7151J5T-Off
ISCWMXL7151J5G-Off
ISCWMXL7151J62-Off
ISCWMXL7151J63-Off
```
```conf
ISCFC1Q4DV2-Works from P:
ISCFC1T1DV2-Works from P:
ISCFC270DV2-Needs auto logon
ISCFC274DV2-Works from P:
ISCFC2B0DV2-Works from P:
ISCFC2B5DV2-Works from P:
ISCFMXL7151J58-Works from P:
ISCFMXL7151J5B-Off
```
```conf
ISCFMXL7151J5C-Failed-IFXResd8b6c1414
ISCFMXL7151J5D-Off
ISCFMXL7151J5K-Works from P:
ISCFMXL7151J5N-Works from P:
ISCFMXL7151J5P-Off
```
```conf
ISCFMXL7151J5Q-Works from P:
ISCFMXL7151J5R-Works from P:
ISCFMXL7151J5S-Works from P:
ISCFMXL7151J5T-Off
ISCFMXL7151J60-Works from P:
```
```conf
ISCFMXL7151J61-Works from P:
ISCFMXL7151J64-Works from P:
ISCWMXL7151J5G-Off
ISCWMXL7151J62-Off
ISCWMXL7151J63-Off
```
```bat
REM copy "\\mestsa003.infineon.com\mestsa003\SPC (Si).lnk" "\\mesfs.infineon.com\EC_Production"
copy "\\mestsa003.infineon.com\mestsa003\SPC (Si).lnk" "C:\Users\Public\FabStartMenu\Programs"
copy "\\mestsa003.infineon.com\mestsa003\SPC (Si).lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\InfinityQS"
copy "\\mestsa003.infineon.com\mestsa003\INFINITYQS.INI" "C:\Program Files (x86)\InfinityQS International\ProFicient\Applications"
\\mestsa003.infineon.com\mestsa003\SPCEPIWORLD_hklm.reg
```
| Shortcut | New Icon Path | Status |
|------------------|-------------------------------------------------------|--------|
| Fabtime | c:\programdata\iscvx\fabicons\FabTime.ico | done |
| Iapps | c:\programdata\iscvx\fabicons\iApps.ico | done |
| Mesa Approval | c:\programdata\iscvx\fabicons\Mesa Approval.ico | done |
| Mesa PTO | c:\programdata\iscvx\fabicons\Mesa PTO Calendar.ico | done |
| MSDS | c:\programdata\iscvx\fabicons\MSDS Online.ico | doe |
| NICA | c:\programdata\iscvx\fabicons\NICA.ico | done |
| OI Metrology | c:\programdata\iscvx\fabicons\OI Metrology Viewer.ico | done |
| OI-Wizard | c:\programdata\iscvx\fabicons\OI-Wizard.ico | done |
| Openinsight RADC | c:\programdata\iscvx\fabicons\OpenInsight (RADC).ico | done |
| Outlook Web | c:\programdata\iscvx\fabicons\Outlook Web Access.ico | done |
| Windchill | c:\programdata\iscvx\fabicons\Windchill-Mesa.ico | done |
| HPN | Hostname | Status |
|--------------|-----------------------------|---------|
| MESCROOM001 | ISCFC1T1DV2.infineon.com | done |
| MESCROOM003 | ISCFC1Q4DV2.infineon.com | done |
| MESCROOM004 | ISCFC270DV2.infineon.com | done |
| MESCROOM005 | ISCFC2B0DV2.infineon.com | done |
| MESCROOM007 | ISCFMXL7151J58.infineon.com | done |
| MESCROOM008 | ISCFC2B5DV2.infineon.com | done |
| MESCROOM009 | ISCFC274DV2.infineon.com | done |
| MESCROOM010 | ISCFMXL7151J5S.infineon.com | done |
| MESCROOM011 | ISCFMXL7151J61.infineon.com | done |
| MESCROOM012 | ISCFMXL7151J5N.infineon.com | done |
| MESCROOM015 | ISCFMXL7151J5K.infineon.com | done |
| MESCROOM017 | ISCFMXL7151J64.infineon.com | done |
| MESCROOM018 | ISCFMXL7151J5R.infineon.com | done |
| MESCROOM019 | ISCFMXL7151J5Q.infineon.com | done |
| MESCROOM020 | ISCFMXL7151J5C.infineon.com | done |
| MESCROOM023 | ISCFMXL7151J60.infineon.com | done |
| MESCROOM024 | ISCFMXL7151J5W.infineon.com | done |
| MESCROOM301 | ISCF5CG2255YZN.infineon.com | done |
| MESCROOM3300 | ISCFMXL2194MXD.infineon.com | done |
| MESCROOM3301 | ISCFMXL2194MW4.infineon.com | done |
| MESCROOM3302 | ISCFMXL2194N0G.infineon.com | done |
| MESCROOM3303 | ISCFMXL2194N05.infineon.com | done |
| MESCROOM3304 | ISCFMXL2472FTD.infineon.com | offline |
| MESCROOM3305 | ISCFMXL2472FSZ.infineon.com | offline |
| MESCROOM3306 | ISCFMXL2472FT0.infineon.com | offline |
| MESCROOM3308 | ISCFMXL2472FSQ.infineon.com | offline |
- [Mouse Jiggler](https://github.com/arkane-systems/mousejiggler/releases)
```conf
ISCFMXL2472FSZ|MESCROOM3305|IFXRESFB8E81A3F
ISCFMXL2472FT0|MESCROOM3306|IFXRES431CF1E0E
ISCFMXL2472FSR|MESCROOM3307|IFXRESCD3A9A2CB
ISCFMXL2472FSQ|MESCROOM3308|IFXRESBF5E465AE
ISCFMXL2472FT1|MESCROOM3309|IFXRESB77913FDC
```
```conf
../\ISCWMXL20835X1.infineon.com\FI Dashboard
R59 is with Anton
../\ISCFMXL3425LDQ.infineon.com\FI Dashboard
```
```conf
ISCFMXL3352PQ5;ISCFMXL3352PQ3;ISCFMXL3352PPY;ISCFMXL3352PPX;ISCFMXL3352PQ0;ISCFMXL3352PQ1;ISCFMXL3352PQK;ISCFMXL3352PQ2;ISCFMXL3352PQ4;ISCFMXL3352PPW;ISCFMXL2472FT3;ISCFMXL3352PPZ
```
- [FAQ](https://webnetprod.muc.infineon.com/EndUserFAQs#/article/130332)
| Machine Name | User | Logon | Description | FabIcons |
|----------------|--------------|-----------------|-------------| ---------- |
| ISCFMXL3352PQ5 | MESCROOM3310 | IFXRes3486af362 | Packaging | 2024-05-10 |
| ISCFMXL3352PQ3 | MESCROOM3311 | IFXRes61f90d43d | Maybe R73 | 2024-05-10 |
| ISCFMXL3352PPY | MESCROOM3312 | IFXRese18fde6b6 | | |
| ISCFMXL3352PPX | MESCROOM3313 | IFXResb66fa8b6a | | |
| ISCFMXL3352PQ0 | MESCROOM3314 | IFXRes0ddf78c46 | | |
| ISCFMXL3352PQ1 | MESCROOM3315 | IFXResf589ff5f3 | | |
| ISCFMXL3352PQK | MESCROOM3316 | IFXRes2914ffc2d | | |
| ISCFMXL3352PQ2 | MESCROOM3317 | IFXRes052227094 | | |
| ISCFMXL3352PQ4 | MESCROOM3318 | IFXRes9ca8962b9 | | |
| ISCFMXL3352PPW | MESCROOM3319 | IFXResc5cf7df07 | | |
| ISCFMXL2472FT3 | MESCROOM3320 | IFXResfff87eb0e | | |
| ISCFMXL3352PPZ | MESCROOM3321 | IFXResa396c6187 | | |
| ISCFMXL2472FTD | asdf | asdf | Microscope | |

43
_-Review/dashkiosk.md Normal file
View File

@ -0,0 +1,43 @@
---
type: "topic"
created: "2024-01-06T01:25:36.138Z"
updated: "2024-01-06T01:25:36.138Z"
---
# Ubuntu Dashkiosk
[Ubuntu](ubuntu.md)
```bash
# https://mir-server.io/docs/how-to-set-up-digital-signage-on-ubuntu-frame
apt update
apt upgrade -y
apt install update-manager-core
do-release-upgrade
exit
sudo -i
reboot
sudo -i
apt-get install links unzip net-tools -y
snap install dashkiosk
timedatectl set-timezone America/Phoenix
snap restart dashkiosk
snap install ubuntu-frame wpe-webkit-mir-kiosk
snap set wpe-webkit-mir-kiosk daemon=true
snap set wpe-webkit-mir-kiosk url=http://localhost:9400/receiver
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
/snap/wpe-webkit-mir-kiosk/current/bin/setup.sh
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
snap set ubuntu-frame daemon=true
ln -s /var/log/nginx /var/www/html/log-nginx
ls -la /var/www/html
exit
sudo -i
reboot
sudo -i
cp ~/.bash_history /etc/bash_history_2024-04-21.txt
chmod -R 777 /etc/bash_history_2024-04-21.txt
ls
exit
ip link
```

View File

@ -0,0 +1,134 @@
---
type: "topic"
created: "2024-01-06T01:25:36.078Z"
updated: "2024-01-06T01:25:36.078Z"
---
# DataCenterCockpIT
- [api](https://gears.icp.infineon.com/swagger/index.html)
```url
https://sso.infineon.com/idp/userinfo.openid
```
```header
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer 0004ZzTg1z7oAT89Zq5XCFO4bgUv
Cache-Control: no-cache
Connection: keep-alive
Host: sso.infineon.com
Origin: https://dccockpit.icp.infineon.com
Pragma: no-cache
Referer: https://dccockpit.icp.infineon.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36 Edg/115.0.1901.188
sec-ch-ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
```
```url
# Windows Server Hosts
https://gears.icp.infineon.com/api/WindowsServer/GetForUser/IF30135815
```
```header
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer 0004lUFJxb7X4439WbtrAuNVk9vz
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Host: gears.icp.infineon.com
Origin: https://dccockpit.icp.infineon.com
Pragma: no-cache
Referer: https://dccockpit.icp.infineon.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36 Edg/115.0.1901.188
sec-ch-ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
```
```url
# Database Accounts
https://debra.icp.infineon.com/api/Account/GetByOwnerId?ownerID=IF30135815
```
```header
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer 0004wPYWrqyGv9t7J5ti8yls93BL
Cache-Control: no-cache
Connection: keep-alive
Host: debra.icp.infineon.com
Origin: https://dccockpit.icp.infineon.com
Pragma: no-cache
Referer: https://dccockpit.icp.infineon.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36 Edg/115.0.1901.188
sec-ch-ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
```
```url
# Custom Endpoints
https://dcchesit-api.icp.infineon.com/DeviceViews
```
```header
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer 0004wPYWrqyGv9t7J5ti8yls93BL
Cache-Control: no-cache
Connection: keep-alive
Host: dcchesit-api.icp.infineon.com
Origin: https://dccockpit.icp.infineon.com
Pragma: no-cache
Referer: https://dccockpit.icp.infineon.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36 Edg/115.0.1901.188
sec-ch-ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
```
```url
# My DC Assets
https://dcc-core.icp.infineon.com/api/MyDCAssets/IF30135815
```
```header
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer 0004WTnVZvLg85onJOvQQGbhGhmj
Cache-Control: no-cache
Connection: keep-alive
Host: dcc-core.icp.infineon.com
Origin: https://dccockpit.icp.infineon.com
Pragma: no-cache
Referer: https://dccockpit.icp.infineon.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36 Edg/115.0.1901.188
sec-ch-ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
```

View File

@ -0,0 +1,53 @@
---
type: "topic"
Brand: "Trigkey"
GPU: "Intel Celeron 12th Gen N100 3.4GHz"
SSD: "M.2 2280"
RAM: "16GB DDR4"
created: "2024-01-14T02:18:08.272Z"
updated: "2024-02-02T22:16:54.818Z"
---
# DESKTOP-BMV4V66
## Install
- [x] AmazonPhotosSetup
- [x] Apache_OpenOffice_4.1.14_Win_x86_install_en-US.exe
- [x] ArduinoCreateAgent-1.3.6-windows-amd64-installer
- [x] dotnet-sdk-8.0.100-win-x64.exe
- [x] FreeFileSync_13.2_Windows_Setup.exe
- [x] Git-2.43.0-64-bit.exe
- [x] KeePass-2.55-Setup.exe
- [x] nmap-7.94-setup.exe
- [x] node-v20.10.0-x64.msi ~~~node-v18.17.0-x64.msi~~~
- [x] putty-64bit-0.80-installer.msi
- [x] RootsMagic9SetupX64
- [x] S-NXSTDO-010500WF-ALLIN-ALL___.exe
- [x] syncthing-windows-amd64-v1.27.1.zip
- [x] Vivaldi.6.5.3206.48.x64.exe
- [x] VSCodeUserSetup-x64-1.85.1.exe
- [x] VSCodeUserSetup-x64-1.86.0-insider.exe
- [x] VSCodiumUserSetup-x64-1.85.1.23348.exe
- [x] WinSCP-6.1.2-Setup.exe
## Setup
- [x] Update hosts file
- [x] SSH Server
- [x] Git setup
- [x] Login and add ssh-ed25519 AAA...
- [x] VSCode install git graph extension only
- [x] VSCode repositories
- [x] Cloned File-Folder-Helper
- [x] My extension
- [x] KeePass plugins
- [x] SSH Beelink
- [x] SSH Kristy
- [x] SSH Mike (2 TB)
- [x] Clone Code Server
- [x] nginx
- [ ] Install the remaining VSCode extensions
- [ ] BaGet
- [ ] [build-tools](build-tools.md)
- [ ] Ubuntu-Home-Assistant

344
_-Review/desktop-h6jg91b.md Normal file
View File

@ -0,0 +1,344 @@
---
type: "topic"
created: "2024-01-06T01:25:36.078Z"
updated: "2024-01-06T01:25:36.078Z"
---
# DESKTOP-H6JG91B
```conf
maas
1178
1178
```
```bash
sudo -i
apt-get update
apt-get upgrade
apt-get install links unzip net-tools ufw nginx git ncdu nano nmap -y
reboot
```
```bash
wsl --export Ubuntu Ubuntu-MAAS-001.tar
```
```bash
ip a
lsb_release -a
ufw enable
ufw status numbered
ufw disable
```
```bash
cd /home/maas/
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 8.0
ln -s /home/maas/.dotnet/dotnet /usr/local/bin/dotnet
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
dotnet --info
```
```bash
timedatectl set-timezone America/Phoenix
snap install dashkiosk
snap restart dashkiosk
snap install ubuntu-frame wpe-webkit-mir-kiosk
snap set wpe-webkit-mir-kiosk url=http://localhost:9400/receiver
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
```
```bash
/snap/wpe-webkit-mir-kiosk/current/bin/setup.sh
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
```
```bash
snap set ubuntu-frame daemon=true
apt-get install -y ca-certificates
nano /home/maas/localhost.conf
echo >/home/maas/localhost.conf && nano /home/maas/localhost.conf
```
```conf
[req]
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Anthem
organizationName = Organization Name (eg, company)
organizationName_default = Phares
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = desktop-h6jg91b
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = desktop-h6jg91b
DNS.2 = localhost
DNS.3 = 127.0.0.1
```
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/localhost.key -out /etc/nginx/localhost.crt -config /home/maas/localhost.conf
ls /etc/nginx
nano /etc/nginx/sites-available/default
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
ssl_certificate 'localhost.crt';
ssl_certificate_key 'localhost.key';
listen 443 default_server ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 default_server ssl http2;
server_name _;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
```
```bash
nginx -t
systemctl restart nginx
nginx -s reload
exit
```
```bash
cp ~/.bash_history /home/maas/bash-history-2023-11-20.txt
chown maas /home/maas -R
chgrp maas /home/maas -R
nano /home/maas/bash-history-2023-11-20.txt
exit
```
```bash 1.85 GB
wsl --export Ubuntu Ubuntu-MAAS-002.tar
```
```bash
su -i
reboot
```
```bash
# https://maas.io/docs/fresh-installation-of-maas
sudo -i
snap install --channel=3.4/edge maas
systemctl disable --now systemd-timesyncd
apt install -y postgresql
```
```postgresql
mikepharesjr = ___________
1178 = ___________
maas = ___________
localhost = _________
```
```bash
sudo -i -u postgres psql
drop database maas with (force);
\q
sudo -i -u postgres psql -c "CREATE USER \"mikepharesjr\" WITH ENCRYPTED PASSWORD '1178'"
sudo -i -u postgres createdb -O "mikepharesjr" "maas"
cat /etc/postgresql/14/main/pg_hba.conf
nano /etc/postgresql/14/main/pg_hba.conf
```
```conf
host maas mikepharesjr 0/0 md5
```
```bash
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
```
```conf
http://172.23.77.6:5240/MAAS
http://127.0.0.1:5240/MAAS
```
```bash
maas createadmin
```
```conf
mikepharesjr
1178
1178
mikepharesjr@msn.com
gh:mikepharesjr
```
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/localhost.key -out /etc/nginx/localhost.crt -config /home/maas/localhost.conf
ls /etc/nginx
```
```bash
maas status
# http://localhost:5240/MAAS
```
```bash
snap stop maas
systemctl stop postgresql.service
~~systemctl stop maas-dhcpd.service~~
~~systemctl stop maas-rackd.service~~
~~systemctl stop maas-regiond.service~~
```
```bash
snap stop maas
snap remove --purge maas
systemctl enable --now systemd-timesyncd
```
```bash
systemctl disable --now systemd-timesyncd
snap install --channel=3.4/edge maas
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
maas status
```
```bash 6.43 GB
wsl --export Ubuntu Ubuntu/Ubuntu-MAAS-003.tar
```
```conf
172.23.64.0/20 => 192.168.0.0/24
172.23.64.1 => 192.168.0.1
```
```bash
nmap -n -sU -p67 --script broadcast-dhcp-discover
```
```PowerShell
netstat -a -b
```
```bash 6.45 GB
wsl --export Ubuntu D:/9-Delete/Ubuntu-MAAS-004.tar
wsl --unregister Ubuntu
wsl --import Ubuntu "D:\9-Delete" "D:\9-Delete\Ubuntu-MAAS-004.tar"
```
```conf
pihole
1178
1178
```
```bash
sudo -i
apt-get update
apt-get upgrade
apt-get install links unzip net-tools ufw nginx git ncdu nano nmap ca-certificates -y
reboot
```
```bash 1.34 GB
wsl --export Ubuntu Ubuntu/Ubuntu-PiHole-001.tar
wsl --unregister Ubuntu
wsl --import Ubuntu "C:\Users\mikep\Ubuntu" "C:\Users\mikep\Ubuntu\Ubuntu-PiHole-001.tar"
```
```bash
sudo -i
```
```bash
cd /home/pihole
curl -sSL https://install.pi-hole.net | bash
```
```bash
pihole -a -p 4hink
nano /etc/lighttpd/lighttpd.conf
```
```conf
...
server.port = 8005
...
```
```bash
service lighttpd restart
# http://localhost:8005/admin
```
```bash
mkdir -p /tftpboot/kali
cd /tftpboot/kali
# https://www.kali.org/docs/installation/network-pxe/
# https://discourse.pi-hole.net/t/setting-up-a-pxe-boot-server-with-docker-compose-and-boot-kali-linux-or-other-oss/50218
wget http://http.kali.org/kali/dists/kali-rolling/main/installer-amd64/current/images/netboot/netboot.tar.gz
tar -zxpf netboot.tar.gz
rm netboot.tar.gz
nano /etc/dnsmasq.d/99-pxeboot.conf
ls /etc/dnsmasq.d/
```
```conf kali
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/tftpboot/
pxe-prompt="Press F8 for menu.", 60
pxe-service=x86PC,"Boot from local disk",0
pxe-service=x86PC,"Boot Kali Linux",kali/pxelinux
```
```bash
pihole restartdns
pihole status
pihole-FTL dhcp-discover
nmap -n -sU -p67 --script broadcast-dhcp-discover
```
```bash 1..49 GB
wsl --export Ubuntu Ubuntu/Ubuntu-PiHole-002.tar
wsl --unregister Ubuntu
wsl --import Ubuntu "C:\Users\mikep\Ubuntu" "C:\Users\mikep\Ubuntu\Ubuntu-PiHole-002.tar"
```

View File

@ -0,0 +1,89 @@
---
type: "topic"
created: "2024-01-14T02:18:17.424Z"
updated: "2024-02-02T22:16:54.819Z"
---
# DESKTOP-KA0LMMJ
## Install
- [x] AmazonPhotosSetup
- [x] Apache_OpenOffice_4.1.14_Win_x86_install_en-US.exe
- [x] ArduinoCreateAgent-1.3.6-windows-amd64-installer
- [x] dotnet-sdk-8.0.100-win-x64.exe
- [x] FreeFileSync_13.2_Windows_Setup.exe
- [x] Git-2.43.0-64-bit.exe
- [x] KeePass-2.55-Setup.exe
- [x] nmap-7.94-setup.exe
- [x] node-v20.10.0-x64.msi ~~~node-v18.17.0-x64.msi~~~
- [x] putty-64bit-0.80-installer.msi
- [x] RootsMagic9SetupX64
- [x] S-NXSTDO-010500WF-ALLIN-ALL___.exe
- [x] syncthing-windows-amd64-v1.27.1.zip
- [x] Vivaldi.6.5.3206.48.x64.exe
- [x] VSCodeUserSetup-x64-1.85.1.exe
- [x] VSCodeUserSetup-x64-1.86.0-insider.exe
- [x] VSCodiumUserSetup-x64-1.85.1.23348.exe
- [x] WinSCP-6.1.2-Setup.exe
## Setup
- [x] Move to 500 GB NVMe
- [x] Steam
- [x] SIMS 4
- [x] EA Games
- [x] Update hosts file
- [x] Git setup
- [x] Login and add ssh-ed25519 AAA...
- [x] VSCode install git graph extension only
- [x] My extension
- [x] KeePass plugins
- [x] Clone Code Server
- [x] nginx
- [x] Cloned File-Folder-Helper
- [x] VSCode repositories
- [x] SSH Server
- [x] SSH Beelink
- [x] SSH Kristy
- [ ] SSH Mike (2 TB)
- [ ] Install the remaining VSCode extensions
- [ ] BaGet
- [ ] [build-tools](build-tools.md)
- [ ] Ubuntu-Home-Assistant
## Backup
- [ ] Copy A Images, A Videos to 1 TB
- [ ] Shrink 2 TB C to ~150 GB
- [ ]
## Mounted Drives
- 2 TB Mike-Desktop (WD SN770)
- C 130 GB, D 294 GB, K 465 GB, L 971 GB
- 1 TB Mike-Mini (WD SN770)
- C 111 GB, D 409 GB, L 409 GB
- 0.5 TB Chelsea-Desktop (WD SN750)
- C 122 GB, D 332 GB, L 10 GB
- 0.5 TB Kristy-Desktop (Sk Hynix)
- C 301 GB, D 159 GB, L 4 GB
- 1 TB Logan-Desktop (Samsung 970 EVO)
- C 923 GB, D 1 GB, l 1 GB
- 0.25 TB Laundry-Server (Generic)
- /sda
## Drives
- 0.5 TB Backup Spindle
- 0.5 TB Generic NVMe
- 0.5 TB SanDisk
- 0.25 TB Samsung
- 0.25 TB SanDisk
- 0.25 TB SanDisk
- 0.125 TB Kingston
- 0.125 TB Kingston
- 0.125 TB Kingston
- 0.064 TB SanDisk
- 0.064 TB SanDisk
- 0.064 TB SanDisk

18
_-Review/dhcp.md Normal file
View File

@ -0,0 +1,18 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# DHCP
- [x] Shrink Router to lower half
- Beginning DHCP Address: 192.168.0.2
- Ending DHCP Address: 192.168.0.121
- [x] Set the DNS servers allocated with DHCP requests.
- Custom Primary: 192.168.0.2 Secondary: 192.168.0.1
- [x] DHCP Reservation for DHCP Server and one machine
- [x] Set DHCP Server range upper half
- [x] Shrink Router to just it and one machine
- Beginning DHCP Address: 192.168.0.2
- Ending DHCP Address: 192.168.0.3

35
_-Review/didact.md Normal file
View File

@ -0,0 +1,35 @@
---
type: "topic"
created: "2024-01-14T02:18:08.212Z"
updated: "2024-01-16T15:04:58.320Z"
---
# DiDact
- [Passwords for Didact and TestPlan](https://ishare.infineon.com/sites/MIT_FE_EA/ACM_FE/Shared%20Documents/DiDact%20Test%20Application/PasswordsforDidactandTestPlan.txt)
- [iShare DiDact Test Application ](https://ishare.infineon.com/sites/MIT_FE_EA/ACM_FE/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2FMIT%5FFE%5FEA%2FACM%5FFE%2FShared%20Documents%2FDiDact%20Test%20Application)
## In order to install DiDaCT please follow these steps:
1. Run setup.exe.
2. Walk through the installation wizard.
3. The first time you launch DiDaCT you will be asked whether you have a license file.
In case you don't have a license file yet select "No" and fill in the license request. Send the
license request to the specified email address at PEER Group GmbH.
4. After you received your license file, start DiDaCT and wait for the license dialog. Click 'Yes'
to indicate that you have a license file. You will be asked to select your license file in the
next dialog.
5. For further information refer to the DiDaCT user manual found in the "Manual" folder.
```conf
; DiDaCT - DiDaCTLicense File
; Version: v1.7.0.6
; Date issued: 2023-Oct-19 10:15:49
[DiDaCTLicense]
LicenseType=FullLicense
Licensee=Mike Phares
LicenseKey=12B39BAE-AC8228D4-3F495555-DF2BFF39-A87F8588-4931BFBD-7EDAD8E2-2EF9EE9F
MachineID=53066CED-C801FC1B-80BB11D2-42C75888-12EC8F27
PasswordHash=751E8AA9-CE86210C-DFCCE6C5-134269ED-892FA16D-CAEB773A-77A71BE2-E8FE7DFD
ValidThru=2024-10-31
```

14
_-Review/disk-part.md Normal file
View File

@ -0,0 +1,14 @@
---
type: "note"
---
# disk-part
```bash
diskpart
list disk
select disk 3
list partition
select partition 1
delete partition override
```

14
_-Review/dns.md Normal file
View File

@ -0,0 +1,14 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# DNS
## CNAME
```bash
# https://smptools.infineon.com/smptinyurl/orderable/?name=SSO-New%20DNS%20Entry%20%281%29
# CNAME for application to reference server
```

55
_-Review/docker.md Normal file
View File

@ -0,0 +1,55 @@
---
type: "topic"
created: "2024-01-06T01:25:36.179Z"
updated: "2024-01-06T01:25:36.179Z"
---
# Docker
[Windows Subsystem for Linux (wsl)](wsl.md)
```bash Mike
sudo -i
id
sudo -i
docker run hello-world
id
compgen -u
compgen -g
id
usermod -a -G docker mike
sudo -i
id
sudo usermod -a -G docker mike
id
exit
id
docker run hello-world
nano .bash_history
sudo -i
exit
```
```bash sudo
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
id
exit
docker run hello-world
exit
usermod -a -G docker mike
exit
nano .bash_history
docker version compose
docker compose version
exit
```

9
_-Review/docusaurus.md Normal file
View File

@ -0,0 +1,9 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# Docusaurus
- [ ][](https://docusaurus.io/docs#comparison-with-other-tools)

160
_-Review/dotnet.md Normal file
View File

@ -0,0 +1,160 @@
---
type: "topic"
created: "2024-02-25T00:52:01.425Z"
updated: "2024-04-03T03:34:53.544Z"
---
# dotnet
```c#
public int Index { get; set; }
public int I⁀ndex { get; set; }
```
```bash
# https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service?pivots=dotnet-7-0#create-the-windows-service
sc.exe create "File-Watcher" binpath="C:\Windows\System32\config\systemprofile\AppData\Local\IFXApps\File-Watcher\File-Watcher.exe"
sc.exe create "Directory-Size" binpath="C:\Windows\System32\config\systemprofile\AppData\Local\IFXApps\Directory-Size\Directory-Size.exe"
sc.exe create "Parsing-Packets" binpath="C:\Windows\System32\config\systemprofile\AppData\Local\IFXApps\Parsing-Packets\Parsing-Packets.exe"
```
```conf Tue Jan 02 2024 10:01:33 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.CA1816.severity = none # CA1816: Call GC.SuppressFinalize correctly
dotnet_diagnostic.CA1854.severity = warning # CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup
dotnet_diagnostic.CA1866.severity = none # CA1866: Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char
dotnet_diagnostic.IDE0200.severity = warning # IDE0200: Lambda expression can be removed [Map]
```
```bash Fri Jan 05 2024 19:24:13 GMT-0700 (Mountain Standard Time)
dotnet add package Microsoft.Extensions.Hosting.Systemd --version 8.0.0
```
```c#
// https://blog.maartenballiauw.be/post/2021/05/25/running-a-net-application-as-a-service-on-linux-with-systemd.html
// https://stackoverflow.com/questions/71233335/use-systemd-on-asp-net-core-6-0-and-7-0
Host.CreateDefaultBuilder(args)
.UseSystemd() // add this
.ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Worker>();
});
```
```bash
nano /etc/systemd/system/text-2-json.service
systemctl daemon-reload
systemctl status text-2-json.service
systemctl enable text-2-json.service
systemctl stop text-2-json.service
systemctl start text-2-json.service
systemctl restart text-2-json.service
systemctl status text-2-json.service
journalctl -u text-2-json.service
```
```conf
[Unit]
Description=Text 2 json
[Service]
Type=notify
ExecStart=/usr/sbin/text-2-json --port=53
[Install]
WantedBy=multi-user.target
```
```conf Mon Jan 08 2024 10:23:04 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.IDE0074.severity = warning # IDE0074: Use compound assignment
dotnet_diagnostic.IDE0058.severity = warning # IDE0058: Expression value is never used
dotnet_diagnostic.CA1511.severity = warning # CA1511: Use 'ArgumentException.ThrowIfNullOrEmpty' instead of explicitly throwing a new exception instance
dotnet_diagnostic.CA1862.severity = warning # CA1862: Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'
```
```conf Sun Feb 04 2024 14:03:10 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.CA1513.severity = none # Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance
```
```bash
dotnet dev-certs https --trust
set DOTNET_CLI_TELEMETRY_OPTOUT=1
setx DOTNET_CLI_TELEMETRY_OPTOUT 1
```
```bash
dotnet user-secrets list
cat ./input.json | dotnet user-secrets set
```
```C#
// https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options
// csharp_new_line_before_open_brace = all
void MyMethod()
{
if (...)
{
...
}
}
// csharp_new_line_before_open_brace = none
void MyMethod() {
if (...) {
...
}
}
```
```json
// https://github.com/editorconfig-checker/editorconfig-checker
{
"scripts": {
"prettier.check": "prettier . --check",
"prettier.write": "prettier . --write",
"lint:editorconfig": "editorconfig-checker"
},
"devDependencies": {
"editorconfig-checker": "^5.1.5",
"prettier": "3.0.0"
}
}
```
```conf Wed Mar 20 2024 17:29:08 GMT-0700 (Mountain Standard Time)
# https://johnnyreilly.com/eslint-your-csharp-in-vs-code-with-roslyn-analyzers
# <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
dotnet_analyzer_diagnostic.category-Design.severity = error
dotnet_analyzer_diagnostic.category-Documentation.severity = error
dotnet_analyzer_diagnostic.category-Globalization.severity = none
dotnet_analyzer_diagnostic.category-Interoperability.severity = error
dotnet_analyzer_diagnostic.category-Maintainability.severity = error
dotnet_analyzer_diagnostic.category-Naming.severity = none
dotnet_analyzer_diagnostic.category-Performance.severity = none
dotnet_analyzer_diagnostic.category-Reliability.severity = error
dotnet_analyzer_diagnostic.category-Security.severity = error
dotnet_analyzer_diagnostic.category-SingleFile.severity = error
dotnet_analyzer_diagnostic.category-Style.severity = error
dotnet_analyzer_diagnostic.category-Usage.severity = error
dotnet_diagnostic.CA2201.severity = none # CA2201: Exception type System.NullReferenceException is reserved by the runtime
dotnet_diagnostic.IDE0010.severity = none # Add missing cases to switch statement (IDE0010)
dotnet_diagnostic.IDE0048.severity = none # Parentheses preferences (IDE0047 and IDE0048)
dotnet_diagnostic.IDE0130.severity = none # Namespace does not match folder structure (IDE0130)
```
```conf Tue Apr 02 2024 20:34:52 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.IDE0051.severity = error # Private member '' is unused [, ]
```
```conf Sun Apr 28 2024 09:27:55 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.CA1001.severity = error # CA1001: Types that own disposable fields should be disposable
dotnet_diagnostic.CA1051.severity = error # CA1051: Do not declare visible instance fields
```
```conf Tue May 07 2024 09:27:28 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.CA1861.severity = none # CA1861: Prefer 'static readonly' fields over constant array arguments
```
```conf Sat May 11 2024 15:40:59 GMT-0700 (Mountain Standard Time)
dotnet_diagnostic.JSON002.severity = warning # JSON002: Probable JSON string detected
dotnet_diagnostic.IDE0230.severity = warning # IDE0230: Use UTF-8 string literal
```

9
_-Review/eda.md Normal file
View File

@ -0,0 +1,9 @@
---
type: "topic"
created: "2024-01-06T01:25:36.148Z"
updated: "2024-01-06T01:25:36.148Z"
---
# EDA
[EAF](../EAF/eaf.md)

18
_-Review/epiphany.md Normal file
View File

@ -0,0 +1,18 @@
---
type: "note"
created: "2024-03-10T00:47:15.065Z"
updated: "2024-03-10T00:49:36.961Z"
---
# epiphany
- [epiphany-browser](https://pimylifeup.com/raspberry-pi-epiphany-browser/)
```bash
apt-get install epiphany-browser
epiphany
```
```conf
inspector://asus.laptop:8080
```

11
_-Review/esbuild.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# esbuild - An extremely fast bundler for the web
[npm](npm.md)
https://esbuild.github.io/api/#build

61
_-Review/etc.md Normal file
View File

@ -0,0 +1,61 @@
---
type: "note"
created: "2024-04-15T16:01:10.090Z"
updated: "2024-04-15T16:01:27.219Z"
---
# etc
```conf
*\*.mount
*\*.db
.pihole\*
```
```conf
*
!.gitignore
!*/
!etc/.pihole/advanced/pihole-admin.conf
!etc/apt/sources.list
!etc/bash_history*
!etc/dhcpcd.conf
!etc/hosts
!etc/kea/kea-dhcp4.conf
!etc/lighttpd/lighttpd.conf
!etc/network/interfaces
!etc/passwd
!etc/pihole/dhcp.leases
!etc/pihole/index.nginx-debian.html
!etc/pihole/setupVars.conf
!etc/resolv.conf
!etc/snmp/snmpd.conf
!etc/sysctl.conf
!etc/systemd/resolved.conf
!etc/systemd/system/code-server.service
!etc/systemd/system/gogs-daemon.service
!etc/systemd/system/text-2-json.service
!etc/ufw/user.rules
!etc/unbound/unbound.conf
!etc/unbound/unbound.conf.d/pi-hole.conf
!etc/dnsmasq.d/*
!etc/fstab/*
!etc/letsencrypt/*
!etc/netplan/*
!etc/nginx/sites-available/*
!etc/mysql/mariadb.conf.d/*
!etc/php/*
!etc/postgresql/*
!etc/wsl/*
# !home/gogs/gogs/custom/conf/app.ini
# !home/syncthing/.config/syncthing/config.xml
# !usr/local/etc/gogs/conf/app.ini
# !usr/local/etc/no-ip2.conf
# !var/snap/nextcloud/current/nextcloud/config/*
# !var/www/html/.well-known/acme-challenge/*
```

113
_-Review/exceed.md Normal file
View File

@ -0,0 +1,113 @@
---
type: "topic"
created: "2024-01-22T15:49:17.424Z"
updated: "2024-01-22T16:29:47.501Z"
---
# Exceed
```
Exceed TurboX Client Launcher Version 12.5.2.8800
Usage: etxlauncher -version | -action <COMMAND> [-v]
-version :: Display installed launcher version.
-action <COMMAND> :: Perform task based on <COMMAND> provided.
<COMMAND> => launch | resume | join | cachedversion | createshortcut
-action launch <AUTH> <URL> <PROFILEID> [<COMMANDMACRO>] [<LID>]
: Launch a profile on specific server.
: Display a list of nodes or sessions if no <LID> is provided.
-action resume <AUTH> <URL> <SESSIONID>
: Resume a session on specific server.
: Display a list of suspended sessions if no <SESSIONID>
is provided.
-action join <AUTH> <URL> [<SESSIONID>]
: Join a session on specific server.
: Display a list of shared sessions if no <SESSIONID> is
provided.
-action cachedversion [<URL>]
: Display local cached launcher version.
: Optionally connect to an ETX Server and determine the
available version of launcher on it.
-action createshortcut [<AUTH>] [<URL>] [<PROFILEID>] [<DEST>] [<SARGS>]
: Create Client Launcher shortcut to launch a profile
without Dashboard access.
: Only available on Windows or Linux platforms.
<AUTH> => {keyauth} | {basicauth} | {kerberos}
: Provide authentication option for the ETX Server.
: Display authentication prompt if no <AUTH> is provided.
{keyauth} : -keyauth {API Key}
: Use API Key for authentication.
{basicauth} : -username {name} -password {xxx}
: Use username and password for authentication.
[-autoregister [-fullname name -email email]]
: Create an ETX user account if it does not exist.
: This parameter registers the user during session launch.
: The fullname and email parameters must be
included if the ETX Server is not configured to fetch
this information from other sources.
{kerberos} : -k
: Use Kerberos for authentication.
<URL> => -url {serverurl} [<PROXYURLS>]
: Specify the ETX Server to use for the connection.
{serverurl} : The ETX Server URL e.g. http://host:port
<PROXYURLS> => [-launcherproxyurl {proxysvrurl}] [-proxyurl {proxysvrurl}]
: Optionally provide Proxy Server details.
: Use a Proxy Server for either the Launcher to use to
to reach the ETX Server (-launcherproxyurl) and/or for
the Client to use to reach the Connection Node
(-proxyurl).
{proxysvrurl} : The Proxy Server e.g. schema://{auth}@proxyhost:port
{auth} : proxy_username:proxy_password
: The username and password for the Proxy Server.
<PROFILEID> => -profileid {ETXid}
: The id of the profile to launch.
<COMMANDMACRO> => -commandmacro {key=val}[,{key2=val2}]
: Provide one or more macros for Xstart launch.
{key} : The macro for Xstart launch.
{value} : The value macro will use in Xstart launch.
: Note that spaces must be quoted.
: Some characters are invalid for key or values: & and ,
<LID> => {one of <NODEID>, <NODEGROUPID>, <REUSEID>}
: Use <NODEID> for selecting node to run on.
: Use <NODEGROUPID> for selecting node group to run on.
: Use <REUSEID> for selecting existing session to use.
<NODEID> => -selectednodeid {ETXid}
: The id of the node to launch a new session.
<NODEGROUPID> => -selectednodegroupid {ETXid}
: The id of the node group to launch a new session.
<REUSEID> => -reuseid {ETXid}
: The id of the session to reuse. For forcing new
: session you can use 'new' as {ETXid}.
<SESSIONID> => -sessionid {ETXid}
: The id of the session to resume or join.
<DEST> => -destination {file_path}
: Specify the file path to the new Windows Shortcut,
Linux Desktop or script file.
<SARGS> => [-script] [additional arguments]
: Specify any valid Launch action arguments
to be used when creating shortcut.
: For instance -web or a valid <LID> option.
: Use -script on Linux to generate .sh file.
[-web] : Prefer to launch Web Client session in browser.
[-v] : Enable verbose logging for action.
```
- [AUC](https://etxuxauc.infineon.com/etx/)
- Once these requirements are done you can start using ETX @ R&D environment.
- Open your preferred browser and login to https://etx<area><site>.infineon.com with your UNIX credentials.

20
_-Review/ffmpeg.md Normal file
View File

@ -0,0 +1,20 @@
---
type: "note"
---
# ffmpeg
- [how-to-install-the-latest-static-build-of-ffmpeg](https://docs.vultr.com/how-to-install-the-latest-static-build-of-ffmpeg)
```bash
mkdir -p /opt/ffmpeg
cd /opt/ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz.md5
md5sum -c ffmpeg-release-amd64-static.tar.xz.md5
tar xvf ffmpeg*.xz
cd ffmpeg-*-static
ll
ln -s "${PWD}/ffmpeg" /usr/local/bin/
ln -s "${PWD}/ffprobe" /usr/local/bin/
```

14
_-Review/file-browser.md Normal file
View File

@ -0,0 +1,14 @@
---
type: "note"
---
# file-browser
- [FileBrowser](https://filebrowser.org/installation)
- [GitHub](https://github.com/filebrowser/filebrowser)
```bash
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
filebrowser -r /var
filebrowser -r / -d /home/mike/filebrowser.db
```

View File

@ -0,0 +1,9 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# File-Folder-Helper
- [Kanban](kanbn.md)

42
_-Review/file-type.md Normal file
View File

@ -0,0 +1,42 @@
---
type: "topic"
created: "2024-01-06T01:25:36.077Z"
updated: "2024-01-06T01:25:36.077Z"
---
# File Type
```bash
# https://superuser.com/questions/29717/associate-a-file-type-with-a-specific-program
REM
FTYPE Tab-Separated-Values="C:\Windows\System32\notepad.exe" "%1"
ASSOC .tsv=Tab-Separated-Values
FTYPE Comma-Separated-Values="C:\Windows\System32\notepad.exe" "%1"
ASSOC .csv=Comma-Separated-Values
FTYPE Text="C:\Windows\System32\notepad.exe" "%1"
ASSOC .txt=Text
FTYPE json="C:\Windows\System32\notepad.exe" "%1"
ASSOC .json=json
FTYPE xml="C:\Windows\System32\notepad.exe" "%1"
ASSOC .xml=xml
FTYPE Log="C:\Windows\System32\notepad.exe" "%1"
ASSOC .log=Log
FTYPE Configuration="C:\Windows\System32\notepad.exe" "%1"
ASSOC .conf=Configuration
FTYPE Configuration="C:\Windows\System32\notepad.exe" "%1"
ASSOC .config=Configuration
FTYPE Public-Key="C:\Windows\System32\notepad.exe" "%1"
ASSOC .pub=Public-Key
FTYPE CSharp="C:\Windows\System32\notepad.exe" "%1"
ASSOC .cs=CSharp
FTYPE CSharp-Project="C:\Windows\System32\notepad.exe" "%1"
ASSOC .csproj=CSharp-Project
FTYPE ProcessDataStandardFormat="C:\Windows\System32\notepad.exe" "%1"
ASSOC .pdsf=ProcessDataStandardFormat
FTYPE Markdown="C:\Windows\System32\notepad.exe" "%1"
ASSOC .md=Markdown
FTYPE Configuration="C:\Windows\System32\notepad.exe" "%1"
ASSOC .ini=Configuration
ASSOC .ipj="C:\Program Files (x86)\InfinityQS International\ProFicient\Applications\iispcmi.exe"
REM
```

119
_-Review/framework.md Normal file
View File

@ -0,0 +1,119 @@
---
type: "topic"
created: "2024-01-06T01:25:36.076Z"
updated: "2024-01-06T01:25:36.076Z"
---
# Framework
```bash
"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=Release;TargetFrameworkVersion=v4.8 /p:RestoreSources=D:/nupkg Fab2ApprovalSystem.csproj
```
```bash
"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=Release;TargetFrameworkVersion=v4.8 Fab2ApprovalSystem.csproj
```
https://www.puppet.com/
https://github.com/ChristopherHX/runner.server
https://developercommunity.visualstudio.com/t/ability-to-test-yaml-builds-locally/366517
https://github.com/microsoft/azure-pipelines-agent
https://pypyr.io/docs/getting-started/
FormCollection
System.Web.Mvc.FormCollection
HttpPostedFileBase
IFormFile
IExcelDataReader
using System.Web.Security;
using System.DirectoryServices.AccountManagement;
using System.Web.Hosting;
using System.Data.Linq;
: System.Web.HttpApplication
using Excel;
using System.Web.Services;
using System.Web.Script.Serialization;
IExcelDataReader
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup Label="Globals">
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
<UserSecretsId>2ba43604-da25-4968-85d5-ea7afcfc2ddb</UserSecretsId>
</PropertyGroup>
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>
<PropertyGroup Condition="'$(IsWindows)'=='true'">
<DefineConstants>Windows</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsOSX)'=='true'">
<DefineConstants>OSX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLinux)'=='true'">
<DefineConstants>Linux</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Antlr" Version="3.5.0.2" />
<PackageReference Include="bootstrap" Version="5.3.1" />
<PackageReference Include="Dapper" Version="2.0.151" />
<PackageReference Include="DocumentFormat.OpenXml" Version="2.20.0" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="ExcelDataReader" Version="3.6.0" />
<PackageReference Include="iTextSharp" Version="5.5.13.3" />
<PackageReference Include="jQuery" Version="3.7.1" />
<PackageReference Include="System.DirectoryServices" Version="7.0.1" />
<PackageReference Include="jQuery.Validation" Version="1.19.5" />
<PackageReference Include="Microsoft.AspNet.Identity.Core" Version="2.2.4" />
<PackageReference Include="Microsoft.AspNet.Identity.EntityFramework" Version="2.2.4" />
<PackageReference Include="Microsoft.AspNet.Identity.Owin" Version="2.2.4" />
<PackageReference Include="Microsoft.AspNet.Mvc" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNet.Razor" Version="3.2.9" />
<PackageReference Include="Microsoft.AspNet.Web.Optimization" Version="1.1.3" />
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNet.WebApi.WebHost" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNet.WebPages" Version="3.2.9" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.jQuery.Unobtrusive.Validation" Version="4.0.0" />
<PackageReference Include="Microsoft.Owin" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Host.SystemWeb" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.Cookies" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.Facebook" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.Google" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.MicrosoftAccount" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.OAuth" Version="4.2.2" />
<PackageReference Include="Microsoft.Owin.Security.Twitter" Version="4.2.2" />
<PackageReference Include="Microsoft.Web.Infrastructure" Version="2.0.1" />
<PackageReference Include="Modernizr" Version="2.8.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Owin" Version="1.0.0" />
<PackageReference Include="Respond" Version="1.4.2" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
<PackageReference Include="System.Linq" Version="4.3.0" />
<PackageReference Include="WebGrease" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="Kendo.Mvc">
<HintPath>..\Kendo\Mvc5\Kendo.Mvc.dll</HintPath>
</Reference>
<Reference Include="SSRSHelper">
<HintPath>..\references\SSRSHelper.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View File

@ -0,0 +1,62 @@
---
type: "topic"
assigned: ""
created: "2024-01-14T02:18:18.357Z"
updated: "2024-04-02T03:49:22.346Z"
---
# Free File Sync
- [Free File Sync](https://freefilesync.org/)
- [Posts](https://freefilesync.org/forum/search.php?author_id=12468&sr=posts)
```conf
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Colors]
"ActiveBorder"="0 0 0"
"ActiveTitle"="153 180 209"
"AppWorkspace"="48 48 48"
"Background"="48 48 48"
"ButtonAlternateFace"="60 60 60"
"ButtonDkShadow"="105 105 105"
"ButtonFace"="60 60 60"
"ButtonHilight"="48 48 48"
"ButtonLight"="48 48 48"
"ButtonShadow"="60 60 60"
"ButtonText"="192 192 192"
"GradientActiveTitle"="185 209 234"
"GradientInactiveTitle"="215 228 242"
"GrayText"="192 192 192"
"HilightText"="0 255 195"
"HotTrackingColor"="79 223 255"
"InactiveBorder"="0 0 0"
"InactiveTitle"="191 205 219"
"InactiveTitleText"="192 192 192"
"InfoText"="192 192 192"
"InfoWindow"="48 48 48"
"Menu"="60 60 60"
"MenuBar"="60 60 60"
"MenuText"="192 192 192"
"Scrollbar"="60 60 60"
"TitleText"="192 192 192"
"Window"="48 48 48"
"WindowFrame"="0 0 0 "
"WindowText"="192 192 192"
"Hilight"="120 120 120"
"MenuHilight"="120 120 120"
```
```yaml
VSCode: code --diff "%local_path%" "%local_path2%"
VSCode Insiders: code-insiders --diff "%local_path%" "%local_path2%"
```
```bash
mkdir "L:\Git\Notes-Free-File-Sync"
cd "L:\Git\Notes-Free-File-Sync"
git init
mkdir "L:\Git\Notes-Free-File-Sync\.vscode"
echo # mklink > "L:\Git\Notes-Free-File-Sync\.vscode\mklink.md"
mklink /J "L:\Git\Notes-Free-File-Sync\.FreeFileSync" "D:/5-Other-Small/FreeFileSync"
```

11
_-Review/fs.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "note"
created: "2024-04-09T13:35:04.265Z"
updated: "2024-04-09T13:35:14.541Z"
---
# fs
```bash Tue Apr 09 2024 06:35:47 GMT-0700 (Mountain Standard Time)
del "D:\Tmp\fs\JetBrains.dotUltimate.2022.1.2.exe"
```

339
_-Review/game-slug.md Normal file
View File

@ -0,0 +1,339 @@
---
type: "topic"
created: "2024-01-06T01:25:36.074Z"
updated: "2024-01-06T01:25:36.074Z"
---
# game-slug
```bash
apt-get update
apt-get upgrade
apt-get install links unzip net-tools ufw nginx git -y
reboot
ip a
ncdu
lsb_release -a
ufw enable
ufw allow from 192.168.0.0/24 comment "04) 192.168.0.0/24"
ufw status numbered
cd /home/ubuntu/
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 8.0
ln -s /home/ubuntu/.dotnet/dotnet /usr/local/bin/dotnet
dotnet --info
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
dotnet --info
timedatectl set-timezone America/Phoenix
snap install dashkiosk
snap restart dashkiosk
snap install ubuntu-frame wpe-webkit-mir-kiosk
snap set wpe-webkit-mir-kiosk url=http://localhost:9400/receiver
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
/snap/wpe-webkit-mir-kiosk/current/bin/setup.sh
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
snap set ubuntu-frame daemon=true
apt-get install -y ca-certificates
openssl s_client -showcerts -connect DESKTOP-H6JG91B:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >DESKTOP-H6JG91B.crt
apt-get install nano
nano /etc/hosts
nano /etc/nginx/sites-available/default
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
ssl_certificate 'localhost.crt';
ssl_certificate_key 'localhost.key';
listen 443 default_server ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 default_server ssl http2;
server_name _;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
```
```bash
systemctl restart nginx
nginx -t
nginx -s reload
nano /home/ubuntu/localhost.conf
echo >/home/ubuntu/localhost.conf && nano /home/ubuntu/localhost.conf
```
```conf
[req]
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Mesa
organizationName = Organization Name (eg, company)
organizationName_default = Infineon Technologies Americas Corp.
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = phares3757.ddns.net
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = phares3757.ddns.net
DNS.2 = beelink
DNS.3 = localhost
DNS.4 = 127.0.0.1
```
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/localhost.key -out /etc/nginx/localhost.crt -config /home/ubuntu/localhost.conf
ls /etc/nginx
apt install update-manager-core
exit
do-release-upgrade
exit
adduser gogs
cd /home/gogs
wget https://dl.gogs.io/0.13.0/gogs_0.13.0_linux_amd64.tar.gz
tar -xvzf gogs_0.13.0_linux_amd64.tar.gz
rm gogs_0.13.0_linux_amd64.tar.gz
cd gogs
ufw status numbered
./gogs web
mkdir /home/gogs/gogs-repositories
chown gogs /home/gogs -R
chgrp gogs /home/gogs -R
nano /home/gogs/gogs/custom/conf/app.ini
nano /etc/systemd/system/gogs-daemon.service
systemctl enable gogs-daemon
systemctl start gogs-daemon
systemctl status gogs-daemon.service
systemctl daemon-reload
journalctl -fu gogs-daemon.service
journalctl --rotate
journalctl --vacuum-time=1s
cd /home/gogs
git clone https://github.com/Kos-M/GogsThemes
exit
cp ~/.bash_history /home/ubuntu/bash-history-2023-10-17.txt
chown mike /home/ubuntu -R
chgrp mike /home/ubuntu -R
exit
adduser pi-hole
cd pi-hole
curl -sSL https://install.pi-hole.net | bash
```
```conf
# http://pi.hole/admin
# http://192.168.0.118/admin
fUiY4SYS
```
```conf
nano /etc/lighttpd/lighttpd.conf
```
```conf
server.port = 8005
```
```conf
service lighttpd restart
pihole -a -p 4hink
apt install unbound
; https://docs.pi-hole.net/guides/dns/unbound/
nano /etc/unbound/unbound.conf.d/pi-hole.conf
```
```conf
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes
# May be set to yes if you have IPv6 connectivity
do-ip6: no
# You want to leave this to no unless you have *native* IPv6. With 6to4 and
# Terredo tunnels your web browser should favor IPv4 for the same reasons
prefer-ip6: no
# Use this only when you downloaded the list of primary root servers!
# If you use the default dns-root-data package, unbound will find it automatically
#root-hints: "/var/lib/unbound/root.hints"
# Trust glue only if it is within the server's authority
harden-glue: yes
# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes
# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no
# Reduce EDNS reassembly buffer size.
# IP fragmentation is unreliable on the Internet today, and can cause
# transmission failures when large DNS messages are sent via UDP. Even
# when fragmentation does work, it may not be secure; it is theoretically
# possible to spoof parts of a fragmented DNS message, without easy
# detection at the receiving end. Recently, there was an excellent study
# >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
# by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
# in collaboration with NLnet Labs explored DNS using real world data from the
# the RIPE Atlas probes and the researchers suggested different values for
# IPv4 and IPv6 and in different scenarios. They advise that servers should
# be configured to limit DNS messages sent over UDP to a size that will not
# trigger fragmentation on typical network links. DNS servers can switch
# from UDP to TCP when a DNS response is too big to fit in this limited
# buffer size. This value has also been suggested in DNS Flag Day 2020.
edns-buffer-size: 1232
# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads: 1
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
```
```conf
service unbound restart
# http://beelink:8005/admin/settings.php?tab=dns
# https://docs.pi-hole.net/guides/dns/unbound/
127.0.0.1#5335
```
```bash
apt-get install syncthing
apt-get install apt-transport-https
adduser syncthing
cat /etc/passwd | cut -d: -f1
systemctl enable syncthing@syncthing.service
systemctl start syncthing@syncthing.service
systemctl status syncthing@syncthing.service
journalctl -e -u syncthing@syncthing.service
nano /home/syncthing/.config/syncthing/config.xml
```
```xml
<address>0.0.0.0:8384</address>
```
```bash
systemctl restart syncthing@syncthing.service
chown syncthing /home/syncthing -R
chgrp syncthing /home/syncthing -R
```
```bash
ufw allow from 192.168.0.0/24 to any port 22 comment "01) SSH"
ufw allow to 0.0.0.0/0 port 80 comment "02) HTTP"
ufw allow to 0.0.0.0/0 port 443 comment "03) HTTPS"
ufw allow from 192.168.0.0/24 to any port 8005 comment "04) Pi-hole"
ufw allow from 192.168.0.0/24 to any port 53 comment "05) DNS"
ufw allow from 192.168.0.0/24 to any port 67 comment "06) Unknown"
ufw allow from 192.168.0.0/24 to any port 9400 comment "07) dashkiosk"
ufw allow from 192.168.0.0/24 to any port 3000 comment "08) gogs"
ufw allow from 192.168.0.0/24 to any port 8384 comment "09) syncthing"
ufw allow from 192.168.0.0/24 to any port 22000 comment "10) syncthing"
```
```conf
To Action From
-- ------ ----
22 ALLOW IN 192.168.0.0/24 # 01) SSH
80 ALLOW IN Anywhere # 02) HTTP
443 ALLOW IN Anywhere # 03) HTTPS
8005 ALLOW IN 192.168.0.0/24 # 04) Pi-hole
53 ALLOW IN 192.168.0.0/24 # 05) DNS
67 ALLOW IN 192.168.0.0/24 # 06) Unknown
9400 ALLOW IN 192.168.0.0/24 # 07) dashkiosk
3000 ALLOW IN 192.168.0.0/24 # 08) gogs
8384 ALLOW IN 192.168.0.0/24 # 09) syncthing
22000 ALLOW IN 192.168.0.0/24 # 10) syncthing
```
```bash
echo >/etc/hosts && nano /etc/hosts
```
```conf
127.0.0.1 localhost
127.0.0.1 beelink
127.0.1.1 phares3757.ddsn.net
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
```bash
adduser twingate
curl -s https://binaries.twingate.com/client/linux/install.sh | bash
twingate setup
twingate start
curl "https://binaries.twingate.com/connector/setup.sh" | sudo TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMDc3IiwiZGlkIjoiMTAwMzc4OSIsImp0aSI6IjIyNTJmMjIwLWNkNjQtNDlhYy04YjRhLTE0NDFjOWUyM2U5ZSIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDE0Mzc4LCJpYXQiOjE2OTgwMTA3NzgsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAxMTA3OCwicm5ldGlkIjoiNzIyNzcifQ.aQnQMUGqM5fBEbR781u-lCPjltfmb1TdZUJTNJ_GYiiSJiemJiIrVK80xHQlIpPB2kot34nxmpvVK4kZK64X3w" TWINGATE_REFRESH_TOKEN="AWOLHa11QFXENAyov_w-KQ5ZC-keHm2w_ActZP8M7hBpy2NOC7EDT2bkEpBCO-YLTd40Pp-pdplIJu0lvdvNBAGINHopYnX2XOgaMxS5tbPPTsHRlnQpckaXYuOwu28W0ORs8g" TWINGATE_NETWORK="phares" bash
curl "https://binaries.twingate.com/connector/setup.sh" | TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMjIxIiwiZGlkIjoiMTAwNDI3NCIsImp0aSI6ImQxMWIwYWIzLWJjZTgtNDIxZS05MzAwLTA1ZmFkZDk5YjllMiIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDM3MTgzLCJpYXQiOjE2OTgwMzM1ODMsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAzMzg4Mywicm5ldGlkIjoiNzIyNzcifQ.7YqB5iz1lzsfb6adLPx53NNA3dJ1NnuzmNhyyi4FzPdMTGxn3qbHD1olvWpEEi69D8gAvF5K77DPwE1BHxo4Qw" TWINGATE_REFRESH_TOKEN="HypbNsUdue5Dh3s5W4ePR9RIkFDsjEGiNJFJDf_cLdixkn94ieMypUZMH_XIc4-13L_PuQ61M7RWG5rF21ZRAgFf1MuIMf5kJGhuQq_VG7_E_6Q8NMLAajP5W05jTofB-sY3Ig" TWINGATE_NETWORK="phares" bash
```

View File

@ -0,0 +1,126 @@
---
type: "topic"
created: "2024-01-06T01:25:36.071Z"
updated: "2024-01-06T01:25:36.071Z"
---
# Genealogical Data Communication File
```bash
mklink /J "L:\Git\View-by-Distance-MKLink-Console\Shared\.vscode\ged" "D:\1-Images-A\Images-dd514b88-Results\A2)People\dd514b88\([])\File-Folder-Helper\638298094252901621"
```
```ged
0 @F1@ FAM
```
```ged
0 @I735@ INDI
1 NAME Patrik /Radojcic/
2 GIVN Patrik
2 SURN Radojcic
1 SEX M
1 _UID 9991A990639D40A08BBA994C2DC67103D48B
1 CHAN
2 DATE 3 AUG 2023
1 BIRT
2 DATE 31 DEC 1503
2 NOTE 1503-12-31_05
3 CONT ~40
3 CONT 1503-12-31_00
3 CONT 1503-12-31_02
3 CONT https://www.linkedin.com/in/patrik-radojcic-030997186/
1 DEAT Y
```
```ged
0 @I740@ INDI
1 NAME Phillip /Woods/
2 GIVN Phillip
2 SURN Woods
1 SEX M
1 BIRT
2 DATE 2 FEB 1976
2 NOTE 1976-02-02_05
3 CONT ^47
3 CONT 1501-11-12_02
3 CONT https://www.facebook.com/phillip.woods.10/about
```
```ged
0 @I741@ INDI
1 NAME John /Brackbill/
2 GIVN John
2 SURN Brackbill
1 SEX M
1 BIRT
2 DATE 8 MAY 1973
2 NOTE 1973-05-08_15
3 CONT ^50
3 CONT 1402-03-04_02
3 CONT https://www.facebook.com/john.brackbill/about
1 DEAT
2 DATE 4 JUN 2015
```
```
```ged
0 @I742@ INDI
1 NAME Ruth /Bacon/
2 GIVN Ruth
2 SURN Bacon
2 NICK Ruth Bacon (Ruth Bacon Edewards)
1 SEX F
1 BIRT
2 DATE 29 JUN 1502
2 NOTE 1502-06-29_04
3 CONT ~45
3 CONT https://www.facebook.com/ruth.bacon.7/about
```
```ged
0 @I743@ INDI
1 NAME Jarrott /Hughes/
2 GIVN Jarrott
2 SURN Hughes
1 SEX M
1 BIRT
2 DATE 26 JUN 2005
2 NOTE 2005-06-26_05
3 CONT ^18
3 CONT 1402-03-31_02
```
```ged
0 @I744@ INDI
1 NAME Jair /Ramirez/
2 GIVN Jair
2 SURN Ramirez
2 NICK Jair Ramirez (Jair Ramirez Gonzalez)
1 SEX M
1 BIRT
2 DATE 12 MAR 1998
2 NOTE 1998-03-12_05
3 CONT ^25
3 CONT https://www.facebook.com/jair.ramirezgonzalez.7/about
```
```ged
0 @I745@ INDI
1 NAME Chad /Becker/
2 GIVN Chad
2 SURN Becker
1 SEX M
1 BIRT
2 DATE 25 JUN 1502
2 NOTE 1502-06-25_05
3 CONT ~45
3 CONT https://www.linkedin.com/in/chad-becker-4764989/
```
```todo
Ron and Melanie 1025196874.465430305.jpg.png 1025196874.439490305.jpg.png
Mark and ___ Herman 2031674436.849441511.jpg.png
Marry Herman's Mom ___ -879159387.486340711.jpg.png
M___ ___ (Jessica) 1315542013.423300305.jpg.png
```

38
_-Review/genie-acs.md Normal file
View File

@ -0,0 +1,38 @@
---
type: "topic"
created: "2024-01-28T04:48:03.346Z"
updated: "2024-01-29T18:47:51.859Z"
---
# GenieACS
DocDroid
Install GenieACS.txt
Report
Share
Download
1. Install node.js
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
node -v
2. Install MongoDB
2.1 Install libssl1.1
echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt-get update
sudo apt-get install libssl1.1
2.2 Install MongoDB
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
apt-key list
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl start mongod.service
sudo systemctl status mongod
sudo systemctl enable mongod
mongo --eval 'db.runCommand({ connectionStatus: 1 })'
3. Install GenieACS
http://docs.genieacs.com/en/latest/installation-guide.html#install-genieacs

25
_-Review/gharun.md Normal file
View File

@ -0,0 +1,25 @@
---
type: "topic"
created: "2024-01-06T01:25:36.071Z"
updated: "2024-01-06T01:25:36.071Z"
---
# Gharun
## io.github.christopherhx.gharun
```bash
# https://github.com/ChristopherHX/runner.server#building-a-self-contained-executable
dotnet msbuild src/dir.proj -t:GenerateConstant
dotnet publish src/Runner.Client -c Release -r win-x64
```
```bash
L:
cd git
mkdir gharun
cd gharun
dotnet new tool-manifest
dotnet tool install io.github.christopherhx.gharun
dotnet gharun --event azpipelines --watch --runner-version 2.210.1 --workflows eaf
```

18
_-Review/ghostpcl.md Normal file
View File

@ -0,0 +1,18 @@
---
type: "topic"
created: "2024-01-06T01:25:36.071Z"
updated: "2024-01-06T01:25:36.071Z"
---
# ghostpcl
- [wrap exe in nupkg](https://www.aligneddev.net/blog/2020/nuget-package-in-net5/)
- [fossies](https://fossies.org/windows/misc/ghostpcl-9.56.1-win64.zip/)
- [github](https://github.com/ArtifexSoftware/ghostpdl-downloads/releases)
```bash
dotnet add package Infineon.Mesa.gpcl6 --source https://eaf-dev-reporting.mes.infineon.com/v3/index.json
dotnet add package Infineon.Mesa.LincPDFC --source https://eaf-dev-reporting.mes.infineon.com/v3/index.json
dotnet add package Infineon.Mesa.PDF.Text.Stripper --version 4.8.0.1 --source https://eaf-dev-reporting.mes.infineon.com/v3/index.json
```

70
_-Review/git.md Normal file
View File

@ -0,0 +1,70 @@
---
type: "topic"
created: "2024-01-14T02:18:21.181Z"
updated: "2024-03-31T16:09:07.756Z"
---
# Git
## Git Cheat Sheet
```bash
git branch
# https://useyourloaf.com/blog/git-cheat-sheet/
git branch development (create the branch named 'development')
git checkout development (switch to the branch)
git checkout master (switch back to the master branch)
git branch (list all branches)
git push origin development (Pushing a branch)
git checkout master (first switch to the master branch)
git merge development (merge all changes from development into the master branch)
gid add <file> (fix and add any conflicts)
git commit -m 'merged changes' (Merging a branch)
git branch -d development (Delete a branch)
git push origin :development (Deleting a remote branch)
git diff --name-only
git rebase -i master
git push origin -d branch-name
```
```bash
git fetch origin
git merge --ff-only origin/master
git checkout development
git merge --no-ff origin/master
```
```bash
git rm --cached D:/Documents/Notes/Cyberpunk-Red
git rm --cached D:/Documents/Notes/Quartz/Infineon/EC-Documentation
```
```bash
git tag -a {tag} -m "{tag description}"
git push origin --tags
```
```bash
git remote rm ubuntu
git remote rm messa017
git remote rm mestsa003
git remote rm mestsa07ec
git remote rm messa08ec
git remote rm eaf-prod
git remote rm azure
git -c http.sslVerify=false clone https://example.com/path/to/git
git push gogs --tags "refs/remotes/origin/*:refs/heads/*"
git ls-files --others --modified --deleted --exclude-standard
git ls-files --others --modified --deleted --exclude-standard | xargs
git ls-files --others --modified --deleted --exclude-standard | xargs -I % echo L:/Git/Notes-Infineon/.Infineon/%
L:/npm/prettier/node_modules/.bin/prettier --check | git ls-files --others --modified --deleted --exclude-standard | xargs -I % echo L:/Git/Notes-Infineon/.Infineon/%
```
```conf
# https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413
client_max_body_size 5000m;
```
```bash
git branch -m master
```

81
_-Review/gitconfig.md Normal file
View File

@ -0,0 +1,81 @@
---
type: "topic"
created: "2024-01-06T01:25:36.182Z"
updated: "2024-01-06T01:25:36.182Z"
---
# Gitconfig
[Git](git.md)
```bash
cd . > "C:\Program Files\Git\etc\gitconfig"
git config --global core.autocrlf true --repalce-all
git config --global core.bare false --repalce-all
git config --global core.editor "%windir%\system32\notepad.exe --wait" --repalce-all
git config --global core.filemode false --repalce-all
git config --global core.fscache true --repalce-all
git config --global core.ignorecase true --repalce-all
git config --global core.logallrefupdates true --repalce-all
git config --global core.repositoryformatversion 0 --repalce-all
git config --global core.symlinks false --repalce-all
git config --global credential.helper manager-core
git config --global diff.astextplain.textconv astextplain --repalce-all
git config --global filter.lfs.clean "git-lfs clean -- %f" --repalce-all
git config --global filter.lfs.process "git-lfs filter-process" --repalce-all
git config --global filter.lfs.required true --repalce-all
git config --global filter.lfs.smudge "git-lfs smudge -- %f" --repalce-all
git config --global init.defaultbranch "master" --repalce-all
git config --global pack.deltaCacheSize "512m" --repalce-all
git config --global pack.packSizeLimit "100m" --repalce-all
git config --global pack.threads "1" --repalce-all
git config --global pack.windowMemory "100m" --repalce-all
git config --global pull.rebase false --repalce-all
git config --global sendpack.sideband false --repalce-all
git config --global user.email mike.phares@infineon.com --repalce-all
git config --global user.name "Mike Phares" --repalce-all
git config --global alias.logline "log --pretty=format:'%ad - %Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)an>%Creset' --abbrev-commit --date=short" --repalce-all
git logline
git config --list --show-origin
```
```conf
[alias]
logline = log --pretty=format:'%ad - %Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --date=short
[core]
autocrlf = true
bare = false
editor = C:\\Windows\\system32\\notepad.exe --wait
filemode = false
fscache = true
ignorecase = true
logallrefupdates = true
repositoryformatversion = 0
symlinks = false
[diff "astextplain"]
textconv = astextplain
[filter "lfs"]
clean = git-lfs clean -- %f
process = git-lfs filter-process
required = true
smudge = git-lfs smudge -- %f
# [includeIf "gitdir/i:L:/Git/"]
# path = http-git.gitconfig
# [includeIf "gitdir/i:L:/DevOps/"]
# path = http-git.gitconfig
[init]
defaultbranch = master
[pack]
deltaCacheSize = 512m
packSizeLimit = 100m
threads = 1
windowMemory = 100m
[pull]
rebase = false
[sendpack]
sideband = false
[user]
# email = mike.phares@infineon.com
email = mikepharesjr@msn.com
name = Mike Phares
```

18
_-Review/github.md Normal file
View File

@ -0,0 +1,18 @@
---
type: "topic"
created: "2024-04-02T03:46:36.090Z"
updated: "2024-04-02T21:57:28.249Z"
---
# GitHub
[Git](git.md)
```bash
sudo -i
exit
ssh-import-id gh:mikepharesjr
systemctl restart ssh
nano ~/.ssh/authorized_keys
cat ~/.ssh/authorized_keys
```

8
_-Review/go-lang.md Normal file
View File

@ -0,0 +1,8 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.068Z"
updated: "2024-01-06T01:25:36.068Z"
---
# Go Lang

227
_-Review/gogs.md Normal file
View File

@ -0,0 +1,227 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.066Z"
updated: "2024-01-06T01:25:36.066Z"
---
# Gogs
```PowerShell
# https://gogs.io/docs/installation/run_as_windows_service
nssm install gogs
```
```yaml
Application Tab:
Path: D:\go-lang\gogs\gogs.exe
Startup directory: D:\go-lang\gogs
Arguments: web
Details Tab:
Display name`: Gogs
Description: Gogs is a painless self-hosted Git service.
Startup type`: Automatic (Delayed Start)
I/O Tab:
Output (stdout): D:\go-lang\gogs\log\gogs-nssm.txt
Error (stderr): D:\go-lang\gogs\log\gogs-nssm.txt
File rotation Tab:
Check: Rotate files
Restrict rotation to files bigger than: 1000000 bytes
Environment Tab:
Environment variables: PATH=%PATH%;D:\go-lang\gogs;C:\Program Files (x86)\Git\bin
```
```conf
BRAND_NAME = Gogs
RUN_USER = DESKTOP-RCALEHG$
RUN_MODE = prod
[database]
TYPE = sqlite3
HOST = 127.0.0.1:5432
NAME = gogs
USER = gogs
PASSWORD =
SSL_MODE = disable
PATH = data/gogs.db
[repository]
ROOT = L:/Gogs/git/gogs-repositories
[server]
DOMAIN = gogs
HTTP_PORT = 3000
EXTERNAL_URL = http://gogs/
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
ROOT_PATH = L:/Gogs/gogs_0.12.10_windows_amd64/log
[security]
INSTALL_LOCK = true
SECRET_KEY = JJxp7NE0URIxoak
```
```bash
sudo -i
cd /home/gogs
wget https://dl.gogs.io/0.13.0/gogs_0.13.0_linux_amd64.tar.gz
tar -xvzf gogs_0.13.0_linux_amd64.tar.gz
rm gogs_0.13.0_linux_amd64.tar.gz
cd gogs
./gogs web
links http://localhost:3000
^c
mkdir /home/gogs/gogs-repositories
chown mike /home/mike -R
chgrp mike /home/mike -R
# https://github.com/gogs/gogs/blob/main/scripts/systemd/gogs.service
nano /etc/systemd/system/gogs-daemon.service
```
```conf
[Unit]
Description=Gogs
After=syslog.target
After=network.target
[Service]
# Modify these two values and uncomment them if you have
# repos with lots of files and get an HTTP error 500 because
# of that
###
#LimitMEMLOCK=infinity
#LimitNOFILE=65535
Type=simple
User=gogs
Group=gogs
WorkingDirectory=/home/gogs/gogs
ExecStart=/home/gogs/gogs/gogs web
Restart=always
Environment=USER=gogs HOME=/home/gogs
# Some distributions may not support these hardening directives
# If you cannot start the service due
# to an unknown option, comment out the ones not supported by your version of systemd.
ProtectSystem=full
PrivateDevices=yes
PrivateTmp=yes
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
```
```bash
systemctl enable gogs-daemon
systemctl stop gogs-daemon
systemctl start gogs-daemon
systemctl status gogs-daemon.service
journalctl -fu gogs-daemon.service
journalctl --rotate
journalctl --vacuum-time=1s
systemctl daemon-reload
mkdir /etc/gogs-copy
cp /home/gogs/gogs/custom/conf/app.ini /etc/gogs-copy/
ln -s /home/gogs/gogs/custom/conf /etc/gogs
# nano /home/gogs/gogs/custom/conf/app.ini
nano /etc/gogs/app.ini
```
```conf
BRAND_NAME = Gogs
RUN_USER = gogs
RUN_MODE = prod
[database]
TYPE = sqlite3
HOST = 127.0.0.1:3306
NAME = gogs
SCHEMA = public
USER = gogs
PASSWORD = 1178
SSL_MODE = disable
PATH = data/gogs.db
[repository]
ROOT = /home/gogs/gogs-repositories
DEFAULT_BRANCH = master
[server]
DOMAIN = localhost
HTTP_PORT = 3000
EXTERNAL_URL = http://d98b8bcf651717df3301d99689440f5fd6f411d4@beelink:3000/
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
[mailer]
ENABLED = false
[auth]
REQUIRE_EMAIL_CONFIRMATION = false
DISABLE_REGISTRATION = false
ENABLE_REGISTRATION_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false
[user]
ENABLE_EMAIL_NOTIFICATION = false
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /home/gogs/gogs/log
[security]
INSTALL_LOCK = true
SECRET_KEY = czo27vBeXWU7HTi
```
```bash
systemctl restart gogs-daemon
# http://localhost:3000/
# https://github.com/gogs/docs-api/tree/master/Repositories#migrate
```
```bash
# https://github.com/Kos-M/GogsThemes
cd /home/gogs
git clone https://github.com/Kos-M/GogsThemes
mkdir -p /home/gogs/gogs/custom/templates/inject/
mkdir -p /home/gogs/gogs/custom/public/css/
echo '<link rel="stylesheet" href="/css/themes/dark_theme.css">' >> /home/gogs/gogs/custom/templates/inject/head.tmpl
mv ./GogsThemes/themes/ /home/gogs/gogs/custom/public/css/
cp -r GogsThemes/img/ /home/gogs/gogs/custom/public/
rm -r ./GogsThemes
systemctl restart gogs-daemon
```

87
_-Review/goto.md Normal file
View File

@ -0,0 +1,87 @@
---
type: "topic"
created: "2024-01-14T02:18:18.102Z"
updated: "2024-04-11T17:25:51.718Z"
---
# GoTo
```yaml
https://goto.infineon.com/abbr#Abbreviations
https://goto.infineon.com/acmdb
https://goto.infineon.com/adgroupeditor
https://goto.infineon.com/adminui
https://goto.infineon.com/adt
https://goto.infineon.com/appcatalog
https://goto.infineon.com/artifactory
https://goto.infineon.com/biportal
https://goto.infineon.com/blm
https://goto.infineon.com/cep
https://goto.infineon.com/cepi#CustomEndpointIntegration
https://goto.infineon.com/corpReg
https://goto.infineon.com/datatcenter
https://goto.infineon.com/dcc
https://goto.infineon.com/dds#Digital-Design-System
https://goto.infineon.com/digitalagenda
https://goto.infineon.com/eafwiki
https://goto.infineon.com/empathy
https://goto.infineon.com/etx#ExceedTurboX
https://goto.infineon.com/eva
https://goto.infineon.com/fi-backlog-mesa
https://goto.infineon.com/filesharingsolutions
https://goto.infineon.com/fiot
https://goto.infineon.com/fip
https://goto.infineon.com/fiprocess
https://goto.infineon.com/idash
https://goto.infineon.com/interviewercockpit
https://goto.infineon.com/ipam
https://goto.infineon.com/iscpacman
https://goto.infineon.com/iteraplan
https://goto.infineon.com/itinfo
https://goto.infineon.com/iwanttolearn
https://goto.infineon.com/kronos
https://goto.infineon.com/lowcode
https://goto.infineon.com/luma
https://goto.infineon.com/luy
https://goto.infineon.com/mesafi
https://goto.infineon.com/mesareportingservices
https://goto.infineon.com/mesassrreport
https://goto.infineon.com/mona
https://goto.infineon.com/msdpts
https://goto.infineon.com/mydns
https://goto.infineon.com/myit
https://goto.infineon.com/net6PacMan
https://goto.infineon.com/office
https://goto.infineon.com/oimetrologyviewer
https://goto.infineon.com/oiwizard
https://goto.infineon.com/owa
https://goto.infineon.com/password
https://goto.infineon.com/patcher
https://goto.infineon.com/processes
https://goto.infineon.com/projectconsulting
https://goto.infineon.com/remedy
https://goto.infineon.com/resetpassword
https://goto.infineon.com/heck#rmui
https://goto.infineon.com/rsup
https://goto.infineon.com/samportal
https://goto.infineon.com/sepoma#Service-Portfolio-Manager
https://goto.infineon.com/service-shop
https://goto.infineon.com/ssa
https://goto.infineon.com/standardization
https://goto.infineon.com/steps
https://goto.infineon.com/teamcenterwebclient_reviewcurrentwork
https://goto.infineon.com/tfs
https://goto.infineon.com/tsm
https://goto.infineon.com/ucportal
https://goto.infineon.com/upskill
https://goto.infineon.com/video
https://goto.infineon.com/webaccess
```
```yaml
https://cepi-eu.infineon.com/
https://confluencewikiprod.intra.infineon.com/pages/viewpage.action?pageId=1202209716
https://iuc-web.infineon.com/idms-admin
http://asus.laptop/slideshow/index.html?a=last&b=2024-03-10-13-01
https://ishare.na.infineon.com/sites/Mesa-FI-Minutes-of-Meeting/SitePages/MinutesOfMeeting.aspx#/
```

15
_-Review/grep.md Normal file
View File

@ -0,0 +1,15 @@
---
type: "note"
created: "2024-04-08T22:26:30.036Z"
updated: "2024-04-08T22:29:24.484Z"
---
# grep
- [ubuntu](https://help.ubuntu.com/community/grep)
```bash
# https://askubuntu.com/questions/723172/what-tool-can-i-use-to-scan-a-network-and-test-wake-on-lan
nmap -sP 192.168.11.0/25 |grep MAC|cut -d\ -f3 > mac
wakeonlan -f mac
```

View File

@ -0,0 +1,25 @@
---
type: "basic-note"
created: "2024-01-06T01:25:36.103Z"
updated: "2024-01-06T01:25:36.103Z"
---
# Gx4luea De3wttm Jsc6twa Zy5cihu JQBZSFA Pu5xxu7 767boxy F4h4ca2
[Syncthing](syncthing.md)
```bash
C:\Users\dhaff\AppData\Local\Herman
cd "C:\Users\dhaff\AppData\Local\Herman\nssm-2.24\win64"
nssm.exe install Syncthing
C:\Users\dhaff\AppData\Local\Herman\syncthing-windows-amd64-v1.23.1\syncthing.exe
C:\Users\dhaff\AppData\Local\Herman\syncthing-windows-amd64-v1.23.1
--no-restart --no-browser --home="C:\Users\dhaff\AppData\Local\Herman\syncthing-windows-amd64-v1.23.1"
C:\Users\dhaff\AppData\Local\Herman\syncthing-windows-amd64-v1.23.2
```

227
_-Review/home-assistant.md Normal file
View File

@ -0,0 +1,227 @@
---
type: "topic"
created: "2024-01-06T01:25:36.065Z"
updated: "2024-01-06T01:25:36.065Z"
---
# Home Assistant
```bash
wsl --export Ubuntu "Ubuntu\Ubuntu-Home-Assistant-001.tar"
wsl --unregister Ubuntu
wsl --import Ubuntu-Home-Assistant Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-001.tar"
wsl --export Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-002.tar"
del "Ubuntu\Ubuntu-Home-Assistant-002.tar"
```
```yaml
Name: Ubuntu-Home-Assistant
Command Line: wsl.exe -d Ubuntu-Home-Assistant
Tab Title: Ubuntu-Home-Assistant
```
```bash
sudo -i
apt-get update
ip a
lsb_release -a
apt-get install links unzip nginx git nano ncdu -y
ncdu
timedatectl set-timezone America/Phoenix
timedatectl
nano /etc/hosts
nano /etc/nginx/sites-available/default
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:80/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares.myftp.org.crt';
ssl_certificate_key 'laundry.phares.myftp.org.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name home-assistant.laundry.phares.myftp.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:9400/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
```
```bash
nano /home/mike/laundry.phares.myftp.org.conf
echo >/home/mike/laundry.phares.myftp.org.conf && nano /home/mike/laundry.phares.myftp.org.conf
```
```conf
[req]
default_bits = 2048
default_keyfile = laundry.phares.myftp.org.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Anthem
organizationName = Organization Name (eg, company)
organizationName_default = Phares
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = laundry.phares.myftp.org
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = laundry.phares.myftp.org
DNS.2 = dashkiosk.laundry.phares.myftp.org
DNS.3 = gogs.laundry.phares.myftp.org
DNS.4 = nextcloud.laundry.phares.myftp.org
DNS.5 = photoprism.laundry.phares.myftp.org
DNS.6 = pi-hole.laundry.phares.myftp.org
DNS.7 = syncthing.laundry.phares.myftp.org
DNS.8 = mike.desktop
DNS.9 = desktop-h6jg91b
DNS.10 = localhost
DNS.11 = 127.0.0.1
```
```bash
ls /etc/nginx
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/laundry.phares.myftp.org.key -out /etc/nginx/laundry.phares.myftp.org.crt -config /home/mike/laundry.phares.myftp.org.conf
ls /etc/nginx
nginx -t
systemctl restart nginx
nginx -s reload
exit
exit
```
```bash
wsl --export Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-002.tar"
wsl --unregister Ubuntu-Home-Assistant
wsl --import Ubuntu-Home-Assistant Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-002.tar"
```
```bash
sudo -i
python3 --version
apt install software-properties-common
add-apt-repository ppa:deadsnakes/ppa
[enter]
apt update
apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev
apt install python3.12 -y
ls /usr/bin/python3*
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
update-alternatives --config python3
[enter]
python3 --version
apt install libpython3.12-dev -y
apt-cache rdepends python3.12
# apt-get install -y libtiff6
# apt install python3.10-venv
# apt-add-repository universe
# apt-get update
# apt-get install virtualenv
# apt install python3.11-venv
apt install python3.12-venv -y
# apt install python3.13-venv
apt-get install libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev -y
apt install pkg-config -y
useradd -rm homeassistant
mkdir /srv/homeassistant
chown homeassistant:homeassistant /srv/homeassistant
passwd homeassistant
exit
exit
```
```bash
wsl --export Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-003.tar"
wsl --unregister Ubuntu-Home-Assistant
wsl --import Ubuntu-Home-Assistant Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-003.tar"
```
```bash
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate
pip install --upgrade pip
python3 -m pip install wheel
pip3 install homeassistant
pip3 install homeassistant
pip install av
pip install ha-av
exit
exit
```
```bash
wsl --export Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-004.tar"
wsl --unregister Ubuntu-Home-Assistant
wsl --import Ubuntu-Home-Assistant Ubuntu-Home-Assistant "Ubuntu\Ubuntu-Home-Assistant-004.tar"
```
```bash
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate
hass
# You can now reach your installation via the web interface on http://homeassistant.local:8123.
```
```bash
# https://www.youtube.com/watch?v=O7pC1oI86gg
# https://tasmota.github.io/docs/About/
# https://www.youtube.com/watch?v=fgeZ1O6J4jc
# https://www.youtube.com/watch?v=CYvTLw_Wn6I
# https://python-kasa.readthedocs.io/en/latest/smartdevice.html
# https://zigbee.blakadder.com/plugs.html
```

View File

@ -0,0 +1,10 @@
---
type: "note"
created: "2024-03-11T21:36:57.146Z"
updated: "2024-03-11T21:37:38.750Z"
---
# How to migrate ADO projects from MFG IT to FI
- [Video](https://videoportal.infineon.com/videos/play/F3D1A032-8372-487D-9B16-A6A68EB17044/E33E0B2A-0217-46F2-A3CB-C7345AE1D321)
- EAF

94
_-Review/hugo.md Normal file
View File

@ -0,0 +1,94 @@
---
type: "topic"
assigned: ""
created: "2024-01-06T01:25:36.062Z"
updated: "2024-01-06T01:25:36.062Z"
---
# Hugo
## Link
- [gohugo](https://gohugo.io)
## Install
```PowerShell
winget install Hugo.Hugo.Extended
```
## Run
```bash
l:
cd git
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
code-insiders .
hugo server
```
## Work
```bash
hugo new posts/my-first-post.md
hugo server --buildDrafts
hugo server -D
```
## Themes
- [hugo-blog-awesome](https://github.com/hugo-sid/hugo-blog-awesome.git)
```bash
git submodule add https://github.com/hugo-sid/hugo-blog-awesome.git themes/hugo-blog-awesome
```
## Support
- [digital-garden-jekyll-template](https://github.com/maximevaillancourt/digital-garden-jekyll-template.git)
- [How to Set Up a Digital Garden With Obsidian For Free](https://www.youtube.com/watch?v=kg-9n_A4Tf0&list=WL&index=53&t=40s)
```bash
l:
cd git
git clone https://github.com/maximevaillancourt/digital-garden-jekyll-template.git
cd digital-garden-jekyll-template
```
- [Obsidian Export](https://github.com/zoni/obsidian-export)
- [Obsidian Export Windows](https://github.com/zoni/obsidian-export/releases/download/v22.11.0/obsidian-export_Windows-x64_64.exe)
```bash
mkdir "L:\Git\quartz\content\cyberpunk-red"
"C:\Users\phares\AppData\Local\IFXApps\obsidian-export\obsidian-export_Windows-x64_64.exe" "D:\Documents\Notes\Cyberpunk-Red\TTRPG\Cyberpunk Red" "L:\Git\quartz\content\cyberpunk-red"
```
```html
{{if $.Site.Data.config.enableTable}}
<table>
<thead>
<tr>
{{ range $k, $v := .Params }}
<td>
{{ $k }}
</td>
{{ end }}
</tr>
</thead>
<tbody>
<tr>
{{ range $k, $v := .Params }}
<td>
{{ $v }}
</td>
{{ end }}
</tr>
</tbody>
</table>
{{end}}
```

12
_-Review/icinga.md Normal file
View File

@ -0,0 +1,12 @@
---
type: "note"
created: "2024-02-03T06:22:14.646Z"
updated: "2024-02-03T06:23:09.203Z"
---
# icinga
# Icinga
https://www.youtube.com/watch?v=Y66aWGg2EQo
https://icinga.com/docs/icinga-2/latest/doc/02-installation/02-Ubuntu/

35
_-Review/idf-a.md Normal file
View File

@ -0,0 +1,35 @@
---
type: "note"
created: "2024-03-12T18:56:03.116Z"
updated: "2024-03-19T18:07:33.988Z"
---
# idf-a
d-45 - 35 - GaN
d-46 - 35 - GaN
d-47 - 35 - GaN
d-49 - 25 - GaN
d-50 - 154 - GaN
d-19 - x - GaN
d-20 - 35 - GaN
d-21 - 35 - GaN
d-22 - 35 - GaN
d-23 - 35 - GaN
d-24 - 35 - GaN
d-25 - 25 - GaN
d-26 - 35 - GaN
d-27 - 35 - GaN
d-72 - 35 - GaN
d-73 - 35 - GaN
d-01 - 35 - Gray
d-02 - 154 - Gray srp2000
d-09 - 25 - Gray
d-61 - 25 - Gray
d-62 - 25 - Gray
d-63 - x - Gray
d-56 - 35 - Gray
d-59 - 35 - Gray (SRP open)
d-60 - 154 - Gray (SRP open)
d-53 - 1050 - Gray BV

87
_-Review/idf-b.md Normal file
View File

@ -0,0 +1,87 @@
---
type: "note"
created: "2024-02-06T16:49:56.135Z"
updated: "2024-04-02T17:21:17.906Z"
---
# idf-b
d-16 - 154 - biorad2 (ask to route to cde6 or biorad3 ubuntu)
d-48 - 154 - tencor1
?-? - 35 - desk by door
?-? - 154 - desk by door
?-? - 25 - r31
pp3-07 - 35 - lead desk (dispo lots)
pp3-01 - x - r52
pp3-02 - x - r52
d-21 - 154 - tencor3
d-17 - 35 - biorad4
d-14 - 35 - biorad4
## D48
```yaml D48 - Tencor1 Table Panel 2 - Now D14 from below
Name: sa-us-mes-001-013.na.lan
Model: cisco WS-C3650-48PD
IP: no address
Port: GiabitEthernet1/0/11
VLAN: 154
Voice: 666
```
## D14
```yaml D14 - FQA Table TDF B Panel 2 - Now D48 from above
Name: sa-us-mes-001-013.na.lan
Model: cisco WS-C3650-48PD
IP: no address
Port: GiabitEthernet1/0/38
VLAN: 35
Voice: 666
```
## D17
```yaml D17 - FQA Table TDF B Panel 2
Name: sa-us-mes-001-013.na.lan
Model: cisco WS-C3650-48PD
IP: no address
Port: GiabitEthernet1/0/9
VLAN: 154
Voice: 666
```
## 7D
```yaml 7D - FI
Name: sa-us-mes-001-013.na.lan
Model: cisco WS-C3650-48PD
IP: no address
Port: GiabitEthernet1/0/12
VLAN: 35
VLAN: 666
```
``` conf
2024-03-19 9:00 AM
```
| Count | Image | Description | Location | Current | Want | Jack |
|-------|------------------|---------------------|-----------------------------------------------|----------|----------|---------------|
| 1001 | 631090810441.jpg | Top MU | sa-us-mes-001-013.na.lan GiabitEthernet1/0/22 | VLAN 35 | VLAN 154 | IDF B PP3-07 |
| 1002 | 619096410619.jpg | Top MU | sa-us-mes-001-013.na.lan GiabitEthernet1/0/22 | VLAN 35 | VLAN 154 | IDF B PP3-07 |
| 1003 | 109379300619.jpg | Bottom MU (Printer) | sa-us-mes-001-013.na.lan GiabitEthernet1/0/19 | VLAN 25 | VLAN 154 | IDF B PP3-08 |
| 1006 | 869351810301.jpg | EPP West 1 | sa-us-mes-001-013.na.lan GiabitEthernet1/0/4 | VLAN 7 | VLAN 154 | IDF B PP3-01 |
| 1007 | 460213900589.jpg | EPP West 1 | sa-us-mes-001-013.na.lan GiabitEthernet1/0/4 | VLAN 7 | VLAN 154 | IDF B PP3-01 |
| 1008 | 211264200089.jpg | EPP West # | sa-us-mes-001-013.na.lan GiabitEthernet1/0/6 | VLAN 35 | VLAN 154 | IDF B PP3-0# |
| 1009 | 390581300449.jpg | EPP West # | sa-us-mes-001-013.na.lan GiabitEthernet1/0/6 | VLAN 35 | VLAN 154 | IDF B PP3-0# |
| 1010 | 092380120871.jpg | FQA | No name 1/0/9 | VLAN 154 | | IDF B Panel 2 |
| 1011 | 419974810639.jpg | FQA | No name 1/0/9 | VLAN 154 | | IDF B Panel 2 |
| 1012 | 919460010991.jpg | Gray Counters | | | | |
| 1013 | 529458700389.jpg | EPP West 48,50 | | | | |
| 1014 | 858956810041.jpg | EPP East 42,44 | | | | |
| 1015 | 895090310171.jpg | MU Power | | | | |
- [Unity4 00-2a-10-6a-06-80](919129810451.jpg)
- [CDE4](855413010971.jpg)
- [MU Table](992810120511.jpg)

23
_-Review/idf-c.md Normal file
View File

@ -0,0 +1,23 @@
---
type: "note"
created: "2024-02-06T17:08:08.205Z"
updated: "2024-04-02T17:17:51.770Z"
---
# idf-c
d-13 - 1049 - sp1
port a - x - hgcv1 table
port b - x - hgcv1 table
d-9 - x - hgcv1 table
| Count | Image | Description | Location | Current | Want | Jack |
|-------|------------------|-------------|-----------------------------------------------|---------|----------|-------------------|
| 1004 | 861299910639.jpg | EPP East | sa-us-mes-001-005.na.lan GiabitEthernet1/0/17 | VLAN 7 | VLAN 154 | IDF C yellow wire |
| 1005 | 295385910649.jpg | EPP East | sa-us-mes-001-005.na.lan GiabitEthernet1/0/17 | VLAN 7 | VLAN 154 | IDF C yellow wire |
- [IDF-C Panel E D-09 R44 R46](661702010701.jpg)
- [IDF-C Panel E D-09 R44 R46](684481700601.jpg)
- [IDF-C Panel E D-## R54 R52](824876610849.jpg)
- [IDF-C Panel E D-## R54 R52](734246410961.jpg)
- [IDF-C Panel E D-09, D-10 R44 R46](639499210111.jpg)

11
_-Review/ifxapp-store.md Normal file
View File

@ -0,0 +1,11 @@
---
type: "topic"
created: "2024-01-06T01:25:36.054Z"
updated: "2024-01-06T01:25:36.054Z"
---
# IFXApp Store
```bash
softwarecenter:SoftwareID=ScopeId_DC82085C-A4E6-425E-895B-9A70C9AB3D93/Application_090f8e95-e40f-4ab9-95de-028f67c31e44
```

12
_-Review/iis.md Normal file
View File

@ -0,0 +1,12 @@
---
type: "topic"
created: "2024-01-14T02:18:18.761Z"
updated: "2024-02-02T22:16:54.811Z"
---
# IIS
- [Create Web UI to Update Target Date](../.kanbn/archive/create-web-ui-to-update-target-date.md)
- [Backlog](../EAF/Runtime/backlog.md)
[Pipeline](../CI-CD/Azure-DevOps/pipeline.md)

819
_-Review/immich.md Normal file
View File

@ -0,0 +1,819 @@
---
type: "note"
created: "2024-04-23T13:33:44.514Z"
updated: "2024-04-23T13:33:53.583Z"
---
# Immich
- [immich-native](https://github.com/arter97/immich-native)
- [immich-distribution](https://immich-distribution.nsg.cc/)
```bash
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config
code-insiders .wslconfig
```
```conf
[wsl2]
networkingMode=mirrored
```
```bash
sudo -i
apt update
apt-get upgrade -y
apt install -y software-properties-common
add-apt-repository ppa:deadsnakes/ppa
[enter]
apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev
python3 --version
apt-get remove -y python3
apt autoremove -y
python3 --version
apt install -y python3.12 -y
python3 --version
ls /usr/bin/python3*
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
update-alternatives --config python3
[enter]
python3 --version
exit
python3 --version
sudo apt-get install -y build-essential
apt-get install -y git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev zlib1g-dev libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev
apt install pip -y
exit
exit
```
```bash
L:
cd Ubuntu
wsl --export Ubuntu "Ubuntu-Immich-001.tar"
wsl --unregister ubuntu
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-001.tar"
```
```yaml
Name: Ubuntu-Immich
Command Line: wsl.exe -d Ubuntu-Immich
Tab Title: Ubuntu-Immich
```
```bash
sudo -i
ip a
lsb_release -a
apt-get install links unzip git nano ncdu -y
apt install python3-venv python3-dev uuid-runtime -y
ncdu
timedatectl set-timezone America/Phoenix
timedatectl
nano /etc/hosts
```
```bash
# adduser \
# --home /var/lib/immich/home \
# --shell=/sbin/nologin \
# --no-create-home \
# --disabled-password \
# --disabled-login \
# immich
# mkdir -p /var/lib/immich
# chown immich:immich /var/lib/immich
# chmod 700 /var/lib/immich
```
```bash
# KeePass F1D73A6C69F5EF45820A9083F8FA9A17, 8dc6bGn170WCCpCD+PqaFw==
sudo -u postgres psql
postgres=# create database immich;
postgres=# create user immich with encrypted password 'YOUR_STRONG_RANDOM_PW';
postgres=# grant all privileges on database immich to immich;
postgrse=# ALTER USER immich WITH SUPERUSER;
postgres=# \q
```
```bash
# mkdir -p /var/lib/immich
# nano /var/lib/immich/env
```
```conf
; # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
; # Connection secret for postgres. You should change it to a random password
; DB_PASSWORD=0cwxfYh9TqhGwv2#NAPq
; # The values below this line do not need to be changed
; ###################################################################################
; NODE_ENV=production
; DB_USERNAME=immich
; DB_DATABASE_NAME=immich
; DB_VECTOR_EXTENSION=pgvector
; # The location where your uploaded files are stored
; UPLOAD_LOCATION=./library
; # The Immich version to use. You can pin this to a specific version like "v1.71.0"
; IMMICH_VERSION=release
; # Hosts & ports
; DB_HOSTNAME=127.0.0.1
; MACHINE_LEARNING_HOST=127.0.0.1
; IMMICH_MACHINE_LEARNING_URL=http://127.0.0.1:3003
; REDIS_HOSTNAME=127.0.0.1
```
```bash
# git clone https://github.com/arter97/immich-native.git
# ./install.sh
```
```bash
# sudo cp immich*.service /etc/systemd/system/
# sudo systemctl daemon-reload
# for i in immich*.service; do
# sudo systemctl enable $i
# sudo systemctl start $i
# done
```
```bash
# systemctl status immich.service
# systemctl status immich-microservices.service
# systemctl status immich-machine-learning.service
```
```bash
# snap set immich-distribution sync-enabled=true
# snap set immich-distribution sync="qFWDWRKpFvV9PA90FNuBQgFligkvmhKlrOKpXyi7m7s"
# journalctl -eu snap.immich-distribution.sync-*
```
```Powershell
# New-VHD -Path C:\wsl2-Images-7007a9df.vhdx -Dynamic -SizeBytes 120GB
# wsl -d Ubuntu --mount --vhd C:\wsl2-Images-7007a9df.vhdx --bare
```
```bash
# snap stop immich-distribution
# mkdir /var/snap/immich-distribution/common/pictures
# parted /dev/sdc print
# # Error: /dev/sdc: unrecognised disk label
# parted /dev/sdc mklabel msdos
# parted -a optimal /dev/sdc mkpart primary ext4 0% 100%
# lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT /dev/sdc
# mkfs.ext4 /dev/sdc1
# e2label /dev/sdc1 wsl2-Images-7007
# lsblk -o NAME,LABEL,FSTYPE,SIZE,MOUNTPOINT /dev/sdc
# mount UUID=ec3a0c70-6d49-461e-bada-86c312c178ab /var/snap/immich-distribution/common/pictures
# mount -l | grep wsl2-Images-7007
# touch /var/snap/immich-distribution/common/pictures/test
# ls /var/snap/immich-distribution/common/pictures/test
# # rm /var/snap/immich-distribution/common/pictures/test
# # umount /var/snap/immich-distribution/common/pictures
# cp /mnt/d/01-Offline-Backup/1-Images-A/Images-7007a9df/ /var/snap/immich-distribution/common/pictures
```
```bash
# https://meichthys.github.io/foss_photo_libraries/
snap install immich-distribution
# http://127.0.0.1:3001/
snap start immich-distribution
snap stop immich-distribution
systemctl status snap.immich-distribution.manager.service
snap get immich-distribution database-password
immich-distribution.psql -h 127.0.0.1 -U postgres -d immich
cat /mnt/d/8-Move/Immich/backups/immich_database_2024-04-25T220025.sql | immich-distribution.psql immich
```
```bash
wsl --import Ubuntu-Immich Ubuntu-Immich "C:\Users\phares\Ubuntu\Ubuntu-Immich-laptop-001.tar"
```
```bash
cat /mnt/d/8-Move/Immich/backups/immich_database_2024-04-25T220025.sql | immich-distribution.psql immich
snap stop immich-distribution
mv /var/snap/immich-distribution/common/upload /var/snap/immich-distribution/common/upload-old
ls -la /var/snap/immich-distribution/common
ls -la /var/snap/immich-distribution/common/upload-old
# rsync -r --info=progress2 /mnt/c/8-Move/Immich/upload/ /var/snap/immich-distribution/common
# freefilesync
mv /home/phares/upload/ /var/snap/immich-distribution/common
chown -R root:root /var/snap/immich-distribution/common
chown -R snap_daemon:snap_daemon /var/snap/immich-distribution/common/pgsql
snap start immich-distribution
systemctl status snap.immich-distribution.manager.service
journalctl -fu snap.immich-distribution.*
```
```bash
snap stop immich-distribution
mv /var/snap/immich-distribution/common/upload/ /home/mikep/Immich
chown -R mikep:mikep /home/mikep
chown -R mike:mike /var/snap/immich-distribution/pictures
chown -R root:root /var/snap/immich-distribution/pictures
immich-distribution.backup -d
cat /home/phares/Immich/backups/immich_database_2024-04-28T213218.sql | immich-distribution.psql immich
mv /var/snap/immich-distribution/common/upload/ /home/phares/Immich
chown -R phares:phares /home/phares/Immich
mv /home/phares/Immich/upload/ /var/snap/immich-distribution/common
chown -R root:root /var/snap/immich-distribution/common/upload
```
- [x] Move images from camera to "D:/7-Question/iCloud Photos 2024"
- [x] Run Rename from "L:/Git/AA"
- [x] Move images from "D:/7-Question/iCloud Photos 2024" to "D:/1-Images-A/Images-7007a9df"
- [x] Run Instance from "L:/Git/View-by-Distance-MKLink-Console"
- [x] Switch to Ubuntu
- [x] Stop Immich process
- [x] Mount ProgramFiles (correct one)
- [x] change owner of /var/snap/immich-distribution/pictures to mike
- [x] Use FreeFileSync to sync '/mnt/ProgramFiles/1-Images-A/Images-7007a9df-Results/C)Resize/7007a9df/Original/()' with /var/snap/immich-distribution/pictures
- [x] change owner of /var/snap/immich-distribution/pictures to root
- [x] Start Immich process
- [x] Use web GUI - Administration - External Libraries - Scan new Library Files
- [x] Match faces in new images
- [x] Queue jobs to find more
- [x] Backup database
- [x] Run Backups-Immich-local, Upload-Immich-local, Backup-Immich-server and Upload-Immich-server FreeFileSync files
- [2] Switch to Windows
- [2] Run Syncthing-Immich-Server FreeFileSync file
- [2] Used Windows to un-compress .sql.xz
- [2] Push sql
- [2] Stop Immich process
- [2] Move upload to home
- [2] change owner
- [2] sync
- [2] Move back to var from home
- [2] change owner back
- [2] Start Immich process
```json ckolkman.vscode-postgres
{
"label": "127.0.0.1",
"host": "127.0.0.1",
"user": "postgres",
"port": 5432,
"ssl": false,
"database": "immich",
"passwordX": "UFvfjMpvcHpkLtDwebWx",
"passwordXX": "AsKiBXwEEHZEwaXkrnMI",
"passwordXXX": "YPSjzpREpyHQjdeUJZil",
"passwordXXXX": "eYuaUZnJYFRgCJPcHnSH"
}
```
```bash does't work
immich-distribution.psql -h 127.0.0.1 -U postgres -d immich -qAtX -c "select json_agg(t) FROM (SELECT * from assets) t;" -o /var/snap/immich-distribution/common/backups/data.json
immich-distribution.psql -h 127.0.0.1 -U postgres -d immich
```
```sql doesn't work
\t
\a
\o file.json
SELECT row_to_json(r) FROM assets AS r;
```
- Sun May 12 2024 09:22:30 GMT-0700 (Mountain Standard Time)
- [x] Move images from google takeout to "D:/7-Question/iCloud Photos 2024"
- [x] Run Rename from "L:/Git/AA"
- [x] Move images from "D:/7-Question/iCloud Photos 2024" to "D:/1-Images-A/Images-7007a9df"
- [x] Run Instance from "L:/Git/View-by-Distance-MKLink-Console"
- [x] Switch to Ubuntu
- [x] Use FreeFileSync as sudo to sync '/mnt/ProgramFiles/1-Images-A/Images-7007a9df-Results/C)Resize/7007a9df/Original/()' with /var/snap/immich-distribution/pictures
- [x] change owner of /var/snap/immich-distribution/pictures to root
- [x] Use web GUI - Administration - External Libraries - Scan new Library Files
- [x] Queue jobs to find more
- [x] Backup database
```bash
sudo -i
immich-distribution.backup -d
```
- [x] Used ubuntu-desktop to un-compress .sql.xz
- [x] Run Backups-Immich-local, Upload-Immich-local, Backup-Immich-server and Upload-Immich-server FreeFileSync files
- [1] Switch to Windows
- [1] Run Syncthing-Immich-Server FreeFileSync file
- [1] Stop Ubuntu-Immich process
```bash
snap stop immich-distribution
mv /var/snap/immich-distribution/common/upload/ /home/mikep/Immich
mv /var/snap/immich-distribution/common/backups/ /home/mikep/Immich
chown -R mikep:mikep /home/mikep/Immich
```
- [1] Run wsl-Immich-d FreeFileSync file
```bash
mv /home/mikep/Immich/backups/ /var/snap/immich-distribution/common
chown -R root:root /var/snap/immich-distribution/common/backups
mv /home/mikep/Immich/upload/ /var/snap/immich-distribution/common
chown -R root:root /var/snap/immich-distribution/common/upload
snap start immich-distribution
```
- [1] Push sql
```bash
sudo -i
cat /var/snap/immich-distribution/common/backups/immich_database_2024-05-12T085737.sql | immich-distribution.psql immich
```
```sql Sun May 12 2024 10:32:45 GMT-0700 (Mountain Standard Time)
SELECT json_agg(t)
FROM (
SELECT "id",
"deviceAssetId",
replace("originalPath", '/var/snap/immich-distribution/pictures', '') "originalPath",
replace("previewPath", '/var/snap/immich-distribution/common/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593', '') "previewPath",
-- "fileCreatedAt",
-- "fileModifiedAt",
"isFavorite",
-- "duration",
replace("thumbnailPath", '/var/snap/immich-distribution/common/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593', '') "thumbnailPath",
-- "encodedVideoPath",
-- "checksum",
-- "livePhotoVideoId",
-- "updatedAt",
-- "createdAt",
-- "sidecarPath",
"thumbhash"
-- "libraryId",
-- "localDateTime",
-- "stackId"
FROM "assets"
WHERE "ownerId" = 'fc9fd5a1-d1b3-4080-a21c-daf9b1c24593'
AND "deviceId" = 'Library Import'
AND "type" = 'IMAGE'
AND "isVisible" = true
AND "isArchived" = false
AND "isReadOnly" = true
AND "isOffline" = false
AND "isExternal" = true
AND "deletedAt" is null
AND "originalFileName" = "deviceAssetId"
-- LIMIT 50
) t;
```
```vscode
/var/snap/immich-distribution/common/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593
```
```bash
ln -s /var/log/nginx /var/www/html/log-nginx
# ln -s /home/syncthing/Immich/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593 /var/www/html/Images-c9dbce3b-Results/thumbs
cp -R /home/syncthing/Immich/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593/ /var/www/html/Images-c9dbce3b-Results/thumbs
ls -la /var/www/html/Images-c9dbce3b-Results
```
```sql Sun May 12 2024 16:57:04 GMT-0700 (Mountain Standard Time)
SELECT "assetId",
"personId",
-- "embedding",
"imageWidth",
"imageHeight",
"boundingBoxX1",
"boundingBoxY1",
"boundingBoxX2",
"boundingBoxY2",
"id"
FROM "asset_faces"
LIMIT 1000;
```
```sql Sun May 12 2024 16:57:04 GMT-0700 (Mountain Standard Time)
SELECT "id",
"createdAt",
"updatedAt",
"ownerId",
"name",
"thumbnailPath",
"isHidden",
"birthDate",
"faceAssetId"
FROM "person"
LIMIT 1000;
```
```sql Sun May 12 2024 16:57:04 GMT-0700 (Mountain Standard Time)
SELECT "assetId",
"make",
"model",
"exifImageWidth",
"exifImageHeight",
"fileSizeInByte",
"orientation",
"dateTimeOriginal",
"modifyDate",
"lensModel",
"fNumber",
"focalLength",
"iso",
"latitude",
"longitude",
"city",
"state",
"country",
"description",
"fps",
"exposureTime",
"livePhotoCID",
"timeZone",
"exifTextSearchableColumn",
"projectionType",
"profileDescription",
"colorspace",
"bitsPerSample",
"autoStackId"
FROM "exif"
LIMIT 1000;
```
```conf
# https://immich.app/docs/administration/reverse-proxy#nginx-example-config
server {
server_name <public_url>;
# allow large file uploads
client_max_body_size 50000M;
# Set headers
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable websockets: http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
# set timeout
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
location / {
proxy_pass http://<backend_url>:2283;
}
}
```
```bash
L:
cd Ubuntu
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-003.tar"
```
```bash
snap stop immich-distribution
cp -R /mnt/d/7-Question/papa/ /var/snap/immich-distribution/common/pictures
chown -R root:root /var/snap/immich-distribution/common/pictures
snap start immich-distribution
systemctl status snap.immich-distribution.manager.service
journalctl -fu snap.immich-distribution.*
snap refresh --hold=forever immich-distribution
cp -R /var/snap/immich-distribution/common/upload/thumbs/5e47f15f-0447-4283-9c3d-6b61ff79ebb5/ /mnt/l/
immich-distribution.backup -d
cp -R /var/snap/immich-distribution/common/backups/ /mnt/l/
```
```bash
L:
cd Ubuntu
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman.tar"
wsl --unregister Ubuntu-Immich
# wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman.tar"
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-003.tar"
```
```bash
# /mnt/d/3-Videos-A/Device-Videos-2_0_0_3-Current-Year/Have-Media-Created
snap refresh --hold=forever immich-distribution
cp -R /var/snap/immich-distribution/common/upload/thumbs/5e47f15f-0447-4283-9c3d-6b61ff79ebb5/ /mnt/l/
immich-distribution.backup -d
cp -R /var/snap/immich-distribution/common/backups/ /mnt/l/
cp -R /var/snap/immich-distribution/common/upload/encoded-video/5e47f15f-0447-4283-9c3d-6b61ff79ebb5/ /mnt/l/
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Videos.tar"
wsl --unregister Ubuntu-Immich
```
```bash
L:
cd Ubuntu
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman.tar"
```
```bash
snap stop immich-distribution
ls /var/snap/immich-distribution/common/pictures/ -1 | wc -l
mv /var/snap/immich-distribution/common/pictures/ /home/mikep/
chown -R mikep:mikep /home/mikep
ls /home/mikep/pictures/ -1 | wc -l
mv /home/mikep/pictures/ /var/snap/immich-distribution/common/
chown -R root:root /var/snap/immich-distribution/common/pictures
ls /var/snap/immich-distribution/common/pictures/ -1 | wc -l
snap start immich-distribution
systemctl status snap.immich-distribution.manager.service
# Queue jobs
cp -R /var/snap/immich-distribution/common/upload/thumbs/5e47f15f-0447-4283-9c3d-6b61ff79ebb5/ /mnt/l/
immich-distribution.backup -d
cp -R /var/snap/immich-distribution/common/backups/ /mnt/l/
snap stop immich-distribution
mv /var/snap/immich-distribution/common/pictures/ /home/mikep/
snap start immich-distribution
snap stop immich-distribution
mv /home/mikep/pictures/ /var/snap/immich-distribution/common/
snap start immich-distribution
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-002.tar"
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-002.tar"
```
```bash
snap stop immich-distribution
rm -R /var/snap/immich-distribution/common/pictures
snap start immich-distribution
exit
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-003.tar"
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-003.tar"
wsl --unregister Ubuntu-Immich
```
```bash
# ls /mnt/d/01-Offline-Backup/2-Images-B/Norman-Herman-Immich/tiff
# mkdir -p /mnt/disk
# mount -o loop /mnt/d/01-Offline-Backup/2-Images-B/Norman-Herman-Immich/tiff/tiff.iso /mnt/disk
# mount -t iso9660 E: /mnt/disk
# mount -t drvfs E: /mnt/disk
# umount /mnt/disk
# umount /mnt/disk
```
```sql
-- update assets
-- set "originalPath" = replace("originalPath",
-- '/var/snap/immich-distribution/common/pictures',
-- '/mnt/disk')
-- WHERE "originalPath" like '%var%';
-- SELECT * FROM "assets" LIMIT 1000;
```
```bash
L:
cd Ubuntu
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-003.tar"
```
- [ ] FreeFileSync - wsl-Immich-home-View-by-Distance-Test
```xml
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="GUI" XmlFormat="23">
<Notes/>
<Compare>
<Variant>TimeAndSize</Variant>
<Symlinks>Exclude</Symlinks>
<IgnoreTimeShift/>
</Compare>
<Synchronize>
<Changes>
<Left Create="right" Update="right" Delete="right"/>
<Right Create="left" Update="left" Delete="left"/>
</Changes>
<DeletionPolicy>Permanent</DeletionPolicy>
<VersioningFolder Style="Replace"/>
</Synchronize>
<Filter>
<Include>
<Item>*</Item>
</Include>
<Exclude>
<Item>\System Volume Information\</Item>
<Item>\$Recycle.Bin\</Item>
<Item>\RECYCLE?\</Item>
<Item>\Recovery\</Item>
<Item>*\thumbs.db</Item>
<Item>*.Identifier |</Item>
</Exclude>
<SizeMin Unit="None">0</SizeMin>
<SizeMax Unit="None">0</SizeMax>
<TimeSpan Type="None">0</TimeSpan>
</Filter>
<FolderPairs>
<Pair>
<Left>L:\Git\View-by-Distance-Test\Images-Results\C)Resize\c9dbce3b\Original\()</Left>
<Right>\\wsl.localhost\Ubuntu-Immich\home\mikep\pictures</Right>
</Pair>
</FolderPairs>
<Errors Ignore="false" Retry="0" Delay="5"/>
<PostSyncCommand Condition="Completion"/>
<LogFolder/>
<EmailNotification Condition="Always"/>
<GridViewType>Action</GridViewType>
</FreeFileSync>
```
```bash
chown -R mikep:mikep /home/mikep/
snap refresh --hold=forever immich-distribution
# View-by-Distance-Test
# /home/mikep/pictures
# Scan All Libraries
# http://127.0.0.1:3001/admin/server-status
# http://127.0.0.1:3001/admin/jobs-status
exit
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-View-by-Distance-Test-003.tar"
# Added more pictures with wsl-Immich-home
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-View-by-Distance-Test-004.tar"
# Added more pictures with wsl-Immich-home
```
- [ ] FreeFileSync - wsl-Immich-var-View-by-Distance-Test
```xml
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="GUI" XmlFormat="23">
<Notes/>
<Compare>
<Variant>TimeAndSize</Variant>
<Symlinks>Exclude</Symlinks>
<IgnoreTimeShift/>
</Compare>
<Synchronize>
<Changes>
<Left Create="right" Update="right" Delete="right"/>
<Right Create="left" Update="left" Delete="left"/>
</Changes>
<DeletionPolicy>Permanent</DeletionPolicy>
<VersioningFolder Style="Replace"/>
</Synchronize>
<Filter>
<Include>
<Item>*</Item>
</Include>
<Exclude>
<Item>\System Volume Information\</Item>
<Item>\$Recycle.Bin\</Item>
<Item>\RECYCLE?\</Item>
<Item>\Recovery\</Item>
<Item>*\thumbs.db</Item>
<Item>*.Identifier |</Item>
</Exclude>
<SizeMin Unit="None">0</SizeMin>
<SizeMax Unit="None">0</SizeMax>
<TimeSpan Type="None">0</TimeSpan>
</Filter>
<FolderPairs>
<Pair>
<Left>L:\Git\View-by-Distance-Test\Images-Results\C)Resize\c9dbce3b\immich</Left>
<Right>\\wsl.localhost\Ubuntu-Immich\var\snap\immich-distribution\common\upload\thumbs\5e47f15f-0447-4283-9c3d-6b61ff79ebb5</Right>
</Pair>
</FolderPairs>
<Errors Ignore="false" Retry="0" Delay="5"/>
<PostSyncCommand Condition="Completion"/>
<LogFolder/>
<EmailNotification Condition="Always"/>
<GridViewType>Action</GridViewType>
</FreeFileSync>
```
```bash
rm -R /home/mikep/pictures/
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-View-by-Distance-Test-005.tar"
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-View-by-Distance-Test-005.tar"
# Added more pictures with wsl-Immich-home
```
```bash
rm -R /home/mikep/pictures/
```
```bash
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-View-by-Distance-Test-006.tar"
wsl --unregister Ubuntu-Immich
L:
cd Ubuntu
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-003.tar"
```
- [ ] FreeFileSync - wsl-Immich-home-Videos-A-Device-Videos-2_0_0_3-Current-Year
```bash
# Videos-A
# /home/mikep/videos
# Scan All Libraries
# http://127.0.0.1:3001/admin/server-status
# http://127.0.0.1:3001/admin/jobs-status
```
```bash
L:
cd Ubuntu
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Videos-004.tar"
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Videos-004.tar"
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Videos-005.tar"
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-004.tar"
wsl --unregister Ubuntu-Immich
wsl --export Ubuntu "Ubuntu-Immich-001.tar"
wsl --unregister Ubuntu
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-001.tar"
```
```bash
cat /var/snap/immich-distribution/common/backups/immich_database_2024-05-13T113720.sql | immich-distribution.psql immich
# cat /var/snap/immich-distribution/common/backups/immich_database_2024-05-12T085737.sql | immich-distribution.psql immich
# cat /var/snap/immich-distribution/common/backups/immich_database_2024-04-28T213218.sql | immich-distribution.psql immich
```
```bash
wsl --export Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Phares-001.tar"
wsl --unregister Ubuntu-Immich
```
```bash
cd C:/6-Other-Large-C
wsl --unregister Ubuntu-Immich
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Videos-005.tar"
```
```bash
wsl --import Ubuntu-Immich Ubuntu-Immich "L:\Ubuntu\Ubuntu-Immich-Norman-Herman-004.tar
```
```bash
immich-distribution.backup -d
```
- [x] Windows \\wsl.localhost\Ubuntu-Immich copy and unzip .sql.zx
```bash
wsl --unregister Ubuntu-Immich
pscp -i "C:\Users\phares\.ssh\id_ed25519.ppk" D:/8-Move/immich_database_2024-05-17T173401.sql root@free.file.sync.root:/var/snap/immich-distribution/common/backups/immich_database_2024-05-17T173401.sql
```
```bash
cat /var/snap/immich-distribution/common/backups/immich_database_2024-05-17T173401.sql | immich-distribution.psql immich
```
```sql
select "id",
"createdAt",
"updatedAt",
"ownerId",
"name",
"thumbnailPath",
"isHidden",
"birthDate",
"faceAssetId"
from "person"
where "ownerId" = 'c76905af-c06a-4a78-a9a7-c32f5b58e793'
and "ownerId" != '37c59a99-2c1f-4580-89aa-0bd70a437363'
limit 1000;
```
```sql
insert into "person" (
"ownerId",
"name",
"birthDate"
)
values (
'c76905af-c06a-4a78-a9a7-c32f5b58e793',
'Mike Phares',
'1980-01-17'
);
```

View File

@ -0,0 +1,14 @@
---
type: "note"
created: "2024-03-11T21:34:53.341Z"
updated: "2024-03-11T23:01:27.569Z"
---
# infineon-design-system-stencil
- [Video](https://videoportal.infineon.com/videos/play/F3D1A032-8372-487D-9B16-A6A68EB17044/6BF8F1D1-3386-47DE-BD95-D3BDB60B0602)
- 25:26 / 1:15:30
- [PPt](https://ishare.infineon.com/sites/mit-fi/FI%20Colloquium%20Presentations/2024-02-28%20MHA%20goes%20DevOps%20on%20HICP.pptx)
- [Github](https://infineon.github.io/infineon-design-system-stencil/?path=/docs/setup-installation-about--development)
- [jsdelivr](https://www.jsdelivr.com/package/npm/@infineon/infineon-design-system-stencil?tab=files)
- [cdn](https://cdn.jsdelivr.net/npm/@infineon/infineon-design-system-stencil/)

View File

@ -0,0 +1,101 @@
---
type: "topic"
created: "2024-01-06T01:25:36.056Z"
updated: "2024-01-06T01:25:36.056Z"
---
# InfinityQS License
* ctrl + shift + i to initialize the current licenses
```conf
II DMS DS 1000
DMSD32012001IRC0003UFLM
IRCXGVB
503164
II Dynamic Scheduler
DYSCH2012039IRC0007REWL
IRCHZBZ
662010
II RAMS 2500
RAMS12012001IRC0002CQUM
IRCZWQR
REMSV2012001IRC0002PDEW
IRCPAQT
678508
RTI102006001IRC0003MJHD
IRCNBRG
II SPC MI
SPCMI2012039IRC0007ZXQR
IRCHTVH
657425
```
```conf
1 602 550-9220
Infineon Technologies EPI Services - (Silicon)
550 West Juanite Ave.
Mesa AZ 85210
```
```conf before 2023-12-11
Application: Custom Software License Version 2012.5.0.2004
Application: IIDMSDS1000 Version 2012.0.0.0
Registration: DMSD32012001IRC0003UFLM-9546
Application: IIDMSDS2500 Version 2012.0.0.0
Registration: EV0602012005W101615LFVB-5957
Application: IIDMSDS5000 Version 2012.0.0.0
Registration: EV0602012005W101615LFVB-5957
Application: IIDYNAMICSCHEDULER Version 2012.0.0.0
Registration: DYSCH2012039IRC0007REWL-8531
Application: IIEISVC Version 2012.0.0.0
Registration: EV0602012005W101615LFVB-5957
Application: Remote Alarm Monitor (Service) Version 2012.5.0.9
Application: Remote Alarm Monitor (2500 Stream) (Service) Version 2012.5.0.9
Registration: RAMS12012001IRC0002CQUM-3234
Application: Remote Event Monitor (Service) Version 2012.5.0.2
Registration: REMSV2012001IRC0002PDEW-1281
Application: SPC Manufacturing Intelligence Version 2012.5.0.2059
Registration: SPCMI2012039IRC0007ZXQR-9187
```
```conf after 2023-12-11
Application: Custom Software License Version 2012.5.0.2004
Application: IIDMSDS1000 Version 2012.0.0.0
Registration: DMSD32012001IRC0003UFLM-9546
Application: IIDMSDS2500 Version 2012.0.0.0
Application: IIDMSDS5000 Version 2012.0.0.0
Application: IIDYNAMICSCHEDULER Version 2012.0.0.0
Registration: DYSCH2012039IRC0007REWL-8531
Application: IIEISVC Version 2012.0.0.0
Application: Remote Alarm Monitor (Service) Version 2012.5.0.9
Application: Remote Alarm Monitor (2500 Stream) (Service) Version 2012.5.0.9
Registration: RAMS12012001IRC0002CQUM-3234
Application: Remote Event Monitor (Service) Version 2012.5.0.2
Registration: REMSV2012001IRC0002PDEW-1281
Application: SPC Manufacturing Intelligence Version 2012.5.0.2059
Registration: SPCMI2012039IRC0007ZXQR-9187
```

36
_-Review/infinityqs.md Normal file
View File

@ -0,0 +1,36 @@
---
type: "topic"
created: "2024-01-14T02:18:22.109Z"
updated: "2024-04-02T15:55:01.970Z"
---
# InfinityQS
- [Update IQS](../.kanbn/tasks/update-iqs.md)
[MET08RESISRP2100](../EAF/Runtime/srp.md)
```bash
"C:\Program Files (x86)\InfinityQS International\ProFicient\Applications\iispcmi.exe"
runas /profile /user:phares@infineon "C:\Program Files (x86)\InfinityQS International\ProFicient\Applications\iispcmi.exe"
C:\Windows\PsExec.exe -user "infineon\ecfisysadmin" -p "asdf" "C:\Program Files (x86)\InfinityQS International\ProFicient\Applications\iispcmi.exe"
```
```PowerShell
$username = "infineon\ecfisysadmin"
$password = "asdf"
$startWithElevatedRights = "notepad"
$credentials = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))
$ps = Start-Process -PassThru -FilePath powershell -Credential $credentials -ArgumentList '-noprofile -command &{Start-Process ', $startWithElevatedRights, ' -Wait -verb runas}'
$ps.WaitForExit()
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.4
Start-Process -FilePath "iispcmi.exe" -WorkingDirectory "C:\Program Files (x86)\InfinityQS International\ProFicient\Applications"
```
```Tue Apr 02 2024 08:54:55 GMT-0700 (Mountain Standard Time)
HgCV Res Average
Ian Palmer
```

View File

@ -0,0 +1,50 @@
---
type: "basic-note"
created: "2024-01-06T01:25:36.101Z"
updated: "2024-01-06T01:25:36.101Z"
---
# ISCN5CG1325C0X
[Syncthing](syncthing.md)
phares  
...nht...  
http://127.0.0.1:52419/ Â
C:\Users\phares\AppData\Local\IFXApps\SyncTrayzorPo rtable-x64\syncthing.log
```bash ISCN5CG1325C0X
L:
mkdir "L:\Git\Notes-EC-Documentation"
cd "L:\Git\Notes-EC-Documentation"
git init
mklink /J "EC-Documentation" "D:\Documents\Notes\EC-Documentation"
D:
cd "D:\Documents\Notes\EC-Documentation"
mklink /J ".git" "L:\Git\Notes-EC-Documentation\.git"
L:
mkdir "L:\Git\Notes-Infineon"
cd "L:\Git\Notes-Infineon"
git init
mklink /J "Infineon" "D:\Documents\Notes\Infineon"
D:
cd "D:\Documents\Notes\Infineon"
mklink /J ".git" "L:\Git\Notes-Infineon\.git"
L:
mkdir "L:\Git\Notes-Phares"
cd "L:\Git\Notes-Phares"
git init
mklink /J "Phares" "D:\Documents\Notes\Phares"
D:
cd "D:\Documents\Notes\Phares"
mklink /J ".git" "L:\Git\Notes-Phares\.git"
L:
mkdir "L:\Git\Notes-Cyberpunk-Red"
cd "L:\Git\Notes-Cyberpunk-Red"
git init
mklink /J "Cyberpunk-Red" "D:\Documents\Notes\Cyberpunk-Red"
D:
cd "D:\Documents\Notes\Cyberpunk-Red"
mklink /J ".git" "L:\Git\Notes-Cyberpunk-Red\.git"
```

145
_-Review/iscn5cg3256cps.md Normal file
View File

@ -0,0 +1,145 @@
---
type: "note"
created: "2024-01-14T02:28:59.264Z"
updated: "2024-04-22T19:10:51.301Z"
---
# ISCN5CG3256CPS
```PowerShell Administrator
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
```
```PowerShell Administrator
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program "C:\Windows\System32\OpenSSH\sshd.exe"
```
```PowerShell
ssh-keygen -t ed25519
```
```bash
puttygen "C:\Users\phares\.ssh\id_ed25519"
```
```PowerShell Administrator
copy $env:USERPROFILE\.ssh\id_ed25519.pub C:\ProgramData\ssh\authorized_keys
copy $env:USERPROFILE\.ssh\id_ed25519.pub C:\ProgramData\ssh\administrators_authorized_keys
icacls.exe "C:\ProgramData\ssh\authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
code-insiders "C:\ProgramData\ssh"
```
```PowerShell
Save-Module -Name PSWindowsUpdate -Path "D:\Downloads\2024" -Repository PSGallery
mkdir "C:\Test\Modules\PowerShellGet\"
Save-Module -Name PowerShellGet -Path "C:\Test\Modules" -Repository PSGallery -MaximumVersion 2.1.0
Get-ChildItem -Path C:\Test\Modules\PowerShellGet\
Save-Module -Name PSWindowsUpdate -Path "C:\Test\Modules" -Repository PSGallery
Install-WindowsUpdate AcceptAll
Install-WindowsUpdate AcceptAll IgnoreReboot
```
```bash Sat Jan 13 2024 19:37:23 GMT-0700 (Mountain Standard Time)
mkdir "C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps"
powershell -command "Expand-Archive C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nssm-2.24.zip C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps"
L:
mkdir "L:\DevOps"
mkdir "L:\DevOps\Mesa_FI"
git clone https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/NGINX-Conf "L:\DevOps\Mesa_FI\NGINX-Conf"
cd "L:\DevOps\Mesa_FI\NGINX-Conf"
git checkout -q -b ISCN5CG3256CPS --no-track
git reset --soft "59d2ef6e445c5535736729915dd38d686ecc5a97"
git reset -q HEAD -- .
powershell -command "Expand-Archive C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nginx-1.20.1.zip L:\DevOps\Mesa_FI\NGINX-Conf"
rmdir /s /q "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\conf"
mklink /J "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf"
move "L:\DevOps\Mesa_FI\NGINX-Conf\conf\localhost.conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf\iscn5cg3256cps.conf"
code "L:\DevOps\Mesa_FI\NGINX-Conf"
```
```bash Administrator
L:
cd "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1"
nginx -t
"C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nssm-2.24\win64\nssm.exe" install nginx
```
```yml NSSM-Application
Path: L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\nginx.exe
Startup Directory: L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1
```
```yml NSSM-Details
Startup type: Automatic (Delay Start)
```
```yml NSSM-I/O
Input (stdin): start nginx
Output (stdout): L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\logs\service.out.log
Error (stderr): L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\logs\service.error.log
```
```bash Administrator
sc start nginx
sc query nginx
sc stop nginx
sc start nginx
```
```bash openssl crt
"C:\Users\phares\AppData\Local\Programs\Git\usr\bin\openssl" req -x509 -nodes -days 365 -newkey rsa:2048 -keyout "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\iscn5cg3256cps.key" -out "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\iscn5cg3256cps.crt" -config "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\iscn5cg3256cps.conf"
```
```bash
git clone https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/VS-Code-Settings-Phares "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares"
mkdir "C:\Users\Phares\.omnisharp"
rmdir /S /Q "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\User"
rmdir /S /Q "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\.omnisharp"
xcopy /s /e /h "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares" "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\" | REM "
xcopy /s /e /h "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares" "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\" | REM "
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\.omnisharp" "C:\Users\Phares\.omnisharp"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\.omnisharp" "C:\Users\Phares\.omnisharp"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\.omnisharp" "C:\Users\Phares\.omnisharp"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\User" "C:\Users\Phares\AppData\Roaming\Code\User"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\user" "C:\Users\Phares\AppData\Roaming\VSCodium\User"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\user" "C:\Users\Phares\AppData\Roaming\Code - Insiders\User"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
mklink /J "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
cd "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares"
git reset --hard
cd "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares"
git reset --hard
cd "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares"
git reset --hard
cd ..
dir "C:/Program Files/dotnet/sdk"
code "L:\DevOps\Mesa_FI\VS-Code-Settings-Phares"
codium "L:\DevOps\Mesa_FI\VS-Code-Settings-OSS-Phares"
code-insiders "L:\DevOps\Mesa_FI\VS-Code-Settings-Insiders-Phares"
REM
```
## Tasks
- [x] Verdaccio
- [x] TFS PAT
- [x] Cloned File-Folder-Helper
- [x] Clipboard Helper
- [x] Install the remaining VSCode extensions
- [x] SECS/GEM DiDact
- [ ] BaGet
- [ ] Move Files from old laptop
- [ ] TFS Agent
- [ ] [build-tools](build-tools.md)

View File

@ -0,0 +1,74 @@
---
type: "topic"
created: "2024-01-06T01:25:36.129Z"
updated: "2024-01-06T01:25:36.129Z"
---
# ISCPacMan InfinityQS Mesa
[InfinityQS](infinityqs.md)
ISCCVM93D61A093
ISCEC290DV2
ISCEC2C2DV2
ISCFC274DV2
ISCFC2B0DV2
ISCFMXL7151J59
ISCFMXL7151J5R
ISCFMXL7151J5S
ISCFMXL7151J5W
ISCFMXL7151J5Z
ISCFMXL7151J64
ISCN5CG025CF9K
ISCN5CG025CFBQ
ISCN5CG025CFBT
ISCN5CG025CJ16
ISCN5CG025CKPM
ISCN5CG025DKWC
ISCN5CG025DL7V
ISCN5CG025DL95
ISCN5CG03970YJ
ISCN5CG1200DB6
ISCN5CG1211YWS
ISCN5CG1325C0X
ISCN5CG1381MDG
ISCN5CG1381QPR
ISCN5CG213916W
ISCN5CG2139170
ISCN5CG21391G0
ISCN5CG7245TZL
ISCN5CG7245V2X
ISCN5CG72845CK
ISCN5CG7352PDY
ISCN5CG7352PHL
ISCN5CG7352PNV
ISCN5CG81957GV
ISCN5CG81957W1
ISCN5CG8273YLJ
ISCN5CG8293S07
ISCN5CG8293S1B
ISCN5CG8293S20
ISCN5CG8293S2C
ISCN5CG8293S3J
ISCN5CG8293S3Z
ISCN5CG8293S4M
ISCN5CG8293S5F
ISCN5CG8293S74
ISCN5CG82941QB
ISCN5CG82941SW
ISCN5CG8294200
ISCN5CG829420Y
ISCN5CG829424J
ISCN5CG829424Y
ISCN5CG8294252
ISCNPC15EBXZ
ISCNR90S83JM
ISCNR90T6AJB
ISCWC1S0DV2
ISCWC2B6DV2
ISCWMXL7151J5G
ISCWMXL7151J62
ISCWMXL7151J63
ISCWMXL81317N0
ISCWMXL81317N5
ISCWMXL9333WZ2

104
_-Review/iscxv.md Normal file
View File

@ -0,0 +1,104 @@
---
type: "topic"
foam_template:
filepath: "_-Review/iscxv.md"
created: "2024-01-06T01:25:36.053Z"
updated: "2024-01-06T01:25:36.053Z"
---
# ISCxV
```bash
C:\WINDOWS\TEMP\InfinityQSTEM\ "C:\Program Files (x86)\InstallShield Installation Information\{19E90D94-D3A6-41E7-B4FA-D157B74051B7}\setup.exe" -runfromtemp -l0x0409 -removeonly
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{19E90D94-D3A6-41E7-B4FA-D157B74051B7}
MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
cmtrace
C:\Windows\ccmcache\16\Wrapper\0
C:\ProgramData\ISCvX\Logs\SoftwareDistributionLogs\WrapperInstallations
C:\Program Files\Infineon Technologies\Infineon Office Settings>PsExec.exe -i -s cmd.exe
Microsoft Windows [Version 10.0.19045.3570]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>whoami
nt authority\system
C:\WINDOWS\system32>cd "C:\Windows\ccmcache\16\MassData\0\Machine"
C:\Windows\ccmcache\16\MassData\0\Machine>cd..
C:\Windows\ccmcache\16\MassData\0>cd..
C:\Windows\ccmcache\16\MassData>cd..
C:\Windows\ccmcache\16>cd Wrapper
C:\Windows\ccmcache\16\Wrapper>cd 0
C:\Windows\ccmcache\16\Wrapper\0>Wrapper.exe -uninstall -machine
C:\Windows\ccmcache\16\Wrapper\0>Wrapper.exe -uninstall -machine
C:\Windows\ccmcache\16\Wrapper\0>wizapp.cpl
'wizapp.cpl' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\ccmcache\16\Wrapper\0>exit
Microsoft Windows [Version 10.0.19045.3570]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>C:\WINDOWS\TEMP\InfinityQSTEM\ "C:\Program Files (x86)\InstallShield Installation Information\{19E90D94-D3A6-41E7-B4FA-D157B74051B7}\setup.exe" -runfromtemp -l0x0409 -removeonly
'C:\WINDOWS\TEMP\InfinityQSTEM\' is not recognized as an internal or external command,
operable program or batch file.
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>MsiExec.exe /I{1C38ED67-8760-4E6F-9E6F-38C2A1B1EAB4}
C:\WINDOWS\system32>cmtrace
C:\WINDOWS\system32>cmtrace
C:\WINDOWS\system32>cd\
C:\>dir psexec.exe /s
Volume in drive C is Windows
Volume Serial Number is CA02-6A5A
Directory of C:\Program Files\Infineon Technologies\Infineon Office Settings
09/13/2022 01:26 AM 339,096 PsExec.exe
1 File(s) 339,096 bytes
C:\>cd "C:\Program Files\Infineon Technologies\Infineon Office Settings"
C:\Program Files\Infineon Technologies\Infineon Office Settings>explorer
C:\Program Files\Infineon Technologies\Infineon Office Settings>explorer .
C:\Program Files\Infineon Technologies\Infineon Office Settings>PsExec.exe -i -s cmd.exe
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
```

25
_-Review/ishare.md Normal file
View File

@ -0,0 +1,25 @@
---
type: "topic"
created: "2024-01-14T02:18:17.353Z"
updated: "2024-02-02T22:16:54.813Z"
---
# iShare
- [iShare Minutes of Meeting](../.kanbn/archive/i-share-minutes-of-meeting.md)
- [Training](../Training/training.md)
## Libraries
- [Mesa FI - Libraries](\\ishare.na.infineon.com@SSL\DavWWWRoot\sites\MesaFI\Libraries)
- [Mesa FI - Libraries](file://ishare.na.infineon.com@SSL/DavWWWRoot/sites/MesaFI/Libraries)
- [Mesa FI - Libraries](https://ishare.na.infineon.com/sites/MesaFI/Libraries)
# Libraries - FI Mesa Change Mgmt - FI Council - Local Enhancements
- [Mesa FI - Backlog]("\\ishare.na.infineon.com@SSL\DavWWWRoot\sites\MesaFI\Libraries\FI Mesa Change Mgmt\FI Council - Local Enhancements")
- [Mesa FI - Backlog](file://ishare.na.infineon.com@SSL/DavWWWRoot/sites/MesaFI/Libraries/FI%20Mesa%20Change%20Mgmt/FI%20Council%20-%20Local%20Enhancements)
# Stealth
- [Mesa FI - Libraries]("\\ishare.na.infineon.com@SSL\DavWWWRoot\sites\naec\Shared Documents\SDP\")

View File

@ -0,0 +1,10 @@
---
type: "note"
created: "2024-04-05T19:45:14.130Z"
updated: "2024-04-05T19:45:14.130Z"
---
# json-to-markdown-table
- [json-to-markdown-table](https://github.com/kdelmonte/json-to-markdown-table)
- [Demo](https://kdelmonte.github.io/json-to-markdown-table/)

61
_-Review/kanbn.md Normal file
View File

@ -0,0 +1,61 @@
---
type: "topic"
created: "2024-01-06T01:25:36.051Z"
updated: "2024-01-06T01:25:36.051Z"
---
# Kanban
- Task level only
- All exist in K-T until archive
- Once archived move to appropriate directory to prevent naming conflicts
- Use Kanbn cli or VSCode extension to create
- Files are created in .kanbn/tasks which is a mklink
- Let Kanbn format file including Sub-tasks, Comments and Relations
- Leave description empty, instead use Comments to help with scrolling
- Problem Sub-tasks get re-formatted by removing more than one tab
- Tag task are on Topic (non-tasks and non-archive) \*.md files only
- In Topic \*.md files link to ... and leave the file name as lower without spaces
- In Topic add hash-tag then task link and last sub item link back to self
-
```bash
npm install -g @basementuniverse/kanbn
kanbn add --help
kanbn add -n "Example Task" -c "WIP"
```
```bash
chown syncthing /home/syncthing/UserSecrets -R
chgrp syncthing /home/syncthing/UserSecrets -R
mklink /J .UserSecrets C:/Users/mikep/AppData/Roaming/Microsoft/UserSecrets
mklink /J .Applications L:/Git/FI-Operations/Applications
mklink /J .DevOps L:/Git/FI-Operations/DevOps
mklink /J .Fab L:/Git/FI-Operations/Fab
```
```bash
# git clone https://github.com/tjdavis3/kanbn2md.git
gofmt -w main.go
go build
kanbn board -j > .kanbn/board.json
kanbn board -j | L:\Git\kanbn2md\kanbn2md.exe >.kanbn/board.md
```
```bash
# https://github.com/foambubble/foam-template/tree/master
```
```bash
D:
xcopy "D:\5-Other-Small\Kanban\-Blank" "D:\5-Other-Small\Kanban\asdf" /s /e /h
L:
mkdir "L:\Git\Notes-asdf"
cd "L:\Git\Notes-asdf"
git init
mklink /J "L:\Git\Notes-asdf\.kanbn" "D:\5-Other-Small\Kanban\asdf"
code-insiders .
```
- [Alt Kanban](https://wekan.icp.infineon.com/)

61
_-Review/kea.md Normal file
View File

@ -0,0 +1,61 @@
---
type: "note"
created: "2024-04-09T00:24:33.543Z"
updated: "2024-04-09T00:24:37.118Z"
---
# kea
```bash
# https://www.techtutorials.tv/sections/linux/how-to-install-and-configure-kea-dhcp-server/
echo > /etc/kea/kea-dhcp4.conf && nano /etc/kea/kea-dhcp4.conf
```
```json
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [
"eth0"
]
},
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/var/lib/kea/kea-leases4.csv",
"lfc-interval": 3600
},
"renew-timer": 15840,
"rebind-timer": 27720,
"valid-lifetime": 31680,
"option-data": [
{
"name": "domain-name-servers",
"data": "8.8.8.8, 1.1.1.1"
},
{
"name": "domain-search",
"data": "192.168.42.1"
}
],
"subnet4": [
{
"subnet": "192.168.42.0/25",
"pools": [
{
"pool": "192.168.42.19 - 192.168.42.82"
}
],
"option-data": [
{
"name": "routers",
"data": "192.168.42.1"
}
]
// Add reservations here
}
// Add subnets here
]
}
}
```

199
_-Review/kestra.md Normal file
View File

@ -0,0 +1,199 @@
---
type: "topic"
created: "2024-01-14T02:18:21.204Z"
updated: "2024-03-30T16:21:35.068Z"
---
# Kestra
```shell
# https://kestra.io/docs/tutorial/inputs
# https://www.youtube.com/watch?v=Nm1tfmZDqo8
wsl --unregister ubuntu
```
```bash
sudo -i
apt-get update
# apt install default-jre
apt install openjdk-19-jre-headless
```
```bash
java --version
cd /home/phares
curl -LO https://github.com/kestra-io/kestra/releases/download/v0.15.10/kestra-0.15.10
chmod +x /home/phares/kestra-0.15.10
./kestra-0.15.10
```
```plugins
io.kestra.plugin:plugin-airbyte:LATEST
io.kestra.plugin:plugin-amqp:LATEST
io.kestra.plugin:plugin-ansible:LATEST
io.kestra.plugin:plugin-aws:LATEST
io.kestra.plugin:plugin-azure:LATEST
io.kestra.plugin:plugin-cassandra:LATEST
io.kestra.plugin:plugin-cloudquery:LATEST
io.kestra.plugin:plugin-compress:LATEST
io.kestra.plugin:plugin-couchbase:LATEST
io.kestra.plugin:plugin-crypto:LATEST
io.kestra.plugin:plugin-databricks:LATEST
io.kestra.plugin:plugin-dataform:LATEST
io.kestra.plugin:plugin-dbt:LATEST
io.kestra.plugin:plugin-debezium-mysql:LATEST
io.kestra.plugin:plugin-debezium-postgres:LATEST
io.kestra.plugin:plugin-debezium-sqlserver:LATEST
io.kestra.plugin:plugin-docker:LATEST
io.kestra.plugin:plugin-elasticsearch:LATEST
io.kestra.plugin:plugin-fivetran:LATEST
io.kestra.plugin:plugin-fs:LATEST
io.kestra.plugin:plugin-gcp:LATEST
io.kestra.plugin:plugin-git:LATEST
io.kestra.plugin:plugin-googleworkspace:LATEST
io.kestra.plugin:plugin-hightouch:LATEST
io.kestra.plugin:plugin-jdbc-clickhouse:LATEST
io.kestra.plugin:plugin-jdbc-duckdb:LATEST
io.kestra.plugin:plugin-jdbc-mysql:LATEST
io.kestra.plugin:plugin-jdbc-oracle:LATEST
io.kestra.plugin:plugin-jdbc-pinot:LATEST
io.kestra.plugin:plugin-jdbc-postgres:LATEST
io.kestra.plugin:plugin-jdbc-redshift:LATEST
io.kestra.plugin:plugin-jdbc-rockset:LATEST
io.kestra.plugin:plugin-jdbc-snowflake:LATEST
io.kestra.plugin:plugin-jdbc-sqlserver:LATEST
io.kestra.plugin:plugin-jdbc-trino:LATEST
io.kestra.plugin:plugin-jdbc-vectorwise:LATEST
io.kestra.plugin:plugin-jdbc-vertica:LATEST
io.kestra.plugin:plugin-jdbc-dremio:LATEST
io.kestra.plugin:plugin-jdbc-arrow-flight:LATEST
io.kestra.plugin:plugin-jdbc-sqlite:LATEST
io.kestra.plugin:plugin-kafka:LATEST
io.kestra.plugin:plugin-kubernetes:LATEST
io.kestra.plugin:plugin-malloy:LATEST
io.kestra.plugin:plugin-modal:LATEST
io.kestra.plugin:plugin-mongodb:LATEST
io.kestra.plugin:plugin-mqtt:LATEST
io.kestra.plugin:plugin-nats:LATEST
io.kestra.plugin:plugin-neo4j:LATEST
io.kestra.plugin:plugin-notifications:LATEST
io.kestra.plugin:plugin-openai:LATEST
io.kestra.plugin:plugin-powerbi:LATEST
io.kestra.plugin:plugin-pulsar:LATEST
io.kestra.plugin:plugin-redis:LATEST
io.kestra.plugin:plugin-script-groovy:LATEST
io.kestra.plugin:plugin-script-julia:LATEST
io.kestra.plugin:plugin-script-jython:LATEST
io.kestra.plugin:plugin-script-nashorn:LATEST
io.kestra.plugin:plugin-script-node:LATEST
io.kestra.plugin:plugin-script-powershell:LATEST
io.kestra.plugin:plugin-script-python:LATEST
io.kestra.plugin:plugin-script-r:LATEST
io.kestra.plugin:plugin-script-shell:LATEST
io.kestra.plugin:plugin-serdes:LATEST
io.kestra.plugin:plugin-servicenow:LATEST
io.kestra.plugin:plugin-singer:LATEST
io.kestra.plugin:plugin-soda:LATEST
io.kestra.plugin:plugin-spark:LATEST
io.kestra.plugin:plugin-sqlmesh:LATEST
io.kestra.plugin:plugin-surrealdb:LATEST
io.kestra.plugin:plugin-terraform:LATEST
io.kestra.plugin:plugin-tika:LATEST
io.kestra.plugin:plugin-weaviate:LATEST
io.kestra.storage:storage-azure:LATEST
io.kestra.storage:storage-gcs:LATEST
io.kestra.storage:storage-minio:LATEST
io.kestra.storage:storage-s3:LATEST
```
```bash
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-git:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-script-shell:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-script-node:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-notifications:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-jdbc-sqlite:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-fs:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-script-python:LATEST
./kestra-0.15.10 plugins install io.kestra.plugin:plugin-jdbc-duckdb:LATEST
...
```
```bash
./kestra-0.15.10 server local
# http://localhost:44919/health
# http://localhost:8080/
```
```shell
wsl --export Ubuntu "L:\Ubuntu\Ubuntu-Kestra-001.tar"
wsl --unregister Ubuntu
wsl --import Ubuntu-Kestra Ubuntu-Kestra "L:\Ubuntu\Ubuntu-Kestra-001.tar"
```
```yml
name: Ubuntu-Kestra
Command Line: wsl -d Ubuntu Ubuntu-Kestra
```
```bash
apt install ssh-import-id
ssh-import-id gh:mikepharesjr
su phares
ssh-import-id gh:mikepharesjr
```
```bash
chown -R phares:phares /home/phares/
apt install python3-pip
pip list
pip install requests kestra
```
```bash
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
cd /home/phares
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 7.0
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
ln -s /home/phares/.dotnet/dotnet /usr/local/bin/dotnet
dotnet --info
```
```bash
apt update
apt-get upgrade -y
apt install -y software-properties-common
add-apt-repository ppa:deadsnakes/ppa
[enter]
apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev
python3 --version
apt-get remove -y python3
apt autoremove -y
python3 --version
apt install -y python3.12 -y
python3 --version
ls /usr/bin/python3*
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
update-alternatives --config python3
[enter]
python3 --version
exit
python3 --version
sudo apt-get install -y build-essential
sudo apt-get install -y git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev zlib1g-dev libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev
apt install pip
```
```bash
cd /home/phares/kestra/
./kestra-0.15.10 server local
# http://localhost:44919/health
# http://localhost:8080/
```
```shell
wsl --export Ubuntu-Kestra Ubuntu-Kestra-002.tar
wsl --unregister Ubuntu-Kestra
```

89
_-Review/kpscript.md Normal file
View File

@ -0,0 +1,89 @@
---
type: "topic"
created: "2024-01-14T02:18:08.257Z"
updated: "2024-01-19T03:11:28.638Z"
---
# KPScript
## Generate PASSWORD_ENC
```yaml KeePass GUI
# https://keepass.info/download.html
# https://keepass.info/help/base/placeholders.html#passwordenc
# https://keepass.info/help/v2_dev/scr_sc_index.html#listgroups
# https://videoportal.infineon.com/videos/play/f3d1a032-8372-487d-9b16-a6a68eb17044/d535b720-360e-4ef2-a77f-958c3b878644
# -> 14:25 / 52:58
General --- Title: $machineName
General --- User name: $userName
General --- Password: PASSWORD_ENC
Auto-Type --- Override default sequence: {PASSWORD_ENC}
```
- [ ] Open notepad on side of KeePass GUI
- [ ] Preform Auto-Type Ctrl + v
- [ ] Change General --- Password to line in notepad
## Examples
```bash
KPScript -c:ListGroups "C:\KeePass\MyDb.kdbx" -pw:MyPassword
KPScript -c:ListEntries "C:\KeePass\MyDb.kdbx" -pw:MyPassword -keyfile:"C:\KeePass\MyDb.key"
```
## Use PASSWORD_ENC in DevOps
```PowerShell
$data = @('$(Agent.TempDirectory)/Infineon-Na.kdbx', '-c:GetEntryString', '-Field:Password', '-refx-UUID:D3BB0F499E1E7844B86DFCEBD0670B81', '-pw-enc:AQAA')
$data.count
$processStartInfo = New-Object System.Diagnostics.ProcessStartInfo
$processStartInfo.FileName = "C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe"
$processStartInfo.RedirectStandardError = $true
$processStartInfo.RedirectStandardOutput = $true
$processStartInfo.UseShellExecute = $false
$processStartInfo.Arguments = $data
$process = New-Object System.Diagnostics.Process
$process.StartInfo = $processStartInfo
$process.Start() | Out-Null
$process.WaitForExit()
$stdout = $process.StandardOutput.ReadToEnd()
$stderr = $process.StandardError.ReadToEnd()
Write-Host "stderr: $stderr"
Write-Host "exit code: " + $process.ExitCode
Write-Host "##vso[task.setvariable variable=pipelinePassword;]$stdout"
```
## More Examples
```bash
# https://docs.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops
KPScript -c:GenPw -profile:"Infineon" -count:5
KPScript -c:ListGroups "D:\Tmp\Phares\Infineon-Mesa.kdbx" -pw:asdf
KPScript -c:ListGroups "D:\Tmp\Phares\Infineon-Mesa.kdbx" -useraccount
KPScript -c:ListGroups "D:\Tmp\Phares\Infineon-Mesa.kdbx" -pw-enc:"AQAAANCMnd8BFdERjHoAb"
```
```bash
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:ListGroups "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -pw-enc:"AQAA"
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:GetEntryString -Field:UserName -refx-UUID:A0563988F3794E4DA2336BE27BF2D966 "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -pw-enc:"AQAA"
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -c:GetEntryString -Field:Password -refx-UUID:A0563988F3794E4DA2336BE27BF2D966 -pw-enc:"AQAA"
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -c:GetEntryString -auto-type:PASSWORD_ENC -refx-UUID:A0563988F3794E4DA2336BE27BF2D966 -pw-enc:"AQAA"
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -c:GetEntryString -Field:Password -refx-UUID:A0563988F3794E4DA2336BE27BF2D966 -pw-enc:"AQAA"
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:ListEntries "L:\DevOps\Mesa_FI\KeePass\Infineon-Na.kdbx" -pw-enc:"AQAA"
```
```bash Mon Jan 08 2024 14:46:20 GMT-0700 (Mountain Standard Time)
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:EstimateQuality -text:MyTopSecretPassword
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "D:\Documents\Personal\KeePass\Mike-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Mike-Phares.kdbx.xml" -pw-enc:"AQAA"
```
```bash Thu Jan 18 2024 19:27:19 GMT-0700 (Mountain Standard Time)
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Chelsea-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Chelsea-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Infineon-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Infineon-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Julie-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Julie-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Kristy-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Kristy-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Logan-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Logan-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Mike-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Mike-Phares.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Norman-Herman.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Norman-Herman.kdbx.xml" -pw:asdf
"C:\Users\phares\AppData\Local\IFXApps\KeePass-2.51.1---KPScript-2.51.1\KPScript.exe" -c:Export "d:/5-Other-Small/KeePass/Shared-Phares.kdbx" -Format:"KeePass XML (2.x)" -OutFile:"D:\Tmp\Phares\KeePass\Shared-Phares.kdbx.xml" -pw:asdf
```

142
_-Review/librenms.md Normal file
View File

@ -0,0 +1,142 @@
---
type: "topic"
created: "2024-01-28T01:06:26.133Z"
updated: "2024-01-28T01:06:26.133Z"
---
# LibreNMS
```bash
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config
code-insiders .wslconfig
```
```conf
[wsl2]
networkingMode=mirrored
```
```bash
sudo -i
apt-get update
apt upgrade -y
ip a
lsb_release -a
apt-get install links unzip git nano ncdu -y
ncdu
timedatectl set-timezone America/Phoenix
timedatectl
nano /etc/hosts
exit
exit
```
```bash
wsl --export Ubuntu "L:\Ubuntu\Ubuntu-LibreNMS-001.tar"
wsl --unregister Ubuntu
wsl --import Ubuntu-LibreNMS Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-001.tar"
# wsl --export Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-002.tar"
# del "L:\Ubuntu\Ubuntu-LibreNMS-002.tar"
```
```yaml
Name: Ubuntu-LibreNMS
Command Line: wsl.exe -d Ubuntu-LibreNMS
Tab Title: Ubuntu-LibreNMS
```
```bash
sudo -i
apt install acl curl fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php-cli php-curl php-fpm php-gd php-gmp php-json php-mbstring php-mysql php-snmp php-xml php-zip rrdtool snmp snmpd unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-systemd python3-pip whois traceroute -y
exit
exit
```
```bash
wsl --export Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-002.tar"
wsl --unregister Ubuntu-LibreNMS
wsl --import Ubuntu-LibreNMS Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-002.tar"
```
```bash
# https://docs.librenms.org/Installation/Install-LibreNMS/#endpoints
useradd librenms -d /opt/librenms -M -r -s "$(which bash)"
#
cd /opt
git clone https://github.com/librenms/librenms.git
#
chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
#
su - librenms
./scripts/composer_wrapper.php install --no-dev
exit
```
```bash
wget https://getcomposer.org/composer-stable.phar
mv composer-stable.phar /usr/bin/composer
chmod +x /usr/bin/composer
code-insiders "\\wsl.localhost\Ubuntu-LibreNMS"
#
# America/Phoenix
# nano /etc/php/8.1/fpm/php.ini
# nano /etc/php/8.1/cli/php.ini
nano /etc/mysql/mariadb.conf.d/50-server.cnf
```
```conf
innodb_file_per_table=1
lower_case_table_names=0
```
```bash
systemctl enable mariadb
systemctl restart mariadb
mysql -u root
```
```sql
CREATE DATABASE librenms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost';
exit
```
```bash
cp /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/librenms.conf
nano /etc/php/8.1/fpm/pool.d/librenms.conf
nano /etc/nginx/conf.d/librenms.conf
rm /etc/nginx/sites-enabled/default
systemctl restart nginx
systemctl restart php8.1-fpm
# http://localhost/install/checks
```
```bash
wsl --export Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-003.tar"
wsl --unregister Ubuntu-LibreNMS
wsl --import Ubuntu-LibreNMS Ubuntu-LibreNMS "L:\Ubuntu\Ubuntu-LibreNMS-003.tar"
```
```bash
# http://localhost
ln -s /opt/librenms/lnms /usr/bin/lnms
cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
nano /etc/snmp/snmpd.conf
curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
chmod +x /usr/bin/distro
systemctl enable snmpd
systemctl restart snmpd
cp /opt/librenms/dist/librenms.cron /etc/cron.d/librenms
cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
systemctl enable librenms-scheduler.timer
systemctl start librenms-scheduler.timer
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms
chown librenms:librenms /opt/librenms/config.php
exit
exit
```

75
_-Review/maas.md Normal file
View File

@ -0,0 +1,75 @@
---
type: "topic"
created: "2024-01-06T01:25:36.043Z"
updated: "2024-01-06T01:25:36.043Z"
---
# MAAS
```bash
# https://maas.io/docs/fresh-installation-of-maas
sudo -i
snap install --channel=3.4/edge maas
systemctl disable --now systemd-timesyncd
```
```bash
sudo -i
apt update -y
apt install -y postgresql
```
```postgresql
mikepharesjr = ___________
1178 = ___________
maas = ___________
localhost = _________
```
```bash
sudo -i -u postgres psql
drop database maas with (force);
sudo -i -u postgres psql -c "CREATE USER \"mikepharesjr\" WITH ENCRYPTED PASSWORD '1178'"
sudo -i -u postgres createdb -O "mikepharesjr" "maas"
cat /etc/postgresql/15/main/pg_hba.conf
nano /etc/postgresql/15/main/pg_hba.conf
```
```conf
host maas mikepharesjr 0/0 md5
```
```bash
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
maas status
maas init --help
maas createadmin
ufw allow from 192.168.0.0/24 comment "04) 192.168.0.0/24"
maas config-tls enable /etc/nginx/localhost.key /etc/nginx/localhost.crt --port YYYY
```
```bash
http://phares3757.ddns.net:5240/MAAS
gh:mikepharesjr
```
```bash
snap stop maas
systemctl stop postgresql.service
~~systemctl stop maas-dhcpd.service~~
~~systemctl stop maas-rackd.service~~
~~systemctl stop maas-regiond.service~~
```
```bash
snap stop maas
snap remove --purge maas
systemctl enable --now systemd-timesyncd
```
```bash
systemctl disable --now systemd-timesyncd
snap install --channel=3.4/edge maas
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
maas status
```

32
_-Review/mac-address.md Normal file
View File

@ -0,0 +1,32 @@
---
type: "note"
created: "2024-04-01T21:06:55.003Z"
updated: "2024-04-01T21:30:11.439Z"
---
# MAC Address
- [choosing-your-own-mac-address](https://blog.yaakov.online/choosing-your-own-mac-address/)
#### Locally Administered Addresses are defined by one particular bit out of the 6 bytes - specifically, the second-least-significant bit of the first octet. This means that you can choose any MAC addresses that you want, as long as it matches one of:
- X2XX-XX-XX-XX-XX
- X6XX-XX-XX-XX-XX
- XAXX-XX-XX-XX-XX
- XEXX-XX-XX-XX-XX
### Regex Simple
- [0-9A-Fa-f]2:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}
- [0-9A-Fa-f]6:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}
- [0-9A-Fa-f]A:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}
- [0-9A-Fa-f]E:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}
### Regex Complex
- ([0-9A-Fa-f]{1}2[:-])([0-9A-Fa-f]{2}[:-]){4}([0-9A-Fa-f]{2})
- ([0-9A-Fa-f]{1}6[:-])([0-9A-Fa-f]{2}[:-]){4}([0-9A-Fa-f]{2})
- ([0-9A-Fa-f]{1}A[:-])([0-9A-Fa-f]{2}[:-]){4}([0-9A-Fa-f]{2})
- ([0-9A-Fa-f]{1}E[:-])([0-9A-Fa-f]{2}[:-]){4}([0-9A-Fa-f]{2})
#### If you want to know why you can use 2, 6, A, and E, but not 3, 7, B, or F, that's because the latter ones are reserved for Multicast whereas the former are Unicast.

12
_-Review/mesa-printer.md Normal file
View File

@ -0,0 +1,12 @@
---
type: "topic"
created: "2024-01-06T01:25:36.043Z"
updated: "2024-01-06T01:25:36.043Z"
---
# Mesa Printer
```bash
\\messp1002.na.infineon.com\MESZBRPRT007
\\messp1003.infineon.com\MESZBRPRT007
```

13
_-Review/microsoft.md Normal file
View File

@ -0,0 +1,13 @@
---
type: "note"
created: "2024-03-31T15:07:31.358Z"
updated: "2024-03-31T15:17:41.516Z"
---
# Microsoft
- [Portal](https://portal.azure.com/#home)
- [AEX](https://aex.dev.azure.com/me?mkt=en-US)
- [MyAccount](https://myaccount.microsoft.com/)
- [Benefits](https://my.visualstudio.com/Benefits?mkt=en-us)
- [Microsoft365](https://www.microsoft365.com/?auth=2&home=1)

211
_-Review/mklink.md Normal file
View File

@ -0,0 +1,211 @@
---
type: "topic"
created: "2024-01-14T02:18:22.233Z"
updated: "2024-01-23T16:40:21.999Z"
---
# mklink
```bash
# https://www.elevenforum.com/t/find-all-symbolic-links-and-junction-points-in-windows.4225/
DIR /AL /S "D:\5-Other-Small\Kanban"
DIR /AL /S "L:\Git" > "%localAppData%\IFXApps\mklinks-L-Git.txt"
DIR /AL /S "L:\DevOps" > "%localAppData%\IFXApps\mklinks-L-DevOps.txt"
DIR /AL /S "D:\Documents" > "%localAppData%\IFXApps\mklinks-D-Documents.txt"
```
```bash Mon Jan 15 2024 15:49:34 GMT-0700 (Mountain Standard Time)
dir /AL /S C:\
mklink /J "C:\Documents and Settings" "C:\Users"
mklink /J "C:\Program Files (x86)\Common Files\Oracle\Java\javapath" "C:\Program Files (x86)\Common Files\Oracle\Java\javapath_target_12149562"
mklink /J "C:\ProgramData\Application Data" "C:\ProgramData"
mklink /J "C:\ProgramData\Desktop" "C:\Users\Public\Desktop"
mklink /J "C:\ProgramData\Documents" "C:\Users\Public\Documents"
mklink /J "C:\ProgramData\Start Menu" "C:\ProgramData\Microsoft\Windows\Start Menu"
mklink /J "C:\ProgramData\Templates" "C:\ProgramData\Microsoft\Windows\Templates"
mklink /J "C:\Users\All Users\Application Data" "C:\ProgramData"
mklink /J "C:\Users\All Users\Desktop" "C:\Users\Public\Desktop"
mklink /J "C:\Users\All Users\Documents" "C:\Users\Public\Documents"
mklink /J "C:\Users\All Users\Start Menu" "C:\ProgramData\Microsoft\Windows\Start Menu"
mklink /J "C:\Users\All Users\Templates" "C:\ProgramData\Microsoft\Windows\Templates"
mklink /J "C:\Users\Default\Application Data" "C:\Users\Default\AppData\Roaming"
mklink /J "C:\Users\Default\Cookies" "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCookies"
mklink /J "C:\Users\Default\Local Settings" "C:\Users\Default\AppData\Local"
mklink /J "C:\Users\Default\My Documents" "C:\Users\Default\Documents"
mklink /J "C:\Users\Default\NetHood" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
mklink /J "C:\Users\Default\PrintHood" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
mklink /J "C:\Users\Default\Recent" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Recent"
mklink /J "C:\Users\Default\SendTo" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo"
mklink /J "C:\Users\Default\Start Menu" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu"
mklink /J "C:\Users\Default\Templates" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Templates"
mklink /J "C:\Users\Default\AppData\Local\Application Data" "C:\Users\Default\AppData\Local"
mklink /J "C:\Users\Default\AppData\Local\History" "C:\Users\Default\AppData\Local\Microsoft\Windows\History"
mklink /J "C:\Users\Default\AppData\Local\Temporary Internet Files" "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache"
mklink /J "C:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files" "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache"
mklink /J "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache\Content.IE5" "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache\IE"
mklink /J "C:\Users\Default\Documents\My Music" "C:\Users\Default\Music"
mklink /J "C:\Users\Default\Documents\My Pictures" "C:\Users\Default\Pictures"
mklink /J "C:\Users\Default\Documents\My Videos" "C:\Users\Default\Videos"
mklink /J "C:\Users\phares\Application Data" "C:\Users\phares\AppData\Roaming"
mklink /J "C:\Users\phares\Cookies" "C:\Users\phares\AppData\Local\Microsoft\Windows\INetCookies"
mklink /J "C:\Users\phares\Local Settings" "C:\Users\phares\AppData\Local"
mklink /J "C:\Users\phares\My Documents" "C:\Users\phares\Documents"
mklink /J "C:\Users\phares\NetHood" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
mklink /J "C:\Users\phares\PrintHood" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
mklink /J "C:\Users\phares\Recent" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\Recent"
mklink /J "C:\Users\phares\SendTo" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\SendTo"
mklink /J "C:\Users\phares\Start Menu" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\Start Menu"
mklink /J "C:\Users\phares\Templates" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\Templates"
mklink /J "C:\Users\phares\AppData\Local\Application Data" "C:\Users\phares\AppData\Local"
mklink /J "C:\Users\phares\AppData\Local\History" "C:\Users\phares\AppData\Local\Microsoft\Windows\History"
mklink /J "C:\Users\phares\AppData\Local\Temporary Internet Files" "C:\Users\phares\AppData\Local\Microsoft\Windows\INetCache"
mklink /J "C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf"
mklink /J "C:\Users\phares\AppData\Local\Microsoft\Windows\Temporary Internet Files" "C:\Users\phares\AppData\Local\Microsoft\Windows\INetCache"
mklink /J "C:\Users\phares\AppData\Local\Microsoft\Windows\INetCache\Content.IE5" "C:\Users\phares\AppData\Local\Microsoft\Windows\INetCache\IE"
mklink /J "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\.git" "L:\Git\Syncthing-Secrets\.git"
mklink /J "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\.kanbn" "D:\5-Other-Small\Kanban\Phares"
mklink /J "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\.LocalSystem" "C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\UserSecrets"
mklink /J "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\.PSReadLine" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine"
mklink /J "C:\Users\phares\Documents\My Music" "C:\Users\phares\Music"
mklink /J "C:\Users\phares\Documents\My Pictures" "C:\Users\phares\Pictures"
mklink /J "C:\Users\phares\Documents\My Videos" "C:\Users\phares\Videos"
mklink /J "C:\Users\Public\Documents\My Music" "C:\Users\Public\Music"
mklink /J "C:\Users\Public\Documents\My Pictures" "C:\Users\Public\Pictures"
mklink /J "C:\Users\Public\Documents\My Videos" "C:\Users\Public\Videos"
mklink /J "C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5" "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\IE"
```
```bash Mon Jan 15 2024 15:49:34 GMT-0700 (Mountain Standard Time)
dir /AL /S D:\
mklink /J "D:\5-Other-Small\Kanban\.git" "L:\Git\Notes-Kanban\.git"
mklink /J "D:\5-Other-Small\Notes\EC-Documentation\.git" "L:\Git\Notes-EC-Documentation\.git"
mklink /J "D:\5-Other-Small\Notes\EC-Documentation\.kanbn" "D:\5-Other-Small\Kanban\EC-Documentation"
mklink /J "D:\5-Other-Small\Notes\EC-Documentation\incoming" "D:\5-Other-Small\Notes\EC-Documentation\port"
mklink /J "D:\5-Other-Small\Notes\EC-Documentation\outgoing" "D:\5-Other-Small\Notes\EC-Documentation\port"
mklink /J "D:\5-Other-Small\Notes\Infineon\.Applications" "L:\DevOps\Mesa_FI\FI-Operations\Applications"
mklink /J "D:\5-Other-Small\Notes\Infineon\.BarcodeHost" "D:\5-Other-Small\Kanban\Barcode-Host\tasks"
mklink /J "D:\5-Other-Small\Notes\Infineon\.DevOps" "L:\DevOps\Mesa_FI\FI-Operations\DevOps"
mklink /J "D:\5-Other-Small\Notes\Infineon\.Fab" "L:\DevOps\Mesa_FI\FI-Operations\Fab"
mklink /J "D:\5-Other-Small\Notes\Infineon\.git" "L:\Git\Notes-Infineon\.git"
mklink /J "D:\5-Other-Small\Notes\Infineon\.kanbn" "D:\5-Other-Small\Kanban\Infineon"
mklink /J "D:\5-Other-Small\Notes\Infineon\.port" "L:\Git\Notes-EC-Documentation\EC-Documentation\port"
mklink /J "D:\5-Other-Small\Notes\Network\.etc" "C:\Windows\System32\drivers\etc"
mklink /J "D:\5-Other-Small\Notes\Network\.git" "L:\Git\Notes-Network\.git"
mklink /J "D:\EAF\EAF Runtime Agent\Bin" "D:\EAF\EAF Runtime Agent\v2.25.1\Bin"
mklink /J "D:\EAF\EAF Runtime Agent\Configuration" "D:\EAF\EAF Runtime Agent\v2.25.1\Configuration"
mklink /J "D:\EAF\EAF Runtime Agent\Logs" "D:\EAF\EAF Runtime Agent\v2.25.1\Logs"
mklink /J "D:\net6.0\BaGet\Server" "D:\net6.0\BaGet\e58883f-968285-BaGet-Release\Server"
mklink /J "D:\net7.0\BaGet\Worker" "D:\net7.0\BaGet\e58883f-968285-BaGet-Release\Worker"
mklink /J "D:\Tmp\phares\TP-Link" "D:\5-Other-Small\Notes\Network\.vscode\helper"
mklink /J "D:\Tmp\phares\www\NGINdeX.io" "L:\DevOps\Mesa_FI\NGINdeX.io"
mklink /J "D:\Tmp\phares\www\pictures" "D:\Documents\Pictures"
mklink /J "D:\Tmp\phares\www\Verdaccio" "L:\Verdaccio\storage"
mklink /J "D:\vsts-agent-win-x64-2.170.1-Phares\bin" "D:\vsts-agent-win-x64-2.170.1-Phares\bin.2.210.1"
mklink /J "D:\vsts-agent-win-x64-2.170.1-Phares\externals" "D:\vsts-agent-win-x64-2.170.1-Phares\externals.2.210.1"
```
```bash Mon Jan 15 2024 15:49:34 GMT-0700 (Mountain Standard Time)
dir /AL /S L:\
mkdir "D:\5-Other-Small\Kanban\MET08AWCT"
mkdir "D:\5-Other-Small\Kanban\METCLIMATEC"
mklink /J "L:\DevOps\Mesa_FI\Fab-2-Approval-System" "L:\Workspaces\33_CS29_79_72\Mesa_FI\Fab2ApprovalSystem\Fab2ApprovalSystem-branch-Prod20190626\Fab2ApprovalSystem"
mklink /J "L:\DevOps\Mesa_FI\APC-Viewer\.vscode\UserSecrets" "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\a71ebef9-7685-4ccf-b098-f5a2e119480a"
mklink /J "L:\DevOps\Mesa_FI\Baget\src\BaGet\.vscode\UserSecrets" "C:\Windows\System32\config\SystemProfile\AppData\Roaming\Microsoft\UserSecrets\0841ecbb-394c-4690-bb0e-1c5c48a1297a"
mklink /J "L:/DevOps/Mesa_FI/Barcode-Host/Server.Tests/.kanbn" "D:\5-Other-Small\Kanban\Barcode-Host"
mklink /J "L:\DevOps\Mesa_FI\Barcode-Host\.vscode\UserSecrets" "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets\02dce973-df1d-4325-962a-ed549af8d4c5"
mklink /J "L:\DevOps\Mesa_FI\EDA-Viewer\EDA Viewer.Tests\.kanbn" "D:\5-Other-Small\Kanban\EDA-Viewer"
mklink /J "L:\DevOps\Mesa_FI\File-Folder-Helper\.kanbn" "D:\5-Other-Small\Kanban\File-Folder-Helper"
mklink /J "L:\DevOps\Mesa_FI\OI-Metrology\Tests\.kanbn" "D:\5-Other-Small\Kanban\OI-Metrology"
mklink /J "L:\Git\AA\Shared\.kanbn" "D:\5-Other-Small\Kanban\View-by-Distance"
mklink /J "L:\Git\Notes-Cyberpunk-Red\Cyberpunk-Red" "D:\5-Other-Small\Notes\Cyberpunk-Red"
mklink /J "L:\Git\Notes-EC-Documentation\.EC-Documentation" "D:\5-Other-Small\Notes\EC-Documentation"
mklink /J "L:\Git\Notes-EC-Documentation\.EC-Documentation\.git" "L:\Git\Notes-EC-Documentation\.git"
mklink /J "L:\Git\Notes-EC-Documentation\.EC-Documentation\.kanbn" "D:\5-Other-Small\Kanban\EC-Documentation"
mklink /J "L:\Git\Notes-EC-Documentation\.EC-Documentation\incoming" "D:\5-Other-Small\Notes\EC-Documentation\port"
mklink /J "L:\Git\Notes-EC-Documentation\.EC-Documentation\outgoing" "D:\5-Other-Small\Notes\EC-Documentation\port"
mklink /J "L:\Git\Notes-Infineon\.Infineon" "D:\5-Other-Small\Notes\Infineon"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.Applications" "L:\DevOps\Mesa_FI\FI-Operations\Applications"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.BarcodeHost" "D:\5-Other-Small\Kanban\Barcode-Host\tasks"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.DevOps" "L:\DevOps\Mesa_FI\FI-Operations\DevOps"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.Fab" "L:\DevOps\Mesa_FI\FI-Operations\Fab"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.git" "L:\Git\Notes-Infineon\.git"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.kanbn" "D:\5-Other-Small\Kanban\Infineon"
mklink /J "L:\Git\Notes-Infineon\.Infineon\.port" "L:\Git\Notes-EC-Documentation\EC-Documentation\port"
mklink /J "L:\Git\Notes-Kanban\.Kanban" "D:\5-Other-Small\Kanban"
mklink /J "L:\Git\Notes-Kanban\.Kanban\.git" "L:\Git\Notes-Kanban\.git"
mklink /J "L:\Git\Notes-Network\.Network" "D:\5-Other-Small\Notes\Network"
mklink /J "L:\Git\Notes-Network\.Network\.etc" "C:\Windows\System32\drivers\etc"
mklink /J "L:\Git\Notes-Network\.Network\.git" "L:\Git\Notes-Network\.git"
mklink /J "L:\Git\Syncthing-Secrets\.UserSecrets" "C:\Users\phares\AppData\Roaming\Microsoft\UserSecrets"
mklink /J "L:\Git\Syncthing-Secrets\.UserSecrets\.git" "L:\Git\Syncthing-Secrets\.git"
mklink /J "L:\Git\Syncthing-Secrets\.UserSecrets\.kanbn" "D:\5-Other-Small\Kanban\Phares"
mklink /J "L:\Git\Syncthing-Secrets\.UserSecrets\.LocalSystem" "C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\UserSecrets"
mklink /J "L:\Git\Syncthing-Secrets\.UserSecrets\.PSReadLine" "C:\Users\phares\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine"
mklink /J "L:\Git\VS-Code-Settings\.omnisharp" "C:\Users\phares\.omnisharp"
mklink /J "L:\Git\VS-Code-Settings\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\Git\VS-Code-Settings\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\Git\VS-Code-Settings\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
mklink /J "L:\Git\VS-Code-Settings\User" "C:\Users\phares\AppData\Roaming\Code\User"
mklink /J "L:\Git\VS-Code-Settings-Insider\.omnisharp" "C:\Users\phares\.omnisharp"
mklink /J "L:\Git\VS-Code-Settings-Insider\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\Git\VS-Code-Settings-Insider\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\Git\VS-Code-Settings-Insider\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
mklink /J "L:\Git\VS-Code-Settings-Insider\User" "C:\Users\phares\AppData\Roaming\Code - Insiders\User"
mklink /J "L:\Git\VS-Code-Settings-OSS\.omnisharp" "C:\Users\phares\.omnisharp"
mklink /J "L:\Git\VS-Code-Settings-OSS\app-code" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code\resources\app"
mklink /J "L:\Git\VS-Code-Settings-OSS\app-codium" "C:\Users\phares\AppData\Local\Programs\VSCodium\resources\app"
mklink /J "L:\Git\VS-Code-Settings-OSS\app-insiders" "C:\Users\phares\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app"
mklink /J "L:\Git\VS-Code-Settings-OSS\User" "C:\Users\phares\AppData\Roaming\VSCodium\User"
mklink /J "L:\Git\YO-VSCode\.kanbn" "D:\5-Other-Small\Kanban\Type-Script-Helper"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08SIASM\06_SourceCode\DEP08SIASM\.kanbn" "D:\5-Other-Small\Kanban\DEP08SIASM"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08SIHTRPLC\06_SourceCode\DEP08SIHTRPLC\.kanbn" "D:\5-Other-Small\Kanban\DEP08SIHTRPLC"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MESAFIBACKLOG\06_SourceCode\MESAFIBACKLOG\.kanbn" "D:\5-Other-Small\Kanban\MESAFIBACKLOG"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08AFMD3100\06_SourceCode\MET08AFMD3100\.kanbn" "D:\5-Other-Small\Kanban\MET08AFMD3100"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08ANLYSDIFAAST230\06_SourceCode\MET08ANLYSDIFAAST230\.kanbn" "D:\5-Other-Small\Kanban\MET08ANLYSDIFAAST230"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08AWCT\06_SourceCode\MET08AWCT\.kanbn" "D:\5-Other-Small\Kanban\MET08AWCT"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08DDUPSFS6420\06_SourceCode\MET08DDUPSFS6420\.kanbn" "D:\5-Other-Small\Kanban\MET08DDUPSFS6420"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08DDUPSP1TBI\06_SourceCode\MET08DDUPSP1TBI\.kanbn" "D:\5-Other-Small\Kanban\MET08DDUPSP1TBI"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\.kanbn" "D:\5-Other-Small\Kanban\MET08RESIHGCV"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESIMAPCDE\06_SourceCode\MET08RESIMAPCDE\.kanbn" "D:\5-Other-Small\Kanban\MET08RESIMAPCDE"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESISRP2100\06_SourceCode\MET08RESISRP2100\.kanbn" "D:\5-Other-Small\Kanban\MET08RESISRP2100"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRQS408M\06_SourceCode\MET08THFTIRQS408M\.kanbn" "D:\5-Other-Small\Kanban\MET08THFTIRQS408M"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\.kanbn" "D:\5-Other-Small\Kanban\MET08THFTIRSTRATUS"
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\METCLIMATEC\06_SourceCode\METCLIMATEC\.kanbn" "D:\5-Other-Small\Kanban\METCLIMATEC"
```
```bash Mon Jan 15 2024 15:49:34 GMT-0700 (Mountain Standard Time)
dir /AL /S T:\
#
mklink /J "T:\cellInstanceVersion.EdaConnection.PortNumber" "D:\Tmp\cellInstanceVersion.EdaConnection.PortNumber"
mklink /J "T:\Context Data" "L:\Workspaces\33_CS29_79_72\Mesa_FI\Infineon\Mesa\OpenInsight\Library\Framework\4\ContextData"
mklink /J "T:\DEP08EGANAIXG5" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08EGANAIXG5"
mklink /J "T:\DEP08SIASM" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08SIASM"
mklink /J "T:\DEP08SIHTRPLC" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08SIHTRPLC"
mklink /J "T:\Keyboard Simulator" "L:\Workspaces\33_CS29_79_72\Mesa_FI\Infineon\Mesa\OpenInsight\Library\Framework\4\KeyboardSimulator"
mklink /J "T:\Library" "L:\Workspaces\33_CS29_79_72\Mesa_FI\OI GaN Viewer\Library"
mklink /J "T:\MESAFIBACKLOG" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MESAFIBACKLOG"
mklink /J "T:\MET08AWCT" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08AWCT"
mklink /J "T:\MET08ANLYSDIFAAST230" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08ANLYSDIFAAST230"
mklink /J "T:\MET08DDUPSFS6420" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08DDUPSFS6420"
mklink /J "T:\MET08DDUPSP1TBI" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08DDUPSP1TBI"
mklink /J "T:\MET08RESIHGCV" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESIHGCV"
mklink /J "T:\MET08RESIMAPCDE" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESIMAPCDE"
mklink /J "T:\MET08RESISRP2100" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESISRP2100"
mklink /J "T:\MET08THFTIRQS408M" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRQS408M"
mklink /J "T:\MET08THFTIRSTRATUS" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS"
mklink /J "T:\METCLIMATEC" "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\METCLIMATEC"
#
mklink /J "T:\DEP08SIASM\06_SourceCode\DEP08SIASM\.kanbn" "D:\5-Other-Small\Kanban\DEP08SIASM"
mklink /J "T:\DEP08SIHTRPLC\06_SourceCode\DEP08SIHTRPLC\.kanbn" "D:\5-Other-Small\Kanban\DEP08SIHTRPLC"
mklink /J "T:\MESAFIBACKLOG\06_SourceCode\MESAFIBACKLOG\.kanbn" "D:\5-Other-Small\Kanban\MESAFIBACKLOG"
mklink /J "T:\MET08ANLYSDIFAAST230\06_SourceCode\MET08ANLYSDIFAAST230\.kanbn" "D:\5-Other-Small\Kanban\MET08ANLYSDIFAAST230"
mklink /J "T:\MET08AWCT\06_SourceCode\MET08AWCT\.kanbn" "D:\5-Other-Small\Kanban\MET08AWCT"
mklink /J "T:\MET08DDUPSFS6420\06_SourceCode\MET08DDUPSFS6420\.kanbn" "D:\5-Other-Small\Kanban\MET08DDUPSFS6420"
mklink /J "T:\MET08DDUPSP1TBI\06_SourceCode\MET08DDUPSP1TBI\.kanbn" "D:\5-Other-Small\Kanban\MET08DDUPSP1TBI"
mklink /J "T:\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\.kanbn" "D:\5-Other-Small\Kanban\MET08RESIHGCV"
mklink /J "T:\MET08RESIMAPCDE\06_SourceCode\MET08RESIMAPCDE\.kanbn" "D:\5-Other-Small\Kanban\MET08RESIMAPCDE"
mklink /J "T:\MET08RESISRP2100\06_SourceCode\MET08RESISRP2100\.kanbn" "D:\5-Other-Small\Kanban\MET08RESISRP2100"
mklink /J "T:\MET08THFTIRQS408M\06_SourceCode\MET08THFTIRQS408M\.kanbn" "D:\5-Other-Small\Kanban\MET08THFTIRQS408M"
mklink /J "T:\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\.kanbn" "D:\5-Other-Small\Kanban\MET08THFTIRSTRATUS"
mklink /J "T:\METCLIMATEC\06_SourceCode\METCLIMATEC\.kanbn" "D:\5-Other-Small\Kanban\METCLIMATEC"
```

338
_-Review/moved-bee.md Normal file
View File

@ -0,0 +1,338 @@
---
type: "topic"
created: "2024-01-06T01:25:36.042Z"
updated: "2024-01-06T01:25:36.042Z"
---
# moved-bee
```bash
apt-get update
apt-get upgrade
apt-get install links unzip net-tools ufw nginx git ncdu -y
reboot
ip a
lsb_release -a
ufw enable
ufw allow from 192.168.0.0/24 comment "04) 192.168.0.0/24"
ufw status numbered
cd /home/ubuntu/
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 8.0
ln -s /home/ubuntu/.dotnet/dotnet /usr/local/bin/dotnet
dotnet --info
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
dotnet --info
timedatectl set-timezone America/Phoenix
snap install dashkiosk
snap restart dashkiosk
snap install ubuntu-frame wpe-webkit-mir-kiosk
snap set wpe-webkit-mir-kiosk url=http://localhost:9400/receiver
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
/snap/wpe-webkit-mir-kiosk/current/bin/setup.sh
wpe-webkit-mir-kiosk.cog http://localhost:9400/receiver
snap set ubuntu-frame daemon=true
apt-get install -y ca-certificates
openssl s_client -showcerts -connect DESKTOP-H6JG91B:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >DESKTOP-H6JG91B.crt
apt-get install nano
nano /etc/hosts
nano /etc/nginx/sites-available/default
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
ssl_certificate 'localhost.crt';
ssl_certificate_key 'localhost.key';
listen 443 default_server ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 default_server ssl http2;
server_name _;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
```
```bash
systemctl restart nginx
nginx -t
nginx -s reload
nano /home/ubuntu/localhost.conf
echo >/home/ubuntu/localhost.conf && nano /home/ubuntu/localhost.conf
```
```conf
[req]
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Mesa
organizationName = Organization Name (eg, company)
organizationName_default = Infineon Technologies Americas Corp.
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = phares3757.ddns.net
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = phares3757.ddns.net
DNS.2 = beelink
DNS.3 = localhost
DNS.4 = 127.0.0.1
```
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/localhost.key -out /etc/nginx/localhost.crt -config /home/ubuntu/localhost.conf
ls /etc/nginx
apt install update-manager-core
exit
do-release-upgrade
exit
adduser gogs
cd /home/gogs
wget https://dl.gogs.io/0.13.0/gogs_0.13.0_linux_amd64.tar.gz
tar -xvzf gogs_0.13.0_linux_amd64.tar.gz
rm gogs_0.13.0_linux_amd64.tar.gz
cd gogs
ufw status numbered
./gogs web
mkdir /home/gogs/gogs-repositories
chown gogs /home/gogs -R
chgrp gogs /home/gogs -R
nano /home/gogs/gogs/custom/conf/app.ini
nano /etc/systemd/system/gogs-daemon.service
systemctl enable gogs-daemon
systemctl start gogs-daemon
systemctl status gogs-daemon.service
systemctl daemon-reload
journalctl -fu gogs-daemon.service
journalctl --rotate
journalctl --vacuum-time=1s
cd /home/gogs
git clone https://github.com/Kos-M/GogsThemes
exit
cp ~/.bash_history /home/ubuntu/bash-history-2023-10-17.txt
chown mike /home/ubuntu -R
chgrp mike /home/ubuntu -R
exit
adduser pi-hole
cd pi-hole
curl -sSL https://install.pi-hole.net | bash
```
```conf
# http://pi.hole/admin
# http://192.168.0.118/admin
fUiY4SYS
```
```conf
nano /etc/lighttpd/lighttpd.conf
```
```conf
server.port = 8005
```
```conf
service lighttpd restart
pihole -a -p 4hink
apt install unbound
; https://docs.pi-hole.net/guides/dns/unbound/
nano /etc/unbound/unbound.conf.d/pi-hole.conf
```
```conf
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes
# May be set to yes if you have IPv6 connectivity
do-ip6: no
# You want to leave this to no unless you have *native* IPv6. With 6to4 and
# Terredo tunnels your web browser should favor IPv4 for the same reasons
prefer-ip6: no
# Use this only when you downloaded the list of primary root servers!
# If you use the default dns-root-data package, unbound will find it automatically
#root-hints: "/var/lib/unbound/root.hints"
# Trust glue only if it is within the server's authority
harden-glue: yes
# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes
# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no
# Reduce EDNS reassembly buffer size.
# IP fragmentation is unreliable on the Internet today, and can cause
# transmission failures when large DNS messages are sent via UDP. Even
# when fragmentation does work, it may not be secure; it is theoretically
# possible to spoof parts of a fragmented DNS message, without easy
# detection at the receiving end. Recently, there was an excellent study
# >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
# by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
# in collaboration with NLnet Labs explored DNS using real world data from the
# the RIPE Atlas probes and the researchers suggested different values for
# IPv4 and IPv6 and in different scenarios. They advise that servers should
# be configured to limit DNS messages sent over UDP to a size that will not
# trigger fragmentation on typical network links. DNS servers can switch
# from UDP to TCP when a DNS response is too big to fit in this limited
# buffer size. This value has also been suggested in DNS Flag Day 2020.
edns-buffer-size: 1232
# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads: 1
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
```
```conf
service unbound restart
# http://beelink:8005/admin/settings.php?tab=dns
# https://docs.pi-hole.net/guides/dns/unbound/
127.0.0.1#5335
```
```bash
apt-get install syncthing
apt-get install apt-transport-https
adduser syncthing
cat /etc/passwd | cut -d: -f1
systemctl enable syncthing@syncthing.service
systemctl start syncthing@syncthing.service
systemctl status syncthing@syncthing.service
journalctl -e -u syncthing@syncthing.service
nano /home/syncthing/.config/syncthing/config.xml
```
```xml
<address>0.0.0.0:8384</address>
```
```bash
systemctl restart syncthing@syncthing.service
chown syncthing /home/syncthing -R
chgrp syncthing /home/syncthing -R
```
```bash
ufw allow from 192.168.0.0/24 to any port 22 comment "01) SSH"
ufw allow to 0.0.0.0/0 port 80 comment "02) HTTP"
ufw allow to 0.0.0.0/0 port 443 comment "03) HTTPS"
ufw allow from 192.168.0.0/24 to any port 8005 comment "04) Pi-hole"
ufw allow from 192.168.0.0/24 to any port 53 comment "05) DNS"
ufw allow from 192.168.0.0/24 to any port 67 comment "06) Unknown"
ufw allow from 192.168.0.0/24 to any port 9400 comment "07) dashkiosk"
ufw allow from 192.168.0.0/24 to any port 3000 comment "08) gogs"
ufw allow from 192.168.0.0/24 to any port 8384 comment "09) syncthing"
ufw allow from 192.168.0.0/24 to any port 22000 comment "10) syncthing"
```
```conf
To Action From
-- ------ ----
22 ALLOW IN 192.168.0.0/24 # 01) SSH
80 ALLOW IN Anywhere # 02) HTTP
443 ALLOW IN Anywhere # 03) HTTPS
8005 ALLOW IN 192.168.0.0/24 # 04) Pi-hole
53 ALLOW IN 192.168.0.0/24 # 05) DNS
67 ALLOW IN 192.168.0.0/24 # 06) Unknown
9400 ALLOW IN 192.168.0.0/24 # 07) dashkiosk
3000 ALLOW IN 192.168.0.0/24 # 08) gogs
8384 ALLOW IN 192.168.0.0/24 # 09) syncthing
22000 ALLOW IN 192.168.0.0/24 # 10) syncthing
```
```bash
echo >/etc/hosts && nano /etc/hosts
```
```conf
127.0.0.1 localhost
127.0.0.1 beelink
127.0.1.1 phares3757.ddsn.net
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
```bash
adduser twingate
curl -s https://binaries.twingate.com/client/linux/install.sh | bash
twingate setup
twingate start
curl "https://binaries.twingate.com/connector/setup.sh" | sudo TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMDc3IiwiZGlkIjoiMTAwMzc4OSIsImp0aSI6IjIyNTJmMjIwLWNkNjQtNDlhYy04YjRhLTE0NDFjOWUyM2U5ZSIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDE0Mzc4LCJpYXQiOjE2OTgwMTA3NzgsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAxMTA3OCwicm5ldGlkIjoiNzIyNzcifQ.aQnQMUGqM5fBEbR781u-lCPjltfmb1TdZUJTNJ_GYiiSJiemJiIrVK80xHQlIpPB2kot34nxmpvVK4kZK64X3w" TWINGATE_REFRESH_TOKEN="AWOLHa11QFXENAyov_w-KQ5ZC-keHm2w_ActZP8M7hBpy2NOC7EDT2bkEpBCO-YLTd40Pp-pdplIJu0lvdvNBAGINHopYnX2XOgaMxS5tbPPTsHRlnQpckaXYuOwu28W0ORs8g" TWINGATE_NETWORK="phares" bash
curl "https://binaries.twingate.com/connector/setup.sh" | TWINGATE_ACCESS_TOKEN="eyJhbGciOiJFUzI1NiIsImtpZCI6IjlZSlNUMGR6YU5pRDhZR0h5SUdyTG1SVDZKTmMwbHJGMVFsNklseVJ6X1UiLCJ0eXAiOiJEQVQifQ.eyJudCI6IkFOIiwiYWlkIjoiMTczMjIxIiwiZGlkIjoiMTAwNDI3NCIsImp0aSI6ImQxMWIwYWIzLWJjZTgtNDIxZS05MzAwLTA1ZmFkZDk5YjllMiIsImlzcyI6InR3aW5nYXRlIiwiYXVkIjoicGhhcmVzIiwiZXhwIjoxNjk4MDM3MTgzLCJpYXQiOjE2OTgwMzM1ODMsInZlciI6IjQiLCJ0aWQiOiI1NzgzOSIsInJudyI6MTY5ODAzMzg4Mywicm5ldGlkIjoiNzIyNzcifQ.7YqB5iz1lzsfb6adLPx53NNA3dJ1NnuzmNhyyi4FzPdMTGxn3qbHD1olvWpEEi69D8gAvF5K77DPwE1BHxo4Qw" TWINGATE_REFRESH_TOKEN="HypbNsUdue5Dh3s5W4ePR9RIkFDsjEGiNJFJDf_cLdixkn94ieMypUZMH_XIc4-13L_PuQ61M7RWG5rF21ZRAgFf1MuIMf5kJGhuQq_VG7_E_6Q8NMLAajP5W05jTofB-sY3Ig" TWINGATE_NETWORK="phares" bash
```

Some files were not shown because too many files have changed in this diff Show More