Remote file transfer, from Windows to Linux server

Open folder with file explorer, right click and select Open in Terminal

scp -r . username@remote_ip:/remote/path/

You may see a desktop.ini file, which contains folder customization/configuration settings, can be deleted

Powershell Tutorial

Why learn PowerShell if you already know Linux commands?

With WSL, it can be tempting to put-off learning powershell.

My personal reasoning.

If you're using someone elses computer, installing WSL isn't ideal.

Powershell commands are intuitive. Linux commands are esoteric.

Common Linux vs PowerShell Commands

Category Linux Command PowerShell Equivalent Explanation
Directory Navigation ls Get-ChildItem or ls List files and directories
cd /path/to/dir Set-Location /path/to/dir or cd Change directory
pwd Get-Location Print working directory
mkdir mydir New-Item -ItemType Directory -Name mydir or mkdir mydir Create directory
rm file.txt Remove-Item file.txt Delete file
rm -r mydir/ Remove-Item mydir -Recurse Recursively delete directory
touch file.txt New-Item file.txt -ItemType File Create empty file
cp file1 file2 Copy-Item file1 file2 Copy file
mv file1 file2 Move-Item file1 file2 Move or rename file
File Content/Search cat file.txt Get-Content file.txt Show file contents
head file.txt Get-Content file.txt \| Select-Object -First 10 First 10 lines
tail file.txt Get-Content file.txt \| Select-Object -Last 10 Last 10 lines
grep "foo" file.txt Select-String -Pattern "foo" file.txt Search file for pattern
find . -name "*.txt" Get-ChildItem -Recurse -Filter *.txt Find files recursively
System Info top Get-Process Show running processes
ps aux Get-Process Show all processes
df -h Get-PSDrive Disk usage
free -m Get-CimInstance Win32_OperatingSystem \| Select FreePhysicalMemory, TotalVisibleMemorySize Memory usage
uptime Get-CimInstance Win32_OperatingSystem \| Select LastBootUpTime Time since last boot
Scripting & Variables$VAR=value $VAR = "value" Set variable
echo $VAR Write-Output $VAR or just $VAR Print variable
`command` / $(command) $(command) Command substitution
for x in *; do ... done foreach ($x in Get-ChildItem) { ... } Loop through files
if [ "$x" = "foo" ]; then ... fi if ($x -eq "foo") { ... } If condition
Package/Process Mgmt apt install pkg / yum install pkg winget install pkg / choco install pkg Install software
kill 1234 Stop-Process -Id 1234 Kill process
ping example.com Test-Connection example.com Ping host
Miscellaneous man ls Get-Help Get-ChildItem Show help
history Get-History Show command history
clear Clear-Host or cls Clear screen

Some examples

Get-ChildItem -Path "D:\Photos" -Recurse -Filter *.cr3 -File

Get-ChildItem *.webp | ForEach-Object { magick $_.FullName ($_.BaseName + ".jpg") }

Remove-Item *.webp

Get-ChildItem *.MOD | ForEach-Object { ffmpeg -i $_.FullName -c:v libx264 -c:a aac "$($_.BaseName).mp4" }

Get-ChildItem -Recurse -Filter *.cr3 -File

Get-ChildItem -Path "C:\" -Recurse -Filter *.cr3 -File | Remove-Item -Force

delete subdirectory

Remove-Item -Force: Deletes the files, even if they're hidden or read-only.

DRY-RUN (preview)

Get-ChildItem -Path "D:\Photos" -Recurse -Filter *.cr3 -File

Cameras

DSLR vs Mirrorless

DSLR means a digital single lens reflex camera. The reflex part refers to the mirror that reflects light up into the viewfinder assembly. The mirror has to move out of the way for light to reach the sensor behind it, and this requires a relatively bulky mechanism, which adds to the size and weight of the camera and also introduces optical engineering complications

In a mirrorless camera there is no mirror mechanism, but a direct line of sight through the lens to the sensor. What you see in the electronic viewfinder (EVF) is a projection of the sensor image – which means that, unlike the optical viewfinder in a DSLR, it can preview the effect of your shooting settings (ISO, filters etc.). "The EVF on mirrorless cameras gives you the ability to see the exposure of the image before you've even taken it"

Basic pros and cons

Since most mirrorless are sold as lighter, compact cameras, physical battery size has taken a hit. So expect better battery life in DSLRs

Generally SLR lenses can be used on a mirrorless camera with an adaptor but not the other way round

Lenses mounts

https://www.canon.co.uk/lenses/compatibility/

longer lens is more picture quality you lose, you lose light between lenses and senor Native lenses generally provide the best results

Official adapters, are said to offer best performance, but can be expensive

Raw images

A camera raw image file contains unprocessed or minimally processed data from the image sensor Raw files contain the information required to produce a viewable image from the camera's sensor data. The Most raw files contain a full size JPEG conversion of the image, which is used to preview the file on the camera's LCD panel.

Purple, or green edge To remove purple tinge, or chromatic aberration, from an image in Adobe Lightroom, navigate to the Lens Corrections panel and either enable the "Remove Chromatic Aberration" checkbox or use the manual defringe controls

Camcorders

https://youtube.com/shorts/JIU7ZoWwsvE?si=vrlUmw9TTbRdnYLz https://youtu.be/QpA2l1Lf94s?si=1wOAl7wN4UrfSSM7 https://youtu.be/yJju_66U9bA?si=wNi_eLxKoSwcvsZc

importance of flash

google drive link

misc

movie rec. jaws, natural fear beermoney

natural tribes give arif driving instrucor recommendation