Home Assistant Creating timelapses with Home Assistant, C# and Azure - step 2 Uploading images to Azure blob storage with a few lines of C# and one HTTP call. Part of a series of blog posts.
Home Assistant Creating timelapses with Home Assistant, C# and Azure - step 1 Taking camera snapshots at regular interval, with the goal to create timelapses. Part of a series of blog posts.
.NET dotnet new templates Where is the dotnet new templates folder on my drive? How do I update the dotnet new templates?
Giphy CLI I have published an update of my Giphy CLI tool with 'copy to clipboard' option. After the search result is displayed, you can now copy the url or markdown of the gif to clipboard. Or choose to open the giphy.com page in the
Pipelines Tag sources on build in Azure YAML Pipelines Tagging Git sources with build number after successful build with Azure Pipelines YAML.
git fetch over all subfolders with PowerShell Want to fetch or pull all subfolder of your repos directory with a single line of PowerShell? gci | foreach { write-host $_.fullname; push-location $_; & git fetch }
Update Portainer I initialize my container with 2 extra options that are not in the official instructions. Adding --name as portainer and configuring the --restart policy as unless-stopped. docker run --name portainer --restart=unless-stopped -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:
Update raspbian via SSH 4 steps after you SSH into your Raspberry PI running raspbian: sudo apt update sudo apt dist-upgrade sudo apt clean sudo reboot This is the short version of https://www.makeuseof.com/tag/raspberry-pi-update-raspbian-os/
PowerShell Pimp My PowerShell Install Scoop http://scoop.sh/ A command-line installer for Windows iex (new-object net.webclient).downloadstring('https://get.scoop.sh') Install a nicer prompt Install pshazz via concfg Give your powershell some pizazz. scoop install pshazz Install concfg https://github.com/lukesampson/concfg concfg is
Git Find repos with unpushed commits using PowerShell Want to format your hard drive to reinstall Windows? Make sure you have pushed all commits to the server using this online. Run this PowerShell command in the root folder of your repositories. The cd .. at the end is to go back into the
ALM Fix slow startup of ASP.NET MVC 5 on Azure App Services You've deployed your MVC 5 website to Azure App Service (via Team Services); with pride you visit the site and start clicking... But wait, it's so slow even though you've done everything right, and 'it works on my machine'. Maybe you even scaled up
.NET Why Remove and Add ExtensionlessUrlHandler? I was starting a new ASP.NET MVC 5 project today, and like always was copy/pasting some code from a previous project. No need to reinvent anything if the work has been done... right? In the web.config I saw the following under
Azure Using Azure Functions as glue between Octopus deploy and Microsoft Teams Channel In this post we'll use Azure Functions as a gateway that recieves a payload from Octopus Deploy (after a deployment to production) and posts a notification to a Microsoft Teams
virtual box Fix "VT-x is not available (VERR_VMX_NO_VMX)" Virtualbox error I don’t know if it’s caused by new build of Win 10 or something else, but I started getting these errors when starting my Virtual box machines. Well not on all machine actually. Failed to open a session for the virtual machine
vagrant Windows - fix "HTTP server doesn't seem to support byte ranges" Vagrant error Vagrant is very popular in the Linux community, but it also runs on Windows (where it comes with its own set of problems I guess). I was trying to set up some machine, but the boxes needed to be downloaded first. Unfortunately my machine
Where is AssemblyVersion in file explorer Properties window Assumption Building an assembly this AssemblyInfo.cs file. [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("2.0.4")] [assembly: AssemblyInformationalVersion("2.0.0-myinfo")] Where do these version go But where canthe [AssemblyVersion] be found, that was set to
.NET System.IO.InvalidDataException: End of Central Directory record could not be found. When using System.IO.Compression.ZipFile.Open on a rar file I got theInvalidDataException. System.IO.InvalidDataException: End of Central Directory record could not be found. I started recreating the rar files, but no luck. Instead of digging further I got on nuget.
.NET HttpResponseMessage with custom http code like 429 The HttpResponseMessage has a constructor that takes in a value of the HttpStatusCode enum. Most of the http status codes you need are available in that enum. But what if you need to set the status code to a value that hasn’t been
.NET I installed ReSharper, now what? The most important shortcuts Alt+Enter: Quick fix menu when you are close to the squiggly lines. Ctrl+Shift+R: The “Refactor This” menu Ctrl+T: Go to functionality – just start typing (in CamelHumps you’ve got skills) Docs Official docs page can be
Copy .chm locally from network and open How to open up an old school .CHM help file from a network path succesfully? Put the Powershell in the folder of the .CHM file and any user can launch the help file via right-click on the .PS1 and selecting ‘Run with Powershell’. Set-ExecutionPolicy
.NET Include .pdb files in Web Application Publish for Release mode (VS2012) While most people want to get rid of the pdb files in release mode, I want to keep them. They don’t impact the performance of the application. They offer very useful information when exceptions occur. Etc.. In Visual Studio 2012, the .pdb files
ALM NuGet package restore fail TFS Build Server If you don’t want to check-in packages into your source control system, you can enable package restore. This will automate the download of packages during build, if packages aren’t on the machine yet. After enabling this for a solution I’m working
.NET Solving MSBuild failure on platform HPD I cloned DataAnnotationExtension from github and tried to run build.cmd that comes with it. What do I get… a lot of red: Build FAILED. Never good. The specified solution configuration "release|HPD" is invalid. It turns out that MSBuild.exe looks
.NET Uploading a file using SFTP in C# SSH.NET is a new library, inspired by the discontinued SshSharp, that can be used to upload files using the sftp protocol. The documentation is very limited, just some API listing, so here is a sample for file upload with SFTP and .NET/C#
ALM Find TFS ChangeSet based on Check-In Note Want to find a ChangeSet through a value you entered in Check-In Note? It’s not that hard, but it isn’t obvious to know where to look. You must have the TFS Power Tools installed: Team Foundation Server Power Tools September 2010 In