Using gamdl to get music on my garmin
gamdl is a downloader for apple music subscribers.
The correct way to implement -Whatif and -Confirm in a Powershell Cmdlet
When I first learned about [CmdLetBinding()] to add automatic support for
Write-Verbose I didn't understand why -WhatIf and -Confirm were not passed
to Cmdlets used in my functions.
Todo
This page is a list of potential future articles. Please email if you have any ideads.
- Practical uses of powershell on *nix
- Index of my github repos
- Vimrc
- Visitors page to show analysis of access.log
- More to come...
Also things I want to do that might be outside the realm of this blog
- ~urlwatch~
Tags: Todo
Transfer BTFS snapshots with netcat
Netcat, the swiss army knife of TCP/IP can be used for many tasks. Today, I'll breifly demonstrate sending btrfs snapshots between computers with it's assistance.
Troubleshooting: Office 365 login loop
If your ever stuck with this issue it can be infuriating. I had the issue on a linux install on my Precision 5510 but not on my home Gentoo installation.
Trying out a pull request
You've received a pull request on your repo. Before merging you want to see what it looks like in your code base. Perhaps you will run some manual test or some diffs from the command line here and there.
Using the latest vim on Gentoo
Most people (including myself until recently), think of Gentoo as a bleeding edge source distribution. This is pretty far from accurate as most packages marked stable are quite out of date. And even if you decide to accept all unstable packages by adding:
ACCEPT_KEYWORKS="~amd64"
to your make.conf file, you will likely be a bit disappointed when you can't get the latest gnome bits.
As my last post indicated, I'm a bit of a vim user and I want to have the latest vim on all my machines (Windows at work, WSL/Ubuntu 18.04 on the Windows box, and Gentoo at home). To that end, here is the simple thing you need to do to get the latest Vim on Gentoo:
Overview
- Add a special keyword to vim's ACCEPT_KEYWORDS var
- Unmerge existing vim
- emerge the new vim
Keywords
Newer versions of portage allow /etc/portage/package.keywords to be a directory with simple files so that you can seperate files for seperate packages. Now, lets check if it is a file or dir and convert it if it is a directory.
cd /etc/portage
if test -f package.keywords; then
mv package.keywords keywords
mkdir package.keywords
mv keywords package.keywords/
fi
And now, lets use the special keyword for the vim package which will allow ebuilds from github
echo app-editors/vim "**" > package.keywords/vim
echo app-editors/gvim "**" >> package.keywords/vim
echo app-editors/vim-core "**" >> package.keywords/vim
Unmerge existing vim
emerge --unmerge app-editors/vim app-editors/gvim
Merge the new vim
emerge app-editors/vim app-editors/gvim
Final thoughts.
This is the way I did it, but thinking about it now, it may be unnessecary to unmerge vim. You could probably get away with running emerge --update vim gvim