Trying to streamline my Jekyll development workflow, I came up with this function that I have added to my
~/.bash_profileto make things just a bit easer.
Obviously you will need to change the cd at the beginning of
jserve, but this will start the Jekyll process and open up a new tab in chrome to the test address. I tried to use the detached mode for jekyll, but apparently there has been a bug for a long time that detached mode doesn’t also watch the directory so that was a non-starter. The only problem with this is that the tab will open before the serving starts, but if you wait just a second and then refresh the page it should be ready to go.
I’m no bash expert though so if anyone has any improvements or other ideas I would like to hear about them.comments
For most sites you want to get the benefits of a CDN, but it is still a single point of failure. I came across this pattern recently though that allows you to fail over to a local file if the CDN library doesn’t load. Would probably have to take a different approach with CSS libraries though.
Something I hope to explore more very soon is webpack, which might make this trick obsolete.
Update: It took me a while to find where I had originally found this idea, but I came across it again. Credit: http://minime.stephan-brumme.com/. They also have examples for several other popular client-side js libraries.comments
At my previous job we had several projects where we worked with MSSQL express, maybe with multiple databases. Here is a quick script to just backup all user (non-system) databases on the system, quickly and easily. It could probably be improved a bit, maybe better naming for the backups, but as a quick backup-all-the-things it works great.comments