Using git aliases part two
This is a update to Using git aliases. A few extra commands and a bit of a cleanup. I should move it to a gist at some point.
Update: Moved the contents to a gist.
This is a update to Using git aliases. A few extra commands and a bit of a cleanup. I should move it to a gist at some point.
Update: Moved the contents to a gist.
This is more for me than anyone else. If you want to move to PowerShell core in Visual Studio Code then do the following.
CTRL + ,
to open settings.Shell: Windows
in the search box. "terminal.integrated.automationShell.windows": "C:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe",
"terminal.integrated.shell.windows": "C:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe",
Now when the terminal is opened it will be using PowerShell Core. As I use Scoop to install items on my computers the path above reflects that, if you have powershell elsewhere then use that path.
Continue Reading »I work with git for home and work project, I recently found you can use alias across all platforms due to the way it runs on windows. So all these aliases will work happily on git for windows and hopefully will make you work day more streamlined.
Some are from sites I have found and other I have created myself.
To access the global git configuration run the following command and then add this to the bottom if you do not have a alias section already. This command will use your default editor.
Continue Reading »I like to ensure my calendar gets filled for the next week, this way I know what is happening and it is hard to book a last minute meeting to surprise me. I guess this is a productivity hack. If you book more than a week out then you can take whatever time you want that is open.
Ideally no one books last minute but they do and it is really annoying to deal with. Just call me!!
Continue Reading »So after making the PowerShell script for Home Assistant I decided to spend a hour and pull it together to be a full module and push it up to GitHub. This is now in place and support just turning a switch entity on and off.
Install-Module -Name PoshHomeAssistant -Scope CurrentUser
Before you can use it set the configuration, this can be done with the following command, set the key and url to match your environment.
Continue Reading »Had an issue the iPhone hotspot would not work on windows, it would see the network and try to connect, on the phone the hotspot bar at the top would appear and disappear. Simple solution… Go to settings and change the name of your iPhone and remove any single quotes (’) from the name. Go back and turn the hotspot on and enjoy the connection. Well it worked on my computer :)
Continue Reading »Why? Because it is faster to test installs and adding items to the DietPi installer with snapshots! Also it makes a great small Linux installation to run other items off in Hyper-V.
.\qemu-img.exe convert ‘.\DietPi_v120_VirtualBox-x86_64-(Jessie)-disk1.vmdk’ -O vhdx -o subformat=dynamic ‘.\DietPi_v120_VirtualBox-x86_64-(Jessie)-disk1.vhdx’
Continue Reading »So, tried to do this. Failed… Why? not because there was a issue with the share or the user/pass combination. It was the SMB process and stack locations in the I/O request packets (IRPs) that are used by Windows. Reference: https://technet.microsoft.com/en-us/library/cc734424(v=ws.10).aspx
To increase IRPStackSize for the server:
Restart the server service to test or restart your PC. The process restart is faster :)
Continue Reading »I love Home Assistant and use it to control my house. I run it on a Pine64 board and it handles everything. However for developing and modifying it I want to have a slightly better environment than nano and a console screen :) So using the Subsystem for Linux I have a Linux based setup to run the hass instance in and can use Visual Studio code to develop the modules as I go, best of both worlds.
Continue Reading »