Kategori: Genel
-
Update boot drive initramfs on failed boot after hardware change
Boot from a LiveUSB/DVD Open a Terminal Perform the following commands: $ sudo mount /dev/sda1 /mnt $ sudo mount –bind /dev /mnt/dev $ sudo mount –bind /proc /mnt/proc $ sudo mount –bind /sys /mnt/sys $ sudo chroot /mnt $ update-initramfs -u $ update-grub $ reboot
-
Windows 10 and 11 HEVC Video Extensions from Device Manufacturer
Copy/paste this link into the browser: ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq Or, open command prompt, and type/paste: start ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq Click “Install”.
-
How to Test Outgoing Emails in SharePoint using PowerShell
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Parameters $EmailTo = “mailto@contoso.com” $EmailSubject = “Test Email from SharePoint” $EmailBody = “Test Email Body” #Get the outgoing Email Server settings $SPGlobalAdmin = New-Object Microsoft.SharePoint.Administration.SPGlobalAdmin $SMTPServer = $SPGlobalAdmin.OutboundSmtpServer $EmailFrom = $SPGlobalAdmin.MailFromAddress #Using PowerShell 3.0 Send-Mail Message: Send-MailMessage -To $EmailTo -From $EmailFrom -Subject $EmailSubject -Body $EmailBody -BodyAsHtml -SmtpServer $SmtpServer Save as a…
-
How to reload udev rules without reboot?
Udev uses the inotify mechanism to watch for changes in the rules directory, in both the library and in the local configuration trees (typically located at /lib/udev/rules.d and /etc/udev/rules.d). So most of the time you don’t need to do anything when you change a rules file. The udev rules are only applied when a device…
-
Use dynamic ip with your domain – cloudflare-ddns
Well there is a static IP option always there but to all out there doesn’t want to pay an extra for it, you can set up and use your own domain or subdomain for this service. We are gonna use a Docker image for small amd64/ARM Docker container that allows you to use CloudFlare as…
-
Varnish cache, How to cache static content
There is a lots of proxy cache options out there but fastest one of those is Varnish cache.The default configuration comes with barebones options with default.vcl. You can edit default.vcl file and add these following options to cache static content. sub vcl_recv { if (req.url ~ “.*.(?:css|js|jpe?g|png|gif|ico|swf)(?=?|&|$)”) { unset req.http.Cookie; return (hash); } } sub…
-
New Windows Terminal
Over the years after boring cmd and ugly default blue and yellow powershell, microsoft finally relased a new Windows Terminal for us and currently avalible at Microsoft Store. Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community…
-
Restart an AKS Cluster
First we need to run these commands but it will require aks-preview extensions to run and will prompt you to install aks-preview. After the installation we can continue az aks stop –name myaksname –resource-group myresourcegroup Then we can watch its progress with az aks show –name myaksname –resource-group myresourcegroup And after a succesfull stop we…
-
Log in to Azure from CLI
We are gonna use powershell with this command and first we install Azure CLI Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList ‘/I AzureCLI.msi /quiet’; rm .AzureCLI.msi And after the installation of the client we are gonna login azure with this command below and enter credentials. az login
-
Simple Linux device image and system backup bash script
#!/bin/bash now=$(date +"%d-%m-%Y") #device path that you want to get a image of it device="/dev/mmcblk0" #a folder path which isn’t a system drive path="/mnt/sata/backup" rsyncfolder="systembackup-$now" filename="backup.$now.img.gz" filesize=$(stat -c%s "$path/$filename") foldersize=$(du -hs "$path/$rsyncfolder") echo "Backing up $device device to $path/$filename file, please wait…" dd if=$device conv=sync,noerror bs=64K | gzip -c -9 > $path/$filename echo "Size of…