Being able to reload configuration on change is typically a key requirement. ASP.NET core configuration infrastructure provides a reloadOnChange property that you can set: var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) .AddEnvironmentVariables(); Configuration = builder.Build(); However, your application still has to handle the change. In asp.net core, this is via a IChangeToken and the Configuration class provides a GetReloadToken().RegisterChangeCallback - the only trouble is that this is fired only once since the change token can change.

Read more →

As I play with .NET core, I was getting a little frustrated with waiting for docker build and docker push to complete - the docker images for .net core are pretty large - weighing in at a gig as shown below. My trivial web service is hardly 80mb with dependencies - so this did not feel good at all. rraghur/webapi-app v3 9ff77929c379 25 hours ago 976.5 MB The .

Read more →

Yesterday I noticed that blogger API now supports posting as draft. This wasn’t the case when I wrote easyblogger - a cli tool to edit and post to Blogger from Vim. In any case, since the API now has the ability, I updated EasyBlogger to post as draft. Trouble came when I went to update an existing draft - it fails with a 404 C:\Users\raghuramanr>easyblogger file c:\Users\raghuramanr\blogentries\a.sample.draft.md raise HttpError(resp, content, uri=self.

Read more →

GCP live k8s visualizer is a cool project to visualize your k8s cluster. As pods, services & other resources come in and go out, it shows a visual map of your cluster gcp live k8s visualizer The animation above is from this guide. Followed the instructions there in but ran into javascript null errors . Anyway, took a look this morning and while it was a simple fix, I’m not sure why the kube api is returning null for something that’s a collection?

Read more →

The .minikube folder location So I was recently getting Minikube on my work laptop. As it happens, this did not go painlessly. My C drive has a measly 100G (free 8G) so almost all tools I install, if their dot file folder is going to hold anything significant like virtualbox images, I usually symlink it off to my D drive which is a lot roomier. DON’T DO THAT WITH MINIKUBE YET…​.

Read more →

Last weekend I setup torrent complete push notifications to be delivered via pushover. I have my media center box running ubuntu 16.04 with Kodi. It also serves as my torrent box with qbittorrent. On Android Transdroid is great to manage torrents but it doesn’t have auto refresh. Given that I rediscovered my pushover account last week, it seemed just begging to be used. Here’s a shell script to send push notifications - just set it up in in qbittorrent (or whatever you use) to run at torrent completion - like so /bin/user/bin/push.

Read more →

So this is just sharing my long time azure automation script to start/stop a vm. I have this on a schedule so it starts on weekdays in the morning and is shutdown in the evening. There’s also a couple of webhooks so I can start/shutdown using my phone. The latest addition is integrating push notifications to my phone - I have a Pushover which offers a nice api to send push notifications to your devices.

Read more →

What I’m after I’m trying out syncthing - I’ve become frustrated that none of the other options seem to tick all the boxes of my needs. Here’s what I need and it doesn’t seem that I’m asking for a lot here: Bi directional file syncing Security & privacy - at rest and in motion Windows client Linux desktop client Android client.

Read more →

So, I wanted to try out Zsh as a bash replacement after using it on and off. Now I don’t write a lot of scripts - but mostly for running apps etc. The only real improvement that I needed was cross shell history…​ I can never remember where I typed a command and hitting Ctrl-R and finding the command is super nice. On my msys64 install, did a pacman -Su zsh and zsh was installed.

Read more →

Get a real Posix compatible PTY in Windows If you do any work on hte console in WIndows and are not on Windows 10, then you should probably use Conemu. If you’re a linux shell fan and are using Msys2 or Cygwin on windows, then an additional tweak is to enable the experimental Posix compatible PTY support in ConEmu. I’ve been a long term ConEmu user and did not know about this till yesterday.

Read more →