CREATE TABLE record_packing_ok_2024 LIKE record_packing_ok;
INSERT INTO record_packing_ok_2024
SELECT *
FROM record_packing_ok
WHERE YEAR(date_time) < 2025;
DELETE FROM `record_packing_ok` WHERE year(`date_time`)<2025;
Keep document that easy to find
CREATE TABLE record_packing_ok_2024 LIKE record_packing_ok;
INSERT INTO record_packing_ok_2024
SELECT *
FROM record_packing_ok
WHERE YEAR(date_time) < 2025;
DELETE FROM `record_packing_ok` WHERE year(`date_time`)<2025;
Sub ExportAllSheets()
Dim oWs As Worksheet
Dim oRng As Range
Dim oChrtO As ChartObject
Dim lWidth As Long, lHeight As Long
Dim sFilePath As String
sFilePath = "d:\"
For Each oWs In ActiveWorkbook.Worksheets
ActiveWindow.Zoom = 100
Set oRng = oWs.Range("B2:n30")
oRng.CopyPicture xlScreen, xlPicture
lWidth = oRng.Width
lHeight = oRng.Height
Set oChrtO = oWs.ChartObjects.Add(Left:=0, Top:=0, Width:=lWidth, Height:=lHeight)
oChrtO.Activate
With oChrtO.chart
.Paste
.Export Filename:=sFilePath & oWs.Name & ".jpg", Filtername:="JPG"
End With
oChrtO.Delete
Next oWs
End Sub
first install openssh server, and openssh client both side
server side:
1 edit sshd_config
1.1 remove # at line
PubkeyAuthentication yes
PasswordAuthentication no (change yes -->no)
1.2 add # at two lines of end file
#Match Group administrators
#AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
2 restart openssh service
3 create file authorized_keys (c:\user\prapop\.ssh\authorized_keys)
may be need
4 remove inherite permission and remove adminostator of file authorized_keys
client side
1 ssh-keygen
2 copy id_rsa.pub (client side) --> authorized_keys (server side)
ssh -N -R 12345:localhost:21118 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 192.168.0.86
OpenSSH-Win64.zip
or OpenSSH-Win32.zip
)C:\Program Files\OpenSSH
powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
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"Replace
C:\Windows\System32\OpenSSH\sshd.exe
with the actual path to the sshd.exe
(C:\Program Files\OpenSSH\ssh.exe
, had you followed the manual installation instructions above).Follow a generic guide for Setting up SSH public key authentication in *nix OpenSSH server, with the following difference:
.ssh
folder (for the authorized_keys
file) in your Windows account profile folder (typically in C:\Users\username\.ssh
).2.ssh
folder and the authorized_keys
file, what matters are Windows ACL permissions, not simple *nix permissions. Set the ACL so that the respective Windows account is the owner of the folder and the file and is the only account that has a write access to them. The account that runs OpenSSH SSH Server service (typically SYSTEM
or sshd
) needs to have read access to the file.sshd_config
for accounts in Administrators
group. For these, the server uses a different location for the authorized keys file: %ALLUSERSPROFILE%\ssh\administrators_authorized_keys
(i.e. typically C:\ProgramData\ssh\administrators_authorized_keys
).C:\Program Files\OpenSSH\ssh-keygen.exe
(on windows10 will copy to user folder)
Client
install openssh
cmd-->
ssh -N -R 12345:localhost:21118 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 192.168.0.86
Cr: https://winscp.net/eng/docs/guide_windows_openssh_server
Input E1 find "AAA or BBB"
E2,E3
=IFERROR(INDEX($B$2:$B$11, SMALL(IF(INDEX($C$2:$D$11,,MATCH($E$1,$C$1:$D$1,0))>0, ROW($B$2:$B$11)-MIN(ROW($B$2:$B$11))+1), ROW(1:1))), "")
Code from Copliot help